/* Sobek Enterprises — Apple-like, white, liquid glass.
   Layout idea: cinematic sticky scenes (icon cloud → iPhone → MacBook), minimal copy. */
:root {
  --ink: #0b0b0c;
  --ink-2: #424245;
  --ink-3: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --accent: #0071e3;
  --radius: 28px;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; line-height: 1.5; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { text-wrap: balance; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* ---------- Glass ---------- */
.glass {
  background: rgba(255, 255, 255, 0.58);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(0,0,0,.03), 0 1px 2px rgba(0,0,0,.04), 0 14px 40px rgba(0,0,0,.08);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(980px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 8px 8px 20px; border-radius: 999px;
  transition: width .6s var(--ease), padding .6s var(--ease);
}
.nav.is-scrolled { width: min(720px, calc(100% - 24px)); }
.logo { display: flex; align-items: center; }
.logo img { height: 26px; width: auto; }
.nav ul { list-style: none; display: flex; gap: 2px; }
.nav ul a { display: block; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; color: var(--ink-2); transition: background .3s, color .3s; }
.nav ul a:hover { background: rgba(0,0,0,.05); color: var(--ink); }
.nav .btn { padding: 9px 18px; font-size: 13.5px; }
@media (max-width: 760px) { .nav ul { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px;
  font: 500 16px var(--font); background: var(--ink); color: #fff; border: 0; cursor: pointer;
  transform: translate(var(--mx), var(--my)); transition: transform .4s var(--ease), background .3s, box-shadow .3s;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.btn:hover { background: #000; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.btn:active { transform: translate(var(--mx), var(--my)) scale(.95); }

/* ---------- Background blobs ---------- */
.blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .7; will-change: transform; }
.blob.b1 { width: 520px; height: 520px; background: #dceeff; top: -140px; left: -100px; animation: drift1 18s ease-in-out infinite; }
.blob.b2 { width: 480px; height: 480px; background: #f1e7ff; bottom: -160px; right: -80px; animation: drift2 22s ease-in-out infinite; }
.blob.b3 { width: 340px; height: 340px; background: #dff5ea; top: 45%; left: 55%; animation: drift1 26s ease-in-out infinite reverse; }
@keyframes drift1 { 50% { transform: translate(120px, 80px) scale(1.1); } }
@keyframes drift2 { 50% { transform: translate(-100px, -60px) scale(.92); } }

/* =========================================================
   HERO — icon cloud
   ========================================================= */
.hero { position: relative; height: 230vh; }
.hero-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; }
.cloud { position: absolute; inset: 0; z-index: 1; }

.app {
  --x: 0px; --y: 0px; --s: 1; --o: 1; --px: 0px; --py: 0px;
  position: absolute; left: 50%; top: 50%;
  width: var(--size, 76px); height: var(--size, 76px); margin: calc(var(--size, 76px) / -2) 0 0 calc(var(--size, 76px) / -2);
  border-radius: 23%;
  display: grid; place-items: center;
  transform: translate(calc(var(--x) + var(--px)), calc(var(--y) + var(--py))) scale(var(--s));
  opacity: var(--o);
}
.app i {
  display: block; width: 46%; height: 46%; background: var(--c, #000);
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
}
.app::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(140deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,0) 40%);
  mix-blend-mode: soft-light;
}
.cloud .app { transition: transform 1.3s var(--spring), opacity .8s var(--ease); transition-delay: var(--d, 0s); }
.cloud.live .app { transition: none; }
.cloud:not(.ready) .app { --x: 0px !important; --y: 0px !important; --s: .3 !important; --o: 0 !important; }

.mark {
  position: relative; z-index: 2;
  width: 200px; height: 200px; border-radius: 46px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #ffffff 0%, #f1f1f4 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 6px rgba(0,0,0,.05), 0 30px 80px rgba(0,0,0,.14), 0 4px 14px rgba(0,0,0,.06);
  overflow: hidden;
  animation: markIn 1.4s var(--spring) both;
}
.mark-holder { position: relative; z-index: 2; transform: translateY(var(--my2, 0px)) scale(var(--ms, 1)); opacity: var(--mo, 1); }
.mark img { width: 58%; filter: drop-shadow(0 2px 2px rgba(0,0,0,.08)); }
.mark::after {
  content: ""; position: absolute; inset: -50%; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.95) 50%, transparent 58%);
  transform: translateX(-60%); animation: shine 4.5s 1.2s ease-in-out infinite;
}
@keyframes markIn { from { transform: scale(.4); opacity: 0; filter: blur(20px); } to { transform: scale(1); opacity: 1; filter: blur(0); } }
@keyframes shine { 0% { transform: translateX(-60%); } 35%, 100% { transform: translateX(60%); } }

.hero-copy {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 8vh; text-align: center; padding: 0 20px;
  transform: translateY(var(--cy, 0px)); opacity: var(--co, 1);
}
.hero-copy h1 { font-size: clamp(44px, 8vw, 112px); line-height: .95; letter-spacing: -0.05em; font-weight: 700; }
.hero-copy h1 span { display: inline-block; opacity: 0; filter: blur(14px); transform: translateY(30px); animation: wordIn 1.2s .5s var(--ease) forwards; }
.hero-copy h1 span:nth-child(2) { animation-delay: .6s; }
.hero-copy h1 span:nth-child(3) { animation-delay: .7s; }
.hero-copy h1 .grad { background: linear-gradient(90deg, #0b0b0c, #8e8e93); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy p { margin-top: 16px; font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-3); opacity: 0; animation: wordIn 1s 1.1s var(--ease) forwards; }
@keyframes wordIn { to { opacity: 1; filter: blur(0); transform: none; } }
.eyebrow-top {
  position: absolute; z-index: 3; top: 13vh; left: 50%; translate: -50% 0;
  font-size: 13px; color: var(--ink-2); padding: 7px 14px; border-radius: 999px; white-space: nowrap;
  opacity: 0; animation: wordIn 1s 1.3s var(--ease) forwards;
}

/* =========================================================
   iPhone scene
   ========================================================= */
.phone-scene { position: relative; height: 420vh; background: var(--bg); }
.phone-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 5vw;
  padding: 80px 5vw 40px;
}
.scene-text { position: relative; height: 260px; }
.scene-text article { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(30px); filter: blur(8px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); }
.scene-text article.on { opacity: 1; transform: none; filter: none; }
.scene-text .k { font-size: 15px; font-weight: 600; color: var(--ink-3); margin-bottom: 10px; }
.scene-text h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.045em; }
.scene-text p { margin-top: 14px; font-size: 19px; color: var(--ink-2); max-width: 340px; }
.scene-nav { list-style: none; display: grid; gap: 14px; justify-self: start; }
.scene-nav li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-3); transition: color .4s; }
.scene-nav li b { width: 34px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; position: relative; }
.scene-nav li b::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--f, 0)); transform-origin: left; }
.scene-nav li.on { color: var(--ink); }

