/* Matthew Woolley name site. Page layout and motion.
   Buttons, the questions list, reveals and the form atoms come from
   wz/kernel.css (the Workzoom website's own rules), themed by theme.css.
   White ground since 2026-11-29: few words, big photographs, things that
   arrive rather than sit there. The petrol gradient and grain are kept for
   the footer and the newsletter band. */

:root {
  --ink: var(--color-text-primary);
  --ink-2: var(--color-text-secondary);
  --ink-3: var(--color-text-tertiary);
  --line: var(--color-border);
  --dur-1: var(--dur-snap, 100ms);
  --dur-3: var(--dur-default);
  --ease-out: var(--ease-entrance);
  --wrap: var(--max-w);
  --gutter: clamp(20px, 5vw, 48px);
  --nav-h: 80px;
  --pill-h: 60px;
  --r-photo: clamp(18px, 2.4vw, 28px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

/* Two-tone ring (UIENGINEERING Amendment 2, website). */
:focus-visible {
  outline: 2px solid var(--petrol);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #ffffff;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--petrol);
  color: #ffffff;
  border-radius: var(--r-sm);
  text-decoration: none;
  font-weight: 600;
}
.skip:focus { top: 16px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---- Header: a floating glass pill, round at both ends. The fill is the
   near-solid white with a light blur that Ramp and Workzoom use, so headlines
   never ghost through it. The mark sits on the page column's left edge and the
   button on its right edge; the pill's own padding hangs outside the column. ---- */
.nav {
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  position: fixed;
  top: 12px;
  left: max(8px, calc(var(--edge) - 16px));
  right: max(8px, calc(var(--edge) - 8px));
  z-index: 40;
  height: var(--pill-h);
  display: flex;
  align-items: center;
  gap: 8px;
  /* A square tile needs more room in a round end than the round button does
     (his words 2026-11-30: "feels too close to edge of header"). */
  padding: 0 8px 0 16px;
  /* Frosted glass (his words 2026-11-30: "the pill should still have the
     frosted glassy bg"): a thin white fill over a heavy blur, so what runs
     under it shows as soft colour, never as readable shapes. A bright inner
     edge is the light catching the glass; the outer hairline holds its shape
     on white. The fill stays thick enough for the links to pass contrast over
     the petrol footer (checked in tools/check-page.cjs). */
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
  backdrop-filter: blur(22px) saturate(1.8);
  box-shadow: 0 0 0 1px rgba(37, 61, 71, 0.08), 0 1px 2px rgba(27, 46, 54, 0.04), 0 8px 28px rgba(27, 46, 54, 0.07);
  transition: background-color 140ms var(--ease-color), box-shadow 140ms var(--ease-color);
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 0 0 1px rgba(37, 61, 71, 0.1), 0 1px 2px rgba(27, 46, 54, 0.05), 0 12px 36px rgba(27, 46, 54, 0.12);
}
.nav-name,
.foot-home,
.xp-logo--own {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--petrol);
  color: #ffffff;
  --sea: var(--sea-light);
}
.nav-name { flex: none; width: 38px; height: 38px; margin-right: auto; border-radius: var(--r-mark); }
.nav-mark { display: block; width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-right: 10px; }
.nav-link,
.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-color);
}
.nav-link:hover,
.menu-btn:hover,
.menu-btn[aria-expanded="true"],
.nav-link[aria-current="true"],
.menu-btn[aria-current="true"] { background: var(--wash); }
.menu-btn svg { width: 16px; height: 16px; color: var(--ink-3); transition: transform var(--dur-3) var(--ease); }
.menu-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Dropdowns grow out of their trigger and fold back into it. */
.menu { position: relative; }
.menu-panel {
  position: absolute;
  top: calc(100% + 18px);
  left: 0;
  z-index: 50;
  width: 340px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  transform-origin: 28px 0;
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  transition: opacity var(--dur-fast) var(--ease-color), transform var(--dur-3) var(--ease);
}
.menu-panel[hidden] { display: none; }
.menu-panel.is-in { opacity: 1; transform: none; }
.menu-panel a {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: background-color var(--dur-1) var(--ease-color);
}
.menu-panel a:hover,
.menu-panel a:focus-visible { background: var(--wash); }
.mi-name { font-size: 17px; font-weight: 500; line-height: 1.3; color: var(--ink); }
.mi-line { font-size: 15px; line-height: 1.35; color: var(--ink-2); }
.menu-panel--work { width: 380px; }
.menu-panel--work a { grid-template-columns: 72px 1fr; column-gap: 14px; align-items: center; }
.menu-panel--work a img { width: 72px; height: 54px; object-fit: cover; object-position: top; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.menu-panel .menu-all {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
}
.menu-all svg { width: 18px; height: 18px; color: var(--ink-2); transition: transform var(--dur-3) var(--ease); }
.menu-all:hover svg { transform: translate(2px, -2px); }

.nav-burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--wash);
  cursor: pointer;
}
.nav-burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--petrol);
  transition: transform var(--dur-3) var(--ease);
}
.nav-burger span:first-child { top: 18px; }
.nav-burger span:last-child { top: 25px; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Phone menu: the whole sitemap on one sheet, down from the header. */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 35;
  padding: calc(var(--nav-h) + 12px) var(--gutter) 32px;
  background: #ffffff;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity var(--dur-3) var(--ease-color), transform 320ms var(--ease);
}
.sheet[hidden] { display: none; }
.sheet.is-in { opacity: 1; transform: none; }
.sheet-inner { display: grid; }
.sheet-h { margin-top: 22px; padding-bottom: 6px; color: var(--ink-2); font-size: 15px; font-weight: 500; }
.sheet-inner > a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-decoration: none;
}
.sheet-cta { margin-top: 28px; justify-self: start; }
html.is-locked { overflow: hidden; }

