/* ═══════════════════════════════════════════════════
   themv.shop — Homepage Redesign
   Based on reference design system
   Tokens: navy, orange accent, paper bg, Bricolage Grotesque
   ═══════════════════════════════════════════════════ */

:root {
  --navy: #002060;
  --navy-2: #0B2F80;
  --navy-deep: #00163F;
  --orange: #FF8C00;
  --orange-hi: #FFA033;
  --paper: #F3F6FC;
  --white: #fff;
  --ink: #0B1B45;
  --ink-2: #48557A;
  --rule: #D5DCEC;
  --live: #3DDC97;
  --live-ink: #04281A;
  --on-dark: rgba(255,255,255,.95);
  --on-dark-2: rgba(255,255,255,.78);
  --dim: #8C9AC0;
  --line: rgba(255,255,255,.12);
  --line-2: rgba(255,255,255,.22);
  --ff: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-d: 'Unbounded', 'Bricolage Grotesque', system-ui, sans-serif;
  --ff-b: var(--ff);
  --ff-m: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --r-s: 6px;
  --r-m: 10px;
  --r-l: 16px;
  --pad: clamp(20px, 4vw, 56px);
  --wrap: 1280px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur: 0.2s;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--ff); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.03em; line-height: 1.08; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: #FFB066; }
