/* ============================================================
   Yoko Reynolds — Portfolio v3
   Type, colour and spacing values taken from the Figma export
   (Portfolio 2/style.txt). Layout is rebuilt responsively.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Gelasio:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --ink:          #000000;
  --ink-soft:     #2e2e30;
  --muted:        #6b6b70;
  --icon:         #8c8c8c;   /* LinkedIn mark in nav and footer */
  --foot-muted:   #666666;   /* footer menu and copyright */
  --line:         #d2d2d7;
  --line-soft:    #e8e9eb;
  --card-line:    #c7c7cc;   /* frame around the work-card thumbnails */
  --thumb-zoom:   1.04;      /* see .work-card .thumb img */
  --bg:           #ffffff;
  --surface:      #f6f8f9;   /* every banner, card and section background */

  --purple:       #af6adc;   /* kickers, eyebrows */
  --purple-vivid: #ac2ee8;   /* tool links, bio accents — sampled from the comps */
  --purple-deep:  #8b3fc4;   /* hover */
  --btn-grad:     linear-gradient(135deg, #ac2ee8, #af6adc, #a49ee4);
  --kicker-grad:  linear-gradient(90deg, #ac2ee8 0%, #a95fe6 37%, #a49ee4 100%);
  --band-grad:    linear-gradient(180deg, #cddcf1, #dfdaf1, #f0d8f0);

  --serif:        'Gelasio', Georgia, 'Times New Roman', serif;
  --sans:         'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --pad:          64px;      /* page gutter at desktop */
  --maxw:         1280px;
  --maxw-hero:    1002px;    /* 587 copy + 415 image */
  --maxw-mid:     1030px;

  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm:    0 2px 14px rgba(20,25,40,0.05);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-weight: 400;
  font-size: 1.125rem; line-height: 1.45; letter-spacing: -0.005em;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--purple); color: #fff; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: 80px 0; }
.section-sm { padding: 0 0 80px; }

.eyebrow {
  font-family: var(--sans); font-weight: 700; font-size: 1.125rem;
  line-height: 1.45; letter-spacing: -0.005em; text-transform: uppercase;
  display: inline-block;
  background: var(--kicker-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .eyebrow { color: var(--purple); -webkit-text-fill-color: currentColor; }
}

/* rhythm measured off Home.png: the kicker sits tight to the head, then the
   intro line and the cards each get a full breath of space */
.sec-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; margin-bottom: 80px; }
.sec-head h2 { font-size: clamp(3rem, 7.5vw, 6rem); line-height: 1.1; font-weight: 500; margin-top: 10px; }
.sec-head p { font-weight: 400; font-size: 1.125rem; line-height: 1.45; max-width: 888px; margin-top: 40px; }
.sec-head p strong { font-weight: 700; }
.sec-head p.semi { font-weight: 600; }
.sec-head p + p { margin-top: 20px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 80;
  background: rgba(255,255,255,0.94); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line-soft); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 24px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-family: var(--sans); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.005em; }
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a { font-weight: 500; font-size: 1rem; letter-spacing: -0.005em; transition: opacity .2s, color .2s; }
.nav-links a:hover { opacity: .7; }
.nav-links a.active { color: var(--purple-deep); }
.nav .ic { width: 22px; height: 22px; color: var(--icon); transition: opacity .2s; }
.nav .ic:hover { opacity: .7; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 4px; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- full-screen mobile menu (markup built in app.js) ----------
   display:none here, so it can never open above the mobile breakpoint. */
.nav-panel {
  display: none;
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  flex-direction: column; padding: 16px var(--pad) 40px;
  opacity: 0; visibility: hidden;
  transition: opacity .26s var(--ease), visibility .26s var(--ease);
}
.nav-panel.open { opacity: 1; visibility: visible; }
.np-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.np-brand { font-family: var(--sans); font-weight: 600; font-size: 1rem; letter-spacing: -0.005em; }
.np-close { background: none; border: 0; padding: 4px; cursor: pointer; color: var(--ink); }
.np-close svg { width: 26px; height: 26px; display: block; }
.np-links { list-style: none; display: flex; flex-direction: column; margin-top: 56px; }
.np-links a {
  display: block; padding: 14px 0;
  font-family: var(--serif); font-weight: 500; font-size: 2.25rem;
  line-height: 1.2; letter-spacing: -0.02em; transition: color .2s;
}
.np-links a.active { color: var(--purple-deep); }
.np-social { margin-top: auto; align-self: flex-start; color: var(--icon); }
.np-social svg { width: 24px; height: 24px; display: block; }

/* ---------- button ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 500; font-size: 1.125rem;
  line-height: 1.45; letter-spacing: -0.005em;
  border-radius: 999px; padding: 12px 46px; border: 0; cursor: pointer;
  background: var(--btn-grad); color: #fff;
  transition: opacity .2s, transform .2s;
}
.btn:hover { opacity: .9; transform: translateY(-1px); }

/* ---------- hero ---------- */
.hero { background: #020202; color: #fff; }
.hero-inner {
  max-width: var(--maxw-hero); margin: 0 auto;
  display: flex; align-items: center; justify-content: center; min-height: 562px;
}
/* rhythm measured off Home.png: band is 562px, text tight, button set apart */
.hero-copy {
  flex: 0 0 587px; padding: 96px 40px 56px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.hero-copy .btn { margin-top: 30px; }
/* the hero role is flat purple; section kickers use the gradient */
.hero .eyebrow { background: none; color: var(--purple); -webkit-text-fill-color: var(--purple); }
.hero h1 { font-size: clamp(3rem, 7.5vw, 6rem); line-height: 1.1; font-weight: 500; color: #fff; }
.hero p.sub { font-weight: 400; font-size: 1.125rem; line-height: 1.45; color: #fff; max-width: 507px; }
.hero-copy > * { margin: 0; }
/* the portrait sits flush with the bottom of the black band */
.hero-photo { flex: 0 0 415px; height: 563px; overflow: hidden; align-self: flex-end; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: bottom; }

/* ---------- stats ---------- */
.statbar { background: var(--surface); }
/* No side inset: the row centres itself, so a fixed one only eats width and
   wraps the three stats between 1025 and 1130px. .wrap supplies the gutter. */
.statbar .row {
  display: flex; align-items: center; justify-content: center; gap: 65px;
  padding: 48px 0; flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; }
.stat b { font-family: var(--serif); font-weight: 400; font-size: 3.25rem; line-height: 1; letter-spacing: -0.005em; }
.stat span { font-weight: 400; font-size: 0.875rem; line-height: 1.45; }

/* ---------- work cards ---------- */
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.work-card { display: flex; flex-direction: column; gap: 32px; }
/* the card lifts, the frame deepens and the image eases in a touch.
   .work-grid prefix outranks .reveal.in, which also sets transform */
.work-grid .work-card { transition: transform .3s var(--ease); }
.work-grid .work-card:hover,
.work-grid .work-card:focus-visible { transform: translateY(-4px); }
.work-card .thumb { transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.work-card:hover .thumb,
.work-card:focus-visible .thumb { border-color: #a9a9b0; box-shadow: 0 14px 32px rgba(20,25,40,0.10); }
.work-card .thumb img { transition: transform .5s var(--ease); }
.work-card:hover .thumb img,
.work-card:focus-visible .thumb img { transform: scale(calc(var(--thumb-zoom) * 1.03)); }
.work-card h3 { transition: color .3s var(--ease); }
.work-card:hover h3,
.work-card:focus-visible h3 { color: var(--purple-deep); }
.work-card:focus-visible { outline: none; }
.work-card:focus-visible .thumb { outline: 2px solid var(--purple); outline-offset: 3px; }
/* the card frame is a real border, not one baked into the export */
.work-card .thumb {
  width: 100%; aspect-ratio: 363 / 300; border-radius: 30px; overflow: hidden;
  background: #fff; border: 1px solid var(--card-line);
}
/* The exports have their own ~30px corner baked in, which shrinks with the
   card and can peek past the CSS clip as a pale notch. A slight zoom pushes
   that baked corner outside the frame so the CSS radius alone shapes the
   card, at any card width. The source is 700px into a <400px box, so this
   is still downscaling — no softening. */
.work-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(var(--thumb-zoom));
}
.work-card h3 { font-family: var(--sans); font-weight: 600; font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.005em; }

/* hairline under the three cards, flush with the edges of the card grid */
.rule { border-top: 1px solid var(--line); margin: 76px 0 0; }
/* the About page insets its rule instead, and takes its spacing from the
   section padding either side */
.rule--inset { max-width: 1026px; margin: 0 auto; }

/* ---------- AI cards ---------- */
/* two-up, on the same 1030 rule as .bring-grid: four columns left the longer
   card copy on a ~30-character measure */
.ai-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: var(--maxw-mid); margin: 0 auto; }
.ai-card { background: var(--surface); border-radius: 30px; padding: 40px 48px; display: flex; flex-direction: column; gap: 12px; }
.ai-card h3 { font-family: var(--sans); font-weight: 600; font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.005em; }
.ai-card p { font-weight: 400; font-size: 1rem; line-height: 1.45; }
.ai-card .tools { font-weight: 400; font-size: 1rem; line-height: 1.45; color: var(--purple-vivid); margin-top: auto; }

/* ---------- gradient CTA band ---------- */
.cta-band {
  background: var(--band-grad); border-radius: 30px; padding: 65px 132px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px;
}
/* About.png lines its band up with the 1026px rules above it */
.cta-band--inset { max-width: 1026px; margin: 0 auto; }
.cta-band h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.25rem, 4.4vw, 3.5rem); line-height: 1.25; letter-spacing: -0.005em; }
.cta-band p { font-weight: 400; font-size: 1.5rem; line-height: 1.45; max-width: 720px; }

/* ---------- footer ---------- */
footer { display: flex; flex-direction: column; gap: 30px; padding: 64px var(--pad); max-width: var(--maxw); margin: 0 auto; }
footer .foot-top { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 24px; }
footer .foot-bottom { width: 100%; }
footer .copyright { font-size: 12px; color: var(--foot-muted); }
/* brand left, menu and social together on the right, as the comp has it */
footer .foot-right { display: flex; align-items: center; gap: 24px; }
footer .brand { font-weight: 600; font-size: 1.25rem; letter-spacing: -0.005em; }
footer .flinks { display: flex; gap: 24px; }
footer .flinks a { font-weight: 500; font-size: 1rem; letter-spacing: -0.005em; color: var(--foot-muted); transition: opacity .2s; }
footer .flinks a:hover { opacity: .7; }
footer .ic { width: 22px; height: 22px; color: var(--icon); transition: opacity .2s; }
footer .ic:hover { opacity: .7; }

/* ---------- about ---------- */
/* measured off About.png: a 375px lede column beside a 239px portrait */
.about-hero { padding: 60px 0; }
.about-hero .grid { display: grid; grid-template-columns: 1fr auto; gap: 70px; align-items: center; max-width: 684px; margin: 0 auto; }
.about-hero .eyebrow { margin-bottom: 20px; }
.about-hero .lede { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 1.6875rem); line-height: 1.42; }
.about-hero .portrait { width: 239px; height: 239px; border-radius: 50%; overflow: hidden; }
.about-hero .portrait img { width: 100%; height: 100%; object-fit: cover; }

.quote-band { background: var(--surface); padding: 60px 0; }
.quote-band p { font-family: var(--serif); font-weight: 500; font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.3; text-align: center; max-width: 22ch; margin: 0 auto; }

/* 544px measure, off About.png: every bio line starts at x=368 in a 1280
   frame. The inner .wrap adds a gutter each side, so add it back here or
   the text column comes out 2 * --pad narrower than the design. */
.bio { max-width: calc(544px + var(--pad) * 2); margin: 0 auto; padding: 80px 0; }
.bio p { font-weight: 400; font-size: 1rem; line-height: 1.45; margin-bottom: 20px; }
.bio p:last-child { margin-bottom: 0; }
.bio strong { font-weight: 700; }
.bio .accent { color: var(--purple-vivid); }

.bring-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: var(--maxw-mid); margin: 0 auto; }
.bring-card { background: var(--surface); border-radius: 30px; padding: 40px 30px; display: flex; flex-direction: column; gap: 16px; }
.bring-card h3 { font-family: var(--sans); font-weight: 600; font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.005em; }
.bring-card p { font-weight: 400; font-size: 1rem; line-height: 1.45; }

/* ---------- testimonial carousel ---------- */
.tst { background: var(--surface); padding: 80px 0 30px; overflow: hidden; }
/* geometry measured off About.png: the rail starts 128px in, not at the page
   gutter, and the cards carry far more air than a default card */
.tst-track {
  /* no snap on desktop: it fights the arrow buttons. Mobile re-enables it. */
  display: flex; gap: 30px; overflow-x: auto; scroll-snap-type: none;
  padding-left: max(24px, calc((100vw - var(--maxw)) / 2 + 128px));
  padding-right: 32px; padding-bottom: 0;
  scrollbar-width: none; -ms-overflow-style: none;
  cursor: grab; scroll-behavior: smooth; overscroll-behavior-x: contain;
}
.tst-track::-webkit-scrollbar { display: none; }
.tst-track.dragging { cursor: grabbing; scroll-behavior: auto; }
.tst-card {
  /* fixed, not viewport-relative: the rail scrolls sideways, so cards keep
     their full width instead of shrinking as the window narrows */
  flex: 0 0 392px;
  background: #fff; border-radius: 30px; padding: 68px 67px;
  box-shadow: var(--shadow-sm); user-select: none; text-align: center;
}
.tst-card blockquote { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.25rem; line-height: 1.45; }
.tst-card blockquote strong { font-weight: 700; }
.tst-card cite { display: block; margin-top: 28px; font-style: normal; font-size: 0.875rem; color: var(--muted); line-height: 1.45; }
.tst-nav { display: flex; gap: 30px; justify-content: flex-end; max-width: var(--maxw); margin: 35px auto 0; padding: 0 80px; }
.tst-nav button {
  width: 53px; height: 53px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: var(--ink); box-shadow: var(--shadow-sm);
  display: grid; place-items: center; transition: background .2s, color .2s, opacity .2s;
}
.tst-nav button:hover:not(:disabled) { background: var(--purple); color: #fff; }
.tst-nav button:disabled { opacity: .35; cursor: default; }
.tst-nav svg { width: 16px; height: 16px; }

/* ---------- experience timeline ---------- */
/* off About.png: rules run 1026px like the section rule above, each row is
   inset 40px inside them, and the description is a fixed 580px measure —
   it stops well short of the rule rather than filling the row */
.tl { max-width: 1026px; margin: 0 auto; }
.tl .job { display: grid; grid-template-columns: 210px minmax(0, 580px); gap: 40px; padding: 32px 40px; border-top: 1px solid var(--line); }
/* no closing rule under the last role — the comp ends on the text */
.tl .when { font-size: 0.9375rem; color: var(--muted); padding-top: 4px; }
.tl h3 { font-family: var(--sans); font-weight: 600; font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.005em; }
.tl .org { font-size: 1rem; color: var(--muted); margin-bottom: 16px; }
.tl p { font-weight: 400; font-size: 1rem; line-height: 1.5; margin-bottom: 12px; }
.tl ul { padding-left: 20px; margin: 0; }
.tl li { font-weight: 400; font-size: 1rem; line-height: 1.5; margin-bottom: 8px; }

/* ---------- case study ---------- */
.case-hero { padding: 60px 0 32px; }
.case-hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); line-height: 1.1; font-weight: 500; margin: 20px 0; max-width: 20ch; }
.case-hero .sub { font-weight: 400; font-size: 1.5rem; line-height: 1.45; max-width: 62ch; }

.case-figure { margin: 40px 0; }
.case-figure img { width: 100%; border-radius: 8px; }
.case-figure figcaption { margin-top: 16px; font-size: 0.9375rem; color: var(--muted); text-align: center; }

.case-body { max-width: 760px; margin: 0 auto; }
.case-block { margin-bottom: 48px; }
.case-block h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; margin-bottom: 20px; }
.case-block h3 { font-family: var(--sans); font-size: 1.25rem; font-weight: 600; margin: 28px 0 10px; letter-spacing: -0.005em; }
.case-block p { font-weight: 400; font-size: 1.0625rem; line-height: 1.6; margin-bottom: 16px; }
.case-block ul, .case-block ol { padding-left: 22px; margin-bottom: 16px; }
.case-block li { font-size: 1.0625rem; line-height: 1.6; margin-bottom: 10px; }
.case-block strong { font-weight: 700; }