/* ---- Hero ---- */
.hero { padding: calc(var(--nav-h) + clamp(48px, 9vh, 104px)) 0 0; text-align: center; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.hero-story { max-width: 37em; margin-top: clamp(24px, 3vw, 36px); color: var(--ink-2); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; text-wrap: pretty; }
.hero-story a { color: var(--ink); font-weight: 500; text-underline-offset: 4px; text-decoration-color: var(--color-border-input); }
.hero-story a:hover { text-decoration-color: var(--petrol); }

/* The intro is one scene told in three beats, after context-con.com (his ask
   2026-12-02: "study this page then make our own intro like that"): the
   greeting alone, then three photos drop onto a stack, then the stack
   blurs away as the title comes in word by word with the story and the
   signup under it. The big stage photo follows the scene and opens as it
   comes up (his ask 2026-12-03: "should be large image here again"). Scrolling drives it; script.js sets each part's state. Without motion
   (or without script) it is a plain column: greeting, title, story, signup,
   the stack. */
.intro-stage { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.intro-hey { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.intro-end { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.intro-after { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; width: 100%; }
.intro-title { max-width: 11.5em; text-wrap: balance; }
.intro-accent { color: var(--sea); }
.iw { display: inline-block; }
.intro-stack { position: relative; width: min(360px, 78vw); aspect-ratio: 1 / 1; margin-top: clamp(48px, 7vw, 80px); }
.pol {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 74%;
  margin: 0;
  padding: 9px 9px 34px;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 22px 44px -22px rgba(27, 46, 54, 0.42), 0 2px 6px rgba(27, 46, 54, 0.1);
  transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--r)) scale(var(--sc, 1));
}
.pol img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 30%; border-radius: 3px; background: var(--wash); }

@media (prefers-reduced-motion: no-preference) {
  .js .intro { height: 360vh; height: 360svh; padding: 0; }
  .js .intro-stage { position: sticky; top: 0; display: block; height: 100vh; height: 100svh; overflow: hidden; }
  .js .intro-hey {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: 50%;
    font-family: var(--font-display);
    font-size: clamp(34px, 5.2vw, 72px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.035em;
    opacity: var(--ho, 1);
    filter: blur(var(--hb, 0px));
    transform: translateY(-50%) scale(var(--hs, 1));
  }
  .js .intro-stack {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(280px, min(36vw, 58vh), 540px);
    margin: 0;
    opacity: var(--so, 1);
    filter: blur(var(--sb, 0px));
    transform: translate(-50%, -50%) scale(var(--ss, 1));
  }
  .js .pol { opacity: var(--o, 0); filter: blur(var(--b, 12px)); --sc: var(--z, 1.18); }
  .js .intro-end {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: 45%;
    transform: translateY(-50%);
  }
  .js .intro-end .iw { opacity: var(--o, 0); filter: blur(var(--b, 14px)); }
  .js .intro-after { opacity: var(--ao, 0); filter: blur(var(--ab, 8px)); }
  .js .intro-after.is-off { pointer-events: none; }
  .js .intro-hey .iw { opacity: 0; filter: blur(12px); }
  .js.is-ready .intro-hey .iw {
    opacity: 1;
    filter: blur(0);
    transition: opacity 900ms var(--ease-color), filter 1000ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 140ms + 200ms);
  }
  .js.is-settled .intro-hey .iw { filter: none; transition: none; }
  @media (max-width: 879px) { .js .intro-end { top: 42%; } }
  .js .intro + .hero-media { margin-top: -24vh; margin-top: -24svh; z-index: 1; }
}
.display {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(44px, 11.5vw, 84px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--ink);
}
/* Two wide lines on a desk, three short ones on a phone. His words 2026-11-30:
   the stacked block was too tall and "too narrow". */
.ln { display: block; }
.ln > span { display: block; }
.ln--wide { display: none; }
@media (min-width: 880px) {
  .display { font-size: clamp(64px, 8.6vw, 136px); }
  .ln--wide { display: block; }
  .ln--narrow { display: none; }
}

/* Newsletter signup: one pill, the button inside it. */
.signup { width: 100%; max-width: 460px; margin-top: 30px; }
.signup-row {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 58px;
  padding: 0 6px 0 22px;
  border: 1px solid var(--color-border-input);
  border-radius: 999px;
  background: #ffffff;
  transition: border-color var(--dur-fast) var(--ease-color), box-shadow var(--dur-fast) var(--ease-color);
}
.signup-row:hover { border-color: var(--petrol); }
.signup-row:focus-within { box-shadow: var(--field-ring); }
.signup-row.is-error { border-color: var(--status-error); }
.signup input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
}
.signup input:focus-visible { box-shadow: none; outline: 0; }
.signup input::placeholder { color: var(--ink-3); }
.signup .btn { flex: none; }
.signup .btn[disabled] { opacity: 0.6; cursor: progress; }
/* The message under the box eases in and out (script adds is-shown). Under
   the hero its line is always reserved; on the dark grounds it opens only
   when there is something to say, without a jump. */
