/* Brand tokens from 02 Brand/brand-guidelines.md */
:root {
  --purple: #4319C9;
  --deep: #230069;
  --lavender: #EEE9FF;
  --ink: #211735;
  --muted: #655D73;
  --border: #D9D3E6;
  --white: #FFFFFF;
  --canvas: #FAF9FD;
  --gutter: clamp(16px, 3vw, 40px);
  --header-h: 104px;
  /* Hero: the logo side is a quiet lavender so only the brand marks carry colour */
  --hero-canvas: #E8E3F8;
  --hero-gap: 12px;
  /* 3D extrusion behind the "AI nerd" box: solid stacked layers to the lower right. */
  --side-light: #B9A9F3;   /* side of a white block */
  --extrude-box: 0.0165em 0.0165em 0 var(--side-light), 0.033em 0.033em 0 var(--side-light), 0.0495em 0.0495em 0 var(--side-light), 0.066em 0.066em 0 var(--side-light), 0.0825em 0.0825em 0 var(--side-light), 0.099em 0.099em 0 var(--side-light), 0.1155em 0.1155em 0 var(--side-light);
}

@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("assets/fonts/Poppins-Regular.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("assets/fonts/Poppins-Medium.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("assets/fonts/Poppins-Bold.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("assets/fonts/Poppins-SemiBold.woff2") format("woff2"); }

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  background: var(--white);
  color: var(--ink);
}

a:focus-visible, button:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

/* Full width, so the logo sits in the top-left corner */
.header-inner {
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.logo { display: inline-block; flex: none; }
.logo img { display: block; height: 74px; width: auto; }

/* Nav */
.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.site-nav ul a {
  position: relative;
  font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink);
  padding: 6px 0;
}
/* A small pixel square appears under the link on hover */
.site-nav ul a::after {
  content: ""; position: absolute; left: 50%; bottom: -4px;
  width: 6px; height: 6px; background: var(--purple);
  transform: translateX(-50%) scale(0); transition: transform .15s ease;
}
.site-nav ul a:hover { color: var(--purple); }
.site-nav ul a:hover::after, .site-nav ul a[aria-current="page"]::after { transform: translateX(-50%) scale(1); }

/* Button */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none;
}
.btn-primary { background: var(--purple); color: var(--white); }

