/* =========================================================
   BY LUX · a digital studio from the team behind LUX Travel & Life
   ========================================================= */
@font-face { font-family: 'DM Sans'; src: url('../fonts/DMSans-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Epilogue; src: url('../fonts/Epilogue-Black.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --bg: #f0eefa;
  --bg-2: #dfe4f2;
  --ink: #080909;
  --chip: #f7f8fa;
  --muted: rgba(8, 9, 9, .6);
  --line: rgba(8, 9, 9, .12);
  --accent: #ff5c93;
  --violet: #7a6cf5;
  --gutter: clamp(18px, 3.2vw, 48px);
  --display: Epilogue, 'Arial Black', Arial, sans-serif;
  --text: 'DM Sans', Arial, sans-serif;
  --retake-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --retake-slow-ease: cubic-bezier(0.65, 0, 0.35, 1);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-weight: 400; font-size: 16px; line-height: 1.5; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: rgba(122, 108, 245, .25); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 100px; background: var(--chip); font-size: 13px; letter-spacing: 0; margin-bottom: 22px; }
.eyebrow-light { background: rgba(247, 248, 250, .16); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
h2 { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -0.01em; }

/* ---------- custom cursor (fine pointers only) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; opacity: 0; transition: opacity .25s; }
.has-cursor .cursor.on { opacity: 1; }
.has-cursor .cursor.is-hidden { opacity: 0; }
.cursor-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ink); transition: transform .35s var(--retake-ease), background .25s; mix-blend-mode: difference; background: #fff; }
.cursor-label { position: absolute; top: 16px; left: 0; transform: translateX(-50%); padding: 5px 10px; border-radius: 100px; background: var(--ink); color: #fff; font-size: 12px; white-space: nowrap; opacity: 0; transition: opacity .2s, transform .35s var(--retake-ease); }
.cursor.labelled .cursor-dot { transform: scale(2.2); }
.cursor.labelled .cursor-label { opacity: 1; }

/* ---------- header ---------- */
.site-header {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  padding: calc(22px + env(safe-area-inset-top)) var(--gutter) 18px;
  color: #fff; text-shadow: 0 1px 6px rgb(0 0 0 / .18);
  transition: color .4s, background .4s, padding .4s, backdrop-filter .4s;
}
.site-header.is-solid { color: var(--ink); text-shadow: none; background: rgba(240, 238, 250, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); padding-top: calc(14px + env(safe-area-inset-top)); padding-bottom: 14px; }
.brand { display: flex; align-items: baseline; gap: 2px; font-family: var(--display); font-weight: 900; font-size: 24px; letter-spacing: -0.03em; line-height: 1; }
.brand-media { opacity: .55; }
.meta { display: flex; gap: clamp(20px, 2.6vw, 40px); margin-left: clamp(28px, 4vw, 64px); font-size: 15px; letter-spacing: -0.02em; }
.nav { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); font-size: 15px; }
.nav a:not(.pill-cta) { position: relative; }
.nav a:not(.pill-cta)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--retake-ease); }
.nav a:not(.pill-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.pill-cta { display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border-radius: 999px; border: 1px solid currentColor; transition: background .3s, color .3s, border-color .3s; }
.pill-cta:hover { background: #fff; color: #0b1a26; border-color: #fff; }
.site-header.is-solid .pill-cta { background: var(--ink); color: #fff; border-color: var(--ink); }
.site-header.is-solid .pill-cta:hover { background: var(--violet); border-color: var(--violet); }

/* =========================================================
   1 · HERO STAGE (state films + glass controller)
   ========================================================= */
.stage { position: relative; isolation: isolate; width: 100%; height: 100vh; height: 100dvh; min-height: 560px; overflow: hidden; background: #cfd9e6 url('../video/state-base.jpg') center / cover no-repeat; color: #fff; }
.media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; pointer-events: none; visibility: hidden; }
.media.is-visible { visibility: visible; }
.hero { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.hero h1 {
  position: absolute; top: 35.9%; left: 50%; transform: translateX(-50%);
  width: min(901px, calc(100vw - 48px)); text-align: center;
  font-family: var(--display); font-weight: 900; font-size: clamp(56px, 6.8vw, 100px); line-height: .9; letter-spacing: -0.03em;
  white-space: nowrap; text-shadow: 0 2px 12px rgb(0 0 0 / .14);
}
.hero h1 span { display: inline-block; transition: opacity 900ms var(--retake-ease), filter 900ms var(--retake-ease), transform 900ms var(--retake-ease); }
.hero h1 span:nth-child(2) { transition-delay: 90ms; }
.hero h1 span:nth-child(3) { transition-delay: 180ms; }
.stage.title-hidden .hero h1 span { opacity: 0; filter: blur(12px); transform: translateY(-10px); }
.hero p {
  position: absolute; top: calc(46.78% + 94px); left: 50%; transform: translateX(-50%);
  width: min(620px, calc(100vw - 48px)); text-align: center;
  font-size: clamp(15px, 1.25vw, 18px); line-height: 1.35; letter-spacing: -0.02em; text-shadow: 0 1px 10px rgb(0 0 0 / .38), 0 0 2px rgb(0 0 0 / .2);
}
.scroll-cue { position: absolute; z-index: 15; left: 50%; bottom: 26px; width: 26px; height: 40px; margin-left: -13px; border: 1.5px solid rgba(255,255,255,.85); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s var(--retake-ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
.stage-retry { position: absolute; z-index: 40; left: 50%; bottom: 80px; transform: translateX(-50%); padding: 10px 18px; border-radius: 999px; border: 1px solid #fff; background: rgba(0,0,0,.3); color: #fff; cursor: pointer; }

/* controller */
.controller { position: absolute; top: 46.78%; left: 50%; transform: translateX(-50%); width: min(880px, calc(100vw - 48px)); height: 72px; z-index: 20; --glass-x: 24%; --glass-y: 8%; }
.cells { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; z-index: 2; }
.cell {
  display: flex; align-items: center; justify-content: center; height: 100%; padding: 0 14px;
  font-size: 23px; font-weight: 400; line-height: 1.2; letter-spacing: -0.04em; white-space: nowrap; color: #fff;
  transition: opacity 420ms var(--retake-ease), filter 420ms var(--retake-ease), transform 980ms var(--retake-slow-ease);
}
button.cell { background: transparent; border: 0; border-radius: 999px; cursor: pointer; }
button.cell:disabled { cursor: default; }
.cell-label { transition: opacity 300ms, filter 420ms var(--retake-ease), transform 980ms var(--retake-slow-ease); }
.controller.is-highlighting .cell-label { opacity: .5; }
.controller.is-busy button.cell { cursor: progress; }
button.cell.is-active { text-shadow: 0 0 18px rgba(255,255,255,.55); }

.glass { position: absolute; border-radius: 999px; pointer-events: none; }
.glass::before, .glass::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.glass::before {
  background:
    radial-gradient(120% 150% at var(--glass-x, 24%) var(--glass-y, 8%), rgb(255 255 255 / 0.25), rgb(255 255 255 / 0) 53%),
    linear-gradient(115deg, rgb(255 255 255 / 0.10), rgb(255 255 255 / 0) 42%);
}
.glass::after {
  padding: 1px;
  background: conic-gradient(from 225deg, #7fe3ff, rgb(255 255 255 / 0.35), #ffffff, #ffd7e6, rgb(255 255 255 / 0.35), #7fe3ff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.track {
  top: 4px; left: 0; width: 100%; height: 64px;
  background: rgb(24 55 82 / 0.31); border: 1px solid rgb(255 255 255 / 0.2);
  backdrop-filter: blur(9px) saturate(126%) contrast(108%) brightness(103%);
  -webkit-backdrop-filter: blur(9px) saturate(126%) contrast(108%) brightness(103%);
  box-shadow: 0 14px 38px rgb(4 24 43 / 0.16), 0 2px 7px rgb(4 24 43 / 0.1), inset 1px 1px 0 rgb(255 255 255 / 0.48), inset -1px -1px 0 rgb(21 49 73 / 0.14), inset 0 0 0 0.5px rgb(255 255 255 / 0.16);
  transition: left 980ms var(--retake-slow-ease), width 980ms var(--retake-slow-ease), opacity 400ms linear;
}
.track::after { opacity: .27; }
.capsule {
  top: -1px; height: 72px; left: var(--cap-left, -5px); width: var(--cap-width, calc(20% + 5px)); z-index: 1;
  background: rgb(246 251 255 / 0.24); border: 1px solid rgb(255 255 255 / 0.28);
  backdrop-filter: blur(13px) saturate(128%) contrast(107%) brightness(105%);
  -webkit-backdrop-filter: blur(13px) saturate(128%) contrast(107%) brightness(105%);
  box-shadow: 0 11px 28px rgb(4 24 43 / 0.17), 0 2px 6px rgb(4 24 43 / 0.1), inset 1px 1px 0 rgb(255 255 255 / 0.62), inset -1px -1px 0 rgb(20 49 73 / 0.18), inset 0 0 12px rgb(255 255 255 / 0.055);
  transition: left 620ms var(--retake-ease), width 620ms var(--retake-ease), background 980ms var(--retake-slow-ease), opacity 300ms;
}
.capsule::after { opacity: .30; }
.controller.collapsed .capsule { left: calc(50% - 100px); width: 200px; background: rgb(246 251 255 / 0.14); transition: left 980ms var(--retake-slow-ease), width 980ms var(--retake-slow-ease), background 980ms var(--retake-slow-ease); }
.controller.collapsed .track { left: calc(50% - 96px); width: 192px; }
.controller.rear-faded .track { opacity: 0; transition: left 980ms var(--retake-slow-ease), width 980ms var(--retake-slow-ease), opacity 400ms linear 650ms; }
.controller.collapsed .cell.is-dim { opacity: 0; filter: blur(10px); transform: scale(0.94); pointer-events: none; }
.cell.is-chosen { transform: translate(var(--dx, 0px), var(--dy, 0px)); }
.cell.is-reset { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; animation: reset-in 520ms var(--retake-ease) both; }
@keyframes reset-in { from { opacity: 0; filter: blur(10px); } to { opacity: 1; filter: blur(0); } }
.cell.is-leaving { opacity: 0; filter: blur(10px); }

/* =========================================================
   2 · STUDIO
   ========================================================= */
.studio { padding: clamp(96px, 14vh, 160px) var(--gutter) clamp(80px, 12vh, 140px); max-width: 1320px; margin: 0 auto; }
.manifesto { font-family: var(--display); font-weight: 900; font-size: clamp(26px, 3.3vw, 48px); line-height: 1.16; letter-spacing: -0.015em; max-width: 1120px; }
.manifesto .w { opacity: .14; transition: opacity .35s linear; }
.manifesto .w.on { opacity: 1; }
.caps { list-style: none; padding: 0; margin: clamp(56px, 8vh, 96px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.caps li { padding: 22px; border-radius: 22px; background: var(--chip); display: flex; flex-direction: column; gap: 8px; }
.caps b { font-family: var(--display); font-weight: 900; font-size: 18px; letter-spacing: -0.01em; }
.caps span { color: var(--muted); font-size: 15px; }

/* =========================================================
   3 · FEATURED
   ========================================================= */
.featured { padding: 0 var(--gutter) clamp(96px, 14vh, 160px); max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px clamp(28px, 4vw, 64px); }
.featured-head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; }
.featured-head .eyebrow { width: 100%; max-width: max-content; }
.featured-sub { color: var(--muted); font-size: 17px; }
.feature-card { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 28px; overflow: hidden; background: #111; isolation: isolate; }
.feature-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--retake-ease); }
.feature-card:hover video { transform: scale(1.03); }
.feature-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), transparent 45%); pointer-events: none; }
.feature-logo { position: absolute; z-index: 2; left: 26px; top: 24px; width: clamp(110px, 12vw, 170px); }
.feature-tag { position: absolute; z-index: 2; right: 22px; top: 22px; height: 30px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 100px; background: rgba(247,248,250,.92); color: var(--ink); font-size: 13px; }
.feature-hint { position: absolute; z-index: 2; left: 26px; bottom: 34px; display: flex; align-items: center; gap: 8px; color: #fff; font-size: 14px; }
.feature-hint i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.feature-bar { position: absolute; z-index: 2; left: 26px; right: 26px; bottom: 20px; height: 2px; background: rgba(255,255,255,.3); }
.feature-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #fff; }
.featured-body { display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.featured-lead { font-size: 19px; line-height: 1.5; letter-spacing: -0.015em; }
.featured-list { list-style: none; padding: 0; margin: 0; display: grid; }
.featured-list li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; display: flex; justify-content: space-between; }
.featured-list li::after { content: '●'; color: var(--violet); font-size: 9px; align-self: center; }
.btn-ink { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 16px; transition: background .3s, transform .3s var(--retake-ease); }
.btn-ink:hover { background: var(--violet); transform: translateY(-2px); }

/* =========================================================
   4 · CONCEPT STUDIES (list + live preview window)
   ========================================================= */
.concepts { padding: 0 var(--gutter) clamp(96px, 14vh, 160px); max-width: 1320px; margin: 0 auto; }
.k-head { margin-bottom: 34px; }
.k-lead { margin-top: 12px; color: var(--muted); font-size: 17px; max-width: 560px; }
.k-layout { display: grid; grid-template-columns: 300px 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.k-list { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 96px; }
.k-item { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 4px 12px; width: 100%; padding: 14px 16px; border: 1px solid transparent; border-radius: 18px; background: var(--chip); text-align: left; cursor: pointer; transition: background .3s, color .3s, transform .35s var(--retake-ease), border-color .3s; }
.k-item:hover { transform: translateX(4px); border-color: var(--line); }
.k-num { font-family: var(--display); font-weight: 900; font-size: 13px; color: var(--violet); grid-row: span 2; }
.k-name { font-family: var(--display); font-weight: 900; font-size: 17px; letter-spacing: -0.01em; }
.k-sec { grid-column: 2; font-size: 13.5px; color: var(--muted); }
.k-arrow { grid-row: 1 / span 2; grid-column: 3; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 14px; transition: transform .35s var(--retake-ease), background .3s; }
.k-item.is-active { background: var(--ink); color: #fff; }
.k-item.is-active .k-sec { color: rgba(255,255,255,.65); }
.k-item.is-active .k-num { color: #b9b0ff; }
.k-item.is-active .k-arrow { background: var(--violet); color: #fff; transform: rotate(-45deg); }

.k-viewer { position: relative; min-width: 0; }
.k-cover { position: relative; aspect-ratio: 16 / 10; border-radius: 28px; background: linear-gradient(145deg, #e7e3fb, #dfe4f2); overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.k-fan { position: absolute; inset: 0; }
.k-fan button { position: absolute; left: 50%; top: 46%; width: 38%; aspect-ratio: 16 / 11; margin: 0; padding: 0; border: 0; border-radius: 18px; overflow: hidden; cursor: pointer; background: #111;
  box-shadow: 0 24px 50px rgba(40, 30, 90, .22); transform: translate(-50%, -50%) translateX(var(--x)) translateY(var(--y)) rotate(var(--r));
  transition: transform .6s var(--retake-ease), box-shadow .4s; }
.k-fan button img { width: 100%; height: 100%; object-fit: cover; }
.k-fan button span { position: absolute; left: 12px; bottom: 10px; color: #fff; font-family: var(--display); font-weight: 900; font-size: clamp(12px, 1.2vw, 16px); text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.k-fan button:hover { transform: translate(-50%, -56%) translateX(var(--x)) translateY(var(--y)) rotate(var(--r)) scale(1.05); box-shadow: 0 36px 70px rgba(40, 30, 90, .3); z-index: 10; }
.k-cover-text { position: relative; z-index: 11; margin-bottom: 22px; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.85); backdrop-filter: blur(10px); font-size: 14.5px; }
.k-viewer.is-open .k-cover { display: none; }
.k-window { border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 30px 80px rgba(40, 30, 90, .18), 0 0 0 1px rgba(8,9,9,.06); animation: win-in .7s var(--retake-ease) both; }
@keyframes win-in { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.k-bar { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 12px 0 16px; background: #f4f3f9; border-bottom: 1px solid rgba(8,9,9,.06); }
.k-dots { display: flex; gap: 6px; }
.k-dots i { width: 10px; height: 10px; border-radius: 50%; background: #d9d6e6; }
.k-url { flex: 1; text-align: center; font-size: 13px; color: var(--muted); }
.k-full { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; white-space: nowrap; transition: background .25s; }
.k-full:hover { background: var(--violet); }
.k-screen iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: #fff; }
.k-screen.is-loading iframe { opacity: 0; }
.k-screen iframe { transition: opacity .5s; }
.k-loader { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px; border-radius: 50%; border: 2px solid rgba(8,9,9,.12); border-top-color: var(--ink); animation: spin .9s linear infinite; opacity: 0; transition: opacity .3s; pointer-events: none; }
.k-screen.is-loading .k-loader { opacity: 1; }
.k-close { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; cursor: pointer; }
.k-close:hover { background: var(--ink); color: #fff; }
.k-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; container-type: inline-size; transition: opacity .25s, transform .35s var(--retake-ease); }
.k-screen.is-swapping { opacity: 0; transform: translateY(10px); }
.k-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 0; }
.k-facts:empty { display: none; }
.k-fact { padding: 14px 16px; border-radius: 16px; background: var(--chip); animation: rise-blur .6s var(--retake-ease) both; }
.k-fact:nth-child(2) { animation-delay: .06s; }
.k-fact:nth-child(3) { animation-delay: .12s; }
.k-fact:nth-child(4) { animation-delay: .18s; }
.k-fact dt { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.k-fact dd { margin: 0; font-size: 14.5px; line-height: 1.4; }
@keyframes rise-blur { from { opacity: 0; filter: blur(8px); transform: translateY(18px); } to { opacity: 1; filter: blur(0); transform: none; } }


/* =========================================================
   5 · LAB
   ========================================================= */
.lab { padding: clamp(96px, 14vh, 160px) var(--gutter) clamp(80px, 12vh, 140px); max-width: 1320px; margin: 0 auto; }
.lab-head { margin-bottom: 36px; }
.lab-sub { margin-top: 12px; color: var(--muted); font-size: 17px; }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 300px; gap: 18px; }
.tile { position: relative; overflow: hidden; border-radius: 28px; background: var(--chip); isolation: isolate; }
.tile-ring { grid-column: span 7; grid-row: span 2; background: radial-gradient(circle at 60% 40%, #ffffff 0%, #eeebfb 55%, #e2e0f4 100%); }
.tile-cards { grid-column: span 5; grid-row: span 2; background: #dfe4f2; }
.tile-loupe { grid-column: span 5; grid-row: span 2; }
.tile-chat { grid-column: span 7; display: flex; flex-direction: column; padding: 18px 20px; grid-row: span 2; }
.tile-kicker { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.tile h3 { font-family: var(--display); font-weight: 900; font-size: clamp(20px, 1.9vw, 28px); line-height: 1.1; letter-spacing: -0.01em; }
.tile-copy { position: absolute; z-index: 2; left: 26px; top: 24px; max-width: 360px; pointer-events: none; }
.tile-copy p:last-child:not(.tile-kicker) { margin-top: 10px; color: var(--muted); font-size: 15px; }
.tile-copy-bottom { top: auto; bottom: 24px; }
.tile-copy-over { color: #fff; }
.tile-copy-over .tile-kicker { color: rgba(255,255,255,.75); }
#ring-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.swatches { position: absolute; z-index: 2; left: 22px; bottom: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.swatches button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 8px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.7); font-size: 14px; cursor: pointer; transition: background .25s, border-color .25s; backdrop-filter: blur(8px); }
.swatches button i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), inset 0 -4px 8px rgba(0,0,0,.12); }
.swatches button.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.cards-stage { position: absolute; inset: 0 0 104px 0; display: flex; align-items: center; justify-content: center; perspective: 1350px; }
.cards-world { position: absolute; transform-style: preserve-3d; }
.v-card { position: absolute; inset: 0; transform-style: preserve-3d; }
.v-layer { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; }
.v-mid { background: #9a97b0; }
.v-face { background: #111; border: 1px solid rgba(255,255,255,.15); box-shadow: inset 0 1px 1px rgba(255,255,255,.15); backface-visibility: hidden; color: #fff; }
.v-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v-front-ui { position: absolute; inset: 0; padding: 14px 16px; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0) 55%); }
.v-front-ui b { position: absolute; left: 16px; bottom: 26px; font-family: var(--display); font-weight: 900; font-size: 17px; letter-spacing: -0.01em; }
.v-front-ui small { position: absolute; left: 16px; bottom: 11px; font-size: 10.5px; opacity: .85; }
.v-front-ui .v-mark { position: absolute; right: 14px; top: 12px; font-family: var(--display); font-weight: 900; font-size: 12px; }
.v-chip { position: absolute; left: 16px; top: 50%; width: 22px; transform: translateY(-50%); }
.v-back { transform: rotateX(180deg); }
.v-back .v-blur { position: absolute; inset: -12%; filter: blur(14px); }
.v-back .v-blur img { width: 100%; height: 100%; object-fit: cover; }
.v-stripe { position: absolute; left: 0; right: 0; top: 14px; height: 26px; background: rgba(0,0,0,.85); }
.v-data { position: absolute; left: 16px; bottom: 12px; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }

.cards-ctrl { position: absolute; z-index: 3; right: 20px; top: 20px; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.cards-ctrl span { margin-right: 6px; font-variant-numeric: tabular-nums; }
.cards-ctrl button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: background .25s, color .25s; }
.cards-ctrl button:hover { background: var(--ink); color: #fff; }
.cards-stage { cursor: grab; touch-action: pan-y; }
.cards-stage.is-dragging { cursor: grabbing; }
.loupe-area { position: absolute; inset: 0; cursor: none; }
.loupe-area img { width: 100%; height: 100%; object-fit: cover; }
.loupe { position: absolute; left: 0; top: 0; width: 170px; height: 170px; margin: -85px 0 0 -85px; border-radius: 50%; pointer-events: none; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .45s var(--retake-ease);
  background-repeat: no-repeat; border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 18px 40px rgba(0,0,0,.35), inset 1px 1px 0 rgba(255,255,255,.6), inset 0 0 22px rgba(255,255,255,.18); }
.loupe::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(120% 120% at 30% 20%, rgba(255,255,255,.28), rgba(255,255,255,0) 50%); }
.loupe-area.is-on .loupe { opacity: 1; transform: scale(1); }

.chat-top { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.chat-top b { display: block; font-family: var(--display); font-weight: 900; font-size: 16px; }
.chat-top span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.chat-top span i { width: 7px; height: 7px; border-radius: 50%; background: #3ccf7a; }
.chat-orb { width: 40px; height: 40px; border-radius: 50%; background: conic-gradient(from 0deg, var(--violet), #ff9ac1, #8fd6ff, var(--violet)); animation: spin 6s linear infinite; box-shadow: inset 0 0 0 3px rgba(255,255,255,.6); }
.tile-chat.speaking .chat-orb { animation-duration: 1.2s; }
@keyframes spin { to { transform: rotate(360deg); } }
.chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 14px 2px; min-height: 0; scrollbar-width: thin; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 18px; font-size: 15px; line-height: 1.45; animation: rise-blur .45s var(--retake-ease) both; }
.msg.me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; }
.typing { display: inline-flex; gap: 4px; } .typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(8,9,9,.4); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s } .typing i:nth-child(3) { animation-delay: .3s }
.chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 4px 0 12px; }
.chips button { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chips button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.chat-form { display: flex; gap: 8px; padding: 5px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; font-size: 15px; padding: 9px 14px; color: var(--ink); }
.chat-form button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.chat-form button svg { width: 19px; }

/* =========================================================
   6 · PROCESS
   ========================================================= */
.process { padding: 0 var(--gutter) clamp(110px, 16vh, 180px); max-width: 1320px; margin: 0 auto; }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { padding: 24px 22px 26px; border-radius: 22px; background: var(--chip); display: flex; flex-direction: column; gap: 10px; transition: transform .45s var(--retake-ease), background .3s; }
.steps li:hover { transform: translateY(-6px); background: #fff; }
.step-n { font-family: var(--display); font-weight: 900; font-size: 15px; color: var(--violet); }
.steps b { font-family: var(--display); font-weight: 900; font-size: 21px; letter-spacing: -0.01em; }
.steps p { color: var(--muted); font-size: 15px; }

/* =========================================================
   7 · FOOTER (gaze-tracking character)
   ========================================================= */
.footer { position: relative; min-height: 100vh; padding-top: 6.54vw; isolation: isolate; overflow: hidden; background: #dfe4f2; }
.jobs { margin-left: 8.65vw; width: 25vw; }
.tag { display: inline-flex; align-items: center; border-radius: 100px; background: #f7f8fa; padding: .39vw .61vw; font-size: .88vw; line-height: 1.2; height: 1.9vw; white-space: nowrap; }
.headline { font-family: var(--display); font-weight: 900; font-size: 1.66vw; line-height: 1.2; letter-spacing: 0; }
.job-title { display: block; margin-top: 1.45vw; }
.footer-nav { display: flex; flex-direction: column; align-items: flex-start; gap: .93vw; margin-top: 1.3vw; font-size: 1.075vw; line-height: 1.35; }
.footer-nav a:hover, .contact a:hover { text-decoration: underline; text-underline-offset: 4px; }
.logo { position: absolute; left: 40.33vw; top: 7.7vw; width: 17vw; }
.logo svg { display: block; width: 100%; height: auto; overflow: visible; }
.logo-word { font-family: var(--display); font-weight: 900; font-size: 88px; letter-spacing: -0.04em; fill: #080909; }
.logo-light { fill: rgba(8, 9, 9, .45); }
.contact { position: absolute; left: 74.3vw; top: 6.54vw; }
.contact-links { display: flex; flex-direction: column; align-items: flex-start; margin-top: 1.45vw; white-space: nowrap; }
.note { margin: 1.05vw 0 0; font-size: .733vw; line-height: 1.4; white-space: nowrap; }
.footer-mail { display: inline-block; margin-top: .9vw; font-size: .9vw; border-bottom: 1px solid currentColor; }
.socials { display: flex; align-items: center; gap: 1.43vw; margin-top: 1.61vw; }
.socials a, .socials svg { display: block; width: 1.71vw; height: 1.71vw; }
.copyright { position: absolute; left: 8.65vw; bottom: 1.6vw; font-size: .8vw; margin: 0; }
.footer-background { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.footer-background video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .k-layout { grid-template-columns: 1fr; }
  .k-list { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .k-item { flex: none; width: auto; min-width: 200px; }
  .k-item:hover { transform: none; }
  .k-facts { grid-template-columns: repeat(2, 1fr); }
  .caps { grid-template-columns: repeat(2, 1fr); }
  .featured { grid-template-columns: 1fr; }
  .bento { grid-auto-rows: 260px; }
  .tile-ring, .tile-chat { grid-column: span 12; }
  .tile-cards, .tile-loupe { grid-column: span 6; }
  .tile-cards { grid-row: span 2; } .tile-loupe { grid-row: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .site-header { padding: calc(18px + env(safe-area-inset-top)) 20px 14px; }
  .meta { font-size: 13px; gap: 18px; margin-left: 24px; }
  .nav a:not(.pill-cta) { display: none; }
  .pill-cta { height: 36px; font-size: 14px; }
  .cell { font-size: clamp(17px, 2.5vw, 24px); }
}
@media (max-width: 700px) {
  .meta { display: none; }
  .brand { font-size: 21px; }
  .hero h1 { top: 27%; width: calc(100vw - 40px); font-size: clamp(48px, 14vw, 64px); line-height: .92; white-space: normal; }
  .hero p { top: auto; bottom: 86px; width: calc(100vw - 44px); font-size: 14px; }
  .controller { top: 49%; width: calc(100vw - 40px); height: 156px; }
  .track { top: 0; height: 156px; border-radius: 28px; }
  .cells { grid-template-columns: 1fr 1fr; grid-template-rows: 48px 54px 54px; align-items: stretch; }
  .cell-label { grid-column: 1 / -1; border-bottom: 1px solid rgb(255 255 255 / 0.12); }
  button.cell { border-radius: 0; font-size: 17px; }
  button.cell:nth-child(2), button.cell:nth-child(4) { border-right: 1px solid rgb(255 255 255 / 0.12); }
  button.cell:nth-child(2), button.cell:nth-child(3) { border-bottom: 1px solid rgb(255 255 255 / 0.12); }
  button.cell:active, button.cell:focus-visible { background: rgb(255 255 255 / 0.12); outline-offset: -3px; }
  button.cell.is-active { background: rgb(246 251 255 / 0.22); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35); }
  .cell { font-size: 17px; }
  .capsule { opacity: 0; pointer-events: none; }
  .controller.collapsed .capsule { opacity: 1; left: 50%; top: 78px; transform: translate(-50%, -50%); width: 196px; height: 64px; border-radius: 999px; background: rgb(246 251 255 / 0.18); }
  .controller.collapsed .track { left: 0; width: 100%; }
  .scroll-cue { display: none; }

  .caps { grid-template-columns: 1fr; }
  .k-screen { aspect-ratio: 3 / 4; }
  .k-cover { aspect-ratio: 4 / 5; }
  .k-fan button { width: 62%; }
  .k-bar { gap: 8px; }
  .k-url { display: none; }
  .k-facts { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile-ring { grid-column: auto; grid-row: auto; height: 460px; }
  .tile-cards { grid-column: auto; grid-row: auto; height: 480px; }
  .tile-loupe { grid-column: auto; grid-row: auto; height: 320px; }
  .tile-chat { grid-column: auto; grid-row: auto; height: 560px; }
  .steps { grid-template-columns: 1fr; }


  /* footer: spec mobile stack */
  :root { --bg: #f0eefa; }
  .footer { display: flex; flex-direction: column; gap: 36px; min-height: 100svh; padding: 40px 24px 0; background: #f0eefa; }
  .logo { position: static; order: 0; align-self: flex-start; width: 210px; max-width: 75%; margin-bottom: 4px; }
  .jobs { order: 1; margin: 0; width: 100%; }
  .tag { height: 30px; padding: 6px 11px; font-size: 14px; }
  .headline { font-size: clamp(22px, 6.3vw, 30px); line-height: 1.25; }
  .job-title, .contact-links { margin-top: 19px; }
  .footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-top: 20px; font-size: 17px; line-height: 1.4; }
  .footer-nav a { display: flex; align-items: center; min-height: 44px; }
  .contact { position: static; order: 2; width: 100%; }
  .contact-links { gap: 4px; white-space: normal; }
  .note { max-width: 34ch; margin: 16px 0 0; font-size: 14px; line-height: 1.5; white-space: normal; }
  .footer-mail { font-size: 16px; margin-top: 14px; }
  .socials { gap: 18px; margin-top: 20px; }
  .socials a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
  .socials svg { width: 30px; height: 30px; }
  .socials a:first-child { margin-left: -7px; }
  .copyright { position: static; order: 4; font-size: 13px; padding-bottom: 24px; }
  .footer-background { position: relative; inset: auto; order: 3; z-index: auto; flex: none; align-self: center; width: calc(100% + 48px); aspect-ratio: 4 / 3; margin-top: -16px; }
}
@media (max-width: 700px) and (max-height: 700px) {
  .hero h1 { top: 20%; font-size: clamp(40px, 13vw, 52px); }
  .controller { top: 44%; }
  .hero p { top: calc(44% + 168px); bottom: auto; width: calc(100vw - 32px); font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .capsule, .track, .cell, .hero h1 span { transition-duration: 1ms !important; transition-delay: 0s !important; }
  .hero h1 span, .cell { filter: none !important; }
}
