/*
  Buffer v3 (Deep Navy & Trust Teal): shared styles for the site's pages and
  the blog. A port of the v1 buffer-site.css with the v3 palette, Manrope
  headings, sentence-case kickers, v3 focus and the 1.5px icon stroke
  (design/v3-handoff/README.md and CHANGES.md). Layout, breakpoints and
  behaviour are v1's.

  Every colour comes from the token block below; components never use a raw
  colour. Alpha colours use the *-rgb channel tokens: rgb(var(--navy-rgb) / .1).

  Breakpoints: >= 1024 desktop · 768–1023 tablet · < 768 mobile.
*/

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------------------------------------------------------------- tokens */

:root {
  /* Raw palette: design-system/tokens.json (color.raw). */
  --navy-900: #17324D;
  --navy-950: #10263C;
  --teal-600: #146B70;
  --teal-700: #115E62;
  --teal-800: #0E5054;
  --teal-300: #6CC0C0;
  --sage-200: #E5F3EF;
  --sage-100: #F2F8F5;
  --sage-300: #B9CFC7;
  --warm-white: #FAFBF8;
  --white: #FFFFFF;
  --charcoal-900: #24343F;
  --slate-600: #4E5D66;
  --slate-500: #6B7B80;
  --gold-300: #EABF75;
  --line-200: #DCE5E1;
  --line-100: #E3EAE7;
  --on-navy-body: #D1D6DB;
  --on-navy-faint: #A9B6C2;
  --amber-700: #9A5B00;
  --brick-600: #A8404A;
  /* Status tints from the README (danger tile) and the home reference's
     token notes (warning tint); not in tokens.json. */
  --brick-100: #F5E4E6;
  --amber-100: #F5EDDC;
  /* The flag's maple-leaf red (Pantone 032) for the hero badge's leaf; not a
     brand colour, so not in tokens.json. */
  --maple-red: #D52B1E;

  /* Channels of the same colours, for alpha: rgb(var(--navy-rgb) / .1). */
  --navy-rgb: 23 50 77;
  --teal-rgb: 20 107 112;
  --teal-300-rgb: 108 192 192;
  --sage-300-rgb: 185 207 199;
  --gold-rgb: 234 191 117;
  --white-rgb: 255 255 255;
  --warm-white-rgb: 250 251 248;
  --maple-red-rgb: 213 43 30;

  /* Semantic names the components use. */
  --ink: var(--navy-900);
  --ink-2: var(--charcoal-900);       /* nav and footer links, labels on tints */
  --text-2: var(--slate-600);         /* body copy, captions (AA at every size) */
  --text-3: var(--slate-500);         /* decoration and large text only (4.4:1) */
  --accent: var(--teal-600);
  --accent-hover: var(--teal-700);
  --accent-press: var(--teal-800);
  --page: var(--warm-white);
  --surface: var(--white);
  --zone: var(--sage-200);            /* icon tiles, pills, notices */
  --tray: var(--line-100);            /* trays, tracks, placeholders, presses */
  --on-navy: var(--warm-white);
  --on-navy-2: var(--sage-300);       /* secondary text on navy */
  --on-navy-3: var(--on-navy-faint);  /* captions on navy */
  --on-navy-accent: var(--gold-300);  /* accent on navy: never teal-600 */
  --hairline: rgb(var(--navy-rgb) / .10);
  --hairline-dark: rgb(var(--white-rgb) / .10);
  --border: rgb(var(--navy-rgb) / .08);

  /* Navy-tinted shadows, v1 geometry. */
  --shadow-card: 0 10px 30px -12px rgb(var(--navy-rgb) / .12);
  --shadow-float: 0 30px 80px -30px rgb(var(--navy-rgb) / .35);
  --shadow-lift: 0 16px 40px -14px rgb(var(--navy-rgb) / .18);
  --shadow-segment: 0 2px 8px rgb(var(--navy-rgb) / .14);
  --shadow-thumb: 0 4px 12px rgb(var(--navy-rgb) / .18);
  --shadow-btn: inset 0 1px 0 rgb(var(--white-rgb) / .12);

  /* Focus: 2px Trust Teal, 2px offset; fields add a 3px ring. On navy the
     ring is teal-300, because teal on navy is 2.1:1. */
  --focus: var(--teal-600);
  --focus-on-dark: var(--teal-300);
  --focus-ring: 0 0 0 3px rgb(var(--teal-rgb) / .18);

  /* The hero's "warm air" shader reads these (v3-hero-aurora.js). */
  --aurora-hue-0: var(--gold-rgb);
  --aurora-hue-1: var(--teal-300-rgb);
  --aurora-hue-2: var(--sage-300-rgb);
  --aurora-deep: var(--teal-rgb);
  --aurora-veil: var(--navy-rgb);

  --ease: cubic-bezier(.2, 0, 0, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --glide: cubic-bezier(.34, 1.3, .64, 1);
  --drift: cubic-bezier(.45, 0, .55, 1);
  --sheet: cubic-bezier(.32, .72, 0, 1);
  --dur-fast: .18s;
  --dur-base: .24s;
  --dur-slow: .32s;

  --sans: Inter, system-ui, sans-serif;
  --heading: Manrope, Inter, system-ui, sans-serif;

  --gutter: 48px;
  /* Motion multiplier: every pure-motion translate, scale or duration is
     multiplied by --m, so reduced-motion users keep colour and shadow
     changes but get no movement. */
  --m: 1;
}

@media (max-width: 1023px) { :root { --gutter: 32px; } }
@media (max-width: 767px) { :root { --gutter: 16px; } }
@media (prefers-reduced-motion: reduce) { :root { --m: 0; } }

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-family: var(--heading); }
em { font-style: normal; }
img { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
[hidden] { display: none !important; }

.v3-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.v3-skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-navy);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.v3-skip-link:focus { top: 16px; }