.signup-note { min-height: 1.5em; margin-top: 12px; color: var(--ink-2); font-size: 15px; text-wrap: balance; opacity: 0; transition: opacity var(--dur-fast) var(--ease-color), max-height var(--dur-3) var(--ease), margin-top var(--dur-3) var(--ease); }
.signup-note.is-shown { opacity: 1; }
.signup-note.is-error { color: var(--error-text); }
.signup--on-dark .signup-note { min-height: 0; max-height: 0; margin-top: 0; padding-left: 22px; overflow: hidden; }
.signup--big .signup-note { padding-left: 26px; }
.signup--on-dark .signup-note.is-shown { max-height: 4.5em; margin-top: 10px; }
.signup--on-dark .signup-row { border-color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.12); }
.signup--on-dark .signup-row:hover { border-color: #ffffff; }
/* One ring, not two: the edge turns solid white with a soft halo. A wrong
   address tints that same ring instead of adding another. */
.signup--on-dark .signup-row:focus-within { border-color: #ffffff; box-shadow: 0 0 0 1px #ffffff, 0 0 0 5px rgba(255, 255, 255, 0.2); }
.signup--on-dark .signup-row.is-error,
.signup--on-dark .signup-row.is-error:hover { border-color: #ffb4ab; }
.signup--on-dark .signup-row.is-error:focus-within { box-shadow: 0 0 0 1px #ffb4ab, 0 0 0 5px rgba(255, 180, 171, 0.22); }
.signup--on-dark input { color: #ffffff; }
.signup--on-dark input::placeholder { color: rgba(255, 255, 255, 0.72); }
.signup--on-dark .btn-primary { background: #ffffff; color: var(--petrol); }
.signup--on-dark .btn-primary:hover { background: var(--first-light); color: var(--petrol); }
.signup--on-dark .signup-note { color: rgba(255, 255, 255, 0.82); }
.signup--on-dark .signup-note.is-error { color: #ffb4ab; }

.hero-media {
  position: relative;
  width: min(100% - 2 * var(--gutter), var(--wrap) - 2 * var(--gutter));
  margin: clamp(48px, 7vw, 88px) auto 0;
}
.hero-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-photo);
  background: var(--wash);
}
.hero-frame img {
  position: absolute;
  inset: -6% 0 auto 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: 50% 30%;
  transform: translate3d(0, var(--py, 0px), 0) scale(var(--s, 1));
}
.hero-media figcaption { position: absolute; left: 16px; bottom: 16px; }
@media (max-width: 879px) { .hero-frame img { object-position: 38% 30%; } .hero-frame .credit { right: 12px; bottom: auto; top: 12px; } }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color var(--dur-1) var(--ease-color), background-color var(--dur-1) var(--ease-color);
}
.chip:hover { border-color: var(--petrol); }
.chip svg { width: 16px; height: 16px; }
/* Anything clickable shows its arrow on hover, in place of link text (his
   words 2026-11-30: "anything clickable should just show arrows on hover
   instead of wasting text"). On a touch screen there is no hover, so chips go
   without and cards keep theirs. */
.chip .chip-go { transition: width var(--dur-3) var(--ease), margin var(--dur-3) var(--ease), opacity var(--dur-fast) var(--ease-color), transform var(--dur-3) var(--ease); }
@media (hover: hover) {
  .chip .chip-go { width: 0; margin-left: -6px; opacity: 0; transform: translate(-3px, 3px); }
  .chip:hover .chip-go, .chip:focus-visible .chip-go { width: 16px; margin-left: 0; opacity: 1; transform: none; }
}
@media (hover: none) { .chip .chip-go { display: none; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- Sections ---- */
.band { padding: clamp(80px, 11vw, 152px) 0 0; }
/* Headings are set light (weight 400), never medium or bold. His words
   2026-11-30: "thick font doesnt feel as good as clean thin, workzoom website
   proved it". */
/* Section heading: one real heading per section, large, on the page column's
   left edge. No rule above it and no number beside it. */
.label {
  margin-bottom: clamp(28px, 3.6vw, 48px);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--t-section);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.label h2, .label h1 { font: inherit; letter-spacing: inherit; }
.label--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }

/* One size for every item title on the page. */
:root { --t-section: clamp(32px, 4.2vw, 56px); --t-item: clamp(22px, 2.1vw, 29px); --r-curve: clamp(28px, 4.5vw, 64px); --r-tile: 16px; --r-mark: 11px; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 24px; }
.statement {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}
.statement .w { transition: opacity 320ms var(--ease-color); }
.js .statement .w { opacity: 0.2; }
.js .statement .w.on { opacity: 1; }
.about .chips { margin-top: 28px; }
.about-photo { aspect-ratio: 4 / 5; }

/* Photographs: every image wrapper clips its picture so it can settle in. */
.media { position: relative; overflow: hidden; border-radius: var(--r-photo); background: var(--wash); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.photos { padding-top: clamp(80px, 11vw, 152px); scroll-margin-top: var(--nav-h); }
.rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  /* A rail stops at the page column, like everything else: a clean cut, the
     next card simply continues past the edge. A fade was tried and dropped
     ("the blurring is kinda ugly", 2026-11-30). */
  width: min(100% - 2 * var(--gutter), var(--wrap) - 2 * var(--gutter));
  margin-inline: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail:active { cursor: grabbing; }
.shot { flex: none; height: clamp(280px, 40vw, 540px); aspect-ratio: 4 / 3; }
.shot--tall { aspect-ratio: 3 / 4; }
.shot img { -webkit-user-drag: none; user-select: none; }
.shot figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}
.rail-foot { margin-top: 20px; }
.work-controls { display: flex; gap: 8px; }
.work-controls[hidden] { display: none; }
.arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--petrol);
  color: #ffffff;
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-color), color var(--dur-1) var(--ease-color), transform var(--dur-1) var(--ease-color);
}
.arrow svg { width: 22px; height: 22px; stroke-width: 2.25; }
.arrow:hover:not([disabled]) { background: var(--petrol-deep); }
.arrow:active:not([disabled]) { transform: scale(0.95); }
/* At the end of the rail the arrow goes quiet but stays easy to see. */
.arrow[disabled] { background: var(--wash); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--color-border-input); cursor: default; }

/* Experience: logo, name, roles. Nothing else. His words 2026-11-30: "id
   rather logos and things". */
.rows { border-bottom: 1px solid var(--line); }
.rows > li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 6px 20px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.rows > li:first-child { border-top: 0; padding-top: 0; }
.xp-logo {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: var(--r-tile);
  box-shadow: 0 0 0 1px var(--line);
}
.xp-logo img { display: block; width: 100%; height: 100%; }
.xp-logo--own { box-shadow: none; }
.xp-logo--own svg { width: 42px; height: 42px; }
.rows h3 { font-family: var(--font-display); font-size: var(--t-item); font-weight: 400; line-height: 1.2; letter-spacing: -0.03em; }
/* Each role has a few plain lines under it (Matthew, 2026-11-30: "could be
   way more detailed"). Still no years and no job-board prose. */
.xp-head p { margin-top: 4px; color: var(--ink-2); font-size: 16px; }
.xp-roles { display: grid; gap: 22px; }
.xp-roles h4 { margin: 0; color: var(--ink); font-family: inherit; font-size: 18px; font-weight: 500; line-height: 1.4; letter-spacing: 0; }
.xp-roles ul { display: grid; gap: 4px; margin-top: 8px; color: var(--ink); font-size: 18px; line-height: 1.5; }

/* Work: big cards, the live page is the picture. */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px 24px; }
.card { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 18px 16px; align-items: start; text-decoration: none; scroll-margin-top: calc(var(--nav-h) + 24px); }
.card-media { grid-column: 1 / -1; aspect-ratio: 16 / 10; box-shadow: 0 0 0 1px var(--line); }
.card-media img { object-position: top center; }
.card-text { display: grid; gap: 4px; }
.card-name { font-family: var(--font-display); font-size: var(--t-item); font-weight: 400; line-height: 1.15; letter-spacing: -0.03em; }
.card-line { color: var(--ink-2); font-size: 17px; font-weight: 500; line-height: 1.4; }
.card-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border-input);
  border-radius: 50%;
  transition: background-color var(--dur-3) var(--ease-color), color var(--dur-3) var(--ease-color), border-color var(--dur-3) var(--ease-color);
}
.card-go svg { width: 20px; height: 20px; transition: transform var(--dur-3) var(--ease); }
.card:hover .card-go { background: var(--petrol); border-color: var(--petrol); color: #ffffff; }
.card:hover .card-go svg { transform: translate(2px, -2px); }
@media (hover: hover) {
  .card-go { opacity: 0; transform: translate(-6px, 6px) scale(0.9); transition: opacity var(--dur-fast) var(--ease-color), transform var(--dur-3) var(--ease), background-color var(--dur-3) var(--ease-color), color var(--dur-3) var(--ease-color), border-color var(--dur-3) var(--ease-color); }
  .card:hover .card-go, .card:focus-visible .card-go { opacity: 1; transform: none; }
}
.card:focus-visible { outline-offset: 8px; border-radius: var(--r-photo); }

.rail--pieces { gap: 24px; }
.piece { flex: none; width: clamp(300px, 36vw, 500px); display: grid; align-content: start; gap: 4px; text-decoration: none; }
.piece-media { aspect-ratio: 16 / 10; margin-bottom: 12px; box-shadow: 0 0 0 1px var(--line); }
.piece-media img { object-position: center; -webkit-user-drag: none; user-select: none; }
.credit { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(27, 46, 54, 0.72); color: #ffffff; font-size: 13px; font-weight: 500; line-height: 1.4; }
.piece-kind { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: 15px; font-weight: 500; }
.piece-kind svg { width: 15px; height: 15px; }
/* The arrow badge on a card's picture, hover only. */
.go { position: absolute; top: 12px; right: 12px; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.95); color: var(--petrol); opacity: 0; transform: translate(-6px, 6px) scale(0.9); transition: opacity var(--dur-fast) var(--ease-color), transform var(--dur-3) var(--ease); }
.go svg { width: 18px; height: 18px; }
.piece:hover .go, .piece:focus-visible .go { opacity: 1; transform: none; }
@media (hover: none) { .go { display: none; } }
.piece-name { font-family: var(--font-display); font-size: clamp(20px, 1.7vw, 24px); font-weight: 400; line-height: 1.22; letter-spacing: -0.025em; text-wrap: pretty; }

/* Newsletter band: the grainy petrol ground, one big line, a glass signup.
   A soft light follows the pointer across it (the kit's own spotlight). His
   words 2026-11-30: "newsletter signup could be much cooler". */
.news { padding-top: clamp(80px, 11vw, 152px); scroll-margin-top: calc(var(--nav-h) - 40px); }
.news-card {
  display: grid;
  align-content: space-between;
  gap: clamp(72px, 11vw, 168px);
  padding: clamp(24px, 4vw, 56px);
  overflow: hidden;
  border-radius: var(--r-photo);
}
.news-kicker { display: inline-flex; color: rgba(255, 255, 255, 0.84); }
/* Sized against the big word under it: at 26 pixels it "feels small"
   (Matthew, 2026-11-30). The line thins a touch as the icon grows. */
.news-kicker svg { width: clamp(36px, 3.6vw, 52px); height: clamp(36px, 3.6vw, 52px); stroke-width: 1.25; }
/* One column that may shrink: without the minmax the signup's own width
   pushed the Subscribe button past the band's edge on a phone. */
.news-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); align-items: end; }
.news-inner h1,
.news-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.6vw, 96px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.news-inner .signup { margin-top: 0; max-width: 520px; }
.news-inner .signup-note:empty { min-height: 0; margin-top: 0; }
.signup--big .signup-row { height: 64px; padding-left: 26px; background: rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.signup--big input { font-size: 19px; }
/* On a phone the big signup tightens so "Get the newsletter" is not cut short. */
@media (max-width: 479px) {
  .signup--big .signup-row { padding-left: 20px; }
  .signup--big input { font-size: 16px; }
}

/* Questions inside the split layout. */
.wz-faq-list { max-width: none; }
.wz-faq-question { font-size: var(--t-item); }
.wz-faq-trigger { font: inherit; color: inherit; }
.wz-faq-question { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.03em; }
.wz-faq-item { content-visibility: visible; }
.wz-faq-answer-inner p { color: var(--ink-2); }
.wz-faq-answer-inner a,
.form-alt a { color: var(--ink); text-underline-offset: 4px; text-decoration-color: var(--color-border-input); transition: text-decoration-color var(--dur-1) var(--ease-color); }
.wz-faq-answer-inner a:hover,
.form-alt a:hover { text-decoration-color: var(--petrol); }

/* ---- Work with me: the website's form atoms on a soft wash ---- */
/* Workzoom scope: what he runs there, as plain lists under three heads. */
.scope { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 24px; margin: clamp(32px, 4vw, 56px) 0 0; padding: clamp(24px, 3.6vw, 48px); border-radius: var(--r-lg); overflow: hidden; }
.scope dt { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: rgba(255, 255, 255, 0.8); font-size: 15px; font-weight: 500; }
.scope dt svg { width: 18px; height: 18px; color: var(--sea-light); }
.scope dd { margin: 0; color: #ffffff; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; letter-spacing: -0.015em; }

/* Recommendations: other people's words, word for word, from his LinkedIn. */
/* Recommendations: a sideways rail of plain light cards, quote then face,
   name and role. Matthew 2026-12-04: "make it like a carousel, make them
   more professional", the hatched gradient cards were too busy. */
.rail--quotes { gap: 24px; }
/* On a phone the heading fills the row; the cards are swiped. */
@media (max-width: 559px) { #said .work-controls { display: none; } }
.quote {
  flex: none;
  width: clamp(300px, 36vw, 460px);
  display: grid;
  align-content: space-between;
  gap: 40px;
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--r-lg);
  background: var(--wash);
  box-shadow: inset 0 0 0 1px var(--line);
  user-select: none;
}
.quote blockquote { margin: 0; }
.quote p { color: var(--ink); font-family: var(--font-display); font-size: clamp(19px, 1.6vw, 22px); font-weight: 400; line-height: 1.42; letter-spacing: -0.015em; text-wrap: pretty; }
.quote figcaption { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 14px; align-items: center; }
.quote figcaption:has(.q-face) { grid-template-columns: 48px minmax(0, 1fr); }
.q-face { grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; -webkit-user-drag: none; }
.q-name { font-size: 17px; font-weight: 600; }
.q-role { color: var(--ink-2); font-size: 15px; line-height: 1.4; }

/* The closing section sits on the page's middle line: heading and form. */
#side, #said { scroll-margin-top: var(--nav-h); }
#contact .label { text-align: center; }
.panel { max-width: 792px; margin-inline: auto; }
.contact { margin-top: 0; }
.wz-field[hidden] { display: none; }
.contact .field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--gap-md) var(--gap-tween);
}
/* The grid owns the rhythm here; the kernel's stacked-field margin steps aside. */
.contact .field-grid > .wz-field { margin-top: 0; }
.contact .field-grid > .field-wide { grid-column: 1 / -1; }
.contact .field-grid:has(#timing-field[hidden]) > #intent-field { grid-column: 1 / -1; }
.contact .wz-field-label, .contact .wz-field-legend { font-size: var(--text-xs); }
.contact .wz-textarea { display: block; min-height: 132px; }
.contact .wz-input.is-error:focus, .contact .wz-textarea.is-error:focus { box-shadow: var(--field-ring); }
.contact .wz-combo-trigger { -webkit-tap-highlight-color: transparent; }
.contact .wz-combo-chev { width: 18px; height: 18px; }
.contact .wz-combo-panel {
  transform-origin: top center;
  opacity: 0;
  transform: translateY(-4px) scale(0.98);
  transition: opacity var(--dur-fast) var(--ease-color), transform var(--dur-3) var(--ease);
}
.contact .wz-combo-panel.is-in { opacity: 1; transform: none; }
.contact .wz-combo-opt { min-height: var(--field-h); padding-inline: var(--gap-sm); }
.contact .wz-combo-opt:hover, .contact .wz-combo-opt.is-active { background: var(--wash); }
.contact .wz-combo-check { width: 18px; height: 18px; }
.contact .wz-form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--gap-sm) var(--gap-md); margin-top: var(--gap-md); }
.contact .btn[disabled] { opacity: 0.6; cursor: progress; }
.form-alt { color: var(--ink-2); font-size: 16px; }
.panel .wz-form-success { margin-top: 28px; align-items: flex-start; background: var(--wash); font-size: 18px; font-weight: 500; line-height: 1.45; }
.panel .wz-form-success svg { margin-top: 1px; color: var(--sea); }
.panel .wz-form-success:focus { outline: none; }

