/* =========================================================================
   Gifted Talent — Design System (draft 2)
   Swiss Modernism 2.0 structural backbone + Exaggerated Minimalism heroes
   ========================================================================= */

/* ------------------------------ Fonts ------------------------------------ */

@font-face {
  font-family: 'Mona Sans';
  src: url('../assets/fonts/Mona-Sans.woff2') format('woff2-variations'),
       url('../assets/fonts/Mona-Sans.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../assets/fonts/JetBrainsMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------ Tokens ----------------------------------- */

:root {
  /* Colour */
  --bg:        #212121;
  --text:     #EDE9E1;
  --accent:   #A9CAD1;
  --line:    rgba(237, 233, 225, 0.14);
  --line-strong: rgba(237, 233, 225, 0.28);
  --muted:   rgba(237, 233, 225, 0.62);

  /* Type */
  --font-sans: 'Mona Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Type scale */
  --t-hero:    clamp(2rem, 3.6vw + 0.6rem, 4rem); /* Hero scale — uniform across all photo-hero pages */
  --t-statement: clamp(1.625rem, 1.5vw + 1rem, 2.75rem); /* About hero — paragraph weight */
  --t-cta:     clamp(2.5rem, 6vw, 4.75rem);
  --t-h3:      clamp(1.05rem, 0.4vw + 0.95rem, 1.25rem);
  --t-body:    clamp(1rem, 0.2vw + 0.95rem, 1.0625rem);
  --t-small:   0.8125rem;
  --t-micro:   0.6875rem;

  /* Line heights */
  --lh-hero: 1.05;
  --lh-statement: 1.25;
  --lh-tight: 1.12;
  --lh-body: 1.55;

  /* Spacing — 8px base unit */
  --s-1: 0.5rem;   --s-2: 1rem;    --s-3: 1.5rem;   --s-4: 2rem;
  --s-5: 3rem;     --s-6: 4rem;    --s-7: 6rem;     --s-8: 8rem;
  --s-9: 12rem;

  /* Layout */
  --container: 1280px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
  --header-h: 88px;
  --footer-h: 60px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --dur-1: 250ms;
  --dur-2: 500ms;
  --dur-3: 900ms;
}

/* ------------------------------ Reset ------------------------------------ */

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "ss01", "cv11";
  overflow-x: hidden;
}

body { min-height: 100vh; min-height: 100dvh; }

img, svg, video { display: block; max-width: 100%; height: auto; }

/* Scale the whole UI down on shorter laptop viewports.
   The vw-based clamps would otherwise render the same as on tall desktops,
   making everything feel oversized on a ~700px-tall screen.
   Shrinking the root font-size scales every rem-based value (typography
   and spacing) proportionally in one stroke. Header/footer are in px,
   so they're overridden separately. */
/* Desktop and up: cap the container at 85vw so the page gets proper
   breathing margins on smaller desktop / laptop screens rather than
   running edge-to-edge. Mobile keeps full-width container so the
   inner --gutter provides the only side margin. */
@media (min-width: 881px) {
  :root {
    --container: min(1280px, 85vw);
  }
}

@media (min-width: 881px) and (max-height: 800px) {
  html, body { font-size: 14px; }
  :root {
    --header-h: 72px;
    --footer-h: 50px;
    /* Hero scale tightened further so the headline doesn't sweep across
       into the figure on the inner hero pages. */
    --t-hero: clamp(1.625rem, 3vw + 0.4rem, 3.25rem);
  }
}

picture { display: contents; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit; color: inherit;
  background: none; border: 0; padding: 0; cursor: pointer;
}

input, textarea, select {
  font: inherit; color: inherit;
  background: transparent; border: 0; outline: 0;
}

::selection { background: var(--accent); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ---------------------------- Layout primitives -------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0; width: 100%;
}

/* ------------------------------ Typography ------------------------------- */

.t-hero {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--t-hero);
  line-height: var(--lh-hero);
  letter-spacing: -0.025em;
  margin: 0;
  text-align: left;
}

.t-statement {
  font-weight: 400;
  font-size: var(--t-statement);
  line-height: var(--lh-statement);
  letter-spacing: -0.015em;
  margin: 0;
  text-align: left;
  text-wrap: balance;
  max-width: 28ch;
}