.summary-card { background: var(--surface); border-radius: 8px; padding: 40px; margin-bottom: 48px; }
.summary-card dl { display: grid; grid-template-columns: 130px 1fr; gap: 16px 24px; margin: 0; }
.summary-card dt { font-size: 0.8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--purple); font-weight: 700; padding-top: 4px; }
.summary-card dd { margin: 0; font-size: 1.0625rem; line-height: 1.55; }
.summary-card .meta { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 10px 32px; font-size: 0.9375rem; color: var(--muted); }
.summary-card .meta b { color: var(--ink); font-weight: 600; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 28px 0; }
.pillars .p { background: var(--surface); border-radius: 8px; padding: 30px 26px; }
.pillars .p h4 { font-family: var(--sans); font-size: 1.25rem; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.005em; }
.pillars .p p { font-size: 1rem; line-height: 1.5; margin: 0; }

.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 28px 0; }
.role { border: 1px solid var(--line-soft); border-radius: 8px; padding: 20px; }
.role h4 { font-family: var(--sans); font-size: 1.0625rem; font-weight: 600; margin-bottom: 6px; }
.role p { font-size: 0.9375rem; color: var(--muted); margin: 0; line-height: 1.45; }

.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 28px 0; }
.kpi-row .k { background: var(--surface); border-radius: 8px; padding: 32px 20px; text-align: center; }
.kpi-row .k b { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.75rem; line-height: 1; }
.kpi-row .k span { font-size: 0.9375rem; color: var(--muted); }

