/* Layout concept: a macOS desktop for an optician. Glass menu bar on top, a magnifying dock for
   navigation, content shown in "windows", and a lens that turns blur into focus. */
:root {
  --bg: #f8f5f5;
  --bg-2: #f1e9ea;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --line: rgba(60, 20, 28, 0.10);
  --fg: #1c1215;
  --fg-2: #5b4b50;
  --fg-3: #8c7b80;
  --accent: #bf3a48;          /* soft crimson: main accent */
  --accent-2: #e58f98;        /* rose: highlights and glows */
  --accent-ink: #ffffff;
  --brass: #a8813a;           /* 1905 heritage */
  --glass-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 20px 50px -20px rgba(80, 20, 32, .22), 0 2px 8px rgba(80,20,32,.06);
  --chart-ink: #1c1215;
  --chart-paper: #fdfbfb;

  --f-display: "Inter Tight", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --f-body: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --f-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-window: 18px;
  --r-ctl: 12px;
  --maxw: 1200px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}
/* Light by default; dark only when the visitor picks it with the toggle */
:root[data-theme="dark"] {
  --bg: #0d090a; --bg-2: #160f11; --surface: rgba(38, 27, 30, 0.66); --surface-solid: #1c1417;
  --line: rgba(245, 220, 225, 0.10); --fg: #f6eef0; --fg-2: #c3b1b5; --fg-3: #8f7d82;
  --accent: #f07884; --accent-2: #f5aeb5; --accent-ink: #2b070c; --brass: #d6b06a;
  --glass-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 30px 60px -20px rgba(0,0,0,.7), 0 2px 8px rgba(0,0,0,.4);
  --chart-ink: #f6eef0; --chart-paper: #140e10;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--f-display); letter-spacing: -0.025em; line-height: 1.05; text-wrap: balance; margin: 0; font-weight: 650; }
p { margin: 0; text-wrap: pretty; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Desktop wallpaper: soft aurora behind everything */
.wallpaper { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; contain: strict; }
.wallpaper i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: drift 26s var(--ease) infinite alternate; }
.wallpaper i:nth-child(1) { width: 52vw; height: 52vw; left: -12vw; top: -14vw; background: color-mix(in oklab, var(--accent) 45%, transparent); }
.wallpaper i:nth-child(2) { width: 46vw; height: 46vw; right: -14vw; top: 10vh; background: color-mix(in oklab, var(--accent-2) 40%, transparent); animation-delay: -8s; }
.wallpaper i:nth-child(3) { width: 40vw; height: 40vw; left: 30vw; bottom: -20vw; background: color-mix(in oklab, var(--brass) 30%, transparent); animation-delay: -14s; }
@keyframes drift { to { transform: translate3d(6vw, 4vh, 0) scale(1.12); } }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* ---------- Menu bar ---------- */
.menubar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid var(--line);
}
.menubar .wrap { display: flex; align-items: center; gap: 22px; height: 52px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 700; letter-spacing: -0.01em; font-size: 15px; white-space: nowrap; }
.brand small { font-family: var(--f-mono); font-weight: 500; font-size: 10px; letter-spacing: .12em; color: var(--brass); }
.brand-mark { width: 28px; height: 28px; flex: none; }
.menubar nav { display: flex; gap: 2px; margin-left: 6px; }
.menubar nav a { text-decoration: none; font-size: 13.5px; font-weight: 500; color: var(--fg-2); padding: 6px 10px; border-radius: 8px; transition: background .2s, color .2s; white-space: nowrap; }
.menubar nav a:hover { background: var(--line); color: var(--fg); }
.menubar nav a[aria-current="page"] { color: var(--fg); background: var(--line); }
.mb-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.clock { font: 500 12.5px var(--f-mono); color: var(--fg-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn .moon { display: none; }
:root[data-theme="dark"] .icon-btn .sun { display: none; }
:root[data-theme="dark"] .icon-btn .moon { display: block; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--fg); display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font: 600 15px/1 var(--f-body); text-decoration: none; padding: 14px 20px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform .3s var(--spring), box-shadow .3s, background .2s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--fg); color: var(--bg); box-shadow: 0 10px 30px -10px color-mix(in oklab, var(--fg) 60%, transparent); }
.btn-primary:hover { transform: translateY(-2px) scale(1.02); }
.btn-ghost { background: var(--surface); color: var(--fg); border-color: var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-ghost:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-sm { padding: 9px 14px; font-size: 13.5px; }

/* ---------- Window chrome ---------- */
.window {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-window);
  box-shadow: var(--glass-shadow); backdrop-filter: saturate(160%) blur(24px); -webkit-backdrop-filter: saturate(160%) blur(24px);
  overflow: hidden; min-width: 0;
}
.titlebar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); font: 500 12.5px var(--f-body); color: var(--fg-3); }
.lights { display: flex; gap: 7px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: 0 0 0 .5px rgba(0,0,0,.15) inset; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.titlebar .t { flex: 1; text-align: center; margin-right: 50px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Typography helpers ---------- */
.eyebrow { font: 600 11.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); display: inline-flex; gap: 10px; align-items: center; }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.serif { font-family: var(--f-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--fg-2); max-width: 58ch; }
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 760px; }
.section-head h2 { font-size: clamp(34px, 5vw, 60px); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(46px, 7.4vw, 104px); font-weight: 700; letter-spacing: -0.045em; line-height: .95; }
.hero h1 .serif { font-weight: 400; letter-spacing: -0.02em; color: var(--accent); }
.hero .lede { margin-top: 24px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; font-size: 13.5px; color: var(--fg-2); }
.hero-meta span { display: inline-flex; gap: 8px; align-items: center; }
.hero-meta b { font-family: var(--f-mono); font-weight: 600; color: var(--fg); }
.pill { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--fg-2); margin-bottom: 26px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pill b { background: var(--brass); color: var(--bg); font: 700 11px/1 var(--f-mono); padding: 5px 8px; border-radius: 999px; letter-spacing: .06em; }

