/* ==========================================================================
   MAATIRA - Bengal to the World
   Brand tokens from the Maatira identity guidelines
   ========================================================================== */
:root {
  --terracotta: #C4603D;
  --indigo: #1F4A7C;
  --sage: #5B6B57;
  --sand: #D9C1A7;
  --charcoal: #1A1A1A;
  --cream: #F5EFE6;
  --paper: #ECE2D3;
  --brown: #32231C;
  --ink: #301405;

  --f-display: "Marcellus", "Cormorant Garamond", serif;
  --f-serif: "Cormorant Garamond", Georgia, serif;
  --f-sans: "Jost", "Futura", "Century Gothic", sans-serif;

  --gx: clamp(20px, 5vw, 84px);
  --ease: cubic-bezier(.16, 1, .3, 1);

  /* theme (cream default) */
  --bg: var(--cream);
  --fg: #2B2522;
  --muted: rgba(43, 37, 34, .76);
  --line: rgba(43, 37, 34, .16);
  --card: #EDE4D6;
  --accent: #B5542F;
  --thread: var(--terracotta);
}
html[data-theme="paper"] { --bg: var(--paper); --card: #F6F1E9; --line: rgba(43,37,34,.14); }
html[data-theme="dark"] {
  --bg: var(--charcoal); --fg: #F3EADF; --muted: rgba(243,234,223,.75);
  --line: rgba(243,234,223,.12); --card: rgba(243,234,223,.05);
  --accent: #E48A66; --thread: var(--terracotta);
}
html[data-theme="indigo"] {
  --bg: var(--charcoal); --fg: #F5EFE6; --muted: rgba(245,239,230,.78);
  --line: rgba(100,150,210,.14); --card: rgba(80,130,190,.07);
  --accent: #7BA0C9; --thread: var(--terracotta);
}
html[data-theme="sage"] {
  --bg: var(--charcoal); --fg: #F7F1E8; --muted: rgba(247,241,232,.78);
  --line: rgba(130,175,120,.14); --card: rgba(110,155,100,.07);
  --accent: #8EAD87; --thread: var(--terracotta);
}
html[data-theme="terracotta"] {
  --bg: var(--terracotta); --fg: #FBF4EB; --muted: rgba(251,244,235,.8);
  --line: rgba(251,244,235,.25); --card: rgba(251,244,235,.1);
  --accent: #FBF4EB; --thread: #FBF4EB;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 1.1s var(--ease), color .8s var(--ease);
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
kbd { font-family: var(--f-sans); font-size: .72em; border: 1px solid var(--line); border-radius: 4px; padding: .05em .4em; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
::selection { background: var(--terracotta); color: #fff; }

#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.grain {
  position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: .32; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' 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 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- shared type ---------- */
.kicker {
  font-family: var(--f-sans); font-weight: 500; font-size: .8rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1.4rem; display: flex; align-items: center; gap: .9em;
}
.kicker b { font-weight: 500; color: var(--accent); letter-spacing: .12em; }
.kicker b::after { content: ""; display: inline-block; width: 2.2em; height: 1px; background: currentColor; vertical-align: middle; margin-left: .9em; opacity: .7; }
.kicker .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); display: inline-block; }
.display {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; line-height: .98; margin: 0;
}
.display em { text-transform: none; letter-spacing: 0; font-weight: 300; color: var(--accent); }
.headline {
  font-family: var(--f-serif); font-weight: 400; font-size: clamp(2.1rem, 4.1vw, 4.4rem); line-height: 1.04; letter-spacing: -.01em; margin: 0; max-width: 22ch;
}
.headline em { color: var(--accent); font-weight: 400; }
.lede { font-size: clamp(1.1rem, 1.35vw, 1.3rem); color: var(--muted); max-width: 40ch; margin: 1.3rem 0 0; }
.closer { font-family: var(--f-serif); font-size: clamp(1.3rem, 2vw, 1.9rem); line-height: 1.2; margin: 0; }
.closer em { color: var(--accent); }
h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.1rem, 1.4vw, 1.4rem); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .55rem; line-height: 1.2; }
.when { font-size: .76rem; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin: 0 0 .7rem; font-weight: 500; }