/* Lucide icons, drawn from the inline sprite with <use>: 1.5 stroke, 2 at 16px and below. */
.v3-i {
  display: block;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.v3-i[width="16"], .v3-i[width="15"], .v3-i[width="14"], .v3-i[width="12"] { stroke-width: 2; }

.v3-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.v3-wrap {
  width: min(1200px, 100% - 2 * var(--gutter));
  margin-left: auto;
  margin-right: auto;
}

/* ---------------------------------------------------------- typography */

/* Kickers replace the uppercase eyebrows: Inter 14/600, sentence case, teal. */
.v3-kicker {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--accent);
}

.v3-h2 {
  font-size: 52px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.035em;
  color: var(--ink);
}

.v3-h2-lines > span { display: block; }

.v3-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
}

.v3-body-copy {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}

/* Headline emphasis: Trust Teal on one phrase, same family, upright. */
.v3-accent {
  font-style: normal;
  color: var(--accent);
}

@media (max-width: 1023px) {
  .v3-h2 { font-size: 44px; line-height: 1.08; }
}

@media (max-width: 767px) {
  .v3-h2 { font-size: 32px; line-height: 1.1; }
  .v3-h2-lines > span { display: inline; }
}

/* ------------------------------------------------- buttons and links */

.v3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.v3-btn-primary { background: var(--accent); color: var(--on-navy); }
.v3-btn-inverse { background: var(--warm-white); color: var(--ink); }

/* Quiet secondary (Log in): a white pill that never competes with the primary. */
.v3-btn-quiet {
  background: var(--surface);
  border: 1px solid rgb(var(--navy-rgb) / .12);
  color: var(--ink);
}

.v3-btn-nav { height: 40px; padding: 0 18px; font-size: 14px; }
.v3-btn-sm { height: 44px; padding: 0 20px; font-size: 14px; gap: 8px; }
.v3-btn-block { display: flex; width: 100%; }

.v3-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

/* Touch screens: give the small text links a ~44px hit area without moving them. */
@media (pointer: coarse) {
  .v3-link::before,
  .v3-footer-link::before,
  .v3-footer-legal-links a::before {
    content: "";
    position: absolute;
    inset: -12px -8px;
  }
}

/* ------------------------------------------- tactile controls */

[data-press], [data-btn], [data-ghost], [data-card] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

[data-press] {
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

[data-press].is-released {
  transition: transform .34s var(--spring), box-shadow .34s var(--spring), background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease) !important;
}

[data-btn] {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-btn);
}

[data-btn][data-shadow] {
  box-shadow: var(--shadow-btn), 0 10px 30px -12px rgb(var(--navy-rgb) / .4);
}

[data-btn] .v3-i, [data-ghost] .v3-i { transition: transform var(--dur-fast) var(--ease); }

