/* Aligned Solutions — one stylesheet, in the Aligned Solutions branding (Inter, dark purple, square corners).
   Order: font · tokens · base · layout · components · motion · responsive · brand. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-500.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --ground: #ffffff;
  --ink: #3A2F5E;                /* real dark purple: headings, buttons, bands */
  --deep: #3A2F5E;               /* darkest purple: "More work" band and footer */
  --slate: #616584;              /* running text, as Aligned uses slate under plum headings */
  --muted: #616584;
  --soft: #616584;               /* captions and descriptions */
  --line: #BEBEBE;               /* lavender hairlines */
  --tint: #F6F6F8;               /* stage colour */
  --yellow: #FFC70C;             /* used once: the bar under each metric */
  --violet: #8D00FF;             /* used once: the focus ring */
  --radius: 0;                   /* Aligned is square */
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1280px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  color: var(--ink);
  background: var(--ground);
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

/* One stage tint for every project in this branding (per-project tints: add [data-tint="slug"] { --tint: … }). */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; }
h1, h2, p, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img, svg { display: block; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; }
::selection { background: rgba(255,199,12,.4); }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 50; padding: 12px 18px; border-radius: 10px; background: var(--ink); color: #fff; }
.skip:focus { top: 16px; }
.arrow { width: 1em; height: 1em; flex: none; transition: transform .35s var(--ease-out); }

/* ---------- Header & footer ---------- */
.site-header { display: flex; align-items: center; justify-content: space-between; height: 96px; }
.brand img { width: 56px; height: 46px; object-fit: contain; }
.site-header nav { display: flex; gap: 28px; font-size: 15px; }
.site-header nav a { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); transition: color .2s; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--ink); }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 144px; padding: 32px 0 40px; font-size: 15px; }
.site-footer a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.site-footer small { font-size: 13px; color: var(--muted); }

/* ---------- Overview ---------- */
.overview-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; align-items: start; padding: 56px 0 96px; }
.overview-intro .page-title { grid-column: 1 / -1; }
.overview-intro p { grid-column: 2; }
.page-title { font-size: clamp(36px, 6.4vw, 96px); line-height: .98; font-weight: 500; letter-spacing: -.04em; text-wrap: balance; }
.overview-intro p { max-width: 30em; font-size: 20px; line-height: 1.5; letter-spacing: -.01em; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 96px 32px; }

