/* Fonts are self-hosted (latin subset) */
@font-face { font-family: "Plus Jakarta Sans"; src: url(/assets/fonts/plus-jakarta-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap }
@font-face { font-family: "Plus Jakarta Sans"; src: url(/assets/fonts/plus-jakarta-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap }
@font-face { font-family: "Plus Jakarta Sans"; src: url(/assets/fonts/plus-jakarta-sans-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap }
@font-face { font-family: "Plus Jakarta Sans"; src: url(/assets/fonts/plus-jakarta-sans-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-style: normal; font-display: swap }
@font-face { font-family: "Hanken Grotesk"; src: url(/assets/fonts/hanken-grotesk-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap }
@font-face { font-family: "Hanken Grotesk"; src: url(/assets/fonts/hanken-grotesk-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap }
@font-face { font-family: "Hanken Grotesk"; src: url(/assets/fonts/hanken-grotesk-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap }
@font-face { font-family: "Hanken Grotesk"; src: url(/assets/fonts/hanken-grotesk-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap }
@font-face { font-family: "IBM Plex Mono"; src: url(/assets/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap }
@font-face { font-family: "IBM Plex Mono"; src: url(/assets/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap }

/* Mahi Printing & Signage website.
   Layout: full-bleed timed hero carousel under a transparent header, then calm sections on paper.
   The four process-colour dots (C, M, Y, K) are the recurring mark: carousel controls, Mahi AI's avatar,
   hover states on products and the three ways to order. */
:root {
  --paper: #F4F3EF;
  --paper-2: #E9E8E2;
  --ink: #14162B;
  --ink-soft: #4C5068;
  --indigo: #283891;
  --indigo-deep: #1A2463;
  --night: #0D0F1E;
  --on-dark: #F4F3EF;
  --on-dark-soft: #BFC2D8;
  --c: #00AEEF; --m: #EC008C; --y: #FFE600; --k: #14162B;
  --gold: #D2AE68;
  --line: rgba(20,22,43,.13);
  --display: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: light;
}
* { box-sizing: border-box }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip }
img { max-width: 100%; display: block }
a { color: inherit }
button { font: inherit; color: inherit }
:focus-visible { outline: 3px solid var(--c); outline-offset: 3px; border-radius: 6px }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding-inline: var(--gutter) }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: .5px }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; margin: 0 }
:root[data-font="fraunces"] h1, :root[data-font="fraunces"] h2, :root[data-font="fraunces"] h3 { letter-spacing: -0.01em; font-weight: 600 }

/* the mark: four process dots */
.dots { position: relative; display: inline-block; width: 30px; height: 18px; flex: none }
.dots i { position: absolute; top: 3px; width: 12px; height: 12px; border-radius: 50%; mix-blend-mode: multiply; transition: transform .45s cubic-bezier(.2,.8,.2,1) }
.dots i:nth-child(1) { left: 0; background: var(--c) }
.dots i:nth-child(2) { left: 6px; background: var(--m) }
.dots i:nth-child(3) { left: 12px; background: var(--y) }
.dots i:nth-child(4) { left: 18px; background: var(--k) }
.on-dark .dots i { mix-blend-mode: screen }
.on-dark .dots i:nth-child(4) { background: #fff }
.chatwin .dots i { mix-blend-mode: multiply }
.chatwin .dots i:nth-child(4) { background: var(--k) }

/* buttons */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font: 600 16px var(--body); text-decoration: none; white-space: nowrap; border: 0; cursor: pointer; transition: background-color .25s ease, color .25s ease, box-shadow .25s ease }
.btn .arrow { width: 18px; height: 18px; flex: none; transition: transform .3s ease }
.btn:hover .arrow { transform: translateX(3px) }
.btn-light { background: #fff; color: var(--ink) }
.btn-light:hover { box-shadow: 0 10px 30px -10px rgba(0,0,0,.45) }
.btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7) }
.btn-ghost:hover { background: rgba(255,255,255,.12) }
.btn-ink { background: var(--ink); color: #fff }
.btn-indigo { background: var(--indigo); color: #fff }
.btn-line { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink) }
.btn-line:hover { background: var(--ink); color: #fff }

/* ---------- header: the same bar on every page; past the hero it gains a dark glass backing ---------- */
.top { position: fixed; z-index: 40; top: 0; left: 0; right: 0; padding-top: env(safe-area-inset-top, 0px); color: #fff; transition: background-color .45s ease, box-shadow .45s ease }
.top .wrap { display: flex; align-items: center; gap: 26px; padding-block: clamp(18px, 2.6vw, 32px) 0; transition: padding .45s cubic-bezier(.2,.8,.2,1) }
.top .logo img { height: clamp(54px, 5.4vw, 78px); width: auto; filter: drop-shadow(0 6px 18px rgba(0,0,0,.25)) }
.top.solid { background: rgba(13,15,30,.9); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 18px 40px -28px rgba(0,0,0,.7) }
.top.solid .wrap { padding-block: 12px }
.top.solid .logo img { height: 54px; filter: none }
.nav { display: flex; gap: 2px; margin-left: auto }
.nav a { padding: 10px 13px; font-weight: 600; font-size: 15.5px; text-decoration: none; border-radius: 999px; transition: background-color .2s }
.top .nav a:hover, .top .nav a[aria-current="page"] { background: rgba(255,255,255,.14) }
.tel { font-weight: 600; font-size: 15.5px; text-decoration: none; white-space: nowrap }
.top .btn { min-height: 46px; padding: 0 20px; font-size: 15px }
.menu-btn { display: none; margin-left: auto; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 0; background: rgba(255,255,255,.16); color: #fff; font-weight: 600; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px) }
.sheet { position: fixed; z-index: 60; inset: 0; background: var(--night); color: #fff; padding: calc(env(safe-area-inset-top, 0px) + 22px) var(--gutter) 32px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto }
.sheet[hidden] { display: none }
.sheet .close-x { align-self: flex-end; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 0; background: rgba(255,255,255,.14); color: #fff; font-weight: 600 }
.sheet a { padding: 14px 0; font-family: var(--display); font-weight: 700; font-size: 28px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.12) }
@media (max-width: 1020px) {
  .nav, .tel, .top .btn { display: none }
  .menu-btn { display: inline-flex; align-items: center }
}
@media (max-width: 760px) { .top.solid .wrap { padding-block: 10px } .top.solid .logo img { height: 44px } }
main section[id] { scroll-margin-top: 78px }
main #hero, main #signs { scroll-margin-top: 0 }

/* ---------- hero carousel ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; max-height: 1000px; overflow: hidden; background: var(--night); color: #fff }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 0s linear 1s }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 1s ease }
.slide picture, .slide picture img, .slide .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.slide .media { position: absolute; inset: 0; transform: scale(1.07) }
.slide.is-active .media { animation: drift 9s ease-out forwards }
@keyframes drift { to { transform: scale(1) } }
.slide .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,10,24,.55) 0%, rgba(8,10,24,0) 28%), linear-gradient(90deg, rgba(8,10,24,.78) 0%, rgba(8,10,24,.35) 45%, rgba(8,10,24,0) 70%), linear-gradient(0deg, rgba(8,10,24,.6) 0%, rgba(8,10,24,0) 35%) }
.slide-copy { position: absolute; left: 0; right: 0; bottom: clamp(108px, 15vh, 150px); display: flex; flex-direction: column; align-items: flex-start; gap: 20px }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; letter-spacing: .2px }
.h1 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; margin: 0 }
:root[data-font="fraunces"] .h1 { font-weight: 600; letter-spacing: -0.01em }
.hero h1, .hero .h1 { max-width: 13.5em; font-size: clamp(42px, 5.4vw, 88px); line-height: 1.02 }
.hero p.lede { margin: 0; max-width: 34em; font-size: clamp(17px, 1.3vw, 20px); color: #DADCEA }
.actions { display: flex; flex-wrap: wrap; gap: 12px }
.slide .copy-in > * { opacity: 0; transform: translateY(18px) }
.slide.is-active .copy-in > * { animation: rise .9s cubic-bezier(.2,.8,.2,1) forwards }
.slide.is-active .copy-in > *:nth-child(2) { animation-delay: .1s }
.slide.is-active .copy-in > *:nth-child(3) { animation-delay: .2s }
.slide.is-active .copy-in > *:nth-child(4) { animation-delay: .3s }
@keyframes rise { to { opacity: 1; transform: none } }

/* slide 2: the sign switches on by itself */
#s1 .slide-copy { bottom: clamp(100px, 13vh, 130px); gap: 14px }
#s1 .h1 { font-size: clamp(34px, 4vw, 64px); max-width: none }
#s1 .scrim { background: linear-gradient(180deg, rgba(8,10,24,.55) 0%, rgba(8,10,24,0) 24%), linear-gradient(0deg, rgba(8,10,24,.92) 0%, rgba(8,10,24,.6) 30%, rgba(8,10,24,0) 52%) }
.slide .on-layer { -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 60%); mask-image: linear-gradient(90deg, #000 40%, transparent 60%); -webkit-mask-size: 260% 100%; mask-size: 260% 100%; -webkit-mask-position: 100% 0; mask-position: 100% 0; transition: -webkit-mask-position 2.2s cubic-bezier(.5,0,.2,1), mask-position 2.2s cubic-bezier(.5,0,.2,1) }
.slide.lit .on-layer { -webkit-mask-position: 0 0; mask-position: 0 0 }
.slide .bloom { position: absolute; inset: 0; background: radial-gradient(55% 26% at 50% 40%, rgba(255,222,170,.35), transparent 70%); mix-blend-mode: screen; opacity: 0; transition: opacity 1.6s ease 1.2s }
.slide.lit .bloom { opacity: 1 }

/* slide 3: Mahi AI */
.slide.ai-slide { background: radial-gradient(80% 90% at 75% 45%, #3446A8 0%, var(--indigo) 45%, var(--indigo-deep) 100%) }
.ai-slide .scrim { background: linear-gradient(180deg, rgba(8,10,24,.35) 0%, rgba(8,10,24,0) 25%) }
.ai-stage { position: absolute; right: var(--gutter); top: 44%; width: min(38vw, 560px); transform: translateY(-50%) }
.ai-slide .h1 { max-width: 8.5em }
.ai-stage .realcard { transform: rotate(-7deg) translateY(10px); opacity: 0; transition: transform 1.4s cubic-bezier(.2,.8,.2,1) .3s, opacity 1s ease .3s }
.ai-slide.is-active .ai-stage .realcard { transform: rotate(-4deg); opacity: 1 }
.ai-stage .bubble-hint { position: absolute; left: -6%; top: -18%; max-width: 70%; background: rgba(255,255,255,.95); color: var(--ink); border-radius: 20px 20px 20px 6px; padding: 12px 16px; font-size: 15.5px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); opacity: 0; transform: translateY(10px); transition: all .8s ease 1.2s }
.ai-slide.is-active .bubble-hint { opacity: 1; transform: none }
.bubble-hint b { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--indigo); margin-bottom: 2px }


/* light slides: dark type on a pale photo, header and controls follow */
.top .logo { position: relative }
.top .logo-c { position: absolute; left: 0; top: 0; opacity: 0 }
.top .logo img { transition: opacity .6s ease, height .45s cubic-bezier(.2,.8,.2,1) }
.top.is-light { color: var(--ink) }
.top.is-light .logo-w { opacity: 0 }
.top.is-light .logo-c { opacity: 1; filter: none }
.top.is-light .nav a:hover { background: rgba(20,22,43,.07) }
.top.is-light .btn-light { background: var(--ink); color: #fff }
.top.is-light .menu-btn { background: rgba(20,22,43,.08); color: var(--ink) }
.top, .top .nav a, .top .tel { transition: color .6s ease }
.slide.light .scrim { background: linear-gradient(180deg, rgba(244,243,239,.55) 0%, rgba(244,243,239,0) 24%), linear-gradient(90deg, rgba(244,243,239,.9) 0%, rgba(244,243,239,.62) 34%, rgba(244,243,239,0) 58%) }
.slide.light .slide-copy { color: var(--ink) }
.slide.light p.lede { color: var(--ink-soft) }
.hero.is-light .pick { color: rgba(20,22,43,.5) }
.hero.is-light .pick[aria-current="true"] { color: var(--ink) }
.hero.is-light .pick .bar { background: rgba(20,22,43,.18) }
.hero.is-light .pick .bar i { background: var(--ink) }
.hero.is-light .pause { background: rgba(20,22,43,.08); color: var(--ink) }
.hero.is-light .pause .kdot { background: var(--ink) }
#s0 .bg { object-position: 50% 50% }
#s0 .scrim { background: linear-gradient(180deg, rgba(8,10,24,.5) 0%, rgba(8,10,24,0) 26%), linear-gradient(90deg, rgba(8,10,24,.82) 0%, rgba(8,10,24,.5) 36%, rgba(8,10,24,0) 62%), linear-gradient(0deg, rgba(8,10,24,.55) 0%, rgba(8,10,24,0) 32%) }
#s0 h1 { max-width: 8.2em }
#s0 p.lede { max-width: 30em }
@media (max-width: 760px) {
  #s0 .bg { object-position: 56% 50% }
  .slide.light .scrim { background: linear-gradient(180deg, rgba(244,243,239,.6) 0%, rgba(244,243,239,0) 20%), linear-gradient(0deg, rgba(244,243,239,.97) 0%, rgba(244,243,239,.8) 42%, rgba(244,243,239,0) 72%) }
}

/* carousel controls: the dots */
.hero-ctrl { position: absolute; left: 0; right: 0; bottom: clamp(28px, 5vh, 52px); z-index: 5 }
.hero-ctrl .wrap { display: flex; align-items: center; gap: clamp(8px, 2vw, 28px) }
.pick { display: flex; flex-direction: column; gap: 10px; min-width: 0; width: clamp(110px, 14vw, 190px); padding: 6px 0; background: none; border: 0; text-align: left; cursor: pointer; color: rgba(255,255,255,.62) }
.pick .row { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; white-space: nowrap }
.pick .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; transform: scale(.8); transition: transform .3s }
.pick[aria-current="true"] { color: #fff }
.pick[aria-current="true"] .dot { transform: scale(1.15) }
.pick .bar { height: 2px; background: rgba(255,255,255,.25); border-radius: 2px; overflow: hidden }
.pick .bar i { display: block; height: 100%; width: 0; background: #fff }
.pick[aria-current="true"] .bar i { animation: fill var(--dur, 7s) linear forwards }
.hero.paused .pick .bar i { animation-play-state: paused }
@keyframes fill { to { width: 100% } }
.pause { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: rgba(255,255,255,.12); color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px) }
.pause .kdot { width: 10px; height: 10px; border-radius: 50%; background: #fff }
@media (max-width: 760px) {
  .top:not(.solid) .logo img { height: 50px }
  .hero { min-height: 560px }
  .slide .scrim { background: linear-gradient(180deg, rgba(8,10,24,.55) 0%, rgba(8,10,24,0) 22%), linear-gradient(0deg, rgba(8,10,24,.9) 0%, rgba(8,10,24,.55) 40%, rgba(8,10,24,0) 70%) }
  .slide-copy { bottom: 112px; gap: 14px }
  .hero h1, .hero .h1 { font-size: clamp(36px, 10vw, 52px) }
  .hero p.lede { font-size: 16px }
  .hero .btn { min-height: 48px; padding: 0 18px; font-size: 15px }
  .pick { width: auto; flex: 1 }
  .pick .label { display: none }
  .pick[aria-current="true"] .label { display: inline }
  .pause .ptext { display: none }
  .ai-stage { width: 84vw; right: 8vw; top: 24%; transform: none }
  .ai-stage .bubble-hint { display: none }
}

/* ---------- reviews: a dark strip that carries on from the hero ---------- */
.reviews { background: var(--night); color: var(--on-dark); padding-block: clamp(40px, 5vw, 68px) }
.rev-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, 1fr)); align-items: start }
.rev-score { display: flex; flex-direction: column; gap: 10px; padding-right: clamp(20px, 3vw, 40px) }
.rev-score .big { display: flex; align-items: center; gap: 14px }
.rev-score b { font-family: var(--display); font-size: 52px; line-height: 1; font-weight: 700; letter-spacing: -1px; color: #fff }
.stars { position: relative; display: inline-block; font-size: 18px; letter-spacing: 3px; line-height: 1; color: rgba(255,255,255,.22) }
.stars::before { content: "★★★★★"; position: absolute; left: 0; top: 0; width: var(--fill, 100%); overflow: hidden; color: #F2B33D; white-space: nowrap }
.rev-score small { display: block; color: var(--on-dark-soft); font-size: 14px; margin-top: 5px }
.rev-score h2 { font-size: clamp(19px, 1.5vw, 23px); line-height: 1.25; color: #fff; max-width: 14em }
.rev { padding: 2px clamp(18px, 2.4vw, 34px); border-left: 1px solid rgba(255,255,255,.14); display: flex; flex-direction: column; gap: 12px }
.rev .stars { font-size: 13px; letter-spacing: 2px }
.rev p { margin: 0; font-size: 16.5px; line-height: 1.5; color: #E4E6F0 }
.rev .nm { font-size: 14px; color: var(--on-dark-soft) }
.rev .nm b { color: #fff; font-weight: 600 }
@media (max-width: 960px) {
  .rev-grid { grid-template-columns: minmax(0, 1fr); gap: 26px }
  .rev-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none }
  .rev-row::-webkit-scrollbar { display: none }
  .rev { flex: none; width: 78vw; scroll-snap-align: start; padding-inline: 0 22px; border-left: 0; border-right: 1px solid rgba(255,255,255,.14); margin-right: 22px }
}
@media (min-width: 961px) { .rev-row { display: contents } }

/* ---------- three ways in: full-bleed lanes that turn to ink ---------- */
.ways { background: var(--paper); padding-top: clamp(72px, 9vw, 120px) }
.ways-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 48px }
.ways-head h2 { font-size: clamp(40px, 5.4vw, 88px); line-height: 1.0 }
.ways-head p { margin: 0; max-width: 34ch; color: var(--ink-soft); font-size: 18px }
.lanes { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 64px); border-top: 1.5px solid var(--ink); background: #fff }
.lane { position: relative; overflow: hidden; min-height: clamp(380px, 54vh, 540px); padding: clamp(26px, 3vw, 46px); display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; text-decoration: none; color: var(--ink); border-right: 1px solid var(--line); transition: color .45s ease }
.lane:last-child { border-right: 0 }
.lane::before { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--ink); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .6s cubic-bezier(.2,.8,.2,1) }
.lane > * { position: relative; z-index: 1 }
.lane .big-dots { position: absolute; top: clamp(26px, 3vw, 46px); left: clamp(26px, 3vw, 46px); transform: scale(1.45); transform-origin: 0 0; --dx: 5px; --dy: 5px }
.lane .num { position: absolute; top: clamp(30px, 3.2vw, 50px); right: clamp(26px, 3vw, 46px); font-family: var(--mono); font-size: 13px; letter-spacing: 1.2px; color: var(--ink-soft); transition: color .45s ease }
.lane .k { font-family: var(--mono); font-size: 12.5px; letter-spacing: 1.4px; color: var(--ink-soft); transition: color .45s ease }
.lane h3 { font-size: clamp(30px, 2.9vw, 46px); line-height: 1.04 }
.lane p { margin: 0; max-width: 30ch; font-size: 17px; color: var(--ink-soft); transition: color .45s ease }
.lane .go { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; font-weight: 600; font-size: 16px }
.lane .go .arrow { width: 18px; height: 18px; transition: transform .3s }
.lane:hover, .lane:focus-visible { color: #fff }
.lane:hover::before, .lane:focus-visible::before { transform: scaleY(1) }
.lane:hover .k, .lane:hover .num, .lane:hover p, .lane:focus-visible .k, .lane:focus-visible .num, .lane:focus-visible p { color: var(--on-dark-soft) }
.lane:hover .go .arrow, .lane:focus-visible .go .arrow { transform: translateX(4px) }
.lane:hover .big-dots, .lane:focus-visible .big-dots { --dx: 12px; --dy: 12px }
.lane:hover .big-dots i, .lane:focus-visible .big-dots i { mix-blend-mode: screen }
.lane:hover .big-dots i:nth-child(4), .lane:focus-visible .big-dots i:nth-child(4) { background: #fff }
.lane:focus-visible { outline: 3px solid var(--c); outline-offset: -3px }
/* touch screens have no hover: show the cluster opened a little so it still reads */
@media (hover: none) { .lane .big-dots { --dx: 8px; --dy: 8px } }
@media (max-width: 860px) {
  .lanes { grid-template-columns: minmax(0, 1fr) }
  .lane { min-height: 0; padding-top: 128px; border-right: 0; border-bottom: 1px solid var(--line) }
  .lane:last-child { border-bottom: 0 }
}
@media (prefers-reduced-motion: reduce) { .lane::before { transition: none } }
/* small dot cluster, used on product hover */
.big-dots { position: absolute; width: 56px; height: 56px }
.big-dots i { position: absolute; left: 18px; top: 18px; width: 22px; height: 22px; border-radius: 50%; mix-blend-mode: multiply; transition: transform .5s cubic-bezier(.2,.8,.2,1) }
.big-dots i:nth-child(1) { background: var(--c); transform: translate(calc(var(--dx, 0px) * -1), calc(var(--dy, 0px) * -1)) }
.big-dots i:nth-child(2) { background: var(--m); transform: translate(var(--dx, 0px), calc(var(--dy, 0px) * -1)) }
.big-dots i:nth-child(3) { background: var(--y); transform: translate(calc(var(--dx, 0px) * -1), var(--dy, 0px)) }
.big-dots i:nth-child(4) { background: var(--k); transform: translate(var(--dx, 0px), var(--dy, 0px)) }

/* ---------- Mahi AI: chat beside a live canvas, like the real tool ---------- */
.ai { background: radial-gradient(70% 90% at 80% 30%, #3446A8 0%, var(--indigo) 50%, var(--indigo-deep) 100%); color: #fff; padding-block: clamp(80px, 10vw, 140px); overflow: hidden }
.ai .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px clamp(32px, 5vw, 80px); align-items: center }
.ai-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start }
.ai-copy h2 { font-size: clamp(38px, 4.4vw, 70px); line-height: 1.02 }
.ai-copy p { margin: 0; color: #D7DAF0; max-width: 36ch; font-size: 18px }
.ai-copy ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; color: #E6E8F6 }
.ai-copy li { display: flex; gap: 12px; align-items: baseline }
.ai-copy li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; transform: translateY(-2px) }
.ai-copy li:nth-child(2)::before { background: var(--m) } .ai-copy li:nth-child(3)::before { background: var(--y) }
.replay { align-self: flex-start; background: none; border: 0; color: #fff; font-weight: 600; padding: 10px 0; cursor: pointer; border-bottom: 1.5px solid rgba(255,255,255,.6) }
.app { background: #fff; color: var(--ink); border-radius: 22px; overflow: hidden; box-shadow: 0 50px 100px -40px rgba(0,0,0,.65) }
.app-bar { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line) }
.app-bar .avatar { width: 34px; height: 34px; border-radius: 10px; background: var(--paper); display: grid; place-items: center }
.app-bar .avatar .dots { transform: scale(.82) }
.app-bar b { font-family: var(--display); font-size: 16px }
.app-doc { color: var(--ink-soft); font-size: 14px; padding-left: 12px; border-left: 1px solid var(--line) }
.app-order { margin-left: auto; min-height: 36px; padding: 0 16px; border-radius: 999px; background: var(--indigo); color: #fff; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center }
.app .dots i { mix-blend-mode: multiply } .app .dots i:nth-child(4) { background: var(--k) }
.app-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: minmax(0, 1fr); height: 500px }
.chatcol { display: flex; flex-direction: column; border-right: 1px solid var(--line); min-width: 0; min-height: 0; overflow: hidden }
.msgs { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 18px 18px 20px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 64px); mask-image: linear-gradient(180deg, transparent 0, #000 64px) }
.msg { flex: none; display: flex; flex-direction: column; gap: 5px; max-width: 92%; animation: pop .5s cubic-bezier(.22,.9,.3,1) .06s both; transform-origin: left bottom }
.msg.you { transform-origin: right bottom }
.msg[hidden] { display: none }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98) } to { opacity: 1; transform: none } }
.msg .who { font-size: 12px; font-weight: 600; color: var(--ink-soft); display: flex; align-items: center; gap: 6px }
.msg .who .dots { transform: scale(.62); transform-origin: left center; width: 20px }
.msg.you { align-self: flex-end; align-items: flex-end }
.msg p { margin: 0; padding: 10px 14px; font-size: 15px; line-height: 1.45 }
.msg.you p { background: var(--ink); color: #fff; border-radius: 16px 16px 5px 16px }
.msg.bot p { background: #F1F1F4; border-radius: 16px 16px 16px 5px }
.typing { display: inline-flex; gap: 5px; background: #F1F1F4; padding: 12px 14px; border-radius: 16px 16px 16px 5px; width: max-content }
.typing i { width: 7px; height: 7px; border-radius: 50%; animation: bob 1s infinite ease-in-out }
.typing i:nth-child(1) { background: var(--c) } .typing i:nth-child(2) { background: var(--m); animation-delay: .15s } .typing i:nth-child(3) { background: var(--y); animation-delay: .3s }
@keyframes bob { 0%, 80%, 100% { transform: translateY(0) } 40% { transform: translateY(-4px) } }
.cw-input { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-top: 1px solid var(--line) }
.draft { flex: 1; min-width: 0; color: var(--ink-soft); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.draft.has { color: var(--ink) }
.send { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--indigo); color: #fff; display: grid; place-items: center; flex: none; transition: transform .2s }
.send.press { transform: scale(.86) }
.canvas { position: relative; display: flex; flex-direction: column; min-width: 0; background-color: #EEEEF1; background-image: radial-gradient(rgba(20,22,43,.12) 1px, transparent 1px); background-size: 16px 16px }
.cv-top { display: flex; align-items: center; gap: 6px; padding: 12px 14px; font-size: 13px; font-weight: 600 }
.cv-top span { padding: 6px 11px; border-radius: 8px; color: var(--ink-soft) }
.cv-top span.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(20,22,43,.08) }
.cv-top .zoom { margin-left: auto; font-family: var(--mono); font-weight: 500 }
.board { flex: 1; display: grid; place-items: center; padding: 18px 26px 10px }
.sheet-area { position: relative; width: min(100%, 440px) }
.bleed-box { position: absolute; inset: -3.5%; border: 1px dashed rgba(236,0,140,.55); border-radius: 4px; pointer-events: none }
.dcard { position: relative; aspect-ratio: 3.5 / 2; width: 100%; background: #fff; box-shadow: 0 1px 2px rgba(20,22,43,.12), 0 18px 34px -18px rgba(20,22,43,.45); overflow: hidden; container-type: inline-size }
.dcard .fill { position: absolute; inset: 0; background: #17181C; opacity: 0; transition: opacity .9s ease }
.dcard .safe { position: absolute; inset: 7%; border: 1px dashed rgba(0,174,239,.6); transition: border-color .9s ease }
.dcard .firm, .dcard .nm, .dcard .rl { position: absolute; left: 9%; color: #fff; opacity: 0; transform: translateY(6px); transition: opacity .7s ease, transform .7s ease }
.dcard .firm { top: 16%; font-family: var(--display); font-weight: 700; font-size: 4.2cqw; letter-spacing: .32em }
.dcard .nm { bottom: 36%; font-family: var(--display); font-weight: 700; font-size: 6.6cqw; letter-spacing: -.01em }
.dcard .rl { bottom: 25%; font-size: 3.3cqw; letter-spacing: .14em; color: #B4B8C4 }
.dcard .line { position: absolute; left: 0; right: 0; bottom: 10%; height: .9%; background: linear-gradient(90deg, #7F8287, #EEF0F3 30%, #A2A5AB 55%, #F4F5F7 78%, #85888D); transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.5,0,.2,1), height .6s ease }
.dcard.built .fill { opacity: 1 }
.dcard.built .safe { border-color: rgba(0,174,239,.35) }
.dcard.built .firm { opacity: 1; transform: none; transition-delay: .35s }
.dcard.built .nm { opacity: 1; transform: none; transition-delay: .55s }
.dcard.built .rl { opacity: 1; transform: none; transition-delay: .7s }
.dcard.built .line { transform: scaleX(1); transition-delay: .85s, 0s }
.dcard.thick .line { height: 2.4% }
.cv-foot { padding: 4px 14px 14px; color: var(--ink-soft) }
@media (max-width: 1020px) { .ai .wrap { grid-template-columns: minmax(0, 1fr) } }
@media (max-width: 680px) {
  .app-body { grid-template-columns: minmax(0, 1fr); height: auto }
  .canvas { order: -1; border-bottom: 1px solid var(--line) }
  .chatcol { border-right: 0 }
  .msgs { height: 250px; flex: none }
  .app-doc { display: none }
}

/* a business card that reads as paper, not clip art */
.realcard { position: relative; aspect-ratio: 3.5 / 2; width: 100%; border-radius: 6px; background-color: #17181C; overflow: hidden; color: #fff; box-shadow: 0 1px 1px rgba(0,0,0,.25), 0 2px 4px rgba(0,0,0,.15), 0 26px 40px -16px rgba(10,12,30,.55); container-type: inline-size }
.realcard::before { content: ""; position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E") }
.realcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 40%, rgba(0,0,0,.12) 100%) }
.realcard .foil { position: absolute; left: 0; right: 0; bottom: 9%; height: 1.4%; background: linear-gradient(90deg, #7F8287 0%, #EEF0F3 30%, #A2A5AB 55%, #F4F5F7 78%, #85888D 100%) }
.realcard .firm { position: absolute; left: 7.5%; top: 15%; font-family: var(--display); font-weight: 700; font-size: 3.6cqw; letter-spacing: .32em; color: #fff }
.realcard .firm small { display: block; margin-top: 1.4cqw; font-weight: 500; font-size: 2.3cqw; letter-spacing: .24em; color: #9EA2AD }
.realcard .rc-name { position: absolute; left: 7.5%; bottom: 31%; font-family: var(--display); font-weight: 700; font-size: 6.4cqw; letter-spacing: -.01em }
.realcard .rc-role { position: absolute; left: 7.5%; bottom: 21%; font-size: 3cqw; color: #B4B8C4; letter-spacing: .14em; text-transform: uppercase }
.realcard .rc-contact { position: absolute; right: 7.5%; bottom: 21%; text-align: right; font-size: 3cqw; line-height: 1.7; color: #D3D6DE }

/* ---------- products ---------- */
.products { padding-block: clamp(80px, 10vw, 130px) }
.products .head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: 30px }
.products .head p { margin: 10px 0 0; color: var(--ink-soft); max-width: 44ch }
.arrows { display: flex; align-items: center; gap: 10px }
.arrows .btn { min-height: 52px; margin-right: 6px }
.arrows button { width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; display: grid; place-items: center }
.arrows button:hover { background: var(--ink); color: #fff }
.row { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding-inline: var(--gutter); padding-bottom: 8px; scrollbar-width: none }
.row::-webkit-scrollbar { display: none }
.prod { flex: none; width: clamp(250px, 23vw, 330px); scroll-snap-align: start; text-decoration: none; display: flex; flex-direction: column; gap: 14px }
.prod .ph { position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: #D9D6CF }
.prod .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1) }
.prod:hover .ph img { transform: scale(1.05) }
.prod .ph .big-dots { position: absolute; right: 14px; bottom: 14px; width: 56px; height: 56px; opacity: 0; transition: opacity .3s }
.prod:hover .ph .big-dots, .prod:focus-visible .ph .big-dots { opacity: 1; --dx: 9px; --dy: 9px }
.prod .nm { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.01em }
.prod .meta { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-soft); font-size: 15px; margin-top: -8px }
.prod .meta b { color: var(--ink); font-weight: 600; white-space: nowrap }
.prod.signs-card .ph { background: var(--night); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; gap: 12px }
.prod.signs-card .ph strong { font-family: var(--display); font-size: 30px; line-height: 1.05 }
.fine { margin-top: 18px; color: var(--ink-soft) }

/* ---------- signs: pinned, full-bleed, the sign switches on as you scroll ---------- */
.signs { position: relative; height: 320vh; background: var(--night); color: var(--on-dark) }
.signs .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden }
.signs picture, .signs picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.signs .off { opacity: clamp(.45, .45 + var(--p, 0) * 6, 1) }
.signs .on { --q: clamp(0, (var(--p, 0) - .12) / .36, 1); -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--q) * 140% - 40%), transparent calc(var(--q) * 140%)); mask-image: linear-gradient(90deg, #000 calc(var(--q) * 140% - 40%), transparent calc(var(--q) * 140%)) }
.signs .bloom { position: absolute; inset: 0; background: radial-gradient(55% 26% at 50% 40%, rgba(255,222,170,.32), transparent 70%); mix-blend-mode: screen; opacity: clamp(0, (var(--p, 0) - .4) * 4, 1); pointer-events: none }
.signs .scrim { position: absolute; left: 0; right: 0; bottom: 0; height: 70%; background: linear-gradient(180deg, transparent, rgba(13,15,30,.8) 40%, rgba(13,15,30,.95) 80%); opacity: clamp(0, (var(--p, 0) - .48) * 5, 1) }
.signs-copy { position: absolute; left: 0; right: 0; bottom: clamp(24px, 5vh, 56px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px clamp(32px, 5vw, 80px); align-items: end }
.signs-copy .lead { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; opacity: clamp(0, (var(--p, 0) - .55) * 6, 1); transform: translateY(calc((1 - clamp(0, (var(--p, 0) - .55) * 6, 1)) * 30px)) }
.signs-copy h1, .signs-copy h2 { font-size: clamp(36px, 4.1vw, 66px); line-height: 1.04; max-width: 15em }
.signs-copy p { margin: 0; color: var(--on-dark-soft); max-width: 44ch; font-size: 18px }
.sign-types { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.18); opacity: clamp(0, (var(--p, 0) - .66) * 6, 1); transform: translateY(calc((1 - clamp(0, (var(--p, 0) - .66) * 6, 1)) * 30px)) }
.sign-types li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.18); font-size: 17px; font-weight: 500 }
.sign-types .d { width: 10px; height: 10px; border-radius: 50%; flex: none }
@media (max-width: 860px) {
  .signs { height: 290vh }
  .signs-copy { grid-template-columns: minmax(0, 1fr); gap: 16px }
  .signs-copy h1, .signs-copy h2 { font-size: clamp(32px, 8.6vw, 46px) }
  .signs-copy p { font-size: 15.5px }
  .sign-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px }
  .sign-types li { font-size: 14px; padding: 10px 0; gap: 9px }
}
@media (max-width: 860px) and (max-height: 720px) { .signs-copy p { display: none } }
@media (prefers-reduced-motion: reduce) {
  .signs { height: auto; --p: 1 !important }
  .signs .stage { position: relative; height: auto; min-height: 100vh }
  .signs-copy { position: relative; bottom: auto; padding-block: 52vh 56px }
}

/* ---------- sign work: the portfolio, straight after the sign scene ---------- */
.work { background: var(--night); color: var(--on-dark); padding-block: clamp(40px, 6vw, 80px) clamp(80px, 10vw, 130px) }
.work-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px 48px }
.work-head h2 { font-size: clamp(36px, 4.4vw, 68px); line-height: 1.02; margin-top: 16px; max-width: 12em }
.chips { display: flex; flex-wrap: wrap; gap: 8px }
.chips button { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 0; background: rgba(255,255,255,.08); color: var(--on-dark-soft); font-weight: 600; font-size: 14.5px; cursor: pointer; transition: background-color .2s, color .2s }
.chips button:hover { background: rgba(255,255,255,.14); color: #fff }
.chips button[aria-pressed="true"] { background: #fff; color: var(--ink) }
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: clamp(32px, 4vw, 52px) }
.w { margin: 0; display: flex; flex-direction: column; gap: 14px; grid-column: span 4 }
.w-a { grid-column: span 7 } .w-b { grid-column: span 5 }
.w[hidden] { display: none }
.w .ph { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: radial-gradient(120% 90% at 20% 0%, #23274A 0%, #15182F 55%, #101226 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); display: grid; place-items: center }
.w-a .ph, .w-b .ph { aspect-ratio: auto; height: clamp(260px, 27vw, 380px) }
.w .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.05) 50%, transparent 65%); background-size: 260% 100%; animation: sheen 6s ease-in-out infinite }
@keyframes sheen { from { background-position: 120% 0 } to { background-position: -20% 0 } }
.w .ph-in { display: flex; flex-direction: column; align-items: center; gap: 16px; color: #8E92AE; font-family: var(--mono); font-size: 12px; letter-spacing: 1.4px }
.w .ph .big-dots { position: relative; --dx: 6px; --dy: 6px }
.w .ph .big-dots i { mix-blend-mode: screen } .w .ph .big-dots i:nth-child(4) { background: #fff }
.w:hover .ph .big-dots { --dx: 12px; --dy: 12px }
.w figcaption { display: flex; justify-content: space-between; gap: 12px; font-size: 15.5px }
.w figcaption b { font-weight: 600; color: #fff }
.w figcaption span { color: var(--on-dark-soft) }
.work-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-top: clamp(32px, 4vw, 52px); padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14) }
.work-foot p { margin: 0; color: var(--on-dark-soft); max-width: 48ch }
.work-grid.filtered .w { grid-column: span 4 }
.work-grid.filtered .w .ph { aspect-ratio: 4 / 3; height: auto }
@media (max-width: 860px) {
  .work-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); gap: 14px; scrollbar-width: none }
  .work-grid::-webkit-scrollbar { display: none }
  .w, .w-a, .w-b { flex: none; width: 80vw; scroll-snap-align: start }
  .w-a .ph, .w-b .ph, .work-grid.filtered .w .ph { height: auto; aspect-ratio: 4 / 3 }
}

/* ---------- about: an editorial spread with the press photos ---------- */
.about { padding-block: clamp(84px, 11vw, 150px) clamp(64px, 8vw, 110px); background: var(--paper); overflow: hidden }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px clamp(40px, 6vw, 104px); align-items: center }
.about-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start }
.about-copy h1, .about-copy h2 { font-size: clamp(40px, 4.8vw, 76px); line-height: 1.0 }
.about-copy .big { margin: 0; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; color: var(--ink) }
.about-copy p { margin: 0; color: var(--ink-soft); max-width: 46ch }
.about-media { position: relative; aspect-ratio: 1 / 1.02; --a: 0 }
.am { position: absolute; margin: 0; overflow: hidden; border-radius: 20px; box-shadow: 0 40px 80px -46px rgba(20,22,43,.6); transform: translateY(calc(var(--a) * var(--sp, 0px))) }
.am img { width: 100%; height: 100%; object-fit: cover }
.am-1 { left: 0; top: 4%; width: 60%; aspect-ratio: 4 / 5; --sp: -36px }
.am-1 img { object-position: 30% 50% }
.am-2 { right: 0; top: 0; width: 44%; aspect-ratio: 1; --sp: 30px; z-index: 2 }
.am-2 img { object-position: 62% 40% }
.am-3 { right: 6%; bottom: 0; width: 56%; aspect-ratio: 16 / 10; --sp: -14px; z-index: 3 }
.am-3 img { object-position: 64% 50% }
.about-media .big-dots { position: absolute; left: 51%; top: 44%; z-index: 4; transform: scale(1.7); transform-origin: 0 0; --dx: 2px; --dy: 2px }
.about-media.in .big-dots { --dx: 9px; --dy: 9px }
.about-media .big-dots i { transition: transform 1.2s cubic-bezier(.2,.8,.2,1) .3s }
.about-facts { list-style: none; margin: clamp(56px, 7vw, 96px) auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 }
.about-facts li { display: flex; flex-direction: column; gap: 8px; padding: 24px clamp(14px, 2vw, 28px) 4px 0; border-top: 1.5px solid var(--ink) }
.about-facts li + li { padding-left: clamp(14px, 2vw, 28px); border-left: 1px solid var(--line) }
.about-facts .fd { width: 12px; height: 12px; border-radius: 50%; margin-bottom: 8px }
.about-facts b { font-family: var(--display); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.2 }
.about-facts span:not(.fd) { color: var(--ink-soft); font-size: 15.5px }
@media (max-width: 960px) {
  .about-grid { grid-template-columns: minmax(0, 1fr) }
  .about-facts { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .about-facts li:nth-child(3) { border-left: 0; padding-left: 0 }
}
@media (max-width: 520px) { .about-media .big-dots { transform: scale(1.15) } }

/* ---------- delivery page (its own page; the header and footer stay the same) ---------- */
.page[hidden] { display: none }
.del-hero { position: relative; overflow: hidden; min-height: min(92svh, 860px); background: radial-gradient(90% 80% at 80% 20%, #1E2453 0%, var(--night) 62%); color: #fff; display: flex; align-items: flex-end }
.del-hero .route { position: absolute; inset: 0; width: 100%; height: 100% }
.del-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(13,15,30,.85) 0%, rgba(13,15,30,.4) 38%, rgba(13,15,30,0) 58%) }
@media (max-width: 760px) { .del-hero::after { background: linear-gradient(0deg, rgba(13,15,30,.92) 0%, rgba(13,15,30,.6) 55%, rgba(13,15,30,.1) 100%) } }
.del-hero .copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding-block: 160px clamp(64px, 10vh, 110px) }
.del-hero h1 { font-size: clamp(46px, 6.4vw, 104px); line-height: 1.0; max-width: 9em }
.del-hero p { margin: 0; max-width: 40ch; font-size: clamp(17px, 1.4vw, 20px); color: #DADCEA }
.soon { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); font-family: var(--mono); font-size: 12.5px; letter-spacing: 1.2px }
.soon i { width: 8px; height: 8px; border-radius: 50%; background: var(--y); box-shadow: 0 0 0 0 rgba(255,230,0,.6); animation: ping 1.8s ease-out infinite }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(255,230,0,0) } 100% { box-shadow: 0 0 0 0 rgba(255,230,0,0) } }
.del-body { padding-block: clamp(70px, 9vw, 120px); background: var(--paper) }
.del-body h2 { font-size: clamp(32px, 3.4vw, 52px); line-height: 1.05; max-width: 16em }
.del-steps { list-style: none; margin: clamp(32px, 4vw, 52px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px }
.del-steps li { background: #fff; border-radius: 20px; padding: clamp(24px, 2.6vw, 34px); display: flex; flex-direction: column; gap: 12px; min-height: 230px }
.del-steps .n { font-family: var(--mono); font-size: 12.5px; letter-spacing: 1.2px; color: var(--ink-soft); display: flex; align-items: center; gap: 10px }
.del-steps .n i { width: 10px; height: 10px; border-radius: 50% }
.del-steps h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.12; margin-top: auto }
.del-steps p { margin: 0; color: var(--ink-soft) }
.del-steps li.next { background: var(--ink); color: #fff }
.del-steps li.next .n, .del-steps li.next p { color: var(--on-dark-soft) }
@media (max-width: 860px) { .del-steps { grid-template-columns: minmax(0, 1fr) } .del-steps li { min-height: 0 } .del-steps h3 { margin-top: 18px } }
@media (prefers-reduced-motion: reduce) { .w .ph::after, .soon i { animation: none } .am { transform: none } }

/* ---------- mega menu: opens from Products on wide screens ---------- */
.top.mega-open { background: #0E1022; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px) }
.nav .has-mega { display: inline-flex; align-items: center; gap: 6px }
.nav .has-mega .chev { width: 10px; height: 10px; transition: transform .25s }
.top.mega-open .nav .has-mega { background: rgba(255,255,255,.14) }
.top.mega-open .nav .has-mega .chev { transform: rotate(180deg) }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #0E1022; border-top: 1px solid rgba(255,255,255,.08); box-shadow: 0 40px 60px -30px rgba(0,0,0,.6); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s }
.mega.open { opacity: 1; visibility: visible; transform: none; transition: opacity .22s ease, transform .22s ease }
.top .mega .wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(28px, 3vw, 48px); align-items: stretch; padding-block: 30px 34px }
.mega-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 1fr auto }
.mega-col { display: flex; flex-direction: column; gap: 26px; padding-inline: 26px; border-left: 1px solid rgba(255,255,255,.1) }
.mega-col:first-child { padding-left: 0; border-left: 0 }
.mega-grp h4 { margin: 0 0 8px; display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 1.3px; color: #8E92AE }
.mega-grp h4 i { width: 9px; height: 9px; border-radius: 50% }
.mega a.mi { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 10px 0; color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.07); transition: color .2s, padding .25s }
.mega a.mi:last-child { border-bottom: 0 }
.mega a.mi:hover, .mega a.mi:focus-visible { color: var(--c); padding-left: 6px }
.mega a.mi small { color: #8E92AE; font-weight: 500; font-size: 13px; white-space: nowrap }
.mega .tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1px; padding: 2px 7px; border-radius: 999px; background: rgba(255,230,0,.16); color: var(--y) }
.mega-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1fr auto; column-gap: 0 }
.mega-list { display: flex; flex-direction: column; justify-content: flex-start; padding-inline: 28px; border-left: 1px solid rgba(255,255,255,.1) }
.mega-list:first-child { padding-left: 0; border-left: 0 }
.mega a.mt { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto 18px; align-items: center; gap: 14px; padding: 15px 0; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.08); transition: color .25s }
.mega a.mt:last-child { border-bottom: 0 }
.mega .mt i { width: 9px; height: 9px; border-radius: 50%; transition: transform .35s cubic-bezier(.2,.8,.2,1) }
.mega .mt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; transition: transform .35s cubic-bezier(.2,.8,.2,1) }
.mega .mt small { color: #8E92AE; font-size: 13.5px; white-space: nowrap }
.mega .mt .arrow { width: 18px; height: 18px; opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .35s cubic-bezier(.2,.8,.2,1) }
.mega a.mt:hover, .mega a.mt:focus-visible { color: #fff }
.mega a.mt:hover i, .mega a.mt:focus-visible i { transform: scale(1.6) }
.mega a.mt:hover b, .mega a.mt:focus-visible b { transform: translateX(4px) }
.mega a.mt:hover .arrow, .mega a.mt:focus-visible .arrow { opacity: 1; transform: none }
.mega-list { padding-block: 0 }
.mega-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14.5px; color: #8E92AE }
.mega-foot a { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; text-decoration: none }
.mega-foot a .arrow { width: 16px; height: 16px; transition: transform .3s }
.mega-foot a:hover .arrow { transform: translateX(3px) }
.mega-foot .push { margin-left: auto }
.mega-ai { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; padding: 28px; border-radius: 22px; text-decoration: none; color: #fff; background: radial-gradient(90% 120% at 90% 0%, #3446A8 0%, var(--indigo) 50%, var(--indigo-deep) 100%); min-height: 300px }
.mega-ai .copy { display: flex; flex-direction: column; gap: 12px; align-items: flex-start }
.mega-ai .k { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 13.5px; color: #D7DAF0 }
.mega-ai b { font-family: var(--display); font-size: clamp(26px, 2.2vw, 34px); line-height: 1.04; letter-spacing: -0.02em }
.mega-ai .copy > span.t { color: #D7DAF0; font-size: 15px; line-height: 1.45 }
.mega-ai .go { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; font-size: 14.5px }
.mega-ai .go .arrow { width: 17px; height: 17px; transition: transform .3s }
.mega-ai:hover .go .arrow { transform: translateX(4px) }
.mega-ai .demo { display: flex; flex-direction: column; justify-content: center; gap: 14px }
.mega-ai .bub { align-self: flex-end; max-width: 92%; background: #fff; color: var(--ink); border-radius: 16px 16px 5px 16px; padding: 10px 13px; font-size: 13.5px; line-height: 1.4; box-shadow: 0 16px 30px -18px rgba(0,0,0,.6) }
.mega-ai .mini { position: relative; aspect-ratio: 3.5 / 2; border-radius: 8px; background: #17181C; padding: 9% 9% 0; display: flex; flex-direction: column; box-shadow: 0 26px 40px -22px rgba(0,0,0,.8); transform: rotate(-3deg); transition: transform .6s cubic-bezier(.2,.8,.2,1) }
.mega-ai:hover .mini { transform: rotate(0) translateY(-3px) }
.mega-ai .mini .f { font-size: 9px; letter-spacing: 3px; font-weight: 700 }
.mega-ai .mini .n { margin-top: auto; font-weight: 700; font-size: 15px }
.mega-ai .mini .r { font-size: 8px; letter-spacing: 1.5px; color: #A9ABB4; margin: 3px 0 12% }
.mega-ai .mini .ln { position: absolute; left: 0; right: 0; bottom: 9%; height: 3px; background: linear-gradient(90deg, #8B8E96, #F2F3F5 45%, #8B8E96) }
.mega-ai .dots i { mix-blend-mode: screen } .mega-ai .dots i:nth-child(4) { background: #fff }
@media (max-width: 1020px) { .mega { display: none } }
@media (max-width: 1260px) { .top .mega .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 340px) } .mega-ai { grid-template-columns: minmax(0, 1fr) } .mega-ai .demo { display: none } .mega-ai { min-height: 0 } }

/* phone menu: products open in place */
.sheet details { border-bottom: 1px solid rgba(255,255,255,.12) }
.sheet summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 14px 0; font-family: var(--display); font-weight: 700; font-size: 28px; cursor: pointer }
.sheet summary::-webkit-details-marker { display: none }
.sheet summary::after { content: "+"; font-family: var(--body); font-weight: 500; font-size: 28px; color: #8E92AE }
.sheet details[open] summary::after { content: "–" }
.sheet details .sub { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; padding: 0 0 16px }
.sheet details .sub a { font-family: var(--body); font-weight: 600; font-size: 17px; padding: 10px 0; border-bottom: 0 }
.sheet details .sub a.all { grid-column: 1 / -1; color: var(--c) }

/* ---------- pages under the header ---------- */
.page-top { padding-top: clamp(118px, 13vw, 168px) }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .6px; color: var(--ink-soft) }
.crumbs a { text-decoration: none } .crumbs a:hover { color: var(--ink); text-decoration: underline }

/* all products */
.ap-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 48px; align-items: end; padding-bottom: clamp(28px, 4vw, 44px) }
.ap-head h1 { font-size: clamp(48px, 7vw, 112px); line-height: .98; margin-top: 18px }
.ap-head p { margin: 0; color: var(--ink-soft); font-size: clamp(17px, 1.4vw, 20px); max-width: 38ch }
.ap-bar { position: sticky; top: 78px; z-index: 5; background: rgba(244,243,239,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-block: 1px solid var(--line) }
.ap-bar .wrap { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: none }
.ap-bar .wrap::-webkit-scrollbar { display: none }
.ap-bar button { flex: none; display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 14.5px; cursor: pointer; transition: background-color .2s, color .2s }
.ap-bar button i { width: 9px; height: 9px; border-radius: 50% }
.ap-bar button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none }
.ap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) 18px; padding-block: clamp(32px, 4vw, 52px) clamp(70px, 9vw, 120px) }
.ap-grid .prod { width: auto }
.ap-grid .prod[hidden] { display: none }
.ap-grid .prod .ph { aspect-ratio: 4 / 4.4 }
.badge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .8px; color: var(--ink-soft) }
.badge i { width: 8px; height: 8px; border-radius: 50% }
.ph-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #8A8676; font-family: var(--mono); font-size: 12px; letter-spacing: 1.3px }
.ph-empty .big-dots { position: relative !important; right: auto !important; bottom: auto !important; opacity: 1 !important; --dx: 6px; --dy: 6px }
.prod .ph .soon-tag { position: absolute; left: 14px; top: 14px; z-index: 2; font-family: var(--mono); font-size: 11.5px; letter-spacing: 1px; padding: 6px 10px; border-radius: 999px; background: var(--ink); color: #fff }
.ap-signs .ph { background: var(--night) !important }
.ap-signs .ph img { opacity: .9 }
.ap-signs .ph .ov { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 22px; color: #fff; background: linear-gradient(0deg, rgba(13,15,30,.85), rgba(13,15,30,0) 60%) }
.ap-signs .ph .ov strong { font-family: var(--display); font-size: 26px; line-height: 1.05 }
.ap-more { background: var(--paper-2); padding-block: clamp(60px, 8vw, 100px) }
.ap-more .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px }
.ap-more h2 { font-size: clamp(30px, 3.4vw, 50px); line-height: 1.04; max-width: 16em }
.ap-more p { margin: 10px 0 0; color: var(--ink-soft); max-width: 46ch }
@media (max-width: 960px) { .ap-head { grid-template-columns: minmax(0, 1fr) } .ap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 560px) {
  .ap-bar { top: 64px }
  .ap-grid { gap: 26px 12px }
  .ap-grid .prod .nm { font-size: 17px }
  .ap-grid .prod .meta { flex-direction: column; gap: 2px; font-size: 13.5px; margin-top: -10px }
  .ap-grid .prod .ph { border-radius: 14px }
  .ap-signs .ph .ov strong { font-size: 19px } .ap-signs .ph .ov span { display: none }
}

/* product page */
.pp-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(32px, 5vw, 80px); align-items: start; padding-bottom: clamp(60px, 8vw, 100px) }
.pp-media { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 14px }
.pp-img { position: relative; aspect-ratio: 896 / 1000; border-radius: 22px; overflow: hidden; background: #D9D6CF }
.pp-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50% }
.pp-img > .big-dots { position: absolute; right: 18px; bottom: 18px; --dx: 6px; --dy: 6px }
.pp-specs { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pp-specs div { background: #fff; border-radius: 14px; padding: 12px 14px }
.pp-specs dt { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; color: var(--ink-soft) }
.pp-specs dd { margin: 3px 0 0; font-weight: 600; font-size: 15px }
.pp-buy, .pp-live { display: flex; flex-direction: column; gap: 22px; min-width: 0 }
.pp-buy h1 { font-size: clamp(40px, 4.4vw, 68px); line-height: 1.0; margin-top: -4px }
.pp-lede { margin: 0; color: var(--ink-soft); font-size: 17.5px }
.opt { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px }
.opt-l { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 1.1px; color: var(--ink-soft) }
.opt-l b { font-family: var(--body); font-weight: 600; letter-spacing: 0; font-size: 14px; color: var(--ink); text-transform: none }
.seg { display: flex; flex-wrap: wrap; gap: 8px }
.seg button { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 14.5px; cursor: pointer; text-align: left; transition: box-shadow .15s, background-color .15s }
.seg button:hover { box-shadow: inset 0 0 0 1.5px var(--ink) }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none }
.qty { display: flex; flex-wrap: wrap; gap: 8px }
.qty button { flex: 1 1 84px }
.qty button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 11px 13px; border-radius: 12px; border: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; text-align: left; transition: box-shadow .15s, background-color .15s }
.qty button b { font-size: 16px }
.qty button small { font-size: 13.5px; color: var(--ink-soft) }
.qty button:hover { box-shadow: inset 0 0 0 1.5px var(--ink) }
.qty button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none }
.qty button[aria-pressed="true"] small { color: var(--on-dark-soft) }
.qty button:disabled { opacity: .45; cursor: not-allowed }
.pp-total { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; background: #fff; border-radius: 18px; padding: 20px 22px }
.pp-total .mono { color: var(--ink-soft); font-size: 11.5px; letter-spacing: 1.1px }
.pp-total strong { display: block; font-family: var(--display); font-size: clamp(38px, 3.6vw, 52px); line-height: 1; letter-spacing: -0.02em; margin-top: 6px }
.pp-total small { display: block; color: var(--ink-soft); font-size: 14px; margin-top: 6px }
.pp-total .ready { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; font-weight: 600; font-size: 15px }
.pp-total .ready span { font-weight: 500; color: var(--ink-soft); font-size: 13.5px }
.pp-total.quote strong { font-size: clamp(26px, 2.4vw, 34px) }
.startl { display: flex; flex-direction: column; gap: 8px }
.startl .opt-l { margin-bottom: 2px }
.wm { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 14px; padding: 16px 18px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; overflow: hidden; transition: color .3s ease }
.wm::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s cubic-bezier(.2,.8,.2,1) }
.wm > * { position: relative }
.wm .d { width: 12px; height: 12px; border-radius: 50%; grid-row: span 2 }
.wm b { font-size: 16.5px }
.wm small { grid-column: 2; color: var(--ink-soft); font-size: 14px; transition: color .3s }
.wm .arrow { width: 20px; height: 20px; grid-column: 3; grid-row: 1 / span 2; transition: transform .3s }
.wm:hover, .wm:focus-visible { color: #fff }
.wm:hover::before, .wm:focus-visible::before { transform: none }
.wm:hover small, .wm:focus-visible small { color: var(--on-dark-soft) }
.wm:hover .arrow { transform: translateX(4px) }
.wm.primary { background: var(--indigo); color: #fff; box-shadow: none }
.wm.primary small { color: #D7DAF0 }
.pp-note { margin: 0; color: var(--ink-soft); font-size: 14px }
.pp-more { background: #fff; padding-block: clamp(60px, 8vw, 100px) }
.pp-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 }
.pp-facts li { padding: 22px clamp(14px, 2vw, 28px) 6px 0; border-top: 1.5px solid var(--ink); display: flex; flex-direction: column; gap: 8px }
.pp-facts li + li { padding-left: clamp(14px, 2vw, 28px); border-left: 1px solid var(--line) }
.pp-facts .fd { width: 12px; height: 12px; border-radius: 50%; margin-bottom: 6px }
.pp-facts b { font-family: var(--display); font-size: clamp(19px, 1.6vw, 23px) }
.pp-facts span:not(.fd) { color: var(--ink-soft); font-size: 15.5px }
.pp-facts a { color: var(--ink); font-weight: 600 }
.pp-rel { margin-top: clamp(56px, 7vw, 90px) }
.pp-rel h2 { font-size: clamp(28px, 3vw, 44px); margin-bottom: 24px }
.pp-rel .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px }
.pp-rel .prod { width: auto }
@media (max-width: 960px) {
  .pp-grid { grid-template-columns: minmax(0, 1fr) }
  .pp-media { position: relative; top: 0 }
  .pp-img { aspect-ratio: 4 / 3.4 }
  .pp-facts { grid-template-columns: minmax(0, 1fr) }
  .pp-facts li + li { padding-left: 0; border-left: 0 }
  .pp-rel .grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter) }
  .pp-rel .grid::-webkit-scrollbar { display: none }
  .pp-rel .prod { flex: none; width: 66vw; scroll-snap-align: start }
}
@media (max-width: 560px) { .pp-specs { grid-template-columns: repeat(2, minmax(0, 1fr)) } .pp-total .ready { align-items: flex-start; text-align: left } }

/* ---------- shared page head ---------- */
.pg-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 48px; align-items: end; padding-bottom: clamp(40px, 5vw, 64px) }
.pg-head h1 { font-size: clamp(48px, 7vw, 108px); line-height: .98; margin-top: 18px }
.pg-head > p, .pg-head .side p { margin: 0; color: var(--ink-soft); font-size: clamp(17px, 1.4vw, 20px); max-width: 40ch }
.pg-head .side { display: flex; flex-direction: column; gap: 22px; align-items: flex-start }
.on-dark .crumbs { color: var(--on-dark-soft) } .on-dark .crumbs a:hover { color: #fff }
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px }
.steps3 li { position: relative; background: #fff; border-radius: 22px; padding: clamp(24px, 2.6vw, 34px); display: flex; flex-direction: column; gap: 12px; min-height: 250px; overflow: hidden }
.steps3 .n { font-family: var(--mono); font-size: 12.5px; letter-spacing: 1.2px; color: var(--ink-soft); display: flex; align-items: center; gap: 10px }
.steps3 .n i { width: 10px; height: 10px; border-radius: 50% }
.steps3 h3 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.08; margin-top: auto }
.steps3 p { margin: 0; color: var(--ink-soft); min-height: 4.65em }
.steps3 .big { position: absolute; right: -10px; top: -26px; font-family: var(--display); font-weight: 800; font-size: 150px; line-height: 1; letter-spacing: -0.04em; color: rgba(20,22,43,.05) }
.sec-pad { padding-block: clamp(70px, 9vw, 120px) }
.sec-title { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 40px; margin-bottom: clamp(28px, 3.5vw, 44px) }
.sec-title h2 { font-size: clamp(34px, 4vw, 60px); line-height: 1.02; max-width: 14em }
.sec-title p { margin: 0; color: var(--ink-soft); max-width: 40ch }
.faq { border-top: 1.5px solid var(--ink) }
.faq details { border-bottom: 1px solid var(--line) }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: clamp(19px, 1.7vw, 24px) }
.faq summary::-webkit-details-marker { display: none }
.faq summary .pm { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s, transform .3s }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: currentColor; border-radius: 2px; transition: transform .3s }
.faq summary .pm::after { transform: rotate(90deg) }
.faq details[open] summary .pm { background: var(--ink); color: #fff }
.faq details[open] summary .pm::after { transform: rotate(0) }
.faq details p { margin: 0 0 24px; max-width: 62ch; color: var(--ink-soft); font-size: 17px }
.cta-band { background: var(--ink); color: #fff; padding-block: clamp(64px, 8vw, 110px); overflow: hidden; position: relative }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; position: relative }
.cta-band h2 { font-size: clamp(34px, 4.4vw, 68px); line-height: 1.0; max-width: 12em }
.cta-band .big-dots { position: absolute; right: 8%; top: 50%; transform: translateY(-50%) scale(5); opacity: .22; --dx: 9px; --dy: 9px }
.cta-band .big-dots i { mix-blend-mode: screen } .cta-band .big-dots i:nth-child(4) { background: #fff }
@media (max-width: 960px) { .pg-head { grid-template-columns: minmax(0, 1fr) } .steps3 { grid-template-columns: minmax(0, 1fr) } .steps3 li { min-height: 0 } .steps3 p { min-height: 0 } .ct b.em { white-space: normal; overflow-wrap: anywhere } .steps3 h3 { margin-top: 26px } }

/* ---------- Mahi AI page ---------- */
.ai-hero { position: relative; overflow: hidden; background: var(--night); color: #fff; padding-bottom: clamp(56px, 7vw, 96px) }
.ai-hero .pg-head { position: relative; z-index: 2; padding-bottom: 0 }
.ai-hero .pg-head p { color: #DADCEA }
.ai-hero h1 { max-width: 7.5em }
.ai-hero .pg-head .side { grid-column: 1; max-width: 560px }
.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center }
.ai-chips span { color: var(--on-dark-soft); font-size: 14.5px; margin-right: 4px }
.ai-chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; text-decoration: none; font-weight: 600; font-size: 14.5px; transition: background-color .2s }
.ai-chips a:hover { background: rgba(255,255,255,.2) }
.ai-orbs { position: absolute; right: -6vw; top: 50%; width: min(56vw, 760px); aspect-ratio: 1; transform: translateY(-46%); pointer-events: none; opacity: .9 }
.ai-orbs i { position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; mix-blend-mode: screen; filter: blur(.5px); animation: orbit 14s ease-in-out infinite alternate }
.ai-orbs i:nth-child(1) { background: var(--c); left: 18%; top: 14%; opacity: .55 }
.ai-orbs i:nth-child(2) { background: var(--m); left: 38%; top: 14%; opacity: .5; animation-delay: -3s }
.ai-orbs i:nth-child(3) { background: var(--y); left: 18%; top: 36%; opacity: .45; animation-delay: -6s }
.ai-orbs i:nth-child(4) { background: #fff; left: 38%; top: 36%; opacity: .14; animation-delay: -9s }
@keyframes orbit { 0% { transform: translate(0, 0) } 50% { transform: translate(4%, -3%) } 100% { transform: translate(-3%, 4%) } }
.ai-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(13,15,30,.92) 0%, rgba(13,15,30,.55) 45%, rgba(13,15,30,0) 75%) }
#ai-slot .ai { padding-top: clamp(60px, 8vw, 110px) }
@media (max-width: 760px) { .ai-orbs { width: 110vw; right: -40vw; top: 34%; opacity: .55 } .ai-hero::after { background: linear-gradient(0deg, rgba(13,15,30,.95) 0%, rgba(13,15,30,.6) 60%, rgba(13,15,30,.2) 100%) } }
@media (prefers-reduced-motion: reduce) { .ai-orbs i { animation: none } }

/* ---------- reorder ---------- */
.ro-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; align-items: stretch }
.ro-card { background: var(--ink); color: #fff; border-radius: 22px; padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; justify-content: space-between }
.ro-card h3 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.1 }
.ro-card p { margin: 0; color: var(--on-dark-soft) }
.ro-card .mock { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.08); border-radius: 14px; padding: 8px 8px 8px 18px; color: #8E92AE; font-size: 15.5px }
.ro-card .mock span { flex: 1 }
.ro-card .mock b { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 10px; background: #fff; color: var(--ink); font-size: 14.5px }
.ro-side { background: #fff; border-radius: 22px; padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px }
.ro-side h3 { font-size: 22px }
.ro-side p { margin: 0; color: var(--ink-soft) }
.ro-side a { color: var(--ink); font-weight: 600 }
@media (max-width: 960px) { .ro-grid { grid-template-columns: minmax(0, 1fr) } }

/* ---------- help ---------- */
.help-tabs { position: sticky; top: 78px; z-index: 5; background: rgba(244,243,239,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-block: 1px solid var(--line) }
.help-tabs .wrap { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: none }
.help-tabs .wrap::-webkit-scrollbar { display: none }
.help-tabs a { flex: none; display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 14.5px; text-decoration: none }
.help-tabs a i { width: 9px; height: 9px; border-radius: 50% }
.help-tabs a:hover { box-shadow: inset 0 0 0 1.5px var(--ink) }
.hsec { padding-block: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line) }
main section.hsec[id] { scroll-margin-top: 146px }
.hsec:last-of-type { border-bottom: 0 }
.hsec-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 28px clamp(32px, 5vw, 80px) }
.hsec-grid > div:first-child { display: flex; flex-direction: column; gap: 14px; align-items: flex-start }
.hsec h2 { font-size: clamp(32px, 3.4vw, 50px); line-height: 1.04 }
.hsec-grid > div:first-child p { margin: 0; color: var(--ink-soft) }
.spec-list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px }
.spec-list div { background: #fff; border-radius: 16px; padding: 18px 20px }
.spec-list dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: 1.1px; color: var(--ink-soft) }
.spec-list dd { margin: 6px 0 0; font-weight: 600; font-size: 17px }
.spec-list dd span { display: block; font-weight: 400; color: var(--ink-soft); font-size: 15px; margin-top: 4px }
.spec-wrap { display: flex; flex-direction: column; gap: 12px }
.bleed-demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; background: #fff; border-radius: 16px; padding: 22px }
.bd-card { position: relative; aspect-ratio: 3.75 / 2.25; background: var(--indigo); border-radius: 4px }
.bd-card .trim { position: absolute; inset: 5.5%; border: 1.5px solid #fff; }
.bd-card .safe { position: absolute; inset: 11%; border: 1.5px dashed var(--y) }
.bd-card .nm { position: absolute; left: 15%; bottom: 18%; color: #fff; font-family: var(--display); font-weight: 700; font-size: clamp(14px, 1.4vw, 19px) }
.bd-key { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px }
.bd-key li { display: flex; gap: 12px; align-items: baseline }
.bd-key i { flex: none; width: 22px; height: 0; border-top: 2px solid; transform: translateY(-4px) }
.tt { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; font-size: 16px }
.tt th, .tt td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line) }
.tt th { font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: 1.1px; color: var(--ink-soft) }
.tt tr:last-child td { border-bottom: 0 }
.tt td:last-child { font-weight: 600 }
.tt td small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 13.5px }
.cards2 > .todo, .todo { background: #FFF6B8; border-radius: 16px; padding: 18px 20px; font-size: 15px }
.todo b { font-family: var(--mono); font-size: 11.5px; letter-spacing: 1px; display: block; margin-bottom: 6px }
.cards2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px }
.cards2 > div { background: #fff; border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 8px }
.cards2 h3 { font-size: 21px }
.cards2 p { margin: 0; color: var(--ink-soft) }
.cards2 a { color: var(--ink); font-weight: 600 }
@media (max-width: 960px) { .hsec-grid { grid-template-columns: minmax(0, 1fr) } }
@media (max-width: 560px) { .help-tabs { top: 64px } .spec-list, .cards2 { grid-template-columns: minmax(0, 1fr) } .bleed-demo { grid-template-columns: minmax(0, 1fr) } .tt th, .tt td { padding: 14px } }

/* ---------- contact ---------- */
.ct-wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px clamp(40px, 6vw, 110px); align-items: start }
.ct-main h1 { font-size: clamp(48px, 7vw, 108px); line-height: .98; margin-top: 18px }
.ct-lede { margin: 18px 0 0; color: var(--ink-soft); font-size: clamp(17px, 1.4vw, 20px) }
.ct-list { margin: clamp(36px, 4vw, 56px) 0 0; border-top: 1.5px solid var(--ink) }
.ct-list > div { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(0, 3fr); gap: 8px 24px; padding: 22px 0; border-bottom: 1px solid var(--line) }
.ct-list dt { font-family: var(--mono); font-size: 12px; letter-spacing: 1.2px; color: var(--ink-soft); padding-top: 6px }
.ct-list dd { margin: 0; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5 }
.ct-list dd > a:not(.ct-dir) { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2vw, 30px); text-decoration: none }
.ct-list dd > a:not(.ct-dir):hover { text-decoration: underline; text-underline-offset: 4px }
.ct-list dd span { color: var(--ink-soft); font-size: 16px }
.ct-dir { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 600; font-size: 16px }
.ct-dir .arrow { width: 16px; height: 16px }
.ct-aside { position: sticky; top: 110px; display: flex; flex-direction: column; background: #fff; border-radius: 22px; padding: 28px 28px 14px; margin-top: clamp(40px, 6vw, 70px) }
.ct-aside h2 { font-size: 22px; margin-bottom: 10px }
.ct-aside a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 16.5px }
.ct-aside a .arrow { width: 18px; height: 18px; transition: transform .3s }
.ct-aside a:hover .arrow { transform: translateX(4px) }
@media (max-width: 860px) { .ct-wrap { grid-template-columns: minmax(0, 1fr) } .ct-aside { position: static; margin-top: 0 } }
@media (max-width: 520px) { .ct-list > div { grid-template-columns: minmax(0, 1fr) } .ct-list dt { padding-top: 0 } }

/* ---------- legal pages ---------- */
.legal { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 32px clamp(40px, 6vw, 100px); padding-bottom: clamp(70px, 9vw, 120px) }
.legal nav { position: sticky; top: 110px; align-self: start; display: flex; flex-direction: column; gap: 2px; border-top: 1.5px solid var(--ink); padding-top: 10px }
.legal nav a { padding: 8px 0; text-decoration: none; color: var(--ink-soft); font-size: 15px }
.legal nav a:hover { color: var(--ink) }
.legal article { display: flex; flex-direction: column; gap: 36px; max-width: 760px }
.legal h2 { font-size: clamp(22px, 2vw, 28px); margin-bottom: 12px; scroll-margin-top: 110px }
.legal .todo { max-width: 760px }
.foot-bottom a { color: inherit; text-decoration: none } .foot-bottom a:hover { color: #fff; text-decoration: underline }
@media (max-width: 860px) { .legal { grid-template-columns: minmax(0, 1fr) } .legal nav { position: static } }

/* ---------- 404: the four plates out of register ---------- */
.nf { min-height: 100svh; display: flex; align-items: center; padding-block: 140px 80px }
.nf .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px clamp(40px, 6vw, 100px); align-items: center }
.misreg { position: relative; font-family: var(--display); font-weight: 800; font-size: clamp(120px, 20vw, 300px); line-height: .85; letter-spacing: -0.04em; color: transparent; user-select: none }
.misreg span { position: absolute; left: 0; top: 0; mix-blend-mode: multiply; transition: transform 1.2s cubic-bezier(.2,.8,.2,1) }
.misreg span:nth-child(1) { color: var(--c); transform: translate(-14px, -10px) }
.misreg span:nth-child(2) { color: var(--m); transform: translate(12px, -6px) }
.misreg span:nth-child(3) { color: var(--y); transform: translate(-6px, 12px) }
.misreg span:nth-child(4) { color: var(--k); transform: translate(3px, 3px) }
.misreg:hover span { transform: none }
.nf h1 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.02 }
.nf p { margin: 16px 0 26px; color: var(--ink-soft); font-size: 18px; max-width: 36ch }
.nf .links { display: flex; flex-direction: column; border-top: 1.5px solid var(--ink); margin-top: 28px }
.nf .links a { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 17px }
.nf .links a .arrow { width: 18px; height: 18px; transition: transform .3s }
.nf .links a:hover .arrow { transform: translateX(4px) }
@media (max-width: 860px) { .nf .wrap { grid-template-columns: minmax(0, 1fr) } .nf { padding-top: 120px } }
@media (prefers-reduced-motion: reduce) { .misreg span { transition: none } }

/* ---------- visit ---------- */
.visit { padding-block: clamp(80px, 10vw, 130px); background: var(--paper-2) }
.visit .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px clamp(32px, 6vw, 96px) }
.visit h2 { font-size: clamp(36px, 4.2vw, 62px); line-height: 1.04 }
.visit .actions { margin-top: 26px }
.visit dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 36px; align-content: start }
.visit dt { font-family: var(--mono); font-size: 12.5px; letter-spacing: 1.2px; color: var(--ink-soft); margin-bottom: 6px }
.visit dd { margin: 0; font-size: 18px }
@media (max-width: 860px) { .visit .wrap, .visit dl { grid-template-columns: minmax(0, 1fr) } }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--on-dark-soft); padding-block: 70px 28px; font-size: 15px }
.foot .wrap { display: flex; flex-direction: column; gap: 46px }
.foot-top { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between }
.foot-top img { height: 72px; width: auto }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; flex: 1; max-width: 780px }
.foot-cols h4 { margin: 0 0 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 1.2px; font-weight: 500; color: #8E92AE }
.foot-cols a { display: block; padding: 6px 0; color: var(--on-dark); text-decoration: none }
.foot-cols a:hover { text-decoration: underline }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: 13.5px }
@media (max-width: 760px) { .foot-top { flex-direction: column } .foot-top img { height: 60px } .foot-cols { width: 100%; max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px } .foot-cols > div { min-width: 0 } }



@media (prefers-reduced-motion: reduce) {
  .slide, .slide.is-active { transition: none }
  .slide .media, .slide.is-active .media { animation: none; transform: none }
  .slide .copy-in > * { opacity: 1; transform: none; animation: none !important }
  .pick .bar i { animation: none !important }
  .pick[aria-current="true"] .bar i { width: 100% }
  .slide .on-layer { transition: none }
  .msg { animation: none }
  .door, .door:hover { transform: none }
  .typing i { animation: none }
}

/* production additions */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600 }
.skip:focus { top: 12px }
#content { scroll-margin-top: 120px }
#content:focus { outline: none }
.page-top-spacer { height: clamp(40px, 5vw, 64px); background: var(--paper) }
.legal article p, .legal article li { color: var(--ink-soft); font-size: 17px; line-height: 1.65 }
.legal article p { margin: 0 0 14px }
.legal article ul { margin: 0 0 14px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px }
.legal article b { color: var(--ink); font-weight: 600 }
.legal article a { color: var(--ink) }
.legal .legal-date { font-family: var(--mono); font-size: 12.5px; letter-spacing: .5px; text-transform: uppercase; margin: 0 }
.legal .legal-intro { color: var(--ink); font-size: 19px; margin-top: -20px }