::selection { background: rgba(255,140,0,.4); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: var(--r-m); border: 2px solid transparent; font: 600 1rem/1.2 var(--ff); white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.btn-lg { padding: 17px 30px; font-size: 1.0625rem; }
.btn-sm { padding: 9px 16px; font-size: .9375rem; border-radius: 8px; }
.btn-accent { background: var(--orange); color: var(--navy); }
.btn-accent:hover { background: var(--orange-hi); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-line { color: inherit; border-color: currentColor; }
.btn-line:hover { background: rgba(128,140,180,.16); }
.btn:active { transform: scale(0.98); }

/* ── Navigation ── */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 14px var(--pad); background: var(--navy); border-bottom: 1px solid transparent; color: #fff; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line-2); }
.nav-links { display: flex; gap: 4px; margin-left: auto; margin-right: auto; }
.nav-links a { padding: 8px 14px; border-radius: 8px; font-size: .9375rem; font-weight: 600; color: var(--on-dark-2); transition: color .15s, background-color .15s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; width: 44px; height: 44px; margin-left: auto; border-radius: 8px; border: 1px solid var(--line-2); flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav-toggle span { width: 18px; height: 2px; background: #fff; border-radius: 2px; }

/* ── Animated Logo ── */
.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; min-width: 0; overflow: hidden; }
.nav-logo .box { position: relative; width: 38px; height: 38px; border-radius: 11px; overflow: hidden; flex-shrink: 0; background-color: #D97706; animation: logoBgShift 4.5s ease-in-out .1s both; }
.nav-logo .right { display: flex; flex-direction: column; justify-content: center; position: relative; min-width: 0; flex-shrink: 1; }
.nav-logo .divider { position: absolute; left: -8px; top: 50%; transform: translateY(-50%); width: 1px; height: 22px; background: var(--line-2); opacity: 0; animation: fadeIn .25s ease .35s forwards; }
.nav-logo .frame-label { font: 500 9.5px var(--ff-b); letter-spacing: 4px; text-transform: uppercase; color: var(--dim); position: absolute; top: 50%; left: 0; transform: translateY(-50%); white-space: nowrap; opacity: 0; z-index: 3; }
.nav-logo .lbl-design { animation: labelIn .25s var(--ease) .15s forwards, labelOut .2s ease-in .7s forwards; }
.nav-logo .lbl-build { animation: labelIn .25s var(--ease) .85s forwards, labelOut .2s ease-in 1.3s forwards; }
.nav-logo .lbl-launch { animation: labelIn .25s var(--ease) 1.45s forwards, labelOut .2s ease-in 1.9s forwards; }
.nav-logo .icon-layer { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; }
.nav-logo .icon-layer.brush { animation: iconIn .25s var(--ease) .15s forwards, iconOut .2s ease-in .7s forwards; }
.nav-logo .icon-layer.code { animation: iconIn .25s var(--ease) .85s forwards, iconOut .2s ease-in 1.3s forwards; }
.nav-logo .icon-layer.globe { animation: iconIn .25s var(--ease) 1.45s forwards, iconOut .2s ease-in 1.9s forwards; }
.nav-logo .icon-layer.grid { animation: iconIn .25s var(--ease) 2.05s forwards, markBounce .8s cubic-bezier(.36,.07,.19,.97) 2.3s forwards; }
.nav-logo .wordmark { font: 600 20px var(--ff-d); letter-spacing: -.02em; line-height: 1; opacity: 0; position: relative; z-index: 2; white-space: nowrap; overflow: hidden; animation: slideIn .4s var(--ease) 2.6s forwards; }
.nav-logo .wordmark .accent { color: #FF8C00; }
.nav-logo .tagline { font: 500 9px var(--ff-m); letter-spacing: 2.5px; text-transform: uppercase; color: var(--dim); margin-top: 3px; opacity: 0; position: relative; z-index: 2; white-space: nowrap; overflow: hidden; animation: fadeUp .35s var(--ease) 2.85s forwards; }

/* Static after first view */
html.logo-seen .nav-logo .box { animation: none !important; opacity: 1 !important; transform: none !important; background-color: transparent !important; }
html.logo-seen .nav-logo .icon-layer { animation: none !important; opacity: 0 !important; transform: none !important; }
html.logo-seen .nav-logo .icon-layer.grid { opacity: 1 !important; }
html.logo-seen .nav-logo .frame-label { animation: none !important; opacity: 0 !important; }
html.logo-seen .nav-logo .wordmark, html.logo-seen .nav-logo .tagline { animation: none !important; opacity: 1 !important; transform: none !important; }

/* Static footer logo */
.logo-static .box { animation: none; opacity: 1; background-color: transparent; }
.logo-static .icon-layer.grid { animation: none; opacity: 1; }
.logo-static .wordmark { animation: none; opacity: 1; font-size: 15px; }
.logo-static .divider, .logo-static .frame-label, .logo-static .tagline { display: none; }

/* Logo keyframes */
@keyframes boxPop { 0% { opacity: 0; transform: scale(.4) rotate(-5deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes iconIn { 0% { opacity: 0; transform: scale(.5) translateY(8px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes iconOut { 0% { opacity: 1; transform: scale(1) translateY(0); } 100% { opacity: 0; transform: scale(.5) translateY(-8px); } }
@keyframes markBounce { 0% { transform: scale(1,1) translateY(0); } 12% { transform: scale(1.14,.86) translateY(5px); } 26% { transform: scale(.9,1.1) translateY(-10px); } 40% { transform: scale(1.07,.93) translateY(3px); } 55% { transform: scale(.97,1.03) translateY(-5px); } 70% { transform: scale(1.02,.98) translateY(1px); } 85% { transform: scale(.99,1.01) translateY(-1px); } 100% { transform: scale(1,1) translateY(0); } }
@keyframes labelIn { 0% { opacity: 0; transform: translateY(-50%) translateX(10px); } 100% { opacity: 1; transform: translateY(-50%) translateX(0); } }
@keyframes labelOut { 0% { opacity: 1; transform: translateY(-50%) translateX(0); } 100% { opacity: 0; transform: translateY(-50%) translateX(-10px); } }
@keyframes slideIn { 0% { opacity: 0; transform: translateX(18px); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes fadeUp { 0% { opacity: 0; transform: translateY(5px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes logoBgShift { 0% { background-color: #D97706; } 8% { background-color: #D97706; } 9% { background-color: #8B5CF6; } 23% { background-color: #8B5CF6; } 28% { background-color: #0EA5E9; } 29% { background-color: #0EA5E9; } 43% { background-color: #0EA5E9; } 48% { background-color: #0D9488; } 49% { background-color: #0D9488; } 63% { background-color: #0D9488; } 68% { background-color: transparent; } 100% { background-color: transparent; } }

/* ═══════════ HERO ═══════════ */
.hero { position: relative; background: var(--navy); color: #fff; display: flex; align-items: center; padding: calc(66px + clamp(28px, 6vh, 72px)) var(--pad) clamp(48px, 7vh, 88px); }
.hero-in { width: 100%; max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 5vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(2.75rem, 5.4vw, 5.6rem); line-height: .98; letter-spacing: -.04em; text-wrap: balance; }
.hero-lead { margin-top: 28px; max-width: 30em; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.55; color: var(--on-dark-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 32px; padding-top: 20px; max-width: 34em; border-top: 1px solid var(--line-2); font-size: .9375rem; color: var(--on-dark-2); }

/* ═══════════ LIVE BUILDER DEMO ═══════════ */
.demo { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.ccol { position: relative; }
.canvas { display: flex; flex-direction: column; aspect-ratio: 3/2; overflow: hidden; border-radius: var(--r-l); background: #fff; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -40px rgba(0,8,32,.75); transition: border-color .4s, box-shadow .4s; }
.canvas.live { border-color: var(--live); box-shadow: 0 0 0 3px rgba(61,220,151,.3), 0 40px 80px -40px rgba(0,8,32,.75); }
.chrome { flex: none; display: flex; align-items: center; gap: 12px; padding: 9px 14px; background: #EEF2FA; border-bottom: 1px solid var(--rule); }
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #C3CBE0; }
.urlbar { flex: 1; max-width: 360px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 5px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--rule); font-size: .8125rem; font-weight: 500; color: var(--ink-2); }
.urlbar svg { flex: none; color: #8A96B8; transition: color .3s; }
.canvas.live .urlbar svg { color: #12915F; }
.badge { font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 6px; color: #7A4A00; background: #FFEFC9; transition: color .3s, background-color .3s; }
.badge.on { color: #04664A; background: #D6F5E6; }

/* Mini site inside the demo */
.ms { --m-bg: #F2B33D; --m-surf: #F9CD75; --m-ink: #1C1300; --m-mut: #5C4207; --m-acc: #B3261E; --m-on: #fff; --m-line: rgba(28,19,0,.22); flex: 1; min-height: 0; display: flex; flex-direction: column; container-type: inline-size; background: var(--m-bg); color: var(--m-ink); font-family: var(--m-font, 'Bricolage Grotesque', system-ui, sans-serif); transition: background-color .5s, color .5s; }
.ms[data-theme="pine"] { --m-bg: #0E1F19; --m-surf: #15302A; --m-ink: #E4F2EA; --m-mut: #8FB0A2; --m-acc: #F5C451; --m-on: #1A1405; --m-line: rgba(228,242,234,.16); }
.ms[data-theme="plum"] { --m-bg: #2B1237; --m-surf: #3B1C4B; --m-ink: #F8EBFF; --m-mut: #BFA3D0; --m-acc: #FF7AB0; --m-on: #2B0A1C; --m-line: rgba(248,235,255,.18); }
.slot { position: relative; min-height: 0; }
.s-nav { flex: 0 0 clamp(34px, 5.6cqw, 52px); }
.s-hero { flex: 1.5 1 0; }
.s-grid { flex: 1 1 0; }
.s-foot { flex: 0 0 clamp(26px, 3.4cqw, 34px); }
.ph { position: absolute; inset: 5px; border: 1.5px dashed var(--m-line); border-radius: 8px; display: grid; place-items: center; font: 600 .75rem var(--ff); color: var(--m-mut); transition: opacity .3s; }
.slot[data-on="1"] .ph { opacity: 0; }
.blk { position: absolute; inset: 0; overflow: hidden; opacity: 0; transform: translateY(-14px); transition: opacity .3s, transform .45s var(--ease); }
.slot[data-on="1"] .blk { opacity: 1; transform: none; }
.slot.snap::after { content: ''; position: absolute; inset: 0; border: 2px solid var(--orange); border-radius: 4px; pointer-events: none; animation: snap .7s ease-out forwards; }
@keyframes snap { 0% { opacity: 1; transform: scale(1.02); } 100% { opacity: 0; transform: scale(1); } }

/* Mini site internal blocks */
.ms-nav { display: flex; align-items: center; gap: 1.4cqw; padding: 0 4cqw; height: 100%; border-bottom: 1px solid var(--m-line); }
.ms-nav .dot { width: clamp(10px, 1.7cqw, 16px); aspect-ratio: 1; border-radius: 50%; background: var(--m-acc); }
.ms-nav b { font-weight: 800; font-size: clamp(10px, 1.7cqw, 16px); letter-spacing: -.01em; }
.ms-nav .lk { display: flex; gap: 2.4cqw; margin-left: auto; font-size: clamp(8px, 1.3cqw, 12px); color: var(--m-mut); font-weight: 600; }
.ms-nav .cta { font-size: clamp(8px, 1.25cqw, 12px); font-weight: 700; padding: .5cqw 1.6cqw; border-radius: 99px; background: var(--m-acc); color: var(--m-on); }
.ms-hero { display: flex; align-items: center; gap: 3cqw; padding: 0 4cqw; height: 100%; }
.ms-hero .tx { flex: 1; min-width: 0; }
.ms-hero h2 { font-size: clamp(18px, 5.2cqw, 52px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; }
.ms-hero p { margin: 1.4cqw 0 2cqw; font-size: clamp(9px, 1.4cqw, 14px); color: var(--m-mut); max-width: 34em; line-height: 1.5; }
.ms-hero .row { display: flex; gap: 1cqw; }
.ms-hero .row span { font-size: clamp(8px, 1.3cqw, 12px); font-weight: 700; padding: .9cqw 2.2cqw; border-radius: 99px; }
.ms-hero .b1 { background: var(--m-acc); color: var(--m-on); }
.ms-hero .b2 { border: 1px solid var(--m-line); }
.ms-hero .art { flex: 0 0 26cqw; height: 82%; border-radius: 2.2cqw; position: relative; overflow: hidden; background: var(--m-acc); }
.ms-hero .art::after { content: ''; position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; right: -12%; bottom: -14%; background: var(--m-bg); opacity: .9; }
.ms-hero .art::before { content: ''; position: absolute; width: 26%; aspect-ratio: 1; border-radius: 50%; left: 14%; top: 16%; background: var(--m-on); opacity: .35; }
.ms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; padding: 1.4cqw 4cqw 2cqw; height: 100%; }
.pcard { display: flex; flex-direction: column; min-height: 0; background: var(--m-surf); border: 1px solid var(--m-line); border-radius: 1.4cqw; overflow: hidden; opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .45s var(--ease), background-color .5s; }
.slot[data-on="1"] .pcard { opacity: 1; transform: none; transition-delay: calc(var(--i) * 100ms); }
.pcard .img { flex: 1; min-height: 0; display: grid; place-items: center; color: var(--m-acc); background: color-mix(in srgb, var(--m-acc) 14%, var(--m-surf)); }
.pcard .img svg { width: 32%; height: auto; max-height: 70%; }
.pcard .bd { display: flex; justify-content: space-between; gap: 6px; padding: .8cqw 1.4cqw; font-size: clamp(8px, 1.25cqw, 12px); font-weight: 700; }
.pcard .bd span:last-child { color: var(--m-acc); }
.ms-foot { display: flex; align-items: center; gap: 1cqw; padding: 0 4cqw; height: 100%; border-top: 1px solid var(--m-line); font-size: clamp(8px, 1.15cqw, 11px); color: var(--m-mut); font-weight: 600; }
.ms-foot svg { color: var(--m-acc); flex: none; }
.ms-foot .r { margin-left: auto; }
@container (max-width: 560px) { .ms-hero .art { display: none; } .ms-grid { grid-template-columns: repeat(2, 1fr); } .pcard:nth-child(3) { display: none; } .ms-nav .lk { display: none; } .ms-nav b { font-size: 12px; } .ms-hero h2 { font-size: clamp(20px, 7cqw, 30px); } .ms-hero p { font-size: 10px; } .ms-foot .r { display: none; } }

/* Caption + controls */
.caption { display: flex; align-items: center; gap: 14px; min-height: 36px; font-size: .9375rem; color: var(--on-dark-2); }
.caption .tx { flex: 0 1 auto; min-width: 0; }
.caption .bar { flex: 1 1 40px; min-width: 40px; height: 3px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.caption .bar i { display: block; height: 100%; width: 0; background: var(--orange); transition: width .5s var(--ease); }
.replay { flex: none; padding: 6px 14px; border-radius: 8px; border: 1px solid var(--line-2); font-size: .875rem; font-weight: 600; color: #fff; transition: background-color .15s; }
.replay:hover { background: rgba(255,255,255,.1); }
.replay[hidden] { display: none; }

/* Builder dock */
.dock { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding: 14px 16px; border-radius: var(--r-l); background: var(--navy-2); border: 1px solid var(--line-2); }
.grp { display: flex; align-items: center; gap: 12px; }
.lbl { font-size: .8125rem; font-weight: 600; color: var(--on-dark-2); }
.swatches { display: flex; gap: 10px; }
.sw { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); border: 2px solid rgba(255,255,255,.35); transition: border-color .15s; }
.sw:hover { border-color: #fff; }
.sw[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 2px var(--navy-2), 0 0 0 4px var(--orange); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line-2); font-size: .875rem; font-weight: 600; color: var(--on-dark-2); transition: color .15s, background-color .15s, border-color .15s; }
.chip:hover { color: #fff; border-color: rgba(255,255,255,.55); }
.chip[aria-pressed="true"] { color: #fff; background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.6); }
.chip .d { width: 7px; height: 7px; border-radius: 2px; background: rgba(255,255,255,.35); }
.chip[aria-pressed="true"] .d { background: var(--orange); }
.chip.f-grotesk { font-weight: 800; }
.chip.f-serif { font-family: Georgia, serif; }
.chip.f-mono { font-family: var(--ff-m); font-size: .8125rem; }
.pub { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 10px 20px; border-radius: 8px; background: #fff; color: var(--navy); font-weight: 700; font-size: .9375rem; transition: background-color .2s; }
.pub:hover { background: #E4EBFF; }
.pub.busy { background: #C9D4F2; pointer-events: none; }
.pub.done { background: var(--live); color: var(--live-ink); }
.pub.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.sim { transform: scale(.94); outline: 2px solid var(--orange); outline-offset: 3px; }

/* Demo cursor */
.painter { position: absolute; left: 0; top: 0; z-index: 30; pointer-events: none; transform: translate(-80px, -80px); transition: transform 1s cubic-bezier(.65, 0, .25, 1), opacity .3s; }
.painter.off { opacity: 0; }
.painter svg { display: block; width: 26px; height: 26px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); transition: transform .12s; }
.painter.down svg { transform: scale(.82); }
.painter-tag { position: absolute; left: 22px; top: 20px; padding: 2px 9px; border-radius: 6px; background: var(--orange); color: var(--navy); font: 700 .75rem var(--ff); white-space: nowrap; }
.ripple { position: absolute; z-index: 29; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid var(--orange); pointer-events: none; animation: rip .7s ease-out forwards; }
@keyframes rip { to { transform: scale(4.5); opacity: 0; } }

/* ═══════════ SECTIONS ═══════════ */
.sec { padding: clamp(72px, 9vw, 128px) var(--pad); }
.sec-white { background: var(--white); }
.wrap { max-width: var(--wrap); margin: 0 auto; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2 { font-size: clamp(2rem, 3.8vw, 3.5rem); max-width: 15em; }
.sec-sub { margin-top: 16px; max-width: 36em; color: var(--ink-2); }
.textlink { font-weight: 600; color: var(--ink); padding-bottom: 2px; border-bottom: 2px solid var(--orange); white-space: nowrap; transition: border-color .15s; }
.textlink:hover { border-bottom-color: var(--navy); }

/* ═══════════ THEMES ═══════════ */
.tabs { display: flex; gap: 28px; overflow-x: auto; margin-bottom: 32px; border-bottom: 1px solid var(--rule); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 10px 0 12px; margin-bottom: -1px; border-bottom: 3px solid transparent; font-size: .9375rem; font-weight: 600; color: var(--ink-2); transition: color .15s; }
.tab:hover { color: var(--ink); }
.tab[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--orange); }
.tgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 24px; }
.tcard { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tcard:first-child { grid-column: span 2; grid-row: span 2; }
.tcard:first-child .thumb { aspect-ratio: auto; flex: 1; min-height: 280px; }

/* Thumbnails — parallax drift inside frame */
.thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; container-type: inline-size; background: #E4E9F5; border-radius: var(--r-m); border: 1px solid var(--rule); transition: border-color .15s; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* parallax: the picture drifts inside its frame (JS sets --p from -1 to 1) */
.thumb > .mk, .thumb > img { transform: translate3d(0, calc(var(--p, 0) * 5%), 0) scale(1.14); will-change: transform; }
[data-parallax] { will-change: transform; }
.tcard:hover .thumb, .frame:hover .win { border-color: var(--navy); }
.tmeta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tmeta h3 { font-size: 1.125rem; letter-spacing: -.01em; }
.tcard:first-child .tmeta h3 { font-size: 1.5rem; }
.tmeta p { font-size: .9375rem; color: var(--ink-2); }
.price { flex: none; font-weight: 700; }
.tcard:hover h3, .frame:hover h3 { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.empty { grid-column: 1 / -1; padding: 48px 20px; text-align: center; color: var(--ink-2); border: 1px dashed var(--rule); border-radius: var(--r-m); }
.skel { border-radius: var(--r-m); background: #E4E9F5; aspect-ratio: 16/11; }
.tgrid .skel:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; min-height: 280px; }

/* ═══════════ WEBSITES REEL ═══════════ */
.reel-tools { display: flex; gap: 8px; }
.arrow { width: 44px; height: 44px; border-radius: var(--r-m); border: 1.5px solid var(--ink); display: grid; place-items: center; color: var(--ink); transition: background-color .15s, color .15s; }
.arrow:hover { background: var(--navy); color: #fff; }
.reel { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); padding: 4px var(--pad) 20px; margin: 0 calc(-1 * var(--pad)); scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
.frame { flex: 0 0 min(82vw, 540px); scroll-snap-align: start; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.reel .skel { flex: 0 0 min(82vw, 540px); }
.win { border: 1px solid var(--rule); border-radius: var(--r-m); overflow: hidden; background: #fff; transition: border-color .15s; }
.win .thumb { border: 0; border-radius: 0; aspect-ratio: 16/9.5; }
.sbar { display: flex; align-items: center; gap: 6px; padding: 9px 14px; background: #EEF2FA; border-bottom: 1px solid var(--rule); font-size: .8125rem; font-weight: 500; color: var(--ink-2); }
.sbar i { width: 8px; height: 8px; border-radius: 50%; background: #C3CBE0; }
.sbar span { margin-left: 10px; padding: 3px 12px; border-radius: 6px; background: #fff; border: 1px solid var(--rule); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Thumbnail mock-ups (used until a theme/site supplies its own screenshot) */
.mk { position: absolute; inset: 0; background: var(--p-bg); padding: 5cqw 5.5cqw; display: flex; flex-direction: column; gap: 4.5cqw; overflow: hidden; }
.mk-nav { display: flex; align-items: center; gap: 3cqw; flex: none; }
.mk-nav b { width: 3.6cqw; height: 3.6cqw; border-radius: 50%; background: var(--p-acc); }
.mk-nav span { display: flex; gap: 2cqw; margin-left: auto; }
.mk-nav span i { width: 6cqw; height: .9cqw; border-radius: 1cqw; background: var(--p-ink); opacity: .28; }
.mk-nav em { width: 10cqw; height: 3.4cqw; border-radius: 2cqw; background: var(--p-acc); }
.mk-hero { flex: 1; display: flex; align-items: center; gap: 5cqw; min-height: 0; }
.mk-hero .t { flex: 1; }
.mk-hero .h { display: block; height: 3.4cqw; border-radius: 1cqw; background: var(--p-ink); width: 90%; margin-bottom: 1.8cqw; }
.mk-hero .h.s { width: 62%; }
.mk-hero .p { display: block; height: 1.1cqw; border-radius: 1cqw; background: var(--p-ink); opacity: .3; width: 78%; margin-top: 2cqw; }
.mk-hero .p.s { width: 56%; margin-top: 1.2cqw; }
.mk-hero em { display: block; width: 16cqw; height: 4.4cqw; border-radius: 3cqw; background: var(--p-acc); margin-top: 4cqw; }
.shape { width: 34%; align-self: stretch; border-radius: 2cqw; background: var(--p-acc); }
.shape.round { border-radius: 50%; align-self: center; width: 32%; height: auto; aspect-ratio: 1; }
.mk-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5cqw; height: 28%; flex: none; }
.mk-tiles u, .mk-stats u { position: relative; background: var(--p-sf); border: 1px solid color-mix(in srgb, var(--p-ink) 12%, transparent); border-radius: 1.6cqw; }
.mk-tiles u::after { content: ''; position: absolute; left: 8%; right: 42%; bottom: 12%; height: 1cqw; border-radius: 1cqw; background: var(--p-ink); opacity: .3; }
.mk-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5cqw; height: 16%; flex: none; }
.mk-rows { flex: 1; display: flex; flex-direction: column; gap: 3cqw; justify-content: center; min-height: 0; }
.mk-rows .r { display: flex; align-items: center; gap: 3cqw; }
.mk-rows u { flex: none; width: 12cqw; height: 8cqw; border-radius: 1.4cqw; background: var(--p-sf); }
.mk-rows .r div { flex: 1; }
.mk-rows .r i { display: block; height: 1.2cqw; border-radius: 1cqw; background: var(--p-ink); opacity: .35; width: 80%; }
.mk-rows .r i + i { width: 54%; opacity: .18; margin-top: 1.2cqw; }
.mk-mas { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); gap: 2cqw; min-height: 0; }
.mk-mas u { border-radius: 1.4cqw; background: var(--p-sf); }
.mk-mas u:nth-child(1) { grid-row: span 2; background: var(--p-acc); }
.mk-mas u:nth-child(4) { grid-column: span 2; }
.mk-mas u:nth-child(5) { background: color-mix(in srgb, var(--p-acc) 35%, var(--p-sf)); }

/* ═══════════ HOW IT WORKS ═══════════ */
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step { counter-increment: s; border-top: 3px solid var(--navy); padding-top: 20px; }
.step::before { content: counter(s); display: block; margin-bottom: 18px; font-weight: 700; font-size: 2.25rem; line-height: 1; letter-spacing: -.03em; color: var(--navy); }
.step h3 { font-size: 1.375rem; margin-bottom: 10px; }
.step p { color: var(--ink-2); }
.step p b { color: var(--ink); }
.how-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: clamp(36px, 5vw, 56px); }
.how-cta .btn-line { color: var(--navy); }
.responsive-badge { display: flex; align-items: center; gap: 14px; margin-top: 32px; padding: 16px 22px; background: rgba(0,32,96,.04); border: 1px solid var(--rule); border-radius: 12px; }
.device-icons { display: flex; gap: 6px; color: var(--navy); flex-shrink: 0; }
.responsive-badge p { color: var(--ink-2); font-size: .9375rem; font-weight: 500; }

/* ═══════════ DOMAIN ═══════════ */
.domain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.domain-card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-l); padding: 40px 36px; box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s var(--ease); }
.domain-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.domain-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(0,32,96,.06); color: var(--navy); margin-bottom: 20px; }
.domain-card h3 { font-family: var(--ff-d); font-weight: 700; font-size: 1.375rem; letter-spacing: -.02em; margin-bottom: 10px; }
.domain-card p { color: var(--ink-2); font-size: 1rem; line-height: 1.65; margin-bottom: 24px; }
.domain-card p b { color: var(--ink); font-weight: 600; }
.domain-card .btn { width: auto; }
@media (max-width: 720px) { .domain-grid { grid-template-columns: 1fr; } }

/* ═══════════ DESIGNERS BAND ═══════════ */
.band { background: var(--navy); color: #fff; padding: clamp(72px, 9vw, 120px) var(--pad); }
.band-in { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.band h2 { font-size: clamp(2.25rem, 4.6vw, 4.25rem); line-height: 1; letter-spacing: -.035em; }
.band p { color: var(--on-dark-2); font-size: 1.1875rem; max-width: 30em; }
.band .acts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.band .note { margin-top: 24px; font-size: .9375rem; }

/* ═══════════ INTEGRATION ═══════════ */
.integration-banner { background: var(--navy); color: #fff; border-radius: var(--r-l); padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.integration-content h2 { font-family: var(--ff-d); font-weight: 700; font-size: clamp(22px, 2.5vw, 30px); margin-bottom: 12px; }
.integration-content p { color: var(--on-dark-2); font-size: 15px; margin-bottom: 24px; line-height: 1.6; }
.integration-visual { background: rgba(255,255,255,.08); border-radius: var(--r-l); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.integration-step { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: rgba(255,255,255,.06); border-radius: var(--r-m); font-size: 14px; }
.integration-step svg { color: var(--orange); flex: none; }

/* ═══════════ FOOTER ═══════════ */
footer { background: var(--navy-deep); color: #fff; padding: 40px var(--pad); }
.foot-in { max-width: var(--wrap); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 20px 32px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 6px 24px; flex-wrap: wrap; font-size: .9375rem; color: var(--on-dark-2); }
.foot-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot-copy { font-size: .875rem; color: var(--dim); }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1100px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(2.75rem, 9vw, 5.5rem); }
  .br-split { display: none; }
}
@media (max-width: 1000px) {
  .tgrid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .band-in { grid-template-columns: 1fr; }
  .integration-banner { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-links { display: none; position: absolute; top: 100%; left: var(--pad); right: var(--pad); margin: 0; padding: 8px; flex-direction: column; background: var(--navy-2); border: 1px solid var(--line-2); border-radius: var(--r-m); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px; }
  .nav-links .only-m { display: block; }
  .nav-links .only-m.accent { margin-top: 6px; background: var(--orange); color: var(--navy); text-align: center; border-radius: 8px; }
  .nav-links .only-m.accent:hover { background: var(--orange-hi); }
}
@media (max-width: 620px) {
  .tgrid { grid-template-columns: 1fr; }
  .tcard:first-child { grid-column: auto; grid-row: auto; }
  .tcard:first-child .thumb { aspect-ratio: 16/10; min-height: 0; flex: none; }
  .tgrid .skel:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 16/11; min-height: 0; }
  .canvas { aspect-ratio: 4/5; }
  .nav-logo .wordmark { font-size: 17px; }
  .nav-logo .tagline { display: none; }
  .grp { flex-wrap: wrap; }
  .pub { margin-left: 0; width: 100%; justify-content: center; }
  .hero-cta .btn { flex: 1 1 100%; }
}

/* ═══════════ REDUCED MOTION ═══════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .thumb > .mk, .thumb > img { transform: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .nav-logo .box, .nav-logo .wordmark, .nav-logo .tagline { animation: none !important; opacity: 1 !important; transform: none !important; }
  .nav-logo .box { background-color: transparent !important; }
  .nav-logo .icon-layer { animation: none !important; opacity: 0 !important; transform: none !important; }
  .nav-logo .icon-layer.grid { opacity: 1 !important; }
  .nav-logo .frame-label { animation: none !important; opacity: 0 !important; }
}
