:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --paper: #f5f5f7;
  --blue: #0071e3;
  --jersey: #e23b34;
  --accent: #161616;
  --radius: 28px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #000; font-family: var(--font); -webkit-font-smoothing: antialiased; }
button, a { color: inherit; font: inherit; }
button { cursor: pointer; }
a { text-decoration: none; }

.nav {
  position: fixed; z-index: 50; inset: 0 0 auto; height: 48px; padding: 0 max(22px, calc((100vw - 980px) / 2));
  display: flex; align-items: center; justify-content: space-between; color: rgba(255,255,255,.88);
  background: rgba(0,0,0,.55); border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: saturate(180%) blur(20px);
  transition: color .35s, background .35s, border-color .35s;
}
.nav.nav-light { color: rgba(29,29,31,.9); background: rgba(250,250,252,.82); border-color: rgba(0,0,0,.08); }
.brand { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.brand-mark { position: relative; width: 58px; height: 24px; display: block; flex: 0 0 auto; }
.brand-logo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; transition: opacity .35s ease; }
.brand-logo-color { opacity: 0; }
.brand-logo-white { opacity: 1; }
.nav.nav-light .brand-logo-color { opacity: 1; }
.nav.nav-light .brand-logo-white { opacity: 0; }
.nav nav { display: flex; gap: 32px; font-size: 12px; }
.nav nav a { opacity: .78; transition: opacity .2s; }
.nav nav a:hover { opacity: 1; }
.nav-action { padding: 5px 12px; color: #fff; border-radius: 980px; background: var(--blue); font-size: 12px; }

.hero { position: relative; min-height: 112vh; padding: 120px 24px 80px; overflow: hidden; display: flex; justify-content: center; background: #000; }
.hero-media { position: absolute; inset: 0; background: linear-gradient(180deg,#000 0,transparent 25%,transparent 68%,#000 96%), url("assets/world-cup-hero.png") center 34% / cover no-repeat; transform: scale(var(--hero-scale,1.04)) translateY(var(--hero-y,0)); transform-origin: center 35%; filter: brightness(.72) saturate(.78); will-change: transform; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center 42%,transparent 22%,rgba(0,0,0,.2) 65%,rgba(0,0,0,.7)); pointer-events: none; }
.hero-noise { display: none; }
.hero-copy { position: relative; z-index: 2; width: 100%; text-align: center; color: #f5f5f7; opacity: var(--hero-opacity,1); transform: translateY(var(--copy-y,0)) scale(var(--copy-scale,1)); will-change: transform, opacity; }
.eyebrow { margin: 0 0 16px; color: #a1a1a6; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.eyebrow span { display: none; }
.hero h1, .archive h2, .ai-lab h2, .studio h2, .story h2 { margin: 0; font-weight: 600; letter-spacing: -.055em; line-height: .98; }
.hero h1 { font-size: clamp(58px, 7.2vw, 104px); }
.hero h1 em, .studio h2 em, .story h2 em { font-style: normal; color: inherit; }
.hero-intro { margin: 24px auto 22px; color: rgba(245,245,247,.78); font-size: clamp(17px,1.5vw,21px); line-height: 1.55; letter-spacing: -.025em; }
.cta { display: inline-flex; align-items: center; gap: 7px; color: #2997ff; font-size: 17px; }
.cta:hover span { text-decoration: underline; }
.cta b { font-size: 28px; font-weight: 300; line-height: .7; }
.match-meta { display: none; }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 25px; transform: translateX(-50%); color: rgba(255,255,255,.55); }
.scroll-cue span { display: none; }
.scroll-cue i { display: block; width: 22px; height: 38px; border: 1px solid rgba(255,255,255,.4); border-radius: 15px; }
.scroll-cue i::after { content: ""; display: block; width: 3px; height: 7px; margin: 8px auto; border-radius: 3px; background: #fff; animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { transform: translateY(0); opacity: 0; } 35% { opacity: 1; } 80% { transform: translateY(13px); opacity: 0; } 100% { opacity: 0; } }

.archive { position: relative; min-height: 1050px; padding: 130px 24px 90px; overflow: hidden; color: var(--ink); background: #f5f5f7; }
.archive::before { content: ""; position: absolute; left: 50%; top: 320px; width: 780px; height: 500px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle,rgba(0,113,227,.09),transparent 68%); filter: blur(25px); pointer-events: none; }
.archive-head { position: relative; z-index: 3; max-width: 900px; margin: 0 auto; text-align: center; }
.archive-head .eyebrow { color: #bf4800; font-size: 17px; }
.archive h2 { font-size: clamp(52px,7vw,88px); }
.archive h2 em { font-style: normal; background: linear-gradient(90deg,#0071e3,#5e5ce6,#bf5af2); -webkit-background-clip: text; color: transparent; }
.archive-head > p:last-child { margin: 25px auto 0; max-width: 600px; color: var(--muted); font-size: 18px; line-height: 1.55; letter-spacing: -.02em; }
.carousel-stage { position: relative; z-index: 2; max-width: 1180px; height: 650px; margin: 35px auto 0; perspective: 1250px; perspective-origin: 50% 43%; }
.carousel-glow { position: absolute; left: 50%; top: 42%; width: 520px; height: 340px; transform: translate(-50%,-50%); border-radius: 50%; background: rgba(255,255,255,.96); filter: blur(42px); }
.carousel-ring { --ring-angle: 0deg; position: absolute; left: 50%; top: 45%; width: 226px; height: 286px; margin: -143px 0 0 -113px; transform-style: preserve-3d; transform: rotateX(-7deg) rotateY(var(--ring-angle)); will-change: transform; }
.carousel-card { position: absolute; inset: 0; display: block; transform: rotateY(calc(var(--i) * 60deg)) translateZ(395px); transform-style: preserve-3d; backface-visibility: hidden; outline: none; }
.cover-shell { position: relative; display: block; width: 226px; height: 286px; overflow: hidden; border-radius: 3px; background: #111; box-shadow: 0 20px 55px rgba(0,0,0,.18),0 2px 8px rgba(0,0,0,.12); transform: translateY(0) translateZ(0) scale(1); transition: transform .5s cubic-bezier(.2,.8,.2,1),box-shadow .5s,filter .5s; }
.cover-shell::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.3); pointer-events: none; }
.cover-shell img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.cover-action { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 9px 11px; display: flex; justify-content: space-between; align-items: center; border-radius: 980px; color: var(--ink); background: rgba(255,255,255,.88); backdrop-filter: blur(14px); font-size: 10px; font-weight: 600; opacity: 0; transform: translateY(10px); transition: opacity .3s,transform .3s; }
.cover-action b { font-size: 14px; }
.carousel-card:hover .cover-shell,.carousel-card:focus-visible .cover-shell { transform: translateY(-28px) translateZ(25px) scale(1.035); box-shadow: 0 40px 70px rgba(0,0,0,.23),0 8px 18px rgba(0,0,0,.15); filter: saturate(1.08); }
.carousel-card:hover .cover-shell img,.carousel-card:focus-visible .cover-shell img { transform: scale(1.025); }
.carousel-card:hover .cover-action,.carousel-card:focus-visible .cover-action { opacity: 1; transform: none; }
.carousel-floor { position: absolute; left: 50%; top: 58%; width: 900px; height: 230px; transform: translateX(-50%) rotateX(74deg); border-radius: 50%; background: radial-gradient(ellipse,rgba(0,0,0,.12),rgba(0,0,0,.025) 42%,transparent 70%); filter: blur(12px); }
.carousel-toolbar { position: absolute; z-index: 10; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; align-items: center; gap: 24px; }
.carousel-toolbar button { width: 38px; height: 38px; border: 1px solid #d2d2d7; border-radius: 50%; color: #515154; background: rgba(255,255,255,.7); font-size: 25px; font-weight: 300; transition: color .2s,background .2s,transform .2s; }
.carousel-toolbar button:hover { color: #fff; background: var(--ink); transform: scale(1.05); }
.carousel-toolbar span { min-width: 170px; display: flex; flex-direction: column; align-items: center; }
.carousel-toolbar small { color: #86868b; font-size: 8px; letter-spacing: .15em; }
.carousel-toolbar b { margin-top: 5px; font-size: 15px; letter-spacing: -.02em; }

.ai-lab { position: relative; min-height: 880px; padding: 130px 24px; overflow: hidden; color: #f5f5f7; background: #050507; }
.ai-lab::before { content:""; position:absolute; inset:0; opacity:.22; background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px); background-size:64px 64px; mask-image:radial-gradient(circle at 65% 45%,black,transparent 68%); }
.ai-lab-orb { position:absolute; border-radius:50%; filter:blur(10px); opacity:.62; pointer-events:none; }
.ai-lab-orb-one { right:5%; top:8%; width:560px; height:560px; background:radial-gradient(circle at 35% 35%,rgba(0,122,255,.65),rgba(94,92,230,.18) 45%,transparent 70%); }
.ai-lab-orb-two { right:28%; bottom:-28%; width:430px; height:430px; background:radial-gradient(circle,rgba(255,45,85,.38),transparent 68%); }
.ai-lab-inner { position:relative; z-index:2; width:min(1120px,100%); min-height:620px; margin:auto; display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:8vw; }
.ai-lab-copy .eyebrow { color:#64d2ff; font-size:17px; }
.ai-lab h2 { font-size:clamp(52px,6.7vw,88px); }
.ai-lab h2 em { font-style:normal; background:linear-gradient(90deg,#64d2ff,#bf5af2,#ff375f); -webkit-background-clip:text; color:transparent; }
.ai-lab-copy > p:last-of-type { max-width:500px; margin:27px 0 34px; color:#a1a1a6; font-size:18px; line-height:1.62; letter-spacing:-.02em; }
.ai-open { padding:6px 6px 6px 19px; display:inline-flex; align-items:center; gap:22px; border:0; border-radius:980px; color:#fff; background:#0071e3; font-size:14px; font-weight:600; transition:transform .25s,filter .25s; }
.ai-open b { width:36px; height:36px; display:grid; place-items:center; border-radius:50%; color:#0071e3; background:#fff; font-size:16px; }
.ai-open:hover { transform:scale(1.025); filter:brightness(1.1); }
.ai-lab-demo { perspective:1000px; }
.ai-demo-window { position:relative; width:min(430px,100%); aspect-ratio:.82; margin:auto; padding:18px; overflow:hidden; border:1px solid rgba(255,255,255,.14); border-radius:30px; background:linear-gradient(155deg,rgba(255,255,255,.16),rgba(255,255,255,.04)); box-shadow:0 40px 100px rgba(0,0,0,.5),inset 0 1px rgba(255,255,255,.2); backdrop-filter:blur(24px); transform:rotateY(-7deg) rotateX(3deg); }
.ai-demo-head { height:38px; display:flex; align-items:center; gap:10px; color:#c7c7cc; }
.ai-demo-head span { width:8px; height:8px; border-radius:50%; background:#30d158; box-shadow:0 0 14px #30d158; }
.ai-demo-head small { font-size:8px; letter-spacing:.13em; }
.ai-demo-message { position:relative; z-index:2; width:82%; padding:12px 14px; border-radius:16px 16px 16px 4px; color:#e5e5ea; background:rgba(255,255,255,.1); font-size:11px; line-height:1.55; }
.ai-demo-art { position:absolute; left:15px; right:15px; bottom:15px; top:126px; overflow:hidden; border-radius:20px; background:radial-gradient(circle at 50% 25%,#4b4b55,#101012 65%); }
.ai-demo-art img { width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 20px 25px rgba(0,0,0,.4)); }

.ai-modal { position:fixed; z-index:100; inset:0; display:grid; place-items:center; padding:20px; visibility:hidden; opacity:0; transition:opacity .3s,visibility .3s; }
.ai-modal.open { visibility:visible; opacity:1; }
.ai-modal-backdrop { position:absolute; inset:0; width:100%; height:100%; border:0; background:rgba(0,0,0,.62); backdrop-filter:blur(14px); }
.ai-dialog { position:relative; width:min(720px,100%); height:min(780px,calc(100vh - 40px)); display:flex; flex-direction:column; overflow:hidden; border:1px solid rgba(255,255,255,.16); border-radius:28px; color:#f5f5f7; background:rgba(22,22,25,.96); box-shadow:0 45px 120px rgba(0,0,0,.56); transform:translateY(25px) scale(.97); transition:transform .35s cubic-bezier(.2,.8,.2,1); }
.ai-modal.open .ai-dialog { transform:none; }
.ai-dialog-head { min-height:70px; padding:14px 18px; display:flex; align-items:center; gap:11px; border-bottom:1px solid rgba(255,255,255,.1); background:rgba(35,35,38,.78); }
.ai-avatar { width:38px; height:38px; display:grid; place-items:center; border-radius:12px; color:#fff; background:linear-gradient(145deg,#007aff,#af52de,#ff375f); font-size:11px; font-weight:700; }
.ai-dialog-head > div:nth-child(2) { display:flex; flex-direction:column; }
.ai-dialog-head b { font-size:14px; }
.ai-dialog-head small { margin-top:3px; color:#8e8e93; font-size:9px; }
.ai-close { margin-left:auto; width:32px; height:32px; border:0; border-radius:50%; color:#c7c7cc; background:rgba(255,255,255,.08); font-size:20px; line-height:1; }
.ai-chat { flex:1; padding:22px; overflow-y:auto; display:flex; flex-direction:column; gap:16px; scroll-behavior:smooth; }
.chat-row { display:flex; }
.chat-row.user { justify-content:flex-end; }
.chat-bubble { max-width:82%; padding:12px 15px; border-radius:18px; color:#e5e5ea; background:#303035; font-size:13px; line-height:1.58; }
.chat-row.assistant .chat-bubble { border-bottom-left-radius:5px; }
.chat-row.user .chat-bubble { border-bottom-right-radius:5px; color:#fff; background:#0071e3; }
.chat-bubble.loading { display:flex; align-items:center; gap:5px; }
.chat-bubble.loading i { width:6px; height:6px; border-radius:50%; background:#8e8e93; animation:typing 1s infinite alternate; }
.chat-bubble.loading i:nth-child(2) { animation-delay:.2s; }.chat-bubble.loading i:nth-child(3) { animation-delay:.4s; }
@keyframes typing { to { transform:translateY(-5px); background:#fff; } }
.chat-result { width:min(430px,90%); padding:8px; border-radius:20px; background:#303035; }
.chat-result img { display:block; width:100%; max-height:430px; object-fit:cover; border-radius:14px; }
.chat-result-footer { padding:10px 7px 5px; display:flex; align-items:center; justify-content:space-between; gap:12px; color:#c7c7cc; font-size:10px; }
.chat-result-footer a { flex:0 0 auto; color:#64d2ff; }
.prompt-suggestions { padding:0 18px 12px; display:flex; gap:7px; overflow-x:auto; scrollbar-width:none; }
.prompt-suggestions::-webkit-scrollbar { display:none; }
.prompt-suggestions button { flex:0 0 auto; padding:8px 11px; border:1px solid rgba(255,255,255,.14); border-radius:980px; color:#c7c7cc; background:transparent; font-size:9px; }
.prompt-suggestions button:hover { border-color:#64d2ff; color:#64d2ff; }
.ai-compose { margin:0 16px; padding:8px; display:flex; align-items:flex-end; gap:8px; border:1px solid rgba(255,255,255,.13); border-radius:20px; background:#29292d; }
.ai-compose textarea { flex:1; min-height:44px; max-height:120px; padding:10px; resize:none; border:0; outline:0; color:#fff; background:transparent; font:13px/1.45 var(--font); }
.ai-compose textarea::placeholder { color:#77777d; }
.ai-compose button { flex:0 0 auto; height:40px; padding:0 8px 0 14px; display:flex; align-items:center; gap:10px; border:0; border-radius:14px; color:#fff; background:#0071e3; font-size:11px; font-weight:600; }
.ai-compose button b { width:27px; height:27px; display:grid; place-items:center; border-radius:9px; color:#0071e3; background:#fff; font-size:15px; }
.ai-compose button:disabled { opacity:.45; cursor:wait; }
.ai-privacy { margin:9px 0 12px; color:#68686d; font-size:8px; text-align:center; }
body.modal-open { overflow:hidden; }

.studio { position: relative; min-height: 100vh; padding: 150px 24px 120px; color: var(--ink); background: var(--paper); }
.section-head { max-width: 1120px; margin: 0 auto 70px; text-align: center; }
.eyebrow.dark { color: #bf4800; font-size: 17px; }
.studio h2 { font-size: clamp(52px, 7vw, 88px); }
.studio h2 em { background: linear-gradient(90deg,#ff3b30,#bf5af2,#007aff); -webkit-background-clip: text; color: transparent; }
.section-head > p { margin: 28px auto 0; color: var(--muted); font-size: 19px; line-height: 1.55; letter-spacing: -.02em; }
.builder { max-width: 1180px; min-height: 720px; margin: auto; display: grid; grid-template-columns: 250px minmax(450px,1fr) 220px; gap: 12px; }
.controls, .summary, .preview-stage { border: 0; border-radius: var(--radius); background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 14px 50px rgba(0,0,0,.06); }
.controls { padding: 22px; }
.step { border-bottom: 1px solid #e8e8ed; }
.step:last-child { border: 0; }
.step-title { width: 100%; padding: 22px 0; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; border: 0; background: none; text-align: left; }
.step-title span { color: #a1a1a6; font-size: 11px; }
.step-title b { font-size: 14px; font-weight: 600; }
.step-title i { color: #86868b; font-size: 18px; font-style: normal; font-weight: 300; }
.step-content { padding: 0 0 24px 28px; }
.color-options { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch { position: relative; width: 30px; height: 30px; padding: 0; border: 3px solid #fff; border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 1px #d2d2d7; transition: transform .25s, box-shadow .25s; }
.swatch:hover { transform: scale(1.08); }
.swatch.active { box-shadow: 0 0 0 2px var(--blue); }
.pattern-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pattern { padding: 5px; border: 1px solid transparent; border-radius: 10px; background: #f5f5f7; color: #6e6e73; font-size: 9px; text-align: left; transition: border-color .2s, background .2s; }
.pattern.active { color: var(--ink); border-color: var(--blue); background: #fff; }
.pattern-preview { display: block; height: 42px; margin-bottom: 6px; border-radius: 6px; background-color: #aaa79d; }
.pattern-preview.stripes { background: repeating-linear-gradient(90deg,#aaa79d 0 10px,#77746c 10px 11px,#aaa79d 11px 17px,#85827a 17px 18px); }
.pattern-preview.diagonal { background: linear-gradient(145deg,#aaa79d 0 38%,#77746c 39% 51%,#aaa79d 52% 56%,#77746c 57% 59%,#aaa79d 60%); }
.pattern-preview.waves { background-color:#aaa79d; background-image:repeating-radial-gradient(ellipse at 0 50%,transparent 0 8px,#77746c 9px 10px,transparent 11px 18px); }
.collar-options { display: flex; gap: 6px; }
.text-option { flex: 1; padding: 8px 3px; border: 0; border-radius: 980px; color: #6e6e73; background: #f5f5f7; font-size: 10px; }
.text-option.active { color: white; background: var(--ink); }

.preview-stage { position: relative; min-height: 720px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 34%,#fff 0,#f5f5f7 46%,#e8e8ed 100%); perspective: 1100px; }
.preview-stage::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: 8%; height: 18%; border-radius: 50%; background: rgba(0,0,0,.06); filter: blur(40px); transform: rotateX(72deg); }
.stage-top { position: absolute; z-index: 4; top: 25px; left: 28px; right: 28px; display: flex; justify-content: space-between; color: #86868b; font-size: 9px; letter-spacing: .08em; }
.spotlight { position: absolute; top: -20%; width: 70%; height: 80%; border-radius: 50%; background: rgba(255,255,255,.75); filter: blur(55px); }
.jersey-wrap { --kit-scale: 1; position: relative; width: 420px; height: 590px; display: grid; place-items: center; transform: scale(var(--kit-scale)); transition: transform .7s cubic-bezier(.2,.8,.2,1); will-change: transform; touch-action: pan-y; }
.jersey-shadow { position: absolute; bottom: 17px; width: 245px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.15); filter: blur(22px); transform: rotateX(70deg); }
.jersey { position: relative; width: 390px; height: 570px; isolation: isolate; filter: drop-shadow(0 25px 22px rgba(0,0,0,.14)); }
.kit-render { position: absolute; z-index: 1; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; transition: opacity .18s ease, transform .45s cubic-bezier(.2,.8,.2,1); }
.kit-render.changing { opacity: .18; transform: scale(.985); }
.view-tools { position: absolute; z-index: 4; bottom: 24px; display: flex; align-items: center; gap: 26px; }
.view-tools button { width: 34px; height: 34px; border: 0; border-radius: 50%; color: #515154; background: rgba(255,255,255,.75); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.view-tools span { display: flex; min-width: 90px; flex-direction: column; align-items: center; }
.view-tools b { font-size: 11px; letter-spacing: .05em; }
.view-tools small { margin-top: 3px; color: #86868b; font-size: 8px; }
.summary { padding: 30px 24px; }
.summary > p { margin: 0 0 44px; color: #86868b; font-size: 9px; letter-spacing: .12em; }
.summary h3 { margin: 0 0 30px; font-size: 27px; line-height: 1.05; letter-spacing: -.04em; }
.summary-line { display: flex; justify-content: space-between; padding: 15px 0; border-top: 1px solid #e8e8ed; font-size: 11px; }
.summary-line span { color: #86868b; }
.summary-line b { font-weight: 500; }
.save-design { width: 100%; margin: 36px 0 13px; padding: 11px 15px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 980px; color: #fff; background: var(--blue); font-size: 12px; transition: filter .2s, transform .2s; }
.save-design:hover { filter: brightness(1.08); transform: scale(1.015); }
.save-design b { display: none; }
.summary > small { display: block; color: #86868b; font-size: 8px; text-align: center; }

.story { min-height: 105vh; padding: 130px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #f5f5f7; text-align: center; background: linear-gradient(180deg,rgba(0,0,0,.2),#000 92%), url("assets/world-cup-hero.png") center 62% / cover fixed; }
.story .eyebrow { color: rgba(255,255,255,.65); }
.story h2 { max-width: 1000px; font-size: clamp(54px,8vw,108px); }
.story h2 em { background: linear-gradient(90deg,#ff453a,#ff9f0a,#64d2ff); -webkit-background-clip: text; color: transparent; }
.story a { margin-top: 38px; color: #2997ff; font-size: 17px; }
.story a:hover { text-decoration: underline; }
.reveal { opacity: 0; filter: blur(12px); transform: translateY(45px) scale(.985); transition: opacity 1s cubic-bezier(.2,.8,.2,1), transform 1s cubic-bezier(.2,.8,.2,1), filter 1s; }
.reveal.visible { opacity: 1; filter: none; transform: none; }

@media (max-width: 1000px) {
  .carousel-card { transform: rotateY(calc(var(--i) * 60deg)) translateZ(340px); }
  .builder { grid-template-columns: 230px 1fr; }
  .summary { grid-column: 1/-1; display: grid; grid-template-columns: 1.3fr repeat(3,1fr) 180px; gap: 18px; align-items: center; }
  .summary > p, .summary h3, .save-design { margin: 0; }
  .summary > small { display: none; }
  .summary-line { border: 0; }
}
@media (max-width: 720px) {
  .nav { padding: 0 16px; }
  .nav nav { display: none; }
  .hero { min-height: 105vh; padding-top: 100px; }
  .hero-media { background-position: 61% 38%; }
  .hero h1 { font-size: 52px; }
  .hero-intro { font-size: 17px; }
  .archive { min-height: auto; padding: 100px 0 80px; }
  .archive-head { padding: 0 20px; }
  .archive h2 { font-size: 50px; }
  .archive-head > p:last-child { font-size: 16px; }
  .carousel-stage { height: 470px; margin-top: 45px; overflow-x: auto; overflow-y: hidden; perspective: none; scrollbar-width: none; }
  .carousel-stage::-webkit-scrollbar { display: none; }
  .carousel-glow,.carousel-floor,.carousel-toolbar { display: none; }
  .carousel-ring { position: relative; left: auto; top: auto; width: max-content; height: 390px; margin: 0; padding: 22px 24px 55px; display: flex; gap: 16px; transform: none !important; }
  .carousel-card { position: relative; inset: auto; flex: 0 0 72vw; width: 72vw; height: 360px; transform: none !important; backface-visibility: visible; }
  .cover-shell { width: 100%; height: 360px; border-radius: 8px; }
  .cover-action { opacity: 1; transform: none; }
  .ai-lab { min-height:auto; padding:100px 20px 80px; }
  .ai-lab-inner { min-height:0; grid-template-columns:1fr; gap:65px; text-align:center; }
  .ai-lab h2 { font-size:50px; }
  .ai-lab-copy > p:last-of-type { margin-left:auto; margin-right:auto; font-size:16px; }
  .ai-demo-window { max-width:380px; transform:none; }
  .ai-dialog { height:calc(100dvh - 20px); border-radius:22px; }
  .ai-modal { padding:10px; }
  .ai-compose button span { display:none; }
  .studio { padding: 100px 16px 70px; }
  .studio h2 { font-size: 50px; }
  .section-head { margin-bottom: 45px; }
  .section-head > p { font-size: 17px; }
  .builder { display: flex; flex-direction: column; }
  .preview-stage { min-height: 560px; order: -1; }
  .jersey-wrap { --kit-scale: .82; }
  .pattern-options { grid-template-columns: repeat(4,1fr); }
  .summary { display: block; }
  .summary > p { margin-bottom: 22px; }
  .summary h3 { margin-bottom: 18px; }
  .summary-line { border-top: 1px solid #e8e8ed; }
  .save-design { margin-top: 28px; }
  .story { min-height: 90vh; background-attachment: scroll; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
