/* chrisharrelson.ai — design tokens lifted from the existing site, case-study layout from the Figma master (5-col grid: 72px margin, 240px cols, 24px gutters). */
/* Self-hosted fonts (latin subset; Archivo and JetBrains Mono are variable files covering every weight used). */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap; src: url(/fonts/archivo-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/fonts/jetbrains-mono-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Libre Baskerville"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/libre-baskerville-italic-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --paper: oklch(96.8% .006 95);
  --ink: oklch(19% .008 60);
  --dot: oklch(19% .008 60 / .16);
  --muted-fg: oklch(50% .012 70);
  --secondary: oklch(92.5% .008 92);
  --border: oklch(19% .008 60 / .14);
  --gradient-slot: linear-gradient(135deg, oklch(93% .008 92) 0%, oklch(95.5% .006 95) 50%, oklch(90% .02 70) 100%);
  --gradient-slot-alt: linear-gradient(150deg, oklch(92% .02 45) 0%, oklch(95.5% .006 95) 55%, oklch(92% .012 210) 100%);
  --cs-ink: #171310;
  --cs-cream: #f6f4f0;
  --cs-dark: #262626;
  --sans: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --display: "Libre Baskerville", Baskerville, "Times New Roman", ui-serif, Georgia, serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; line-height: 1.5; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, figure, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.sr-only { clip-path: inset(50%); white-space: nowrap; border: 0; width: 1px; height: 1px; margin: -1px; padding: 0; position: absolute; overflow: hidden; }
.has-cursor, .has-cursor * { cursor: none !important; }

/* ---- shared primitives (match the live site) ---- */
.dot-grid { background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 24px 24px; }
.label-micro { font-family: var(--mono); text-transform: uppercase; letter-spacing: .18em; font-size: .625rem; line-height: 1; }
.muted { color: var(--muted-fg); }
.shell { width: 100%; max-width: 96rem; margin-inline: auto; padding-inline: 1.5rem; }
@media (min-width: 768px) { .shell { padding-inline: 4rem; } }
.display { font-family: var(--display); font-style: italic; font-weight: 400; }
.slot-panel, .slot-panel-alt { position: relative; overflow: hidden; border: 1px solid var(--border); }
.slot-panel { background-image: var(--gradient-slot); }
.slot-panel-alt { background-image: var(--gradient-slot-alt); }
.dot-underline { position: relative; }
.dot-underline::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.4em; height: 2px; opacity: 0; background-image: radial-gradient(currentColor .8px, transparent .8px); background-size: 4px 2px; transition: opacity .3s; }
.dot-underline:hover::after, .dot-underline[data-active="true"]::after { opacity: .7; }
.rule-hover { background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px; transition: background-size .3s var(--ease); }
.rule-hover:hover { background-size: 100% 1px; }