.t-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.t-h3 {
  font-weight: 600;
  font-size: var(--t-h3);
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin: 0 0 var(--s-1) 0;
}

p {
  margin: 0;
  font-size: var(--t-body);
  line-height: var(--lh-body);
  color: var(--text);
}

p + p { margin-top: var(--s-2); }

.body-lead {
  font-size: clamp(1.0625rem, 0.3vw + 1rem, 1.1875rem);
  line-height: 1.5;
  color: var(--text);
  max-width: 56ch;
}

.muted { color: var(--muted); }
.accent { color: var(--accent); }
.mono { font-family: var(--font-mono); }

/* ------------------------------ Header ---------------------------------- */
/* Chrome occupies the full viewport width — logo hard-left, nav hard-right */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Align logo/nav to the same inner edge as .container content */
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  padding-block: var(--s-1);
  background: transparent;
  transition: background var(--dur-2) var(--ease),
              backdrop-filter var(--dur-2) var(--ease),
              opacity var(--dur-2) var(--ease),
              transform var(--dur-2) var(--ease);
}

.site-header.is-scrolled {
  background: rgba(33, 33, 33, 0.6);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
}

.site-header__logo img {
  height: 52px;
  width: auto;
  max-width: none; /* override global max-width: 100% so aspect ratio is preserved */
  margin-left: -8px; /* compensate for built-in whitespace in the PNG so the visible mark aligns with content edge */
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
}
@media (max-width: 880px) {
  .site-header__logo img { height: 40px; margin-left: -5px; }
}
/* Logo proportional to the reduced header height on shorter laptops
   (52px on 88px header -> 42px on 72px header keeps the same ratio). */
@media (min-width: 881px) and (max-height: 800px) {
  .site-header__logo img { height: 42px; }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
}

.site-nav a {
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  color: var(--text);
  opacity: 0.85;
  transition: color var(--dur-1) var(--ease), opacity var(--dur-1) var(--ease);
  position: relative;
  padding-block: var(--s-1);
}

.site-nav a:hover { color: var(--accent); opacity: 1; }

.site-nav a[aria-current="page"] {
  opacity: 1;
}
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-right: -8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text);
  position: relative;
  transition: background var(--dur-1) var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--text);
  transition: transform var(--dur-1) var(--ease);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top:  7px; }

body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span::after  { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------- Mobile nav overlay ----------------------- */

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(33, 33, 33, 0.96);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  padding-block: var(--header-h);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-2) var(--ease);
}
body.nav-open .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

.nav-overlay__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  width: 100%;
}

.nav-overlay__list a {
  display: inline-block;
  font-size: clamp(2rem, 8vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding-block: var(--s-1);
  transition: color var(--dur-1) var(--ease);
}
.nav-overlay__list a:hover { color: var(--accent); }

.nav-overlay__list a::after {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 1ch;
  background: var(--text);
  margin-left: 0.05em;
  vertical-align: -0.08em;
  opacity: 0;
}
.nav-overlay__list .nav-typing::after { opacity: 1; animation: caret 1s steps(1) infinite; }

.nav-overlay__list .nav-arrow {
  color: var(--muted);
  display: inline-block;
  margin-left: 0.4em;
  transform: translateX(-4px);
  opacity: 0;
  transition: transform var(--dur-2) var(--ease), opacity var(--dur-2) var(--ease), color var(--dur-1) var(--ease);
}
.nav-overlay__list a:hover .nav-arrow,
.nav-overlay__list .nav-typed .nav-arrow {
  transform: translateX(0);
  opacity: 1;
}
.nav-overlay__list a:hover .nav-arrow { color: var(--accent); }

/* ------------------------------ Footer ---------------------------------- */

/* Static footer — sits at natural end of document. Hidden on home (no scroll). */
.site-footer {
  position: relative;
  z-index: 5;
  height: var(--footer-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  background: transparent;
  font-size: var(--t-small);
  color: var(--muted);
}

body.page--home .site-footer { display: none; }

.site-footer__copy { color: var(--muted); }

.site-footer__linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  transition: color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.site-footer__linkedin:hover {
  color: var(--accent);
}
.site-footer__linkedin svg { width: 20px; height: 20px; }

/* ------------------------------ Page shell ------------------------------ */

main { display: block; }

.page {
  padding-bottom: var(--s-7);
}

/* Home — strict single-screen, no scroll */
body.page--home {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
body.page--home main,
body.page--home .hero--home {
  height: 100%;
}
/* Slow the chrome reveal on home to match the gentler beat fade pace */
/* ------------------------------ Hero ------------------------------------ */
/* Anchored top-left of the negative space — text does not float vertically */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;       /* Anchor top, not center */
  overflow: hidden;
}

.hero--media { isolation: isolate; }

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(33,33,33,0.20) 0%, rgba(33,33,33,0.08) 30%, rgba(33,33,33,0.55) 100%);
}