/* Sheen: a diagonal highlight parked off the left edge, swept across once per hover. */
[data-btn="primary"]::after {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: 0;
  width: 34%;
  background: linear-gradient(100deg, rgb(var(--white-rgb) / 0), rgb(var(--white-rgb) / .22), rgb(var(--white-rgb) / 0));
  transform: translateX(-160%) skewX(-18deg);
  pointer-events: none;
}

[data-ghost] { position: relative; }

[data-ghost]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 1.5px;
  width: 0;
  background: var(--accent);
  transition: width calc(var(--dur-base) * var(--m)) var(--ease);
}

[data-card] {
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  [data-btn="primary"]:hover {
    background-color: var(--accent-hover);
    transform: translateY(calc(-1px * var(--m)));
    box-shadow: var(--shadow-btn), 0 14px 34px -12px rgb(var(--navy-rgb) / .5);
  }

  [data-btn="inverse"]:hover {
    background-color: var(--white);
    transform: translateY(calc(-1px * var(--m)));
    box-shadow: var(--shadow-btn), 0 14px 34px -12px rgb(var(--navy-rgb) / .5);
  }

  [data-btn]:hover .v3-i,
  [data-ghost]:hover .v3-i { transform: translateX(calc(3px * var(--m))); }

  [data-btn="primary"]:hover::after { animation: v3-sheen calc(.7s * var(--m)) ease-out 1 forwards; }
  [data-ghost]:hover::after { width: 100%; }

  [data-card]:hover {
    transform: translateY(calc(-2px * var(--m)));
    box-shadow: var(--shadow-lift);
  }

  [data-press="icon"]:hover,
  .v3-btn-quiet:hover { background-color: var(--tray); }
}

[data-press="btn"].is-pressed {
  transform: translateY(0) scale(calc(1 - .03 * var(--m))) !important;
  box-shadow: var(--shadow-btn), 0 4px 12px -6px rgb(var(--navy-rgb) / .45) !important;
  transition: transform .09s ease-out, box-shadow .09s ease-out, background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease) !important;
}

[data-btn="primary"].is-pressed { background-color: var(--accent-press) !important; }

[data-press="opt"].is-pressed {
  transform: scale(calc(1 - .03 * var(--m))) !important;
  transition: transform .09s ease-out, color var(--dur-fast) var(--ease) !important;
}

[data-press="row"].is-pressed {
  background-color: var(--tray) !important;
  transform: scale(calc(1 - .005 * var(--m))) !important;
  transition: transform .09s ease-out, background-color .09s ease-out !important;
}

[data-press="icon"].is-pressed {
  transform: scale(calc(1 - .08 * var(--m))) !important;
  transition: transform .09s ease-out, background-color var(--dur-fast) var(--ease) !important;
}

[data-press="ghost"].is-pressed {
  transform: translateY(calc(1px * var(--m))) !important;
  opacity: .75 !important;
  transition: transform .09s ease-out, opacity .09s ease-out !important;
}

@keyframes v3-sheen { to { transform: translateX(560%) skewX(-18deg); } }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  :focus-visible { animation: v3-focus-in .15s ease-out; }
}

@keyframes v3-focus-in { from { outline-color: transparent; } }

/* Navy surfaces: the ring turns teal-300 so it stays visible (2.1:1 otherwise). */
.v3-on-navy :focus-visible { outline-color: var(--focus-on-dark); }

@media (prefers-reduced-motion: reduce) {
  [data-btn="primary"]::after { display: none; }
}

/* ------------------------------------------------ segmented controls */

.v3-seg {
  position: relative;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--tray);
}

/* One white pill glides under the active option (positioned by v3-live.js). */
.v3-seg-pill {
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 0;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-segment);
  pointer-events: none;
}

.v3-seg[data-pill-ready] .v3-seg-pill {
  transition: transform calc(.34s * var(--m)) var(--glide), width calc(.34s * var(--m)) var(--glide);
}

.v3-seg-opt {
  position: relative;
  z-index: 1;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-2);
  cursor: pointer;
}

.v3-seg-opt[aria-selected="true"] { color: var(--ink); }

/* Until the script has placed the pill, the selected option carries it. */
.v3-seg:not([data-pill-ready]) .v3-seg-opt[aria-selected="true"] {
  background: var(--surface);
  box-shadow: var(--shadow-segment);
}