/* intro sequence */
.intro > * { animation: rise .9s var(--ease) both; }
.intro > *:nth-child(2) { animation-delay: .08s; } .intro > *:nth-child(3) { animation-delay: .16s; }
.intro > *:nth-child(4) { animation-delay: .24s; } .intro > *:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { transform: translateY(18px); opacity: .001; filter: blur(8px); } }

/* Eye chart with focusing lens */
.chart-win { position: relative; }
.chart-stage { container-type: inline-size; position: relative; background: var(--chart-paper); aspect-ratio: 5 / 5.2; overflow: hidden; touch-action: pan-y; cursor: none; touch-action: none; -webkit-user-select: none; user-select: none; }
.eyechart { position: absolute; inset: 0; display: grid; align-content: space-evenly; justify-items: center; padding: 7% 4%; color: var(--chart-ink); }
.eyechart .row { display: flex; align-items: center; gap: 0.5em; font: 800 1em/1 var(--f-display); letter-spacing: .08em; }
.eyechart .row small { font: 500 10px var(--f-mono); color: var(--fg-3); letter-spacing: 0; width: 44px; text-align: right; position: absolute; left: 6%; }
.eyechart .row { position: static; }
.eyechart .line { display: contents; }
.eyechart.blurred { filter: blur(7px); opacity: .9; }
.eyechart.sharp { clip-path: circle(var(--lr, 90px) at var(--lx, 50%) var(--ly, 40%)); transform-origin: var(--lx, 50%) var(--ly, 40%); }
.lens-ring { position: absolute; left: var(--lx, 50%); top: var(--ly, 40%); width: calc(var(--lr, 90px) * 2); height: calc(var(--lr, 90px) * 2); translate: -50% -50%; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 1.5px color-mix(in oklab, var(--chart-ink) 70%, transparent), 0 0 0 7px color-mix(in oklab, var(--chart-ink) 10%, transparent), 0 25px 50px -12px rgba(0,0,0,.35), inset 0 0 30px color-mix(in oklab, var(--accent-2) 22%, transparent);
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.18), transparent 35%), conic-gradient(from 200deg, transparent, color-mix(in oklab, var(--accent) 8%, transparent), transparent 35%, color-mix(in oklab, var(--accent-2) 8%, transparent), transparent 70%); }
.lens-ring::after { content: attr(data-rx); position: absolute; left: 50%; bottom: -30px; translate: -50% 0; font: 600 10.5px var(--f-mono); color: var(--fg-2); background: var(--surface-solid); padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); white-space: nowrap; }
.chart-foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); font: 500 12px var(--f-mono); color: var(--fg-3); }

/* ---------- Marquee of facts ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; background: color-mix(in oklab, var(--surface) 50%, transparent); }
.ticker-track { display: flex; gap: 48px; width: max-content; padding-block: 18px; animation: tick 40s linear infinite; }
.ticker span { font: 500 14px var(--f-mono); color: var(--fg-2); white-space: nowrap; display: inline-flex; gap: 48px; align-items: center; letter-spacing: .02em; }
.ticker span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
@keyframes tick { to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ---------- Heritage ---------- */
.heritage { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: end; }
.year { font: 700 clamp(110px, 20vw, 260px)/.82 var(--f-display); letter-spacing: -0.07em; color: transparent; -webkit-text-stroke: 1.5px var(--brass); font-variant-numeric: tabular-nums; position: relative; }
.year::after { content: attr(data-y); position: absolute; inset: 0; color: var(--brass); clip-path: inset(var(--fill, 100%) 0 0 0); transition: clip-path 1.6s var(--ease); -webkit-text-stroke: 0; }
.year.in::after { --fill: 0%; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-window); overflow: hidden; margin-top: 40px; }
.stat { background: var(--surface-solid); padding: 22px 20px; display: grid; gap: 4px; }
.stat b { font: 650 clamp(30px, 3.6vw, 44px)/1 var(--f-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13.5px; color: var(--fg-2); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { grid-column: span 2; padding: 26px; display: grid; gap: 14px; align-content: start; position: relative; transition: transform .5s var(--spring), box-shadow .4s; }
.tile:hover { transform: translateY(-4px); }
.tile.w3 { grid-column: span 3; } .tile.w4 { grid-column: span 4; } .tile.w6 { grid-column: 1 / -1; }
.tile h3 { font-size: 23px; letter-spacing: -0.02em; }
.tile p { color: var(--fg-2); font-size: 15px; }
.tile .glyph { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in oklab, var(--accent) 14%, transparent); color: var(--accent); }
.tile .glyph svg { width: 24px; height: 24px; }
.tile .tag { font: 600 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.tile::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in oklab, var(--accent) 12%, transparent), transparent 60%); }
.tile:hover::before { opacity: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 12.5px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-solid); color: var(--fg-2); white-space: nowrap; }