/* ---- header / footer ---- */
.site-header { position: fixed; top: 0; z-index: 40; width: 100%; background: transparent; transition: all .5s; }
.site-header.is-scrolled { border-bottom: 1px solid var(--border); background: oklch(96.8% .006 95 / .75); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.site-header--solid { background: var(--cs-cream); }
.site-header--solid.is-scrolled { background: var(--cs-cream); border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header__bar { display: flex; height: 4rem; align-items: center; justify-content: space-between; }
.brand { font-family: var(--sans); font-weight: 700; letter-spacing: .18em; }
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a, .site-nav button { color: color-mix(in oklch, var(--ink) 70%, transparent); transition: color .2s; }
.site-nav a:hover, .site-nav button:hover, .site-nav [data-active="true"] { color: var(--ink); }
@media (max-width: 480px) { .brand { white-space: nowrap; letter-spacing: .12em; } .site-nav { gap: .85rem; } }
@media (max-width: 360px) { .brand { white-space: normal; } }
.site-footer { border-top: 1px solid var(--border); background: transparent; }
.site-footer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 2.5rem; }
.page-case .site-footer { background: transparent; }

/* ---- custom cursor + reel ---- */
.cursor { display: none; }
.has-cursor .cursor { display: flex; position: fixed; left: 0; top: 0; z-index: 100; width: 8px; height: 8px; align-items: center; justify-content: center; background: var(--ink); color: var(--paper); pointer-events: none; opacity: 0; transition: width 260ms var(--ease), height 260ms var(--ease), border-radius 260ms, opacity .2s; }
.has-cursor .cursor.is-on { opacity: 1; }
.cursor.is-glyph { width: 46px; height: 46px; border-radius: 999px; }
.cursor svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; }
.reel { position: fixed; inset: 0; z-index: 95; background: #000; }
.reel[hidden] { display: none; }
.reel video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.reel:fullscreen { background: #000; }
.reel:-webkit-full-screen { background: #000; }
.reel__close { position: absolute; top: 1.25rem; right: 1.25rem; z-index: 1; color: rgb(255 255 255 / .75); }
.reel__soon { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted-fg); pointer-events: none; }
.draft-bar { position: sticky; top: 0; z-index: 60; padding: .6rem 1rem; text-align: center; background: oklch(58.5% .145 42); color: #fff; letter-spacing: .12em; }

/* ---- editorial shell (Work page cards + footer) ---- */
:root { --ed-pad: 64px; }
.page-home-ed { background-color: #f6f4f0; }
.home-ed { display: flex; flex-direction: column; max-width: 1440px; min-height: 100vh; margin-inline: auto; padding: 112px var(--ed-pad) 0; }
.rail-card a { display: flex; flex-direction: column; gap: 10px; }
.rail-card__img { display: block; width: 100%; aspect-ratio: 416 / 240; overflow: hidden; background: #e6e2db; transition: transform .38s cubic-bezier(.2, .9, .25, 1.25); }
.rail-card a:hover .rail-card__img, .rail-card a:focus-visible .rail-card__img { transform: translateY(-7px) rotate(-.6deg); }
.rail-card__img img { width: 100%; height: 100%; object-fit: cover; }
.rail-card__img--tile { position: relative; background: #141414; }
.rail-card__tile { position: absolute; left: 22px; top: 18px; font-size: 54px; line-height: 64px; font-weight: 700; color: #fff; }
.rail-card__title { font-size: 24px; line-height: 28px; font-weight: 700; }
.rail-card__meta { font-size: 13px; line-height: 18px; color: #68625c; }
.rail-card__blurb { font-size: 16px; line-height: 23px; }
.home-ed__footer { display: grid; grid-template-columns: 825fr 487fr; margin-top: auto; padding: 17px 0 34px; border-top: 1px solid rgb(23 19 16 / .14); font-size: 13px; line-height: 20px; color: #68625c; }
.home-ed__footer p { margin: 0; }
@media (max-width: 1100px) { .home-ed__footer { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  :root { --ed-pad: 24px; }
  .home-ed { min-height: 100vh; padding-top: 88px; }
  .rail-card__title { font-size: 22px; }
  .rail-card__img { aspect-ratio: 342 / 210; }
  .home-ed__footer { display: block; margin-top: 32px; padding-top: 17px; line-height: 21px; }
  .home-ed__footer span { display: block; }
  .home-ed__dot { display: none !important; }
}

/* ---- home (5-column grid: 72px margins, 240px columns, 24px gutters, 1296px content) ---- */
.page-hm { background-color: #f6f4f0; color: #171310; }
.hm { --hm-pad: 72px; --hm-gap: 24px; max-width: 1440px; margin-inline: auto; padding: 104px var(--hm-pad) 36px; font-size: 16px; line-height: 24px; }
:where(.hm) p { margin: 0; }
.hm-hero { display: grid; grid-template-columns: repeat(5, 1fr); column-gap: var(--hm-gap); padding-bottom: 48px; }
.hm-h1 { font-family: var(--sans); font-weight: 500; font-size: 48px; line-height: 58px; letter-spacing: 0; }
.hm-h1 em { font-family: var(--display); font-style: italic; font-weight: 400; display: block; }
.hm-hero .hm-h1 { grid-column: 1 / 4; grid-row: 1; }
.hm-tagline { grid-column: 1 / 4; grid-row: 2; margin-top: 20px; font-size: 22px; line-height: 30px; }
.hm-intro { grid-column: 4 / 6; grid-row: 1 / span 2; }
.hm-intro p:first-child { color: rgb(23 19 16 / .75); }
.hm-hero__link { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; }
.hm-sec { display: grid; grid-template-columns: repeat(5, 1fr); column-gap: var(--hm-gap); margin-top: 36px; padding-top: 28px; border-top: 1px solid rgb(104 98 92 / .25); }
.hm-sec + .hm-sec { margin-top: 72px; }
.hm-label { grid-column: 1; margin-top: 0; font-family: var(--mono); font-size: 10px; line-height: 13px; text-transform: uppercase; letter-spacing: .18em; color: rgb(23 19 16 / .55); }
.hm-body { grid-column: 2 / 6; }
.hm-h2 { font-size: 32px; line-height: 35px; font-weight: 600; letter-spacing: 0; }
.hm-sub { margin-top: 0; font-size: 32px; line-height: 35px; font-weight: 600; }
.hm-paras { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; max-width: 768px; color: rgb(23 19 16 / .75); }
.hm-sub + .hm-paras { margin-top: 20px; }
.hm-link { grid-column: 1 / -1; margin-top: 28px; }
.hm-link a, .hm-hero__link a { color: #171310; font-weight: 500; }
.hm-link a::after, .hm-hero__link a::after { content: " \2192"; }
.hm-link a[href$=".pdf"]::after, .hm-hero__link a[href$=".pdf"]::after { content: " \2193"; }
.hm-sec > .hm-link { margin-top: 28px; }
.hm-proof { grid-column: 2 / 6; grid-row: 3; display: grid; grid-template-columns: repeat(4, 1fr); column-gap: var(--hm-gap); margin: 28px 0 0; }
.hm-label--proof { grid-row: 3; margin-top: 28px; }
.hm-proof .hm-stat { margin: 0; }
.hm-proof dt { font-size: 34px; line-height: 37px; font-weight: 500; }
.hm-proof dd { margin: 12px 0 0; font-size: 12px; line-height: 17px; color: rgb(23 19 16 / .6); }
/* selected work */
.hm-cards { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); column-gap: var(--hm-gap); row-gap: 40px; margin-top: 28px; }
.hm-card { grid-column: span 2; min-width: 0; }
.hm-card--feature { grid-column: 1 / -1; }
.hm-card--wide { grid-column: span 3; }
.hm-card--narrow { grid-column: span 2; }
.hm-card__link { display: block; }
.hm-card__img { display: block; height: 300px; overflow: hidden; background: #e6e2db; }
.hm-card--feature .hm-card__img { height: 600px; }
.hm-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transition: transform 240ms ease; }
.hm-card__link:hover .hm-card__img img, .hm-card__link:focus-visible .hm-card__img img { transform: scale(1.025); }
.hm-card__meta { display: block; margin-top: 10px; font-family: var(--mono); font-size: 10px; line-height: 13px; text-transform: uppercase; letter-spacing: .18em; color: rgb(23 19 16 / .55); }
.hm-card__title { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 32px; line-height: 35px; font-weight: 600; }
.hm-arrow { flex: none; opacity: 0; transform: translate(-4px, 4px); transition: opacity 240ms ease, transform 240ms ease; }
.hm-card__link:hover .hm-arrow, .hm-card__link:focus-visible .hm-arrow { opacity: 1; transform: none; }
.hm-card__blurb { display: block; margin-top: 10px; color: rgb(23 19 16 / .75); }
.hm-card__link:focus-visible { outline: 1px solid #171310; outline-offset: 6px; }
/* contact + footer */
.hm-contact { border-top: 0; padding-top: 0; }
.hm-h1--closing { grid-column: 2 / 6; }
.hm-h1--closing em { display: block; }
.hm-paras--contact { gap: 20px; }
.hm-paras--contact .hm-link { margin-top: 0; }
.hm-footer { margin-top: 28px; padding-top: 28px; border-top: 1px solid rgb(104 98 92 / .25); font-family: var(--mono); font-size: 12px; line-height: 17px; }
/* video-first home (used once reel-loop.mp4 exists): full-bleed loop under the header, then the headline */
.hm--video { padding-top: 64px; }
.hm-reel { position: relative; height: 600px; margin-inline: calc(-1 * var(--hm-pad)); overflow: hidden; background: #171310; }
.hm-reel__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hm-reel__shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgb(23 19 16 / 0) 0%, rgb(23 19 16 / .05) 55%, rgb(23 19 16 / .7) 100%); pointer-events: none; }
.hm-reel__cta { position: absolute; left: var(--hm-pad); bottom: 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; color: #f6f4f0; text-align: left; }
.hm-reel__tag { font-family: var(--mono); font-size: 10px; line-height: 13px; text-transform: uppercase; letter-spacing: .18em; opacity: .8; }
.hm-reel__link { font-size: 16px; line-height: 24px; font-weight: 500; }
.hm-reel__link::after { content: " \2192"; }
.hm-reel__cta:hover .hm-reel__link { text-decoration: underline; text-underline-offset: 4px; }
.hm--video .hm-hero { padding-top: 36px; padding-bottom: 36px; }
.hm--video .hm-sec + .hm-sec { margin-top: 72px; }
.hm--video .hm-hero + .hm-sec { margin-top: 36px; }
.hm-sec--proof { display: block; }
.hm-proof--five { grid-template-columns: repeat(5, 1fr); margin-top: 0; }
.hm-how { display: flex; flex-direction: column; gap: 32px; max-width: 768px; margin-top: 33px; }
.hm-how__item { display: flex; flex-direction: column; gap: 8px; }
.hm-how__item p { color: rgb(23 19 16 / .75); }
@media (max-width: 767px) {
  .hm.hm--video { padding-top: 64px; }
  .hm--video .hm-hero + .hm-sec { margin-top: 40px; }
  .hm-reel { height: 520px; }
  .hm-reel__cta { bottom: 28px; }
  .hm--video .hm-hero { padding-top: 32px; padding-bottom: 32px; display: block; }
  .hm--video .hm-sec + .hm-sec { margin-top: 80px; }
  .hm-sec--proof .hm-proof--five { display: block; margin-top: 0; }
  .hm-how { gap: 28px; margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .hm-reel__video { animation: none; } }
/* hero reveal: 500ms opacity + 12px, 80ms stagger */
@keyframes hm-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hm-rise { animation: hm-rise 500ms ease backwards; animation-delay: calc(var(--i, 0) * 80ms); }
@media (prefers-reduced-motion: reduce) {
  .hm-rise { animation: none; }
  .hm-card__img img, .hm-arrow { transition: none; }
  .hm-card__link:hover .hm-card__img img, .hm-card__link:focus-visible .hm-card__img img { transform: none; }
  .hm-arrow { transform: none; }
}
/* tablet: fluid margins, proportional columns */
@media (max-width: 1439px) { .hm { --hm-pad: clamp(24px, 5vw, 72px); } .hm-h1 { font-size: clamp(36px, 3.4vw, 48px); line-height: 1.2; } }
@media (max-width: 1100px) { .hm-card--feature .hm-card__img { height: clamp(320px, 46vw, 600px); } .hm-card__title { font-size: 28px; line-height: 32px; } }
/* mobile: stack below 768px */
@media (max-width: 767px) {
  .hm { --hm-pad: 24px; }
  .hm { padding-top: 88px; padding-bottom: 40px; font-size: 13px; line-height: 20px; }
  .hm-hero { display: block; padding-bottom: 40px; }
  .hm-h1 { font-size: 26px; line-height: 32px; }
  .hm-h1 em { display: inline; line-height: 1; }
  .hm-tagline { margin-top: 20px; font-size: 20px; line-height: 28px; }
  .hm-intro { margin-top: 24px; }
  .hm-hero__link { margin-top: 20px; font-size: 15px; line-height: 24px; }
  .hm-sec { display: block; margin-top: 40px; padding-top: 24px; }
  .hm-sec + .hm-sec { margin-top: 80px; }
  .hm-label { display: block; margin-top: 0; font-size: 9px; line-height: 12px; }
  .hm-body { margin-top: 24px; }
  .hm-h2 { font-size: 22px; line-height: 24px; }
  .hm-sub { font-size: 22px; line-height: 24px; margin-top: 0; }
  .hm-paras { gap: 10px; }
  .hm-paras, .hm-sub + .hm-paras { margin-top: 24px; }
  .hm-link, .hm-sec > .hm-link { margin-top: 24px; font-size: 15px; line-height: 24px; }
  .hm-cards { display: block; margin-top: 24px; }
  .hm-card { margin-top: 40px; }
  .hm-card:first-child { margin-top: 0; }
  .hm-card--feature { margin-bottom: 0; }
  .hm-card__img, .hm-card--feature .hm-card__img { height: 300px; }
  .hm-card__title { font-size: 22px; line-height: 24px; }
  .hm-card__meta { font-size: 9px; line-height: 12px; }
  .hm-label--proof { margin-top: 24px; }
  .hm-proof { display: block; margin-top: 24px; }
  .hm-stat + .hm-stat { margin-top: 24px; }
  .hm-proof dt { font-size: 32px; line-height: 35px; }
  .hm-proof dd { margin-top: 12px; font-size: 11px; line-height: 14px; }
  .hm-contact { padding-top: 0; }
  .hm-h1--closing { font-size: 26px; line-height: 31px; }
  .hm-h1--closing em { display: block; line-height: 31px; }
  .hm-paras--contact { gap: 24px; }
  .hm-footer { margin-top: 24px; padding-top: 24px; }
}



/* ---- about / contact ---- */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page__inner { flex: 1; padding-block: 9rem 6rem; }
.page__h1 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.04; font-weight: 500; letter-spacing: -.02em; max-width: 22ch; }
.page__cols { margin-top: 4rem; display: grid; grid-template-columns: 1fr; gap: 2rem; }
.page__lead { font-size: 1.25rem; line-height: 1.4; max-width: 26ch; }
.page__text { display: grid; gap: 1.25rem; max-width: 36rem; font-size: .9375rem; line-height: 1.6; color: color-mix(in oklch, var(--ink) 80%, transparent); }
.page__meta { display: grid; gap: .5rem; margin-top: 1rem; font-size: .875rem; color: var(--ink); }
.page__links { display: flex; gap: 2rem; margin-top: 1rem; font-size: .875rem; color: var(--ink); }
.page__dl { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3rem; margin-top: 1.5rem; color: var(--ink); }
.page__dl dt { margin-bottom: .5rem; }
.page__dl dd { font-size: 1.125rem; }
@media (min-width: 900px) { .page__cols { grid-template-columns: 5fr 7fr; gap: 4rem; } }

/* ================= case study ================= */
.cs { color: var(--cs-ink); padding-top: 64px; }
.page-case body, .page-case { background-color: var(--cs-cream); }
.cs .eyebrow, .eyebrow { font-family: var(--mono); font-size: 10px; line-height: 1.3; text-transform: uppercase; letter-spacing: .06em; color: rgb(23 19 16 / .55); }
.cs-wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: 72px; }
.cs-wrap--64 { padding-inline: 64px; }
.cs-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 24px; }
.cs-section { padding-block: 40px; }
.cs-h2 { font-size: 32px; line-height: 1.1; font-weight: 600; letter-spacing: -.01em; }
.cs-body p { font-size: 16px; line-height: 1.5; color: rgb(23 19 16 / .75); }
.cs-body p + p { margin-top: 1.1em; }
.cs-label { grid-column: 1; grid-row: 1; padding-top: .75em; }
.cs-headline { grid-column: 2 / -1; grid-row: 1; }
.cs-body--3 { grid-column: 2 / span 3; grid-row: 2; margin-top: 18px; }
.cs-body--2 { grid-column: 2 / span 2; grid-row: 2; margin-top: 18px; }

/* hero */
.cs-hero { position: relative; height: clamp(420px, 42.6vw, 613px); overflow: hidden; background-color: var(--cs-dark); background-image: var(--hero); background-repeat: no-repeat; background-size: 125% auto; background-position: 0 43.2%; color: var(--cs-cream); }
.cs-hero--cover { background-size: cover; background-position: var(--hero-pos, 50% 50%); }
.cs-hero__inner { position: relative; z-index: 1; display: flex; height: 100%; max-width: 1440px; margin-inline: auto; padding: 0 64px 44px; align-items: flex-end; }
.cs-hero__title { display: flex; flex-direction: column; font-weight: 500; font-size: clamp(28px, 3.34vw, 48px); line-height: 1.12; letter-spacing: -.01em; }
.cs-hero__title em { font-family: var(--display); font-style: italic; font-weight: 400; }
.cs-hero__shade { display: none; }
.cs-hero--ink { color: var(--cs-ink, #171310); }
@media (min-width: 861px) { .cs-hero--shaded .cs-hero__shade { display: block; position: absolute; inset: 0; background: var(--shade-d); } }
/* Zevia hero (per Figma): soft dark ellipse behind the headline on desktop, scaled from the 1440x613 frame */
.cs-hero__vignette { position: absolute; left: -13.19%; top: 48.94%; width: 63.89%; height: 70.15%; border-radius: 50%; background: rgb(5 5 5 / .4); filter: blur(47.5px); pointer-events: none; z-index: 0; }
.cs-hero__title { position: relative; z-index: 1; }

/* results */
.cs-results { padding-block: 28px 8px; }
.cs-stats { display: grid; column-gap: 24px; row-gap: 20px; }
.cs-stats--4 { grid-column: 2 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 36px; }
.cs-stat__n { font-size: 34px; line-height: 1.1; font-weight: 500; letter-spacing: -.01em; }
.cs-stat__cap { margin-top: 8px; font-size: 12px; line-height: 1.4; color: rgb(23 19 16 / .6); }
.cs-footnote { grid-column: 2 / -1; margin-top: 28px; font-size: 11px; line-height: 1.4; color: rgb(23 19 16 / .4); }
.cs-results + .cs-film { padding-top: 40px; }

/* film */
.cs-film { padding-bottom: 24px; }
.film { position: relative; overflow: hidden; background: #000; aspect-ratio: 1299 / 709; }
.film__poster, .film__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__video { opacity: 0; transition: opacity .3s; }
.film.is-playing .film__video { opacity: 1; }
.film.is-playing .film__poster, .film.is-playing .film__play { display: none; }
.film__play { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; translate: -50% -50%; display: grid; place-items: center; border-radius: 48px; border: 1.5px solid rgb(255 255 255 / .25); background: rgb(0 0 0 / .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); color: #fff; transition: scale .3s var(--ease); }
.film__play:hover { scale: 1.06; }
.film__play svg { width: 32px; height: 32px; }
.cs-caption { margin: 16px auto 0; max-width: 779px; text-align: center; font-size: 13px; line-height: 1.4; color: rgb(23 19 16 / .6); }

/* team */
.cs-team { padding-block: 28px; }
.cs-team--narrow .cs-headline { grid-column: 2 / span 2; }
.cs-stats--2 { grid-column: 4 / -1; grid-row: 2; margin-top: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 861px) { .cs-team--swap .cs-stats--2 .cs-stat:first-child { order: 2; } }
/* Team (desktop, per Figma): label above headline at the left, body under it, stats on the right */
@media (min-width: 861px) {
  .cs-team .cs-label { grid-column: 1 / span 3; grid-row: 1; padding-top: 0; }
  .cs-team .cs-headline { grid-column: 1 / span 3; grid-row: 2; margin-top: 16px; }
  .cs-team .cs-body--2 { grid-column: 1 / span 3; grid-row: 3; margin-top: 16px; max-width: 504px; }
  .cs-team .cs-stats--2 { grid-row: 3; margin-top: 16px; }
}

/* credits */
.cs-credits { padding-block: 0; }
.cs-credits .cs-wrap { position: relative; padding-block: 24px; }
.cs-credits .cs-wrap::before, .cs-credits .cs-wrap::after { content: ""; position: absolute; left: 72px; right: 72px; height: 1px; background: var(--border); }
.cs-credits .cs-wrap::before { top: 0; }
.cs-credits .cs-wrap::after { bottom: 0; }
.cs-credit .eyebrow { margin-bottom: 8px; }
.cs-credit__v { font-size: 14px; line-height: 1.3; }

/* about */
.cs-about { padding-block: 56px; }
.cs-about__grid { row-gap: 48px; }
.cs-about__label { grid-column: 1 / span 2; grid-row: 1; }
.cs-about__headline { grid-column: 1 / span 2; grid-row: 2; align-self: end; font-size: 37px; line-height: 1.08; letter-spacing: -.015em; }
.cs-about__first { grid-column: 4 / span 2; grid-row: 1; }
.cs-about__second { grid-column: 4 / span 2; grid-row: 2; align-self: end; }
.cs-about--merged .cs-about__grid { row-gap: 16px; }
.cs-about--merged .cs-about__first { grid-row: 2; max-width: 428px; }
.cs-about--merged .cs-about__second { display: none; }
@media (max-width: 860px) { .cs-about--merged .cs-about__second { display: block; } .cs-about--merged .cs-about__first { max-width: none; } }

/* photography */
.cs-photo { padding-block: 28px 0; }
.cs-photo .eyebrow { margin-bottom: 28px; }
.cs-photo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.crop { position: relative; overflow: hidden; background: #ece9e4; }
.crop img { position: absolute; max-width: none; }
.crop--contain, .crop--cover { background: transparent; }
.crop--contain img, .crop--cover img { inset: 0; width: 100%; height: 100%; }
.crop--contain img { object-fit: contain; object-position: var(--pos, 50% 50%); }
.crop--cover img { object-fit: cover; object-position: var(--pos, 50% 50%); }
.cover { position: relative; overflow: hidden; background: #ece9e4; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.crop picture, .cover picture { display: contents; }
.cs-photo__stack { display: grid; grid-template-rows: 1fr 1fr; gap: 44px; align-self: stretch; }
.cs-photo__item { min-height: 0; }

/* platform / process */
.cs-platform { padding-block: 56px 40px; }
.cs-process { background: var(--cs-cream); padding-block: 48px; margin-top: 40px; }

/* wide pair */
.cs-wide { padding-block: 40px 0; }
.cs-wide__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* carousel */
.cs-carousel { padding-block: 64px 24px; }
.cs-carousel__row { display: flex; gap: 40px; align-items: flex-start; }
.cs-carousel__intro { flex: 0 0 220px; }
.cs-carousel__h { font-size: 22px; line-height: 1.15; font-weight: 600; }
.cs-carousel__body { margin-top: 12px; font-size: 13px; line-height: 1.45; color: rgb(23 19 16 / .65); }
.cs-carousel__track { display: flex; gap: 24px; min-width: 0; flex: 0 1 992px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; padding-bottom: 4px; }
.cs-carousel__track::-webkit-scrollbar { display: none; }
.cs-carousel__track { cursor: grab; }
.cs-carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; -webkit-user-select: none; }
.cs-carousel__track.is-dragging * { pointer-events: none; }
.tile-card { flex: 0 0 230px; scroll-snap-align: start; }
.tile-card__img { width: 230px; height: 230px; border-radius: 4px; overflow: hidden; background: #ece9e4; }
.tile-card__img img { width: 100%; height: 100%; object-fit: cover; }
.pill { display: inline-block; margin-top: 10px; padding: 3px 8px; border: 1px solid rgb(23 19 16 / .25); border-radius: 999px; font-family: var(--mono); font-size: 9px; line-height: 1.3; letter-spacing: .04em; color: rgb(23 19 16 / .6); }
.tile-card__img.has-video { position: relative; }
.tile-card__img video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; opacity: 0; pointer-events: none; }
.tile-card__img.is-playing video { opacity: 1; pointer-events: auto; }
.tile-card__play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; display: grid; place-items: center; border-radius: 999px; color: #fff; background: rgb(0 0 0 / .55); border: 1.5px solid rgb(255 255 255 / .25); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); transition: background .2s; }
.tile-card__play:hover { background: rgb(0 0 0 / .7); }
.tile-card__img.is-playing .tile-card__play { display: none; }
.tile-card__cap { margin-top: 10px; font-size: 12px; line-height: 1.4; color: rgb(23 19 16 / .65); }
.cs-carousel__pager { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.round { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; border: 1px solid rgb(23 19 16 / .25); font-size: 14px; color: rgb(23 19 16 / .6); transition: background .2s, color .2s, opacity .2s; }
.round:hover { background: rgb(23 19 16 / .06); }
.round--solid { background: var(--cs-ink); border-color: var(--cs-ink); color: #fff; }
.round--solid:hover { background: #000; }
.round[disabled] { opacity: .3; pointer-events: none; }
.cs-carousel.is-static .cs-carousel__pager { display: none; }

/* numbers */
.cs-numbers { padding-block: 40px 56px; }
.cs-stats--big { margin-top: 0; }
.cs-numbers .cs-label { grid-row: 1; }
.cs-stats--big .cs-stat__n { font-size: 59px; line-height: 1; }
.cs-stats--big .cs-stat__cap { font-size: 13px; margin-top: 14px; }
.cs-numbers .cs-stats--4 { grid-row: 1; }

/* prev / next */
.cs-pn__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; padding-block: 40px 56px; }
.cs-pn__link { display: grid; gap: 14px; }
.cs-pn__link--next { text-align: right; }
.cs-pn__k { font-size: 11px; color: rgb(23 19 16 / .6); }
.cs-pn__t { font-size: 28px; line-height: 1.1; font-weight: 500; letter-spacing: -.01em; transition: opacity .2s; }
.cs-pn__link:hover .cs-pn__t { opacity: .6; }

/* ---------- case study: tablet & mobile ---------- */
@media (max-width: 1100px) {
  .cs-wrap { padding-inline: 40px; }
  .cs-credits .cs-wrap::before, .cs-credits .cs-wrap::after { left: 40px; right: 40px; }
  .cs-wrap--64 { padding-inline: 40px; }
  .cs-hero__inner { padding-inline: 40px; }
  .cs-stat__n { font-size: 28px; }
  .cs-stats--big .cs-stat__n { font-size: 44px; }
  .cs-about__headline { font-size: 30px; }
}
@media (max-width: 860px) {
  .cs-wrap, .cs-wrap--64 { padding-inline: 20px; }
  .cs-grid { display: block; }
  .cs-section { padding-block: 24px; }
  .cs-h2 { font-size: 22px; margin-top: 12px; }
  .cs-body p { font-size: 13px; line-height: 1.5; }
  .cs-body--3, .cs-body--2 { margin-top: 12px; }
  .cs-hero { height: auto; min-height: var(--hero-h-m, 330px); background-image: var(--hero-m, var(--hero)); background-size: cover; background-position: var(--hero-pos-m, 38% 43%); }
  .cs-hero--cover { background-position: var(--hero-pos-m, var(--hero-pos, 50% 50%)); }
  .cs-hero__shade { display: block; position: absolute; inset: 0; background: var(--shade, linear-gradient(to bottom, rgb(23 19 16 / 0), rgb(23 19 16 / .7))); }
  .cs-hero__vignette { display: none; }
  .cs-hero__inner { padding: 210px 20px 32px; }
  .cs-hero__title { font-size: 26px; }
  .cs-results { padding-block: 32px 8px; }
  .cs-stats { margin-top: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; row-gap: 22px; }
  .cs-stats--4, .cs-stats--2 { grid-column: auto; margin-top: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-stat__n { font-size: 32px; }
  .cs-stat__cap { font-size: 11px; line-height: 1.3; }
  .cs-footnote { margin-top: 20px; font-size: 10px; }
  .cs-film { padding-bottom: 8px; }
  .cs-film .cs-wrap { padding-inline: 0; }
  .film { aspect-ratio: var(--film-ratio, 1 / 1); }
  .cs-caption { padding-inline: 20px; text-align: left; margin-inline: 0; font-size: 12px; }
  .cs-team, .cs-platform, .cs-process { padding-block: 24px; }
  .cs-stats--2 .cs-stat__n { font-size: 26px; }
  .cs-credits { padding-block: 0; }
  .cs-credits .cs-wrap::before, .cs-credits .cs-wrap::after { left: 20px; right: 20px; }
  .cs-grid .cs-credit + .cs-credit { margin-top: 16px; }
  .page-case .site-footer__bar { flex-direction: column; align-items: flex-start; gap: 6px; padding-block: 24px 32px; }
  .cs-credit .eyebrow { margin-bottom: 4px; font-size: 9px; }
  .cs-credit__v { font-size: 13px; }
  .cs-about { padding-block: 24px; }
  .cs-about__headline { font-size: 24px; margin-top: 16px; }
  .cs-about__first { margin-top: 16px; }
  .cs-about__second { margin-top: 16px; }
  .cs-photo { padding-block: 8px 0; }
  .cs-photo .eyebrow { margin-bottom: 12px; padding-inline: 20px; }
  .cs-photo .cs-wrap { padding-inline: 0; }
  .cs-photo__grid { display: flex; flex-direction: column; gap: 12px; }
  .cs-photo__stack { display: contents; }
  .cs-photo__portrait { aspect-ratio: var(--m-ratio, 375 / 450) !important; order: var(--m-order, 1); }
  .cs-photo__item { aspect-ratio: var(--m-ratio, 375 / 290); order: var(--m-order, 2); }
  .crop img { position: static !important; width: 100% !important; height: 100% !important; object-fit: cover; object-position: var(--pos, 50% 50%); }
  .crop--contain img { object-fit: contain; }
  .cs-process { margin-top: 24px; }
  .cs-wide { padding-block: 12px 0; }
  .cs-wide .cs-wrap { padding-inline: 0; }
  .cs-wide__grid { display: block; }
  .cs-wide__grid > * { aspect-ratio: 375 / 420 !important; }
  .cs-wide__grid > * + * { margin-top: 12px; }
  .cs-carousel { padding-block: 32px 8px; }
  .cs-carousel .cs-wrap { padding-inline: 0; }
  .cs-carousel__row { display: block; }
  .cs-carousel__intro { padding-inline: 20px; margin-bottom: 20px; }
  .cs-carousel__h { font-size: 20px; }
  .cs-carousel__body { font-size: 12px; }
  .cs-carousel__track { padding-inline: 20px; gap: 16px; scroll-padding-inline: 20px; }
  .tile-card { flex-basis: 160px; }
  .tile-card__img { width: 160px; height: 160px; }
  .tile-card__cap { font-size: 11px; }
  .cs-carousel__pager { justify-content: center; margin-top: 20px; }
  .cs-numbers { padding-block: 24px; }
  .cs-stats--big { margin-top: 20px; }
  .cs-stats--big .cs-stat__n { font-size: 34px; }
  .cs-stats--big .cs-stat__cap { font-size: 11px; margin-top: 6px; }
  .cs-pn__row { flex-direction: column; gap: 20px; padding-block: 24px; }
  .cs-pn__link--next { text-align: left; }
  .cs-pn__t { font-size: 22px; }
  .cs-pn__k { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-carousel__track { scroll-behavior: auto; }
}

/* desktop/mobile copy pairs */
.t-m { display: none; }
@media (max-width: 860px) { .t-d { display: none; } .t-m { display: inline; } }
@media (max-width: 860px) { p.t-m { display: block; } }

/* ---- about (Figma: "Familiar is a starting point.") ---- */
.about { display: flex; flex-direction: column; min-height: 100vh; }
.about .shell { padding-inline: 64px; }
.about__head { padding-top: 160px; }
.about__h1 { margin: 24px 0 0; font-size: clamp(48px, 5vw, 72px); line-height: 1; font-weight: 500; letter-spacing: -.02em; }
.about__body { display: grid; grid-template-columns: 519fr 632fr; column-gap: clamp(40px, 11.2vw, 161px); align-items: start; margin-top: 64px; padding-bottom: 128px; }
.about__portrait { margin: 0; aspect-ratio: 519 / 648; overflow: hidden; }
.about__portrait--none { aspect-ratio: auto; }
.about__portrait img { width: 100%; height: 100%; object-fit: cover; }
.about__text { display: grid; gap: 32px; align-content: start; }
.about__lead { margin: 0; font-size: 20px; line-height: 32.5px; }
.about__notes { display: grid; gap: 16px; }
.about__note { padding-left: 21px; font-size: 15px; line-height: 24px; color: #68625c; }
.about__note p { margin: 0; }
.about__note p + p { margin-top: 24px; }
.about__dl { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 32px; margin: 0; }
.about__dl dd { margin: 8px 0 0; font-size: 14px; line-height: 20px; }
.about__links { display: flex; gap: 24px; margin: 0; font-size: 14px; line-height: 20px; }
.about .site-footer { margin-top: auto; }
@media (max-width: 860px) {
  .about .shell { padding-inline: 24px; }
  .about__head { padding-top: 128px; }
  .about__h1 { font-size: 48px; }
  .about__body { grid-template-columns: 1fr; row-gap: 48px; margin-top: 64px; padding-bottom: 96px; }
  .about__portrait { aspect-ratio: 342 / 428; }
  .about__portrait--none { display: none; }
  .about__dl { grid-template-columns: 1fr; }
}

/* ---- case study: grid of films (AI Work) ---- */
.cs-films { padding-bottom: 24px; }
.cs-films__label { margin-bottom: 26px; }
.cs-films__grid { max-width: 1299px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 19px; }
.cs-films__item { margin: 0; }
.cs-films__item .film { aspect-ratio: 16 / 9; }
.cs-films .film__play { width: 64px; height: 64px; border-radius: 32px; }
.cs-films .film__play svg { width: 24px; height: 24px; }
.cs-films__cap { display: flex; align-items: baseline; gap: 12px; margin-top: 14px; }
.cs-films__title { font-size: 14px; line-height: 20px; font-weight: 500; }
@media (max-width: 860px) {
  .cs-films .cs-wrap { padding-inline: 0; }
  .cs-films__label { padding-inline: 20px; }
  .cs-films__grid { grid-template-columns: 1fr; gap: 24px; }
  .cs-films__cap { padding-inline: 20px; margin-top: 10px; }
}

/* ---- work page (Figma: "Work Page") ---- */
.work-ed { min-height: 100vh; }
.work-ed__title { display: flex; align-items: center; justify-content: space-between; padding: 48px 0 24px; }
.work-ed__eyebrow, .work-ed__count { margin: 0; font-weight: 400; }
.work-ed__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; margin: 0 0 64px; padding: 0; list-style: none; }
.work-ed .rail-card { flex: none; }
.work-ed .rail-card a:hover .rail-card__img, .work-ed .rail-card a:focus-visible .rail-card__img { transform: translateY(-7px) rotate(-.6deg); }
@media (max-width: 1100px) { .work-ed__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .work-ed__title { padding: 40px 0 24px; }
  .work-ed__count { display: none; }
  .work-ed__grid { grid-template-columns: 1fr; gap: 40px; margin-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .work-ed .rail-card a:hover .rail-card__img, .work-ed .rail-card a:focus-visible .rail-card__img { transform: none; } }

/* ---- contact: the case-study 5-column grid (72px margin, five columns, 24px gutters) ---- */
.contact { display: flex; flex-direction: column; min-height: 100vh; }
.contact__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 24px; align-content: start; width: 100%; max-width: 1440px; margin-inline: auto; padding: 160px 72px 160px; }
.contact__eyebrow { grid-column: 1; grid-row: 1; margin: 0; }
.contact__h1 { grid-column: 2 / -1; grid-row: 2; margin: 24px 0 0; font-size: clamp(44px, 5vw, 72px); line-height: 1.1667; font-weight: 500; letter-spacing: -.0267em; }
.contact__lower { grid-column: 1 / -1; grid-row: 3; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 24px; align-items: start; margin-top: 105px; }
.contact__intro { grid-column: 2 / span 2; display: grid; gap: 24px; align-content: start; }
.contact__lead { margin: 0; font-size: 22px; line-height: 31px; }
.contact__note { font-size: 15px; line-height: 24px; font-style: italic; color: #68625c; }
.contact__note p { margin: 0; }
.contact__note p + p { margin-top: 24px; }
.contact__cells { grid-column: 4 / span 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; align-items: start; }
.contact__cell--email { grid-column: 1; grid-row: 1; }
.contact__cell--linkedin { grid-column: 2; grid-row: 1; }
.contact__cell--resume { grid-column: 1; grid-row: 2; }
.contact__cell--based { grid-column: 2; grid-row: 2; }
.contact__cell { min-height: 75px; }
.contact__cell .eyebrow { margin: 0; }
.contact__value { margin: 8px 0 0; font-size: 18px; line-height: 28px; }
.contact__sub { margin: 0; font-size: 15px; line-height: 24px; font-style: italic; color: #68625c; }
.contact .site-footer { margin-top: auto; }
@media (max-width: 1100px) { .contact__grid { padding-inline: 40px; } }
@media (max-width: 860px) {
  .contact__grid { display: block; padding: 144px 24px 160px; }
  .contact__h1 { margin-top: 24px; font-size: 44px; line-height: 52px; letter-spacing: -.0218em; }
  .contact__lower { display: block; margin-top: 105px; }
  .contact__cells { display: grid; grid-template-columns: 1fr; row-gap: 32px; margin-top: 48px; }
  .contact__cell--email, .contact__cell--linkedin, .contact__cell--resume, .contact__cell--based { grid-column: 1; grid-row: auto; }
}
/* How I work: AI still (desktop right column, mobile under the list) */
.hm-how__visual { margin: 0; overflow: hidden; }
.hm-how__visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) { .hm-sec:has(.hm-how__visual) { position: relative; } .hm-how__visual { position: absolute; right: 0; top: 121px; width: 240px; height: 160px; } }
@media (max-width: 767px) { .hm-how__visual { aspect-ratio: 342 / 212; margin-top: 28px; } }
/* Work page: two "Coming soon" placeholder cards (three-column desktop only) */
.rail-card--soon { display: none; }
@media (min-width: 1101px) {
  .rail-card--soon { display: flex; flex-direction: column; gap: 10px; cursor: default; }
  .rail-card__soon-tile { display: grid; place-items: center; background: rgb(23 19 16 / .05); border: 1px solid rgb(23 19 16 / .15); }
  .rail-card__soon-tile span { font-family: var(--mono); font-size: 10px; line-height: 13px; text-transform: uppercase; letter-spacing: .18em; color: rgb(23 19 16 / .55); }
  .rail-card--soon .rail-card__title { opacity: .55; }
}