/* Menu button, phones only */
.menu-toggle {
  display: none;
  align-items: center; gap: 10px;
  font: 500 15px "Poppins", sans-serif; color: var(--ink);
  background: none; border: 1px solid var(--border); border-radius: 999px;
  padding: 9px 16px; cursor: pointer;
}
.menu-icon { display: grid; gap: 3px; }
.menu-icon i { display: block; width: 16px; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.is-open .menu-icon i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.is-open .menu-icon i:nth-child(2) { opacity: 0; }
.is-open .menu-icon i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 820px) {
  :root { --header-h: 84px; }
  .logo img { height: 58px; }
  .menu-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 12px var(--gutter) 28px;
    background: var(--white); border-bottom: 1px solid var(--border);
  }
  .is-open .site-nav { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; font-size: 18px; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .site-nav ul a::after { display: none; }
  .site-nav .btn { padding: 15px 24px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Hero ---------- */
/* Jamie on the left, headline on the right */
.hero { position: relative; background: var(--hero-canvas); overflow: hidden; border-top: 1px solid var(--border);
  --head-centre: .40; /* middle of Jamie's face across the cut-out; the divider, logos and outline follow it */
}
/* The solid purple half begins at the same head-centre divider as the logo field. */
.hero::before {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0;
  left: var(--portrait-split, 35%); background: var(--purple); pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1320px; margin: 0 auto;
  min-height: min(calc(100svh - var(--header-h)), 760px);
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(40px, 5vw, 80px);
  align-items: end;
}

.hero-portrait {
  /* A tall cut-out: sized by height and standing on the bottom edge. */
  position: relative; justify-self: start; margin-left: clamp(0px, 9vw, 170px);
  height: min(calc(100svh - var(--header-h) - 28px), 732px); width: auto;
  aspect-ratio: 905 / 1200;
}
.hero-copy { position: relative; z-index: 1; }
.portrait {
  position: absolute; left: 0; bottom: 0; width: 100%; height: auto;
  /* A soft shadow cast to the left, so Jamie lifts off the logo tiles behind him. */
  filter: drop-shadow(-22px 10px 26px rgba(35, 0, 105, .38)) drop-shadow(0 22px 34px rgba(35, 0, 105, .16));
}
/* Trace only the clear-background half of the cut-out, aligned with the logo boundary. */
.portrait-outline {
  position: absolute; left: 0; bottom: 0; width: 100%; height: auto; pointer-events: none;
  filter: drop-shadow(4px 0 0 #fff) drop-shadow(-4px 0 0 #fff) drop-shadow(0 4px 0 #fff) drop-shadow(0 -4px 0 #fff);
  clip-path: inset(-12px -12px -12px calc(var(--head-centre) * 100%));
}
/* Everything arrives together with a gentle fade, no sliding */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.hero { animation: fade-in .7s ease-out both; }

.hero-copy { align-self: center; padding: 40px 0 88px; }
/* A real wave: rocks from the wrist a few times, rests, then waves again */
.wave { display: inline-block; transform-origin: 70% 75%; animation: wave 2.6s ease-in-out .6s infinite; }
@keyframes wave {
  0%   { transform: rotate(0deg); }
  8%   { transform: rotate(18deg); }
  16%  { transform: rotate(-10deg); }
  24%  { transform: rotate(18deg); }
  32%  { transform: rotate(-8deg); }
  40%  { transform: rotate(14deg); }
  50%  { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}
/* Both lines share one size, so the headline reads as one block */
.hero h1 {
  margin: 0; color: var(--white); font-weight: 700; letter-spacing: -0.035em;
  font-size: clamp(34px, 4.5vw, 66px); line-height: 1.08;
}
.hero h1 > span { display: block; white-space: nowrap; }
.hero h1 .nerd { white-space: nowrap; margin-top: .1em; }
.hero h1 .wave { font-size: .75em; vertical-align: .08em; margin-left: .05em; }
.hero h1 .box {
  display: inline-block; line-height: 1;
  padding: .1em .22em .14em; margin-left: .08em;
  background: var(--white); color: var(--purple);
  /* A solid block behind the face, not a drop shadow */
  box-shadow: var(--extrude-box);
  margin-right: .12em;
  border-radius: .16em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 48px; }
.hero-actions .btn { border-radius: 14px; min-height: 62px; padding: 14px 18px 14px 26px; font-size: 17px; gap: 14px; }
.hero-actions .btn-ghost { padding: 14px 26px; }
.hero-actions .btn-primary { background: #fff; color: var(--purple); border: 2px solid #fff; }
.hero-actions .btn-primary .cta-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--purple); color: #fff; font-size: 19px; transition: background-color .3s ease; }
/* On hover the arrow nudges right. */
.cta-arrow { display: inline-block; }
.hero-actions .btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .85); }
.hero-actions .btn:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
.btn-ghost { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--border); }

.btn-lg { padding: 18px 34px; font-size: 18px; gap: 12px; }

/* One hover for every button: a slight lift with a soft shadow and a deeper colour; a small
   press on click. Icons and arrows inside never move. */
.btn, .li-follow {
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover, .li-follow:hover { transform: translateY(-2px); }
.btn:active, .li-follow:active { transform: translateY(0) scale(.98); transition-duration: .08s; }
/* Purple buttons (header, Send message, Say hi on LinkedIn) deepen. */
.btn-primary:hover, .li-follow:hover { background: var(--deep); box-shadow: 0 12px 22px -12px rgba(35, 0, 105, .6); }
/* On the purple hero: the white button stays white with a deeper shadow; the outline button fills white. */
.hero-actions .btn-primary:hover { background: var(--white); color: var(--deep); box-shadow: 0 14px 26px -12px rgba(10, 0, 40, .55); }
.hero-actions .btn-ghost:hover { background: var(--white); border-color: var(--white); color: var(--purple); box-shadow: 0 14px 26px -12px rgba(10, 0, 40, .55); }
.btn:disabled:hover { transform: none; box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .li-follow:hover, .btn:active, .li-follow:active { transform: none; }
}


/* Phones and small tablets: a purple poster. Centred headline and buttons on top; Jamie centred
   and large at the bottom, in front of three full-width logo columns that fade in from the purple. */
@media (max-width: 960px) {
  .hero { background: var(--purple); }
  .hero::before, .hero-divider { display: none; }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero-copy { order: -1; padding: clamp(32px, 7vw, 48px) 0 0; text-align: center; }
  .hero h1 { font-size: clamp(30px, 9vw, 42px); }
  .hero h1 .box { margin-left: .05em; }
  .hero-actions { justify-content: center; margin-top: 28px; }
  .hero-portrait { height: auto; width: min(88%, 420px); margin: clamp(48px, 12vw, 72px) auto 0; justify-self: center; }
  /* Phones: a soft drop shadow instead of the white outline (desktop keeps the outline). */
  .portrait { filter: drop-shadow(0 14px 22px rgba(15, 0, 55, .5)) drop-shadow(0 4px 8px rgba(15, 0, 55, .3)); }
  .portrait-outline { display: none; }
  /* Three logo columns fill the width behind Jamie with even 12px gaps, centred on wider screens. */
  .hero .hero-logo-field {
    grid-template-columns: repeat(3, var(--hero-tile-size)); justify-content: center; padding: 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
            mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
  }
  .hero-portrait { width: min(80%, 380px); }
}

@media (prefers-reduced-motion: reduce) {
  .wave, .hero { animation: none; }
}

/* Binary layer: behind the purple half on desktop, inside the purple copy panel on phones. */
.hero-binary {
  position: absolute; top: 0; bottom: 0; right: 0; left: var(--portrait-split, 35%);
  width: calc(100% - var(--portrait-split, 35%)); height: 100%;
  z-index: 0; pointer-events: none;
}
.hero-binary.in-copy { left: calc(-1 * var(--gutter)); right: auto; width: calc(100% + 2 * var(--gutter)); z-index: -1; }
.hero-divider {
  position: absolute; left: var(--portrait-split, 35%); top: 0; bottom: 0;
  width: 4px; transform: translateX(-50%); background: #fff; z-index: 0; pointer-events: none;
}
/* Slow logo tiles stay left of the portrait’s head centre. */
.hero-logo-field {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 0; opacity: 1;
  display: grid; grid-template-columns: repeat(var(--hero-logo-columns, 3), var(--hero-tile-size, 1fr));
  gap: var(--hero-gap); padding-left: var(--hero-gap); padding-right: 0; overflow: hidden; pointer-events: none;
}
.hero-logo-lane { min-width: 0; overflow: hidden; }
.hero-logo-track { display: flex; flex-direction: column; animation: hero-logo-drift 160s linear infinite; will-change: transform; }
.hero-logo-lane:nth-child(3n + 2) .hero-logo-track { animation-direction: reverse; }
.hero-logo-set { flex: none; display: grid; grid-auto-rows: var(--hero-tile-height); gap: var(--hero-gap); padding-bottom: var(--hero-gap); place-items: center; }
.hero-logo-tile {
  display: grid; place-items: center; width: var(--hero-tile-size); height: var(--hero-tile-height);
  background: var(--tile-colour, #fff); border-radius: max(6px, 7%); overflow: hidden;
}
/* Logos are optically balanced per mark, so no brand looks bigger than another. */
.hero-logo-tile img {
  display: block; width: var(--logo-size, 50%); height: var(--logo-size, 50%); object-fit: contain;
}
/* White brand tiles get a hairline so they hold their edge on the light backdrop. */
.hero-logo-tile[style*="#FFFFFF"] { box-shadow: inset 0 0 0 1px rgba(67, 25, 201, .12); }
@keyframes hero-logo-drift { from { transform: translateY(0); } to { transform: translateY(calc(-1 * var(--hero-loop-height))); } }
.logos-paused .hero-logo-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .hero-logo-track { animation: none; will-change: auto; }
}

.hero-inner { position: relative; z-index: 1; }

@media (max-width: 400px) {
  .hero-actions { gap: 12px; margin-top: 28px; }
  .hero-actions .btn.btn-lg { padding: 10px 12px 10px 16px; font-size: 14px; min-height: 52px; gap: 8px; }
  .hero-actions .btn-primary .cta-icon { width: 26px; height: 26px; font-size: 16px; }
}

/* ---------- "AI is a confusing world": logos fall and stack into a wall ---------- */
.confusing { position: relative; z-index: 5; background: var(--white); padding: clamp(64px, 8vw, 112px) var(--gutter) clamp(40px, 5vw, 64px); text-align: center; }
.confusing h2 {
  margin: 0 auto clamp(36px, 5vw, 56px); max-width: 28ch;
  font-size: clamp(30px, 4.2vw, 58px); line-height: 1.12; font-weight: 700; letter-spacing: -0.03em; color: var(--ink);
}
/* Purple words in the heading: "I get it." and "confusing". */
.confusing h2 .accent { color: var(--purple); }
.confusing h2 .box {
  display: inline-block; line-height: 1;
  padding: .1em .22em .14em; margin: .06em .04em;
  background: var(--white); color: var(--purple); box-shadow: none;
  border-radius: .16em;
}

.logo-wall {
  list-style: none; margin: 0 auto; padding: 0; max-width: 1240px;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(10px, 1.2vw, 18px);
}
.logo-wall li {
  aspect-ratio: 1; display: grid; place-items: center;
  background: var(--white); border: 1px solid var(--border); border-radius: clamp(12px, 1.4vw, 20px);
  box-shadow: 0 10px 22px -14px rgba(35, 0, 105, .3);
  opacity: 1;
}
.logo-wall img { width: 44%; height: 44%; object-fit: contain; }
@media (max-width: 700px) {
  .logo-wall { grid-template-columns: repeat(4, 1fr); }
  .logo-wall li.extra { display: none; }
}

/* The full stop remains real inline layout, so the landing point follows wrapping and fonts. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.help-scene { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; max-width: 1240px; margin: 96px auto 0; }
.help-backdrop { position: relative; overflow: hidden; grid-column: 1; grid-row: 1; align-self: stretch; width: 74%; background: var(--purple); }
/* The audience from the same talk, barely there: greyscale, blended into the purple. */
.help-backdrop::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/images/event-audience-grey.webp") 28% center / cover no-repeat;
  mix-blend-mode: soft-light; opacity: .55;
}
.help-copy { position: relative; z-index: 1; grid-column: 2; grid-row: 1; }
.help-portrait { position: relative; z-index: 1; grid-column: 1; grid-row: 1; display: block; width: 100%; height: auto; align-self: end; transform-origin: center bottom;
  /* A soft deep-purple shadow cast to the right, onto the white side. */
  filter: drop-shadow(20px 12px 26px rgba(35, 0, 105, .32)) drop-shadow(0 18px 30px rgba(35, 0, 105, .14)); }
.confusing .help-title { max-width: 12ch; margin: 0 auto; font-size: clamp(38px, 5.5vw, 76px); }
.help-description { margin: 22px 0 0; max-width: 34ch; font-size: clamp(18px, 1.75vw, 25px); line-height: 1.55; color: var(--muted); }
.help-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 30px 0 0; padding: 0; list-style: none; max-width: 600px; text-align: left; }
.help-roles li { display: flex; align-items: center; gap: 13px; font-size: clamp(15px, 1.3vw, 19px); font-weight: 500; line-height: 1.35; }
.role-icon { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: var(--purple); color: var(--white); }
.role-icon svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.experience-highlight {
  /* --mark runs 0 to 1 as you scroll: a purple highlighter sweeps left to right
     and the words turn white as it passes. Without the scroll scene it stays fully marked. */
  --mark: 1;
  display: inline-block; padding: .04em .3em; border-radius: .14em; font-weight: 600; line-height: 1.35; white-space: nowrap;
  background: linear-gradient(var(--purple), var(--purple)) left center / calc(var(--mark) * 100%) 100% no-repeat;
}
.experience-highlight > span {
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(90deg, var(--white) calc(var(--mark) * 100%), var(--ink) calc(var(--mark) * 100%));
}
.help-ending { white-space: nowrap; }
.help-stop { display: inline-block; width: .14em; height: .14em; margin-left: .08em; background: var(--purple); }
.consolidated-square { display: none; pointer-events: none; background: var(--purple); }
.has-scroll-motion.confusing { padding: 0; height: calc(570svh - var(--header-h)); } /* includes a one-screen hold at the end */
.has-scroll-motion .confusing-stage {
  position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h));
  padding: clamp(20px, 4vh, 44px) var(--gutter); overflow: clip;
  display: flex; flex-direction: column; justify-content: center;
}
.has-scroll-motion #confusing-title { position: relative; z-index: 2; flex: none; margin-bottom: clamp(20px, 3vh, 36px); }
.has-scroll-motion .logo-wall {
  position: relative; flex: none; width: min(100%, 1240px, max(300px, (100svh - var(--header-h) - 300px) * 2));
}
.has-scroll-motion .logo-wall li { will-change: translate, scale, opacity; }
.has-scroll-motion .help-scene { position: absolute; inset: 0; display: block; max-width: 1320px; margin: 0 auto; pointer-events: none; }
.has-scroll-motion .help-backdrop {
  position: absolute; left: calc(50% - 50vw); top: 0; bottom: 0;
  width: calc(50vw - 16%); opacity: 0;
}
.has-scroll-motion .help-portrait {
  /* The wide on-stage photo: a wider frame keeps Jamie large; his outstretched hand still stops short of the text. */
  position: absolute; left: -14%; bottom: 0; width: 82%; height: 94%; object-fit: contain; object-position: center bottom;
  opacity: 0; will-change: transform, opacity;
}
.has-scroll-motion .help-copy {
  /* Vertically centred in the stage (a little above true centre), never above 24px. */
  position: absolute; left: 56%; right: var(--gutter); top: max(24px, calc(48% - var(--help-copy-height, 440px) / 2)); text-align: left;
}
.has-scroll-motion .help-title { margin: 0; opacity: 0; line-height: 1.16; }
.has-scroll-motion .help-description, .has-scroll-motion .help-roles { opacity: 0; }
.has-scroll-motion .help-stop { background: transparent; }
/* Jamie scratching his head at the logo wall, fully solid, in a soft white glow that blends out
   into the logos so he stands apart from them while still sitting on top.
   Static layouts: under the wall. Scroll scene: bottom-right corner. */
