/* yuask: an immersive scene, smooth charcoal surfaces and clear typography */

:root {
  --paper: #faf8f6;
  --ink: #141210;
  --night: #0c0a09;
  --gutter: clamp(20px, 5vw, 88px);
  --accent: #d8d0c2;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: var(--ui);
}

html[data-theme="dark"] { --paper: #0c0a09; --ink: #faf8f6; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--ui);
  font-variation-settings: "opsz" 14;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
br.m { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Inter at its display optical size for everything set large */
.lockup, .hero h1, .door h2, .manifesto { font-variation-settings: "opsz" 32; }

/* ---------- the stage ---------- */
.climb { position: relative; height: 540vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.art-fallback { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.flat .art-fallback { display: block; }
.flat .tower { display: none; }
.tower { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.snaps { position: absolute; inset: 0; pointer-events: none; }
.snaps i { position: absolute; left: 0; width: 1px; height: 1px; scroll-snap-align: start; }

/* ---------- header ---------- */
.nav {
  position: absolute; z-index: 6; top: 0; left: 0; right: 0; height: 84px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  background: linear-gradient(#0c0a09e6, #0c0a0900);
}
/* the wordmark: "yuask" with a small boxed "ai" */
.lockup { display: inline-flex; align-items: center; gap: 7px; font: 600 25px/1 var(--display); letter-spacing: -0.055em; white-space: nowrap; }
.lockup .mark { height: 1.36em; width: auto; margin-right: 1px; }
.lockup em {
  margin-top: 3px; padding: 3px 4px 2px; border: 1px solid currentColor;
  font: 500 10px/1.2 var(--ui); font-style: normal; letter-spacing: 0.04em; opacity: .7;
}

.links { display: flex; align-items: center; gap: 2px; font: 500 14px/1 var(--ui); }
/* Chat / Code: the two halves of the product, before the section links */
.tabs { display: flex; align-items: center; gap: 2px; margin-left: 22px; margin-right: auto; font: 500 14px/1 var(--ui); }
.tabs a { padding: 9px 11px; opacity: .72; }
.tabs a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.tabs a[aria-current="page"] { opacity: 1; }
.sheet { display: flex; align-items: center; gap: 2px; }
.sheet a { padding: 9px 11px; }
.sheet a:hover { text-decoration: underline; text-underline-offset: 4px; }

.tok { position: relative; }
.tok-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 9px 11px;
  border: 0; background: none; color: inherit; font: inherit; cursor: pointer;
}
.tok-btn svg { opacity: .55; }
.tok-btn:hover, .tok.open .tok-btn { text-decoration: underline; text-underline-offset: 4px; }
.tok-panel {
  position: absolute; z-index: 8; top: calc(100% + 6px); left: 0; min-width: 220px; padding: 6px;
  background: var(--paper); border: 1.5px solid var(--ink);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease, visibility 0s .16s;
}
.tok.open .tok-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .16s ease, transform .16s ease; }
.tok-panel a { display: block; padding: 10px 12px; }
.tok-panel a:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.tok-panel b { display: block; font-size: 14px; font-weight: 500; }
.tok-panel span { display: block; margin-top: 3px; font-size: 12px; opacity: .65; }

.menu-btn { display: none; }
.only-sm { display: none; }
.login { white-space: nowrap; margin-left: 18px; padding: 11px 18px; background: var(--ink); color: var(--paper); transition: background .2s, box-shadow .2s; }
.login:hover { background: var(--night); }
html[data-theme="dark"] .login:hover { background: #e9e6e2; }
.social-x { flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin-left: 12px; border: 1px solid #ffffff38; border-radius: 50%; background: #ffffff06; color: var(--ink); transition: background .2s, border-color .2s; }
.social-x:hover { background: #ffffff12; border-color: #ffffff80; }
.social-x svg { display: block; }

/* ---------- the path rail: three numbers on the right edge, once the descent has started ---------- */
.rail {
  position: absolute; z-index: 6; right: calc(var(--gutter) * .45); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  font: 500 12px/1 var(--ui); letter-spacing: -0.005em;
  opacity: 0; visibility: hidden;
}
.rail a { display: inline-flex; align-items: center; gap: 12px; padding: 8px 0; }
.rail .n { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; opacity: .55; }
.rail .n::after { content: ""; width: 14px; height: 1.5px; background: var(--ink); transition: width .3s ease; }
.rail .t { opacity: 0; transform: translateX(6px); transition: opacity .2s ease, transform .2s ease; white-space: nowrap; }
.rail a:hover .t { opacity: 1; transform: none; }
.rail a:hover .n, .rail a.on .n { opacity: 1; }
.rail a.on .n::after { width: 30px; background: var(--accent); box-shadow: 0 0 12px #d8d0c222; }

/* ---------- opening: editorial copy beside the cybernetic portrait ---------- */
.hero {
  position: absolute; z-index: 4; top: clamp(142px, 22vh, 250px); left: var(--gutter); width: min(43vw, 660px);
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  will-change: transform, opacity;
}
.tag {
  display: flex; align-items: center; gap: 10px; margin: 0 0 25px; color: #a8a49d;
  font: 500 11px/1 var(--ui); letter-spacing: 0.1em; text-transform: uppercase;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 15px #d8d0c244; }
.hero h1 { margin: 0; font: 500 clamp(48px, 5.1vw, 86px)/1.025 var(--display); letter-spacing: -0.055em; text-wrap: balance; }
.hero h1 span { color: #ded8cd; }
.hero .sub { color: #b9b6b0; text-shadow: 0 1px 12px #0c0a09; }
.hero .sub { margin: 18px 0 0; max-width: 30em; text-wrap: pretty; font-size: 17px; line-height: 1.5; letter-spacing: -0.006em; }

.ask {
  display: flex; align-items: center; width: min(510px, 100%); height: 60px; margin-top: 30px; padding: 0 6px 0 18px;
  text-align: left; background: #141311; border: 1px solid #ffffff38; box-shadow: 0 12px 40px #0005; transition: border-color .2s;
}
.ask:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; border-color: var(--accent); }
.ask input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  color: var(--ink); font: 400 15px/1 var(--ui); letter-spacing: -0.01em;
}
.ask input::placeholder { color: #a39e95; opacity: 1; }
.ask button {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px;
  border: 0; background: var(--accent); color: #141210; cursor: pointer; transition: background .2s;
}

.note { max-width: 38em; margin: 8px 0 0; padding: 5px 8px; font-size: 11px; line-height: 1.5; color: #b9b6b0; background: #0c0a09d9; text-shadow: 0 1px 8px #0c0a09; }
.cue svg { color: #ded8cd; }
.cue { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 6px 2px; font: 500 14px/1 var(--ui); }
.cue:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- doors: the tower on one side, the copy on the other (02 swaps) ---------- */
.door {
  position: absolute; z-index: 4; inset: 0;
  display: grid; place-items: center end; padding-right: calc(max(var(--gutter), 6vw) + 24px);
  opacity: 0; visibility: hidden; pointer-events: none; will-change: transform, opacity;
}
.door[data-side="left"] { place-items: center start; padding-right: 0; padding-left: max(var(--gutter), 6vw); }
.door-in { width: min(520px, 37vw); text-align: left; }
.door .eyebrow {
  display: flex; align-items: center; gap: 14px; margin: 0 0 20px;
  font: 500 12px/1 var(--ui); letter-spacing: 0.08em; text-transform: uppercase;
}
.door .eyebrow .n { display: inline-flex; align-items: center; gap: 14px; letter-spacing: 0.04em; }
.door .eyebrow .n { color: #ded8cd; }
.door .eyebrow .n::after { content: ""; width: 28px; height: 1.5px; background: var(--accent); }
.door h2 { margin: 0; font: 500 clamp(38px, 4.1vw, 62px)/1.04 var(--display); letter-spacing: -0.045em; text-wrap: balance; }
.door .body { color: #b9b6b0; max-width: 31em; margin: 22px 0 0; font-size: 17px; line-height: 1.5; letter-spacing: -0.006em; }
.door .body a { color: #ded8cd; border-bottom: 1px solid #ffffff40; }
.door .body a:hover { border-color: currentColor; }
.acts {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin: 28px 0 0;
  font: 500 15px/1 var(--ui);
}
.acts a:not(.btn) { padding: 6px 0; border-bottom: 1.5px solid currentColor; }

/* the three plans, set like a small table */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); margin: 26px 0 0; border-top: 1px solid #ffffff40; border-bottom: 1px solid #ffffff40; }
.plans div { padding: 14px 0 14px 16px; border-left: 1px solid #ffffff2b; }
.plans div:first-child { padding-left: 0; border-left: 0; }
.plans dt { font: 500 12px/1 var(--ui); letter-spacing: 0.08em; text-transform: uppercase; }
.plans dd { margin: 10px 0 0; font: 500 30px/1 var(--display); font-variation-settings: "opsz" 32; letter-spacing: -0.04em; }
.plans .per { margin-top: 6px; font: 400 13px/1.3 var(--ui); letter-spacing: 0; opacity: .62; }
.plans.four { grid-template-columns: repeat(4, 1fr); }
.fine { margin: 18px 0 0; font-size: 13px; line-height: 1.5; opacity: .62; }

.btn { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; background: var(--ink); color: var(--paper); }
.btn::after {
  content: ""; width: 7px; height: 7px; margin-left: 12px;
  border-top: 1.5px solid; border-right: 1.5px solid; transform: rotate(45deg);
}
.btn:hover { background: #dcd6cc; }
.ask button:hover { background: #f0eae0; }

/* ---------- footer: the scene fades into the same charcoal background ---------- */
.foot { position: relative; background: var(--night); color: var(--paper); }
html[data-theme="dark"] .foot { color: #faf8f6; }
.foot .btn { background: #faf8f6; color: #0c0a09; }
.foot .btn:hover { background: #e9e6e2; }
.foot-in { padding: 64px var(--gutter) 32px; border-top: 1px solid #ffffff16; }
.foot-top { display: grid; grid-template-columns: 1.8fr 1fr; gap: 48px; align-items: end; }
.manifesto { max-width: 15.5em; margin: 0; font: 500 clamp(34px, 4.4vw, 68px)/1.02 var(--display); letter-spacing: -0.04em; text-wrap: balance; }
.join { padding: 28px; border: 1px solid #ffffff30; background: linear-gradient(135deg,#d8d0c208,transparent); }
.join p { margin: 0; font-size: 15px; line-height: 1.5; }
.join .soon { margin-bottom: 10px; font: 500 11px/1 var(--ui); letter-spacing: 0.1em; text-transform: uppercase; opacity: .62; }
.join .acts { margin-top: 20px; }
.cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; align-items: start; margin-top: 112px; }
.col.about p { margin: 16px 0 0; max-width: 18em; font-size: 14px; opacity: .7; }
.col h3 { margin: 0 0 18px; font: 500 12px/1 var(--ui); letter-spacing: 0.08em; text-transform: uppercase; }
.col a:not(.lockup), .col span { display: block; padding: 5px 0; font-size: 15px; }
.col span { opacity: .62; }
.col a:not(.lockup):hover { text-decoration: underline; text-underline-offset: 4px; }
.legal {
  display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 88px; padding-top: 22px;
  border-top: 1px solid currentColor; font-size: 13px;
}
.legal .credit { margin-left: auto; }

/* ---------- small laptops: the rail would crowd the copy ---------- */
@media (max-width: 1100px) {
  .rail { display: none; }
  .door { padding-right: max(var(--gutter), 6vw); }
}

/* ---------- compact header ---------- */
@media (max-width: 1000px) {
  .nav { height: 72px; }
  .tabs { display: none; }
  .links { margin-left: auto; }
  .sheet .only-sm { display: block; }
  .menu-btn {
    display: inline-flex; align-items: center; height: 34px; padding: 0 9px;
    border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
    font: 500 13.5px/1 var(--ui); cursor: pointer;
  }
  .login { display: inline-flex; align-items: center; height: 34px; margin-left: 5px; padding: 0 10px; }
  .social-x { width: 34px; height: 34px; margin-left: 4px; }
  .social-x svg { width: 15px; height: 15px; }
  .sheet {
    position: absolute; z-index: 7; top: 72px; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch;
    padding: 4px var(--gutter) 20px; background: var(--paper); border-bottom: 1.5px solid var(--ink);
  }
  .nav.open .sheet { display: flex; }
  .sheet a, .tok-btn { padding: 14px 0; font: 500 20px/1 var(--display); font-variation-settings: "opsz" 32; letter-spacing: -0.02em; }
  .sheet > a { border-top: 1px solid var(--ink); }
  .sheet > a:first-child { border-top: 0; }
  .tok { border-top: 1px solid var(--ink); }
  .tok-panel { position: static; display: none; padding: 0 0 6px 12px; border: 0; opacity: 1; visibility: visible; transform: none; }
  .tok.open .tok-panel { display: block; }
  .tok-panel a { padding: 10px 0; border: 0; font: inherit; font-size: 14px; }

}

/* ---------- phones ---------- */
@media (max-width: 760px) {
  .lockup { gap: 5px; font-size: 18.5px; }
  .lockup em { font-size: 8px; }
  br.m { display: inline; }
  .hero { top: 98px; right: var(--gutter); width: auto; align-items: center; text-align: center; }
  .tag { margin-bottom: 18px; font-size: 9px; letter-spacing: .13em; }
  .hero h1 { max-width: 13em; font-size: clamp(34px, 9.5vw, 54px); line-height: 1.04; }
  .hero .sub { max-width: 30em; margin-top: 16px; font-size: 14px; line-height: 1.5; }
  .ask { height: 52px; margin-top: 22px; }
  .ask input { font-size: 13px; }
  .note { max-width: 33em; font-size: 10px; }
  .cue { font-size: 12px; }
  .ask button { width: 38px; height: 38px; }
  .cue { margin-top: 14px; }

  .door, .door[data-side="left"] { place-items: start stretch; padding: 86px var(--gutter) 0; }
  .door-in { width: auto; }
  .door .eyebrow { margin-bottom: 14px; }
  .door h2 { max-width: 14em; font-size: clamp(32px, 9vw, 44px); }
  .door .body { max-width: 35em; margin-top: 14px; font-size: 14px; }
  .acts { gap: 8px 16px; margin-top: 18px; font-size: 14px; }
  .btn { height: 40px; }

  .plans { margin-top: 20px; }
  .plans div { padding-top: 12px; padding-bottom: 12px; }
  .plans dd { font-size: 26px; }
  .plans.four { grid-template-columns: repeat(2, 1fr); }
  .plans.four div:nth-child(3) { padding-left: 0; border-left: 0; }
  .plans.four div:nth-child(n+3) { border-top: 1px solid #ffffff2b; }
  .fine { font-size: 11px; }
  .foot-in { padding-top: 36px; }
  .foot-top { grid-template-columns: 1fr; gap: 28px; }
  .cols { grid-template-columns: 1fr 1fr; margin-top: 72px; }
  .cols .about { grid-column: 1 / -1; }
  .legal .credit { margin-left: 0; }
}

/* ---------- reduced motion or no WebGL: stacked sections, one still of the tower each ---------- */
@media (max-width: 360px) {
  .menu-btn { padding-inline: 7px; font-size: 12.5px; }
  .login { padding-inline: 8px; font-size: 13px; }
}

html.still { scroll-snap-type: none; }
.still .climb { height: auto; }
.still .stage { position: static; height: auto; overflow: visible; }
.still .stage > .tower, .still .art-fallback, .still .snaps, .still .rail { display: none; }
.still .panel { position: relative; height: 100vh; min-height: 640px; overflow: hidden; }
.still .panel.base { height: 60vh; min-height: 360px; }
.still .panel canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-still { display: none; }
.still.flat .scene-still { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; mask-image: linear-gradient(90deg,#0003,#000 65%); }
.still.flat .panel:where(:has(.door:not([data-side="left"]))) .scene-still { width: 160%; left: -90%; object-position: right center; mask-image: linear-gradient(90deg,#000 60%,#0000 92%); }
.still .hero, .still .door { opacity: 1 !important; visibility: visible !important; transform: none !important; will-change: auto; pointer-events: auto; }
.still.flat .panel.base { display: none; }
.still.flat .foot-in { padding-top: 64px; }

/* Landscape tablets use the same art/copy arrangement as portrait phones. */
@media (min-width: 761px) and (max-aspect-ratio: 9/10) {
  .hero { top: 120px; width: auto; right: var(--gutter); align-items: center; text-align: center; }
  .hero h1 { font-size: 64px; }
  .hero .sub { max-width: 36em; }
  .door, .door[data-side="left"] { place-items: start stretch; padding: 110px var(--gutter) 0; }
  .door-in { width: min(620px, 100%); }
}
@media (min-width: 761px) and (max-height: 700px) and (min-aspect-ratio: 9/10) {
  .hero { top: 116px; }
  .hero h1 { font-size: clamp(40px, 4.5vw, 62px); }
  .tag { margin-bottom: 16px; }
  .hero .sub { font-size: 15px; }
  .ask { margin-top: 20px; height: 52px; }
  .cue { margin-top: 12px; }
  .door h2 { font-size: 42px; }
  .door .body { font-size: 15px; }
}
.still .panel { min-height: 760px; }
.still.flat .panel canvas { display: none; }
@media (max-width: 760px), (max-aspect-ratio: 9/10) {
  .still.flat .panel .scene-still { left: 0; width: 100%; top: var(--scene-top, 440px); height: max(0px, calc(100% - var(--scene-top, 440px))); object-position: 74% center; mask-image: linear-gradient(#0000,#000 14%,#000 90%,#0000); }
}

/* the roadmap inside the footer box */
.road { margin: 4px 0 0; padding: 0; list-style: none; }
.road li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-top: 1px solid rgba(250, 248, 246, .2); }
.road li:first-child { border-top: 0; padding-top: 4px; }
.road b { font-weight: 500; font-size: 15px; }
.road .when { font: 500 10px/1.6 var(--ui); letter-spacing: 0.1em; text-transform: uppercase; opacity: .62; }
.road .what { grid-column: 1 / -1; font-size: 13.5px; line-height: 1.45; opacity: .7; }

@media (max-width: 760px) and (max-height: 740px) {
  .hero { top: 86px; }
  .tag { margin-bottom: 14px; }
  .hero h1 { font-size: clamp(30px, 8.8vw, 38px); }
  .hero .sub { margin-top: 12px; font-size: 13px; }
  .ask { margin-top: 16px; height: 46px; }
  .ask button { width: 34px; height: 34px; }
  .note { font-size: 9px; margin-top: 10px; }
  .cue { margin-top: 10px; }
  .door .body { font-size: 13px; line-height: 1.45; }
  .plans { margin-top: 16px; }
  .plans div { padding-top: 10px; padding-bottom: 10px; }
  .fine { margin-top: 12px; font-size: 10px; line-height: 1.45; }
}
