/* Layout: each page opens on a deep teal hero with a drifting, grainy glow (full height on the
   home page, shorter on inner pages). Content sits on pale paper below. Fraunces for headings and
   quotes, Atkinson Hyperlegible Next for everything else. Lemon is the one warm accent. */
:root {
  /* Paper (content) */
  --paper: #F6F8F7; --surface: #EDF1F0; --ink: #102426; --muted: #4A5F61; --line: #DCE3E1; --accent: #1A6A6B;
  /* Hero family */
  --hero: #0F3B3E; --hero-deep: #082528; --hero-light: #1D5A5C; --hero-ink: #EFF7F4; --hero-muted: #B4D0CB;
  --field-2: #3F8A84; --scrim: #082528;
  /* Secondary: lemon */
  --glow: #DCD45E; --glow-mix: 40%; --glow-soft: #ECE58C;
  /* Orange is the action colour (buttons, underlines, focus) and matches the logo dot; lemon is only light */
  --action: #F6A73E; --action-ink: #0F3B3E;
  --g-ink: #0F3B3E;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-body: 1.125rem; --fs-lede: 1.3125rem; --fs-small: 0.9375rem; --fs-label: 0.875rem; --fs-nav: 1.0625rem;
  --step-1: clamp(1.3rem, 1rem + 1vw, 1.75rem);
  --step-2: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  --step-3: clamp(2.4rem, 1.2rem + 4.2vw, 4.6rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --measure: 40rem;
  --wide: 76rem;
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #0F1616; --surface: #151D1E; --ink: #E6EFEE; --muted: #9FB3B2; --line: #263334; --accent: #7FCFCB; --g-ink: #E6EFEE; color-scheme: dark; }
}
:root[data-theme="dark"] { --paper: #0F1616; --surface: #151D1E; --ink: #E6EFEE; --muted: #9FB3B2; --line: #263334; --accent: #7FCFCB; --g-ink: #E6EFEE; color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: var(--fs-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .footer :focus-visible { outline-color: var(--action); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; margin: 0; font-variation-settings: "SOFT" 100, "WONK" 1; }
.wrap { max-width: var(--wide); margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--action); color: var(--action-ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { left: 12px; }

/* Links that draw an underline in */
.ul { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; padding-bottom: 2px; transition: background-size 0.22s var(--ease); }
.ul:hover, .ul:focus-visible { background-size: 100% 2px; }
.hero .ul, .footer .ul { background-image: linear-gradient(var(--action), var(--action)); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--hero); color: var(--hero-ink); }
.hero-full { height: 100svh; min-height: 560px; }
.hero-page { min-height: min(62svh, 640px); }
.bg { position: absolute; inset: 0; z-index: -2; }
.field-in { position: absolute; inset: 0; }
.field {
  position: absolute; inset: -30%;
  background:
    radial-gradient(36% 42% at 72% 32%, color-mix(in srgb, var(--glow) var(--glow-mix), transparent), transparent 70%),
    radial-gradient(22% 26% at 60% 62%, color-mix(in srgb, var(--glow-soft) 30%, transparent), transparent 70%),
    radial-gradient(45% 50% at 22% 70%, var(--hero-light), transparent 70%),
    radial-gradient(40% 45% at 82% 82%, var(--hero-deep), transparent 72%),
    radial-gradient(30% 35% at 32% 24%, color-mix(in srgb, var(--field-2) 70%, transparent), transparent 70%);
  animation: drift 16s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes drift {
  0%   { transform: translate3d(-7%, -3%, 0) rotate(-8deg) scale(1); }
  50%  { transform: translate3d(5%, 5%, 0) rotate(5deg) scale(1.1); }
  100% { transform: translate3d(8%, -5%, 0) rotate(12deg) scale(1.04); }
}
.hero.paused .field { animation-play-state: paused; }
.pointer-glow {
  position: absolute; left: 0; top: 0; width: 70vmax; height: 70vmax; margin: -35vmax 0 0 -35vmax; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 26%, transparent), transparent);
  opacity: 0; transition: opacity 0.6s var(--ease); will-change: transform;
}
.hero.glowing .pointer-glow { opacity: 1; }
.grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}
/* Shading keeps text readable wherever the glow drifts */
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  linear-gradient(to bottom, color-mix(in srgb, var(--scrim) 60%, transparent), transparent 22%),
  linear-gradient(to top, color-mix(in srgb, var(--scrim) 75%, transparent), transparent 50%),
  linear-gradient(to right, color-mix(in srgb, var(--scrim) 55%, transparent), transparent 62%); }