/* ---------- Card: a stage, a name + year, one line of context ---------- */
.card { display: block; }
.card-meta { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; padding-top: 20px; }
.card-name { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.card-name .arrow { opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .35s var(--ease-out); }
.card-year { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 4px; }
.card-desc { grid-column: 1 / -1; max-width: 34em; font-size: 16px; line-height: 1.5; color: var(--soft); }
.card .stage { transition: background-color .5s var(--ease), scale .5s var(--ease-out); }
.card:active .stage { scale: .99; }
.card:focus-visible .card-name .arrow { opacity: 1; transform: none; }
@media (hover: hover) {
  .card:hover .stage { background-color: color-mix(in oklab, var(--tint), #000 4%); }
  .card:hover .laptop { transform: translateY(-1.2cqw); }
  .card:hover .phone { transform: translateY(-2.8cqw); }
  .card:hover .card-name .arrow { opacity: 1; transform: none; }
}

/* ---------- Stage + devices ----------
   All device measurements are in cqw of .devices (100 units wide, 55 tall),
   so the composition scales as one piece. The phone stands in front of the
   laptop: its bottom sits below the laptop base, never inside it. */
.stage { display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--tint); }
.devices { --w: 88%; position: relative; width: var(--w); aspect-ratio: 100 / 55; container-type: inline-size; }

.laptop { position: absolute; left: 5.5cqw; top: 0; width: 82cqw; transition: transform .7s var(--ease-out); }
.screen { display: block; margin-inline: 4cqw; padding: 1.6cqw 1.4cqw 1.4cqw; border-radius: 2.4cqw 2.4cqw .4cqw .4cqw; background: #0f0f11; box-shadow: inset 0 0 0 .2cqw #2e2f33; } /* taste-skill-ignore: physical depth (device hardware / floating control) */
.screen .view { border-radius: .6cqw .6cqw 0 0; }

/* A .view is a window onto a full-page screenshot. While it is on screen (.is-playing),
   the page scrolls slowly from top to bottom and back. --view = visible height in cqw of the view,
   --dur = duration (set per image from its length). */
.view { --view: 62.5cqw; position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; container-type: inline-size; background: #1c1c1f; }
.view img { display: block; width: 100%; height: auto; will-change: transform; }
.is-playing .view img { animation: page-scroll var(--dur, 20s) cubic-bezier(.45, 0, .55, 1) infinite alternate; }
.is-playing:hover .view img { animation-play-state: paused; }
@keyframes page-scroll {
  0%, 6% { transform: translateY(0); }
  94%, 100% { transform: translateY(calc(-100% + var(--view))); }
}
.base { position: relative; height: 2.4cqw; border-radius: .3cqw .3cqw 2cqw 2cqw / .3cqw .3cqw 2.4cqw 2.4cqw; background: #d5d6da; box-shadow: inset 0 .25cqw 0 #eeeef1, inset 0 -.4cqw 0 #b3b4b9, 0 1.6cqw 2.4cqw -1.2cqw #0006; } /* taste-skill-ignore: physical depth (device hardware / floating control) */
.base::before { content: ""; position: absolute; left: 50%; top: 0; width: 14cqw; height: .8cqw; translate: -50% 0; border-radius: 0 0 1cqw 1cqw; background: #bdbec2; }

/* The phone is sized in --u (1/21 of its width). Its screen keeps the screenshot's own
   aspect ratio (width/height attributes), so the page is never cropped or zoomed. */
.phone { --u: 1cqw; display: block; position: absolute; left: 73.5cqw; bottom: 2.6cqw; width: calc(21 * var(--u)); padding: calc(.9 * var(--u)); border-radius: calc(3.6 * var(--u)); background: #0f0f11; box-shadow: inset 0 0 0 calc(.25 * var(--u)) #3a3b40, 0 calc(2 * var(--u)) calc(3.6 * var(--u)) calc(-1 * var(--u)) #0006; transition: transform .7s var(--ease-out); } /* taste-skill-ignore: physical depth (device hardware / floating control) */
.phone .view { --view: 216.4cqw; aspect-ratio: 390 / 844; border-radius: calc(2.7 * var(--u)); } /* iPhone viewport: 390 x 844 */
.phone::after { content: ""; position: absolute; top: calc(1.7 * var(--u)); left: 50%; width: calc(5 * var(--u)); height: calc(1.3 * var(--u)); translate: -50% 0; border-radius: var(--u); background: #000; }

/* ---------- Case page ---------- */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; align-items: start; padding: 48px 0 56px; }
.intro h1 { font-size: clamp(44px, 6vw, 92px); line-height: .98; font-weight: 500; letter-spacing: -.04em; text-wrap: balance; }
.lead { max-width: 32em; padding-top: 8px; font-size: 20px; line-height: 1.5; letter-spacing: -.01em; }

/* Facts: year, sector, place, platform, services. */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px 32px; padding: 0 0 56px; }
.facts div { display: flex; flex-direction: column; gap: 6px; }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { font-size: 16px; line-height: 1.45; }
.visit { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 16px; font-size: 15px; font-weight: 500; }
.visit:hover .arrow { transform: translate(2px, -2px); }

.hero .stage { aspect-ratio: 16 / 9; }
.hero .devices { --w: 70%; }
.hero .screen, .hero .phone { cursor: zoom-in; }
@media (hover: hover) {
  .hero .laptop:has(.screen:hover) { transform: translateY(-.8cqw); }
  .hero .phone:hover { transform: translateY(-1.6cqw); }
}

.story { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 64px; padding: 144px 0; }
.story p { grid-column: 2; max-width: 30em; font-size: 22px; line-height: 1.5; letter-spacing: -.015em; }
.metrics { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; align-content: start; }
.metrics div { display: flex; flex-direction: column-reverse; gap: 10px; }
.metrics dd { font-size: clamp(40px, 4.6vw, 64px); line-height: 1; font-weight: 500; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.metrics dt { font-size: 15px; color: var(--muted); }

/* Figures: every image carries a caption. */
figure { margin: 0; }
figcaption { max-width: 46em; padding-top: 14px; font-size: 16px; line-height: 1.5; color: var(--soft); }

/* Gallery: the desktop page large, the phone beside it. */
.gallery { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 32px; padding-bottom: 32px; }
.gallery figure { display: grid; grid-template-rows: 1fr auto; }
.gallery-stage { display: grid; place-items: center; padding: clamp(20px, 6%, 64px); border-radius: var(--radius); background: var(--tint); cursor: zoom-in; }
.gallery-stage > .view { width: 100%; border-radius: 8px; }
.gallery .phone, .flow .phone { --u: calc(var(--pw) / 21); --pw: clamp(160px, 17vw, 250px); position: relative; left: auto; bottom: auto; }
@media (hover: hover) {
  .gallery-stage:hover .phone { transform: translateY(-6px); }
}

/* Quote flow: the steps side by side, each phone with its own caption. */
.flow { padding: 112px 0 32px; }
.flow h2, .more-work h2 { max-width: 20em; padding-bottom: 40px; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; font-weight: 500; letter-spacing: -.03em; }
.flow-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.flow-note { padding-top: 24px; font-size: 15px; color: var(--muted); }
.flow-steps .gallery-stage { padding: 48px 16px; cursor: zoom-in; }
.flow .phone { --pw: clamp(150px, 15vw, 220px); }

/* Brand board (CDD): palette and application images. */
.palette { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 0 0 112px; }
.swatch { display: grid; gap: 14px; }
.swatch span { display: block; aspect-ratio: 3 / 2; border-radius: var(--radius); background: var(--c); }
.swatch b { font-weight: 500; }
.swatch p { font-size: 16px; line-height: 1.5; color: var(--soft); }
.swatch code { font: inherit; font-variant-numeric: tabular-nums; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-2 .shot { padding: 0; overflow: hidden; }
.grid-2 .shot img { border-radius: 0; aspect-ratio: 1 / 1; object-fit: cover; }

.shots { display: grid; gap: 32px; }
.shot { display: block; padding: clamp(16px, 5%, 64px); border-radius: var(--radius); background: var(--tint); cursor: zoom-in; }
.shot img { width: 100%; height: auto; border-radius: 8px; transition: opacity .6s var(--ease), transform .7s var(--ease-out); }
@media (hover: hover) { .shot:hover img { transform: scale(1.012); } }

/* More work: a dark full-bleed band, so the next projects never read as part of this one.
   The band is painted with a spread shadow + clip-path, which bleeds to the edges without 100vw overflow. */ /* taste-skill-ignore: comment mentions the band paint technique */
.more-work { --ground: var(--deep); margin-top: 160px; padding: 112px 0 128px; color: #f4f0fb; background: var(--ground); box-shadow: 0 0 0 100vmax var(--ground); clip-path: inset(0 -100vmax); } /* taste-skill-ignore: full-bleed band paint, not a shadow */
.more-work h2 { color: #f4f0fb; }
.more-work .card-year, .more-work .card-desc { color: #b6aed0; }
.more { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
main:has(.more-work) + .site-footer { margin-top: 0; color: #f4f0fb; background: var(--deep); box-shadow: 0 0 0 100vmax var(--deep); clip-path: inset(0 -100vmax); } /* taste-skill-ignore: full-bleed band paint */
main:has(.more-work) + .site-footer small { color: #b6aed0; }

/* Clients: a slow, endless row of grey logos. The list is rendered twice for a seamless loop. */
.clients { display: flex; overflow: hidden; margin: 0 0 96px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); } /* taste-skill-ignore: edge fade mask, not a visual gradient */
.clients ul { display: flex; flex: none; align-items: center; gap: 72px; margin: 0; padding: 0 72px 0 0; list-style: none; animation: marquee 48s linear infinite; }
.clients:hover ul, .clients:focus-within ul { animation-play-state: paused; }
.clients a { display: flex; align-items: center; height: 56px; opacity: .38; transition: opacity .3s; } /* grey lives on the link: the image fade-in owns the img opacity */
.clients img { width: auto; height: var(--h, 28px); max-width: 180px; object-fit: contain; filter: brightness(0); }
.clients img.badge { filter: grayscale(1); }
.clients a:has(.badge) { opacity: .55; }
.clients a:hover, .clients a:focus-visible { opacity: .8; }
@keyframes marquee { to { transform: translateX(-100%); } }

.not-found { padding: 56px 0; }
.not-found h1 { font-size: clamp(44px, 6.4vw, 96px); line-height: .98; font-weight: 500; letter-spacing: -.04em; }
.not-found a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 24px; font-size: 17px; font-weight: 500; }
.not-found a:hover .arrow { transform: translateX(4px); }

/* ---------- Lightbox ---------- */
.lightbox { max-width: calc(100vw - 48px); max-height: calc(100dvh - 48px); padding: 0; border: 0; overflow: auto; overscroll-behavior: contain; border-radius: 10px; background: none; }
.lightbox::backdrop { background: #0d0f12d0; backdrop-filter: blur(8px); } /* taste-skill-ignore: modal backdrop */
.lightbox img { display: block; max-width: min(calc(100vw - 48px), 1440px); width: auto; height: auto; background: #fff; } /* tall full-page screenshots scroll inside the dialog */
.lightbox[open] { animation: zoom-in .4s var(--ease-out); }
.lightbox[open]::backdrop { animation: fade-in .3s ease; }
.close { position: fixed; top: 16px; right: 16px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #fffffff2; cursor: pointer; box-shadow: 0 2px 12px #0003; transition: scale .2s var(--ease-out); } /* taste-skill-ignore: physical depth (device hardware / floating control) */
.close:hover { scale: 1.06; }
.close svg { width: 20px; height: 20px; }

/* ---------- Motion ----------
   .enter   plays on load (first screen), staggered by --d.
   .reveal  fades up when scrolled into view (script.js adds .hidden first).
   Images fade in once decoded (script.js adds .loaded). Without JS everything shows. */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes zoom-in { from { opacity: 0; scale: .97; } }

.enter { animation: rise .8s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 80ms); }
.vt .enter { animation: none; }
.js .reveal { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .reveal.hidden { opacity: 0; transform: translateY(28px); }
.js main img { opacity: 0; transition: opacity .6s var(--ease), transform .7s var(--ease-out); }
.js main img.loaded { opacity: 1; }

/* Cross-document page transitions (Chrome, Edge, Safari 18.2+). Others just navigate. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: fade-out .18s ease both; }
::view-transition-new(root) { animation: fade-in .35s var(--ease) both; }
::view-transition-group(*) { animation-duration: .6s; animation-timing-function: var(--ease-out); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .overview-intro { grid-template-columns: 1fr; gap: 20px; padding: 32px 0 64px; }
  .overview-intro p { grid-column: 1; }
  .intro { grid-template-columns: 1fr; gap: 16px; padding: 24px 0 40px; }
  .lead { padding-top: 0; }
  .story { grid-template-columns: 1fr; gap: 48px; padding: 96px 0; }
  .story p { grid-column: 1; }
  .metrics { grid-column: 1; grid-row: auto; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .grid { gap: 72px 24px; }
}
@media (max-width: 760px) {
  .site-header { height: 80px; }
  .brand img { width: 48px; height: 40px; }
  .overview-intro p { font-size: 18px; }
  .grid, .more { grid-template-columns: 1fr; gap: 56px; }
  .more-work { margin-top: 96px; padding: 72px 0 88px; }
  .clients { margin-bottom: 64px; }
  .clients ul { gap: 48px; padding-right: 48px; }
  .flow { padding-top: 72px; }
  .flow-steps { grid-template-columns: repeat(3, 80%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .flow-steps figure { scroll-snap-align: start; }
  .flow .phone { --pw: 200px; }
  .palette { grid-template-columns: 1fr; gap: 24px; padding-bottom: 72px; }
  .swatch span { aspect-ratio: 4 / 1; }
  .grid-2 { gap: 8px; }
  .card-name { font-size: 19px; }
  .lead { font-size: 18px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; padding-bottom: 40px; }
  .facts dd { font-size: 15px; }
  .hero .stage { aspect-ratio: 4 / 3; }
  .hero .devices { --w: 90%; }
  .story { padding: 72px 0; }
  .story p { font-size: 18px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .metrics dd { font-size: 36px; }
  .gallery { grid-template-columns: 1fr; gap: 28px; }
  .gallery-stage { padding: 12px; border-radius: 12px; }
  .gallery figure:last-child .gallery-stage { padding: 40px 16px; }
  .gallery .phone { --pw: 200px; }
  figcaption { padding-top: 10px; }
  .shots { gap: 28px; }
  .shot { padding: 12px; border-radius: 12px; }
  .shot img { border-radius: 6px; }
  .more { padding-top: 96px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal.hidden { opacity: 1; transform: none; }
  .clients { mask-image: none; }
  .clients ul { flex-wrap: wrap; justify-content: center; row-gap: 24px; padding: 0; }
  .clients ul[aria-hidden] { display: none; }
  @view-transition { navigation: none; }
}

/* ---------- Brand: Aligned Solutions ----------
   Inter, dark purple instead of violet and yellow, square corners, lavender hairlines, slate running text. */
body { line-height: 1.6; }
.site-header { position: relative; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); box-shadow: 0 0 0 100vmax var(--line); clip-path: inset(0 -100vmax); } /* taste-skill-ignore: full-bleed hairline */
.site-header nav a { font-weight: 500; color: var(--ink); }
.site-header nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }

.page-title, .intro h1, .not-found h1 { font-weight: 500; letter-spacing: -.04em; color: var(--ink); }
.overview-intro p, .lead, .story p { color: var(--slate); }

/* Facts: a ruled row of labelled cells, as on Aligned. */
.facts div { padding-top: 18px; border-top: 1px solid var(--line); } /* taste-skill-ignore: Aligned brand hairline */
.facts dt, .metrics dt { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Primary action: a square, dark-purple button. */
.visit { gap: 10px; height: 52px; margin-top: 28px; padding: 0 24px; color: #fff; background: var(--ink); transition: background-color .25s; }
.visit:hover { background: var(--deep); }

/* Metrics: big number, a short yellow bar, a tracked label. */
.metrics dd { color: var(--ink); }
.metrics dd::after { content: ""; display: block; width: 32px; height: 3px; margin-top: 16px; background: var(--yellow); }
.metrics div { gap: 14px; }

.screen .view, .gallery-stage > .view, .shot img, .lightbox, .lightbox img { border-radius: 0; }
.card-name { color: var(--ink); }
.more-work .card-name { color: #f4f0fb; }
.flow h2, .more-work h2 { letter-spacing: -.035em; }
.close { border-radius: 0; }

/* Crowny journey: personal email -> branded landing page -> loyalty blueprint. */
.journey { padding: 112px 0 32px; }
.journey h2 { max-width: 20em; padding-bottom: 20px; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; font-weight: 500; letter-spacing: -.035em; }
.journey-intro { max-width: 40em; padding-bottom: 40px; font-size: 19px; line-height: 1.6; color: var(--slate); }
.journey-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.journey .stage { aspect-ratio: 4 / 3; }
.journey .screen, .journey .phone { cursor: zoom-in; }

/* Aligned logo in the header. */
.brand img { width: auto; height: 52px; }
@media (max-width: 760px) {
  .journey { padding-top: 72px; }
  .journey-intro { font-size: 17px; }
  .journey-steps { grid-template-columns: 1fr; gap: 40px; }
  .brand img { height: 44px; }
}

/* Crowny results: the path from ad to request as stat tiles, then sources as a one-hue bar table.
   Numbers are not a narrowing funnel (views > visits > visitors), so no funnel shape is drawn. */
:root { --data: #8D00FF; } /* validated data hue: lightness band, chroma floor, contrast on white */
.funnel { padding: 112px 0 32px; }
.funnel h2 { max-width: 20em; padding-bottom: 20px; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; font-weight: 500; letter-spacing: -.035em; }
.funnel-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 0 56px; padding: 0; list-style: none; border-top: 1px solid var(--line); } /* taste-skill-ignore: Aligned brand hairline */
.funnel-steps li { position: relative; display: grid; align-content: start; gap: 8px; padding: 24px 24px 0 0; }
.funnel-steps li + li { padding-left: 24px; border-left: 1px solid var(--line); } /* taste-skill-ignore: Aligned brand hairline */
.funnel-steps li + li::before { content: "→"; position: absolute; top: 24px; left: -9px; width: 18px; text-align: center; background: var(--ground); color: var(--muted); line-height: 1.4; }
.funnel-value { font-size: clamp(30px, 3vw, 44px); line-height: 1; font-weight: 500; letter-spacing: -.035em; font-variant-numeric: tabular-nums; color: var(--ink); }
.funnel-label { font-size: 16px; font-weight: 500; color: var(--ink); }
.funnel-delta { font-size: 15px; color: var(--soft); font-variant-numeric: tabular-nums; }
.funnel-steps li:last-child .funnel-value { color: var(--data); }

.funnel-detail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px 64px; align-items: start; padding-bottom: 56px; }
.funnel table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.funnel caption { padding-bottom: 12px; text-align: left; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.funnel caption span { display: block; padding-top: 4px; font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--soft); }
.funnel th, .funnel td { padding: 14px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; } /* taste-skill-ignore: real table rules */
.funnel thead th { padding-top: 0; border-top: 0; font-size: 13px; color: var(--muted); }
.funnel tbody th { font-weight: 500; color: var(--ink); }
.funnel tbody th small, .engagement small { display: block; font-size: 14px; font-weight: 400; color: var(--soft); }
.sources td:nth-child(2) { width: 6em; padding-right: 16px; text-align: right; color: var(--ink); }
.sources td:last-child { width: 45%; }
.sources td:last-child { white-space: nowrap; }
.sources .bar { display: inline-block; width: calc(var(--p) * .8); min-width: 2px; height: 12px; margin-right: 10px; border-radius: 2px; background: var(--data); vertical-align: -1px; transition: opacity .2s; }
.sources b { font-weight: 500; color: var(--ink); }
.sources tbody tr:hover .bar { opacity: .75; }
.engagement td { padding-left: 16px; color: var(--ink); }
.funnel-shots { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
.funnel-shots .shot { padding: 0; background: #1a1a1a; }

@media (max-width: 900px) {
  .funnel-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .funnel-steps li { padding: 20px 16px 0 0; }
  .funnel-steps li + li { padding-left: 0; border-left: 0; }
  .funnel-steps li + li::before { display: none; }
  .funnel-steps li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); } /* taste-skill-ignore: Aligned brand hairline */
  .funnel-steps li:last-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } /* taste-skill-ignore: Aligned brand hairline */
  .funnel-detail, .funnel-shots { grid-template-columns: 1fr; }
  .funnel { padding-top: 72px; }
  .sources td:last-child { width: 40%; }
}
@media (max-width: 760px) {
  .sources thead { display: none; }
  .sources tbody tr { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; border-top: 1px solid var(--line); padding: 14px 0; } /* taste-skill-ignore: real table rules */
  .sources tbody th { grid-column: 1 / -1; padding: 0 0 8px; border: 0; }
  .sources td { padding: 0; border: 0; }
  .sources td:nth-child(2) { width: auto; text-align: left; }
  .sources td:last-child { width: auto; }
  .sources .bar { width: calc(var(--p) * .6); }
}


/* ---------- Aligned site integration (header, closing box, footer, palette) ---------- */
.site-header { position: sticky; top: 0; z-index: 30; height: 72px; background: #fff; box-shadow: 0 0 0 100vmax #fff; clip-path: inset(0 -100vmax -1px); }
.brand img { width: 118px; height: auto; object-fit: initial; }
.site-header nav { align-items: center; gap: 30px; font-weight: 500; }
.site-header nav a { color: var(--ink); }
.site-header nav a:hover { color: var(--violet); }
.site-header nav a[aria-current="page"] { color: var(--violet); }
.site-header .nav-cta { padding: 0 18px; font-size: 14px; color: #fff; background: var(--violet); }
.site-header .nav-cta:hover { color: #fff; transform: translateY(-1px); }
@media (max-width: 760px) { .site-header .nl { display: none; } .site-header nav { gap: 20px; } }

/* "More work" sits on the light tint instead of a dark band */
.more-work { --ground: var(--tint); color: var(--ink); }
.more-work h2, .more-work .card-name { color: var(--ink); }
.more-work .card-year, .more-work .card-desc { color: var(--slate); }
.more-work .stage { background: #fff; }
main:has(.more-work) + .cta { margin-top: 0; }

/* Closing box, matching the homepage */
.cta { margin-top: 120px; }
.close-box { padding: 72px 64px; color: #fff; background: var(--ink); }
.close-box h2 { margin: 0 0 14px; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; font-weight: 500; letter-spacing: -.03em; }
.close-box h2 em { font-style: normal; color: var(--yellow); }
.close-box p { margin: 0 0 32px; font-size: 19px; color: #D8D4E6; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-y, .btn-ow { display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px; font-size: 15px; font-weight: 500; border: 1.5px solid transparent; transition: transform .15s ease; }
.btn-y { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }
.btn-ow { color: #fff; border-color: rgba(255,255,255,.6); }
.btn-y:hover, .btn-ow:hover { transform: translateY(-1px); }
.close-box a:focus-visible { outline-color: var(--yellow); }
.flame { max-width: 640px; margin: 40px 0 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--yellow); font-size: 18px; line-height: 1.6; color: var(--slate); }
@media (max-width: 760px) { .close-box { padding: 52px 24px; } .cta { margin-top: 96px; } }

/* Footer, matching the homepage */
.site-footer { position: relative; margin-top: 96px; padding: 20px 0; font-size: 14px; color: var(--slate); flex-wrap: wrap; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); box-shadow: 0 0 0 100vmax var(--line); clip-path: inset(0 -100vmax); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--slate); }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

/* Crowny: one preview left in the journey */
.journey-steps:has(> figure:only-child) { grid-template-columns: minmax(0, 1fr); max-width: 860px; }


/* ---------- Aligned homepage chrome and serif headlines (matches /site.css) ---------- */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/newsreader-400.woff2") format("woff2"); }
.page-title, .intro h1, .flow h2, .more-work h2, .journey h2, .funnel h2, .as-d {
  font-family: "Newsreader", Georgia, serif; font-weight: 400; letter-spacing: -.02em;
  font-variant-ligatures: no-common-ligatures; font-feature-settings: "liga" 0, "clig" 0;
}
.page-title, .intro h1 { line-height: 1.04; }
.fk { margin-right: .055em; }

.as-wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.as-nav { position: relative; z-index: 40; background: #fff; font-size: 13px; line-height: 1.6; }
.as-nav .as-wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.as-logo { display: inline-flex; align-items: center; min-height: 44px; }
.as-logo svg { width: 104px; height: auto; display: block; }
.as-navl { display: flex; align-items: center; gap: 6px; }
.as-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px; border-radius: 8px; font-size: 13px; font-weight: 400; color: #3A2F5E; }
.as-chip { background: #F6F6F8; }
.as-chip:hover { background: #ECECF1; }
.as-cta { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 16px; border-radius: 8px; font-size: 13px; font-weight: 400; background: #8D00FF; color: #fff; }
.as-cta i { font-style: normal; display: inline-block; transition: transform .2s ease; }
.as-cta:hover i { transform: translate(2px,-2px); }
.as-tlink { position: relative; font-size: 13px; color: #3A2F5E; border-bottom: 1px solid #BEBEBE; padding-bottom: 2px; }
.as-tlink::after { content: ""; position: absolute; inset: -13px 0; }
.as-tlink:hover { border-color: #3A2F5E; }
.as-close { padding: 120px 0 90px; text-align: center; font-size: 15px; line-height: 1.6; color: #3A2F5E; }
.as-close h2 { margin: 0; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.14; }
.as-close h2 em { font-style: normal; background: linear-gradient(transparent 62%, #FFC70C 62%, #FFC70C 92%, transparent 92%); }
.as-close p { color: #616584; margin: 16px auto 30px; max-width: 44ch; font-size: 16px; }
.as-row { display: flex; gap: 18px; justify-content: center; align-items: center; flex-wrap: wrap; }
.as-close .as-flame { margin: 70px auto 0; max-width: 46ch; font-size: 13px; color: #616584; }
.as-foot { border-top: 1px solid #BEBEBE; padding: 20px 0; font-size: 12.5px; line-height: 1.6; color: #616584; }
.as-foot .as-wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.as-foot nav { display: flex; gap: 18px; }
.as-foot a { display: inline-flex; align-items: center; min-height: 44px; color: #616584; }
.as-foot a:hover { color: #3A2F5E; text-decoration: underline; }
.as-nav a:focus-visible, .as-close a:focus-visible, .as-foot a:focus-visible { outline: 2px solid #8D00FF; outline-offset: 3px; }
@media (max-width: 860px) { .as-hide { display: none; } .as-close { padding: 84px 0 70px; } }

/* flame on the i of Aligned in the closing line, matches the logo */
.aw-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.aw-i{position:relative}
.aw-i svg{position:absolute;left:50%;top:-.03em;height:.24em;width:auto;transform:translateX(-50%);overflow:visible}
@media (max-width: 374px) { .as-nav .as-wrap { width: calc(100% - 32px); } .as-nav .as-cta { white-space: nowrap; } }