/* --------------------------------------------------- aurora glows */

.v3-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.v3-glow {
  position: absolute;
  border-radius: 50%;
  will-change: transform, opacity;
}

.v3-grain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: .035;
  mix-blend-mode: multiply;
  pointer-events: none;
}

@keyframes v3-driftA {
  0% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(calc(70px * var(--t, 1)), calc(40px * var(--t, 1))) scale(1.06); }
  50% { transform: translate(calc(30px * var(--t, 1)), calc(100px * var(--t, 1))) scale(.94); }
  75% { transform: translate(calc(-50px * var(--t, 1)), calc(50px * var(--t, 1))) scale(1.08); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Opacity 1.24 is intentional: it clamps to 1 and gives the breath a plateau. */
@keyframes v3-breatheA { 0%, 100% { opacity: .88; } 50% { opacity: 1.24; } }

@keyframes v3-driftB {
  0% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(calc(-80px * var(--t, 1)), calc(50px * var(--t, 1))) scale(1.1); }
  50% { transform: translate(calc(-40px * var(--t, 1)), calc(-70px * var(--t, 1))) scale(.95); }
  75% { transform: translate(calc(60px * var(--t, 1)), calc(-40px * var(--t, 1))) scale(1.04); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes v3-driftC {
  0% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(calc(50px * var(--t, 1)), calc(30px * var(--t, 1))) scale(1.06); }
  50% { transform: translate(calc(-30px * var(--t, 1)), calc(70px * var(--t, 1))) scale(.92); }
  75% { transform: translate(calc(-60px * var(--t, 1)), calc(-20px * var(--t, 1))) scale(1); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Shared glow recipes: colour 0% -> half alpha 45% -> transparent. */
.v3-glow-teal {
  background: radial-gradient(circle closest-side, rgb(var(--teal-rgb) / .5) 0%, rgb(var(--teal-rgb) / .24) 45%, rgb(var(--teal-rgb) / 0) 100%);
  animation: v3-driftA 23s var(--drift) -9s infinite, v3-breatheA 11s ease-in-out -4s infinite;
}

.v3-glow-navy {
  background: radial-gradient(circle closest-side, rgb(var(--navy-rgb) / .17) 0%, rgb(var(--navy-rgb) / .08) 45%, rgb(var(--navy-rgb) / 0) 100%);
  animation: v3-driftB 29s var(--drift) -13s infinite;
}

.v3-glow-gold {
  background: radial-gradient(circle closest-side, rgb(var(--gold-rgb) / .5) 0%, rgb(var(--gold-rgb) / .25) 45%, rgb(var(--gold-rgb) / 0) 100%);
  animation: v3-driftC 19s var(--drift) -6s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .v3-glow { animation: none !important; }
}

/* ----------------------------------------------------------------- nav */

.v3-nav {
  position: fixed;
  top: 12px;
  left: 0;
  right: var(--lock-gap, 0px); /* scrollbar width while a dialog locks scrolling */
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 max(48px, env(safe-area-inset-left)) 0 max(48px, env(safe-area-inset-right));
  pointer-events: none;
}

.v3-nav-bar {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 12px 0 24px;
  border-radius: 999px;
  background: rgb(var(--white-rgb) / .72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  pointer-events: auto;
}

.v3-nav-logo {
  justify-self: start;
  display: flex;
  align-items: center;
  border-radius: 6px;
  text-decoration: none;
}

.v3-nav-logo img { display: block; width: auto; height: 24px; }

.v3-nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  white-space: nowrap;
}

@media (max-width: 1023px) {
  .v3-nav-links { gap: 28px; }
}

.v3-nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
}

.v3-nav-link[aria-current] { color: var(--accent); font-weight: 600; }

/* The page you are on (the blog), or its section (on an article): Deep
   Navy, as the blog reference draws it. The home page's section links
   light up in teal. */
.v3-nav-link[aria-current="page"],
.v3-nav-link[aria-current="true"] { color: var(--ink); }

.v3-nav-link--blog {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* "New": the newest employer article is under 14 days old (v3-home.js). Static, never pulses. */
.v3-nav-new-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.v3-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

/* Home and blog: Book a call, then Log in. */
.v3-nav:not(.v3-nav--legal) .v3-nav-actions { gap: 10px; }

/* Near 1024px the five links need the room between them and the buttons. */
@media (max-width: 1199px) {
  .v3-nav:not(.v3-nav--legal) .v3-nav-links { gap: 28px; }
}

.v3-nav-toggle,
.v3-nav-sheet { display: none; }

.v3-nav-scrim { display: none; }

/* Legal pages: logo · links · button in a flex row; links drop below 768. */
.v3-nav--legal {
  padding: 0 clamp(12px, 3vw, 48px);
}

.v3-nav--legal .v3-nav-bar {
  height: clamp(56px, 6vw, 64px);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 12px 0 clamp(16px, 2vw, 24px);
}

.v3-nav--legal .v3-nav-logo img { height: clamp(20px, 2vw, 24px); }
.v3-nav--legal .v3-btn-nav { flex: none; }

@media (max-width: 767px) {
  .v3-nav--legal .v3-nav-links { display: none; }
}

/* Below 1024px (phones and tablets): a 56px pill, logo · Book a call ·
   menu, that opens into a sheet. The full row (five links, Book a call and
   Log in) needs about 980px. */
@media (max-width: 1023px) {
  .v3-nav:not(.v3-nav--legal) {
    padding: 0 max(12px, env(safe-area-inset-left)) 0 max(12px, env(safe-area-inset-right));
  }

  .v3-nav:not(.v3-nav--legal) .v3-nav-bar {
    height: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 36px auto;
    align-items: center;
    padding: 9px 10px 9px 16px;
    border-radius: 28px;
    transition: background-color .25s ease-out, border-color .25s ease-out, box-shadow .25s ease-out, border-radius .25s ease-out, padding .25s ease-out;
  }

  .v3-nav:not(.v3-nav--legal) .v3-nav-logo img { height: 20px; }
  .v3-nav:not(.v3-nav--legal) .v3-nav-links { display: none; }

  .v3-nav:not(.v3-nav--legal) .v3-btn-nav { height: 36px; padding: 0 14px; font-size: 13px; }
  .v3-nav:not(.v3-nav--legal) .v3-nav-actions { gap: 6px; }
  .v3-nav-login { display: none; }

  .v3-nav-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: -4px 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }

  .v3-nav-toggle .v3-nav-icon-close { display: none; }

  .v3-nav-sheet {
    grid-column: 1 / -1;
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows .25s ease-out, visibility 0s linear .25s;
  }

  .v3-nav-sheet-clip { min-height: 0; overflow: hidden; }

  .v3-nav-sheet-list {
    display: flex;
    flex-direction: column;
    padding: 20px 6px 6px;
  }

  /* Line the links up with the card edge rather than the logo. */
  .v3-nav-sheet-list { margin-left: -8px; }

  .v3-nav-sheet-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 10px;
    border-radius: 12px;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -.02em;
    color: var(--ink);
    text-decoration: none;
  }

  .v3-nav-sheet-link .v3-i { color: var(--text-3); }

  .v3-nav-sheet-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  /* Log in: a full-width quiet button under the links. */
  .v3-nav-sheet-foot {
    margin-left: -8px;
    padding: 8px 6px 6px;
  }

  .v3-nav.is-open .v3-nav-bar {
    padding: 9px 9px 11px 17px;
    border-color: transparent;
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow-float);
  }

  .v3-nav.is-open .v3-nav-sheet {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows .25s ease-out, visibility 0s;
  }

  .v3-nav.is-open .v3-nav-toggle { background: var(--tray); }
  .v3-nav.is-open .v3-nav-toggle .v3-nav-icon-menu { display: none; }
  .v3-nav.is-open .v3-nav-toggle .v3-nav-icon-close { display: block; }

  .v3-nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 49;
    background: rgb(var(--navy-rgb) / .34);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease-out, visibility 0s linear .25s;
  }

  .v3-nav-scrim.is-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity .25s ease-out, visibility 0s;
  }
}