.confused-jamie { position: relative; display: block; width: min(80%, 380px); margin: 28px auto 0; }
.confused-jamie img { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
.confused-jamie::before {
  content: ""; position: absolute; inset: -22% -18% -10% -26%; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 52% at 56% 58%, #fff 0%, #fff 48%, rgba(255, 255, 255, .85) 62%, rgba(255, 255, 255, 0) 100%);
}
.has-scroll-motion .confused-jamie {
  position: absolute; right: 0; bottom: 0; z-index: 3; margin: 0; width: auto; height: min(64%, 580px);
  will-change: transform; pointer-events: none;
}
.has-scroll-motion .confused-jamie img { width: auto; height: 100%; }
@media (max-width: 700px) { .has-scroll-motion .confused-jamie { height: min(34%, 270px); } }
.has-scroll-motion .consolidated-square { display: block; position: absolute; top: 0; left: 0; z-index: 3; opacity: 0; will-change: transform; }
/* Resting points: with the scroll scene on, the page gently settles on the finished
   logo wall and on the finished help section, so neither is left half-played. */
html.scene-snap { scroll-snap-type: y proximity; scroll-padding-top: var(--header-h); }
/* While an in-page link is scrolling, snapping is paused so it lands exactly on the section. */
html.scene-snap.is-jumping { scroll-snap-type: none; }
/* Opening a link like /#contact directly also lands below the sticky header. */
section[id], footer { scroll-margin-top: var(--header-h); }
/* The hero also acts as a gentle resting point. (Not the services section: it is taller
   than the screen, and snapping there fights the scroll.) */
html.scene-snap .hero { scroll-snap-align: start; }
.scene-rest { position: absolute; left: 0; width: 1px; height: 1px; scroll-snap-align: start; pointer-events: none; }
@media (max-width: 700px) {
  /* Phones: heading and wall sit near the top so the head-scratching photo has room below. */
  .has-scroll-motion .confusing-stage { justify-content: flex-start; padding-top: clamp(28px, 6vh, 56px); }
  .has-scroll-motion .logo-wall { width: min(100%, max(180px, (100svh - var(--header-h) - 250px) * 1.33)); }
  .help-scene { grid-template-columns: 1fr; gap: 28px; }
  .help-scene .help-copy { grid-column: 1; grid-row: 1; }
  .help-scene .help-portrait, .help-scene .help-backdrop { grid-column: 1; grid-row: 2; }
  /* Phones: the crowd panel runs edge to edge behind Jamie, and he fills the space under the copy. */
  .has-scroll-motion .help-backdrop { top: auto; height: calc(var(--help-photo-height) * .78); width: 100vw; }
  .help-description { margin: 18px auto 0; max-width: 32ch; }
  .help-roles { margin: 20px auto 0; gap: 12px; max-width: 350px; }
  .help-roles li { gap: 9px; font-size: 13.5px; min-height: 36px; }
  .role-icon { flex-basis: 34px; width: 34px; height: 34px; border-radius: 9px; }
  .role-icon svg { width: 19px; height: 19px; }
  .help-portrait { max-width: 400px; margin-inline: auto; }
  .has-scroll-motion .help-copy { left: var(--gutter); top: 8%; text-align: center; }
  .has-scroll-motion .help-title { max-width: 12ch; margin-inline: auto; }
  .has-scroll-motion .help-portrait { left: -32%; right: auto; width: 164%; height: var(--help-photo-height); margin-inline: 0; max-width: none; }
}
@media (max-height: 600px) and (min-width: 701px) {
  .has-scroll-motion #confusing-title { font-size: 30px; max-width: 24ch; }
  .has-scroll-motion .logo-wall { width: min(100%, max(240px, (100svh - var(--header-h) - 180px) * 2)); }
}

/* ---------- Services: "I help businesses actually use AI" ---------- */
.services { position: relative; z-index: 5; background: var(--white); padding: clamp(32px, 6vh, 72px) var(--gutter) clamp(64px, 9vw, 120px); }
/* The headline and all five services fill exactly one screen, centred, so everything is visible at once. */
.services-inner { min-height: calc(100svh - var(--header-h) - 2 * clamp(32px, 6vh, 72px)); }
/* Hold: on wider, taller screens the section pins for about half a screen of extra scrolling before
   moving on, so it can't be skimmed past. Phones and short screens scroll freely. */
@media (min-width: 861px) and (min-height: 600px) {
  .services { height: calc(150svh - var(--header-h)); padding: 0 var(--gutter); }
  .services-inner {
    position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); min-height: 0;
    padding-block: clamp(24px, 5vh, 56px); box-sizing: border-box;
  }
}
.services-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); max-width: 1180px; margin: 0 auto; align-items: center; }
/* The headline block sits in the vertical middle of the services list. */
.services-intro { align-self: center; }
.services h2 { margin: 0; max-width: 11ch; font-size: clamp(34px, min(5vw, 8.4vh), 76px); line-height: 1.08; font-weight: 700; letter-spacing: -0.035em; color: var(--ink); }
.services h2 .box { display: inline-block; line-height: 1; padding: .1em .22em .14em; margin: .04em .02em; background: var(--purple); color: var(--white); border-radius: .16em; }
/* Highlighter sweep on "actually": plays once when in view. --mark animates 0 to 1 (registered so it
   can transition); without script it stays fully marked. */