/* ---------- Lens Lab: before / after comparison ---------- */
.lab { display: grid; grid-template-columns: 330px 1fr; }
.lab-side { border-right: 1px solid var(--line); padding: 18px; display: grid; gap: 14px; align-content: start; background: color-mix(in oklab, var(--surface-solid) 40%, transparent); }
.lab-side h3 { font: 600 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.preset { font: 500 13px var(--f-body); padding: 8px 12px; min-height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-solid); color: var(--fg); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.preset[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.toggles { display: grid; gap: 8px; }
.toggle { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; align-items: center; padding: 12px 14px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--surface-solid); cursor: pointer; text-align: left; font: inherit; color: inherit; transition: border-color .2s, box-shadow .2s; min-height: 56px; }
.toggle b { font-weight: 600; font-size: 15px; }
.toggle small { grid-column: 1; color: var(--fg-2); font-size: 12.5px; line-height: 1.4; }
.switch { grid-row: 1 / span 2; grid-column: 2; width: 42px; height: 25px; border-radius: 999px; background: color-mix(in oklab, var(--fg) 14%, transparent); position: relative; transition: background .3s; }
.switch::after { content: ""; position: absolute; top: 2.5px; left: 2.5px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.25); transition: transform .35s var(--spring); }
.toggle[aria-pressed="true"] { border-color: color-mix(in oklab, var(--accent) 55%, transparent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 12%, transparent); }
.toggle[aria-pressed="true"] .switch { background: var(--accent); }
.toggle[aria-pressed="true"] .switch::after { transform: translateX(17px); }
.lab-explain { font-size: 13.5px; color: var(--fg-2); min-height: 3.2em; padding: 12px 14px; border-radius: var(--r-ctl); background: color-mix(in oklab, var(--accent) 7%, transparent); }
.lab-explain b { color: var(--fg); }

