/* I-T: shared look for every page. Dark, cinematic, one accent per page. */
:root {
  --night: #050506;
  --deep: #0B0C0E;
  --panel: #111215;
  --bone: #EDE7DC;
  --ash: #8E8A83;
  --line: rgba(237, 231, 220, 0.12);
  --ember: #E8573D;
  --azure: #5AAEF0;
  --gold: #CBA76A;
  --crema: #DDA466;
  --silver: #C9CED6;
  --accent: var(--bone);
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --voice: "Newsreader", Georgia, "Times New Roman", serif;
  --hud: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --body: "Newsreader", Georgia, serif;
  --gutter: clamp(20px, 5vw, 64px);
  color-scheme: dark;
}
.ares { --accent: var(--ember); }
.iris { --accent: var(--azure); }
.demetra { --accent: var(--crema); }
.studio { --accent: var(--silver); }

* { box-sizing: border-box; }
html { background: var(--night); scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--bone); font-family: var(--body); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 1px solid var(--bone); outline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Header: a wordmark and one button. The menu does the rest. */
.site-head { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: calc(env(safe-area-inset-top, 0px) + 18px) max(var(--gutter), env(safe-area-inset-right, 0px)) 18px max(var(--gutter), env(safe-area-inset-left, 0px)); background: linear-gradient(rgba(5,5,6,0.85), rgba(5,5,6,0)); pointer-events: none; }
.site-head > * { pointer-events: auto; }
.wordmark { font-family: var(--display); font-size: 20px; letter-spacing: 0.32em; text-decoration: none; color: var(--bone); padding: 8px 0; }
.wordmark span { color: var(--accent); }
.head-tools { display: flex; gap: 10px; align-items: center; }
.btn-hud { font-family: var(--hud); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bone); background: rgba(5,5,6,0.4); border: 1px solid rgba(237,231,220,0.28); padding: 10px 16px; min-height: 40px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.btn-hud:hover { border-color: rgba(237,231,220,0.6); }
.btn-hud[aria-pressed="true"] { border-color: rgba(237,231,220,0.6); }

/* Menu: the whole screen, like a title card. */
.menu { position: fixed; inset: 0; z-index: 40; background: rgba(5,5,6,0.97); display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top, 0px) + 18px) max(var(--gutter), env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 32px) max(var(--gutter), env(safe-area-inset-left, 0px)); opacity: 0; visibility: hidden; transition: opacity 0.45s ease, visibility 0s linear 0.45s; overflow-y: auto; }
.menu.open { opacity: 1; visibility: visible; transition: opacity 0.45s ease; }
.menu-top { display: flex; justify-content: space-between; align-items: center; }
.menu-body { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px 64px; align-content: center; padding-block: 48px; max-width: 1200px; width: 100%; margin: 0 auto; }
.menu-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.menu-label { font-family: var(--hud); font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ash); margin-bottom: 10px; }
.menu-link { font-family: var(--display); font-size: clamp(34px, 5.4vw, 64px); letter-spacing: 0.12em; line-height: 1.15; text-decoration: none; color: var(--bone); transition: color 0.2s, letter-spacing 0.4s; }
.menu-link:hover { letter-spacing: 0.16em; }
.menu-link.ares:hover, .menu-link.ares[aria-current="page"] { color: var(--ember); }
.menu-link.iris:hover, .menu-link.iris[aria-current="page"] { color: var(--azure); }
.menu-link.demetra:hover, .menu-link.demetra[aria-current="page"] { color: var(--crema); }
.menu-link.plain:hover, .menu-link.plain[aria-current="page"] { color: var(--silver); }
.menu-link small { display: block; font-family: var(--voice); font-style: italic; font-size: 16px; letter-spacing: 0; color: var(--ash); margin: -2px 0 10px; }
.menu-foot { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-family: var(--hud); font-size: 12px; letter-spacing: 0.14em; color: var(--ash); max-width: 1200px; width: 100%; margin: 0 auto; }
body.menu-open { overflow: hidden; }