/* ---- Footer: the petrol ground from the banner, a sitemap, and the name ---- */
main {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(88px, 12vw, 160px);
  background: #ffffff;
  border-radius: 0 0 var(--r-curve) var(--r-curve);
}
.foot {
  position: relative;
  margin-top: calc(-1 * var(--r-curve));
  padding-top: calc(var(--r-curve) + clamp(64px, 8vw, 112px));
  overflow: hidden;
  color: #ffffff;
  isolation: isolate;
}
.foot-ground {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 90% at 100% 100%, rgba(137, 182, 176, 0.5) 0%, rgba(137, 182, 176, 0) 70%),
    linear-gradient(98deg, var(--petrol) 0%, var(--petrol-mid) 46%, var(--sea) 100%);
}
.foot-ground::after {
  content: "";
  position: absolute;
  inset: 0;
  mix-blend-mode: overlay;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* No line drawing on the footer: gradient and grain only. Matthew
   2026-12-04: the flow lines were "too noisy". */
/* Three plain bands with air between them: the signup, the sitemap, the base
   line. His words 2026-11-30: the first footer was "jammed together". */
.foot-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(44px, 5.5vw, 72px); }
.foot-news { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: clamp(44px, 5.5vw, 72px); border-bottom: 1px solid rgba(255, 255, 255, 0.24); }
.foot-lead { font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); font-weight: 400; line-height: 1.12; letter-spacing: -0.035em; }
.foot-news .signup { margin-top: 0; }
.foot-news .signup-note:empty { min-height: 0; margin-top: 0; }
.foot-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 24px; }
.foot-home { grid-column: 1 / -1; justify-self: start; align-self: start; width: 48px; height: 48px; min-height: 0; border-radius: calc(var(--r-mark) * 1.2); background: #ffffff; --sea: var(--sea); }
.foot-map .foot-home { color: var(--petrol); }
.foot-mark { display: block; width: 32px; height: 32px; }
.foot-map h2 { margin-bottom: 14px; color: rgba(255, 255, 255, 0.72); font-size: 15px; font-weight: 400; }
.foot-map ul { display: grid; gap: 4px; justify-items: start; }
.foot-map a,
.foot-base a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: #ffffff;
  font-size: 17px;
  text-decoration: none;
  transition: color var(--dur-1) var(--ease-color);
}
/* A footer link shows a small diagonal arrow at its top right on hover, in
   place of an underline (Matthew, 2026-11-30: "need diagonal arrows onhover
   top right"). The arrow hangs outside the link, so nothing shifts. */