.hero__body {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: calc(var(--header-h) + clamp(var(--s-4), 8vh, var(--s-7)));
  padding-bottom: var(--s-7);
}

/* Headline column widths — set on the heading itself so ch units scale with type */
.hero--home      .t-hero { max-width: none; }
.hero--companies .t-hero { max-width: 18em; }
.hero--talent    .t-hero { max-width: 16em; }

/* On shorter laptop viewports, cap the headline at half the container
   so the text sits squarely on the left and doesn't sweep into the figure. */
@media (min-width: 881px) and (max-height: 800px) {
  .hero--companies .t-hero,
  .hero--talent .t-hero { max-width: 50%; }
}

/* About — typographic hero, paragraph treatment */
.hero--about {
  min-height: 100vh;
  min-height: 100svh;
}
.hero--about .hero__body {
  max-width: none;
}
.hero--about .t-statement { max-width: 28ch; }

/* Object-position tuning — bias crops toward focal points where needed */
.hero--home .hero__media img { object-position: 65% 65%; }
.hero--companies .hero__media img { object-position: center; }
.hero--talent .hero__media img { object-position: 65% 85%; }
@media (max-width: 880px) {
  .hero--home .hero__media img { object-position: 45% 85%; }
  .hero--companies .hero__media img { object-position: center 70%; }
  .hero--talent .hero__media img { object-position: center center; }
}
/* Portrait viewports above the mobile breakpoint (e.g. vertical monitors). */
@media (orientation: portrait) and (min-width: 881px) {
  .hero--home .hero__media img { object-position: 45% 85%; }
  .hero--talent .hero__media img { object-position: 45% center; }
}

/* ----------------------------- Home hero specifics ---------------------- */

.home-hero__line {
  display: block;
  white-space: pre-wrap;
}

/* The only animated beat on the home page: "talent" and "for the exponential age"
   transition from cream to Gifted blue. Everything else renders static. */
.home-hero__shift {
  color: var(--text);
  transition: color 1400ms var(--ease);
}
.home-hero__shift.is-shifted { color: var(--accent); }

.home-hero__pathways {
  margin-top: clamp(var(--s-4), 4vw, var(--s-5));
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(var(--s-3), 3vw, var(--s-5));
}

.pathway {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 1rem;
  letter-spacing: -0.005em;
  color: var(--text);
  padding: var(--s-1) 0;
  transition: color var(--dur-1) var(--ease);
}
.pathway:hover { color: var(--accent); }
.pathway__arrow {
  display: inline-block;
  transition: transform var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
  color: var(--muted);
}
@media (hover: hover) {
  .pathway--right:hover .pathway__arrow { transform: translateX(4px); color: var(--accent); }
}

.home-hero__divider {
  border-left: 1px solid var(--line-strong);
  height: 32px;
  align-self: center;
}

/* ----------------------------- Statement band --------------------------- */
/* Mid-page typographic moment — replaces image hero. Thin lines top/bottom, generous breath. */

.statement-band {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  margin-block: clamp(var(--s-3), 3vw, var(--s-4));
}
.statement-band__inner {
  padding-block: clamp(var(--s-6), 10vw, var(--s-8));
  text-align: center;
}
.statement-band__text {
  font-size: var(--t-statement);
  line-height: var(--lh-statement);
  letter-spacing: -0.015em;
  font-weight: 500;
  margin: 0 auto;
  max-width: 36ch;
  text-wrap: balance;
}