/* split words */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.wi { display: inline-block; will-change: transform; }

/* ---------- slides ---------- */
#deck { position: fixed; inset: 0; z-index: 2; }
.slide { position: absolute; inset: 0; visibility: hidden; pointer-events: none; }
.slide.is-active { visibility: visible; pointer-events: auto; }
.inner {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
  padding: calc(96px + env(safe-area-inset-top)) var(--gx) calc(96px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: center;
}
.inner::-webkit-scrollbar { display: none; }

.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3.4vw, 64px); }

/* 01 cover */
.s-cover .inner { align-items: flex-start; }
.cover-title { font-size: clamp(3.1rem, 8.6vw, 9.6rem); max-width: 9ch; }
.cover-title { max-width: none; }
.cover-title em { display: inline-block; font-size: .42em; vertical-align: .5em; margin-right: .15em; }
.s-cover .lede { max-width: 30ch; font-size: clamp(1.05rem, 1.45vw, 1.4rem); color: var(--fg); opacity: .8; }
.stitch-tag {
  margin: 2.2rem 0 0; display: inline-block; padding: .85em 1.4em; font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; font-weight: 500;
  border: 1.5px dashed var(--thread); border-radius: 100px; color: var(--fg); outline: 5px solid transparent;
}
.cover-sign { position: absolute; right: var(--gx); bottom: 104px; margin: 0; font-family: var(--f-serif); font-style: italic; font-size: 1.15rem; color: var(--muted); display: flex; gap: .5em; }

/* 02 idea */
.s-idea .headline { max-width: 26ch; }
.bridge { position: relative; height: clamp(130px, 21vh, 220px); margin: clamp(10px, 2vh, 24px) 0; display: flex; justify-content: space-between; align-items: flex-end; }
.bridge-end { font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; display: flex; flex-direction: column; gap: .3em; }
.bridge-end i { font-family: var(--f-serif); font-size: 1.3rem; letter-spacing: 0; text-transform: none; color: var(--accent); font-weight: 400; }
.bridge-end.r { text-align: right; align-items: flex-end; }
.bridge-step { flex: 1; text-align: center; font-family: var(--f-serif); font-style: italic; font-size: clamp(1.05rem, 1.35vw, 1.35rem); color: var(--fg); padding-bottom: .15rem; }
.bridge-step::before { content: ""; display: block; width: 1px; height: 14px; margin: 0 auto 8px; border-left: 1.5px dashed var(--thread); opacity: .7; }
.s-idea .cols3 p { margin: 0; color: var(--muted); font-size: 1.08rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.num { display: block; font-family: var(--f-serif); font-style: italic; font-size: 1.3rem; color: var(--accent); margin-bottom: .3rem; }
.s-idea .closer { margin-top: clamp(18px, 3.4vh, 40px); }

/* 03 problem */
.knot-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3.4vw, 64px); height: clamp(120px, 24vh, 260px); margin: 1.2rem 0 .6rem; }
.problem-cols article { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.problem-cols p { margin: 0; color: var(--muted); max-width: 32ch; }

/* 04 sell */
.s-sell .inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-rows: 1fr auto; column-gap: clamp(24px, 5vw, 96px); align-content: center; }
.sell-head { align-self: center; }
.sell-list { list-style: none; margin: 0; padding: 0; align-self: center; }
.sell-list li { display: flex; align-items: baseline; gap: 1.2rem; padding: clamp(.55rem, 1.3vh, 1rem) 0; border-bottom: 1px solid var(--line); transition: padding .6s var(--ease); }
.sell-list li:first-child { border-top: 1px solid var(--line); }
.sell-list .n { font-family: var(--f-display); font-size: .8rem; color: var(--accent); letter-spacing: .1em; min-width: 2em; }
.sell-list .t { font-family: var(--f-serif); font-size: clamp(1.3rem, 2.1vw, 2.1rem); line-height: 1.15; transition: transform .6s var(--ease), color .4s; }
.sell-list li:hover .t { transform: translateX(.6rem); font-style: italic; color: var(--accent); }
.filter { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: clamp(20px, 4vh, 44px); }
.filter-label { font-size: .76rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-right: .8rem; }
.chip { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; padding: .7em 1.2em; border: 1.5px dashed var(--thread); border-radius: 100px; }
.filter i { font-style: normal; color: var(--accent); }