.hero-inner { min-height: inherit; height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding-block: 24px 28px; gap: 32px; }
.hero-page .hero-inner { padding-block: 24px clamp(36px, 6vw, 72px); grid-template-rows: auto 1fr; }
.nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 28px; font-size: var(--fs-nav); }
.wordmark { font-family: var(--display); font-weight: 760; font-size: 1.3rem; letter-spacing: -0.02em; text-decoration: none; font-variation-settings: "SOFT" 100, "WONK" 1; }
.nav nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.nav nav a { font-weight: 500; text-decoration: none; background: linear-gradient(var(--action), var(--action)) 0 100% / 0 2px no-repeat; padding-bottom: 2px; transition: background-size 0.22s var(--ease); }
.nav nav a:hover, .nav nav a:focus-visible, .nav nav a[aria-current="page"] { background-size: 100% 2px; }

.hero-copy { align-self: end; display: grid; gap: 22px; padding-bottom: clamp(16px, 5vh, 64px); }
.hero-page .hero-copy { padding-bottom: 0; gap: 18px; }
.eyebrow { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--hero-ink); margin: 0; }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.hero h1 { font-weight: 760; letter-spacing: -0.03em; font-size: clamp(2.5rem, 1.1rem + 4.6vw, 5rem); line-height: 1.02; max-width: 15ch; }
.hero-page h1 { font-size: var(--step-3); max-width: 20ch; }
.lede { font-size: var(--fs-lede); line-height: 1.5; color: var(--hero-ink); max-width: 36rem; margin: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.btn {
  font-weight: 600; font-size: 1rem; background: var(--action); color: var(--action-ink); padding: 14px 24px; border-radius: 14px;
  display: inline-flex; gap: 10px; align-items: center; text-decoration: none; transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 -1px color-mix(in srgb, var(--action) 40%, transparent); }
.btn:active { transform: none; box-shadow: none; }
.btn span { transition: transform 0.18s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.hero-foot { display: flex; justify-content: space-between; align-items: end; gap: 16px; font-size: var(--fs-small); font-weight: 500; color: var(--hero-muted); }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.scroll-cue:hover { color: var(--hero-ink); }
.scroll-cue i { width: 22px; height: 34px; border: 1.5px solid currentColor; border-radius: 12px; position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: currentColor; animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(9px); opacity: 0; } }
@media (max-width: 560px) { .hero-foot span { display: none; } }

/* Home: the hero shrinks into a rounded card as you scroll, then scrolls away */
.hero-track { position: relative; height: 170svh; }
.hero-track .hero { position: sticky; top: 0; will-change: transform; transform: scale(calc(1 - var(--p, 0) * 0.07)); transform-origin: 50% 40%; clip-path: inset(0 round 0px); transition: clip-path 0.3s var(--ease); }
.hero-track .hero.carded { clip-path: inset(0 round clamp(20px, 4vw, 40px)); }
.hero-track .hero-inner { opacity: calc(1 - var(--p, 0) * 0.3); }
@supports (animation-timeline: scroll()) {
  .hero-track .hero { transform: none; animation: card-in linear both; animation-timeline: scroll(root); animation-range: 0 70svh; }
  .hero-track .hero-inner { opacity: 1; animation: card-fade linear both; animation-timeline: scroll(root); animation-range: 0 70svh; }
}
@keyframes card-in { to { transform: scale(0.93); } }
@keyframes card-fade { to { opacity: 0.7; } }

/* First-land sequence */
@keyframes fieldIn { from { opacity: 0; transform: scale(1.18); } to { opacity: 1; transform: none; } }
@keyframes rise { from { transform: translateY(108%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w > span { display: inline-block; }
.intro .field-in { animation: fieldIn 1.8s var(--ease) both; }
.intro .w > span { animation: rise 0.85s var(--ease) both; animation-delay: calc(0.3s + var(--i) * 40ms); }
.intro .in-up { animation: fadeUp 0.7s var(--ease) both; animation-delay: var(--d, 0s); }
.intro .in-down { animation: fadeDown 0.6s var(--ease) both; animation-delay: var(--d, 0s); }

/* ---------- Compact menu ---------- */
.mini {
  position: fixed; z-index: 40; left: 50%; top: calc(12px + env(safe-area-inset-top, 0px));
  display: flex; align-items: center; gap: 2px; padding: 6px; border-radius: 999px; max-width: calc(100% - 24px);
  background: color-mix(in srgb, var(--paper) 94%, transparent); border: 1px solid var(--line);
  box-shadow: 0 10px 30px -12px rgb(0 0 0 / 0.3); font-size: 1rem; font-weight: 500;
  transform: translate(-50%, calc(-100% - 24px)) scale(0.96); opacity: 0; pointer-events: none;
  transition: transform 0.42s cubic-bezier(0.2, 0.9, 0.25, 1.18), opacity 0.2s ease-out;
}
.mini.show { transform: translate(-50%, 0) scale(1); opacity: 1; pointer-events: auto; }
.mini a { text-decoration: none; padding: 9px 14px; border-radius: 999px; white-space: nowrap; transition: color 0.15s; }
.mini a:hover { color: var(--accent); }
.mini a[aria-current="page"] { font-weight: 600; background: linear-gradient(var(--accent), var(--accent)) 50% calc(100% - 4px) / 16px 2px no-repeat; }
.mini .mark { font-family: var(--display); font-weight: 760; font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -0.02em; padding-inline: 14px 12px; }
.mini .short { display: none; }
.mini a:not(.mark) { opacity: 0; transform: translateY(-6px); transition: opacity 0.25s ease-out, transform 0.3s var(--ease), color 0.15s; }
.mini.show a:not(.mark) { opacity: 1; transform: none; transition-delay: calc(0.08s + var(--i) * 40ms), calc(0.08s + var(--i) * 40ms), 0s; }
@media (max-width: 520px) {
  .mini { font-size: 0.9375rem; }
  .mini a { padding: 8px 10px; }
  .mini .full { display: none; }
  .mini .short { display: inline; }
}

/* ---------- Content ---------- */
.sheet { position: relative; z-index: 2; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 18px; }
.section-head h2, .label { font-family: var(--body); font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.more { font-size: 1.0625rem; font-weight: 600; color: var(--accent); text-decoration: none; display: inline-flex; gap: 6px; padding-block: 6px; }
.more span { transition: transform 0.18s var(--ease); }
.more:hover span { transform: translateX(3px); }

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row { border-bottom: 1px solid var(--line); }
.row a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; padding: 20px 14px; margin-inline: -14px; text-decoration: none; position: relative; isolation: isolate; border-radius: 14px; }
.row a::before { content: ""; position: absolute; inset: 4px 0; z-index: -1; background: var(--surface); border-radius: inherit; transform: scaleX(0); transform-origin: left; transition: transform 0.2s var(--ease); }
.row a:hover::before, .row a:focus-visible::before { transform: scaleX(1); }
.row-title { font-family: var(--display); font-weight: 700; font-size: var(--step-1); line-height: 1.2; letter-spacing: -0.02em; font-variation-settings: "SOFT" 100, "WONK" 1; transition: transform 0.2s var(--ease), color 0.2s; }
.row a:hover .row-title { transform: translateX(4px); color: var(--accent); }
.row-meta { font-size: var(--fs-small); font-weight: 500; color: var(--muted); padding-top: 0.45em; font-variant-numeric: tabular-nums; text-align: right; }
.row-summary { color: var(--muted); grid-column: 1; max-width: var(--measure); }
@media (max-width: 600px) { .row a { grid-template-columns: minmax(0, 1fr); } .row-meta { grid-row: 1; padding: 0; text-align: left; } }


.split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 64px; }
.split .row a { grid-template-columns: minmax(0, 1fr); }
.split .row-meta { grid-row: 2; padding: 0; text-align: left; }
.split .row-summary { display: none; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.principles dl { margin: 0; border-top: 1px solid var(--line); }
.principles dl > div { padding-block: 16px; border-bottom: 1px solid var(--line); }
.principles dt { font-family: var(--display); font-weight: 700; font-size: 1.15rem; font-variation-settings: "SOFT" 100, "WONK" 1; }
.principles dd { margin: 2px 0 0; color: var(--muted); }

/* Testimonials */
.quote { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.quote blockquote { margin: 0; }
.quote p { margin: 0; text-wrap: pretty; }
.quote p::before { content: "“"; color: var(--accent); }
.quote p::after { content: "”"; color: var(--accent); }
.quote figcaption { font-size: var(--fs-small); font-weight: 600; color: var(--muted); }
.quotes-featured { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .quotes-featured { grid-template-columns: minmax(0, 1fr); } }
.quote-lg { background: var(--surface); border-radius: var(--radius); padding: clamp(22px, 2.5vw, 32px); }
.quote-lg p { font-family: var(--display); font-weight: 480; font-size: 1.3rem; line-height: 1.4; font-variation-settings: "SOFT" 100; }
.quote-sm p { font-size: 1.0625rem; line-height: 1.6; }
.carousel { margin-top: clamp(40px, 5vw, 64px); }
.carousel-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.carousel-count { margin: 0; font-size: var(--fs-small); font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.carousel-controls { display: flex; gap: 8px; }
.carousel-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 1.1rem; cursor: pointer; transition: border-color 0.2s, color 0.2s, transform 0.16s var(--ease); }
.carousel-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.carousel-btn:active:not(:disabled) { transform: scale(0.94); }
.carousel-btn:disabled { opacity: 0.35; cursor: default; }
.carousel-track { list-style: none; margin: 24px 0 0; padding: 0 0 8px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 32px) / 3); gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item { scroll-snap-align: start; min-width: 0; }
@media (max-width: 900px) { .carousel-track { grid-auto-columns: calc((100% - 32px) / 2); } }
@media (max-width: 560px) { .carousel-track { grid-auto-columns: 85%; gap: 20px; } }

/* Photos */

/* Articles and case studies */
.article { padding-block: clamp(48px, 7vw, 88px) 24px; }
.facts { display: flex; flex-wrap: wrap; gap: 16px 56px; margin: 0 0 48px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.facts dt { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 600; }
.cover { margin: 0 0 56px; }
.cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.prose { max-width: var(--measure); min-width: 0; }
.prose > * { margin-block: 0; }
.prose > * + * { margin-top: 1em; }
.prose a { color: var(--accent); text-underline-offset: 0.2em; }
.prose h2 { font-size: var(--step-2); margin-top: 1.6em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.4em; }
.prose li > ul, .prose li > ol { margin-top: 0.4em; }
.prose blockquote { margin-inline: 0; padding-left: 20px; border-left: 3px solid var(--accent); }
.prose img { width: 100%; border-radius: var(--radius); background: var(--surface); }
.prose code { font-size: 0.9em; background: var(--surface); padding: 1px 5px; border-radius: 4px; }
.note { background: var(--surface); padding: 14px 18px; border-radius: 12px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.note p { margin: 0; }
.note-label { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; font-size: var(--fs-label); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 64px; }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); } }
.experience h2 { margin-bottom: 18px; }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.when { font-size: var(--fs-small); font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 0.15em; }
.what { color: var(--muted); }
.what strong { display: block; color: var(--ink); font-weight: 600; }
.role { border-top: 1px solid var(--line); }
.role:last-child { border-bottom: 1px solid var(--line); }
.role summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto 1.5rem; gap: 4px 24px; align-items: baseline; padding-block: 22px; }
.role summary::-webkit-details-marker { display: none; }
.role summary::after { content: "+"; font-size: var(--step-1); color: var(--muted); text-align: right; transition: transform 0.25s var(--ease); }
.role[open] summary::after { transform: rotate(45deg); }
.role summary:hover .role-title { color: var(--accent); }
.role-title { font-family: var(--display); font-weight: 700; font-size: var(--step-1); letter-spacing: -0.02em; font-variation-settings: "SOFT" 100, "WONK" 1; transition: color 0.2s; }
.role-when { font-size: var(--fs-small); font-weight: 500; color: var(--muted); }
.role-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 64px; padding-bottom: 32px; }
.role-body h3 { font-family: var(--body); font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
@media (max-width: 760px) {
  .role summary { grid-template-columns: minmax(0, 1fr) 1.5rem; }
  .role-when { grid-column: 1; grid-row: 2; }
  .role summary::after { grid-column: 2; grid-row: 1; }
  .role-body { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Footer ---------- */
.footer { background: var(--hero); color: var(--hero-ink); margin-top: clamp(40px, 6vw, 80px); position: relative; z-index: 2; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 32px; padding-block: 64px 40px; align-items: end; }
.footer p { margin: 0; }
.footer-lede, .footer-small { font-size: var(--fs-small); font-weight: 500; color: var(--hero-muted); }
.footer-lede { margin-bottom: 8px !important; }
.email { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 1rem + 3vw, 3.2rem); letter-spacing: -0.03em; line-height: 1.1; text-decoration: none; overflow-wrap: anywhere; font-variation-settings: "SOFT" 100, "WONK" 1; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; font-weight: 500; }
.footer-links a { text-decoration: none; }
.footer-base { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--hero-ink) 18%, transparent); }
.settings { display: flex; flex-wrap: wrap; gap: 8px; }
.setting { font: inherit; font-size: var(--fs-small); font-weight: 500; color: var(--hero-ink); background: none; border: 1px solid color-mix(in srgb, var(--hero-ink) 35%, transparent); border-radius: 999px; padding: 7px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.setting::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; }
.setting[aria-pressed="true"]::before { background: var(--action); border-color: var(--action); }
.setting:hover { border-color: var(--hero-ink); }
a.setting { text-decoration: none; }
a.setting::before { display: none; }
@media (max-width: 640px) { .footer-inner { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Motion helpers ---------- */
.rv { transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); transition-delay: var(--d, 0s); }
.rv.waiting { opacity: 0; transform: translateY(18px); }
.follower { position: fixed; left: 0; top: 0; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: var(--glow); opacity: 0; pointer-events: none; z-index: 50; transition: opacity 0.2s, width 0.18s var(--ease), height 0.18s var(--ease), margin 0.18s var(--ease); }
.follower.on { opacity: 0.4; }
.follower.big { width: 52px; height: 52px; margin: -26px 0 0 -26px; opacity: 0.25; }
.follower.on-paper { background: var(--accent); opacity: 0.22; }
.follower.on-paper.big { opacity: 0.14; }

/* Still mode: the viewer's reduced-motion setting, or the "Reduce motion" switch */
.still *, .still *::before, .still *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
.still .hero-track .hero { transform: none !important; }
.still .hero-track .hero-inner { opacity: 1 !important; }
.still .rv.waiting { opacity: 1; transform: none; }
.still .pointer-glow, .still .follower { display: none; }

/* ---------- Gradient pullouts (same field as the hero, in a rounded panel) ---------- */
.section-panel { border-top: 0 !important; padding-block: clamp(32px, 5vw, 64px); }
.section-panel + .section { border-top: 0; }
.panel { position: relative; overflow: hidden; isolation: isolate; background: var(--hero); color: var(--hero-ink); border-radius: clamp(22px, 3vw, 36px); }
.panel .field { animation-duration: 20s; animation-delay: -7s; }
.panel.values .field { animation-direction: alternate-reverse; animation-delay: -3s; }
.panel.paused .field { animation-play-state: paused; }
.panel::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  linear-gradient(to top, color-mix(in srgb, var(--scrim) 70%, transparent), transparent 55%),
  linear-gradient(to right, color-mix(in srgb, var(--scrim) 50%, transparent), transparent 70%); }
.panel-inner { position: relative; padding: clamp(28px, 6vw, 80px); display: grid; gap: 28px; }
.panel-label { margin: 0; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--hero-ink); }
.panel .btn { justify-self: start; }