/* ----------------------------- Image band ------------------------------- */
/* Full-bleed, 100vh — treated as a second hero moment */

.image-band {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.image-band__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.image-band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.image-band__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(33,33,33,0) 40%, rgba(33,33,33,0.55) 100%);
}

.image-band__overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  justify-content: flex-end;
}

.image-band__text {
  font-size: clamp(1.5rem, 3vw + 0.5rem, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 500;
  max-width: 22ch;
  text-align: right;
  text-wrap: balance;
}

@media (max-width: 880px) {
  .image-band__media img { object-position: center center; }
  .image-band__overlay { justify-content: flex-end; }
  .image-band__text { text-align: right; max-width: 14ch; }
}

/* ----------------------------- Section ---------------------------------- */
/* Single label only — line above and below */

.section {
  padding-block: clamp(var(--s-6), 10vw, var(--s-8));
  min-height: clamp(70vh, 80vh, 90vh);  /* breath without forcing strict 100vh */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section__head {
  display: flex;
  align-items: center;
  padding: var(--s-3) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2rem, 3.5vw, 3.5rem);
}

.section__label {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* Accent colour — Gifted blue, used site-wide */
.section__label-audience--companies,
.section__label-audience--talent,
.section__label-audience--about,
.section__label-audience--contact { color: #A9CAD1; }

/* Nav hover + active-page underline */
.site-nav a:hover,
.nav-overlay__list a:hover { color: #A9CAD1; }
.site-nav a[aria-current="page"]::after { background: #A9CAD1; }

/* CTA heading colour */
.cta__heading,
body.page--contact .contact-copy .t-cta { color: #A9CAD1; }

/* CTA body link colour ("note") */
.cta__body a { color: #A9CAD1; border-bottom-color: #A9CAD1; }

/* LinkedIn icon hover colour in the footer */
.site-footer__linkedin:hover { color: #A9CAD1; }

/* Contact form submit button hover */
body.page--contact .form__submit:hover { background: #A9CAD1; }
/* Contact — fixed single-screen on desktop, matching About and Home */
/* Fixed single-screen only on tall enough viewports.
   On shorter laptops the content scrolls naturally instead of clipping. */
@media (min-width: 881px) and (min-height: 800px) {
  body.page--contact {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  body.page--contact main {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: var(--header-h);
    padding-bottom: 0;
  }
  body.page--contact .contact-grid {
    padding-top: 0;
  }
}

/* About page — no hero, no CTA. Add top breathing room so principles sit below header. */
body.page--about main {
  padding-top: calc(var(--header-h) + clamp(var(--s-5), 10vw, var(--s-7)));
}
/* Section flows naturally on all sizes — no 80vh min-height centring, no extra padding stacking */
body.page--about .section {
  min-height: auto;
  display: block;
  padding-block: 0;
}

/* Bracketed section treatment: content flows naturally with a closing line that matches the breadcrumb width */
.section--bracketed {
  min-height: auto !important;
  display: block !important;
  padding-block: clamp(var(--s-6), 10vw, var(--s-8));
}

/* About — fixed single-screen only on tall enough viewports.
   On shorter laptops the principles scroll naturally. */
@media (min-width: 881px) and (min-height: 800px) {
  body.page--about {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  body.page--about main {
    flex: 1;
    min-height: 0;
    padding-top: var(--header-h);
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* Columns */
.columns-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 0;
}
.columns-3 > * {
  padding: 0 var(--s-3) var(--s-1);
  border-left: 1px solid var(--line);
}
.columns-3 > *:first-child { border-left: 0; padding-left: 0; }

.list-block {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4) var(--s-5);
}

.list-block .item {
  position: relative;
  padding-top: var(--s-1);
  /* No per-item dividers — let principles breathe */
}
/* Sub-item numbers retired — breadcrumb labels carry the structure */
.list-block .item__num,
.columns-3 .item__num { display: none; }

@media (max-width: 720px) {
  .columns-3 { grid-template-columns: 1fr; }
  .columns-3 > * {
    border-left: 0;
    padding: var(--s-4) 0 var(--s-1);
  }
  .columns-3 > *:first-child { padding-top: 0; }

  .list-block { grid-template-columns: 1fr; gap: var(--s-4); }
}

/* ----------------------------- CTA section ------------------------------ */

.cta {
  padding-block: clamp(var(--s-6), 9vw, var(--s-9));
}
.cta__heading {
  font-size: var(--t-cta);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 var(--s-3);
  font-weight: 500;
  color: var(--accent);
}
.cta__body {
  font-size: clamp(1.125rem, 0.4vw + 1rem, 1.25rem);
  max-width: 52ch;
  color: var(--text);
  text-wrap: balance;
}
.cta__body a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: opacity var(--dur-1) var(--ease);
}
.cta__body a:hover { opacity: 0.75; }

/* ----------------------------- About watermark -------------------------- */

.watermark {
  position: relative;
  isolation: isolate;
}
.watermark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url('../assets/icons/gifted_icon.svg');
  background-repeat: no-repeat;
  background-position: 96% 6%;
  background-size: clamp(420px, 48vw, 680px);
  opacity: 0.08;
  pointer-events: none;
}
@media (max-width: 720px) {
  .watermark::before {
    background-position: right -80px top 10%;
    opacity: 0.06;
  }
}

/* ----------------------------- Contact form ----------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(var(--s-4), 6vw, var(--s-7));
  padding-top: calc(var(--header-h) + clamp(var(--s-5), 10vw, var(--s-7)));
  align-items: start;
}

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-copy .t-cta {
  font-size: var(--t-cta);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--accent);
  margin: 0;
}

.contact-copy p {
  margin-top: var(--s-3);
  color: var(--text);
  font-size: clamp(1.0625rem, 0.3vw + 1rem, 1.1875rem);
  line-height: 1.5;
  max-width: 40ch;
}

.form { display: grid; gap: var(--s-3); }
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--s-2);
  transition: border-color var(--dur-1) var(--ease);
}
.field:focus-within { border-bottom-color: var(--accent); }
.field label {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea {
  width: 100%;
  font-size: 1rem;
  color: var(--text);
  padding: 6px 0 4px;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(237, 233, 225, 0.32); }

.form__submit {
  margin-top: var(--s-2);
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  letter-spacing: -0.005em;
  color: var(--bg);
  background: var(--text);
  padding: 14px 22px;
  border-radius: 999px;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.form__submit:hover { background: var(--accent); }
.form__submit:active { transform: translateY(1px); }
.form__submit .arr { transition: transform var(--dur-1) var(--ease); }
.form__submit:hover .arr { transform: translateX(3px); }

.form__success {
  display: none;
  padding: var(--s-3) 0;
  color: var(--accent);
  font-size: var(--t-body);
}
.form.is-sent .form__submit { display: none; }
.form.is-sent .form__success { display: block; }

/* ------------------------------ Typewriter ------------------------------ */

.typewriter { white-space: pre-wrap; }
.typewriter .tw-caret {
  display: inline-block;
  width: 0.06em;
  height: 0.85em;
  background: currentColor;
  vertical-align: -0.08em;
  margin-left: 0.05em;
  animation: caret 1s steps(1) infinite;
}
.typewriter.is-done .tw-caret { display: none; }

@keyframes caret { 50% { opacity: 0; } }

/* ------------------------------ Utilities ------------------------------- */

.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;
}

/* ------------------------------ Responsive ------------------------------ */

@media (max-width: 880px) {
  :root {
    --header-h: 64px;
    --footer-h: 56px;
  }

  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }

  /* Home hero pathways stack vertically */
  .home-hero__pathways {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .home-hero__divider { display: none; }
  .pathway--right .pathway__arrow { color: var(--muted); }
  .home-hero__pathways .pathway > span:first-child { min-width: 6em; }

  .hero--home .t-hero,
  .hero--companies .t-hero,
  .hero--talent .t-hero { max-width: 100%; }

  .hero--about .t-statement {
    font-size: clamp(1.375rem, 4.8vw + 0.5rem, 2rem);
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  :root { --gutter: 1.125rem; }
}

/* ----------------------- Reduced motion overrides ----------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
  .nav-overlay__list .nav-typing::after { display: none !important; }
}