@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
  .v3-nav:not(.v3-nav--legal) .v3-nav-bar,
  .v3-nav-sheet,
  .v3-nav.is-open .v3-nav-sheet,
  .v3-nav-scrim,
  .v3-nav-scrim.is-visible { transition: none; }
}

/* -------------------------------------------------------------- footer */

.v3-footer {
  width: min(1200px, 100% - 2 * var(--gutter));
  margin: 96px auto 0;
  padding: 0 0 56px;
  display: flex;
  flex-direction: column;
}

.v3-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--hairline);
}

.v3-footer-brand {
  display: flex;
  align-items: center;
  gap: 28px;
}

.v3-footer-logo { display: flex; border-radius: 6px; }
.v3-footer-logo img { display: block; width: auto; height: 26px; }

.v3-footer-tagline {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
}

.v3-footer-tagline > span { display: block; }

.v3-footer-links {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
}

.v3-footer-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
}

.v3-footer-legal {
  margin-top: 28px;
  max-width: 1000px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-2);
}

.v3-footer-bottom {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}

.v3-footer-copy > span + span::before { content: " · "; }

.v3-footer-legal-links {
  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
}

.v3-footer-legal-links a { color: var(--text-2); text-decoration: none; }

/* The LinkedIn link: a round icon button after the legal links. The negative
   margin keeps the row's height; position anchors the touch hit area. */