.statement blockquote { margin: 0; display: grid; gap: 20px; }
.statement blockquote p { margin: 0; font-family: var(--display); font-weight: 700; font-size: var(--step-3); line-height: 1.05; letter-spacing: -0.03em; max-width: 20ch; text-wrap: balance; font-variation-settings: "SOFT" 100, "WONK" 1; }
.statement blockquote p::before { content: "“"; color: var(--action); }
.statement blockquote p::after { content: "”"; color: var(--action); }
.statement footer { font-size: 1.0625rem; font-weight: 600; }
.statement footer::before { content: "— "; }

/* ---------- Testimonials, clearer ---------- */
.carousel-bar { border-top: 0; padding-top: 0; flex-wrap: wrap; }
.carousel-title { font-family: var(--body); font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); display: flex; gap: 12px; align-items: baseline; }
.carousel-title .carousel-count { text-transform: none; letter-spacing: 0; color: var(--ink); background: var(--surface); padding: 3px 10px; border-radius: 999px; }
.carousel-btn { width: auto; height: 44px; padding: 0 18px; border-radius: 999px; font: inherit; font-size: 1rem; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.carousel-track { margin-top: 18px; padding-bottom: 4px; gap: 20px; grid-auto-columns: calc((100% - 2 * 20px) / 3); }
@media (max-width: 900px) { .carousel-track { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 560px) { .carousel-track { grid-auto-columns: 86%; gap: 14px; } .carousel-btn { padding: 0 14px; } }
.carousel-item { display: flex; }
.quote-sm { flex: 1; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color 0.2s, transform 0.25s var(--ease); }
.quote-sm:hover { border-color: var(--accent); }
.quote figcaption { display: flex; align-items: center; gap: 10px; }
.quote figcaption::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--accent); flex: none; }
.quote-lg { border: 1px solid transparent; }

