/* Nautical luxury: navy, ivory, brass. */
:root {
  --bg: #f6f1e7;
  --surface: #fffdf8;
  --surface-2: #efe7d7;
  --ink: #0e1c2c;
  --ink-2: #4e5a67;
  --line: #ddd1ba;
  --accent: #8e6b2f;          /* brass, darkened for contrast on ivory */
  --accent-ink: #fffdf8;
  --navy: #0a1828;
  --navy-2: #10243a;
  --brass: #c9a464;
  --cream: #f3ecdc;
  --radius: 4px;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07111c;
    --surface: #0d1a2a;
    --surface-2: #132438;
    --ink: #f1eadb;
    --ink-2: #9cadbf;
    --line: #1e3047;
    --accent: #d4b072;
    --accent-ink: #0a1828;
  }
}
:root[data-theme="dark"] {
  --bg: #07111c; --surface: #0d1a2a; --surface-2: #132438; --ink: #f1eadb;
  --ink-2: #9cadbf; --line: #1e3047; --accent: #d4b072; --accent-ink: #0a1828;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img, video { max-width: 100%; display: block; }
.mono { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px clamp(16px, 4vw, 48px); background: color-mix(in srgb, var(--navy) 92%, transparent); backdrop-filter: blur(12px); color: var(--cream); border-bottom: 1px solid rgba(201, 164, 100, 0.25); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; letter-spacing: 0.02em; }
.brand svg { width: 28px; height: 28px; color: var(--brass); flex: none; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { text-decoration: none; padding: 6px 10px; font-size: 0.82rem; letter-spacing: 0.04em; color: rgba(243, 236, 220, 0.72); white-space: nowrap; }
.nav a:hover { color: var(--brass); }
.nav .nav-cta { border: 1px solid var(--brass); color: var(--brass); border-radius: 999px; padding: 5px 14px; }
.nav .nav-cta:hover { background: var(--brass); color: var(--navy); }

/* Hero (always navy) */
.hero { position: relative; background: radial-gradient(120% 90% at 85% 10%, #173250 0%, var(--navy) 55%, #050d17 100%); color: var(--cream); overflow: hidden; }
.hero-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: clamp(56px, 9vw, 110px) clamp(16px, 4vw, 48px) 120px; display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.eyebrow { color: var(--brass); margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.eyebrow span + span::before { content: "✦"; margin-right: 14px; opacity: 0.6; }
.hero h1 { font-size: clamp(3rem, 7.5vw, 6rem); line-height: 0.95; margin: 0 0 26px; font-weight: 500; }
.hero h1 span { display: block; }
.hero h1 .accent { font-style: italic; color: var(--brass); }
.lede { font-size: clamp(1.02rem, 1.6vw, 1.18rem); max-width: 620px; color: rgba(243, 236, 220, 0.82); margin: 0 0 18px; }
.subtext { color: rgba(201, 164, 100, 0.85); margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font: 600 0.88rem var(--sans); letter-spacing: 0.03em; text-decoration: none; border: 1px solid var(--brass); }
.btn.solid { background: var(--brass); color: var(--navy); }
.btn.solid:hover { background: var(--cream); border-color: var(--cream); }
.btn.ghost { color: var(--cream); }
.btn.ghost:hover { color: var(--brass); }

.porthole { position: relative; width: min(100%, 400px); aspect-ratio: 1; justify-self: center; }
.porthole .compass { position: absolute; inset: -14%; width: 128%; height: 128%; color: var(--brass); opacity: 0.35; animation: spin 140s linear infinite; }
.porthole .ring { position: absolute; inset: 0; border-radius: 50%; padding: 12px; background: conic-gradient(from 30deg, #8a6a33, #e6cc93, #9b7a3f, #f0dcae, #8a6a33); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 2px rgba(0, 0, 0, 0.25); }
.porthole img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; filter: saturate(0.85) contrast(1.05); box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5); }
.porthole .rivet { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f6e6bd, #8a6a33); }
.porthole .tag { position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%); background: var(--navy); border: 1px solid var(--brass); color: var(--brass); padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
@keyframes spin { to { transform: rotate(360deg); } }

.waves { position: absolute; left: 0; right: 0; bottom: 0; height: 110px; pointer-events: none; }
.waves svg { position: absolute; bottom: 0; width: 200%; height: 100%; }
.waves .w1 { animation: drift 26s linear infinite; opacity: 0.35; }
.waves .w2 { animation: drift 38s linear infinite reverse; opacity: 0.2; bottom: 14px; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.stats { position: relative; z-index: 1; list-style: none; margin: -70px auto 0; padding: 0 clamp(16px, 4vw, 48px); max-width: 1200px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; }
.stats li { background: var(--surface); padding: 22px 22px 18px; border-top: 2px solid var(--brass); box-shadow: 0 10px 30px rgba(10, 24, 40, 0.08); }
.stats strong { display: block; font-family: var(--serif); font-size: 2.8rem; font-weight: 500; line-height: 1; color: var(--accent); margin-bottom: 6px; }
.stats span { color: var(--ink-2); font-size: 0.86rem; }

/* Scrolling bands */
.band { overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); padding: 14px 0; margin-top: 72px; }
.band.navy { background: var(--navy); color: var(--cream); border-color: transparent; }
.band-track { display: flex; width: max-content; animation: drift 60s linear infinite; }
.band.reverse .band-track { animation-direction: reverse; }
.band:hover .band-track { animation-play-state: paused; }
.band-track span { font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.7rem); font-style: italic; white-space: nowrap; padding: 0 22px; }
.band-track span::after { content: "✦"; font-style: normal; font-size: 0.7em; color: var(--brass); margin-left: 44px; vertical-align: middle; }

/* Sections */
.section { max-width: 1200px; margin: 0 auto; padding: 72px clamp(16px, 4vw, 48px) 0; }
.section-head { margin-bottom: 34px; max-width: 760px; }
.kicker { color: var(--accent); margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.02; margin: 0 0 12px; }
.sub { color: var(--ink-2); margin: 0; }
.small { font-size: 0.88rem; }
.subhead { color: var(--ink-2); margin: 40px 0 14px; }

/* Experience: ship's log */
.experience { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.experience li { display: grid; grid-template-columns: 200px 1fr; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.exp-when { color: var(--accent); padding-top: 8px; }
.experience h3 { margin: 0; font-size: 2rem; line-height: 1.1; }
.exp-org { margin: 2px 0 10px; font-weight: 600; letter-spacing: 0.02em; }
.exp-desc { margin: 0; color: var(--ink-2); max-width: 760px; }

/* Stack */
.stack { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stack-group { background: var(--surface); padding: 20px; }
.stack-group h4 { margin: 0 0 12px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; font-weight: 500; }
.stack-group ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.stack-group li { font-size: 0.85rem; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; }

/* Certifications */
.certs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.certs li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.certs li::after { content: "✦"; position: absolute; top: 14px; right: 16px; color: var(--brass); }
.cert-issuer, .cert-date { color: var(--ink-2); }
.certs strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.2; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 4px 4px 20px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 220px); gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; }
.timeline li { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; min-height: 210px; }
.timeline li.has-milestone { border-color: var(--accent); background: linear-gradient(var(--surface), var(--surface-2)); }
.tl-badge { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tl-ver { font-family: var(--mono); font-size: 0.74rem; background: #001e36; color: #31a8ff; padding: 3px 8px; border-radius: 3px; }
.tl-year { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; }
.tl-note { color: var(--ink-2); font-size: 0.9rem; margin: 0; }
.tl-mile { margin-top: auto; font-size: 0.92rem; font-weight: 600; border-top: 1px dashed var(--line); padding-top: 10px; }

/* Game */
.game { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px; align-items: start; }
.game-copy h3 { font-size: 2.4rem; margin: 0 0 6px; }
.game-copy p { color: var(--ink-2); }
.game-shots { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 120px; gap: 10px; }
.game-shots figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: #0b140d; }
.game-shots img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.game-shots figure:hover img { transform: scale(1.04); }
.game-shots .wide { grid-column: span 4; grid-row: span 3; }
.game-shots .tall { grid-column: span 1; grid-row: span 2; }
.game-shots .square { grid-column: span 1; grid-row: span 2; }

/* Design gallery */
.gallery { columns: 3 280px; column-gap: 14px; }
.gallery figure { break-inside: avoid; margin: 0 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery figure.dark img { background: #000; padding: 30px; }
.gallery figcaption { padding: 12px 14px 14px; }
.gallery figcaption strong { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.gallery figcaption span { color: var(--ink-2); font-size: 0.84rem; }

/* Videos */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; align-items: start; }
.vid { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.vid.wide { grid-column: span 2; }
.vid video { width: 100%; background: #000; border-radius: var(--radius); object-fit: cover; }
.vid.vertical video { aspect-ratio: 9/16; }
.vid.wide video { aspect-ratio: 16/9; }
.vid figcaption { display: flex; flex-direction: column; gap: 2px; }
.vid figcaption span { color: var(--ink-2); font-size: 0.66rem; }
.vid figcaption strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; line-height: 1.2; }

/* Film */
.film { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.film video { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: var(--radius); object-fit: cover; }
.film-meta p { margin-top: 0; }
.film-meta dl { display: grid; grid-template-columns: 64px 1fr; gap: 6px 12px; margin: 20px 0; }
.film-meta dt { color: var(--ink-2); padding-top: 3px; }
.film-meta dd { margin: 0; }
.next-card { border: 1px solid var(--line); border-left: 2px solid var(--brass); padding: 14px 16px; background: var(--surface); }
.next-card strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.next-card p { margin: 4px 0 0; color: var(--ink-2); font-size: 0.92rem; }
/* Concept work */
.concept-collab { color: var(--accent); margin-bottom: 14px; }
.concept-audio { display: grid; gap: 10px; }
.storyboard { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px 16px; }
.sb-panel { display: flex; flex-direction: column; gap: 6px; }
.sb-media { position: relative; margin-bottom: 6px; }
.sb-media img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); background: #000; }
.sb-media .sb-key { position: absolute; right: 8px; bottom: 8px; width: 34%; border: 2px solid var(--brass); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45); }
.sb-meta { color: var(--ink-2); }
.sb-panel strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.2; }
.sb-vo, .sb-note { margin: 0; font-size: 0.92rem; color: var(--ink-2); }
.sb-vo { font-style: italic; }
.platforms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.platforms li { background: var(--surface); border: 1px solid var(--line); border-left: 2px solid var(--brass); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.platforms span { color: var(--ink-2); font-size: 0.88rem; }
.pill { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.04em; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); display: inline-block; margin: 0 4px 4px 0; }

/* Music */
.tracks { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.track { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; grid-template-columns: 48px 1fr; gap: 6px 14px; align-items: center; }
.track.video { grid-column: 1 / -1; grid-template-columns: auto 1fr; gap: 24px; background: var(--navy); color: var(--cream); border: 0; }
.track.video video { width: auto; height: min(520px, 70vh); max-width: 100%; background: #000; border-radius: var(--radius); }
.track.video .track-title { font-family: var(--serif); font-size: 2rem; font-weight: 500; }
.track.video .track-note { color: var(--brass); }
.play { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--brass); background: transparent; color: var(--accent); cursor: pointer; display: grid; place-items: center; grid-row: span 2; }
.play:hover { background: var(--brass); color: var(--navy); }
.play svg { width: 16px; height: 16px; }
.track-title { font-weight: 600; line-height: 1.25; }
.track-note { color: var(--ink-2); font-size: 0.82rem; }
.track-bar { grid-column: 2; height: 3px; background: var(--surface-2); overflow: hidden; cursor: pointer; }
.track-bar i { display: block; height: 100%; width: 0; background: var(--brass); }

/* Apps: bento + ticker + collapsible catalog */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(120px, auto); gap: 12px; margin-bottom: 24px; }
.tile { border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); }
.tile.hero-tile { grid-column: span 2; grid-row: span 2; background: var(--navy); color: var(--cream); border: 0; justify-content: flex-end; position: relative; overflow: hidden; }
.tile.hero-tile::before { content: ""; position: absolute; inset: auto -20% -40% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(201, 164, 100, 0.35); box-shadow: 0 0 0 30px rgba(201, 164, 100, 0.06), 0 0 0 60px rgba(201, 164, 100, 0.04); }
.tile.hero-tile strong { font-family: var(--serif); font-size: 2.6rem; font-weight: 500; line-height: 1; }
.tile.hero-tile p { color: rgba(243, 236, 220, 0.75); }
.tile.span2 { grid-column: span 2; }
.tile.span3 { grid-column: span 3; }
.tile strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.tile p { margin: 0; color: var(--ink-2); font-size: 0.9rem; }
.tile .badge { align-self: flex-start; background: var(--brass); color: var(--navy); border-radius: 999px; padding: 3px 10px; font: 600 0.7rem var(--sans); margin-top: 8px; }
.tile.stat { background: var(--surface-2); justify-content: center; }
.tile.stat big { font-family: var(--serif); font-size: 3.2rem; line-height: 1; color: var(--accent); }
.split { display: flex; height: 10px; border-radius: 999px; overflow: hidden; margin-top: 10px; }
.split i:nth-child(1) { background: var(--navy); }
.split i:nth-child(2) { background: var(--brass); }
.split i:nth-child(3) { background: #5f8fb4; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.78rem; color: var(--ink-2); margin-top: 8px; }
.legend b { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.ticker { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker + .ticker { margin-top: 8px; }
.ticker .band-track { animation-duration: 120s; gap: 8px; }
.ticker.reverse .band-track { animation-direction: reverse; }
.ticker:hover .band-track { animation-play-state: paused; }
.ticker span { white-space: nowrap; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-size: 0.85rem; }
.ticker span em { font-style: normal; color: var(--ink-2); font-size: 0.75rem; margin-left: 6px; }
.catalog { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.catalog summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.catalog summary::-webkit-details-marker { display: none; }
.catalog summary::after { content: "+"; font-family: var(--serif); font-size: 1.6rem; color: var(--accent); line-height: 1; }
.catalog[open] summary::after { content: "–"; }
.catalog-body { padding: 0 20px 20px; }
.app-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.app-tools input { flex: 1 1 240px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font: inherit; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: transparent; color: var(--ink-2); border-radius: 999px; padding: 6px 12px; font: 500 0.8rem var(--sans); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.app-list { list-style: none; padding: 0; margin: 0; columns: 2 320px; column-gap: 28px; }
.app-list li { break-inside: avoid; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.app-list b { font-weight: 600; }
.app-list .meta { font-family: var(--mono); font-size: 0.64rem; color: var(--ink-2); align-self: center; }
.app-list p { grid-column: 1 / -1; margin: 0; color: var(--ink-2); font-size: 0.82rem; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.more { display: block; margin: 16px auto 0; padding: 9px 20px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 500 0.88rem var(--sans); cursor: pointer; }
.more[hidden] { display: none; }
.empty { color: var(--ink-2); padding: 12px 0; }

/* Cards (web) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.card h4 { margin: 0; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.card .tag { color: var(--accent); font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; }
.card p { margin: 0; color: var(--ink-2); font-size: 0.92rem; }
.card .stack-pills { margin-top: auto; padding-top: 6px; }
.card a.visit { font-size: 0.88rem; color: var(--accent); margin-top: auto; }

/* Book */
.book { display: grid; grid-template-columns: 260px 1fr; gap: 44px; align-items: center; background: var(--navy); color: var(--cream); padding: clamp(24px, 4vw, 48px); border-radius: var(--radius); }
.book-cover { width: 100%; height: auto; aspect-ratio: 405/500; object-fit: cover; box-shadow: 14px 16px 0 rgba(201, 164, 100, 0.25), 0 20px 40px rgba(0, 0, 0, 0.4); }
.book h2 { color: var(--cream); }
.book .kicker { color: var(--brass); }
.book .sub { color: rgba(243, 236, 220, 0.7); }
.book-blurb { margin: 16px 0 8px; max-width: 620px; color: rgba(243, 236, 220, 0.85); }
.book-isbn { color: rgba(243, 236, 220, 0.55); margin: 0 0 18px; }

/* Clients */
.clients { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px 34px; }
.clients li { font-family: var(--serif); font-size: clamp(1.5rem, 3.2vw, 2.3rem); font-weight: 500; }
.clients li:nth-child(even) { font-style: italic; color: var(--accent); }

/* Contact */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.84rem; font-weight: 600; letter-spacing: 0.02em; }
.form label:nth-of-type(4) { grid-column: 1 / -1; }
.form .opt { color: var(--ink-2); font-weight: 400; }
.form input, .form textarea { padding: 11px 13px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; }
.form button { grid-column: 1 / -1; justify-self: start; padding: 12px 26px; border-radius: 999px; border: 1px solid var(--navy); background: var(--navy); color: var(--cream); font: 600 0.9rem var(--sans); letter-spacing: 0.03em; cursor: pointer; }
.form button:hover { background: var(--brass); border-color: var(--brass); color: var(--navy); }
.form button:disabled { opacity: 0.5; cursor: wait; }
.form-status { grid-column: 1 / -1; margin: 0; min-height: 1.4em; font-size: 0.92rem; }
.hp { position: absolute; left: -9999px; }

.footer { margin-top: 90px; background: var(--navy); color: rgba(243, 236, 220, 0.7); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 36px clamp(16px, 4vw, 48px) 44px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.footer .signoff { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--cream); margin: 0; }
.footer a { color: var(--brass); margin-left: 16px; text-decoration: none; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .porthole { width: min(72%, 300px); order: -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .game, .film, .book, .contact-wrap { grid-template-columns: 1fr; }
  .book-cover { max-width: 220px; }
  .experience li { grid-template-columns: 1fr; gap: 6px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile.span3 { grid-column: span 2; }
  .track.video { grid-template-columns: 1fr; }
  .track.video video { height: auto; max-height: 70vh; margin: 0 auto; }
}
@media (max-width: 560px) {
  .brand span { display: none; }
  .form { grid-template-columns: 1fr; }
  .videos { grid-template-columns: 1fr 1fr; }
  .vid.wide { grid-column: 1 / -1; }
  .game-shots { grid-template-columns: repeat(2, 1fr); }
  .game-shots .wide { grid-column: span 2; }
  .bento { grid-template-columns: 1fr; }
  .bento .tile { grid-column: auto; grid-row: auto; }
  .tile.hero-tile { min-height: 260px; }
}

#sailing-gallery img { width: 100%; max-height: 440px; object-fit: cover; object-position: center 30%; }

.education { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.education li { background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--brass); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.education strong { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; line-height: 1.2; }
.education .mono { color: var(--accent); }
.education p { margin: 4px 0 0; color: var(--ink-2); font-size: 0.92rem; }

/* The crew */
.crew { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; background: var(--navy); color: var(--cream); padding: clamp(28px, 5vw, 56px); border-radius: var(--radius); position: relative; overflow: hidden; }
.crew::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; border: 1px solid rgba(201, 164, 100, 0.25); box-shadow: 0 0 0 40px rgba(201, 164, 100, 0.05), 0 0 0 80px rgba(201, 164, 100, 0.03); pointer-events: none; }
.crew-count { width: 220px; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--brass); display: grid; place-content: center; text-align: center; justify-self: center; box-shadow: inset 0 0 0 10px rgba(201, 164, 100, 0.12); }
.crew-count span { display: block; font-family: var(--serif); font-size: 6.4rem; line-height: 1; color: var(--brass); margin-top: -8px; }
.crew-count small { display: block; margin-top: 6px; color: rgba(243, 236, 220, 0.75); }
.crew h2 { color: var(--cream); }
.crew .kicker { color: var(--brass); }
.crew-intro { color: rgba(243, 236, 220, 0.85); font-size: 1.08rem; max-width: 640px; }
.crew-groups { list-style: none; padding: 0; margin: 22px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; position: relative; z-index: 1; }
.crew-groups li { border: 1px solid rgba(201, 164, 100, 0.35); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.crew-groups strong { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--brass); font-weight: 500; }
.crew-groups span { color: rgba(243, 236, 220, 0.85); font-size: 0.92rem; }
.crew-outro { font-family: var(--serif); font-style: italic; font-size: 1.35rem; margin: 0; color: var(--cream); }
@media (max-width: 900px) { .crew { grid-template-columns: 1fr; } .crew-count { width: 170px; } .crew-count span { font-size: 5rem; } .crew-groups { grid-template-columns: 1fr; } }
.crew-loves-label { color: var(--brass); margin: 0 0 10px; }
.crew-loves { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.crew-loves li { font-family: var(--serif); font-size: 1.25rem; font-style: italic; padding: 6px 16px; border-radius: 999px; background: rgba(201, 164, 100, 0.14); border: 1px solid rgba(201, 164, 100, 0.45); color: var(--cream); }

/* Appmosphere */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 18px; }
.pillar { background: var(--surface); padding: 22px; }
.pillar .mono { color: var(--accent); }
.pillar h3 { font-size: 1.6rem; margin: 6px 0 8px; line-height: 1.1; }
.pillar p { margin: 0; color: var(--ink-2); font-size: 0.94rem; }
.cases { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.case { grid-column: span 2; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.case.has-img { grid-column: span 4; grid-row: span 2; display: grid; grid-template-rows: auto 1fr; padding: 0; overflow: hidden; }
.case.has-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.case.has-img > div { padding: 0 20px 20px; }
.case .mono { color: var(--accent); }
.case h3 { font-size: 1.45rem; margin: 4px 0 6px; line-height: 1.15; }
.case p { margin: 0; color: var(--ink-2); font-size: 0.92rem; }
.ap-result { font-family: var(--serif); font-style: italic; font-size: 1.5rem; margin: 22px 0 0; color: var(--accent); }

/* Services */
#services .section-head { max-width: 640px; }
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.service { background: var(--navy); color: var(--cream); border-radius: var(--radius); padding: 24px 20px; display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--brass); }
.service h3 { font-size: 1.6rem; margin: 0; line-height: 1.1; color: var(--cream); }
.service p { margin: 0; color: rgba(243, 236, 220, 0.8); font-size: 0.92rem; flex: 1; }
.service .pill { border-color: rgba(201, 164, 100, 0.4); color: var(--brass); }
.services-cta { margin-top: 20px; }
.btn.dark { border-color: var(--navy); }
.btn.solid.dark { background: var(--navy); color: var(--cream); }
.btn.solid.dark:hover { background: var(--brass); border-color: var(--brass); color: var(--navy); }
.btn.ghost.dark { color: var(--ink); }
.btn.ghost.dark:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr 1fr; }
  .case, .case.has-img { grid-column: span 2; grid-row: auto; }
  .services { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .cases, .services { grid-template-columns: 1fr; } .case, .case.has-img { grid-column: auto; } }
@media (min-width: 901px) { .case:last-child { grid-column: span 4; } }

/* AutoCraft Studios */
.ac-hero { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; background: var(--navy); color: var(--cream); padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); margin-bottom: 14px; }
.ac-logo { width: 100%; height: auto; border-radius: 50%; background: #000; padding: 18px; box-shadow: 0 0 0 2px var(--brass), 0 0 0 10px rgba(201, 164, 100, 0.12); }
.ac-hero h2 { color: var(--cream); }
.ac-hero .kicker { color: var(--brass); }
.ac-intro { color: rgba(243, 236, 220, 0.85); font-size: 1.06rem; margin: 0; max-width: 720px; }
.ac-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ac-project { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.ac-project.feature { grid-column: span 2; grid-row: span 2; background: var(--surface-2); border-color: var(--accent); }
.ac-project.feature h3 { font-size: 2.2rem; }
.ac-project .mono { color: var(--accent); }
.ac-project h3 { font-size: 1.45rem; margin: 0; line-height: 1.15; }
.ac-project p { margin: 0; color: var(--ink-2); font-size: 0.92rem; flex: 1; }
.ac-project .metric { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--accent); border-top: 1px solid var(--line); padding-top: 8px; margin-top: 6px; }
.ac-project.feature .metric { font-size: 2rem; }

/* Earlier: Appmosphere (condensed) */
.earlier { max-width: 900px; }
.earlier h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
.earlier-list { margin: 14px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 0.94rem; }
.earlier-list li { margin-bottom: 6px; }
.earlier-list b { color: var(--ink); }
@media (max-width: 900px) { .ac-hero { grid-template-columns: 1fr; } .ac-logo { max-width: 160px; } .ac-projects { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ac-projects { grid-template-columns: 1fr; } .ac-project.feature { grid-column: auto; grid-row: auto; } }

/* Logo wall */
.logo-wall { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.logo-wall li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 4/3; display: grid; grid-template-rows: 1fr auto; padding: 18px 18px 12px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.logo-wall li:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(10, 24, 40, 0.12); }
.logo-wall li.dark { background: #050b14; border-color: #050b14; }
.logo-wall img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.logo-wall span { color: #6b7380; text-align: center; font-size: 0.62rem; padding-top: 8px; }
.logo-wall li.dark span { color: rgba(243, 236, 220, 0.6); }
@media (max-width: 900px) { .logo-wall { grid-template-columns: repeat(2, 1fr); } }

/* SMS consent: fine print, visible next to each checkbox (required for A2P) */
.consent { grid-column: 1 / -1; border: 0; padding: 0; margin: -2px 0 0; display: flex; flex-direction: column; gap: 4px; }
.consent legend { color: var(--ink-2); font-size: 0.6rem; padding: 0; margin-bottom: 4px; letter-spacing: 0.08em; }
.form .check { flex-direction: row; align-items: flex-start; gap: 7px; font-weight: 400; font-size: 0.68rem; line-height: 1.35; color: var(--ink-2); }
.form .check input { margin-top: 1px; flex: none; width: 13px; height: 13px; accent-color: var(--navy); padding: 0; }
.consent-note { margin: 2px 0 0 20px; font-size: 0.66rem; line-height: 1.35; color: var(--ink-2); }
.consent-note a { color: var(--ink-2); text-decoration: underline; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 56px clamp(16px, 4vw, 48px) 40px; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin: 0 0 6px; }
.legal h2 { font-size: 1.7rem; margin: 34px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent); }
.legal .updated { color: var(--accent); }
.legal .callout { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--brass); padding: 14px 18px; border-radius: var(--radius); }