.v3-footer-legal-links .v3-footer-social {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: -6px 0;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  color: var(--ink-2);
}

@media (hover: hover) and (pointer: fine) {
  .v3-footer-legal-links .v3-footer-social:hover { color: var(--accent); }
}

@media (max-width: 1023px) {
  .v3-footer-top { flex-wrap: wrap; gap: 24px 48px; }
  .v3-footer-links { flex-wrap: wrap; gap: 12px 32px; }
  .v3-footer-bottom { flex-wrap: wrap; gap: 12px 24px; }
}

@media (max-width: 767px) {
  .v3-footer { margin-top: 64px; padding-bottom: 40px; }

  .v3-footer-top {
    display: block;
    padding-bottom: 28px;
  }

  .v3-footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .v3-footer-logo img { height: 22px; }

  .v3-footer-links {
    margin-top: 24px;
    flex-wrap: wrap;
    gap: 12px 24px;
  }

  .v3-footer-legal {
    margin-top: 24px;
    font-size: 12px;
    line-height: 1.7;
  }

  .v3-footer-bottom {
    margin-top: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
  }

  .v3-footer-copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .v3-footer-copy > span + span::before { content: none; }
  .v3-footer-legal-links { gap: 20px; }
}

/* Legal pages: the footer sits in a padded 1200px column, as in the design. */
.v3-footer--legal {
  width: auto;
  max-width: 1200px;
  margin: clamp(56px, 8vw, 96px) auto 0;
  padding: 0 clamp(16px, 4vw, 48px) clamp(40px, 5vw, 56px);
}

.v3-footer--legal .v3-footer-top {
  flex-wrap: wrap;
  gap: 24px 48px;
  padding-bottom: clamp(24px, 3vw, 36px);
}

.v3-footer--legal .v3-footer-brand { flex-wrap: wrap; gap: 16px 28px; }
.v3-footer--legal .v3-footer-links { flex-wrap: wrap; gap: 12px 32px; }
.v3-footer--legal .v3-footer-bottom { flex-wrap: wrap; gap: 12px 24px; }

@media (max-width: 767px) {
  .v3-footer--legal { margin-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(40px, 5vw, 56px); }
  .v3-footer--legal .v3-footer-top { display: flex; padding-bottom: clamp(24px, 3vw, 36px); }
  .v3-footer--legal .v3-footer-brand { flex-direction: row; align-items: center; }
  .v3-footer--legal .v3-footer-logo img { height: 26px; }
  .v3-footer--legal .v3-footer-links { margin-top: 0; }
  .v3-footer--legal .v3-footer-legal { margin-top: 28px; font-size: 13px; line-height: 1.75; }
  .v3-footer--legal .v3-footer-bottom { margin-top: 28px; flex-direction: row; align-items: center; font-size: 13px; }
  .v3-footer--legal .v3-footer-copy { display: block; }
  .v3-footer--legal .v3-footer-copy > span + span::before { content: " · "; }
  .v3-footer--legal .v3-footer-legal-links { gap: 24px; }
}

/* --------------------------------------------------------- scroll reveal */

/* Sections fade in and rise 12px once 15% of them is on screen (v3-home.js). */
.v3-js .v3-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s ease-out, transform .4s ease-out;
}

.v3-js .v3-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .v3-js .v3-reveal { opacity: 1; transform: none; transition: none; }
}

@media print {
  .v3-js .v3-reveal { opacity: 1; transform: none; }
}
