:root { --navigation-width:450px; color-scheme:light; --paper:#f6f4f2; --ink:#20201f; --muted:#777570; --line:#dedbd6; --surface:#fff; --menu:rgba(57,56,55,.94); --shadow:0 12px 24px #26221c15,0 2px 5px #26221c12; }
:root[data-theme=dark] { color-scheme:dark; --paper:#151515; --ink:#f2f0ed; --muted:#a2a09b; --line:#383735; --surface:#252524; --menu:rgba(43,42,41,.96); --shadow:0 15px 30px #0005,0 2px 5px #0003; }
body { background:var(--paper); color:var(--ink); font-family:Arial,Helvetica,sans-serif; transition:background-color .3s,color .3s; }
button,a { -webkit-tap-highlight-color:transparent; }
button { font-family:inherit; }
a:focus-visible,button:focus-visible { outline:2px solid var(--accent); outline-offset:5px; }
[hidden] { display:none!important; }
.floating-nav.site-header { position:fixed; top:24px; left:50%; transform:translateX(-50%); display:block; width:min(var(--navigation-width),calc(100% - 32px)); padding:0; height:auto; min-height:56px; border:1px solid #ffffff15; border-radius:18px; background:var(--menu); color:#fff; backdrop-filter:blur(24px); z-index:80; box-shadow:0 8px 24px #0000000a; }
.nav-name { display:block; text-align:center; font-size:17px; font-weight:500; padding:17px 64px; }
.menu-toggle { position:absolute; top:22px; right:14px; width:36px; height:36px; border:0; padding:10px; cursor:pointer; background:none; color:inherit; }
.menu-toggle span { display:block; width:18px; height:1px; background:currentColor; margin:5px 0; transition:transform .3s; }
.menu-toggle[aria-expanded=true] span:first-child { transform:translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded=true] span:last-child { transform:translateY(-3px) rotate(-45deg); }
#navigation-panel { padding:20px 24px 18px; max-height:calc(100dvh - 105px); overflow:auto; animation:menu-appear .3s ease; }
@keyframes menu-appear { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:none; } }
.menu-eyebrow { text-align:center; font-size:13px; color:#c4c3c0; margin:4px 0 18px; }
.floating-nav .project-menu { display:grid; gap:6px; }
.project-menu a { display:flex; align-items:center; gap:12px; padding:12px; border-radius:12px; background:#ffffff08; transition:background .2s,transform .2s; }
.project-menu a:hover { background:#ffffff17; transform:translateX(3px); }
.project-menu img { width:36px; height:36px; border-radius:9px; object-fit:contain; }
.project-menu a span { margin-left:auto; color:#aaa; }
.menu-links { display:flex; gap:8px; margin-top:18px; }
.menu-links a { flex:1; text-align:center; background:#ffffff12; border-radius:12px; padding:12px; }
.menu-links a:hover { background:#ffffff22; }
.menu-profile { display:flex; align-items:center; gap:14px; padding:14px 64px 14px 24px; min-height:80px; }
.menu-profile strong { font-size:14px; font-weight:500; }
.menu-profile small { display:block; font-size:12px; color:#aaa; margin-top:0; line-height:16px; }
.menu-footer { margin-top:18px; display:flex; align-items:center; justify-content:center; color:#aaa; font-size:11px; }
.theme-toggle { border:0; background:#ffffff10; border-radius:50%; width:34px; height:34px; color:white; font-size:23px; cursor:pointer; }
.menu-backdrop { position:fixed; inset:0; z-index:70; background:#0005; backdrop-filter:blur(9px); }
.intro { text-align:center; padding:145px 24px 68px; max-width:690px; margin:auto; }
.intro-eyebrow { font-size:12px; color:var(--muted); margin-bottom:18px; }
.intro h1 { font-size:clamp(28px,3vw,38px); line-height:1.12; font-weight:500; letter-spacing:-.055em; }
.intro > p:last-child { font-size:16px; max-width:570px; margin:22px auto 0; line-height:1.4; color:var(--muted); }
.work-gallery { display:flex; align-items:center; gap:24px; overflow-x:auto; padding:48px max(24px,calc((100vw - 1240px)/2)) 50px; scroll-snap-type:x mandatory; scrollbar-width:none; }
.work-gallery::-webkit-scrollbar { display:none; }
.work-card { flex:0 0 300px; height:380px; position:relative; overflow:hidden; padding:0; border:0; border-radius:25px; background:var(--surface); color:#fff; text-align:left; cursor:pointer; box-shadow:var(--shadow); scroll-snap-align:center; transition:transform .5s cubic-bezier(.22,1,.36,1),box-shadow .5s; }


.work-card:hover,.work-card:focus-visible { transform:translateY(-22px) rotate(-1.5deg); box-shadow:0 28px 44px #0003,0 6px 12px #0002; }
.card-art { height:100%; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.card-art img { width:120%; max-width:none; flex-shrink:0; border-radius:8px; box-shadow:0 14px 30px #0002; transition:transform .6s cubic-bezier(.22,1,.36,1); }
.work-card:hover .card-art img { transform:scale(1.06) translateY(-12px); }
.card-caption { position:absolute; inset:auto 0 0; padding:70px 22px 23px; background:linear-gradient(transparent,#000b); }
.card-caption > span { font-size:10px; opacity:.75; }
.card-caption h2 { font-size:21px; font-weight:500; letter-spacing:-.04em; margin:8px 0; display:flex; justify-content:space-between; }
.card-caption h2 span { opacity:0; transform:translate(-4px,4px); transition:opacity .3s,transform .3s; }
.work-card:hover h2 span,.work-card:focus-visible h2 span { opacity:1; transform:none; }
.card-caption p { font-size:12px; line-height:1.4; max-width:235px; }
.dark { background:#181820; }.mint { background:#d2e3dd; }.pink { background:#e8cde8; }.lavender { background:#bcafe1; }.sand { background:#dfdacf; }.blue { background:#93a8c6; }.peach { background:#e6b79e; }
.phone .card-art img { height:94%; width:auto; margin-top:40px; box-shadow:none; }
.gallery-footer { max-width:1216px; margin:0 auto; padding:0 24px; display:flex; align-items:center; justify-content:center; font-size:11px; color:var(--muted); }
.gallery-footer button { width:38px; height:38px; background:var(--surface); color:var(--ink); border:1px solid var(--line); border-radius:50%; cursor:pointer; margin:0 3px; }
.draft-footer { border:0; padding:65px 32px 25px; display:flex; justify-content:center; font-size:11px; color:var(--muted); }
.project-preview { width:min(800px,calc(100% - 32px)); max-height:90dvh; border:1px solid var(--line); border-radius:24px; padding:0; background:var(--surface); color:var(--ink); overflow:auto; box-shadow:0 30px 100px #0005; }
.project-preview::backdrop { backdrop-filter:blur(12px); background:#0007; }
.preview-close { position:absolute; right:15px; top:15px; width:35px; height:35px; border-radius:50%; background:#0009; color:white; border:0; cursor:pointer; font-size:24px; z-index:2; }
.preview-image { box-sizing:border-box; padding:32px; width:100%; max-height:52dvh; object-fit:contain; background:#e4e2df; }
.preview-copy { padding:30px; }.preview-company { color:var(--muted); font-size:12px; }.preview-copy h2 { font-size:32px; margin:10px 0; }.preview-description { color:var(--muted); font-size:16px; }.preview-link { display:inline-flex; align-items:center; gap:8px; background:var(--ink); color:var(--paper); padding:11px 18px; border-radius:30px; margin-top:24px; font-size:13px; }
body:not(.experiment-home) main { padding-top:115px; }.project-hero { min-height:0; border-color:var(--line); }.project-hero-copy h1 { font-size:clamp(36px,5vw,65px); }.project-hero-side { background:var(--surface); border-color:var(--line); }.project-hero-side div { border-color:var(--line); }.project-next,.contact,footer { background:var(--paper); color:var(--ink); }.project-next a { font-size:32px; }.about-copy h1 { font-size:clamp(36px,5vw,60px); }.about-copy > p { font-size:18px; }.about-philosophy { background:var(--surface); }.case-study-dialog { background:var(--surface); color:var(--ink); }.case-study-form input { background:var(--paper); color:var(--ink); border-color:var(--line); }
@media(max-width:600px) { .intro { padding-top:125px; padding-bottom:25px; }.intro h1 br { display:none; }.intro > p:last-child { font-size:14px; }.work-gallery { gap:18px; padding-top:35px; }.work-card { flex-basis:270px; height:350px; }.gallery-footer { flex-wrap:wrap; gap:18px; }.floating-nav.site-header { top:16px; }.draft-footer { padding-top:45px; }.menu-profile { padding:14px 60px 14px 20px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }

.floating-nav .menu-profile .profile-avatar { width:44px; height:44px; flex:0 0 44px; }

/* Compact identity becomes the full profile when the navigation opens. */
.floating-nav { --identity-duration:400ms; --identity-ease:cubic-bezier(.22,1,.36,1); }
.floating-nav .menu-profile { position:relative; display:block; height:56px; min-height:56px; padding:0; transition:height var(--identity-duration) var(--identity-ease),min-height var(--identity-duration) var(--identity-ease); }
.floating-nav .menu-profile > div { position:absolute; left:24px; top:17px; transform:translate(0,0); transition:transform var(--identity-duration) var(--identity-ease); }
.floating-nav .menu-profile strong { display:block; font-size:17px; line-height:22px; }
.floating-nav .menu-profile small { opacity:0; visibility:hidden; transform:translateY(-4px); transition:opacity var(--identity-duration) var(--identity-ease),transform var(--identity-duration) var(--identity-ease),visibility var(--identity-duration); }
.floating-nav .menu-profile .profile-avatar { position:absolute; left:24px; top:18px; opacity:0; visibility:hidden; transform:scale(.8); transition:opacity var(--identity-duration) var(--identity-ease),transform var(--identity-duration) var(--identity-ease),visibility var(--identity-duration); }
.floating-nav .menu-toggle { top:10px; transition:top var(--identity-duration) var(--identity-ease); }
.floating-nav:has(.menu-toggle[aria-expanded=true]) .menu-profile { height:80px; min-height:80px; }
.floating-nav:has(.menu-toggle[aria-expanded=true]) .menu-profile > div { transform:translate(58px,2px); }
.floating-nav:has(.menu-toggle[aria-expanded=true]) .menu-profile small { opacity:1; visibility:visible; transform:translateY(0); }
.floating-nav:has(.menu-toggle[aria-expanded=true]) .profile-avatar { opacity:1; visibility:visible; transform:scale(1); }
.floating-nav:has(.menu-toggle[aria-expanded=true]) .menu-toggle { top:22px; }

/* Give portrait phone mockups breathing room in the project preview. */
.project-preview.preview-phone .preview-image { box-sizing:border-box; height:52dvh; padding:32px; object-fit:contain; }

.menu-links a { display:flex; align-items:center; justify-content:center; gap:6px; }
.gallery-footer button { display:inline-flex; align-items:center; justify-content:center; vertical-align:middle; }

@media(max-width:600px) { .preview-image,.project-preview.preview-phone .preview-image { padding:24px; } }

.preview-details { margin-top:24px; }
.preview-details dl { display:grid; grid-template-columns:1fr 1fr; gap:20px 28px; margin:0; }
.preview-details dl > div { border-top:1px solid var(--line); padding-top:14px; }
.preview-details dt { color:var(--muted); font-size:12px; margin-bottom:7px; }
.preview-details dd { margin:0; font-size:14px; line-height:1.6; }
.preview-details .text-link { font-size:14px; }
.case-entry-locked main,.case-entry-locked .floating-nav,.case-entry-locked footer { visibility:hidden; }
.case-entry-locked .case-study-dialog::backdrop { background:var(--paper); backdrop-filter:none; }
@media(max-width:500px) { .preview-details dl { grid-template-columns:1fr; gap:16px; } }

.pilot-signal-map p span { color:var(--ink); }

.pilot-story #origin { border-top:0; }
.project-page-zeal .project-hero-side { background:var(--surface); color:var(--ink); }

:root:not([data-theme="dark"]) .about-stack-photos img:first-child { filter:brightness(0) invert(.125); }
:root[data-theme="dark"] .about-stack-photos img:first-child { filter:brightness(0) invert(1); }

/* Full bleed artwork for the two visual project covers. */
.friends-card .card-art img { width:100%; height:100%; object-fit:cover; border-radius:0; box-shadow:none; }
.lucid-card { background:#292a2c; }
.lucid-composition { position:relative; background:radial-gradient(ellipse at 70% 35%, #454649 0%, #292a2c 65%, #202123 100%); }
.lucid-composition img { position:absolute; height:auto; border-radius:0; box-shadow:none; object-fit:contain; }
.lucid-composition .lucid-wheel { width:91%; left:-22%; top:-5%; transform:rotate(-16deg); }
.lucid-composition .lucid-seat { width:133%; right:-3%; top:23%; transform:rotate(-8deg); }
.lucid-card:hover .lucid-wheel { transform:rotate(-16deg) scale(1.04); }
.lucid-card:hover .lucid-seat { transform:rotate(-8deg) scale(1.04); }
.lucid-card .card-caption { background:linear-gradient(transparent, #161719e8); }

.project-preview.preview-lucid[open] { display:flex; flex-direction:column; }
.preview-lucid .preview-copy { order:1; padding:30px; }
.preview-lucid .preview-image { order:0; background:var(--surface); max-height:52dvh; height:auto; padding:32px; flex-shrink:0; }
.preview-lucid .preview-gallery { order:3; padding:0 32px 32px; background:var(--surface); }
.preview-gallery figure { margin:0 0 28px; }
.preview-gallery img { display:block; width:100%; height:auto; max-height:500px; object-fit:contain; }
.preview-gallery figcaption { font-size:12px; color:#555; margin-top:12px; }
.preview-lucid .preview-close { order:-1; position:sticky; top:15px; align-self:flex-end; margin:15px 15px -50px 0; flex-shrink:0; }
.preview-lucid .preview-copy h2 { padding-right:30px; }


.preview-lucid .preview-intro { order:2; padding:0 32px 32px; }
.preview-intro h3 { font-size:20px; margin:0 0 12px; }
.preview-intro p { font-size:16px; line-height:1.65; color:var(--muted); margin:0; }

/* Keep the long Lucid preview scrollable without a visible scrollbar. */
.project-preview.preview-lucid { scrollbar-width:none; }
.project-preview.preview-lucid::-webkit-scrollbar { display:none; }

/* Toggle motion from transitions.dev, with sun and moon theme controls. */
:root {
  --toggle-dur: 350ms;
  --toggle-travel: 14.66px;
  --toggle-ov1: 1px;
  --toggle-ov2: 0px;
  --toggle-track: 0ms;
  --toggle-ease: cubic-bezier(0.34, 1.35, 0.64, 1);
}

.t-toggle { transition: background var(--toggle-track) var(--toggle-ease); }
.t-toggle-thumb { translate: 0 0; will-change: translate; }
.t-toggle[data-on="true"] .t-toggle-thumb { translate: var(--toggle-travel) 0; }
.t-toggle.is-init[data-on="true"] .t-toggle-thumb { animation: t-toggle-on var(--toggle-dur) var(--toggle-ease) both; }
.t-toggle.is-init[data-on="false"] .t-toggle-thumb { animation: t-toggle-off var(--toggle-dur) var(--toggle-ease) both; }
@keyframes t-toggle-on {
  0% { translate: 0 0; }
  55% { translate: calc(var(--toggle-travel) + var(--toggle-ov1)) 0; }
  80% { translate: calc(var(--toggle-travel) - var(--toggle-ov2)) 0; }
  100% { translate: var(--toggle-travel) 0; }
}
@keyframes t-toggle-off {
  0% { translate: var(--toggle-travel) 0; }
  55% { translate: calc(0px - var(--toggle-ov1)) 0; }
  80% { translate: var(--toggle-ov2) 0; }
  100% { translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .t-toggle-thumb { animation: none !important; }
}

.theme-toggle.t-toggle { --toggle-travel:30px; --toggle-track:200ms; position:relative; display:flex; align-items:center; justify-content:space-around; width:66px; height:36px; padding:3px; border:1px solid #ffffff24; border-radius:999px; background:#ffffff18; }
.theme-toggle.t-toggle[data-on="true"] { background:#181818; }
.theme-toggle .t-toggle-thumb { position:absolute; left:3px; top:3px; width:28px; height:28px; border-radius:50%; background:#f5f4f1; box-shadow:0 1px 4px #0003; }
.theme-toggle svg { position:absolute; top:9px; left:9px; z-index:1; width:16px; height:16px; color:#aaa; pointer-events:none; }
.theme-toggle[data-on="false"] .theme-sun, .theme-toggle[data-on="true"] .theme-moon { color:#252524; }
.theme-toggle:focus-visible { outline:2px solid white; outline-offset:4px; }
.about-page .project-next { justify-content:flex-end; }

.theme-toggle .theme-moon { left:39px; }
.prototype-link { border:0; font-family:inherit; }
.prototype-link:disabled { cursor:default; }

.work-gallery { position:relative; padding-left:24px; padding-right:24px; }
.prototype-embed { display:block; width:100%; height:clamp(420px,65vw,760px); border:1px solid var(--line); border-radius:12px; background:var(--surface); }

.preview-pregames .preview-gallery { padding:0 30px 30px; background:var(--surface); }
.pregames-prototype h3 { font-size:20px; margin:0 0 18px; }
.preview-pregames .prototype-embed { height:620px; max-height:75dvh; }

.preview-prototype-link { display:inline-flex; align-items:center; justify-content:center; padding:10px 18px; margin:24px 0 0 12px; border:1px solid var(--line); border-radius:30px; color:var(--ink); font-size:13px; background:transparent; }
.preview-prototype-link:hover { background:var(--paper); border-color:var(--muted); }
.preview-prototype-link:focus-visible { outline:2px solid var(--ink); outline-offset:3px; }

/* Fit the homepage to the viewport, reserving space for controls and footer. */
body.experiment-home { height:100dvh; min-height:0; overflow:hidden; display:flex; flex-direction:column; }
.experiment-home > main { flex:1; min-height:0; display:flex; flex-direction:column; }
.experiment-home .intro { flex:none; margin:0 auto; padding:clamp(100px, 10dvh, 145px) 24px 20px; }
.experiment-home .work-gallery { flex:none; margin-top:auto; padding-top:30px; padding-bottom:30px; }
.experiment-home .work-card { height:clamp(180px, 35dvh, 380px); }
.experiment-home .gallery-footer { flex:none; width:100%; margin:0 auto; }
.experiment-home .draft-footer { flex:none; padding:24px 24px clamp(24px, 7dvh, 110px); }
@media (max-height:760px) {
 .experiment-home .intro { padding-top:100px; padding-bottom:8px; }
 .experiment-home .intro-eyebrow { margin-bottom:10px; }
 .experiment-home .intro > p:last-child { margin-top:12px; }
 .experiment-home .work-gallery { padding-top:24px; padding-bottom:24px; }
 .experiment-home .draft-footer { padding:12px 24px; }
}
@media (max-height:600px) {
 .experiment-home .intro { padding-top:90px; }
 .experiment-home .intro h1 { font-size:24px; }
 .experiment-home .intro-eyebrow { margin-bottom:6px; }
 .experiment-home .intro > p:last-child { font-size:12px; margin-top:8px; }
 .experiment-home .work-card { height:160px; }
 .experiment-home .work-gallery { padding-top:18px; padding-bottom:18px; }
 .experiment-home .draft-footer { padding:8px 24px; }
}

.experiment-home .intro { transform:translateY(clamp(8px, 2dvh, 28px)); }

/* Keep the close control keyboard-accessible without the red accent ring. */
.preview-close:focus-visible { outline:2px solid var(--ink); outline-offset:3px; }

/* Pilot brand cover and a standalone display inside its project preview. */
.pilot-card { background:#252629; }
.pilot-cover { position:relative; background:linear-gradient(180deg,#15161920,#15161930 50%,#151619b0),url('./assets/pilot-aircraft.png') center/cover; }
.pilot-cover .pilot-cover-logo { background:#000; position:absolute; top:50%; left:50%; width:140px; height:140px; object-fit:contain; border-radius:24px; box-shadow:none; transform:translate(-50%,-50%); transition:box-shadow .3s ease; }
.work-card.pilot-card:hover .pilot-cover-logo,.work-card.pilot-card:focus-visible .pilot-cover-logo { transform:translate(-50%,-50%); box-shadow:0 12px 28px #0006; }

.pilot-card .card-caption { background:linear-gradient(transparent,#141517ed); }
.project-preview.preview-pilot-overview .preview-image { display:block; width:calc(100% - 64px); height:auto; max-height:52dvh; margin:32px 32px 0; padding:0; border:8px solid #252629; border-bottom:22px solid #bfc1c4; border-radius:14px; background:#252629; box-shadow:0 0 0 1px #999b9e,0 16px 32px #0003; }
@media(max-width:600px) { .project-preview.preview-pilot-overview .preview-image { width:calc(100% - 40px); margin:24px 20px 0; border-width:5px; border-bottom-width:16px; border-radius:9px; } }

.insights-card .card-art img { width:100%; height:100%; object-fit:cover; border-radius:0; box-shadow:none; }

/* Pregames poster uses the original brand artwork and event photography. */
.pregames-poster { position:relative; isolation:isolate; background:#02050e url('./assets/friends-dark-gradient.jpg') center/cover; }
.pregames-poster::before { content:""; position:absolute; inset:26% 0 0; z-index:-1; background:url('./assets/pregames-party.jpg') 48% center/cover; mask-image:linear-gradient(transparent,#000 22%); }
.pregames-card .card-art .pregames-logo,.pregames-poster .pregames-logo { position:absolute; top:9%; left:15%; width:70%; height:auto; max-width:none; margin:0; border-radius:0; box-shadow:none; mix-blend-mode:screen; transform:none; }
.work-card.pregames-card:hover .pregames-logo { transform:none; }
.pregames-card .card-caption { background:linear-gradient(transparent,#000000e8); }
.project-preview.preview-pregames > .preview-image { display:none; }
.project-preview > .pregames-poster { height:clamp(280px,48dvh,520px); width:100%; flex-shrink:0; overflow:hidden; }
.project-preview > .pregames-poster .pregames-logo { width:44%; left:28%; top:6%; }

/* Match the Pilot popup's screen preview in the carousel. */
.pilot-screen-cover { background:#e4e2df; padding:22px 14px 66px; }
.pilot-screen-cover img { width:100%; height:auto; box-sizing:border-box; border:5px solid #252629; border-bottom:14px solid #bfc1c4; border-radius:8px; box-shadow:0 0 0 1px #999b9e,0 14px 26px #0003; }

/* Popup hero artwork reaches the dialog edges in every project. */
.project-preview > .preview-image,
.project-preview.preview-phone > .preview-image,
.project-preview.preview-pilot-overview > .preview-image,
.project-preview.preview-lucid > .preview-image { display:block; width:100%; height:auto; max-height:none; margin:0; padding:0; border:0; border-radius:0; box-shadow:none; object-fit:cover; }
.project-preview.preview-pregames > .preview-image,
.project-preview.preview-lucid > .preview-image { display:none; }
.project-preview > .lucid-composition { order:0; width:100%; height:auto; aspect-ratio:8 / 5; overflow:hidden; flex-shrink:0; }
.project-preview > .lucid-composition .lucid-wheel { width:65%; left:-10%; top:-20%; }
.project-preview > .lucid-composition .lucid-seat { width:90%; right:-10%; top:0; }
.pregames-poster { background:#111; }
.pregames-poster::before { inset:0; mask-image:none; }
.project-preview .preview-gallery { padding-left:0; padding-right:0; }
.project-preview .preview-gallery figcaption { padding-inline:32px; }

/* Shared Pilot brand art, inset Lucid objects, and supplied Pregames mockups. */
.project-preview.preview-pilot-overview > .preview-image { display:none; }
.project-preview > .pilot-cover { position:relative; height:clamp(300px,52dvh,520px); width:100%; overflow:hidden; }
.project-preview > .pilot-cover .pilot-cover-logo { width:140px; height:140px; }
.project-preview > .lucid-composition .lucid-wheel { width:57%; left:0; top:0; }
.project-preview > .lucid-composition .lucid-seat { width:73%; right:0; top:5%; }
.pregames-card .card-art { background:#000; }
.pregames-card .card-art img { width:100%; height:100%; object-fit:contain; object-position:center; border-radius:0; box-shadow:none; }
.project-preview.preview-pregames > .preview-image { display:block; background:#000; width:100%; height:auto; max-height:none; padding:0; margin:0; object-fit:contain; }

/* Original photography, wordmark, and product screens form one Pregames cover. */
.pregames-card .pregames-composite,
.project-preview > .pregames-composite { position:relative; isolation:isolate; overflow:hidden; background:#000 url('./assets/pregames-party.jpg') 42% center/cover; }
.pregames-composite::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(180deg,#00000044 0%,#00000033 24%,#000000c9 78%,#000000ee 100%); }
.pregames-card .pregames-composite .pregames-wordmark,
.pregames-composite .pregames-wordmark { position:absolute; width:64%; height:auto; top:3%; left:18%; object-fit:contain; border:0; border-radius:0; box-shadow:none; mix-blend-mode:screen; transform:none; }
.pregames-card .pregames-composite .pregames-phones,
.pregames-composite .pregames-phones { position:absolute; width:79%; height:67%; top:27%; left:10.5%; object-fit:contain; border:0; border-radius:0; box-shadow:none; filter:drop-shadow(0 12px 14px #0008); transform:none; }
.work-card.pregames-card:hover .pregames-wordmark { transform:none; }
.work-card.pregames-card:hover .pregames-phones { transform:scale(1.03); }
.project-preview.preview-pregames > .preview-image { display:none; }
.project-preview > .pregames-composite { width:100%; height:clamp(380px,65dvh,640px); flex-shrink:0; }
.project-preview > .pregames-composite .pregames-wordmark { width:35%; left:5%; top:8%; }
.project-preview > .pregames-composite .pregames-phones { width:56%; height:88%; left:42%; top:8%; }
@media(max-width:600px) {
 .project-preview > .pregames-composite { height:420px; }
 .project-preview > .pregames-composite .pregames-wordmark { width:58%; left:21%; top:2%; }
 .project-preview > .pregames-composite .pregames-phones { width:75%; height:72%; left:12.5%; top:25%; }
}

/* Keep the Pregames phones upright and the brand mark small and centered. */
.pregames-card .pregames-composite .pregames-wordmark,
.project-preview > .pregames-composite .pregames-wordmark { width:26%; height:auto; left:37%; top:5%; }
.pregames-card .pregames-composite .pregames-phones,
.project-preview > .pregames-composite .pregames-phones { transform:none; }
.work-card.pregames-card:hover .pregames-phones { transform:scale(1.03); }

/* Center the phone pair in every Pregames preview. */
.pregames-card .pregames-composite .pregames-phones,
.project-preview > .pregames-composite .pregames-phones { left:0; right:0; margin-inline:auto; }
.project-preview > .pregames-composite .pregames-phones { top:20%; height:78%; }

/* Blend the phones into the same black fade as the party photograph. */
.pregames-composite::after { content:""; position:absolute; inset:0; z-index:2; pointer-events:none; background:linear-gradient(180deg,transparent 45%,#00000030 65%,#000000a6 85%,#000 100%); }
.pregames-card .pregames-composite .pregames-wordmark,
.project-preview > .pregames-composite .pregames-wordmark { width:19%; left:40.5%; top:1.5%; z-index:3; }

/* Give the Pregames screens more presence while keeping the pair centered. */
.pregames-card .pregames-composite .pregames-phones { width:88%; height:80%; top:16%; object-position:center top; }
.project-preview > .pregames-composite .pregames-phones { width:64%; height:89%; top:19%; object-position:center top; }
@media(max-width:600px) {
 .project-preview > .pregames-composite .pregames-phones { width:86%; height:89%; top:17%; }
}

/* Grayscale only the photography layer, preserving the colored screens. */
.pregames-card .pregames-composite,
.project-preview > .pregames-composite { background:#000; }
.pregames-composite::before { background:linear-gradient(180deg,#00000044 0%,#00000033 24%,#000000c9 78%,#000000ee 100%),url('./assets/pregames-party.jpg') 42% center/cover; filter:grayscale(1); }


/* Friends Activity: supplied screens on the original colorful brand gradient. */
.project-preview.preview-friends > .preview-image { display:none; }
.project-preview > .friends-composite { position:relative; isolation:isolate; width:100%; height:clamp(380px,65dvh,640px); overflow:hidden; flex-shrink:0; background:#02050e url('./assets/friends-dark-gradient.jpg') center/cover; }
.friends-composite .friends-wordmark { position:absolute; width:19%; height:auto; left:40.5%; top:1.5%; mix-blend-mode:screen; z-index:2; }
.friends-composite .friends-phones { position:absolute; width:64%; height:89%; top:19%; left:0; right:0; margin-inline:auto; object-fit:contain; object-position:center top; filter:drop-shadow(0 12px 14px #0005); }
@media(max-width:600px) {
 .project-preview > .friends-composite { height:420px; }
 .friends-composite .friends-phones { width:86%; top:17%; }
}

/* Shared Friends Activity artwork with room below the complete phones. */
.project-preview .preview-company { display:none; }
.friends-card .friends-composite { position:relative; width:100%; height:100%; overflow:hidden; background:#02050e url('./assets/friends-dark-gradient.jpg') center/cover; }
.friends-card .friends-composite .friends-wordmark { position:absolute; width:19%; height:auto; left:40.5%; top:1.5%; border-radius:0; box-shadow:none; transform:none; }
.friends-card .friends-composite .friends-phones { position:absolute; width:88%; height:68%; left:0; right:0; top:15%; margin-inline:auto; object-fit:contain; object-position:center top; border-radius:0; box-shadow:none; transform:none; }
.work-card.friends-card:hover .friends-wordmark { transform:none; }
.work-card.friends-card:hover .friends-phones { transform:scale(1.03); }
.project-preview > .friends-composite .friends-phones { top:19%; height:74%; object-fit:contain; object-position:center top; }
@media(max-width:600px) { .project-preview > .friends-composite .friends-phones { top:17%; height:76%; } }

/* Match popup description typography to its title, retaining muted color. */
.preview-copy h2, .preview-copy .preview-description { font-size:32px; font-weight:600; line-height:1.02; letter-spacing:-.035em; }
.preview-copy .preview-description { color:var(--muted); }

/* Company groups open by default, with project-level access indicators. */
.project-company { min-width:0; }
.project-company summary { display:flex; align-items:center; gap:12px; padding:10px 12px; border-radius:12px; background:#ffffff08; cursor:pointer; list-style:none; }
.project-company summary::-webkit-details-marker { display:none; }
.project-company summary strong { font-size:14px; font-weight:600; }
.project-company .company-chevron { margin-left:auto; flex:none; color:#aaa; }
.project-company[open] .company-chevron { transform:rotate(90deg); }
.project-company summary:hover { background:#ffffff17; }
.project-company summary:focus-visible { outline:2px solid #fff; outline-offset:2px; }
.company-projects { padding:4px 0 6px; }
.project-menu .company-projects a { padding:10px 12px 10px 60px; background:transparent; font-size:13px; font-weight:400; line-height:1.35; gap:14px; }
.project-menu .company-projects a:hover { transform:none; background:#ffffff0c; }
.project-menu .company-projects a span { flex:none; width:18px; height:18px; }

/* Accordion motion adapted from transitions.dev; connectors follow each project. */
.project-company { --acc-expand:250ms; --acc-collapse:250ms; --acc-chevron:250ms; --acc-ease:cubic-bezier(.22,1,.36,1); }
.project-company .t-acc-head { display:flex; align-items:center; gap:12px; padding:10px 12px; border:0; width:100%; border-radius:12px; background:#ffffff08; color:inherit; font:inherit; text-align:left; cursor:pointer; }
.project-company .t-acc-head strong { font-size:14px; font-weight:600; }
.project-company .t-acc-head:hover { background:#ffffff17; }
.project-company .t-acc-head:focus-visible { outline:2px solid #fff; outline-offset:2px; }
.t-acc-panel { display:grid; grid-template-rows:0fr; transition:grid-template-rows var(--acc-collapse) var(--acc-ease); }
.t-acc[data-open="true"] .t-acc-panel { grid-template-rows:1fr; transition-duration:var(--acc-expand); }
.t-acc-panel-inner { min-height:0; overflow:hidden; opacity:0; transition:opacity var(--acc-collapse) var(--acc-ease); }
.t-acc[data-open="true"] .t-acc-panel-inner { opacity:1; }
.project-company .company-chevron { transition:transform var(--acc-chevron) var(--acc-ease); }
.project-company[data-open="true"] .company-chevron { transform:rotate(90deg); }
.company-projects a { position:relative; }
.company-projects a::before { content:""; position:absolute; left:29px; top:-3px; width:18px; height:calc(50% + 3px); border-left:1px solid #ffffff30; border-bottom:1px solid #ffffff30; border-bottom-left-radius:9px; pointer-events:none; }
@media(prefers-reduced-motion:reduce) { .t-acc-panel,.t-acc-panel-inner,.project-company .company-chevron { transition:none; } }

.project-menu .company-projects a span { display:flex; align-items:center; justify-content:center; }
.project-menu .company-projects a span svg { width:16px; height:16px; stroke-width:2.25; }

/* Touch and mouse taps do not leave keyboard focus outlines behind. */
html[data-input="pointer"] :is(button,a,[role="button"]):focus { outline:none; }

/* Keep the About page on the same edges as the floating navigation. */
.about-page main { width:min(var(--navigation-width),calc(100% - 32px)); margin-inline:auto; }
.about-page .about { padding-inline:0; }
.about-page .about-copy, .about-page .about-copy h1, .about-page .about-copy > p { max-width:none; width:100%; }

.about-page > .project-next { width:100%; }
.pilot-iteration-screens .pilot-story-figure img { display:block; aspect-ratio:auto; }

.project-menu .company-projects a[data-unlocked="true"] span { color:#fff; }

/* Pilot case study refinements. */
[data-protected-article]:focus { outline:none; }
.project-page-pilot .pilot-signal-map { border:0; }
.pilot-intro-no-label > div { grid-column:2; }
.pilot-question-map dt { display:flex; align-items:center; gap:14px; }
.pilot-feature-number { display:inline-flex; flex:none; align-items:center; justify-content:center; width:30px; height:30px; border-radius:50%; background:var(--line); color:var(--ink); font-size:13px; }
.pilot-logo-carousel { overflow:hidden; }
.pilot-logo-track { display:flex; width:max-content; animation:pilot-logos-scroll 32s linear infinite; }
.pilot-logo-track ul { min-width:0; flex:none; gap:24px; padding:16px 12px; }
.pilot-logo-carousel:hover .pilot-logo-track { animation-play-state:paused; }
@keyframes pilot-logos-scroll { to { transform:translateX(-50%); } }
@media(max-width:800px) { .pilot-intro-no-label > div { grid-column:1 / -1; } }
@media(prefers-reduced-motion:reduce) { .pilot-logo-track { animation:none; } .pilot-logo-carousel { overflow-x:auto; } .pilot-logo-track ul[aria-hidden] { display:none; } }

.project-page-pilot .pilot-map-line { display:block; width:1px; height:28px; margin:20px auto; background:var(--muted); }
.project-page-pilot #interaction-model, .project-page-pilot #product-tracker { border-top:0; }

.project-page-pilot #interaction-model > .pilot-flight-deck-overview { width:100%; }

/* Case-study cover links to the full interactive prototype. */
.prototype-preview-link {position:relative;display:block;overflow:hidden;border-radius:12px;border:1px solid rgba(128,128,128,.2);}
.prototype-preview-link img {display:block;width:100%;height:auto;transition:filter 180ms ease;}
.prototype-preview-cta {position:absolute;left:50%;bottom:24px;transform:translateX(-50%);display:flex;align-items:center;gap:16px;white-space:nowrap;padding:14px 22px;border-radius:999px;background:#fff;color:#222;box-shadow:0 4px 24px #0003;font-family:inherit;font-weight:500;font-size:14px;line-height:1.3;transition:box-shadow 180ms ease;}
.prototype-preview-link:hover img {filter:brightness(.94);}
.prototype-preview-link:hover .prototype-preview-cta {box-shadow:0 6px 28px #0004;}
.prototype-preview-link:focus-visible {outline:3px solid #0066ff;outline-offset:5px;}
.prototype-preview figcaption {text-align:center;margin-top:14px;font-size:12px;opacity:.65;}
@media(max-width:600px){.prototype-preview-cta{bottom:12px;padding:10px 16px;font-size:12px;}.prototype-preview figcaption{font-size:11px;}}
@media(prefers-reduced-motion:reduce){.prototype-preview-link img,.prototype-preview-cta{transition:none;}}

.pilot-story > .prototype-preview {margin:48px auto 0;width:min(1152px,calc(100% - 48px));}

.case-prototype-actions {display:flex;flex-wrap:wrap;gap:12px;margin-top:24px;}
.case-prototype-actions .secondary-prototype {margin:0;min-height:42px;background:var(--surface);color:var(--ink);border:1px solid var(--line);gap:10px;transition:background 160ms ease,border-color 160ms ease;}
.case-prototype-actions .secondary-prototype:hover {background:var(--paper);border-color:var(--muted);}
.case-prototype-actions .secondary-prototype:focus-visible {outline:2px solid var(--ink);outline-offset:3px;}
.case-prototype-actions .figma-icon {flex:none;}
@media(prefers-reduced-motion:reduce){.case-prototype-actions .secondary-prototype{transition:none;}}

/* Pilot case-study entry points for the local onboarding prototype. */
.project-page-pilot .onboarding-preview{margin:24px 0 20px;min-width:0}
.project-page-pilot .onboarding-preview a{display:block;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.project-page-pilot .onboarding-preview img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover}
.project-page-pilot .onboarding-preview figcaption{margin-top:12px;color:var(--muted);font-size:13px;line-height:1.5}
.project-page-pilot .prototype-primary{background:var(--ink);color:var(--surface);border:1px solid var(--ink);text-decoration:none;align-self:flex-start;max-width:100%;padding:9px 14px;min-height:0;gap:8px;font-size:12px;line-height:18px}
.project-page-pilot .prototype-primary .icon{width:16px;height:16px;flex-shrink:0}
.project-page-pilot .prototype-primary:hover{opacity:.85}
.project-page-pilot .prototype-primary:focus-visible,.onboarding-preview a:focus-visible{outline:2px solid var(--ink);outline-offset:4px}

.project-page-pilot .pilot-story .prototype-primary{margin-top:24px}

.project-page-pilot .insights-hero-preview img {aspect-ratio:16/9;object-fit:contain;}

.project-page-pilot .insights-prototype-button {padding:9px 14px;min-height:0;gap:8px;font-size:12px;line-height:18px;}
.project-page-pilot .insights-prototype-button .icon {width:16px;height:16px;}

/* Follow the case study's explicit theme, including its manual toggle. */
.project-page-pilot .onboarding-preview .onboarding-preview-dark{display:none}
[data-theme="dark"] .project-page-pilot .onboarding-preview .onboarding-preview-dark{display:block}
[data-theme="dark"] .project-page-pilot .onboarding-preview .onboarding-preview-light{display:none}

/* Follow the portfolio's explicit theme, including its saved preference. */
.project-page-pilot .insights-hero-preview .insights-preview-dark {display:none;}
:root[data-theme="dark"] .insights-hero-preview .insights-preview-light {display:none;}
:root[data-theme="dark"] .insights-hero-preview .insights-preview-dark {display:block;}