@property --mark { syntax: '<number>'; inherits: true; initial-value: 1; }
.services h2 .box.sweep.is-waiting { --mark: 0; }
.services h2 .box.sweep.is-marked { --mark: 1; transition: --mark .9s cubic-bezier(.65, 0, .35, 1); }
.services h2 .box.sweep { --mark: 1; background: linear-gradient(var(--purple), var(--purple)) left center / calc(var(--mark) * 100%) 100% no-repeat; }
.services h2 .box.sweep > span {
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(90deg, var(--white) calc(var(--mark) * 100%), var(--ink) calc(var(--mark) * 100%));
}
.services-intro p { margin: clamp(14px, 2.4vh, 22px) 0 0; max-width: 34ch; font-size: clamp(16px, min(1.5vw, 2.5vh), 20px); line-height: 1.55; color: var(--muted); }
.services-intro .cta-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--white); color: var(--purple); font-size: 19px; }

.service-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(8px, 1.3vh, 12px); }
/* Alternating cards: solid purple, then white with a crisp purple outline. Each mirrors its neighbour. */
.service-card {
  --card-bg: var(--purple); --card-ink: var(--white); --card-copy: rgba(255, 255, 255, .86);
  --tile-bg: var(--white); --tile-ink: var(--purple);
  position: relative;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 1.8vw, 22px); align-items: center;
  padding: clamp(12px, 2vh, 22px) clamp(18px, 2vw, 28px); border-radius: 20px;
  background: var(--card-bg); color: var(--card-ink);
}
/* Brief highlight when the Training link lands on the Team training card. */
.service-card.is-flash { animation: card-flash 1.4s ease; }
@keyframes card-flash { 0%, 100% { transform: none; } 18% { transform: scale(1.04); } 40% { transform: scale(.99); } 60% { transform: scale(1.02); } }
@media (prefers-reduced-motion: reduce) { .service-card.is-flash { animation: none; } }
.service-card:nth-child(even) {
  --card-bg: var(--white); --card-ink: var(--ink); --card-copy: var(--muted);
  --tile-bg: var(--purple); --tile-ink: var(--white);
  box-shadow: inset 0 0 0 2px var(--purple);
}
/* Icon tile, inverted against the card. Simple Lucide line icons (lucide.dev, ISC licence). */
.service-icon { display: grid; place-items: center; width: clamp(44px, min(4vw, 6.4vh), 58px); aspect-ratio: 1; border-radius: 14px; background: var(--tile-bg); color: var(--tile-ink); }
.service-icon svg { width: 48%; height: 48%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-text { padding-top: 0; }
.service-card h3 { margin: 0; font-size: clamp(22px, min(2.3vw, 3.8vh), 32px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--card-ink); }
.service-card p { margin: 3px 0 0; max-width: 60ch; font-size: clamp(13.5px, min(1.15vw, 2vh), 16px); line-height: 1.45; color: var(--card-copy); }


@media (max-width: 860px) {
  .services-inner { grid-template-columns: 1fr; }
  .services h2 { max-width: none; font-size: clamp(38px, 11vw, 52px); }
}

/* ---------- About: purple band, a stack of photos left, the words right ---------- */
.about { position: relative; z-index: 5; background: var(--purple); color: var(--white); padding: clamp(32px, 6vh, 72px) var(--gutter); overflow: hidden; }
/* Faint 1s and 0s across the whole section, like the hero (drawn by script). */
.about-binary { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.about-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center;
  max-width: 1200px; margin: 0 auto; min-height: calc(100svh - var(--header-h) - 2 * clamp(32px, 6vh, 72px));
}
.about-copy { max-width: 580px; }
/* Bold headline; "love" sits in a flat white box, like the other headings on the site. */
.about h2 { margin: 0; max-width: 17ch; font-size: clamp(32px, min(3.9vw, 6.6vh), 58px); line-height: 1.06; font-weight: 700; letter-spacing: -0.035em; }
.about h2 .box { display: inline-block; line-height: 1; padding: .08em .2em .14em; margin-right: .04em; border-radius: .16em; background: var(--white); color: var(--purple); }
.about-lead { margin: clamp(20px, 3.6vh, 32px) 0 0; font-size: clamp(20px, min(1.9vw, 3.3vh), 27px); line-height: 1.25; font-weight: 600; letter-spacing: -0.025em; }
.about-lead .nowrap { white-space: nowrap; }
.about-lead strong { font-weight: 700; color: #C9BCF7; }
.about-aside { display: block; margin-top: 4px; font-size: .6em; font-weight: 400; letter-spacing: 0; color: rgba(255, 255, 255, .66); }
.about-words { margin-top: clamp(14px, 2.6vh, 24px); }
.about-words p { margin: 0; font-size: clamp(15px, min(1.2vw, 2.1vh), 18px); line-height: 1.55; color: rgba(255, 255, 255, .84); }
.about-words p + p { margin-top: clamp(8px, 1.4vh, 12px); }
.about-words .about-promise { font-weight: 600; color: var(--white); }
.about-words strong { font-weight: 600; color: var(--white); }

/* Photo deck: a pile of sharp landscape photos, the ones behind peeking out above, smaller and
   dimmer. --i is each card's place in the pile (0 is the front), set by script. */
.about-deck { position: relative; justify-self: stretch; width: 100%; max-width: 600px; aspect-ratio: 3 / 2; margin-top: 52px; }
.deck-card {
  --i: 0; position: absolute; inset: 0; overflow: hidden; border-radius: 24px; background: var(--deep);
  transform-origin: 50% 0; transform: translateY(calc(var(--i) * -17px)) scale(calc(1 - var(--i) * .06));
  z-index: calc(10 - var(--i));
  box-shadow: 0 18px 40px -24px rgba(10, 0, 40, .7);
  will-change: transform;
  /* The cards behind step forward smoothly while the front one is on its way out. */
  transition: transform .95s cubic-bezier(.25, .8, .25, 1) .3s;
}
.deck-card img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: transform .9s cubic-bezier(.25, .8, .25, 1); }
/* Cards further back are dimmer. */
.deck-card::after { content: ""; position: absolute; inset: 0; background: var(--deep); opacity: calc(var(--i) * .22); transition: opacity .9s ease .3s; pointer-events: none; }
/* The front photo drifts slowly closer while it is showing. */
.deck-card.is-front img { transform: scale(1.06); transition: transform 5s linear .4s; }
/* Shuffle: one continuous glide. The front photo sweeps out to the left and up (away from the text)
   with a slight swing, slips behind the pile once it is clear of it, then glides into the back place. */
.deck-card.is-shuffling { animation: deck-shuffle 1.6s both; }
/* It stays bright until it is tucked behind the pile. */
.deck-card.is-shuffling::after { transition-delay: .85s; }
@keyframes deck-shuffle {
  0% { transform: translate(0, 0) rotate(0) scale(1); z-index: 20; animation-timing-function: cubic-bezier(.35, 0, .15, 1); }
  44% { transform: translate(-106%, -8%) rotate(-6deg) scale(.97); z-index: 20; animation-timing-function: cubic-bezier(.45, 0, .2, 1); }
  45% { z-index: 1; }
  100% { transform: translateY(calc(var(--i) * -17px)) scale(calc(1 - var(--i) * .06)); z-index: 1; }
}

/* "You + AI = Time & money saved" as three tiles that fill up: You is an outline,
   AI is half-filled, and the result is solid white. */
.formula {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px .5em;
  margin: clamp(24px, 4.4vh, 40px) 0 0; color: var(--white);
  font-size: clamp(18px, min(1.7vw, 3vh), 24px); font-weight: 700; letter-spacing: -0.02em; line-height: 1;
}
.f-you, .f-ai, .f-result { display: inline-block; padding: .6em .8em; border-radius: .55em; border: 2px solid rgba(255, 255, 255, .55); }
.f-ai { background: rgba(255, 255, 255, .2); border-color: transparent; }
.f-result { background: var(--white); border-color: var(--white); color: var(--purple); white-space: nowrap; }
.f-op { color: #C9BCF7; font-weight: 400; }
.formula.is-waiting > * { opacity: 0; transform: translateY(8px) scale(.94); }
.formula.is-built > * { transition: opacity .45s ease, transform .5s cubic-bezier(.2, .9, .3, 1.3); }
.formula.is-built > :nth-child(2) { transition-delay: .18s; }
.formula.is-built > :nth-child(3) { transition-delay: .36s; }
.formula.is-built > :nth-child(4) { transition-delay: .54s; }
.formula.is-built > :nth-child(5) { transition-delay: .78s; }
@media (prefers-reduced-motion: reduce) { .deck-card, .deck-card img { transition: none; } .deck-card.is-front img { transform: none; } }

/* Hold: on wider, taller screens the About section pins for about half a screen of extra
   scrolling before moving on, like the services section. Phones scroll freely. */
@media (min-width: 861px) and (min-height: 600px) {
  .about { height: calc(150svh - var(--header-h)); padding: 0 var(--gutter); overflow: clip; }
  .about-inner {
    position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); min-height: 0;
    padding-block: clamp(24px, 5vh, 56px); box-sizing: border-box;
  }
}

/* Phones: headline, the photo stack, then the words and the formula on one line. */
@media (max-width: 860px) {
  .about { padding: clamp(64px, 10vw, 100px) var(--gutter); }
  .about-inner { display: flex; flex-direction: column; align-items: stretch; gap: 0; min-height: 0; }
  .about-copy { display: contents; }
  .about h2 { order: 1; font-size: clamp(34px, 10vw, 48px); line-height: 1.08; }
  .about-deck { order: 2; align-self: center; max-width: 520px; margin: 64px 0 36px; }
  .about-lead { order: 3; margin-top: 0; font-size: clamp(21px, 6vw, 27px); }
  .about-words { order: 4; margin-top: 16px; }
  .about-words p { font-size: 16px; line-height: 1.6; }
  .formula { order: 5; margin-top: 28px; flex-wrap: nowrap; gap: 0 .4em; font-size: min(4vw, 18px); white-space: nowrap; }
  .f-you, .f-ai, .f-result { padding: .6em .65em; }
}

/* ---------- Contact: pitch left, form right, on white ---------- */
.contact { position: relative; z-index: 5; background: var(--white); padding: clamp(80px, 10vw, 140px) var(--gutter); }
.contact-inner { display: grid; justify-items: center; gap: clamp(32px, 4vw, 48px); max-width: 820px; margin: 0 auto; }
.contact h2 .nowrap { white-space: nowrap; }
.contact h2 { margin: 0; max-width: 20ch; text-align: center; font-size: clamp(32px, 4.2vw, 58px); line-height: 1.08; font-weight: 700; letter-spacing: -0.035em; color: var(--ink); }
.contact h2 .box { display: inline-block; line-height: 1; padding: .08em .22em .14em; margin-top: .08em; background: var(--purple); color: var(--white); border-radius: .16em; }
.contact-intro p { margin: 22px 0 0; max-width: 38ch; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: var(--muted); }

.contact-form { width: 100%; display: grid; gap: 18px; padding: clamp(24px, 3vw, 40px); border-radius: 24px; background: var(--white); box-shadow: inset 0 0 0 2px var(--purple); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 14px; font-weight: 600; color: var(--ink); }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--canvas);
  font: 400 16px/1.4 "Poppins", system-ui, sans-serif; color: var(--ink); transition: border-color .15s ease, background .15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--purple); background: var(--white); box-shadow: 0 0 0 3px rgba(67, 25, 201, .15); }