.phone-wrap { perspective: 1600px; }
.phone {
  position: relative; width: 300px; height: 620px; border-radius: 56px; padding: 11px;
  background: linear-gradient(145deg, #2b2b2e, #0c0c0d 40%, #1d1d1f);
  box-shadow: inset 0 0 0 1.5px #3a3a3d, inset 0 0 0 4px #0b0b0c, 0 50px 100px rgba(0,0,0,.22), 0 10px 30px rgba(0,0,0,.12);
  transform: rotateY(var(--ry, -28deg)) rotateX(var(--rx, 12deg)) rotateZ(var(--rz, 6deg)) scale(var(--sc, .82));
  will-change: transform;
}
.phone::before { content: ""; position: absolute; right: -3px; top: 150px; width: 3px; height: 80px; border-radius: 0 3px 3px 0; background: #2a2a2d; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 46px; overflow: hidden; background: #fff; }
.island { position: absolute; z-index: 5; top: 11px; left: 50%; transform: translateX(-50%); width: 96px; height: 28px; border-radius: 20px; background: #000; }
.screen::after { content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; background: linear-gradient(120deg, rgba(255,255,255,.35), transparent 35%); }
.view { position: absolute; inset: 0; padding: 52px 16px 16px; transition: transform .8s var(--ease), opacity .6s var(--ease); opacity: 0; transform: translateX(40px) scale(.96); display: flex; flex-direction: column; }
.view.on { opacity: 1; transform: none; }
.view.off { transform: translateX(-40px) scale(.96); }
.sb { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; position: absolute; top: 16px; left: 26px; right: 26px; }
.ui-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: .14em; padding: 4px 4px 12px; }
.ui-top small { font-size: 10px; letter-spacing: 0; font-weight: 500; color: var(--ink-3); background: var(--bg-soft); padding: 3px 8px; border-radius: 99px; }
.prod-hero { flex: 1; border-radius: 26px; background: linear-gradient(170deg, #eef3fb, #dde6f3); display: grid; place-items: center; }
.bottle { width: 92px; height: 150px; border-radius: 22px 22px 18px 18px; background: linear-gradient(90deg, #1d1d1f, #3a3a3d 45%, #1d1d1f); position: relative; box-shadow: 0 30px 40px rgba(0,0,0,.25); animation: floaty 4s ease-in-out infinite; }
.bottle::before { content: ""; position: absolute; left: 18px; right: 18px; top: -20px; height: 22px; border-radius: 6px; background: #c9b27c; }
.bottle::after { content: "MAG\A ·\A DAILY"; white-space: pre; position: absolute; left: 10px; right: 10px; top: 48px; text-align: center; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .2em; line-height: 1.5; }
@keyframes floaty { 50% { transform: translateY(-8px) rotate(-2deg); } }
.prod-info { padding: 12px 4px 4px; }
.prod-info h4 { font-size: 18px; letter-spacing: -0.02em; }
.prod-info p { font-size: 12px; color: var(--ink-3); }
.stars { color: #f5a623; font-size: 11px; letter-spacing: 2px; margin-top: 2px; }
.cta { margin-top: 10px; height: 44px; border-radius: 14px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 600; }
.doc-cover { flex: 1; border-radius: 22px; background: #0b0b0c; color: #fff; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; }
.doc-cover::before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, #3b82f6, transparent 70%); top: -60px; right: -60px; opacity: .8; animation: floaty 5s ease-in-out infinite; }
.doc-cover small { font-size: 10px; letter-spacing: .2em; opacity: .6; position: relative; }
.doc-cover strong { font-size: 26px; line-height: 1; letter-spacing: -0.03em; margin-top: 6px; position: relative; }
.rows { margin-top: 12px; display: grid; gap: 8px; }
.rows div { display: flex; align-items: center; gap: 10px; font-size: 12.5px; padding: 10px 12px; border-radius: 14px; background: var(--bg-soft); }
.rows div::before { content: ""; width: 22px; height: 26px; border-radius: 5px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); flex: none; }
.rows div span { margin-left: auto; color: var(--accent); font-weight: 600; }
.video { height: 170px; border-radius: 20px; background: linear-gradient(140deg, #1d1d1f, #3a3a3d); position: relative; display: grid; place-items: center; }
.video .play { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.video .play::before { content: ""; margin-left: 4px; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.video .bar { position: absolute; left: 14px; right: 14px; bottom: 12px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.25); }
.video .bar::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; background: #fff; border-radius: 2px; animation: prog 8s linear infinite; }
@keyframes prog { from { width: 5%; } to { width: 95%; } }
.lessons { margin-top: 12px; display: grid; gap: 6px; }
.lessons div { display: flex; gap: 10px; align-items: center; font-size: 12.5px; padding: 9px 10px; border-radius: 12px; }
.lessons div i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; background: var(--bg-soft); flex: none; }
.lessons div.done i { background: var(--ink); color: #fff; }
.lessons div.now { background: var(--bg-soft); font-weight: 600; }

@media (max-width: 900px) {
  .phone-sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr; justify-items: center; align-items: start; gap: 10px; padding-top: 90px; text-align: center; }
  .scene-text { height: 150px; width: 100%; }
  .scene-text p { margin-inline: auto; font-size: 16px; }
  .scene-nav { display: none; }
  .phone { width: 250px; height: 516px; border-radius: 48px; }
  .screen { border-radius: 39px; }
}

/* =========================================================
   Statement
   ========================================================= */
.statement { padding: clamp(120px, 18vw, 220px) 0; background: var(--bg); }
.statement p { font-size: clamp(34px, 5.4vw, 76px); line-height: 1.06; letter-spacing: -0.045em; font-weight: 700; max-width: 16ch; }
.statement .w { color: #e3e3e6; transition: color .3s; }
.statement .w.on { color: var(--ink); }

/* =========================================================
   Logo marquee
   ========================================================= */
.stack { padding: 20px 0 clamp(110px, 14vw, 170px); overflow: hidden; text-align: center; }
.stack h2 { font-size: clamp(30px, 4vw, 52px); letter-spacing: -0.04em; line-height: 1.05; }
.stack .sub { color: var(--ink-3); font-size: 19px; margin-top: 10px; }
.rails { margin-top: 56px; display: grid; gap: 22px; }
.rail { -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.track-x { display: flex; gap: 22px; width: max-content; animation: marquee 40s linear infinite; padding: 14px 0; }
.rail.rev .track-x { animation-direction: reverse; animation-duration: 46s; }
.track-x .app { position: relative; left: auto; top: auto; margin: 0; --size: 92px; transform: none; flex: none; transition: transform .5s var(--spring); }
.track-x .app:hover { transform: scale(1.12) translateY(-6px); }
.rail:hover .track-x { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   MacBook scene
   ========================================================= */
.mac-scene { position: relative; height: 260vh; background: var(--bg-soft); }
.mac-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 100px; }
.mac-head { text-align: center; margin-bottom: 5vh; padding: 0 20px; }
.mac-head .k { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.mac-head h2 { font-size: clamp(40px, 6vw, 84px); letter-spacing: -0.05em; line-height: 1; margin-top: 8px; }
.mac { width: min(820px, 86vw, 120vh); perspective: 2200px; transform: scale(var(--msc, .9)); }
.lid {
  position: relative; aspect-ratio: 16 / 10.3; border-radius: 22px 22px 6px 6px; padding: 2.2%;
  background: #0b0b0c; box-shadow: inset 0 0 0 2px #2a2a2d;
  transform-origin: 50% 100%; transform: rotateX(var(--lid, -88deg));
}
.lid .cam { position: absolute; top: .9%; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #1f2a33; }
.lcd { width: 100%; height: 100%; border-radius: 6px; overflow: hidden; background: #fff; display: grid; grid-template-columns: 1fr 34%; position: relative; }
.lcd::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.25), transparent 40%); pointer-events: none; }
.lcd .player { background: #111; position: relative; display: grid; place-items: center; }
.lcd .player img { width: 22%; opacity: .12; }
.lcd .player .play { position: absolute; width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: grid; place-items: center; }
.lcd .player .play::before { content: ""; margin-left: 5px; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.lcd .player .ttl { position: absolute; left: 4%; bottom: 8%; color: #fff; font-size: clamp(10px, 1.4vw, 16px); font-weight: 600; }
.lcd .player .ttl small { display: block; opacity: .6; font-weight: 500; font-size: .8em; }
.lcd .side { padding: 6% 6%; font-size: clamp(8px, 1.05vw, 13px); display: flex; flex-direction: column; gap: 3%; }
.lcd .side b { font-size: 1.15em; margin-bottom: 3%; }
.lcd .side div { padding: 5% 6%; border-radius: 8px; display: flex; gap: 6%; align-items: center; }
.lcd .side div.now { background: var(--bg-soft); font-weight: 600; }
.lcd .side div i { width: 1.6em; height: 1.6em; border-radius: 50%; flex: none; background: var(--bg-soft); }
.lcd .side div.done i { background: var(--ink); }
.base { position: relative; height: 16px; margin: 0 -6%; border-radius: 0 0 20px 20px; background: linear-gradient(#e2e2e5, #a1a1a6); box-shadow: 0 30px 50px rgba(0,0,0,.18); }
.base::before { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 6px; margin-left: -8%; border-radius: 0 0 8px 8px; background: #c7c7cc; }
.chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 6vh; opacity: var(--po, 0); transform: translateY(var(--py2, 20px)); }
.chips span { font-size: 14px; padding: 9px 16px; border-radius: 999px; }

/* =========================================================
   Company + contact
   ========================================================= */
.section { padding: clamp(100px, 13vw, 160px) 0; position: relative; }
.h2 { font-size: clamp(38px, 5.6vw, 72px); line-height: 1; letter-spacing: -0.05em; }
.k2 { font-size: 15px; font-weight: 600; color: var(--ink-3); margin-bottom: 10px; }
.facts { margin-top: 50px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.facts > div { border-radius: 24px; padding: 24px; background: var(--bg-soft); transition: transform .5s var(--spring); }
.facts > div:hover { transform: translateY(-4px); }
.facts dt { font-size: 13px; color: var(--ink-3); margin-bottom: 6px; }
.facts dd { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }
.small-note { margin-top: 22px; font-size: 14px; color: var(--ink-3); }

.contact { overflow: hidden; }
.contact-box { position: relative; z-index: 1; border-radius: 40px; padding: clamp(32px, 6vw, 70px); display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 900px) { .contact-box { grid-template-columns: 1fr; } }
.mail-big { display: inline-block; margin-top: 24px; font-size: clamp(22px, 2.6vw, 32px); font-weight: 600; letter-spacing: -0.02em; color: var(--accent); word-break: break-all; }
.mail-big:hover { text-decoration: underline; }
form { display: grid; gap: 12px; }
.field { position: relative; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); padding: 24px 18px 10px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.75); outline: none; resize: vertical; transition: border-color .3s, box-shadow .3s; }
.field textarea { min-height: 120px; }
.field label { position: absolute; left: 18px; top: 17px; font-size: 16px; color: var(--ink-3); pointer-events: none; transition: all .25s var(--ease); }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0,113,227,.14); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 7px; font-size: 12px; }
.form-ok { display: none; font-size: 15px; color: var(--accent); }
form.sent .form-ok { display: block; }
.hidden { display: none; }

/* reveal */
.reveal { opacity: 0; transform: translateY(40px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 56px 0 36px; font-size: 14px; color: var(--ink-2); background: var(--bg); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }
.foot h5 { font-size: 13px; color: var(--ink); margin-bottom: 14px; }
.foot ul { list-style: none; display: grid; gap: 9px; }
.foot a:hover { color: var(--ink); }
.foot address { font-style: normal; line-height: 1.7; margin-top: 16px; }
.copy { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--ink-3); font-size: 13px; }

/* ---------- Legal pages ---------- */
.legal-hero { padding: 160px 0 50px; position: relative; overflow: hidden; }
.legal-hero .blobs { -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.legal-hero h1 { font-size: clamp(42px, 7vw, 84px); letter-spacing: -0.05em; line-height: 1; position: relative; z-index: 1; }
.legal-hero p { color: var(--ink-3); margin-top: 16px; position: relative; z-index: 1; }
.legal-layout { display: grid; grid-template-columns: 220px 1fr; gap: 60px; padding-bottom: 120px; }
.toc { position: sticky; top: 110px; align-self: start; display: grid; gap: 4px; font-size: 14px; }
.toc a { padding: 8px 14px; border-radius: 10px; color: var(--ink-3); transition: background .3s, color .3s; }
.toc a:hover, .toc a.active { background: var(--bg-soft); color: var(--ink); }
@media (max-width: 860px) { .legal-layout { grid-template-columns: 1fr; } .legal-layout .toc { display: none; } }
.doc { max-width: 720px; font-size: 17px; color: var(--ink-2); }
.doc h2 { font-size: 26px; letter-spacing: -0.025em; color: var(--ink); margin: 54px 0 14px; scroll-margin-top: 110px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc ul { margin-bottom: 16px; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--accent); }
.doc .callout { border-radius: 20px; background: var(--bg-soft); padding: 22px 24px; margin: 0 0 30px; font-size: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero-copy h1 span, .hero-copy p, .eyebrow-top { opacity: 1; transform: none; filter: none; }
}