/* 05 collections */
.coll-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: clamp(20px, 4vh, 48px); flex-wrap: wrap; }
.flow { display: flex; align-items: center; gap: .8rem; margin: 0; font-size: .76rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 500; }
.flow i { width: 36px; height: 0; border-top: 1.5px dashed var(--thread); position: relative; }
.flow i::after { content: ""; position: absolute; right: -2px; top: -4.5px; border: 4px solid transparent; border-left: 6px solid var(--thread); }
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 3.2vw, 56px); }
.card { background: var(--card); border-radius: 22px; padding: clamp(14px, 1.6vw, 24px); position: relative; transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.card::before { content: ""; position: absolute; inset: 8px; border: 1.2px dashed rgba(196, 96, 61, .35); border-radius: 16px; pointer-events: none; }
.card:hover { transform: translateY(-8px) rotate(-.4deg); box-shadow: 0 30px 50px -30px rgba(50, 35, 28, .45); }
.card-art { aspect-ratio: 5 / 4; border-radius: 14px; background: var(--cream); margin-bottom: 1.1rem; display: grid; place-items: center; overflow: hidden; }
.card-art svg { width: 86%; height: 86%; overflow: visible; }
.card-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.card:hover .card-art img { transform: scale(1.05); }
.card-art .st { fill: none; stroke: var(--charcoal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.card-art .dash { stroke: var(--terracotta); stroke-dasharray: 7 7; stroke-width: 2.5; }
.card-art svg > * { transition: transform .8s var(--ease); transform-origin: 100px 80px; }
.card:hover .kf { transform: rotate(18deg); }
.card:hover .card-art svg > :first-child { transform: scale(1.03); }
.card p { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.45; }

/* 06 model */
.coil-band { height: clamp(80px, 15vh, 170px); margin: .6rem 0; }
.model-cols article { border-top: 1px solid var(--line); padding-top: 1.1rem; position: relative; }
.big-letter { position: absolute; right: 0; top: .2rem; font-family: var(--f-display); font-size: clamp(3rem, 5.4vw, 5.6rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--accent); opacity: .9; }
.model-cols p:last-child { margin: 0; color: var(--muted); max-width: 30ch; }

/* 07 uk */
.s-uk .inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 80px); align-items: center; }
.s-uk .headline { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(2rem, 4.2vw, 4.4rem); letter-spacing: .05em; }
.s-uk .headline em { font-family: var(--f-serif); }
.ticks { list-style: none; padding: 0; margin: 1.6rem 0 1.8rem; display: grid; gap: .8rem; max-width: 46ch; }
.ticks li { padding-left: 1.8rem; position: relative; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 1rem; border-top: 1.5px dashed var(--accent); }
.globe-slot { height: min(74vh, 720px); position: relative; }
.globe-legend { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; display: flex; justify-content: center; gap: 2rem; font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); flex-wrap: wrap; }
.globe-legend span::before { content: ""; display: inline-block; width: 18px; border-top: 2px solid var(--terracotta); vertical-align: middle; margin-right: .7em; }
.globe-legend span + span::before { border-top: 2px dashed var(--sand); }
#labels { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.glabel { position: absolute; left: 0; top: 0; font-size: .78rem; letter-spacing: .28em; font-weight: 500; text-transform: uppercase; color: #F5EFE6; white-space: nowrap; opacity: 0; }
.glabel::before { content: ""; position: absolute; left: -14px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--sand); }
.glabel.major { font-family: var(--f-display); font-size: .95rem; letter-spacing: .2em; }
.glabel.major::before { background: var(--terracotta); box-shadow: 0 0 0 4px rgba(196, 96, 61, .3); }