.was-checked .field :invalid { border-color: #C2185B; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 20px; margin-top: 8px; }
.contact-form .btn { border-radius: 14px; min-height: 58px; padding: 14px 18px 14px 26px; font-size: 17px; gap: 14px; border: 0; cursor: pointer; font-family: inherit; }
.contact-form .btn:disabled { opacity: .6; cursor: wait; }
.contact-form .cta-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--white); color: var(--purple); font-size: 18px; }
.form-or { font-size: 15px; color: var(--muted); }
.form-note { margin: -4px 0 0; font-size: 13px; color: var(--muted); }
.form-status { margin: 0; font-size: 15px; font-weight: 500; text-align: center; }
.form-status:empty { display: none; }
.form-status[data-state="error"] { color: #C2185B; }
.form-status[data-state="ok"] { color: var(--purple); }
.form-status[data-state="info"] { color: var(--muted); }
/* "Message sent": replaces the fields inside the same card, so the page doesn't jump. */
.contact-form { position: relative; }
.contact-form > * { transition: opacity .3s ease; }
.contact-form.is-sent > :not(.form-sent) { opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
.form-sent { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; padding: 32px; text-align: center; }
.form-sent[hidden] { display: none; }
.sent-tick { width: 96px; height: 96px; overflow: visible; }
.sent-circle { fill: var(--purple); transform-box: fill-box; transform-origin: center; animation: sent-pop .55s cubic-bezier(.2, .9, .3, 1.4) .1s both; }
.sent-ring { fill: none; stroke: var(--purple); stroke-width: 2; transform-box: fill-box; transform-origin: center; opacity: 0; animation: sent-ring .9s ease-out .45s; }
.sent-check { fill: none; stroke: var(--white); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 38; stroke-dashoffset: 38; animation: sent-draw .45s cubic-bezier(.65, 0, .35, 1) .5s forwards; }
.sent-title { margin: 22px 0 0; font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); outline: none; animation: sent-rise .5s ease .75s both; }
.sent-text { margin: 8px 0 0; max-width: 32ch; font-size: 17px; line-height: 1.5; color: var(--muted); animation: sent-rise .5s ease .85s both; }
.sent-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); animation: sent-rise .5s ease .9s both; }
.sent-again {
  margin-top: 24px; padding: 6px 4px; border: 0; background: none; cursor: pointer;
  font: 600 15px/1.4 "Poppins", system-ui, sans-serif; color: var(--purple);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px;
  animation: sent-rise .5s ease 1s both;
}
.sent-again:hover { color: var(--deep); }
.sent-again:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }
@keyframes sent-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes sent-ring { from { opacity: .45; transform: scale(1); } to { opacity: 0; transform: scale(1.6); } }
@keyframes sent-draw { to { stroke-dashoffset: 0; } }
@keyframes sent-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .sent-circle, .sent-ring, .sent-title, .sent-text, .sent-note, .sent-again { animation: none; }
  .sent-check { animation: none; stroke-dashoffset: 0; }
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Say hi on LinkedIn: a solid purple button matching "Send message", with the white LinkedIn logo. */
.li-follow {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 58px; padding: 14px 24px; border-radius: 14px; background: var(--purple);
  color: var(--white); font-size: 17px; font-weight: 600; text-decoration: none;
}
.li-follow img { display: block; height: 20px; width: auto; }
.li-follow:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }

/* ---------- Footer: deep purple, logo and line left, links right ---------- */
.site-footer { position: relative; z-index: 5; background: var(--purple); color: var(--white); padding: clamp(48px, 6vw, 72px) var(--gutter) 28px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; max-width: 1180px; margin: 0 auto; padding-bottom: clamp(32px, 4vw, 48px); border-bottom: 1px solid rgba(255, 255, 255, .18); }
.footer-brand img { display: block; height: 64px; width: auto; }
.footer-brand p { margin: 16px 0 0; font-size: 15px; color: rgba(255, 255, 255, .72); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer-nav a { color: var(--white); text-decoration: none; font-weight: 500; font-size: 15px; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; max-width: 1180px; margin: 22px auto 0; font-size: 13px; color: rgba(255, 255, 255, .6); }
.site-footer a:focus-visible { outline-color: var(--white); }

@media (max-width: 860px) {
  .field-row { grid-template-columns: 1fr; }
  .form-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .form-foot .btn, .li-follow { justify-content: center; }
  .form-or { text-align: center; }
}
