/* Near-monochrome UI: every interface accent becomes one highlight colour (--hl), used sparingly.
   The work keeps its own colour; the homepage hero is unchanged. Loaded after dark-black.css / accent.css. */
:root { --hl: #6a86ff; --hl2: #ff8b73; --hl-ink: #0a0a0a; --hero-text: #3f5bff;   /* blue + coral. gold: #ffc53d / #b07800 · teal: #2fd8c6 / #0d9488 · coral: #ff8b73 / #e2563a */
  --brand-orange: var(--hl); --star: var(--hl2, var(--hl)); --star-deep: var(--hl2, var(--hl)); --orange: var(--hl); --brand-blue: var(--hl); --blue: var(--hl); }

/* text on a highlight fill */
.ab-cta a:hover, .awards, .badge, .ct-btn--fill, .ct-btn--fill:hover, .ct-btn--line.is-copied, .cv:hover, .footer__mail button.is-copied,
.ft .footer__mail button, .ft .footer__mail button.is-copied, .ft__social a:hover, .ft__up:hover, .h-play, .h-reel__btn:hover, .h-reel__play,
.h-reel__rec, .hB__actions .cv, .hG--dark .hG__btn:hover, .hL__badge, .has-sound > .player__sound, .jump a:hover span, .jump-reel__dot,
.player--auto.is-paused .player__toggle, .player__sound:hover, .pop--note, .walk__play, .player__start { color: var(--hl-ink) !important; }
.walk__play svg, .h-reel__play svg, .player__start svg { fill: var(--hl-ink); }