/* 08 channels */
.s-channels .inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(20px, 4.6vw, 90px); align-items: center; }
.ch-left { display: flex; flex-direction: column; height: 100%; justify-content: center; }
.orbit-slot { flex: 1; min-height: 160px; max-height: 42vh; }
.grid6 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(20px, 3vw, 48px); }
.grid6 article { padding: clamp(.9rem, 2.2vh, 1.5rem) 0 clamp(.9rem, 2.2vh, 1.5rem) 1.6rem; border-top: 1px solid var(--line); position: relative; }
.grid6 article::before { content: ""; position: absolute; left: 0; top: calc(clamp(.9rem, 2.2vh, 1.5rem) + .42em); width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.grid6 p { margin: 0; color: var(--muted); font-size: 1.04rem; }

/* 09 funnel */
.funnel-text { width: min(56%, 760px); }
.funnel { display: grid; gap: clamp(8px, 1.4vh, 14px); margin: .4rem 0 clamp(20px, 4vh, 44px); }
.fbar { width: var(--w); background: var(--c); color: #FBF4EB; border-radius: 16px; padding: clamp(.8rem, 2vh, 1.25rem) 1.6rem; display: flex; align-items: baseline; gap: 1.4rem; flex-wrap: wrap; transform-origin: left center; }
.fbar b { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.1rem, 1.7vw, 1.6rem); letter-spacing: .1em; text-transform: uppercase; min-width: 6.2em; }
.fbar span { font-size: 1.02rem; font-weight: 500; }
.quote { font-family: var(--f-serif); font-size: clamp(1.5rem, 2.5vw, 2.5rem); line-height: 1.12; margin: 0; max-width: 24ch; }
.quote em { color: var(--accent); }

/* 10 content */
.content-text { width: min(54%, 720px); }
.content-list { list-style: none; counter-reset: c; padding: 0; margin: 1.8rem 0 2rem; display: grid; gap: 0; }
.content-list li { counter-increment: c; display: flex; gap: 1.2rem; align-items: baseline; padding: .62rem 0; border-bottom: 1px solid var(--line); font-size: 1.12rem; }
.content-list li::before { content: counter(c, decimal-leading-zero); font-family: var(--f-display); font-size: .72rem; color: var(--accent); letter-spacing: .1em; }

/* 11 plan */
.plan-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.day-counter { margin: 0; display: flex; align-items: baseline; gap: .6rem; font-family: var(--f-display); line-height: .8; }
.day-counter span { font-size: .86rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); font-family: var(--f-sans); }
.day-counter b { font-weight: 400; font-size: clamp(4rem, 9vw, 9rem); color: var(--accent); font-variant-numeric: tabular-nums; }
.timeline-band { height: clamp(70px, 12vh, 130px); }
.plan-cols .range { font-family: var(--f-display); font-size: 1.15rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .8rem; }
.plan-cols ul { list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: 1.06rem; }
.plan-cols li { padding: .25rem 0; }
.plan-cols li::before { content: "- "; color: var(--accent); }
.s-plan .closer { margin-top: clamp(20px, 4vh, 44px); }

/* 12 team */
.s-team .inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(20px, 5vw, 96px); align-items: center; }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 6vw, 110px) clamp(28px, 6vw, 110px); }
.team-grid article { background: var(--card); border-radius: 20px; padding: clamp(18px, 2vw, 30px); position: relative; }
.team-grid article::before { content: ""; position: absolute; inset: 7px; border: 1.2px dashed rgba(196, 96, 61, .35); border-radius: 14px; pointer-events: none; }
.team-grid p:last-child { margin: 0; color: var(--muted); font-size: 1.04rem; }