/* Inner pages */
.pg { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1200px; margin: 0 auto; }
.pg-hero { min-height: 88vh; display: flex; flex-direction: column; justify-content: flex-end; padding-block: 140px 72px; position: relative; overflow: hidden; }
.pg-hero .glow { position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); pointer-events: none; z-index: 0; }
.pg-hero > .wrap { position: relative; z-index: 1; width: 100%; }
.eyebrow { font-family: var(--hud); font-size: 11px; letter-spacing: 0.36em; text-transform: uppercase; color: var(--ash); margin: 0 0 22px; }
.pg-title { font-family: var(--display); font-weight: 400; font-size: clamp(64px, 14vw, 200px); letter-spacing: 0.12em; line-height: 0.9; margin: 0 -0.12em 28px 0; color: var(--accent); }
.pg-title.long { font-size: clamp(48px, 10vw, 150px); }
.lede { font-family: var(--voice); font-style: italic; font-weight: 300; font-size: clamp(24px, 3.2vw, 40px); line-height: 1.25; max-width: 24ch; margin: 0; text-wrap: balance; }
.lede-sub { font-size: 19px; color: var(--ash); max-width: 56ch; margin: 24px 0 0; }

.pg-section { padding-block: clamp(72px, 12vw, 140px); border-top: 1px solid var(--line); }
.pg-section h2 { font-family: var(--voice); font-style: italic; font-weight: 300; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.08; margin: 0 0 48px; max-width: 20ch; text-wrap: balance; }
.pg-section p { max-width: 62ch; }
.muted { color: var(--ash); }

.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 48px 40px; }
.feat { border-top: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); padding-top: 22px; min-width: 0; }
.feat h3 { font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: 0.08em; margin: 0 0 10px; }
.feat p { margin: 0; color: var(--ash); font-size: 17px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; min-width: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--hud); font-size: 12px; letter-spacing: 0.2em; color: var(--accent); margin-bottom: 14px; }
.steps h3 { font-family: var(--voice); font-weight: 400; font-size: 22px; margin: 0 0 8px; }
.steps p { margin: 0; color: var(--ash); font-size: 17px; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 56px; align-items: center; }

/* Places waiting for the owner's material */
.slot { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border: 1px dashed rgba(237,231,220,0.25); background: radial-gradient(60% 60% at 50% 40%, color-mix(in srgb, var(--accent) 10%, var(--deep)), var(--deep)); display: flex; align-items: flex-end; padding: 20px; }
.slot.tall { aspect-ratio: 4 / 5; }
.slot.square { aspect-ratio: 1 / 1; }
.shot { margin: 0; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: var(--deep); border: 1px solid rgba(237,231,220,0.08); }
.shot.tall { aspect-ratio: 4 / 5; }
.shot.square { aspect-ratio: 1 / 1; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot.screen { aspect-ratio: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,0.55); }
.shot.screen img { height: auto; }
.pg-section h2 + .shot-lede { margin: -24px 0 48px; }
.slot span { font-family: var(--hud); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ash); }

.cta { padding-block: clamp(80px, 12vw, 150px); border-top: 1px solid var(--line); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.cta h2 { font-family: var(--voice); font-style: italic; font-weight: 300; font-size: clamp(34px, 5vw, 68px); line-height: 1.08; margin: 0; max-width: 18ch; text-wrap: balance; }
.btn { font-family: var(--hud); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--night); background: var(--accent); border: 0; padding: 18px 28px; min-height: 52px; text-decoration: none; display: inline-flex; align-items: center; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--bone); border: 1px solid rgba(237,231,220,0.35); }

.next { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); border-top: 1px solid var(--line); }
.next a { padding: 40px 0; text-decoration: none; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--line); }
.next a b { font-family: var(--display); font-weight: 400; font-size: 32px; letter-spacing: 0.14em; }
.next a span { color: var(--ash); font-size: 16px; }
.next a.ares:hover b { color: var(--ember); } .next a.iris:hover b { color: var(--azure); } .next a.demetra:hover b { color: var(--crema); } .next a.studio:hover b { color: var(--silver); }