.foot-map a:not(.foot-home),
.foot-base a { position: relative; }
.foot-map a:not(.foot-home)::after,
.foot-base a::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 100%;
  width: 12px;
  height: 12px;
  margin-left: 4px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity var(--dur-fast) var(--ease-color), transform var(--dur-3) var(--ease);
  pointer-events: none;
}
.foot-map a:not(.foot-home):hover::after,
.foot-map a:not(.foot-home):focus-visible::after,
.foot-base a:hover::after,
.foot-base a:focus-visible::after { opacity: 1; transform: none; }
.foot-map a:hover,
.foot-base a:hover { color: #ffffff; }
@media (hover: none) {
  .foot-map a:not(.foot-home)::after,
  .foot-base a::after { display: none; }
}
.foot :focus-visible { outline-color: #ffffff; box-shadow: 0 0 0 2px var(--petrol); }
.foot-base {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.84);
  font-size: 16px;
}
.foot-base p { display: inline-flex; align-items: center; gap: 10px; align-self: center; }
.leaf { flex: none; width: 18px; height: 18px; color: #ffffff; }
/* The name, set in the site's own type on the page column: it starts and ends
   on the same edges as everything above it. White at the top of the letters,
   fading toward the foot. As the footer comes into view the letters rise one
   after another, tied to the scroll. Each letter is its own box so it can
   move, so the gaps the type would close on its own (W and o, e and y) are
   closed by hand below. 3.4 is the word's measured width in ems. */
.foot-word-wrap {
  container-type: inline-size;
  margin-top: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(20px, 3vw, 40px);
}
.foot-word {
  font-family: var(--font-display);
  font-size: calc(100cqw / 3.4);
  font-weight: 400;
  line-height: 1.08;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}
.fw-l {
  display: inline-block;
  margin-right: -0.05em;
  background: linear-gradient(180deg, #ffffff 24%, rgba(255, 255, 255, 0.3) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fw-l:nth-child(1) { margin-right: -0.08em; }
.fw-l:nth-child(3) { margin-right: -0.045em; }
.fw-l:nth-child(5) { margin-right: -0.046em; }
.fw-l:nth-child(6) { margin-right: -0.065em; }
.fw-l:nth-child(7) { margin-right: 0; }

/* ---- Wide screens ---- */
@media (min-width: 880px) {
  .about { grid-template-columns: 7fr 1fr 4fr; align-items: start; }
  .about-photo { grid-column: 3; }
  .rows > li { grid-template-columns: 2fr 4fr 6fr; gap: 0 24px; }
  .xp-logo { grid-row: auto; }
  /* Name and first role sit on the logo's middle line. */
  .xp-head { margin-top: 9px; }
  .xp-roles { margin-top: 14px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 24px; }
  .cards--one { grid-template-columns: minmax(0, 1fr); }
  .cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scope { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* The newsletter band stays stacked at every width: the word, then the
     signup under it. His words 2026-11-30: side by side "feels weird". */
  /* Workzoom is the main thing, so it gets the page width: picture on the
     left, name beside it. */
  .card--lead { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr) auto; gap: 0 clamp(24px, 3vw, 44px); align-items: end; }
  .card--lead .card-media { grid-column: 1; }
  .card--lead .card-name { font-size: var(--t-section); letter-spacing: -0.04em; line-height: 1.04; }
  .card--lead .card-text { gap: 10px; padding-bottom: 4px; }
  .card--lead .card-line { font-size: 18px; }
  /* The footer signup stays stacked too, like the newsletter band: the word,
     then the signup under it (Matthew, 2026-11-30: "stack the footer
     newsletter too"). */
  .foot-map { grid-template-columns: 1.2fr repeat(4, minmax(max-content, 1fr)); gap: clamp(24px, 4vw, 48px); }
  .foot-home { grid-column: auto; }
  .foot-map li a { white-space: nowrap; }
}

/* ---- Phones ---- */
@media (max-width: 879px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-cta .btn-iconbox { display: none; }
  .hero-frame { aspect-ratio: 4 / 5; }
  .hero-frame img { object-position: 50% 40%; }
  .signup-row { height: 54px; padding-left: 18px; }
  .signup .btn .btn-iconbox { display: none; }
  .about-photo { aspect-ratio: 1 / 1; max-width: 420px; }
}

/* ---- Motion: things arrive once, then stay put ---- */
@media (prefers-reduced-motion: no-preference) {
  /* Text comes into focus where it stands: a soft blur clears and it settles
     a few pixels, one line after the next. Nothing slides up from below. */
  .js .seq { opacity: 0; filter: blur(8px); transform: translateY(6px); }
  .js.is-ready .seq {
    opacity: 1;
    filter: blur(0);
    transform: none;
    transition: opacity 900ms var(--ease-color), filter 900ms var(--ease-out), transform 1000ms var(--ease-out);
    transition-delay: calc(var(--d, 0) * 90ms + 120ms);
  }
  .js .ln > span { opacity: 0; filter: blur(16px); transform: translateY(0.06em) scale(0.985); }
  .js.is-ready .ln > span {
    opacity: 1;
    filter: blur(0);
    transform: none;
    transition: opacity 1000ms var(--ease-color), filter 1100ms var(--ease-out), transform 1200ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 130ms + 160ms);
  }
  /* The story comes in word by word, each one sharpening where it stands. */
  .js .hero-story .cw { opacity: 0; filter: blur(7px); }
  .js.is-ready .hero-story .cw {
    opacity: 1;
    filter: blur(0);
    transition: opacity 620ms var(--ease-color), filter 760ms var(--ease-out);
    transition-delay: calc(var(--w, 0) * 22ms + 560ms);
  }
  .js.is-settled .hero-story .cw { filter: none; transition: none; }
  /* Scrolling brings the rest of the page in the same way. A heading arrives
     word by word; a block comes into focus where it stands, never sliding up
     from below. The script adds .is-in as each one enters the screen and
     .is-done once it has landed. The lists match the ones in script.js. */
  .js :is(main h1.label, main h2.label):not(.is-split) { opacity: 0; }
  .js :is(main h1.label, main h2.label) .cw { opacity: 0; filter: blur(10px); }
  .js :is(main h1.label, main h2.label).is-in .cw {
    opacity: 1;
    filter: blur(0);
    transition: opacity 700ms var(--ease-color), filter 860ms var(--ease-out);
    transition-delay: calc(var(--w, 0) * 60ms + var(--ad, 0ms));
  }
  .js :is(main h1.label, main h2.label).is-done .cw { filter: none; transition: none; }
  .js :is(main .reveal, main .piece, main .shot, main .prose > *, main .wz-faq-item, main form.contact, .foot-news, .foot-map > *, .foot-base):not(.is-done) {
    opacity: 0;
    filter: blur(8px);
    transform: scale(0.994);
    animation: none;
  }
  .js :is(main .reveal, main .piece, main .shot, main .prose > *, main .wz-faq-item, main form.contact, .foot-news, .foot-map > *, .foot-base).is-in:not(.is-done) {
    opacity: 1;
    filter: blur(0);
    transform: none;
    transition: opacity 800ms var(--ease-color), filter 900ms var(--ease-out), transform 1000ms var(--ease-out);
    transition-delay: var(--ad, 0ms);
  }
  .js .hero-frame {
    clip-path: inset(calc(var(--hq, 1) * 9%) calc(var(--hq, 1) * 13%) 0 calc(var(--hq, 1) * 13%) round var(--r-photo));
    --s: calc(1 + var(--hq, 1) * 0.16);
  }
  .fw-l {
    --p: clamp(0, calc(var(--wm, 1) * 1.9 - var(--i) * 0.12), 1);
    transform: translateY(calc((1 - var(--p)) * 8%));
    filter: blur(calc((1 - var(--p)) * 18px));
    opacity: var(--p);
  }
  .js .hero-media figcaption { opacity: calc(1 - var(--hq, 1) * 3); }

  .js .media:not(.hero-frame) > img { opacity: 0; transform: scale(1.08); }
  .js .media.is-visible > img {
    opacity: 1;
    transform: none;
    transition: opacity 900ms var(--ease-color), transform 1500ms var(--ease-out);
  }
  .js .card:hover .media.is-visible > img,
  .js .piece:hover .media.is-visible > img { transform: scale(1.03); transition: transform 700ms var(--ease-out); }
  .rows > li.reveal:nth-child(2), .cards > .reveal:nth-child(2n) { animation-delay: 80ms; }
  .rows > li.reveal:nth-child(3) { animation-delay: 140ms; }
  .rows > li.reveal:nth-child(4) { animation-delay: 200ms; }
  .rows > li.reveal:nth-child(5) { animation-delay: 260ms; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .statement .w { opacity: 1 !important; }
  .menu-panel, .sheet, .contact .wz-combo-panel { transform: none; transition: opacity var(--dur-fast) var(--ease-color); }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .nav.is-scrolled { background: #ffffff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --color-border: #84959c; --color-text-secondary: var(--petrol); --color-text-tertiary: #4d626b; --color-text-muted: #4d626b; }
  .nav, .nav.is-scrolled { background: #ffffff; border-color: var(--petrol); }
}

/* ---- Pages (the site is several pages since 2026-11-30, see SITEMAP.md) ---- */
/* The first section on a page clears the floating header. */
.band--first { padding-top: calc(var(--nav-h) + clamp(40px, 7vh, 96px)); }
/* A page that is a heading and then a full-width rail: the rail follows close. */
.band--head + .photos { padding-top: clamp(32px, 4vw, 56px); }
/* A page's one main heading: the section heading, a size up. */
h1.label { font-size: clamp(40px, 5.4vw, 76px); letter-spacing: -0.045em; line-height: 1; }
/* A link beside a heading must not take the heading's tight tracking: that
   tracking is a fixed length sized for big type and crushes small type. */
.label--row .chip { flex: none; letter-spacing: 0; font-family: var(--font); line-height: 1.3; }
.rail-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(24px, 3vw, 36px); }
/* Writing, and Speaking and press: the same cards as the rail, in a grid. */
.pieces { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px 24px; }
.pieces .piece { width: auto; }
@media (min-width: 620px) { .pieces { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .pieces { grid-template-columns: repeat(3, minmax(0, 1fr)); } }/* Plain reading text, for the privacy page. */
.prose { display: grid; gap: 18px; max-width: 62ch; color: var(--ink-2); font-size: 18px; line-height: 1.6; }
.prose a { color: var(--ink); text-underline-offset: 4px; }

/* ---- The grainy petrol ground ----
   The footer's ground, as one class, for anything that should carry it: the
   newsletter band, the recommendations, the Workzoom scope. His words
   2026-11-30: "the grainy blue at the bottom should be used much more widely
   around the site". The solid colour underneath is what contrast is checked
   against. */
.grain {
  position: relative;
  isolation: isolate;
  color: #ffffff;
  background-color: var(--petrol);
  background-image:
    radial-gradient(70% 90% at 100% 100%, rgba(137, 182, 176, 0.5) 0%, rgba(137, 182, 176, 0) 70%),
    linear-gradient(98deg, var(--petrol) 0%, var(--petrol-mid) 46%, var(--sea) 100%);
}
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* The soft light that follows the pointer works on every gradient ground,
   not only the newsletter band. His words 2026-11-30: "hover should work on
   any gradient part". The radius is forced because the kit script writes
   its own smaller one on the element. */
.grain[data-wz-hover~="spotlight"],
.foot[data-wz-hover~="spotlight"] { --wz-spot-color: rgba(137, 182, 176, 0.4); --wz-spot-r: 440px !important; }
.grain :focus-visible { outline-color: #ffffff; box-shadow: 0 0 0 2px var(--petrol); }

/* Textured grounds: one texture per panel over the same petrol gradient,
   fading in toward the light corner. Matthew 2026-12-02, "apply this to my
   site" on a set of textured gradients (reference kept in
   Agent-Work/references/heydamir-textured-gradients; palettes not taken,
   the petrol stays). Drawn here, never the reference images. The texture
   rides the grain layer, so the kit's hover light (::after) is untouched. */
.grain[class*="tex-"]::before {
  background-image: var(--tex), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: var(--tex-size, auto), 256px 256px;
  opacity: 0.62;
  -webkit-mask-image: linear-gradient(var(--tex-dir, 115deg), rgba(0, 0, 0, 0.3) 10%, #000 85%);
  mask-image: linear-gradient(var(--tex-dir, 115deg), rgba(0, 0, 0, 0.3) 10%, #000 85%);
}
/* Halftone: a dot screen, like a print. The newsletter band. */
.tex-dots { --tex: radial-gradient(circle, rgba(255, 255, 255, 0.9) 1.3px, transparent 1.8px); --tex-size: 11px 11px; }
/* No lines on the scope panels: his words 2026-12-05, "i hate the lines bg". */
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .grain[class*="tex-"]::before { background-image: none; }
}

/* ---- Icons and hover arrows ---- */
/* A heading that is a link: the arrow sits beside it and shows on hover. */
.label-link { display: inline-flex; align-items: center; gap: 0.2em; color: inherit; text-decoration: none; }
.label-link svg { flex: none; width: 0.56em; height: 0.56em; stroke-width: 1.5; opacity: 0; transform: translate(-0.16em, 0.16em); transition: opacity var(--dur-fast) var(--ease-color), transform var(--dur-3) var(--ease); }
.label-link:hover svg, .label-link:focus-visible svg { opacity: 1; transform: none; }
@media (hover: none) { .label-link svg { opacity: 0.45; transform: none; } }
/* A social account is its icon, never its name spelled out. */
.social { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); transition: background-color var(--dur-1) var(--ease-color), border-color var(--dur-1) var(--ease-color), color var(--dur-1) var(--ease-color); }
.social svg { width: 20px; height: 20px; }
.social:hover { background: var(--petrol); border-color: var(--petrol); color: #ffffff; }
.menu-panel--icons a { grid-template-columns: 20px 1fr; column-gap: 12px; align-items: center; }
.mi-ico { width: 18px; height: 18px; color: var(--ink-2); transition: color var(--dur-1) var(--ease-color); }
.menu-panel--icons a:hover .mi-ico, .menu-panel--icons a:focus-visible .mi-ico { color: var(--petrol); }
.foot-map a .ico { flex: none; width: 17px; height: 17px; margin-right: 10px; opacity: 0.85; }

/* ---- Not-found page ---- */
.nf-body { display: grid; min-height: 100vh; }
.nf { display: grid; place-content: center; justify-items: center; gap: 28px; padding: var(--gutter); text-align: center; }
.nf .label { margin: 0; }
.nf .nav-name { margin: 0; width: 56px; height: 56px; border-radius: calc(var(--r-mark) * 1.4); }
.nf .nav-mark { width: 38px; height: 38px; }

/* ---- Apple-style continuous corners, site wide ----
   A plain border-radius is a quarter circle bolted onto straight edges. A
   continuous corner eases into the curve, the way iOS icons and Apple hardware
   do. Browsers that know corner-shape get it on every rounded rectangle on the
   site; the rest keep the round corners above. A continuous corner reads
   tighter than a round one at the same number, so the radii step up here.
   Pills and circles stay true rounds: easing a full round turns it boxy. */
@supports (corner-shape: squircle) {
  :root {
    --r-sm: 14px;
    --r-md: 26px;
    --r-lg: 40px;
    --r-photo: clamp(26px, 3.4vw, 40px);
    --r-curve: clamp(40px, 6.4vw, 92px);
    --r-tile: 22px;
    --r-mark: 15px;
  }
  *,
  *::before,
  *::after { corner-shape: squircle; }
  .nav,
  .btn,
  .nav-link,
  .menu-btn,
  .nav-burger,
  .nav-burger span,
  .signup-row,
  .chip,
  .shot figcaption,
  .credit,
  .arrow,
  .card-go,
  .go,
  .social,
  .q-face,
  .wz-faq-answer-inner li::before,
  .wz-tile-arrow,
  .wz-industries-arrow { corner-shape: round; }
  /* The hero photo opens through a clip that only knows round corners; once it
     has opened, the clip steps aside so the frame's own corner shows. */
}

/* ---- LinkedIn details, 2026-12-02 ----
   His words: "can you import all my linkedin details to the website
   beutifully". Read from his Sales Navigator lead page that day. The About
   page tells his own About in three short paragraphs; Experience carries each
   role's detail and a Skills block built from his endorsed skills. No dates,
   no job titles from LinkedIn (BRAND.md, Words). */
.about-story { margin-top: 28px; max-width: 56ch; }
.label--sub { margin-top: clamp(72px, 9vw, 120px); }
.skills { display: grid; grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.skill-group { display: grid; gap: 14px; padding: 24px 0; border-top: 1px solid var(--line); }
.skill-group:first-child { border-top: 0; padding-top: 0; }
.skill-group h3 { color: var(--ink); font-family: inherit; font-size: 18px; font-weight: 500; line-height: 1.4; letter-spacing: 0; }
.tag { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--wash); color: var(--ink); font-size: 16px; }
@media (min-width: 768px) {
  .skill-group { grid-template-columns: 6fr 6fr; gap: 24px; align-items: center; }
  .skill-group:first-child { padding-top: 0; }
}

/* ---- Proof, not prose (2026-12-05) ----
   His words: "the whole website feels thin and under content developed".
   Each page carries more proof: headline figures, the systems one by one,
   a recommendation on its own. Few words still: a figure and its label, a
   name and one line. */
.figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 24px; }
.fig { display: grid; align-content: start; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.fig svg { width: 24px; height: 24px; color: var(--sea); }
.fig b { color: var(--ink); font-family: var(--font-display); font-size: clamp(48px, 6vw, 88px); font-weight: 400; line-height: 0.95; letter-spacing: -0.05em; }
.fig span { color: var(--ink-2); font-size: 17px; line-height: 1.4; text-wrap: balance; }

.items-head { margin: clamp(40px, 5vw, 56px) 0 8px; color: var(--ink-2); font-family: inherit; font-size: 15px; font-weight: 500; letter-spacing: 0; }
.items-head:first-of-type { margin-top: 0; }
.items { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
.item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 18px; align-items: start; align-content: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.item-ico { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-tile); background: var(--wash); color: var(--petrol); }
.item-ico svg { width: 22px; height: 22px; }
.item h4, .item h3 { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: clamp(20px, 1.8vw, 24px); font-weight: 400; line-height: 1.2; letter-spacing: -0.02em; }
.item p { color: var(--ink-2); font-size: 17px; line-height: 1.45; }

.quote--solo { width: auto; max-width: 880px; gap: 48px; user-select: text; }
.quote--solo p { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; letter-spacing: -0.025em; }

@media (min-width: 880px) {
  .figs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .items { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
}

/* Press kit (2026-12-05): the bios at three lengths, each ready to copy,
   then photographs to download and the facts. */
.kit { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.kit-bio { display: grid; align-content: start; justify-items: start; gap: 14px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); }
.kit-bio h3 { color: var(--ink-2); font-family: inherit; font-size: 15px; font-weight: 500; letter-spacing: 0; }
.kit-bio p { color: var(--ink); font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; text-wrap: pretty; }
.skill-group p { color: var(--ink); font-size: 18px; line-height: 1.5; }
@media (min-width: 880px) {
  .kit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kit-bio--long { grid-column: 1 / -1; }
}

/* On stage and on air: the names he has been seen with, as a quiet row of
   wordmarks under the intro (2026-12-05). Names only, no logos. */
.band--tight { padding-top: clamp(56px, 7vw, 96px); }
.seen-label { margin-bottom: 20px; color: var(--ink-2); font-size: 15px; font-weight: 500; }
.seen { display: flex; flex-wrap: wrap; gap: 24px clamp(36px, 6vw, 88px); align-items: flex-end; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
/* Real logos in their own colours (two are detailed illustrations that turn to
   mud in grey, 2026-12-05). */
.seen a { display: grid; justify-items: start; gap: 10px; color: var(--ink-3); text-decoration: none; transition: color var(--dur-1) var(--ease-color); }
.seen img { display: block; width: auto; height: clamp(52px, 5vw, 72px); }
.seen span { font-size: 13px; font-weight: 500; }
.seen a:hover, .seen a:focus-visible { color: var(--ink); }

/* A system row that has its own case study: the name is the link, and its
   arrow always shows, since the rows around it are not links. */
.item-link { display: inline-flex; align-items: center; gap: 0.25em; color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 0.2em; transition: text-decoration-color var(--dur-fast) var(--ease-color); }
.item-link svg { flex: none; width: 0.7em; height: 0.7em; stroke-width: 1.75; transition: transform var(--dur-3) var(--ease); }
.item-link:hover { text-decoration-color: currentColor; }
.item-link:hover svg, .item-link:focus-visible svg { transform: translate(0.08em, -0.08em); }

/* Case studies: figures sit in the same band as the pictures, so they need
   their own room. */
.figs + .cards { margin-top: clamp(56px, 6vw, 88px); }

/* A case study's one opening line, between its title and "How it works". */
.case-lead { max-width: 30ch; margin: clamp(20px, 2.4vw, 32px) 0 0; }