/* 13 invest */
.invest-head .headline { max-width: 30ch; }
.grid-invest { max-width: 1120px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(26px, 4.2vw, 76px) clamp(22px, 4vw, 70px); margin-top: clamp(24px, 5vh, 56px); }
.grid-invest article { background: var(--card); border-radius: 18px; padding: clamp(16px, 1.8vw, 26px); position: relative; }
.grid-invest .n { font-family: var(--f-serif); font-style: italic; font-size: 1.5rem; color: var(--accent); display: block; line-height: 1; margin-bottom: .6rem; }
.grid-invest p { margin: 0; color: var(--muted); font-size: 1.04rem; }

/* 14 roadmap */
.s-road .headline { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(1.7rem, 3.4vw, 3.6rem); letter-spacing: .05em; max-width: none; }
.s-road .headline em { font-family: var(--f-serif); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2.2vw, 40px); align-items: end; margin-top: clamp(40px, 9vh, 110px); }
.steps article { margin-bottom: calc(var(--i) * clamp(28px, 7vh, 80px)); border-left: 1px solid var(--line); padding: 0 0 0 1.2rem; }
.steps p:last-child { margin: 0; color: var(--muted); font-size: 1.04rem; }
.steps h3 { font-size: clamp(1.2rem, 1.8vw, 1.8rem); }