.pull { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 48px 0; margin: 48px 0; }
.pull blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.45; text-align: center; max-width: 44ch; margin: 0 auto; }
.pull cite { display: block; text-align: center; margin-top: 24px; font-style: normal; font-size: 0.9375rem; color: var(--muted); }

.case-next { display: flex; justify-content: space-between; gap: 32px; border-top: 1px solid var(--line-soft); padding-top: 32px; flex-wrap: wrap; }
.case-next a { display: flex; flex-direction: column; gap: 6px; }
.case-next span { font-size: 0.8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.case-next b { font-family: var(--sans); font-size: 1.25rem; font-weight: 600; transition: opacity .2s; }
.case-next a:hover b { opacity: .7; }
.case-next .next { text-align: right; margin-left: auto; }

/* ---------- contact ---------- */
.contact-hero { padding: 80px 0 20px; text-align: center; }
.contact-hero h1 { font-size: clamp(3rem, 7.5vw, 6rem); line-height: 1.1; font-weight: 500; margin: 20px 0; }
.contact-hero p { font-weight: 400; font-size: 1.5rem; line-height: 1.45; max-width: 44ch; margin: 0 auto; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; max-width: var(--maxw-mid); margin: 0 auto; align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 20px; align-items: flex-start; background: var(--surface); border-radius: 8px; padding: 28px 30px; transition: transform .3s var(--ease); }
.contact-item:hover { transform: translateY(-3px); }
.contact-item .ci { width: 24px; height: 24px; color: var(--purple); flex: 0 0 auto; margin-top: 4px; }
.contact-item h3 { font-family: var(--sans); font-size: 0.875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.contact-item a, .contact-item span { font-size: 1.125rem; font-weight: 500; transition: opacity .2s; }
.contact-item a:hover { opacity: .7; }

.form-card { background: #fff; border: 1px solid var(--line-soft); border-radius: 8px; padding: 40px 30px; }
.form-card h2 { font-family: var(--sans); font-size: 1.5rem; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.005em; }
.form-card > p { font-size: 1rem; color: var(--muted); margin-bottom: 28px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(175,106,220,0.16); }
.form-note { font-size: 0.875rem; color: var(--muted); margin-top: 16px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html, .tst-track { scroll-behavior: auto; }
  /* keep the colour and frame cues on hover, drop the movement */
  .work-grid .work-card, .work-card .thumb img { transition: none; }
  .work-grid .work-card:hover, .work-grid .work-card:focus-visible { transform: none; }
  /* drop the hover zoom but keep the base one, or the baked corner returns */
  .work-card:hover .thumb img,
  .work-card:focus-visible .thumb img { transform: scale(var(--thumb-zoom)); }
}

/* ============================================================
   Tablet
   ============================================================ */
@media (max-width: 1024px) {
  :root { --pad: 40px; }

  /* Hero restacks centred, with the portrait sitting whole and flush with
     the bottom of the black band. Values off "Hero - home - tablet.png". */
  .hero-inner { flex-direction: column; min-height: 0; }
  .hero-copy {
    flex: none; width: 100%; max-width: 620px; margin: 0 auto;
    padding: 81px 40px 5px; gap: 0;
    align-items: center; text-align: center;
  }
  .hero h1 { font-size: 76px; margin-top: 8px; }
  .hero p.sub { max-width: 507px; margin-top: 13px; }
  .hero-copy .btn { margin-top: 43px; }
  .hero-photo {
    flex: none; align-self: center; width: 295px; max-width: 100%;
    height: auto; overflow: visible;
  }
  .hero-photo img { width: 100%; height: auto; object-fit: contain; object-position: center; }

  .sec-head h2, .contact-hero h1 { font-size: 64px; }
  .cta-band h2 { font-size: 40px; }
  .statbar .row { gap: 40px; }
  /* four across is too narrow here, and four cards divide evenly, so this
     goes 2x2 rather than orphaning a card beside a hole.
     The corner stays 30px, matching desktop. */
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .work-card { gap: 20px; }
  .work-card h3 { font-size: 1.25rem; }
  /* already two-up at desktop; the narrower card just wants less side padding */
  .ai-card { padding: 40px 32px; }
  .cta-band { padding: 48px 40px; }
  /* the desktop card is 392 wide with 67px of padding. Here the clamp floors
     it at 280, and that padding leaves a 146px measure — enough to run the
     longest quote to 29 lines. Wider card, far less padding. */
  .tst-track { padding-left: var(--pad); }
  .tst-card { flex: 0 0 clamp(320px, 62vw, 430px); padding: 48px 40px; }
  .tst-nav { padding: 0 var(--pad); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .pillars, .roles, .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .tl .job { grid-template-columns: 150px 1fr; gap: 24px; }
  .about-hero .grid { gap: 32px; }
}

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 640px) {
  :root { --pad: 24px; }
  body { font-size: 1rem; }

  .nav-inner { padding: 16px var(--pad); }
  .nav-logo { font-size: 1rem; }
  /* the bar's own links and mark move into the full-screen panel */
  .nav-links { display: none; }
  .nav-right .ic { display: none; }
  .nav-toggle { display: block; }
  .nav-panel { display: flex; }

  .section { padding: 40px 0; }

  /* Same centred stack, tighter. Values off "Hero - home - mobile.png".
     The gaps carry over from the tablet block unchanged; only the type,
     the button and the portrait resize. The hero keeps a 40px gutter of
     its own, wider than --pad. */
  .hero-copy { padding: 81px 40px 6px; }
  .hero h1 { font-size: 54px; }
  .hero p.sub { font-size: 1.125rem; max-width: none; }
  /* every call to action goes full width: hero, the gradient bands and the
     contact form's submit */
  .btn { width: 100%; }
  .hero-photo { width: 233px; }

  .statbar .row { flex-direction: column; gap: 24px; padding: 32px var(--pad); }
  .sec-head { margin-bottom: 40px; }
  .sec-head h2 { font-size: 3rem; }
  .sec-head p { font-size: 1rem; }
  /* one per row; the wider gap between cards keeps each thumbnail reading
     as one unit with its own title */
  .work-grid { grid-template-columns: 1fr; gap: 48px; }
  .ai-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .cta-band p { font-size: 1.125rem; }

  /* stacks and centres: kicker, lede and portrait all on the centre line */
  .about-hero .grid { grid-template-columns: 1fr; gap: 24px; justify-items: center; text-align: center; }
  .about-hero .portrait { width: 140px; height: 140px; }
  .bring-grid { grid-template-columns: 1fr; gap: 20px; }

  .tst-track { padding-left: var(--pad); padding-right: var(--pad); scroll-snap-type: x mandatory; }
  .tst-card { flex-basis: 82vw; padding: 40px 32px; scroll-snap-align: center; }
  .tst-card blockquote { font-size: 1rem; }
  .tst-nav { justify-content: center; padding: 0 var(--pad); }

  .tl .job { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }

  .case-hero .sub { font-size: 1.125rem; }
  .summary-card { padding: 28px 24px; }
  .summary-card dl { grid-template-columns: 1fr; gap: 4px; }
  .summary-card dt { padding-top: 16px; }
  .summary-card dl > dt:first-child { padding-top: 0; }
  .pillars, .roles, .kpi-row { grid-template-columns: 1fr; }

  footer { flex-direction: column; align-items: flex-start; gap: 24px; padding: 32px var(--pad); }
  footer .foot-top { flex-direction: column; align-items: flex-start; gap: 16px; }
}