/* ---------- Abstract project graphics ----------
   A small set of shape compositions in the site palette. They build in when they scroll into view
   and play a short move on hover. Only transform and opacity animate. */
.row-work a { grid-template-columns: 9.5rem minmax(0, 1fr) auto; column-gap: 28px; align-items: start; }
.row-work .row-thumb { grid-row: 1 / span 2; }
.row-work .row-title { grid-column: 2; }
.row-work .row-meta { grid-column: 3; grid-row: 1; }
.row-work .row-summary { grid-column: 2; }
.row-thumb { display: block; }
@media (max-width: 600px) {
  .row-work a { grid-template-columns: 5.5rem minmax(0, 1fr); column-gap: 16px; }
  .row-work .row-thumb { grid-row: 1 / span 3; }
  .row-work .row-meta { grid-column: 2; grid-row: 1; }
  .row-work .row-title { grid-row: 2; }
  .row-work .row-summary { grid-row: 3; }
}
/* The graphics get their own lively palette, chosen to sit alongside teal and lemon */
.gfx { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; overflow: hidden;
  --g-tomato: #F0704F; --g-pink: #F3A5C2; --g-cobalt: #4F7DEB; --g-orange: #F6A73E; --g-lemon: #E9DA4E; --g-mint: #86D6BF; }
.gfx .f-tomato { fill: var(--g-tomato); } .gfx .f-pink { fill: var(--g-pink); } .gfx .f-cobalt { fill: var(--g-cobalt); }
.gfx .f-orange { fill: var(--g-orange); } .gfx .f-lemon { fill: var(--g-lemon); } .gfx .f-mint { fill: var(--g-mint); } .gfx .f-ink { fill: var(--g-ink); }
.gfx .ln { fill: none; stroke: var(--g-ink); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 0; }
.gfx .s-tomato { stroke: var(--g-tomato); } .gfx .s-pink { stroke: var(--g-pink); } .gfx .s-cobalt { stroke: var(--g-cobalt); }
.gfx .s-orange { stroke: var(--g-orange); } .gfx .s-lemon { stroke: var(--g-lemon); } .gfx .s-mint { stroke: var(--g-mint); }
.gfx [data-e] { transform-box: view-box; transform-origin: var(--o, 80px 60px); transform: var(--t, translate(0px, 0px)); transition: transform 0.5s var(--ease), opacity 0.45s var(--ease), stroke-dashoffset 0.9s var(--ease); }
/* Build-in on entry */
.gfx.pending [data-e]:not(.ln) { opacity: 0; transform: var(--t, translate(0px, 0px)) scale(0.3); }
.gfx.pending .ln { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.gfx.revealing .ln { stroke-dasharray: 1 1; }
.gfx.revealing [data-e] { transition-delay: calc(var(--k, 0) * 70ms); }
/* Hover moves (rows and value cards share them) */
.hov:hover .gfx [data-e], .hov:focus-visible .gfx [data-e] { transform: var(--h, var(--t, translate(0px, 0px))); }

/* ---------- Team values: plain columns inside the gradient pullout ---------- */
.values-head { display: grid; gap: 12px; }
.values-head h2 { font-size: var(--step-2); }
.values-grid { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 28px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
@media (min-width: 1100px) { .values-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.value { display: grid; align-content: start; gap: 8px; padding-left: 18px; border-left: 2px solid color-mix(in srgb, var(--hero-ink) 28%, transparent); transition: border-color 0.25s var(--ease); }
.value:hover { border-color: var(--action); }
.value h3 { font-size: 1.25rem; }
.value p { margin: 0; font-weight: 500; }
.still .gfx [data-e] { transform: var(--t, translate(0px, 0px)) !important; }

/* ---------- Logo: name + orange full stop ---------- */
:root { --stop: var(--action); }
.wordmark, .mini .mark { display: inline-flex; align-items: baseline; white-space: nowrap; }
.stop { display: inline-block; width: 0.5em; height: 0.46em; margin-left: 0.06em; overflow: visible; flex: none; }
.stop path { fill: var(--stop); }
.stop g { transform-box: fill-box; transform-origin: center; }
.intro .hero .stop g { animation: stop-in 0.62s cubic-bezier(0.3, 1.4, 0.5, 1) 0.6s both; }
.wordmark:hover .stop g, .wordmark:focus-visible .stop g, .mini .mark:hover .stop g, .mini .mark:focus-visible .stop g { animation: stop-wobble 0.6s var(--ease); }
.wordmark:active .stop g, .mini .mark:active .stop g { transform: scale(1.2, 0.82); transition: transform 0.08s; }
.mini.show .mark .stop g { animation: stop-in 0.5s cubic-bezier(0.3, 1.4, 0.5, 1) 0.15s both; }
@keyframes stop-in { 0% { transform: scale(0) rotate(-30deg); } 100% { transform: none; } }
@keyframes stop-wobble { 0% { transform: none; } 30% { transform: rotate(-12deg) scale(1.15, 0.88); } 60% { transform: rotate(8deg) scale(0.92, 1.08); } 100% { transform: none; } }

/* ---------- Photography ---------- */
.wrap-wide { max-width: 92rem; }
/* Homepage: four fixed-shape tiles, cropped to fit */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.tile { display: block; position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; text-decoration: none; background: var(--surface); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(to top, rgb(5 20 22 / 0.75), transparent); pointer-events: none; }
.tile-label { position: absolute; left: 16px; bottom: 14px; z-index: 1; color: #F6F8F7; font-weight: 600; display: inline-flex; gap: 6px; }
.tile-label span { transition: transform 0.2s var(--ease); }
.tile:hover .tile-label span { transform: translateX(3px); }

/* Filters */
.photo-section { padding-top: clamp(28px, 4vw, 48px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { font: inherit; font-weight: 600; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; cursor: pointer; display: inline-flex; gap: 8px; align-items: baseline; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.filter span { font-size: var(--fs-small); font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.filter:hover { border-color: var(--accent); }
.filter[aria-pressed="true"] { background: var(--hero); border-color: var(--hero); color: var(--hero-ink); }
.filter[aria-pressed="true"] span { color: var(--hero-muted); }
.filter-status { margin: 8px 0 0; min-height: 0; color: var(--muted); font-size: var(--fs-small); }

/* Mosaic: rows that keep every photo's own shape at a shared height (no cropping).
   Each item grows in proportion to its aspect ratio; features take a whole row. */
.mosaic { --row: clamp(200px, 21vw, 330px); list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: clamp(12px, 2vw, 28px); }
.mosaic::after { content: ""; flex-grow: 999; }
.shot { flex: var(--ar) 1 calc(var(--ar) * var(--row)); min-width: 0; }
.shot.small { flex-basis: calc(var(--ar) * var(--row) * 0.62); }
.shot.feature { flex-basis: 100%; max-width: min(100%, calc(82vh * var(--ar))); margin-inline: auto; }
.mosaic.filtered .shot.feature { flex-basis: calc(var(--ar) * var(--row)); max-width: none; margin-inline: 0; }
.shot[hidden] { display: none; }
.shot-btn { display: block; width: 100%; padding: 0; border: 0; background: var(--surface); cursor: zoom-in; position: relative; aspect-ratio: var(--ar); border-radius: 14px; overflow: hidden; }
.shot-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.shot-btn:hover img, .shot-btn:focus-visible img { transform: scale(1.025); }
.shot.enter { animation: shot-in 0.45s var(--ease) both; animation-delay: calc(var(--n, 0) * 35ms); }
@keyframes shot-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .mosaic { --row: 46vw; }
  .shot.feature, .mosaic.filtered .shot.feature { flex-basis: 100%; max-width: min(100%, calc(82vh * var(--ar))); margin-inline: auto; }
}

/* Viewer */
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #071214; color: #F6F8F7; }
.viewer::backdrop { background: #071214; }
.viewer[open] { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; animation: viewer-in 0.25s ease-out; }
@keyframes viewer-in { from { opacity: 0; } to { opacity: 1; } }
.viewer-figure { grid-column: 2; margin: 0; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; padding: calc(56px + env(safe-area-inset-top, 0px)) 0 calc(20px + env(safe-area-inset-bottom, 0px)); }
.viewer-figure img { width: 100%; height: 100%; object-fit: contain; transition: opacity 0.2s ease; }
.viewer-figure img.loading { opacity: 0.25; }
.viewer-figure figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; align-items: baseline; text-align: center; min-height: 1.6em; }
.viewer-meta { color: #B4D0CB; font-size: var(--fs-small); font-weight: 500; font-variant-numeric: tabular-nums; }
.viewer-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgb(246 248 247 / 0.3); background: rgb(7 18 20 / 0.6); color: #F6F8F7; font-size: 1.2rem; cursor: pointer; justify-self: center; transition: border-color 0.2s, background-color 0.2s; }
.viewer-btn:hover { border-color: var(--action); }
.viewer :focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }
.viewer-prev { grid-column: 1; grid-row: 1; }
.viewer-next { grid-column: 3; grid-row: 1; }
.viewer-close { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); }
@media (max-width: 640px) {
  .viewer[open] { grid-template-columns: minmax(0, 1fr); }
  .viewer-figure { grid-column: 1; grid-row: 1; padding-inline: 8px; padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .viewer-prev, .viewer-next { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  .viewer-prev { left: max(18px, env(safe-area-inset-left, 0px)); }
  .viewer-next { right: max(18px, env(safe-area-inset-right, 0px)); }
}

/* ---------- Photography, round 2: square photos, tight gaps, justified rows ---------- */
/* Rule: photos are square-cornered; interface elements stay rounded. */
.tile, .shot-btn { border-radius: 0; }
.tiles { gap: 6px; }
.mosaic { gap: 6px; }
@media (max-width: 640px) { .mosaic { gap: 4px; } }
/* With script, each photo gets an exact width and height so every row fills the width. */
.mosaic.js .shot, .mosaic.js.filtered .shot.feature { flex: none; max-width: none; margin: 0; }
.mosaic.js .shot-btn { aspect-ratio: auto; height: 100%; }
.mosaic.js::after { display: none; }
.wrap-wide { max-width: none; padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
.photo-section { padding-block: 0 24px; }
.mosaic { margin-top: 12px; }

/* Plain page header: nav and a big heading on the paper, no teal band */
.hero-plain { background: var(--paper); color: var(--ink); }
.hero-plain .hero-inner { padding-block: 24px 20px; gap: clamp(28px, 6vw, 72px); grid-template-rows: auto auto; }
.hero-plain h1 { font-size: clamp(3rem, 1.4rem + 7vw, 7.5rem); letter-spacing: -0.04em; line-height: 0.95; max-width: none; }
.hero-plain .nav nav a { background-image: linear-gradient(var(--accent), var(--accent)); }
.hero-plain :focus-visible { outline-color: var(--accent); }
.hero-plain .hero-copy { padding-bottom: 0; }
.hero-plain::after { display: none; }

/* ---------- Photography, round 3 ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-plain .hero-inner { padding-block: 24px 0; gap: clamp(48px, 8vw, 96px); }
.hero-plain h1 { font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.5rem); letter-spacing: -0.035em; line-height: 1; }
.photo-section { padding-top: clamp(24px, 3vw, 36px); }
.mosaic { margin-top: clamp(28px, 4vw, 48px); }
.chapter { flex: 0 0 100%; width: 100%; padding: clamp(36px, 5vw, 64px) 0 10px; }
.chapter:first-child { padding-top: 0; }
.chapter h2 { font-family: var(--body); font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
@keyframes shot-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* Viewer: lock the photo to the viewport so tall photos never scroll */
.viewer[open] { grid-template-rows: minmax(0, 1fr); overflow: hidden; }
.viewer-figure { min-height: 0; max-height: 100dvh; }
.viewer-figure img { min-height: 0; }
/* Case study tier label on work rows */
.tier { display: inline-block; margin-right: 10px; padding: 2px 9px; border-radius: 999px; background: var(--accent); color: var(--paper); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; vertical-align: 1px; }
/* Case study figures */
.prose .figure { margin: 40px 0; }
.prose .figure img { display: block; }
.prose .figure figcaption { margin-top: 10px; font-size: var(--fs-small); color: var(--muted); }
/* ---------- Spotlight promos (flagship and featured case studies) ---------- */
.spots { display: grid; gap: clamp(36px, 5vw, 56px); }
.spots-feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: clamp(24px, 3vw, 36px); }
.spot { display: grid; gap: 12px; align-content: start; text-decoration: none; color: inherit; }
.spot-art { display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.spot-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.spot:hover .spot-art img { transform: scale(1.02); }
.spot-art { aspect-ratio: 16 / 9; }
.spot-gfx { display: grid; place-items: center; }
.spot-gfx .gfx { width: auto; height: 78%; max-width: 80%; }
.spot-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 6px; }
.spot-head .tier { margin: 0; }
.spot-meta { font-size: var(--fs-small); font-weight: 500; color: var(--muted); }
.spot-title { font-family: var(--display); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; font-variation-settings: "SOFT" 100, "WONK" 1; text-wrap: balance; font-size: var(--step-2); transition: color 0.2s; }
.spot-flagship .spot-title { font-size: var(--step-3); }
.spot:hover .spot-title, .spot:focus-visible .spot-title { color: var(--accent); }
.spot-summary { color: var(--muted); max-width: 40rem; }
.spot-flagship .spot-summary { font-size: var(--fs-lede); }
.spots + .rows { margin-top: clamp(40px, 6vw, 64px); }
/* Flagship lockup: wide image, then title on the left and the story on the right */
@media (min-width: 860px) {
  .spot-flagship { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 4vw, 56px); }
  .spot-flagship .spot-art { grid-column: 1 / -1; margin-bottom: 8px; }
  .spot-flagship .spot-head { grid-column: 1; }
  .spot-flagship .spot-title { grid-column: 1; }
  .spot-flagship .spot-summary { grid-column: 2; grid-row: 2 / span 2; align-self: end; }
}
@media (prefers-reduced-motion: reduce) { .spot-art img { transition: none; } .spot:hover .spot-art img { transform: none; } }
/* Awards: a quiet list on the case study, a small badge on its promo card */
.prose .awards ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.prose .awards li { position: relative; margin: 0; padding: 14px 18px 14px 42px; border-radius: 14px; background: var(--surface); }
.prose .awards li::before { content: ""; position: absolute; left: 18px; top: 1.45em; width: 10px; height: 10px; border-radius: 50%; background: var(--action); }
.prose .awards li strong { display: block; }
.awards { scroll-margin-top: 96px; }
.award { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-small); font-weight: 600; color: var(--ink); }
.award::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--action); }
.prose .figure img, .cover img { box-shadow: 0 0 0 1px var(--line); }