/* 15 vision */
.s-vision .inner { align-items: center; text-align: center; }
.vision-logo { width: min(64vw, 620px); height: clamp(120px, 26vh, 260px); margin-bottom: 2rem; flex-shrink: 0; }
.s-vision .kicker { justify-content: center; }
.vision-text { font-family: var(--f-serif); font-size: clamp(1.5rem, 2.7vw, 2.8rem); line-height: 1.15; max-width: 34ch; margin: 0 auto; }
.vision-text em { color: var(--accent); }
.vision-quote { margin: 2rem 0 0; font-size: .84rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.vision-quote em { font-family: var(--f-sans); font-style: normal; color: var(--fg); }

/* 16 thanks */
.s-thanks .inner { align-items: center; text-align: center; }
.thanks-mark { width: min(40vw, 280px); height: clamp(90px, 18vh, 170px); flex-shrink: 0; margin-bottom: 1.4rem; }
.thanks-title { font-size: clamp(3rem, 9vw, 9rem); letter-spacing: .1em; }
.thanks-wordmark { width: min(62vw, 360px); margin: 1.8rem auto 0; color: #FBF4EB; }
.thanks-wordmark svg { width: 100%; height: auto; display: block; }
.thanks-values { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.8rem; margin: 2rem 0 0; font-size: .8rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; }
.replay { margin-top: 2.2rem; font-size: .8rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; padding: .9em 1.6em; border: 1.5px dashed currentColor; border-radius: 100px; transition: background .4s, color .4s; }
.replay:hover { background: #FBF4EB; color: var(--terracotta); }

/* ---------- HUD ---------- */
.hud { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: calc(22px + env(safe-area-inset-top)) var(--gx) 0; pointer-events: none; opacity: 0; }
.hud > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--fg); }
.brand .lk-thread { height: 30px; width: auto; }
.brand .lk-word { height: 13px; width: auto; }
.hud-right { display: flex; align-items: center; gap: 22px; }
.hud-count { font-family: var(--f-display); font-size: .95rem; letter-spacing: .1em; display: flex; gap: .4em; align-items: baseline; }
.hud-count b { font-weight: 400; color: var(--accent); }
.hud-count i { font-style: normal; opacity: .4; }
.hud-count span { opacity: .55; }
.hud-btn { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; position: relative; padding: 6px 0; }
.hud-btn > span { display: block; width: 26px; height: 1.5px; background: var(--fg); transition: width .5s var(--ease); }
.hud-btn > span + span { width: 16px; }
.hud-btn:hover > span + span { width: 26px; }
.hud-btn em { position: absolute; right: 36px; top: 50%; transform: translateY(-50%); font-family: var(--f-sans); font-style: normal; font-size: .72rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; }
#indexBtn { margin-left: 70px; }
.hud-fs svg { width: 18px; height: 18px; fill: none; stroke: var(--fg); stroke-width: 1.5; }

.rail { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 0 var(--gx) calc(28px + env(safe-area-inset-bottom)); pointer-events: none; opacity: 0; }
.rail > * { pointer-events: auto; }
.rail-title { font-size: .74rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-stitches { display: flex; gap: 6px; align-items: center; }
.rail-stitches button { width: 18px; height: 22px; position: relative; }
.rail-stitches button::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--fg); opacity: .22; transition: opacity .4s, background .4s, transform .6s var(--ease); }
.rail-stitches button.past::before { background: var(--thread); opacity: .9; }
.rail-stitches button.current::before { background: var(--thread); opacity: 1; transform: scaleY(2.2); }
.rail-stitches button.current { width: 34px; }
.rail-stitches button { transition: width .6s var(--ease); }
.rail-stitches button:hover::before { opacity: .8; }
.rail-nav { justify-self: end; display: flex; gap: 8px; }
.rail-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); font-size: 1rem; transition: background .4s, color .4s, border-color .4s; }
.rail-nav button:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
html[data-theme="terracotta"] .rail-stitches button::before { background: #FBF4EB; }

/* ---------- index overlay ---------- */
#index { position: fixed; inset: 0; z-index: 30; background: var(--bg); visibility: hidden; clip-path: circle(0% at calc(100% - 120px) 40px); overflow-y: auto; }
#index.open { visibility: visible; }
.index-inner { padding: 120px var(--gx) 80px; max-width: 1400px; margin: 0 auto; }
#indexList { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 6vw; }
#indexList li { break-inside: avoid; border-bottom: 1px solid var(--line); }
#indexList button { display: flex; align-items: baseline; gap: 1.4rem; width: 100%; text-align: left; padding: .7rem 0; font-family: var(--f-serif); font-size: clamp(1.4rem, 2.6vw, 2.4rem); line-height: 1.1; transition: color .4s, transform .6s var(--ease); }
#indexList button span { font-family: var(--f-display); font-size: .78rem; color: var(--accent); letter-spacing: .1em; min-width: 2em; }
#indexList button:hover { color: var(--accent); transform: translateX(.6rem); font-style: italic; }
#indexList li.current button { color: var(--accent); }

/* ---------- loader ---------- */
#loader { position: fixed; inset: 0; z-index: 50; background: var(--cream); color: #2B2522; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: calc(28px + env(safe-area-inset-top)) var(--gx) calc(30px + env(safe-area-inset-bottom)); }
.loader-top { width: 100%; display: flex; justify-content: space-between; font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; color: rgba(43,37,34,.55); }
.loader-logo { width: min(760px, 88vw); }
.loader-logo svg { width: 100%; height: auto; display: block; overflow: visible; }
.loader-foot { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.loader-status { margin: 0; font-size: .74rem; letter-spacing: .32em; text-transform: uppercase; color: rgba(43,37,34,.55); }
.loader-status span { font-family: var(--f-display); color: var(--terracotta); font-size: .9rem; letter-spacing: .1em; }
.loader-hint { margin: 0; font-size: .8rem; color: rgba(43,37,34,.5); letter-spacing: .06em; }
.enter { position: relative; display: flex; align-items: center; gap: 16px; padding: 8px 26px 8px 8px; font-size: .8rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 500; opacity: 0; transform: translateY(10px); }
.enter-ring { width: 52px; height: 52px; border-radius: 50%; background: var(--terracotta); position: relative; transition: transform .7s var(--ease); }
.enter-ring::after { content: "→"; position: absolute; inset: 0; display: grid; place-items: center; color: #FBF4EB; font-size: 1.1rem; letter-spacing: 0; }
.enter:hover .enter-ring { transform: scale(1.14); }

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none; display: none; opacity: 0; transition: opacity .4s; }
.cursor.live { opacity: 1; }
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; border-radius: 50%; pointer-events: none; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--thread); }
html[data-theme="terracotta"] .cursor-dot { background: #FBF4EB; }
.cursor-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid var(--fg); opacity: .35; transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), opacity .45s, background-color .45s; }
.cursor.hover .cursor-ring { width: 66px; height: 66px; margin: -33px 0 0 -33px; opacity: .6; background-color: rgba(196, 96, 61, .08); }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
  body, button, a { cursor: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cards4 { grid-template-columns: repeat(2, 1fr); }
  .card-art { aspect-ratio: 16 / 9; }
}
@media (max-width: 820px) {
  .inner { justify-content: flex-start; padding-top: calc(84px + env(safe-area-inset-top)); padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .cols3, .knot-row { grid-template-columns: 1fr; gap: 18px; }
  .knot-row { height: 150px; grid-template-columns: repeat(3, 1fr); }
  .s-cover .inner { justify-content: flex-end; }
  .cover-sign { display: none; }
  .s-sell .inner, .s-uk .inner, .s-channels .inner, .s-team .inner { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; }
  .sell-list { margin-top: 1.4rem; }
  .globe-slot { height: 62vw; min-height: 260px; order: -1; margin-bottom: 1rem; }
  .s-uk .inner > .uk-text { order: 2; }
  .orbit-slot { display: none; }
  .grid6 { grid-template-columns: 1fr; margin-top: 1.2rem; }
  .funnel-text, .content-text { width: 100%; }
  .s-funnel .inner, .s-content .inner { padding-top: calc(38vh + 40px); }
  .fbar { width: 100%; }
  .plan-head { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .team-grid { gap: 16px; margin-top: 1.4rem; }
  .grid-invest { grid-template-columns: 1fr 1fr; gap: 14px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps article { margin-bottom: 0; padding-bottom: 1rem; }
  .coll-head { margin-bottom: 1rem; }
  .flow { flex-wrap: wrap; }
  .coil-band { height: 90px; }
  .rail { grid-template-columns: 1fr auto; background: linear-gradient(to bottom, transparent, var(--bg) 42%); padding-top: 34px; transition: background .9s; }
  .hud { background: linear-gradient(to bottom, var(--bg) 58%, transparent); padding-bottom: 20px; }
  .bridge { height: 120px; }
  .bridge-end { font-size: .58rem; letter-spacing: .2em; max-width: 46%; }
  .rail-title { display: none; }
  .rail-stitches { gap: 3px; }
  .rail-stitches button { width: 10px; }
  .rail-stitches button.current { width: 20px; }
  .rail-nav button { width: 40px; height: 40px; }
  #indexBtn { margin-left: 0; }
  .hud-btn em { display: none; }
  .hud-fs { display: none; }
  .brand .lk-word { display: none; }
  #indexList { columns: 1; }
}
@media (max-width: 480px) {
  .cards4 { grid-template-columns: 1fr; }
  .grid-invest { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .headline { font-size: 2rem; }
  .filter-label { width: 100%; }
}
@media (max-height: 760px) and (min-width: 821px) {
  .headline { font-size: clamp(1.9rem, 3.4vw, 3.4rem); }
  .kicker { margin-bottom: .9rem; }
  .inner { padding-top: 84px; padding-bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; }
}

/* used for the final sun → background handoff */
html.instant-bg body, html.instant-bg .rail, html.instant-bg .hud { transition: none !important; }
html.sun-filling .hud, html.sun-filling .rail { background: transparent !important; }
