:root {
  color-scheme: dark;
  --navy: #071521;
  --navy-light: #102333;
  --gold: #f5c756;
  --pale-gold: #e9c98e;
  --blue: #55c3ff;
  --white: #f6f7f8;
  --muted: #bac7cf;
  --line: #dbad5b45;
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--navy); color: var(--white); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; }
img, svg { display: block; }
img { max-width: 100%; }
button, a { touch-action: manipulation; }
::selection { color: var(--navy); background: var(--pale-gold); }
h1, h2, p { margin-top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.icon { width: 32px; height: 32px; flex: 0 0 auto; }
.skip-link { position: fixed; left: 20px; top: 12px; z-index: 50; padding: 14px 20px; background: var(--gold); color: var(--navy); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

/* The desktop composition follows the approved 16:9 artwork. All UI is HTML. */
.site-header { position: absolute; z-index: 10; top: clamp(12px, 2.2vh, 20px); left: 6.7%; right: 4.8%; display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 65px; }
.brand { display: inline-flex; align-items: center; gap: clamp(12px, 1.3vw, 25px); flex-shrink: 0; }
.brand .monogram { width: clamp(55px, 4.3vw, 84px); height: auto; filter: drop-shadow(0 2px 8px #07152155); }
.brand .monogram { border-radius: 20%; }
.brand > span { font-size: clamp(15px, 1.32vw, 25px); letter-spacing: .08em; font-weight: 500; text-shadow: 0 1px 7px #071521c0; }
.brand-gold { color: var(--gold); }
.brand .profile-coin { width: 52px; height: 52px; flex-basis: 52px; }
.brand .burf-header-balance { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: inherit; font-weight: 500; letter-spacing: normal; text-transform: none; }
.burf-header-label { display: flex; align-items: center; flex-wrap: nowrap; gap: 7px; font-size: clamp(12px, .95vw, 16px); font-weight: 600; letter-spacing: .035em; line-height: 1.2; }
.burf-header-preview { padding: 2px 6px; border: 1px solid #f5c75688; border-radius: 999px; color: #ffe29a; font-size: 9px; font-weight: 700; letter-spacing: .1em; line-height: 1.25; text-transform: uppercase; }
.burf-header-count { color: #fff4d0; font-size: clamp(18px, 1.5vw, 25px); font-variant-numeric: tabular-nums; font-weight: 700; line-height: 1; text-shadow: 0 1px 8px #071521c0; }
.burf-header-status { color: #d4dee4; font-size: 9px; font-weight: 500; letter-spacing: .025em; line-height: 1.2; text-shadow: 0 1px 6px #071521cc; }
.brand-hidden { justify-content: flex-end; }
.site-header nav { position: absolute; top: 50%; right: 0; display: flex; align-items: center; gap: clamp(22px, 2.6vw, 50px); transform: translateY(-50%); }
.nav-link { position: relative; display: inline-flex; align-items: center; min-height: 48px; font-size: clamp(15px, 1.1vw, 21px); text-shadow: 0 1px 7px #07152160; transition: color 180ms ease; }
.nav-link::after { position: absolute; content: ''; height: 1px; background: var(--gold); bottom: 0; left: 0; right: 0; transform: scaleX(0); transform-origin: left; transition: transform 180ms ease; }
.nav-link.is-active { color: #ffdf44; }
.nav-link.is-active::after, .nav-link:hover::after { transform: scaleX(1); }
.nav-link:hover { color: #ffdf65; }
.sign-in { border: 1px solid #e6c477b0; border-radius: 40px; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 10px clamp(18px, 1.55vw, 30px); font-size: clamp(15px, 1.1vw, 21px); background: #1672b720; transition: background 180ms ease, border-color 180ms ease; }
.sign-in .icon { color: var(--gold); width: 24px; height: 24px; }
.sign-in:hover { background: #07152160; border-color: var(--gold); }
.menu-toggle { display: none; }

/* Shared blueprint trace for navigation after the landing-page curtain. */
.circuit-transition { position: fixed; z-index: 100; inset: 0; overflow: hidden; visibility: hidden; opacity: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, #07152112, #07152138); }
.circuit-transition svg { width: 100%; height: 100%; overflow: visible; fill: none; }
.transition-traces { stroke: #43caff; stroke-width: 1.35; opacity: .92; filter: drop-shadow(0 0 5px #00aaff); }
.transition-traces path { stroke-dasharray: 1800; stroke-dashoffset: 1800; }
.transition-traces .trace-gold { stroke: #f5c756; filter: drop-shadow(0 0 6px #f5c756); }
.transition-traces .trace-delay { animation-delay: 70ms !important; }
.transition-nodes { fill: #baf5ff; stroke: #28baff; stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 0 7px #3ccfff); }
.transition-nodes .node-gold { fill: #fff0b0; stroke: #f5c756; }
.is-entering .circuit-transition { visibility: visible; animation: circuit-overlay-enter 680ms ease-out both; }
.is-entering .transition-traces path { animation: circuit-trace-draw 520ms cubic-bezier(.2,.72,.24,1) both; }
.is-entering .transition-nodes { animation: circuit-nodes-flash 500ms 180ms ease-out both; }
.is-entering #main { animation: circuit-content-in 620ms 60ms ease-out both; }
.is-entering .site-header { animation: circuit-header-in 500ms 90ms ease-out both; }
.is-leaving .circuit-transition { visibility: visible; animation: circuit-overlay-leave 390ms ease-in both; }
.is-leaving .transition-traces path { animation: circuit-trace-draw 310ms cubic-bezier(.2,.72,.24,1) both; }
.is-leaving .transition-nodes { animation: circuit-nodes-flash 280ms 90ms ease-out both; }
.is-leaving #main { animation: circuit-content-out 310ms ease-in both; }
.is-leaving .site-header { animation: circuit-header-out 280ms ease-in both; }
@keyframes circuit-trace-draw { to { stroke-dashoffset: 0; } }
@keyframes circuit-nodes-flash { 0% { opacity: 0; transform: scale(.45); } 65% { opacity: 1; transform: scale(1.25); } 100% { opacity: .8; transform: scale(1); } }
@keyframes circuit-overlay-enter { 0% { opacity: 1; } 65% { opacity: .9; } 100% { opacity: 0; visibility: hidden; } }
@keyframes circuit-overlay-leave { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes circuit-content-in { from { opacity: .45; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes circuit-content-out { to { opacity: 0; transform: translateY(-5px); } }
@keyframes circuit-header-in { from { opacity: .45; } to { opacity: 1; } }
@keyframes circuit-header-out { to { opacity: 0; } }

.hero { position: relative; isolation: isolate; min-height: 660px; height: 100svh; overflow: hidden; background: #283f58; }
.hero-picture { position: absolute; inset: 0; z-index: -3; }
.hero-scene { width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; }
.hero-copy { position: absolute; top: clamp(88px, 11vh, 132px); left: 50.5%; right: 8%; text-align: center; color: #020e24; }
.homepage-coin { display: flex; width: 70px; height: 70px; margin: 0 auto 8px; perspective: 700px; }
.homepage-coin .profile-coin { width: 68px; height: 68px; flex-basis: 68px; }
.hero-eyebrow { font-size: clamp(11px, .86vw, 17px); font-weight: 500; line-height: 1.5; letter-spacing: .31em; margin: 0 0 .65vw; white-space: nowrap; }
.hero h1 { font-family: Arial, Helvetica, sans-serif; font-size: clamp(44px, 4.5vw, 88px); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; margin: 0 0 .45vw; white-space: nowrap; }
.hero-tagline { display: flex; align-items: center; justify-content: center; gap: 1.1vw; font-size: clamp(15px, 1.3vw, 25px); line-height: 1.5; white-space: nowrap; margin: 0; }
.hero-tagline span { font-size: .85em; }
.hero-tagline { display: block; font-size: clamp(14px, 1.16vw, 23px); letter-spacing: .105em; white-space: normal; text-wrap: balance; }
.hero-eyebrow { letter-spacing: .4em; }
.headline-circuit { position: absolute; z-index: -1; inset: -6% -3% -15%; width: 106%; height: 121%; overflow: visible; fill: none; stroke: #28baff; stroke-width: 1; opacity: .9; }
.headline-circuit circle { fill: #b9efff; stroke-width: 1.5; }
.world-circuits { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; fill: none; }
.city-lights { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.city-light { fill: #ffd88e; opacity: .22; filter: drop-shadow(0 0 2px #ffd88e90); animation: city-twinkle 4.2s ease-in-out infinite both; transform-box: fill-box; transform-origin: center; }
.city-light.is-lit { animation: city-spark .72s ease-out 1 both; }
.city-light:nth-child(3n) { animation-duration: 5.1s; animation-delay: -2.7s; }
.city-light:nth-child(3n + 1) { animation-duration: 6.3s; animation-delay: -4.2s; fill: #94ddff; filter: drop-shadow(0 0 2px #67cfff90); }
.city-light:nth-child(4n + 2) { animation-duration: 3.7s; animation-delay: -1.4s; }
@keyframes city-twinkle { 0%, 100% { opacity: .17; } 43% { opacity: .28; } 57% { opacity: .82; } 66% { opacity: .48; } }
@keyframes city-spark { 0% { opacity: .22; transform: scale(1); } 28% { opacity: 1; transform: scale(2.2); } 100% { opacity: .24; transform: scale(1); } }
.circuit-traces { stroke: #2bb9ff; stroke-width: 1; opacity: .48; }
.circuit-pulses { stroke: #b0f7ff; stroke-width: 2.6; filter: drop-shadow(0 0 4px #00a8ff); }
.pulse { stroke-dasharray: 13 1500; animation: current-flow 15s linear infinite; }
.pulse-1 { animation-duration: 18s; animation-delay: -6s; }
.pulse-2 { animation-duration: 21s; animation-delay: -10s; }
.circuit-terminals { stroke: #58d8ff; fill: #baf9ff; opacity: .8; }
@keyframes current-flow { to { stroke-dashoffset: -1513; } }
.sun-glow { position: absolute; z-index: -2; pointer-events: none; width: 19%; aspect-ratio: 1; top: 24%; left: 65%; border-radius: 50%; background: radial-gradient(circle, #fff1b528, #ffd87810 35%, transparent 69%); animation: sunlight 12s ease-in-out infinite alternate; }
.valley-mist { position: absolute; z-index: -1; pointer-events: none; top: 51%; left: 52%; width: 43%; height: 13%; background: radial-gradient(ellipse, #d6eaff12, transparent 65%); animation: drift 25s ease-in-out infinite alternate; }
@keyframes sunlight { from { opacity: .25; transform: scale(.96); } to { opacity: .8; transform: scale(1.06); } }
@keyframes drift { from { transform: translateX(-1%); opacity: .15; } to { transform: translateX(2%); opacity: .55; } }
.document-hidden .sun-glow, .document-hidden .valley-mist { animation-play-state: paused; }

.featured-projects { position: absolute; left: 5.5%; right: 5.3%; bottom: 3.5%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .72vw; }
.evelyn-interface-preview { display: none; }
.evelyn-interface-preview { position: absolute; z-index: -1; inset: 0; overflow: hidden; background: radial-gradient(ellipse at 50% 47%, #0c2b3d 0, #071a29 58%, #05131f 100%); }
.evelyn-interface-preview::before { content: ''; position: absolute; inset: 0; opacity: .72; background: linear-gradient(135deg, transparent 0 17%, #45c8ff25 17.1% 17.35%, transparent 17.5% 29%, #45c8ff19 29.1% 29.3%, transparent 29.5%), linear-gradient(45deg, transparent 0 68%, #45c8ff20 68.1% 68.35%, transparent 68.5% 82%, #e9c98e1e 82.1% 82.3%, transparent 82.5%); }
.evelyn-interface-brand { position: absolute; z-index: 1; top: 8%; left: 7%; right: 7%; color: #bccbd6; font-size: clamp(8px, .6vw, 11px); letter-spacing: .22em; text-align: center; white-space: nowrap; }
.evelyn-interface-brand i { margin: 0 .55em; color: var(--pale-gold); font-style: normal; }
.evelyn-interface-frame { position: absolute; inset: 19% 7% 18%; border: 1px solid #39c7f26b; border-radius: 12px; background: linear-gradient(135deg, #071724bd, #0a2030a8); box-shadow: inset 0 0 28px #23b9f10b, 0 0 16px #19aee71a; }
.evelyn-interface-frame::before,
.evelyn-interface-frame::after { content: ''; position: absolute; top: 25%; width: 17%; height: 1px; background: linear-gradient(90deg, transparent, #39c7f29a); }
.evelyn-interface-frame::before { left: 0; transform: translateX(-1px); }
.evelyn-interface-frame::after { right: 0; transform: translateX(1px) rotate(180deg); }
.evelyn-interface-dot { position: absolute; top: calc(25% - 3px); left: -4px; width: 7px; height: 7px; border: 1px solid #87e6ff; border-radius: 50%; background: #14bce9; box-shadow: 0 0 9px #37cfff; }
.evelyn-interface-copy { position: absolute; inset: 13% 7% auto; display: grid; justify-items: center; gap: .28em; color: #f5f6f7; text-align: center; }
.evelyn-interface-copy strong { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(17px, 1.55vw, 29px); font-weight: 400; line-height: 1.15; }
.evelyn-interface-copy small { margin-top: .65em; color: #c6d1d9; font-size: clamp(10px, .76vw, 14px); line-height: 1.4; }
.evelyn-ui-heading, .evelyn-ui-status, .evelyn-ui-messages, .evelyn-ui-compose { display: none; }
.project-detail .evelyn-detail-art { position: relative; overflow: hidden; padding: 0; background: #071a29; }
.project-detail .evelyn-detail-art .evelyn-interface-preview { display: block; z-index: 0; }
.project-card { min-width: 0; position: relative; display: block; isolation: isolate; aspect-ratio: 1.46; border: 1px solid #43caff85; border-radius: 12px; overflow: hidden; color: #f7f7f7; background: #091822; box-shadow: 0 7px 20px #0005, 0 0 13px #00aeff33; transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease; }

/* On wide desktop homepages, give Evelyn the central featured position while
   keeping all four other project links visible in the same row. */
@media (min-width: 1101px) and (min-aspect-ratio: 6/5) {
  .featured-projects { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.65fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .featured-projects > .project-card[href="/projects/perennial/"] { grid-column: 1; grid-row: 1; }
  .featured-projects > .project-card[href="/projects/fergus/"] { grid-column: 2; grid-row: 1; }
  .featured-projects > .project-card[href="/projects/unwritten/"] { grid-column: 3; grid-row: 1; aspect-ratio: 1.42; z-index: 1; border-color: #e9c98e; box-shadow: 0 12px 34px #0008, 0 0 22px #f5c75635; }
  .featured-projects > .project-card[href="/projects/tally/"] { grid-column: 4; grid-row: 1; }
  .featured-projects > .project-card[href="/projects/keystone/"] { grid-column: 5; grid-row: 1; }
  .featured-projects > .project-card[href="/projects/unwritten/"] .card-copy h2 { font-size: clamp(20px, 1.6vw, 30px); }
  .featured-projects > .project-card.home-featured-card[href="/projects/unwritten/"] .card-art,
  .featured-projects > .project-card.home-featured-card[href="/projects/unwritten/"] .card-shade { display: none; }
  .featured-projects .evelyn-interface-preview { display: block; }
}

.card-circuit-frame { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; fill: none; stroke: #63d9ff; pointer-events: none; }
.frame-track { stroke-width: .7; opacity: .75; }
.frame-pulse { stroke: #b6f8ff; stroke-width: 1.3; stroke-dasharray: 7 1000; animation: card-current 12s linear infinite; }
.card-circuit-frame circle { fill: #7bf3ff; stroke-width: .7; }
@keyframes card-current { to { stroke-dashoffset: -1007; } }
.card-art { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 450ms ease; }
.theme-growth .card-art { object-position: left center; }
.card-shade { position: absolute; z-index: -2; inset: 0; background: linear-gradient(180deg, #030d1600 20%, #030d1660 42%, #030d16ed 70%, #030d16fa 100%); }
.project-card.evelyn-card .card-art,
.project-card.evelyn-card .card-shade { display: none; }
.evelyn-card-artwork { position: absolute; z-index: -2; inset: 0; display: block; overflow: hidden; background: radial-gradient(ellipse at 50% 46%, #0d3449 0, #071c2b 48%, #05131f 100%); }
.evelyn-card-artwork::before { content: ''; position: absolute; inset: 0; opacity: .48; background-image: radial-gradient(#43caff88 .8px, transparent 1px); background-size: 20px 20px; mask-image: radial-gradient(ellipse at center, #000 10%, transparent 80%); }
.evelyn-circuit-traces { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: #35caff; stroke-width: 1.1; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 3px #12bbff88); }
.evelyn-circuit-traces .trace-soft { stroke: #35caff55; stroke-width: .7; }
.evelyn-circuit-traces .trace-node { fill: #56dcff; stroke: #b9f4ff; stroke-width: .7; }
.evelyn-circuit-traces .trace-gold-ring { stroke: var(--gold); stroke-width: 1; }
.evelyn-card-emblem { position: absolute; left: 50%; top: 46%; width: clamp(52px, 21%, 150px); aspect-ratio: 1; display: grid; place-items: center; transform: translate(-50%, -50%); border: 1px solid #53dcff99; border-radius: 50%; background: radial-gradient(circle at 42% 35%, #23d9ff 0, #0879a4 17%, #052d43 41%, #061a29 69%); box-shadow: 0 0 14px #25caff85, inset 0 0 14px #4ad5ff41, 0 0 55px #20bfff29; }
.emblem-halo { position: absolute; inset: -17%; border: 1px solid #42cbff72; border-radius: 50%; box-shadow: 0 0 13px #25caff26; }
.emblem-core { width: 34%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e9ffff, #56e5ff 30%, #0988bd 75%); box-shadow: 0 0 11px #55e4ff, 0 0 34px #2ccfff8a; }
.evelyn-card-status { position: absolute; z-index: 1; top: 7%; left: 6%; display: flex; align-items: center; gap: 7px; color: #dceaf0; font-size: clamp(7px, .62vw, 11px); letter-spacing: .12em; white-space: nowrap; }
.evelyn-card-status > i { width: 6px; height: 6px; border-radius: 50%; background: #5ce3a7; box-shadow: 0 0 9px #5ce3a7; }
.evelyn-card-status b { color: var(--gold); font-weight: 500; }
.featured-projects .evelyn-card-status { font-size: clamp(6px, .52vw, 9px); gap: 5px; }
.carousel-slide .evelyn-card-status { font-size: clamp(9px, .9vw, 13px); }
.card-copy { position: absolute; left: 6.8%; right: 6%; bottom: 7%; }
.card-copy h2 { display: flex; align-items: center; gap: .68vw; margin: 0 0 .27vw; font-size: clamp(16px, 1.3vw, 25px); line-height: 1.4; font-weight: 600; letter-spacing: -.025em; }
.card-copy h2 .icon { width: 2vw; height: 2vw; max-width: 38px; max-height: 38px; min-width: 25px; min-height: 25px; }
.card-copy p { font-size: clamp(13px, 1.03vw, 20px); line-height: 1.38; font-weight: 400; max-width: 81%; margin: 0; text-wrap: pretty; }
.description-line { display: block; }
.card-arrow { position: absolute; right: 7%; bottom: 9%; border: 1.7px solid #ffcd35; color: #ffcd35; border-radius: 50%; display: grid; place-items: center; width: 2.3vw; height: 2.3vw; min-width: 32px; min-height: 32px; max-width: 46px; max-height: 46px; transition: background 220ms ease, color 220ms ease, transform 220ms ease; }
.card-arrow .icon { width: 70%; height: 70%; }
.project-card:hover, .project-card:focus-visible { transform: translateY(-6px); border-color: #ffe0a0; box-shadow: 0 12px 30px #0006, 0 0 20px #e3bb7820; }
.project-card:hover .card-art, .project-card:focus-visible .card-art { transform: scale(1.035); }
.project-card:hover .card-arrow, .project-card:focus-visible .card-arrow { background: var(--gold); color: var(--navy); transform: translateX(2px); }
.project-card:focus-visible { outline-offset: 3px; }

/* Deliberate missing-asset treatment, never a substitute illustration. */
.artwork-pending { background: linear-gradient(135deg, #102331, #9fb4bf 60%, #edcc93); }
.asset-notice { position: absolute; left: 8%; top: 29%; max-width: 340px; padding: 24px; border: 1px dashed #e9c98e8c; border-radius: 12px; background: #071521c9; }
.asset-notice p { margin: 12px 0; line-height: 1.5; }
.asset-notice small { color: var(--muted); line-height: 1.6; }
.art-pending { background: linear-gradient(155deg, #244334, #0a1923 72%); }
.theme-tools .art-pending { background: linear-gradient(145deg, #355779, #0a1923 72%); }
.theme-stories .art-pending { background: linear-gradient(145deg, #81653a, #0a1923 72%); }
.theme-direction .art-pending { background: linear-gradient(145deg, #345e83, #0a1923 72%); }
.theme-perspective .art-pending { background: linear-gradient(145deg, #3a5253, #0a1923 72%); }

/* Supporting pages continue the navy, gold, and blue identity. */
.interior-page { min-height: 100svh; min-height: 100dvh; display: flex; flex-direction: column; background: radial-gradient(ellipse at 80% 0, #25435b4d, transparent 60%), var(--navy); }
.interior-page .site-header { min-height: 65px; }
.interior-page .brand .monogram { width: 64px; }
  .interior-page .brand > span { font-size: 17px; }
  .interior-page .brand .burf-header-balance { font-size: inherit; }
.interior-page .nav-link, .interior-page .sign-in { font-size: clamp(15px, 1.1vw, 21px); }
.page-main { width: min(1440px, 86%); margin: 0 auto; padding: clamp(92px, 11vh, 122px) 0 clamp(18px, 3vh, 30px); flex: 1; }
.eyebrow { display: block; color: var(--pale-gold); text-transform: uppercase; letter-spacing: .22em; font-size: 12px; font-weight: 500; line-height: 1.7; }
.page-heading { max-width: 820px; margin-bottom: 45px; }
.page-main h1 { font-size: clamp(38px, 4.5vw, 76px); letter-spacing: -.04em; line-height: 1.12; margin: 18px 0 24px; font-weight: 600; }
.page-main p { color: var(--muted); font-size: 18px; line-height: 1.75; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.project-grid .project-card { aspect-ratio: 1.5; }
.project-grid .card-copy h2 { font-size: clamp(21px, 1.7vw, 28px); gap: 12px; margin-bottom: 5px; }
.project-grid .card-copy p { color: var(--white); font-size: 17px; line-height: 1.5; }
.project-grid .card-copy { bottom: 9%; }
.project-grid .card-arrow { width: 38px; height: 38px; }
.editor-note { border-top: 1px solid var(--line); padding-top: 25px; margin-top: 40px; max-width: 900px; font-size: 14px !important; }
.back-link { display: inline-block; color: var(--pale-gold); margin-bottom: 40px; padding: 10px 0; }
.project-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.detail-art-link { display: block; width: 100%; height: min(34vw, 480px); aspect-ratio: 1.45; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.detail-art-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.detail-art-link:hover .detail-art { transform: scale(1.02); }
.detail-art-link .detail-art { width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; border: 0; border-radius: 0; transition: transform 220ms ease; }
.detail-art { width: 100%; height: min(34vw, 480px); min-height: 0; aspect-ratio: 1.45; object-fit: cover; border: 1px solid var(--line); border-radius: 18px; display: grid; place-items: center; }
.detail-art > .icon { color: var(--pale-gold); width: 80px; height: 80px; }
.detail-art.art-pending { position: relative; overflow: hidden; }
.detail-art.art-pending.theme-tools { background: radial-gradient(ellipse at 50% 110%, #21658c66, transparent 68%), linear-gradient(145deg, #355779, #0a1923 72%); }
.detail-art.art-pending.theme-tools::before { content: ''; position: absolute; inset: 12%; border: 1px solid #63d9ff80; clip-path: polygon(7% 0, 93% 0, 100% 12%, 100% 88%, 93% 100%, 7% 100%, 0 88%, 0 12%); background: linear-gradient(90deg, transparent 49.8%, #63d9ff20 50%, transparent 50.2%), linear-gradient(transparent 49.8%, #63d9ff20 50%, transparent 50.2%); background-size: 36px 36px; box-shadow: inset 0 0 44px #00aeff22; }
.project-overview-copy h1 { margin-top: 12px; }
.project-overview-text { max-width: 680px; }
.project-overview-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin-top: 14px; }
.project-overview-actions .text-link { min-height: 48px; }
.project-detail .detail-lead { font-size: 25px; color: var(--white); }
.status-badge { display: inline-flex; border: 1px solid #e9c98e6b; color: var(--pale-gold); padding: 8px 13px; border-radius: 30px; font-size: 13px; margin-bottom: 15px; }
.text-link { display: inline-flex; align-items: center; gap: 16px; color: var(--pale-gold); min-height: 48px; padding-block: 12px; }
.text-link .icon { width: 23px; height: 23px; transition: transform 200ms ease; }
.text-link:hover .icon { transform: translateX(4px); }
.about-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 8vw, 140px); align-items: start; }
.about-signature { display: flex; align-items: center; gap: 18px; color: var(--pale-gold); margin-top: 40px; font-size: clamp(19px, 1.6vw, 25px); perspective: 600px; perspective-origin: 32px 50%; }
.profile-coin { position: relative; display: block; width: 64px; height: 64px; flex: 0 0 64px; aspect-ratio: 1; }
.profile-coin-link { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.header-coin-link { perspective: 600px; }
.coin-fallback, .coin-surface { position: absolute; inset: 0; display: block; width: 100%; height: 100%; aspect-ratio: 1; }
.coin-fallback { object-fit: contain; border-radius: 50%; }
.coin-surface { visibility: hidden; }
.profile-coin.is-rendered .coin-surface { visibility: visible; }
.profile-coin.is-rendered .coin-fallback { visibility: hidden; }
.prose { padding-top: 25px; }
.prose p { font-size: 20px; }
.cooper-note { display: grid; grid-template-columns: minmax(240px, .9fr) 1fr; align-items: center; gap: clamp(25px, 5vw, 75px); width: min(1100px, 100%); border-block: 1px solid var(--line); padding-block: 35px; margin: 55px auto 20px; }
.cooper-portrait { display: block; width: 100%; max-width: 480px; height: auto; object-fit: contain; background: transparent; border: 0; border-radius: 0; }
.cooper-note p { font-size: 17px; }
.cooper-note h2 { font-size: 30px; font-weight: 500; margin: 15px 0; }
.brandon-golf-sketch { width: min(1100px, 100%); margin: 45px auto 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #0a202b; box-shadow: 0 16px 48px #0004; }
.brandon-golf-sketch img { display: block; width: 100%; height: auto; aspect-ratio: 2/1; object-fit: cover; }
.brandon-golf-sketch figcaption { padding: 12px 18px; color: var(--pale-gold); font-size: 13px; letter-spacing: .04em; }
.contact-page { max-width: 1100px; }
.contact-page > p { max-width: 630px; }
.contact-page .contact-details { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin: -8px 0 22px; padding-left: 20px; border-left: 2px solid var(--pale-gold); }
.contact-details a { color: var(--pale-gold); }
.contact-details a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-placeholder { border-left: 2px solid var(--pale-gold); padding: 10px 0 0 24px; margin-block: 35px; }
.contact-placeholder .status-badge { margin-bottom: 4px; }
.contact-placeholder p { font-size: 16px; }
.contact-button { display: inline-flex; align-items: center; gap: 20px; padding: 17px 24px; background: var(--pale-gold); color: var(--navy); border-radius: 8px; margin: 20px 0; }
.motion-paused .pulse, .motion-paused .frame-pulse, .motion-paused .sun-glow, .motion-paused .valley-mist,
.document-hidden .pulse, .document-hidden .frame-pulse, .document-hidden .city-light { animation-play-state: paused; }
.motion-paused .city-light { animation-play-state: paused; }
.digital-card-page { width: min(1120px, 90%); padding-top: 35px; }
.card-intro { text-align: center; margin-bottom: 30px; }
.card-intro h1 { font-size: clamp(32px, 3.4vw, 46px); margin: 10px 0; }
.card-intro p { font-size: clamp(15px, 1.4vw, 20px); margin-bottom: 0; }
.digital-card-coin { width: 112px; height: 112px; margin: 15px auto 0; perspective: 700px; }
.digital-card-coin .profile-coin { width: 108px; height: 108px; flex-basis: 108px; }
.introduction-art { position: relative; aspect-ratio: 16/9; border: 1px solid #53c7ff80; border-radius: 16px; overflow: hidden; background: #03111f; box-shadow: 0 20px 70px #0005; }
.card-still, .card-video { width: 100%; height: 100%; object-fit: cover; }
.card-video { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.card-video.is-playing { opacity: 1; }
.card-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 15px; }
.card-actions .contact-button { margin-block: 10px; }
.card-playback-status { text-align: center; min-height: 24px; font-size: 13px !important; }

/* The root is an introduction, never a timed redirect. The link also works without JS. */
.entrance-page { height: 100svh; height: 100dvh; overflow: hidden; background: #03111f; }
.entrance-underlay { position: fixed; z-index: 0; inset: 0; overflow: hidden; background: #03111f; }
.site-entrance { --pull-edge: 0px; --pull-center: 0px; position: fixed; z-index: 1; isolation: isolate; inset: 0; width: 100%; height: 100svh; height: 100dvh; min-height: 320px; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; background: #03111f; }
.site-entrance.is-dragging { cursor: grabbing; }
.site-entrance.is-opening { cursor: default; }
.site-entrance.is-curtaining { background: transparent; }
.entrance-media { position: absolute; z-index: 0; inset: 0; overflow: hidden; }
.card-picture { position: absolute; inset: 0; }
.entrance-media .card-still, .entrance-media .card-video { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.entrance-media .card-video { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.entrance-media .card-video.is-playing { opacity: 1; }
.curtain-canvas, .curtain-edge { position: absolute; inset: 0; display: none; width: 100%; height: 100%; pointer-events: none; }
.curtain-canvas { z-index: 2; }
.curtain-edge { z-index: 3; }
.site-entrance.is-curtaining.is-fabric-rendered .card-picture, .site-entrance.is-curtaining.is-fabric-rendered .card-video { visibility: hidden; }
.site-entrance.is-curtaining.is-fabric-rendered .entrance-media::before { visibility: hidden; }
.site-entrance.is-curtaining.is-fabric-rendered .curtain-canvas, .site-entrance.is-curtaining.is-fabric-rendered .curtain-edge { display: block; }
.site-entrance.is-artwork-fallback .entrance-media { will-change: transform; }
.site-entrance .card-still { -webkit-user-drag: none; user-drag: none; pointer-events: none; }
.burf-bits-page { height: 100svh; height: 100dvh; overflow: hidden; background: #03111f; }
.entrance-underlay.is-revealed { z-index: 1; }
.burf-bits-screen { box-sizing: border-box; position: relative; isolation: isolate; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: 100%; height: 100%; min-height: 100svh; min-height: 100dvh; padding: clamp(15px, 3.5vh, 34px) clamp(18px, 4vw, 64px); overflow: hidden; color: #f8f5ec; text-align: center; background: radial-gradient(ellipse at 50% 48%, #28445bd4 0, #11283ae0 38%, #061622f0 76%, #03111ff5 100%), url('/assets/hero-scene.webp') center / cover no-repeat; }
.burf-bits-heading { position: relative; z-index: 3; }
.burf-bits-heading h2 { margin: 3px 0 0; color: #fff4d0; font-size: clamp(28px, 4.6vw, 50px); line-height: 1.08; letter-spacing: -.04em; }
.burf-award-message { margin: 8px 0 0; color: #ffda75; font-size: clamp(16px, 1.8vw, 22px); font-weight: 650; text-shadow: 0 2px 14px #f5b63235; }
.burf-coin-stage { position: relative; min-height: 0; overflow: visible; }
.burf-bit-coin { position: absolute; z-index: 2; top: 50%; left: 50%; width: min(82vw, 52vh, 700px); height: min(82vw, 52vh, 700px); transform: translate(-50%, -50%) scale(var(--coin-approach-scale, .025)); transform-origin: center; opacity: var(--coin-approach-opacity, 0); filter: blur(var(--coin-approach-blur, 2px)); will-change: transform, opacity, filter; }
.burf-bit-coin .profile-coin { width: 100%; height: 100%; flex-basis: 100%; }
.burf-coin-pulse { position: absolute; z-index: 1; top: 50%; left: 50%; width: min(82vw, 52vh, 700px); aspect-ratio: 1; border: 1px solid #d6e4ed38; border-radius: 50%; box-shadow: 0 0 48px 8px #d5e6f02b, inset 0 0 45px #d5e6f016; transform: translate(-50%, -50%) scale(.55); opacity: 0; pointer-events: none; }
.burf-bits-screen.is-revealed .burf-coin-pulse-one { animation: burf-coin-wave 5200ms cubic-bezier(.15,.6,.3,1) 350ms infinite; }
.burf-bits-screen.is-revealed .burf-coin-pulse-two { animation: burf-coin-wave 5200ms cubic-bezier(.15,.6,.3,1) 2950ms infinite; }
@keyframes burf-coin-wave { 0% { transform: translate(-50%, -50%) scale(.55); opacity: 0; } 15% { opacity: .48; } 100% { transform: translate(-50%, -50%) scale(1.58); opacity: 0; } }
.burf-bits-details { position: relative; z-index: 3; width: min(720px, 100%); justify-self: center; padding-bottom: clamp(2px, 1.2vh, 12px); }
.burf-repeat-message { margin: 0 0 7px; color: #ecddbd; font-size: clamp(13px, 1.25vw, 16px); }
.burf-balance { margin: 0; color: #ffda75; font-size: clamp(20px, 2.6vw, 30px); font-weight: 700; letter-spacing: -.025em; }
.burf-milestone-status { margin: 7px auto 0; max-width: 640px; color: #f2dfb8; font-size: 13px; line-height: 1.45; }
.burf-storage-note { margin: 8px auto 0; max-width: 580px; color: #bac9d3; font-size: 12px; line-height: 1.45; }
.burf-storage-error { margin: 8px auto 0; max-width: 580px; color: #ffdb98; font-size: 13px; line-height: 1.45; }
.burf-bits-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px 20px; margin-top: 8px; }
.burf-continue { gap: 12px; margin: 0; }
.burf-continue .icon { width: 22px; height: 22px; }
.burf-bits-screen.animation-skipped .burf-bit-coin { animation: none; transform: translate(-50%, -50%) scale(1); opacity: 1; filter: none; }
.burf-bits-screen.animation-skipped .burf-coin-pulse { animation: none; transform: translate(-50%, -50%) scale(1.2); opacity: .1; }
.projects-page-main { display: flex; flex-direction: column; justify-content: flex-start; padding-top: clamp(92px, 11vh, 118px); padding-bottom: clamp(14px, 2vh, 22px); }
.projects-page-main .page-heading { max-width: none; margin: 0; }
.projects-page-main .page-heading h1 { font-size: clamp(36px, 3.6vw, 58px); margin: 4px 0 6px; }
.projects-page-main .page-heading p { margin: 0; font-size: 16px; line-height: 1.4; }
.projects-page-main .project-carousel { width: 100%; margin: clamp(10px, 1.8vh, 18px) auto 0; }
.carousel-viewport { width: 100%; overflow: hidden; position: relative; border-radius: 20px; touch-action: pan-y pinch-zoom; overscroll-behavior-x: contain; }
.carousel-viewport, .carousel-viewport img { -webkit-user-drag: none; user-select: none; }
.carousel-track { position: relative; width: 100%; height: min(48vh, 520px); }
.carousel-slide { position: absolute; top: 0; left: 50%; width: min(100%, 93vh, 980px); height: 100%; transform: translate3d(calc(-50% + var(--slide-offset, 0px)), 0, 0) scale(.78); transform-origin: center; opacity: .5; z-index: 1; transition: transform 520ms cubic-bezier(.2,.72,.24,1), opacity 420ms ease; }
.carousel-slide.is-active { transform: translate3d(calc(-50% + var(--slide-offset, 0px)), 0, 0) scale(1); opacity: 1; z-index: 2; }
.carousel-slide .project-card { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 18px; box-shadow: 0 16px 44px #0008, 0 0 24px #00aeff45; }
.carousel-slide.is-active .project-card { border-color: #5ed4ffbd; box-shadow: 0 20px 56px #0009, 0 0 30px #00aeff55; }
.carousel-slide .card-copy { left: 7%; right: 7%; bottom: 9%; }
.carousel-slide .card-copy h2 { font-size: clamp(24px, 2.1vw, 36px); gap: 13px; margin-bottom: 8px; }
.carousel-slide .card-copy h2 .icon { width: clamp(28px, 2.4vw, 40px); height: clamp(28px, 2.4vw, 40px); min-width: 28px; min-height: 28px; }
.carousel-slide .card-copy p { max-width: calc(100% - 64px); font-size: clamp(17px, 1.35vw, 23px); line-height: 1.45; }
.carousel-slide .card-arrow { right: 7%; bottom: 9%; width: 48px; height: 48px; }
.carousel-slide .card-arrow .icon { width: 28px; height: 28px; }
.carousel-track.is-dragging .carousel-slide { transition: none; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 3vw, 42px); margin: 10px auto 0; }
.carousel-button { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid #e9c98e9c; border-radius: 50%; background: #0a202bbd; color: var(--gold); transition: background 180ms ease, border-color 180ms ease, transform 180ms ease; }
.carousel-button:hover { border-color: var(--gold); background: #153347; transform: scale(1.06); }
.carousel-button .icon { width: 24px; height: 24px; }
.carousel-status { min-width: 180px; margin: 0; color: var(--pale-gold) !important; text-align: center; font-size: 14px !important; line-height: 1.4 !important; }
.carousel-hint { margin: 4px 0 0; color: var(--muted); text-align: center; font-size: 12px !important; line-height: 1.4 !important; letter-spacing: .04em; }
.carousel-arrow-previous { transform: rotate(180deg); }
.projects-page-main .editor-note { margin: 7px auto 0; padding-top: 7px; font-size: 12px !important; line-height: 1.4; }

/* Compact About content into a single viewport while preserving both sketches. */
.about-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-content: stretch; align-items: center; gap: clamp(16px, 2.5vh, 24px) clamp(22px, 4vw, 64px); width: min(1440px, 90%); padding-top: clamp(92px, 11vh, 120px); padding-bottom: clamp(14px, 2vh, 22px); }
.about-page .about-layout { grid-column: 1 / -1; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.about-page .page-heading { max-width: none; margin-bottom: 0; }
.about-page .page-heading h1 { margin: 8px 0 0; font-size: clamp(38px, 4vw, 64px); }
.about-page .prose { padding-top: 0; }
.about-page .prose p { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.55; margin-bottom: 12px; }
.about-page .brandon-golf-sketch { width: 100%; align-self: center; margin: 0; }
.about-page .brandon-golf-sketch img { height: auto; aspect-ratio: 2/1; object-fit: contain; }
.about-page .cooper-note { width: 100%; height: 100%; min-height: 0; grid-template-columns: minmax(0, .9fr) 1fr; gap: clamp(16px, 3vw, 40px); align-self: stretch; padding: 12px 0; margin: 0; }
.about-page .cooper-portrait { width: 100%; max-width: none; max-height: min(25vh, 245px); object-fit: contain; }
.about-page .cooper-note h2 { font-size: clamp(24px, 2.1vw, 30px); margin: 8px 0; }
.about-page .cooper-note p { font-size: clamp(14px, 1.05vw, 16px); line-height: 1.5; margin: 0; }
.pull-cue { position: absolute; z-index: 3; left: 50%; bottom: clamp(70px, 8vh, 96px); display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: var(--cue-opacity, 1); transform: translate(-50%, var(--cue-lift, 0px)); margin: 0; color: #f3c64d; font-size: clamp(11px, 1vw, 14px); font-weight: 650; letter-spacing: .15em; line-height: 1; text-transform: uppercase; white-space: nowrap; text-shadow: 0 2px 10px #03111f, 0 1px 2px #03111f; pointer-events: none; }
.pull-cue-arrow { width: clamp(36px, 3.8vw, 52px); height: clamp(36px, 3.8vw, 52px); overflow: visible; filter: drop-shadow(0 0 6px #ffc944b8); animation: pull-arrow 1.45s cubic-bezier(.3,.65,.4,1) infinite; }
.pull-cue-arrow path { fill: none; stroke: url(#drag-gold); stroke-linecap: round; stroke-linejoin: round; }
.pull-cue-arrow .arrow-shaft { stroke-width: 2.3; }
.pull-cue-arrow .arrow-wing { stroke-width: 3.5; }
.pull-cue-arrow .arrow-inner { stroke: #fff1ad; stroke-width: 1.15; opacity: .88; }
@keyframes pull-arrow { 0%, 100% { transform: translateY(4px); opacity: .72; } 55% { transform: translateY(-5px); opacity: 1; } }
.entrance-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.entrance-access-link:focus-visible, .no-js .entrance-access-link { position: absolute; z-index: 6; left: 50%; bottom: clamp(130px, 18vh, 165px); width: max-content; height: auto; margin: 0; padding: 0; overflow: visible; clip-path: none; opacity: var(--cue-opacity, 1); transform: translate(-50%, var(--cue-lift, 0px)); color: var(--gold); font-size: 14px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 5px; white-space: nowrap; }
.no-js .pull-cue { display: none; }
.no-js .card-video { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .project-card.evelyn-card .emblem-halo { animation: evelyn-halo-breathe 5.5s ease-in-out infinite; transform-origin: center; }
  @keyframes evelyn-halo-breathe { 50% { opacity: .55; transform: scale(1.12); } }
}

@media (prefers-reduced-motion: reduce) {
  .site-entrance, .pull-cue { transition: none; animation: none; }
  .burf-bits-screen.is-revealed .burf-bit-coin, .burf-bits-screen.is-revealed .burf-coin-pulse { animation: none; }
  .burf-bits-screen.is-revealed .burf-bit-coin { transform: translate(-50%, -50%); opacity: 1; filter: none; }
  .burf-bits-screen.is-revealed .burf-coin-pulse { opacity: .1; transform: translate(-50%, -50%) scale(1.2); }
}

@media (max-aspect-ratio: 1/1) {
  .entrance-media::before { content: ''; position: absolute; z-index: 0; inset: -8%; background: linear-gradient(180deg, #07152145 0%, #07152118 45%, #07152188 100%), url('/assets/hero-mobile.webp') center / cover no-repeat; filter: blur(12px) saturate(.82); opacity: .9; transform: scale(1.08); pointer-events: none; }
  .entrance-media .card-picture { z-index: 1; }
  .entrance-media .card-picture { inset: 0; }
  .entrance-media .card-still { filter: drop-shadow(0 0 28px #aebdca55); object-fit: cover; }
  .entrance-media .card-video { display: none; }
  .pull-cue { bottom: max(76px, calc(env(safe-area-inset-bottom) + 68px)); }
  .entrance-access-link:focus-visible, .no-js .entrance-access-link { bottom: max(24px, env(safe-area-inset-bottom)); }
}

@media (max-width: 700px) {
  .transition-traces { stroke-width: 1.9; }
  .is-entering .transition-traces path { animation-duration: 440ms; }
  .is-leaving .transition-traces path { animation-duration: 270ms; }
  .burf-bits-screen { padding: max(16px, env(safe-area-inset-top)) 18px max(14px, env(safe-area-inset-bottom)); }
  .burf-bit-coin, .burf-coin-pulse { width: min(82vw, 48vh, 700px); height: min(82vw, 48vh, 700px); }
  .burf-bits-details { padding-bottom: 2px; }
  .burf-bits-actions { gap: 6px 12px; margin-top: 7px; }
  .burf-continue { min-height: 42px; padding: 12px 16px; }
}

@media (max-height: 600px) {
  .burf-bits-screen { padding-top: 12px; padding-bottom: 10px; }
  .burf-bits-heading h2 { font-size: clamp(24px, 4vh, 34px); }
  .burf-award-message { margin-top: 3px; font-size: clamp(14px, 2.4vh, 18px); }
  .burf-bit-coin, .burf-coin-pulse { width: min(76vw, 46vh, 540px); height: min(76vw, 46vh, 540px); }
  .burf-storage-note { margin-top: 4px; font-size: 11px; }
  .burf-bits-actions { margin-top: 4px; }
}

@media (max-height: 500px) and (min-aspect-ratio: 1/1) {
}

@media (min-width: 2200px) {
  .hero-copy { top: clamp(96px, 11vh, 140px); }
  .hero h1 { font-size: 4.5vw; }
  .hero-eyebrow { font-size: .86vw; }
  .hero-tagline { font-size: 1.3vw; }
  .card-copy h2 { font-size: 1.3vw; }
  .card-copy p { font-size: 1.03vw; }
}

@media (max-width: 1100px) and (min-width: 701px) {
  .site-header { left: 4%; right: 4%; gap: 20px; }
  .brand > span { font-size: 14px; }
  .site-header nav { gap: 22px; }
  .hero-copy { left: 50%; right: 7%; top: clamp(90px, 11vh, 120px); }
  .hero h1 { font-size: 5.1vw; }
  .hero-eyebrow { font-size: 1vw; }
  .hero-tagline { font-size: 1.55vw; gap: .8vw; }
  .featured-projects { left: 3%; right: 3%; gap: 10px; }
  .project-card { aspect-ratio: 1.04; border-radius: 12px; }
  .card-copy { left: 9%; right: 9%; bottom: 12%; }
  .card-copy h2 { gap: 7px; font-size: 17px; }
  .card-copy h2 .icon { width: 24px; height: 24px; min-width: 24px; min-height: 24px; }
  .card-copy p { font-size: 14px; max-width: 100%; padding-right: 0; }
  .card-arrow { right: 8%; top: 7%; bottom: auto; width: 32px; height: 32px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects-page-main .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .projects-page-main { padding-top: 92px; padding-bottom: 14px; }
  .projects-page-main .page-heading { margin-bottom: 0; }
  .projects-page-main .page-heading h1 { font-size: clamp(34px, 4vw, 44px); }
  .projects-page-main .carousel-track { height: min(48vh, 520px); }
  .carousel-slide { width: min(100%, 850px, 93vh); }
  .projects-page-main .editor-note { margin-top: 12px; padding-top: 10px; }
  .interior-page .brand > span { font-size: 14px; }
}

/* Portrait tablets keep the figures above a separate, readable project grid. */
@media (min-width: 701px) and (max-aspect-ratio: 6/5) {
  .hero { height: 100svh; min-height: 0; padding-top: 0; }
  .hero-picture { inset: 0; height: 100%; }
  .hero-scene { object-position: 38% 50%; }
  .hero-copy { top: clamp(110px, 12vh, 142px); left: 42%; right: 5%; }
  .hero::after { content: ''; position: absolute; z-index: -1; inset: auto 0 0; height: 38%; background: linear-gradient(transparent, var(--navy)); }
  .hero { background: var(--navy); }
  .featured-projects { position: absolute; left: 4%; right: 4%; bottom: max(14px, env(safe-area-inset-bottom)); grid-template-columns: repeat(3, minmax(0, 1fr)); width: 92%; margin: 0; padding: 0; gap: 12px; }
  .featured-projects .project-card { aspect-ratio: 1.42; }
  .sun-glow, .valley-mist { display: none; }
  .world-circuits { top: 0; height: 100%; }
}

@media (max-width: 700px) {
  .site-header, .interior-page .site-header { top: clamp(12px, 2.2vh, 20px); left: 0; right: 0; width: 100%; min-height: 65px; padding: 10px 6%; margin: 0; gap: 18px; }
  .site-header { background: linear-gradient(#061521aa, transparent); }
  .brand, .interior-page .brand { gap: 12px; }
  .brand .monogram, .interior-page .brand .monogram { width: 48px; }
  .brand .profile-coin { width: 48px; height: 48px; flex-basis: 48px; }
  .brand > span, .interior-page .brand > span { font-size: 13px; letter-spacing: .1em; }
  .brand .burf-header-balance, .interior-page .brand .burf-header-balance { font-size: inherit; letter-spacing: normal; }
  .burf-header-label { font-size: 12px; }
  .burf-header-count { font-size: 19px; }
  .menu-toggle { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 auto; background: #07152173; color: var(--pale-gold); border: 1px solid #e9c98e73; border-radius: 50%; }
  .menu-toggle .icon { width: 24px; height: 24px; }
  .site-header nav, .interior-page .site-header nav { display: none; position: absolute; top: 70px; right: 5%; left: 5%; padding: 15px 22px 22px; border: 1px solid var(--line); border-radius: 14px; background: #071521f8; box-shadow: 0 14px 35px #0008; transform: none; }
  .site-header nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 5px; }
  .nav-link, .interior-page .nav-link { font-size: 17px; min-height: 48px; }
  .nav-link::after { right: auto; width: 32px; bottom: 3px; }
  .sign-in { align-self: flex-start; margin-top: 12px; min-width: 145px; }
  .hero { min-height: 100svh; height: auto; padding: 0 0 max(24px, env(safe-area-inset-bottom)); background: var(--navy); }
  .hero-picture { inset: 0 0 auto; height: 100svh; }
  .hero-scene { object-fit: cover; object-position: 30% 50%; }
  .hero::after { position: absolute; z-index: -1; content: ''; top: calc(var(--mobile-scene-height) - 70px); left: 0; right: 0; height: 80px; background: linear-gradient(transparent, var(--navy)); }
  .hero-copy { top: clamp(98px, 12vh, 122px); left: 3%; right: 9%; color: #fff4d8; text-shadow: 0 2px 8px #03111f, 0 0 28px #03111f; }
  .hero-copy::before { content: ''; position: absolute; z-index: -1; inset: -35px -8% -40px; background: radial-gradient(ellipse, #03111fb8, #03111f55 50%, transparent 75%); pointer-events: none; }
  .hero-eyebrow { white-space: normal; font-size: 9px; letter-spacing: .27em; margin-bottom: 8px; }
  .hero h1 { font-size: clamp(34px, 8vw, 54px); white-space: normal; letter-spacing: -.04em; margin-bottom: 7px; }
  .hero-tagline { font-size: clamp(12px, 3.15vw, 17px); gap: 2vw; line-height: 1.6; white-space: nowrap; }
  .hero-tagline { font-size: clamp(11px, 2.9vw, 16px); white-space: normal; letter-spacing: .055em; }
  .headline-circuit { inset: -8% -2% -15%; width: 104%; height: 120%; opacity: .7; }
  .world-circuits { display: none; }
  .city-lights { display: block; opacity: .82; }
  .sun-glow, .valley-mist { display: none; }
  .featured-projects { position: relative; inset: auto; left: auto; right: auto; bottom: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 92%; margin: 98svh auto 0; gap: clamp(8px, 1.5vh, 12px); padding: 0; }
  .featured-projects .project-card { aspect-ratio: 1.48; border-radius: 13px; }
  .featured-projects .evelyn-card-status { font-size: clamp(7px, 1.8vw, 9px); }
  .card-copy { left: 8%; right: 8%; bottom: 8%; }
  .card-copy h2 { font-size: clamp(13px, 3.5vw, 15px); gap: 6px; flex-wrap: nowrap; line-height: 1.25; margin-bottom: 4px; }
  .card-copy h2 .icon { width: 25px; height: 25px; min-width: 25px; min-height: 25px; }
  .card-copy p { max-width: calc(100% - 22px); font-size: 12px; line-height: 1.3; }
  .card-arrow { top: 7%; right: 7%; bottom: auto; min-width: 28px; min-height: 28px; width: 28px; height: 28px; background: #071521c0; }
  .featured-projects .project-card:first-child { grid-column: 1 / -1; aspect-ratio: 2.4; order: 0; }
  .featured-projects .project-card:first-child .card-copy { left: 6%; right: 6%; bottom: 8%; }
  .featured-projects .project-card:first-child .card-copy h2 { flex-wrap: nowrap; }
  .featured-projects .project-card:first-child .card-arrow { top: 24%; bottom: auto; right: 6%; }
  .featured-projects .home-featured-card[href="/projects/unwritten/"] .card-art,
  .featured-projects .home-featured-card[href="/projects/unwritten/"] .card-shade { display: none; }
  .featured-projects .home-featured-card[href="/projects/unwritten/"] .evelyn-interface-preview { display: block; }
  .featured-projects .home-featured-card .evelyn-interface-brand { top: 5%; font-size: clamp(5px, 1.35vw, 7px); letter-spacing: .15em; }
  .featured-projects .home-featured-card .evelyn-interface-frame { inset: 21% 4% 14%; border-radius: 11px; }
  .featured-projects .home-featured-card .evelyn-interface-copy { display: none; }
  .featured-projects .home-featured-card .evelyn-ui-heading { position: absolute; display: grid; top: 6%; left: 6%; right: 6%; color: var(--white); line-height: 1.05; }
  .featured-projects .home-featured-card .evelyn-ui-heading strong { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(12px, 3.6vw, 17px); font-weight: 400; }
  .featured-projects .home-featured-card .evelyn-ui-heading small { margin-top: 2px; color: #c6d1d9; font-size: clamp(6px, 1.55vw, 8px); }
  .featured-projects .home-featured-card .evelyn-expand-mark { position: absolute; top: 0; right: 0; color: #b4dbe8; font-size: 10px; }
  .featured-projects .home-featured-card .evelyn-ui-status { position: absolute; display: block; top: 31%; left: 6%; color: #b6d8e8; font-size: clamp(6px, 1.5vw, 8px); }
  .featured-projects .home-featured-card .evelyn-ui-status i { display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: #41dcff; box-shadow: 0 0 7px #41dcff; }
  .featured-projects .home-featured-card .evelyn-ui-messages { position: absolute; display: block; top: 46%; left: 5%; right: 5%; }
  .featured-projects .home-featured-card .evelyn-ui-you,
  .featured-projects .home-featured-card .evelyn-ui-label { display: block; margin: 0 0 3px; color: #9bcde0; font-size: 5px; letter-spacing: .14em; }
  .featured-projects .home-featured-card .evelyn-ui-you { text-align: right; }
  .featured-projects .home-featured-card .evelyn-ui-bubble { display: block; height: 12px; border: 1px solid #6d9fb055; border-radius: 6px; background: #15384b; }
  .featured-projects .home-featured-card .evelyn-ui-user { width: 66%; margin: 0 0 4px auto; }
  .featured-projects .home-featured-card .evelyn-ui-reply { width: 78%; height: 19px; padding: 5px 7px; background: #0d2939; }
  .featured-projects .home-featured-card .evelyn-ui-reply b { display: block; height: 1px; margin-bottom: 3px; border-radius: 1px; background: #c6dbe3a8; }
  .featured-projects .home-featured-card .evelyn-ui-reply b:nth-child(2) { width: 76%; }
  .featured-projects .home-featured-card .evelyn-ui-reply b:nth-child(3) { width: 48%; }
  .featured-projects .home-featured-card .evelyn-ui-compose { position: absolute; display: flex; align-items: center; gap: 6px; left: 5%; right: 5%; bottom: 7%; opacity: .78; }
  .featured-projects .home-featured-card .evelyn-ui-mic { color: #a8efff; font-size: 12px; }
  .featured-projects .home-featured-card .evelyn-ui-input { flex: 1; height: 11px; border: 1px solid #73a6b877; border-radius: 6px; background: #102b3b; }
  .featured-projects .home-featured-card .evelyn-ui-send { display: grid; place-items: center; width: 12px; height: 12px; border-radius: 4px; background: #36c9ff; color: #073047; font-size: 8px; }
  .featured-projects .project-card:nth-child(4) { order: 1; }
  .featured-projects .project-card:nth-child(5) { order: 2; }
  .featured-projects .project-card:nth-child(2) { order: 3; }
  .featured-projects .project-card:nth-child(3) { order: 4; }
  .asset-notice { top: 300px; left: 10%; right: 10%; max-width: none; }
  .artwork-pending { background: linear-gradient(160deg, #193349, var(--navy) 70%); }
  .page-main { width: 88%; padding: 94px 0 28px; }
  .page-main h1 { font-size: clamp(36px, 8.5vw, 58px); }
  .page-main p { font-size: 16px; }
  .page-heading { margin-bottom: 30px; }
  .project-grid { grid-template-columns: 1fr; gap: 22px; }
  .project-grid .project-card { aspect-ratio: 1.55; }
  .projects-page-main { width: 92%; padding-top: 94px; padding-bottom: 14px; }
  .projects-page-main .page-heading { margin-bottom: 0; }
  .projects-page-main .page-heading h1 { font-size: clamp(33px, 7.8vw, 42px); line-height: 1.08; }
  .projects-page-main .page-heading p { font-size: 14px; }
  .projects-page-main .project-carousel { margin-top: 12px; }
  .projects-page-main .carousel-viewport { border-radius: 15px; }
  .projects-page-main .carousel-track { height: auto; aspect-ratio: 1.3; }
  .projects-page-main .carousel-slide { width: calc(100% - clamp(30px, 9vw, 58px)); transform: translate3d(calc(-50% + var(--slide-offset, 0px)), 0, 0) scale(.82); opacity: .4; }
  .projects-page-main .carousel-slide.is-active { transform: translate3d(calc(-50% + var(--slide-offset, 0px)), 0, 0) scale(1); opacity: 1; }
  .projects-page-main .carousel-slide .project-card { border-radius: 14px; }
  .projects-page-main .carousel-slide .card-copy { left: 7%; right: 7%; bottom: 9%; }
  .projects-page-main .carousel-slide .card-copy h2 { font-size: clamp(22px, 6vw, 28px); gap: 9px; margin-bottom: 6px; }
  .projects-page-main .carousel-slide .card-copy h2 .icon { width: 26px; height: 26px; min-width: 26px; min-height: 26px; }
  .projects-page-main .carousel-slide .card-copy p { max-width: calc(100% - 48px); font-size: clamp(15px, 4vw, 18px); line-height: 1.4; }
  .projects-page-main .carousel-slide .card-arrow { right: 7%; bottom: 9%; width: 38px; height: 38px; }
  .projects-page-main .carousel-slide .card-arrow .icon { width: 23px; height: 23px; }
  .projects-page-main .carousel-slide .evelyn-card-status { font-size: clamp(8px, 2.1vw, 10px); }
  .projects-page-main .carousel-controls { gap: 18px; margin-top: 13px; }
  .projects-page-main .carousel-button { width: 44px; height: 44px; }
  .projects-page-main .carousel-status { min-width: 140px; font-size: 13px !important; }
  .projects-page-main .carousel-hint { font-size: 11px !important; }
  .projects-page-main .editor-note { margin-top: 6px; padding-top: 6px; font-size: 11px !important; }
  .project-grid .card-copy { left: 7%; bottom: 10%; }
  .project-grid .card-copy h2 { font-size: 25px; }
  .project-grid .card-copy p { font-size: 16px; max-width: 85%; }
  .project-grid .card-arrow { top: auto; bottom: 12%; right: 7%; }
  .project-detail { grid-template-columns: 1fr; gap: 35px; }
  .project-overview-page { padding-bottom: 34px; }
  .project-overview-page .back-link { margin-bottom: 18px; }
  .project-overview-page .project-detail { gap: 22px; }
  .project-overview-page .detail-art-link { height: clamp(220px, 60vw, 320px); aspect-ratio: 1.55; }
  .project-overview-page .detail-art-link .detail-art { height: 100%; aspect-ratio: auto; }
  .project-overview-page > .project-detail > .detail-art { height: clamp(220px, 60vw, 320px); aspect-ratio: 1.55; }
  .project-overview-actions { gap: 2px 20px; }
  .project-detail h1 { margin-top: 12px; }
  .project-detail .detail-lead { font-size: 23px; }
  .about-page { width: 92%; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; align-content: start; gap: 8px; padding-top: 88px; padding-bottom: 12px; }
  .about-page .about-layout { grid-column: auto; grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .about-page .page-heading h1 { font-size: clamp(30px, 8vw, 40px); line-height: 1.08; }
  .about-page .prose p { font-size: 13px; line-height: 1.36; margin-bottom: 5px; }
  .about-page .prose .text-link { min-height: 36px; padding: 6px 0; }
  .about-page .brandon-golf-sketch { width: 100%; }
  .about-page .brandon-golf-sketch img { height: auto; }
  .about-page .brandon-golf-sketch figcaption { padding: 5px 12px; font-size: 12px; }
  .about-page { width: 94%; }
  .about-page .cooper-note { height: auto; grid-template-columns: minmax(95px, .72fr) minmax(0, 1.28fr); align-items: start; gap: 10px; padding: 6px 0; }
  .about-page .cooper-portrait { max-width: 100%; max-height: 80px; justify-self: center; align-self: center; }
  .about-page .cooper-note h2 { margin: 3px 0 6px; }
  .about-page .cooper-note p { font-size: 13px; line-height: 1.38; }
  .about-signature { margin-top: 25px; }
  .prose { padding-top: 0; }
  .prose p { font-size: 18px; }
  .cooper-note { grid-template-columns: 1fr; gap: 12px; }
  .cooper-portrait { max-width: 360px; justify-self: center; }
  .digital-card-page { padding-top: 30px; }
  .card-intro { margin-bottom: 22px; }
  .digital-card-coin { width: 92px; height: 92px; margin-top: 11px; }
  .digital-card-coin .profile-coin { width: 90px; height: 90px; flex-basis: 90px; }
  .card-actions { gap: 10px 18px; }
  .card-actions .contact-button { width: 100%; justify-content: center; }
}

@media (max-width: 370px) {
  .brand > span { font-size: 11px; }
  .brand .burf-header-balance { font-size: inherit; }
  .burf-header-label { font-size: 11px; gap: 5px; }
  .burf-header-preview { font-size: 8px; }
  .featured-projects { gap: 10px; width: 92%; }
  .card-copy h2 { font-size: 15px; gap: 5px; }
  .card-copy h2 .icon { min-width: 20px; min-height: 20px; width: 20px; height: 20px; }
  .card-copy p { font-size: 12px; }
}

/* Very short viewports retain the full content and allow natural scrolling. */
@media (max-height: 620px) {
  .hero { min-height: 700px; height: auto; }
  .hero-picture { height: max(700px, 100svh); }
  .hero .featured-projects { position: relative; inset: auto; width: 92%; margin: 350px auto 0; padding-bottom: 24px; }
  .projects-page-main { min-height: 700px; }
  .about-page { min-height: 700px; }
}

/* The project links remain available if scripts are disabled. */
.no-js .projects-page-main .carousel-track { display: grid; position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; height: auto; aspect-ratio: auto; }
.no-js .projects-page-main .carousel-slide { position: relative; top: auto; left: auto; width: auto; height: auto; transform: none; opacity: 1; pointer-events: auto; }
.no-js .projects-page-main .carousel-slide .project-card { aspect-ratio: 1.5; }
.no-js .projects-page-main .carousel-controls, .no-js .projects-page-main .carousel-hint { display: none; }
@media (max-width: 700px) {
  .no-js .projects-page-main .carousel-track { grid-template-columns: 1fr; gap: 18px; }
  .no-js .projects-page-main .carousel-slide .project-card { aspect-ratio: 1.55; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .project-card:hover, .project-card:focus-visible, .project-card:hover .card-art, .project-card:focus-visible .card-art, .project-card:hover .card-arrow, .project-card:focus-visible .card-arrow, .text-link:hover .icon { transform: none; }
}

/* Cal's Pals: keep the complete digital card visible alongside existing projects. */
@media (min-width: 1101px) {
  .featured-projects { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 1101px) and (min-aspect-ratio: 6/5) {
  .featured-projects { grid-template-columns: 1fr 1fr 1.65fr 1fr 1fr 1.35fr; }
  .featured-projects > .project-card[href="https://calspals.brandonburford.com/"] { grid-column: 6; grid-row: 1; }
}
@media (max-width: 700px) {
  .featured-projects > .project-card[href="https://calspals.brandonburford.com/"] { grid-column: 1 / -1; order: 5; aspect-ratio: 1200 / 630; }
}

.project-card[href="https://calspals.brandonburford.com/"] { background:#191512; }
.project-card[href="https://calspals.brandonburford.com/"] .card-art { object-fit:contain; }