.site-foot { border-top: 1px solid var(--line); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); font-family: var(--hud); font-size: 12px; letter-spacing: 0.14em; color: var(--ash); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--bone); }

/* Forms */
.form { display: grid; gap: 20px; max-width: 640px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--hud); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ash); }
.field input, .field textarea, .field select { font: inherit; font-size: 18px; color: var(--bone); background: var(--deep); border: 1px solid rgba(237,231,220,0.2); padding: 14px 16px; border-radius: 0; }
.field textarea { min-height: 160px; resize: vertical; }
.form-note { font-size: 15px; color: var(--ash); margin: 0; }

/* Portfolio filter */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filters button { font-family: var(--hud); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ash); background: transparent; border: 1px solid var(--line); padding: 10px 16px; min-height: 44px; cursor: pointer; }
.filters button[aria-pressed="true"] { color: var(--night); background: var(--bone); border-color: var(--bone); }
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 40px 28px; }
.work { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.work h3 { font-family: var(--voice); font-weight: 400; font-size: 22px; margin: 0; }
.work p { margin: 0; color: var(--ash); font-size: 15px; font-family: var(--hud); letter-spacing: 0.1em; text-transform: uppercase; }
.work[hidden] { display: none; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px; }
.facts div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.facts b { font-family: var(--hud); font-weight: 400; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ash); }
.facts span { font-size: 20px; overflow-wrap: anywhere; }

.reveal { opacity: 1; transform: none; transition: opacity 0.9s ease, transform 0.9s ease; }
.js .reveal.waiting { opacity: 0.001; transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) { .js .reveal.waiting { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  .pg-hero { min-height: 72vh; padding-block: 120px 56px; }
}

/* Header links, shown on wide screens; the menu covers everything else. */
.head-nav { display: none; gap: 32px; }
.head-nav a { font-family: var(--hud); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ash); text-decoration: none; padding: 10px 0; }
.head-nav a:hover { color: var(--bone); }
@media (min-width: 960px) { .head-nav { display: flex; } }

.link-arrow { font-family: var(--hud); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bone); text-decoration: none; border-bottom: 1px solid rgba(237,231,220,0.35); padding-bottom: 6px; display: inline-block; }
.link-arrow:hover { border-bottom-color: var(--bone); }

/* Home: the hero is a stage held in place while the visitor scrolls through it. */
.home-hero { position: relative; height: 320vh; }
.home-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#home-stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.home-fallback { display: none; }
.no-gl .home-fallback { display: grid; place-items: center; position: absolute; inset: 0; font-family: var(--display); font-size: clamp(90px, 22vw, 300px); letter-spacing: 0.1em; color: var(--bone); }
.hero-cap { position: absolute; opacity: 0; will-change: opacity, transform; }
.hero-cap.center { left: 0; right: 0; bottom: 11vh; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; padding-inline: 20px; }
.hero-cap .eyebrow { margin: 0; }
.hero-line { margin: 0; font-family: var(--voice); font-style: italic; font-weight: 300; font-size: clamp(28px, 4vw, 52px); line-height: 1.1; }
.scroll-hint { margin: 6px 0 0; font-family: var(--hud); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ash); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-hint span { width: 1px; height: 40px; background: linear-gradient(var(--bone), transparent); animation: hint 2.4s ease-in-out infinite; }
@keyframes hint { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (prefers-reduced-motion: reduce) { .scroll-hint span { animation: none; } }
.hero-cap.side { bottom: 9vh; width: min(360px, 40vw); display: flex; flex-direction: column; gap: 12px; }
.hero-cap.side.left { left: max(var(--gutter), env(safe-area-inset-left, 0px)); }
.hero-cap.side.right { right: max(var(--gutter), env(safe-area-inset-right, 0px)); text-align: right; align-items: flex-end; }
.hero-cap.side h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(34px, 3.6vw, 52px); letter-spacing: 0.1em; }
.hero-cap.side p { margin: 0; color: var(--ash); font-size: 17px; }
.hero-cap.side .eyebrow { color: var(--ash); }
.trio-mini { font-family: var(--hud); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; }
.trio-mini a { text-decoration: none; color: var(--bone); }
.trio-mini a.ares { color: var(--ember); } .trio-mini a.iris { color: var(--azure); } .trio-mini a.demetra { color: var(--crema); }
@media (max-aspect-ratio: 9/10) {
  .hero-cap.side { width: auto; left: max(20px, env(safe-area-inset-left, 0px)); right: max(20px, env(safe-area-inset-right, 0px)); text-align: center; align-items: center; gap: 8px; }
  .hero-cap.side.left { top: 76px; bottom: auto; }
  .hero-cap.side.right { bottom: 5vh; text-align: center; align-items: center; }
  .hero-cap.side h2 { font-size: 30px; }
  .hero-cap.side p { font-size: 15px; }
  .hero-cap.side p:not(.eyebrow):not(.trio-mini) { display: none; }
}