.compare { position: relative; overflow: hidden; min-height: 480px; background: #7fb2db; touch-action: pan-y; user-select: none; -webkit-user-select: none; --split: 50%; }
.compare .view { position: absolute; inset: 0; }
.compare .after { clip-path: inset(0 0 0 var(--split)); }
.divider { position: absolute; top: 0; bottom: 0; left: var(--split); width: 0; z-index: 5; }
.divider::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.35); }
.handle { position: absolute; top: 50%; left: 0; translate: -50% -50%; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #1c1215; border: 0; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.35); cursor: ew-resize; touch-action: none; }
.handle svg { width: 22px; height: 22px; }
.cap { position: absolute; top: 12px; z-index: 4; font: 600 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(12, 8, 10, .55); padding: 6px 9px; border-radius: 7px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: none; }
.cap.l { left: 12px; } .cap.r { right: 12px; background: color-mix(in oklab, var(--accent) 80%, transparent); }
.lab-note { position: absolute; left: 12px; bottom: 10px; z-index: 4; font: 500 10.5px var(--f-mono); color: rgba(255,255,255,.85); text-shadow: 0 1px 2px rgba(0,0,0,.6); pointer-events: none; }

/* the scene (drawn twice: without and with) */
.scene { position: absolute; inset: 0; overflow: hidden; }
.scene .sky { position: absolute; inset: 0 0 48% 0; background: linear-gradient(#4f8fd0, #a9d2f0 70%, #f6e3c4); }
.scene .sun { position: absolute; width: 11%; aspect-ratio: 1; border-radius: 50%; left: 70%; top: 9%; background: #fff8e4; box-shadow: 0 0 60px 30px rgba(255, 240, 200, .75); }
.scene .hills { position: absolute; left: -5%; right: -5%; bottom: 44%; height: 20%; background: radial-gradient(60% 120% at 22% 100%, #2c6a4c 60%, transparent 61%), radial-gradient(55% 110% at 78% 100%, #3b7b58 60%, transparent 61%); }
.scene .water { position: absolute; inset: 52% 0 0 0; background: linear-gradient(#3b7db2, #1d4b74); }
.scene .glints { position: absolute; inset: 52% 0 18% 0; transition: opacity .6s;
  background: radial-gradient(40% 30% at 72% 10%, rgba(255,255,255,.95), transparent 70%), repeating-linear-gradient(0deg, transparent 0 9px, rgba(255,255,255,.7) 10px 11px, transparent 12px 22px);
  -webkit-mask: radial-gradient(60% 90% at 70% 0%, #000 30%, transparent 75%); mask: radial-gradient(60% 90% at 70% 0%, #000 30%, transparent 75%);
  animation: glint 3s ease-in-out infinite alternate; }
@keyframes glint { to { background-position: 0 0, 0 6px; opacity: .8; } }
/* near object: a page of text held for reading */
.scene .near { position: absolute; left: 50%; bottom: -6%; width: 46%; height: 34%; translate: -50% 0; background: #fbf7ef; border-radius: 10px 10px 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,.25); padding: 4% 5%; display: grid; align-content: start; gap: 9%; transition: filter .6s; filter: blur(3.2px); }
.scene .near i { display: block; height: 7%; min-height: 4px; border-radius: 3px; background: #4a3a3e; opacity: .75; }
.scene .near i:nth-child(1) { width: 60%; height: 10%; background: #bf3a48; opacity: 1; }
.scene .near i:nth-child(3) { width: 88%; } .scene .near i:nth-child(5) { width: 70%; }
/* screen held at arm's length (blue light source) */
.scene .screen { position: absolute; right: 6%; bottom: 20%; width: 15%; aspect-ratio: 9 / 16; border-radius: 12px; background: #111; padding: 4px; box-shadow: 0 10px 24px rgba(0,0,0,.4); }
.scene .screen i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(160deg, #7cc2ff, #3d63ff 55%, #8b6bff); transition: filter .6s; }
/* lens-surface reflections (what anti-glare removes) */
.scene .reflect { position: absolute; inset: 0; pointer-events: none; transition: opacity .6s; mix-blend-mode: screen;
  background: radial-gradient(5% 7% at 24% 30%, rgba(255,255,255,.95), transparent 70%), radial-gradient(4% 6% at 33% 62%, rgba(255,255,255,.8), transparent 70%),
              linear-gradient(118deg, transparent 18%, rgba(255,255,255,.38) 24%, transparent 31%, transparent 52%, rgba(255,255,255,.22) 57%, transparent 62%); }
.scene .residue { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .6s; background: radial-gradient(5% 7% at 24% 30%, rgba(120, 255, 170, .35), transparent 70%); mix-blend-mode: screen; }
.scene .warm { position: absolute; inset: 0; background: rgba(255, 196, 110, .16); mix-blend-mode: multiply; opacity: 0; transition: opacity .6s; pointer-events: none; }
.scene .soft { position: absolute; inset: 40% 0 0 0; pointer-events: none; opacity: 0; transition: opacity .6s;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  -webkit-mask: linear-gradient(90deg, #000 0 14%, transparent 30% 70%, #000 86%); mask: linear-gradient(90deg, #000 0 14%, transparent 30% 70%, #000 86%); }
.scene .zones { position: absolute; inset: 0; display: grid; grid-template-rows: 44% 22% 34%; pointer-events: none; opacity: 0; transition: opacity .6s; }
.scene .zones span { display: flex; align-items: flex-start; justify-content: flex-end; padding: 8px 12px 0 0; border-bottom: 1px dashed rgba(255,255,255,.55); font: 600 10.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.scene .zones span:last-child { border: 0; }

/* option effects, applied to the "with" view only */
.after[data-ag="1"] .reflect { opacity: 0; }
.after[data-ag="1"] .residue { opacity: 1; }
.after[data-blue="1"] .warm { opacity: 1; }
.after[data-blue="1"] .screen i { filter: sepia(.35) saturate(.85) hue-rotate(-12deg); }
.after[data-pol="1"] .glints { opacity: .06; }
.after[data-pol="1"] .sky, .after[data-pol="1"] .water, .after[data-pol="1"] .hills { filter: saturate(1.3) contrast(1.08); }
.after[data-pol="1"] .reflect { opacity: .55; }
.after[data-ag="1"][data-pol="1"] .reflect { opacity: 0; }
.after[data-prog="1"] .near { filter: none; }
.after[data-prog="1"] .soft, .after[data-prog="1"] .zones { opacity: 1; }

@media (max-width: 1080px) {
  .lab { grid-template-columns: 1fr; }
  .compare { order: -1; min-height: 0; aspect-ratio: 16 / 10; }
  .lab-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .toggles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .compare { aspect-ratio: 4 / 4.2; }
  .toggle b { font-size: 14px; }
  .lab-side { padding: 14px; gap: 10px; }
  .toggles { grid-template-columns: 1fr 1fr; gap: 6px; }
  .toggle { padding: 10px 12px; }
  .toggle small { display: none; }
  .scene .near { width: 62%; }
  .scene .screen { width: 20%; }
}
@media (prefers-reduced-motion: reduce) { .scene .glints { animation: none; } }

/* ---------- People ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.person { padding: 24px; display: grid; gap: 14px; align-content: start; transition: transform .5s var(--spring); }
.person:hover { transform: translateY(-4px) rotate(-.3deg); }
.avatar { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font: 650 22px var(--f-display); color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2)); letter-spacing: -0.02em; }
.person h3 { font-size: 21px; }
.person .role { color: var(--accent); font-weight: 600; font-size: 14px; }
.person dl { display: grid; gap: 8px; margin: 0; font-size: 14px; }
.person dt { font: 600 10.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.person dd { margin: 0 0 4px; color: var(--fg-2); }
.badge { display: inline-flex; gap: 6px; align-items: center; font: 600 12px var(--f-mono); padding: 6px 10px; border-radius: 8px; background: color-mix(in oklab, var(--accent) 12%, transparent); color: var(--accent); width: fit-content; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- Branches ---------- */
.finder { display: grid; grid-template-columns: 300px 1fr; min-height: 520px; }
.finder-side { border-right: 1px solid var(--line); padding: 12px; display: grid; gap: 4px; align-content: start; background: color-mix(in oklab, var(--surface-solid) 40%, transparent); }
.finder-side h3 { font: 600 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); padding: 8px 10px; }
.br-btn { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; padding: 11px 12px; border-radius: 10px; border: 0; background: transparent; font: 500 15px var(--f-body); color: var(--fg); cursor: pointer; }
.br-btn small { font: 500 11px var(--f-mono); color: var(--fg-3); }
.br-btn:hover { background: var(--line); }
.br-btn[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.br-btn[aria-selected="true"] small { color: inherit; opacity: .8; }
.br-panel { padding: clamp(22px, 4vw, 44px); display: grid; gap: 22px; align-content: start; }
.br-panel h3 { font-size: clamp(32px, 4vw, 48px); }
.br-panel .addr { font-size: 18px; color: var(--fg-2); max-width: 46ch; }
.br-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.br-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.kv { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface-solid); display: grid; gap: 6px; }
.kv span { font: 600 10.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.kv b { font-weight: 600; font-variant-numeric: tabular-nums; }
.br-panel[data-anim] { animation: swap .5s var(--ease); }
@keyframes swap { from { opacity: .001; transform: translateY(10px); filter: blur(6px); } }
.radar { position: relative; height: 150px; border-radius: var(--r-ctl); border: 1px solid var(--line); overflow: hidden; background: repeating-radial-gradient(circle at 50% 50%, transparent 0 24px, var(--line) 25px 26px), var(--surface-solid); }
.radar::before { content: ""; position: absolute; inset: -50%; background: conic-gradient(from 0deg, color-mix(in oklab, var(--accent) 35%, transparent), transparent 25%); animation: spin 5s linear infinite; }
.radar::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent) 25%, transparent); }
@keyframes spin { to { transform: rotate(1turn); } }

/* ---------- Collections ---------- */
.coll { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.frame-card { display: grid; grid-template-rows: auto 1fr; }
.frame-art { aspect-ratio: 4/3; display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, color-mix(in oklab, var(--accent-2) 14%, transparent), transparent 60%), var(--bg-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.frame-art svg { width: 78%; transition: transform .8s var(--spring); color: var(--fg); }
.frame-card:hover .frame-art svg { transform: rotateY(18deg) rotateX(6deg) scale(1.06); }
.frame-art { perspective: 600px; }
.frame-body { padding: 22px; display: grid; gap: 12px; align-content: start; }
.frame-body h3 { font-size: 22px; }
.frame-body p { color: var(--fg-2); font-size: 15px; }

/* ---------- Timeline ---------- */
.timeline { display: grid; gap: 0; border-left: 1px solid var(--line); margin-left: 8px; }
.tl { position: relative; padding: 0 0 38px 34px; display: grid; gap: 6px; }
.tl::before { content: ""; position: absolute; left: -7px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 2px solid var(--brass); }
.tl b { font: 600 12px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }
.tl h3 { font-size: 24px; }
.tl p { color: var(--fg-2); max-width: 58ch; }

/* ---------- Booking ---------- */
.book { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; align-items: start; }
.form { padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 600; }
.field label small { color: var(--fg-3); font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--fg); background: var(--surface-solid); border: 1px solid var(--line);
  border-radius: var(--r-ctl); padding: 13px 14px; width: 100%; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 20%, transparent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 13px; color: var(--fg-3); }
.lines { display: grid; gap: 12px; }
.line-card { padding: 20px; display: grid; gap: 8px; }
.line-card span { font: 600 10.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.line-card a.num { font: 650 24px var(--f-display); letter-spacing: -0.02em; text-decoration: none; font-variant-numeric: tabular-nums; }
.line-card a.num:hover { color: var(--accent); }
.line-card .acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- CTA band ---------- */
.cta { padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.cta h2 { font-size: clamp(32px, 4.6vw, 56px); }
.cta p { color: var(--fg-2); margin-top: 14px; max-width: 50ch; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; border: 40px solid color-mix(in oklab, var(--accent) 10%, transparent); pointer-events: none; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(48px, 8vw, 104px) clamp(24px, 4vw, 48px); display: grid; gap: 22px; }
.page-hero h1 { font-size: clamp(44px, 7vw, 92px); font-weight: 700; letter-spacing: -0.045em; line-height: .96; max-width: 14ch; }
.page-hero h1 .serif { color: var(--accent); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding-block: 56px 140px; margin-top: 40px; }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.foot h4 { font: 600 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; color: var(--fg-2); }
.foot a:hover { color: var(--fg); }
.foot p { color: var(--fg-2); font-size: 14.5px; max-width: 40ch; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; font: 500 12px var(--f-mono); color: var(--fg-3); }

/* ---------- Dock ---------- */
.dock-wrap { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: flex; justify-content: center; pointer-events: none; padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
.dock { pointer-events: auto; display: flex; align-items: flex-end; gap: 6px; padding: 8px; border-radius: 22px;
  background: color-mix(in oklab, var(--surface-solid) 55%, transparent); border: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(26px); -webkit-backdrop-filter: saturate(180%) blur(26px); box-shadow: var(--glass-shadow); }
.dock a { --s: 1; position: relative; width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: 13px; text-decoration: none; color: #fff;
  transform-origin: bottom center; transform: scale(var(--s)); margin-inline: calc((var(--s) - 1) * 14px); transition: transform .18s ease-out, margin .18s ease-out; }
.dock a svg { width: 24px; height: 24px; }
.dock a .lbl { position: absolute; bottom: calc(100% + 14px); left: 50%; translate: -50% 0; font: 500 12px var(--f-body); color: var(--fg); background: var(--surface-solid); border: 1px solid var(--line); padding: 4px 9px; border-radius: 7px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; transform: scale(calc(1 / var(--s))); transform-origin: bottom center; }
.dock a:hover .lbl, .dock a:focus-visible .lbl { opacity: 1; }
.dock a[aria-current="page"]::after { content: ""; position: absolute; bottom: -6px; width: 4px; height: 4px; border-radius: 50%; background: var(--fg); }
.dock .sep { width: 1px; align-self: stretch; margin: 6px 4px; background: var(--line); }
.ic-home { background: linear-gradient(160deg, #f2a0a8, #c23b4a); }
.ic-eye { background: linear-gradient(160deg, #e86a76, #9e2433); }
.ic-doc { background: linear-gradient(160deg, #d98b6a, #a8513a); }
.ic-map { background: linear-gradient(160deg, #ff8a7a, #d63a3a); }
.ic-frames { background: linear-gradient(160deg, #3a3a3c, #0c0c0e); }
.ic-about { background: linear-gradient(160deg, #e3c27a, #a8813a); }
.ic-book { background: linear-gradient(160deg, #c94a5a, #7d1d2c); }
.ic-wa { background: linear-gradient(160deg, #4be37a, #1fa855); }
.ic-call { background: linear-gradient(160deg, #ff8f8f, #bf3a48); }
.dock .mob { display: none; }

/* ---------- Reveal on scroll (content stays visible without JS) ---------- */
.js .rv { transition: transform 1s var(--ease), opacity 1s var(--ease), filter 1s var(--ease); }
.js .rv.pre { transform: translateY(28px); opacity: .001; filter: blur(6px); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; top: calc(64px + env(safe-area-inset-top, 0px)); translate: -50% -20px; opacity: 0; z-index: 70; padding: 12px 16px; border-radius: 14px; background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--glass-shadow); font-size: 14px; transition: all .4s var(--spring); pointer-events: none; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; translate: -50% 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .menubar nav { display: none; }
  .hero-grid, .heritage, .book { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile.w3, .tile.w4 { grid-column: span 1; }
  .tile.w4 { grid-column: span 2; }
  .coll { grid-template-columns: repeat(2, 1fr); }
  .lab { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .clock { display: none; }
  .brand small { display: none; }
  .brand { font-size: 14px; }
  .bento, .coll { grid-template-columns: 1fr; }
  .tile.w4 { grid-column: span 1; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .stat { padding: 16px 12px; }
  .finder { grid-template-columns: 1fr; }
  .finder-side { border-right: 0; border-bottom: 1px solid var(--line); display: flex; overflow-x: auto; gap: 6px; padding: 10px; scrollbar-width: none; }
  .finder-side h3 { display: none; }
  .br-btn { flex: none; border: 1px solid var(--line); }
  .br-btn small { display: none; }
  .row2 { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
  .dock { gap: 2px; padding: 6px; border-radius: 20px; max-width: 100%; }
  .dock a { width: 42px; height: 42px; border-radius: 11px; }
  .dock a svg { width: 21px; height: 21px; }
  .dock .opt { display: none; }
  .chart-stage { cursor: default; }
  .eyechart .row small { display: none; }
}
@media (max-width: 380px) { .dock a { width: 38px; height: 38px; } .menubar .btn { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .rv.pre { transform: none; opacity: 1; filter: none; }
}

/* Notice + offer */
.bn { font-family: "Hind Siliguri", "Noto Sans Bengali", sans-serif; letter-spacing: 0; text-transform: none; font-size: 14px; color: var(--brass); }
.offer { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: linear-gradient(120deg, color-mix(in oklab, var(--brass) 14%, var(--surface)), var(--surface) 60%); }
.offer .price { font-size: clamp(30px, 4vw, 48px); margin: 8px 0 10px; }
.offer .price b { color: var(--brass); font-variant-numeric: tabular-nums; }
.offer .actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 1080px) { .tile.w6 { grid-column: 1 / -1; } .offer { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface-solid); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 600; font-size: 16.5px; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; translate: 0 -50%; font: 400 24px var(--f-display); color: var(--accent); transition: rotate .3s var(--spring); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 20px 20px; color: var(--fg-2); max-width: 70ch; }

/* Branch pages */
.nap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.town-links { display: flex; flex-wrap: wrap; gap: 8px; }
.town-links a { text-decoration: none; }

/* Below-the-fold rendering is deferred until needed */
.section, footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* Touch devices: no hover lifts, bigger targets */
@media (hover: none) {
  .tile:hover, .person:hover, .btn-primary:hover, .btn-ghost:hover { transform: none; }
  .tile::before { display: none; }
}
@media (max-width: 720px) {
  .foot { grid-template-columns: 1fr 1fr; }
  /* lighter effects so phones stay smooth */
  .wallpaper i { animation: none; filter: blur(60px); opacity: .45; }
  .window { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface-solid); }
  .ticker-track { animation-duration: 60s; }
  .hero { padding-block: 28px 40px; }
  .hero h1 { font-size: clamp(42px, 12vw, 56px); }
  .hero-ctas .btn { flex: 1 1 100%; min-height: 50px; }
  .section { padding-block: 64px; }
  .section-head h2 { font-size: clamp(30px, 8.6vw, 40px); }
  .page-hero h1 { font-size: clamp(40px, 11vw, 56px); }
  .chart-stage { aspect-ratio: 5 / 4.6; }
  .dock .mob { display: grid; }
  .dock a { width: 44px; height: 44px; }
  .br-btn { min-height: 44px; }
  .btn-sm { min-height: 40px; }
  .stat b { font-size: 26px; }
}
@media (max-width: 380px) { .dock a { width: 40px; height: 40px; } }

/* ---------- App feel ---------- */
html { -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
.btn, .dock a, .icon-btn, .preset, .toggle, .br-btn, .handle { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.pressed { transform: scale(.96) !important; transition: transform .1s !important; }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .38s var(--ease) both; }
::view-transition-group(dock), ::view-transition-group(menubar) { animation: none; }
.dock { view-transition-name: dock; }
.menubar { view-transition-name: menubar; }
@keyframes vt-out { to { opacity: 0; transform: scale(.985); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px) scale(1.01); filter: blur(4px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }
.is-app .app-btn { display: none; }
@media (display-mode: standalone) { .app-btn { display: none; } footer { padding-bottom: 160px; } }

/* App sheet (bottom sheet on phones, centred panel on desktop) */
.sheet { border: 1px solid var(--line); border-radius: 22px; padding: 22px; width: min(440px, calc(100vw - 32px)); background: var(--surface-solid); color: var(--fg); box-shadow: 0 40px 80px -20px rgba(0,0,0,.45); }
.sheet::backdrop { background: rgba(10, 6, 8, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet[open] { animation: sheet-in .45s var(--spring); }
@keyframes sheet-in { from { transform: translateY(30px) scale(.97); opacity: 0; } }
.sheet-grip { width: 38px; height: 5px; border-radius: 3px; background: var(--line); margin: -8px auto 14px; display: none; }
.sheet-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.sheet-head img { border-radius: 14px; flex: none; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.sheet-head h2 { font-size: 21px; }
.sheet-head p { color: var(--fg-2); font-size: 14px; margin-top: 4px; }
.sheet-rows { display: grid; gap: 10px; }
.sheet-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.sheet-row b { display: block; font-size: 15px; }
.sheet-row small { display: block; color: var(--fg-2); font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.sr-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in oklab, var(--accent) 12%, transparent); color: var(--accent); }
.sr-ic svg { width: 20px; height: 20px; }
.sheet-row .btn:disabled { opacity: .55; cursor: default; transform: none; }
.sheet-close { width: 100%; margin-top: 14px; }
@media (max-width: 720px) {
  .sheet { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 22px 22px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
  .sheet[open] { animation: sheet-up .45s var(--ease); }
  .sheet-grip { display: block; }
}
@keyframes sheet-up { from { transform: translateY(100%); } }

/* ---------- Frame Studio (home hero) ---------- */
.studio-stage { position: relative; aspect-ratio: 5 / 3.6; display: grid; place-items: center; overflow: hidden; perspective: 900px;
  background: radial-gradient(70% 60% at 50% 45%, color-mix(in oklab, var(--accent-2) 22%, transparent), transparent 70%), var(--chart-paper); }
.studio-glow { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 0deg, color-mix(in oklab, var(--accent) 20%, transparent), transparent 30%, color-mix(in oklab, var(--brass) 18%, transparent), transparent 70%); filter: blur(30px); animation: spin 14s linear infinite; }
.sf { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: rotateY(-35deg) scale(.86); transition: opacity .7s var(--ease), transform .9s var(--spring); pointer-events: none; }
.sf.on { opacity: 1; transform: none; }
.sf svg { width: 76%; color: var(--fg); filter: drop-shadow(0 18px 22px rgba(60, 20, 30, .18)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-1deg); } }
.studio-foot { display: grid; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); }
.studio-meta { font: 500 12px var(--f-mono); color: var(--fg-3); }

/* ---------- Offer ---------- */
.offer-strip { display: flex; align-items: center; gap: 12px; justify-content: center; text-decoration: none; padding: 9px max(16px, env(safe-area-inset-right, 0px)) 9px max(16px, env(safe-area-inset-left, 0px));
  background: linear-gradient(90deg, #a3263a, #bf3a48 40%, #d9606c); color: #fff; font-size: 14px; position: relative; overflow: hidden; }
.offer-strip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.28) 45%, transparent 60%); transform: translateX(-100%); animation: sheen 4.5s ease-in-out infinite; }
@keyframes sheen { 60%, 100% { transform: translateX(100%); } }
.os-tag { font: 700 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; background: #fff; color: #a3263a; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.os-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.os-go { font-weight: 700; }
.bumper { padding: clamp(22px, 4vw, 44px); display: grid; gap: 26px; position: relative; background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 10%, var(--surface-solid)), var(--surface-solid) 55%); border-color: color-mix(in oklab, var(--accent) 30%, var(--line)); }
.bumper::before { content: "50%"; position: absolute; right: -10px; top: -30px; font: 800 clamp(120px, 18vw, 220px)/1 var(--f-display); letter-spacing: -0.06em; color: color-mix(in oklab, var(--accent) 9%, transparent); pointer-events: none; }
.bumper-head { display: grid; gap: 14px; position: relative; }
.bumper-head h2 { font-size: clamp(36px, 5.4vw, 66px); }
.bumper-badge { width: fit-content; font: 700 12px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 7px 12px; border-radius: 8px; animation: pulse-badge 2.4s ease-in-out infinite; }
@keyframes pulse-badge { 50% { box-shadow: 0 0 0 8px color-mix(in oklab, var(--accent) 18%, transparent); } }
.offer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; position: relative; }
.offer-card { padding: 20px; border-radius: var(--r-ctl); background: var(--surface-solid); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.offer-card h3 { font-size: 19px; letter-spacing: -0.015em; }
.offer-card p { color: var(--fg-2); font-size: 14.5px; }
.offer-card .glyph { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in oklab, var(--accent) 14%, transparent); color: var(--accent); }
.offer-card .glyph svg { width: 22px; height: 22px; }
.bumper-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; position: relative; }
.bumper-foot p { color: var(--fg-2); }
.bumper-foot a:not(.btn) { color: var(--fg); font-weight: 600; white-space: nowrap; }
.bumper-foot .tc { font-size: 13px; color: var(--fg-3); }
.bumper-foot .actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 1080px) { .offer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  .offer-grid { grid-template-columns: 1fr; }
  .os-text { font-size: 13px; }
  .bumper-foot .actions .btn { flex: 1 1 auto; }
}

/* ---------- Language switch ---------- */
.lang { display: inline-flex; padding: 3px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.lang a { font: 600 12px var(--f-body); text-decoration: none; color: var(--fg-2); padding: 5px 8px; border-radius: 7px; min-width: 34px; text-align: center; line-height: 1.3; }
.lang a[aria-current] { background: var(--fg); color: var(--bg); }
@media (max-width: 720px) { .lang a { padding: 6px 7px; min-width: 30px; } .menubar .wrap { gap: 10px; } .mb-right { gap: 8px; } .menubar .btn-sm { display: none; } }

/* ---------- Bengali and Hindi typography ---------- */
:root:lang(bn) { --f-display: "Hind Siliguri", "Noto Sans Bengali", -apple-system, sans-serif; --f-body: "Hind Siliguri", "Noto Sans Bengali", -apple-system, sans-serif; --f-serif: "Hind Siliguri", "Noto Sans Bengali", sans-serif; }
:root:lang(hi) { --f-display: "Hind", "Noto Sans Devanagari", -apple-system, sans-serif; --f-body: "Hind", "Noto Sans Devanagari", -apple-system, sans-serif; --f-serif: "Hind", "Noto Sans Devanagari", sans-serif; }
:root:lang(bn) h1, :root:lang(bn) h2, :root:lang(bn) h3, :root:lang(hi) h1, :root:lang(hi) h2, :root:lang(hi) h3 { letter-spacing: -0.01em; line-height: 1.22; font-weight: 700; }
:root:lang(bn) .serif, :root:lang(hi) .serif { font-style: normal; font-weight: 700; }
:root:lang(bn) .eyebrow, :root:lang(hi) .eyebrow, :root:lang(bn) .tag, :root:lang(hi) .tag, :root:lang(bn) .kv span, :root:lang(hi) .kv span,
:root:lang(bn) .person dt, :root:lang(hi) .person dt, :root:lang(bn) .foot h4, :root:lang(hi) .foot h4, :root:lang(bn) .line-card span, :root:lang(hi) .line-card span,
:root:lang(bn) .lab-side h3, :root:lang(hi) .lab-side h3, :root:lang(bn) .bumper-badge, :root:lang(hi) .bumper-badge, :root:lang(bn) .os-tag, :root:lang(hi) .os-tag { letter-spacing: 0; text-transform: none; font-family: var(--f-body); font-size: 13px; }
:root:lang(bn) .hero h1, :root:lang(hi) .hero h1 { font-size: clamp(38px, 6vw, 80px); line-height: 1.12; }
:root:lang(bn) .page-hero h1, :root:lang(hi) .page-hero h1 { font-size: clamp(36px, 5.6vw, 72px); line-height: 1.15; }
:root:lang(bn) body, :root:lang(hi) body { line-height: 1.7; }

/* ---------- Brand marquee (typeset names, not logos) ---------- */
.brands { position: relative; padding-block: 8px; }
.brands-cap { font: 600 11.5px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 14px; }
.brands-track { display: flex; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.brands-track ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; padding-right: 14px; flex: none; animation: brands 32s linear infinite; }
.brands-track:hover ul { animation-play-state: paused; }
@keyframes brands { to { transform: translateX(-100%); } }
.brands li { flex: none; display: grid; place-items: center; min-width: 190px; height: 84px; padding: 0 26px; border-radius: 16px; background: var(--surface-solid); border: 1px solid var(--line); color: var(--fg); font-size: 26px; white-space: nowrap; transition: transform .4s var(--spring), border-color .3s; }
.brands li:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--accent) 40%, var(--line)); }
.b-script { font: 700 32px "Dancing Script", cursive; }
.b-wide { font: 800 24px var(--f-display); letter-spacing: .06em; text-transform: uppercase; font-style: italic; }
.b-didone { font: 600 26px "Playfair Display", Georgia, serif; letter-spacing: .02em; }
.b-caps { font: 700 26px var(--f-display); letter-spacing: .28em; text-transform: uppercase; }
.b-thin { font: 400 22px var(--f-body); letter-spacing: .22em; text-transform: uppercase; }
.b-bold { font: 700 22px var(--f-display); letter-spacing: .08em; text-transform: uppercase; }
.b-italic { font: italic 800 28px var(--f-display); letter-spacing: -.01em; }
.b-spaced { font: 500 20px var(--f-body); letter-spacing: .32em; text-transform: uppercase; }
@media (max-width: 720px) { .brands li { min-width: 150px; height: 66px; font-size: 20px; padding: 0 18px; } .b-script { font-size: 26px; } .b-caps, .b-didone { font-size: 21px; } .b-bold, .b-thin, .b-wide { font-size: 17px; } .b-spaced { font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { .brands-track { overflow-x: auto; } .brands-track ul { animation: none; } }
sup.tc { font-size: .6em; color: var(--accent); margin-left: 1px; font-weight: 700; vertical-align: super; line-height: 0; }
.tc-note { margin-top: 36px; font-size: 12.5px; color: var(--fg-3); max-width: 90ch; }