/* menu, links and the intro's highlighted words */
.nav nav a:hover, .nav nav a.is-active { color: var(--hl) !important; }
body:has(.hC5) .nav:not(.is-scrolled) nav a.is-active, body:has(.hC5) .nav:not(.is-scrolled) nav a:hover { color: var(--hero-text, #0b0e1a) !important; }
.lede b { color: var(--ink) !important; font-weight: 500; text-decoration: underline; text-decoration-color: var(--hl); text-decoration-thickness: 1px; text-underline-offset: .18em; }
.lede a { color: var(--ink); text-decoration-color: var(--hl); }
.tags, .fold .title .tags { color: rgba(242,240,236,.7) !important; }

/* project pills on the homepage: one quiet style */
.pills span { background: rgba(10,10,10,.55) !important; color: #f2f0ec !important; box-shadow: inset 0 0 0 1px rgba(242,240,236,.22) !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* impact numbers: a neutral rule instead of a colour per tile */
.tile { box-shadow: inset 0 1px 0 rgba(242,240,236,.32) !important; }

/* homepage hero: white sky kept; the planet's edge, the star and the rotating line take the highlight */
.hC5 { background: #0a0a0a !important; }
.cwhite .hC5__moon { background: radial-gradient(closest-side, #ffffff 87%, color-mix(in srgb, var(--hl) 10%, #fff) 90.5%, color-mix(in srgb, var(--hl) 38%, #fff) 94.5%, color-mix(in srgb, var(--hl) 75%, #fff) 97.8%, var(--hl) 100%) !important; }
.hC5__orb { background: var(--hl) !important; filter: drop-shadow(0 0 1px rgba(11,14,26,.35)); }
.hC5__mid a.rotator, .hC5__mid .rotator { color: var(--hero-text, var(--hl)) !important; }
.hC5__down:hover { color: var(--hero-text, var(--hl)); }
.h-strip { background: #0a0a0a !important; color: rgba(242,240,236,.8) !important; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.h-strip .icon { color: var(--hl) !important; }

/* ── legibility fixes ── */
/* colour chips marked "dark text" (light swatches like Bliss) keep dark text in the dark theme */
.hexes span.dark-text, .pills span.dark-text { color: #0a0a0a !important; }
/* impact tiles have no fill in the dark theme, so their text stays light */
.tile.dark-text, .tile.dark-text b { color: var(--ink) !important; }
.tile.dark-text p { color: var(--grey) !important; }
/* "What I do" tags: quiet dark pills with readable text */
.what__tags li { background: rgba(242,240,236,.06) !important; color: rgba(242,240,236,.86) !important; box-shadow: inset 0 0 0 1px rgba(242,240,236,.16); }

/* header links: a little smaller and bolder */
.nav nav a { font-weight: 400 !important; }

/* case-study top fold: deeper shade at the bottom so the title sits on dark */
.fold::after { background: linear-gradient(0deg, rgba(5,5,5,.96) 0%, rgba(5,5,5,.82) 16%, rgba(5,5,5,.45) 36%, rgba(5,5,5,.1) 56%, rgba(5,5,5,0) 70%),
                          linear-gradient(180deg, rgba(5,5,5,.5) 0%, rgba(5,5,5,0) 22%) !important; }

/* header: no solid bar, just a dark gradient fading down from the top */
.nav, .nav.is-scrolled, .ct-page .nav, body:not(:has(.fold)):not(:has(.hC5)) .nav:not(.is-scrolled), body:has(.hC5) .nav.is-scrolled, body:has(.fold) .nav {
  background: linear-gradient(180deg, rgba(5,5,5,.8) 0%, rgba(5,5,5,.72) 18%, rgba(5,5,5,.56) 36%, rgba(5,5,5,.38) 52%, rgba(5,5,5,.22) 66%, rgba(5,5,5,.1) 79%, rgba(5,5,5,.03) 90%, rgba(5,5,5,0) 100%) !important;
  box-shadow: none !important; border: 0 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  padding-top: 10px !important; padding-bottom: 22px !important; }
.nav .logo { height: 40px; }
/* over the homepage's white sky, before scrolling: no shade */
body:has(.hC5) .nav:not(.is-scrolled) { background: none !important; }

/* ───────── a sun in the dark of space ───────── */
/* 1. star field layers (created by cosmos.js) */
.stars { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.stars i { position: absolute; left: 0; top: 0; width: 1.5px; height: 1.5px; border-radius: 50%; background: transparent; animation: stars-drift 140s linear infinite alternate; }
.stars i + i { width: 1px; height: 1px; animation: stars-drift 200s linear infinite alternate-reverse, stars-twinkle 7s ease-in-out infinite; }
@keyframes stars-drift { to { transform: translate(-28px, -14px); } }
@keyframes stars-twinkle { 50% { opacity: .35; } }
.has-stars { position: relative; isolation: isolate; }
.has-stars > *:not(.stars) { position: relative; z-index: 1; }


/* 3. sunset footer: a gold horizon rising from the bottom */
.footer { position: relative; isolation: isolate; overflow: hidden; }
.footer > * { background: transparent !important; }
.footer::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 160%; height: 70%; translate: -50% 52%; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--hl) 30%, transparent), color-mix(in srgb, var(--hl) 12%, transparent) 45%, color-mix(in srgb, var(--hl) 4%, transparent) 70%, transparent); }
.footer > .ft { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) { .stars i { animation: none !important; } }
/* "View" cursor over projects: dark text on gold */
.cursor { color: var(--hl-ink) !important; }

/* impact numbers: a hairline in a quiet accent tone per tile (gold, teal, lilac, coral, mint) */
.tile { box-shadow: inset 0 1px 0 var(--tone, rgba(242,240,236,.32)) !important; }
.impact__grid .tile:nth-child(5n+1) { --tone: #ffc53d; }
.impact__grid .tile:nth-child(5n+2) { --tone: #2fd8c6; }
.impact__grid .tile:nth-child(5n+3) { --tone: #c3b2ff; }
.impact__grid .tile:nth-child(5n+4) { --tone: #ff8b73; }
.impact__grid .tile:nth-child(5n+5) { --tone: #7dffc4; }

/* ── contrast fixes from the audit ── */
.h-play, .h-play h2, .h-play .nowrap { color: var(--ink) !important; }
.h-play p { color: var(--grey) !important; }
.video .cols, .video .cols p, .band .cols, .band .cols p { color: rgba(242,240,236,.9) !important; }
.hexes[aria-label="The five States"] span:nth-child(3) { color: #0a0a0a !important; }
/* soft shadow keeps the menu readable over bright images without a bar */
.nav.is-scrolled nav a, body:has(.fold) .nav nav a, .nav.is-scrolled .logo { text-shadow: 0 1px 10px rgba(0,0,0,.65), 0 0 2px rgba(0,0,0,.4); }
.nav.is-scrolled .logo .icon, body:has(.fold) .nav .logo .icon { filter: drop-shadow(0 1px 6px rgba(0,0,0,.6)); }

/* ── blue + coral: blue for actions and links, coral for stars, sparkles and the warm light ── */
.nav nav a:hover, .nav nav a.is-active { color: var(--hl2) !important; }
.hC5__orb { background: var(--hl2) !important; }
.h-strip .icon { color: var(--hl2) !important; }
.cwhite .hC5__moon { background: radial-gradient(closest-side, #ffffff 86%, color-mix(in srgb, var(--hl2) 14%, #fff) 89.5%, color-mix(in srgb, var(--hl2) 55%, #fff) 93%, color-mix(in srgb, var(--hl2) 60%, var(--hl)) 96.5%, var(--hl) 100%) !important; }
.footer::after { background: radial-gradient(closest-side, color-mix(in srgb, var(--hl2) 30%, transparent), color-mix(in srgb, var(--hl2) 12%, transparent) 40%, color-mix(in srgb, var(--hl) 6%, transparent) 70%, transparent) !important; }
/* menu: smaller still */
body .nav nav a, body .nav nav a:is(*) { font-size: 11.5px !important; letter-spacing: .1em !important; padding: 6px 11px; }
@media (max-width: 370px) { body .nav nav a { font-size: 9.5px !important; padding: 6px 6px; } }
/* footer: the original night-to-blue gradient, on black, with the coral horizon glowing at the bottom */
.footer > .ft { background: linear-gradient(180deg, #0a0a0a 0%, #0a0a0a 38%, #10174a 66%, #2a3fd0 88%, var(--hl) 100%) !important; }
.footer::after { z-index: 2; mix-blend-mode: screen; height: 60%; translate: -50% 58%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--hl2) 55%, transparent), color-mix(in srgb, var(--hl2) 22%, transparent) 42%, color-mix(in srgb, var(--hl2) 6%, transparent) 70%, transparent) !important; }
.footer .ft__base, .footer .ft__base * { position: relative; z-index: 3; }
/* homepage planet: blue glow only */
.cwhite .hC5__moon { background: radial-gradient(closest-side, #ffffff 87%, color-mix(in srgb, var(--hl) 10%, #fff) 90.5%, color-mix(in srgb, var(--hl) 40%, #fff) 94.5%, color-mix(in srgb, var(--hl) 80%, #fff) 97.8%, var(--hl) 100%) !important; }
/* speaker names: a quiet line rather than a headline */
.marquee-row .marquee__track { font-size: clamp(16px, 1.35vw, 21px) !important; gap: 18px !important; }
.marquee-row .marquee__track i { width: 5px !important; height: 5px !important; }
/* homepage name: a touch bolder */
.hC5__name, .hC5__name .h5__name { font-weight: 500 !important; }
/* homepage name: letters closer together */
.hC5__name { letter-spacing: -.032em !important; }
.hC5__name .c5ch[style*="--i:2"] { margin-right: .035em; }   /* G spur clears the A */
/* homepage: the line under the name sits closer to it */
.hC5__row { margin-top: clamp(4px, 1vh, 12px) !important; }
/* star field: one sky behind the whole page, plus the footer and the homepage hero */
.stars--sky { position: fixed; inset: 0; z-index: -1; }
.stars--hero { z-index: -2; }
.footer .ft.has-stars { position: relative; isolation: isolate; }
.footer .ft.has-stars > .stars { z-index: 0; }
.stars i { width: 1.6px; height: 1.6px; } .stars i + i { width: 1.1px; height: 1.1px; }
/* contrast pass 2 */
.awards, .awards__head, .awards__head * { color: var(--ink) !important; }
/* footer: bright blue glow at the bottom, with a soft shadow on the text there */
.footer > .ft { background: linear-gradient(180deg, #0a0a0a 0%, #0a0a0a 38%, #10174a 66%, #2a3fd0 88%, #5a78ff 100%) !important; }
.footer .ft__base, .footer .ft__base a { color: #fff !important; text-shadow: 0 1px 6px rgba(10,20,90,.45); }
/* work grid: tags appear on hover */
@media (hover: hover) {
  .work .pills span { opacity: 0; translate: 0 8px; transition: opacity .35s ease, translate .45s cubic-bezier(.22,1,.36,1); }
  .work .pills span:nth-child(2) { transition-delay: .05s; } .work .pills span:nth-child(3) { transition-delay: .1s; } .work .pills span:nth-child(4) { transition-delay: .15s; }
  .work:hover .pills span, .work:focus-visible .pills span { opacity: 1; translate: 0 0; }
}
/* homepage teaser for My Process */
.h-proc { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 30px; margin: clamp(40px, 5vw, 80px) var(--pad); padding: clamp(36px, 4vw, 60px); border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line); background: radial-gradient(120% 140% at 100% 100%, color-mix(in srgb, var(--hl) 22%, transparent), transparent 60%); transition: box-shadow .3s; }
.h-proc:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hl) 60%, transparent); }
.h-proc .label { display: block; margin-bottom: 16px; }
.h-proc h2 { font-family: var(--display); font-weight: 500; font-size: clamp(32px, 3.6vw, 56px); line-height: 1; letter-spacing: -.025em; color: var(--ink); max-width: 18ch; }
.h-proc h2 em { font-style: normal; color: var(--hl); }
.h-proc p { margin-top: 14px; font-size: 15px; line-height: 1.6; color: var(--grey); max-width: 52ch; }
.h-proc__cta { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 99px; background: var(--hl); color: var(--hl-ink); font: 500 15px var(--display); white-space: nowrap; }
.h-proc__cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: translate .3s; }
.h-proc:hover .h-proc__cta svg { translate: 4px 0; }
@media (max-width: 760px) { .h-proc { grid-template-columns: 1fr; } }
/* homepage bands: square edges, colour runs the full width */
.h-reel, .h-play, .h-proc { margin-left: 0 !important; margin-right: 0 !important; border-radius: 0 !important; }
.h-reel, .h-play { padding-left: var(--pad) !important; padding-right: var(--pad) !important; }
.h-proc { padding-left: var(--pad); padding-right: var(--pad); box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
.h-reel { margin-bottom: 0 !important; }
.h-reel__vid, .h-reel__vid video, .h-reel__poster { border-radius: 0 !important; }
.h-proc { margin-top: 0 !important; margin-bottom: 0 !important; }

/* homepage hero text: statement left (light + bold), mono description right, pronunciation above the name */
.hC5__pron { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.7; color: #4a4c58; margin: 0 0 6px; padding: 0 clamp(2px, .4vw, 8px); text-align: left; }
.hC5__mid { font-family: var(--display) !important; text-transform: none !important; font-weight: 400 !important; font-size: clamp(30px, 3.4vw, 52px) !important; letter-spacing: -.025em !important; line-height: 1.02 !important; }
.hC5__mid .rotator { font-weight: 700 !important; }
.hC5__left { font-family: var(--mono) !important; font-size: 10.5px !important; letter-spacing: .1em !important; text-transform: uppercase !important; line-height: 1.7 !important; color: #4a4c58 !important; }



/* homepage hero: description a little bigger */
.hC5__left { font-size: 12px !important; line-height: 1.65 !important; }
/* homepage description: body font, sentence case, no orphan words */
.hC5__left { font-family: var(--sans) !important; text-transform: none !important; letter-spacing: 0 !important; font-size: clamp(14px, 1.05vw, 16px) !important; line-height: 1.55 !important; color: #3a3c48 !important; text-wrap: balance; }
p, li { text-wrap: pretty; }

/* homepage hero text: the original three columns with the new type */
.hC5__left { text-align: left !important; max-width: 30ch !important; }
.hC5__mid { text-align: center !important; }
.hC5__right { font-family: var(--mono) !important; font-size: 11px !important; letter-spacing: .1em !important; text-transform: uppercase !important; color: #4a4c58 !important; }
@media (max-width: 860px) { .hC5__left { text-align: center !important; justify-self: center !important; margin-inline: auto !important; } }
/* hero polish: side texts on the name's grid and the first line's baseline, calmer rotation, coral star, label */
@media (min-width: 861px) { .hC5__row { align-items: baseline !important; } }
.hC5__mid .rotator { overflow: hidden; padding-bottom: .12em; }
.hC5__mid .rotator .ch { animation: none !important; }
.hC5__mid .rotator__item { animation: hcIn .8s cubic-bezier(.22,1,.36,1) both; }
.hC5__mid .rotator__item.is-leaving { animation: hcOut .55s cubic-bezier(.64,0,.78,0) both; }
@keyframes hcIn { from { opacity: 0; transform: translateY(70%); } }
@keyframes hcOut { to { opacity: 0; transform: translateY(-70%); } }
@media (prefers-reduced-motion: reduce) { .hC5__mid .rotator__item { animation: none !important; } }
/* Featured-on logos: white on the dark theme */
.featured__logos img { filter: brightness(0) invert(1); }

/* stats: a little breathing room between rows */
.impact__grid { row-gap: clamp(26px, 2.6vw, 40px) !important; }
/* every page but the homepage: content sits further in from the edges */
body:not(:has(.hC5)) > :not(.nav):not(header):not(footer):not(.footer) { --pad: clamp(22px, 3.6vw, 62px); }
/* case study text sections: less empty space above the heading */
.section { padding-top: clamp(48px, 5.4vw, 84px) !important; }
/* menu: a touch heavier (Space Mono only comes in 400 and 700, so a hairline stroke adds the weight) */
@media (min-width: 641px) { body .nav nav a, body .nav nav a:is(*) { -webkit-text-stroke: .35px currentColor; } }
/* photo zoom cursor in the theme blue (the old one had the brand orange baked into its image) */
:root { --zoom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='20' cy='20' r='18' fill='%236a86ff'/%3E%3C/svg%3E") 20 20, zoom-in !important; }