.doors { padding-block: 40px 120px; }
.doors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.door { position: relative; display: flex; flex-direction: column; gap: 18px; padding: clamp(32px, 5vw, 56px); min-height: 520px; border: 1px solid var(--line); text-decoration: none; overflow: hidden; background: linear-gradient(160deg, #111215, #08090A); transition: border-color 0.4s; min-width: 0; }
.door::after { content: ""; position: absolute; inset: auto -20% -40% auto; width: 80%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; opacity: 0.5; transition: opacity 0.6s; }
.door-inno::after { background: radial-gradient(closest-side, rgba(232,87,61,0.22), rgba(90,174,240,0.12) 55%, transparent); }
.door-tech::after { background: radial-gradient(closest-side, rgba(201,206,214,0.18), transparent); }
.door:hover { border-color: rgba(237,231,220,0.3); }
.door:hover::after { opacity: 1; }
.door .eyebrow { margin: 0; }
.door-mark { width: 104px; height: 104px; margin-bottom: auto; }
.door { container-type: inline-size; }
.door-title { font-family: var(--display); font-size: min(76px, 12cqi); letter-spacing: 0.08em; line-height: 1; white-space: nowrap; }
.door-text { color: var(--ash); max-width: 40ch; font-size: 18px; }
.door-links { display: flex; flex-wrap: wrap; gap: 24px; }

.row-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }
.row-head h2 { margin: 0; }

/* YouTube videos wait as stills until played */
.yt.ready { background-size: cover; background-position: center; border-style: solid; border-color: var(--line); padding: 0; }
.yt-play { position: absolute; inset: 0; width: 100%; height: 100%; background: linear-gradient(transparent 50%, rgba(5,5,6,0.6)); border: 0; cursor: pointer; display: grid; place-items: center; }
.yt-play span { width: 74px; height: 74px; border-radius: 50%; border: 1px solid rgba(237,231,220,0.7); background: rgba(5,5,6,0.45); position: relative; transition: transform 0.3s; }
.yt-play span::after { content: ""; position: absolute; left: 29px; top: 23px; border-left: 20px solid var(--bone); border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.yt-play:hover span { transform: scale(1.08); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Logo */
.wordmark img { display: block; height: 42px; width: auto; }
.hud.tl a img { display: block; height: 34px; width: auto; }
.foot-logo { display: block; height: 40px; width: auto; opacity: 0.85; }
.menu-foot .foot-logo { height: 34px; }
.no-gl .home-fallback img { width: clamp(160px, 26vw, 300px); height: auto; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.yt-out { position: absolute; right: 14px; top: 14px; z-index: 2; font-family: var(--hud); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone); text-decoration: none; background: rgba(5,5,6,0.6); border: 1px solid rgba(237,231,220,0.3); padding: 8px 10px; }
.yt.blocked { background: radial-gradient(60% 60% at 50% 40%, #26282d, var(--deep)); }
.yt.blocked .yt-out { inset: auto 50% 18px auto; right: auto; left: 50%; top: auto; bottom: 18px; transform: translateX(-50%); }
.sb-logo { width: min(320px, 70%); height: auto; margin-bottom: 28px; }
