/* Udya Tech - restrained, product-first. One accent (sunrise amber), used sparingly. Font: Geist. */
:root {
  --bg: #09090b; --surface: #0f0f12; --surface-2: #141418; --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .14);
  --fg: #fafafa; --fg-2: #c4c4cc; --muted: #8b8b95;
  --accent: #f5a524; --accent-2: #ff7a30;
  --ok: #22c55e; --warn: #f5a524; --bad: #f04444;
  --radius: 14px; --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: Geist, Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; line-height: 1.55; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.mono { font-family: "Geist Mono", ui-monospace, monospace; }
.muted { color: var(--muted); }
::selection { background: rgba(245, 165, 36, .3); }

/* ---------- progress + nav ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.nav { position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(9, 9, 11, .78); backdrop-filter: saturate(1.6) blur(16px); border-color: var(--line); }
.nav-in { max-width: 1200px; margin: 0 auto; padding: 0 32px; height: 68px; display: flex; align-items: center; gap: 40px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -.01em; color: var(--fg); }
.mark { width: 24px; height: 24px; color: var(--fg); }
.links { display: flex; gap: 4px; }
.links a { position: relative; padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--muted); transition: color .2s, background .2s; }
.links a:hover { color: var(--fg); background: rgba(255, 255, 255, .04); }
.links a.active { color: var(--fg); }
.links a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px; background: var(--accent); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; background: transparent; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--fg); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn span:first-child { top: 15px; } .menu-btn span:last-child { top: 23px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }
.mobile-menu { display: none; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; font-weight: 500; white-space: nowrap;
  cursor: pointer; border: 1px solid transparent; transition: background .2s, border-color .2s, color .2s, box-shadow .2s, transform .25s var(--ease); }
.btn svg { width: 14px; height: 14px; fill: currentColor; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn-primary { background: var(--fg); color: #09090b; box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 8px 24px -8px rgba(255, 255, 255, .25); }
.btn-primary:hover { background: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 12px 32px -8px rgba(255, 255, 255, .35); }
.btn-ghost, .btn-dark { color: var(--fg); border-color: var(--line-2); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover, .btn-dark:hover { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .05); }
.btn:active { transform: scale(.98); }

/* ---------- type ---------- */
.eyebrow, .label { display: inline-block; margin: 0 0 16px; font-size: 13px; font-weight: 500; color: var(--accent); letter-spacing: .02em; }
h1 { margin: 0; font-size: clamp(42px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -.04em; font-weight: 600; }
h2 { margin: 0; font-size: clamp(32px, 4vw, 50px); line-height: 1.08; letter-spacing: -.035em; font-weight: 600; }
h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
p { color: var(--fg-2); }

/* split headline: each word rises in */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); }
.split.in .w > span { transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 0; overflow: hidden; }
.hero::before { content: ""; position: absolute; left: 50%; top: -420px; width: 1200px; height: 800px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .07), transparent); }
.hero-grid-bg { position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000, transparent 75%); }
.hero-in { position: relative; display: grid; grid-template-columns: 1fr 1.18fr; gap: 16px 48px; align-items: center; }
.hero-sub { margin: 24px 0 0; max-width: 520px; font-size: 18px; line-height: 1.6; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.cta-row.center { justify-content: center; }
.assure { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); }
.assure li { display: flex; align-items: center; gap: 6px; }
.assure svg, .cleared svg, .q-sign svg { width: 16px; height: 16px; fill: none; stroke: var(--ok); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-copy > * { opacity: 0; transform: translateY(14px); animation: up .9s var(--ease) forwards; }
.hero-copy > .eyebrow { animation-delay: .05s; } .hero-copy > h1 { opacity: 1; transform: none; animation: none; }
.hero-copy > .hero-sub { animation-delay: .45s; } .hero-copy > .cta-row { animation-delay: .6s; } .hero-copy > .assure { animation-delay: .75s; }
@keyframes up { to { opacity: 1; transform: none; } }

/* app window */
.app { position: relative; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 50px 100px -30px rgba(0, 0, 0, .9), 0 30px 80px -40px rgba(245, 165, 36, .18);
  opacity: 0; transform: translateY(24px) scale(.98); animation: up 1.1s var(--ease) .35s forwards; }
.app::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 30%); }
.app-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.dots { display: flex; gap: 6px; flex: none; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.app-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); }
.app-tabs button { padding: 5px 12px; font-size: 13px; font-weight: 500; color: var(--muted); background: none; border: 0; border-radius: 6px; cursor: pointer; transition: color .2s, background .2s; }
.app-tabs button:hover { color: var(--fg); }
.app-tabs button[aria-selected="true"] { color: var(--fg); background: rgba(255, 255, 255, .09); }
.app-file { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-body { overflow-x: auto; }
.grid { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.grid th { text-align: left; font-weight: 500; font-size: 11px; color: var(--muted); padding: 9px 10px; border-bottom: 1px solid var(--line); font-family: "Geist Mono", monospace; text-transform: uppercase; letter-spacing: .04em; }
.grid td { padding: 10px 10px; border-bottom: 1px solid rgba(255, 255, 255, .04); white-space: nowrap; color: var(--fg-2); transition: background .35s; }
.grid td:first-child { color: var(--fg); }
.grid .num { text-align: right; font-family: "Geist Mono", monospace; font-size: 12px; }
.grid th:first-child, .grid td:first-child { padding-left: 14px; }
.grid tr.scan td { background: rgba(255, 255, 255, .045); }
.grid tr.flag td { background: rgba(245, 165, 36, .06); }
.grid tr.flag.bad td { background: rgba(240, 68, 68, .06); }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st.wait { color: #5b5b63; } .st.ok { color: var(--ok); } .st.warn { color: var(--warn); } .st.bad { color: var(--bad); }
.app-foot { display: flex; align-items: center; gap: 16px; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--surface-2); }
.app-stats { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.app-stats b { color: var(--ok); font-variant-numeric: tabular-nums; font-weight: 600; }
.app-stats b.amber { color: var(--warn); }
.app-foot .btn { margin-left: auto; }
.app-foot .btn.running { pointer-events: none; opacity: .6; }


.tools { display: flex; align-items: center; gap: 32px; margin-top: 72px; padding-top: 28px; padding-bottom: 28px; border-top: 1px solid var(--line); }
.tools > span { flex: none; font-size: 13px; color: var(--muted); }
.marquee { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 56px; width: max-content; animation: slide 40s linear infinite; }
.marquee:hover ul { animation-play-state: paused; }
.marquee li { font-size: 18px; font-weight: 600; letter-spacing: -.02em; color: #6e6e78; transition: color .2s; }
.marquee li:hover { color: var(--fg); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- statement (scroll-lit words) ---------- */
.statement { padding: 140px 0; border-top: 1px solid var(--line); }
.scroll-words { margin: 0; max-width: 1000px; font-size: clamp(26px, 3.4vw, 44px); line-height: 1.25; letter-spacing: -.025em; font-weight: 500; color: var(--fg); }
.scroll-words .sw { color: rgba(250, 250, 250, .16); transition: color .25s; }
.scroll-words .sw.lit { color: var(--fg); }

/* ---------- how (sticky story) ---------- */
.how { padding: 120px 0; border-top: 1px solid var(--line); }
.story { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.story-steps { list-style: none; margin: 0; padding: 0; }
.step { padding: 36px 0 36px 28px; min-height: 52vh; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--line);
  position: relative; opacity: .35; transition: opacity .5s var(--ease); }
.step::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 1px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .6s var(--ease); }
.step.is-active { opacity: 1; }
.step.is-active::before { transform: scaleY(1); }
.step-n { font-size: 13px; color: var(--accent); margin-bottom: 14px; }
.step h3 { font-size: 26px; letter-spacing: -.025em; }
.step p { margin: 0; max-width: 420px; font-size: 17px; }
.story-stage { position: sticky; top: calc(50vh - 200px); height: 400px; }
.stage-card { position: relative; height: 340px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); }
.stage-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: 12px; color: var(--muted); }
.scene { position: absolute; inset: 41px 0 0; padding: 24px; opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .5s var(--ease), transform .6s var(--ease); pointer-events: none; }
.scene.is-on { opacity: 1; transform: none; }
.stage-dots { display: flex; gap: 6px; justify-content: center; margin-top: 18px; }
.stage-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .18); transition: width .4s var(--ease), background .4s; }
.stage-dots i.is-on { width: 22px; background: var(--accent); }

.drop { display: flex; align-items: center; justify-content: center; gap: 10px; height: 84px; border: 1.5px dashed var(--line-2); border-radius: 12px; font-size: 14px; color: var(--muted); }
.drop svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.files { margin-top: 16px; display: grid; gap: 8px; }
.file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; color: var(--fg);
  opacity: 0; transform: translateY(-10px); }
.file b { font-size: 10px; padding: 3px 6px; border-radius: 5px; color: var(--ok); background: rgba(34, 197, 94, .12); font-family: "Geist Mono", monospace; }
.file em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); }
.s0.is-on .file { animation: drop .6s var(--ease) forwards; }
.s0.is-on .file:nth-child(2) { animation-delay: .2s; } .s0.is-on .file:nth-child(3) { animation-delay: .4s; }
@keyframes drop { to { opacity: 1; transform: none; } }

.match-grid { display: grid; grid-template-columns: 1fr 90px 1fr; align-items: start; height: 100%; }
.mcol { display: grid; gap: 14px; }
.mh { font-size: 12px; color: var(--muted); font-family: "Geist Mono", monospace; margin-bottom: 2px; }
.mcol i { display: block; height: 26px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); }
.mcol i.m-miss { border-color: rgba(240, 68, 68, .5); background: rgba(240, 68, 68, .07); }
.mcol i.m-empty { border-style: dashed; background: transparent; }
.links-svg { width: 100%; height: 220px; }
.links-svg path { fill: none; stroke: var(--ok); stroke-width: 1.5; stroke-dasharray: 160; stroke-dashoffset: 160; }
.s1.is-on .links-svg path { animation: draw 1s var(--ease) forwards; }
.s1.is-on .links-svg path:nth-child(2) { animation-delay: .2s; } .s1.is-on .links-svg path:nth-child(3) { animation-delay: .4s; } .s1.is-on .links-svg path:nth-child(4) { animation-delay: .6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.exc { padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 10px; opacity: 0; transform: translateX(16px); }
.s2.is-on .exc { animation: slidein .6s var(--ease) forwards; } .s2.is-on .exc:nth-child(2) { animation-delay: .18s; }
@keyframes slidein { to { opacity: 1; transform: none; } }
.exc b { display: block; margin: 8px 0 2px; font-size: 14px; font-weight: 600; }
.exc small { font-size: 12.5px; color: var(--muted); }
.tag { font-size: 11.5px; font-weight: 500; padding: 3px 8px; border-radius: 6px; }
.tag.warn { color: var(--warn); background: rgba(245, 165, 36, .12); } .tag.bad { color: var(--bad); background: rgba(240, 68, 68, .12); }
.cleared { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--muted); }

.quote { padding: 6px 4px; }
.q-row { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.q-row span { color: var(--muted); }
.q-sign { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; font-weight: 500; color: var(--ok); }

/* ---------- generic blocks ---------- */
.block { padding: 120px 0; border-top: 1px solid var(--line); }

/* capabilities with tilt + spotlight */
.caps { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cap { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s var(--ease), border-color .3s; }
.cap::before, .work-card::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .07), transparent 60%); }
.cap:hover, .work-card:hover { border-color: var(--line-2); }
.cap:hover::before, .work-card:hover::before { opacity: 1; }
.cap p { margin: 0; font-size: 15px; }
.ico { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 20px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); transition: border-color .3s, background .3s; }
.ico svg { width: 20px; height: 20px; fill: none; stroke: var(--fg); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.cap:hover .ico { border-color: rgba(245, 165, 36, .5); background: rgba(245, 165, 36, .08); }
.cap:hover .ico svg { stroke: var(--accent); }

/* tabs with sliding ink */
.tabs { position: relative; margin-top: 48px; display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.tabs button { position: relative; z-index: 1; padding: 9px 16px; font-size: 14px; font-weight: 500; color: var(--muted); background: none; border: 0; border-radius: 8px; cursor: pointer; transition: color .25s; }
.tabs button:hover, .tabs button[aria-selected="true"] { color: var(--fg); }
.tab-ink { position: absolute; z-index: 0; top: 4px; left: 4px; width: 0; height: 36px; border-radius: 8px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line-2);
  transition: left .45s var(--ease), width .45s var(--ease), top .45s var(--ease), height .45s var(--ease); }
.tab-panel { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tp-card { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); opacity: 0; transform: translateY(10px); animation: up .5s var(--ease) forwards; }
.tp-card:nth-child(2) { animation-delay: .07s; } .tp-card:nth-child(3) { animation-delay: .14s; }
.tp-card h4 { margin: 0 0 16px; font-size: 13px; font-weight: 500; color: var(--muted); }
.tp-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.tp-card li { position: relative; padding-left: 20px; font-size: 15px; color: var(--fg-2); }
.tp-card li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: #4a4a52; }
.tp-card.auto li { color: var(--fg); }
.tp-card.auto li::before { background: var(--accent); }
.tp-card.out p { margin: 0; font-size: 17px; color: var(--fg); letter-spacing: -.01em; }
.tp-card.out .mono { display: inline-block; margin-top: 18px; font-size: 12px; color: var(--muted); padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); }

/* work */
.work { margin-top: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.work-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 18px; padding: 30px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease); }
a.work-card { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.work-top { display: flex; align-items: center; gap: 16px; }
.work-top h3 { margin: 0; }
.work-logo { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; font-weight: 700; font-style: italic; font-size: 17px; color: #d7f25a; background: #11160c; border: 1px solid var(--line-2); }
.work-kind { font-size: 13px; color: var(--muted); }
.work-go { margin-left: auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); transition: background .25s, transform .3s var(--ease); }
.work-go svg { width: 14px; height: 14px; fill: none; stroke: var(--fg); stroke-width: 1.8; stroke-linecap: round; }
a.work-card:hover .work-go { background: var(--fg); transform: rotate(45deg); }
a.work-card:hover .work-go svg { stroke: #09090b; }
.work-card > p { margin: 0; font-size: 15px; }
.work-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; }
.work-stats div { padding: 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.work-stats b { display: block; margin-bottom: 4px; font-size: 30px; font-weight: 600; letter-spacing: -.03em; color: var(--fg); }
.work-stats span { font-size: 13px; color: var(--muted); }
.work-next { justify-content: center; border-style: dashed; border-color: var(--line-2); background: transparent; }
.work-next h3 { margin: 0; font-size: 22px; }
.work-next .eyebrow { margin: 0; }
.text-link { display: inline-flex; gap: 8px; font-weight: 500; color: var(--fg); }
.text-link span { transition: transform .25s var(--ease); }
.text-link:hover span { transform: translateX(4px); }

/* about */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-body p { margin: 0 0 16px; font-size: 17px; }
.about-body em { color: var(--fg); font-style: normal; font-weight: 600; }
.founder-row { display: flex; align-items: center; gap: 14px; margin: 28px 0; }
.founder-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font-weight: 600; font-size: 15px; color: #09090b; background: var(--fg); }
.founder-row b { display: block; }
.founder-row span { font-size: 14px; color: var(--muted); }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; }

/* faq */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 17px; font-weight: 500; cursor: pointer; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #fff; }
.faq summary i { position: relative; flex: none; width: 14px; height: 14px; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1.5px; background: var(--muted); transition: transform .35s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.ans { overflow: hidden; }
.ans > p { margin: 0; padding-bottom: 22px; font-size: 15.5px; }
a.inline { color: var(--fg); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; }
a.inline:hover { text-decoration-color: var(--accent); }

/* final */
.final { position: relative; padding: 140px 0; border-top: 1px solid var(--line); text-align: center; overflow: hidden; }
.final::before { content: ""; position: absolute; left: 50%; bottom: -380px; width: 1000px; height: 600px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(245, 165, 36, .16), transparent); }
.final-in { position: relative; }
.final h2 { margin: 0 auto; max-width: 760px; }
.final p { margin: 18px auto 0; max-width: 520px; font-size: 17px; }
.final .cta-row { margin-top: 36px; }
.copy-btn .mono { font-size: 14px; }
.copy-lbl { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .08); color: var(--fg-2); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 56px 0 32px; font-size: 14px; }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { margin: 14px 0 0; color: var(--muted); line-height: 1.65; max-width: 380px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h4 { margin: 0 0 4px; font-size: 13px; font-weight: 500; }
.foot-col a { color: var(--muted); transition: color .2s; }
.foot-col a:hover { color: var(--fg); }
.copy { margin-top: 40px; font-size: 13px; color: var(--muted); }

/* legal pages */
.legal { max-width: 760px; padding-top: 80px; padding-bottom: 96px; }
.legal-h { font-size: clamp(40px, 6vw, 64px); }
.legal-date { margin: 12px 0 40px; font-size: 14px; color: var(--muted); }
.legal h2 { margin: 40px 0 12px; font-size: 22px; letter-spacing: -.02em; }
.legal p, .legal li { font-size: 16px; color: var(--fg-2); }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.legal b { color: var(--fg); font-weight: 600; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.cap.reveal.in, a.work-card.reveal.in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* ---------- motion + responsive ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .hero-copy > *, .app, .split .w > span { opacity: 1 !important; transform: none !important; }
  .scroll-words .sw { color: var(--fg); }
}
@media (max-width: 1040px) {
  .links { display: none; }
  .menu-btn { display: block; }
  .mobile-menu { display: grid; max-height: 0; overflow: hidden; padding: 0 24px; background: rgba(9, 9, 11, .97); border-bottom: 1px solid transparent; transition: max-height .4s var(--ease), padding .4s var(--ease); }
  .mobile-menu.open { max-height: 420px; padding: 8px 24px 20px; border-color: var(--line); }
  .mobile-menu a { padding: 13px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .hero-in { grid-template-columns: 1fr; gap: 20px; }
  .hero-copy { margin-bottom: 28px; }
  .app-note { grid-column: 1; text-align: left; }
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-stage { display: none; }
  .step { min-height: 0; opacity: 1; }
  .step::before { transform: scaleY(1); }
  .caps { grid-template-columns: 1fr 1fr; }
  .tab-panel, .work, .about, .faq-wrap { grid-template-columns: 1fr; }
  .about, .faq-wrap { gap: 32px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap, .nav-in { padding: 0 16px; }
  .nav-in { gap: 12px; }
  .hide-sm { display: none; }
  .hero { padding-top: 40px; }
  .hero-sub { font-size: 16.5px; }
  .cta-row .btn { flex: 1; }
  .app-file { display: none; }
  .grid { min-width: 0; font-size: 12.5px; }
  .grid th:nth-child(2), .grid td:nth-child(2), .grid th:nth-child(4), .grid td:nth-child(4) { display: none; }
  .grid td, .grid th { padding: 9px 10px; }
  .grid td:first-child { white-space: normal; }
  .tools { flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 56px; }
  .tools > span { font-size: 12px; }
  .marquee { width: 100%; }
  .statement { padding: 96px 0; }
  .how, .block { padding: 88px 0; }
  .caps { grid-template-columns: 1fr; }
  .work-stats { grid-template-columns: 1fr; }
  .final { padding: 104px 0; }
  .foot-in { grid-template-columns: 1fr; }
  .copy-btn { width: 100%; }
  .tabs { display: flex; }
}

/* ---------- company hero: sunrise horizon ---------- */
.hero { padding: 120px 0 0; text-align: center; }
.hero-in { display: block; max-width: 980px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 88px); line-height: 1; letter-spacing: -.045em; }
.hero .hero-sub { margin: 28px auto 0; max-width: 640px; font-size: 19px; }
.hero .cta-row { justify-content: center; margin-top: 40px; }
.hero-copy > *, .hero-in > .eyebrow, .hero-in > .hero-sub, .hero-in > .cta-row, .hero-in > .meta { opacity: 0; transform: translateY(14px); animation: up .9s var(--ease) forwards; }
.hero-in > .eyebrow { animation-delay: .05s; } .hero-in > .hero-sub { animation-delay: .55s; } .hero-in > .cta-row { animation-delay: .7s; } .hero-in > .meta { animation-delay: .85s; }
.horizon { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sun-arc { position: absolute; left: 50%; top: 66%; width: 1500px; height: 1500px; border-radius: 50%; transform: translateX(-50%) translateY(40px);
  border-top: 1px solid rgba(245, 165, 36, .55); box-shadow: 0 -30px 120px -40px rgba(245, 165, 36, .35) inset; animation: rise 2.4s var(--ease) .2s forwards; opacity: 0; }
.sun-glow { position: absolute; left: 50%; top: 58%; width: 900px; height: 320px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(245, 165, 36, .16), transparent); filter: blur(10px); opacity: 0; animation: glow 3s var(--ease) .6s forwards; }
@keyframes rise { to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes glow { to { opacity: 1; } }
.meta { margin: 72px auto 0; max-width: 820px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.meta div { padding: 18px 12px 0; border-right: 1px solid var(--line); }
.meta div:last-child { border-right: 0; }
.meta dt { font-size: 12px; color: var(--muted); }
.meta dd { margin: 4px 0 0; font-size: 15px; font-weight: 500; }
.hero .tools { margin-top: 96px; text-align: left; }

/* ---------- services ---------- */
.services { margin-top: 56px; border-top: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: 60px 1.2fr 1fr 40px; gap: 32px; align-items: center; padding: 36px 8px; border-bottom: 1px solid var(--line);
  transition: background .3s, padding .4s var(--ease); }
.svc:hover { background: rgba(255, 255, 255, .025); padding-left: 20px; padding-right: 20px; }
.svc-n { font-size: 14px; color: var(--accent); }
.svc h3 { font-size: 24px; letter-spacing: -.025em; }
.svc-main p { margin: 0; font-size: 16px; max-width: 520px; }
.svc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-list li { font-size: 13px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg-2); }
.svc-go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); transition: background .25s, transform .35s var(--ease); }
.svc-go svg { width: 15px; height: 15px; fill: none; stroke: var(--fg); stroke-width: 1.8; stroke-linecap: round; }
.svc:hover .svc-go { background: var(--fg); transform: rotate(45deg); }
.svc:hover .svc-go svg { stroke: #09090b; }

/* ---------- showcase (demo, lower on the page) ---------- */
.showcase { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.showcase-copy p { font-size: 16.5px; }
.showcase-copy b { color: var(--fg); }
.small { font-size: 13.5px !important; }
.showcase .app { animation: none; opacity: 1; transform: none; }

@media (max-width: 1040px) {
  .showcase { grid-template-columns: 1fr; gap: 32px; }
  .svc { grid-template-columns: 44px 1fr 40px; }
  .svc-list { grid-column: 2; }
  .svc-go { grid-column: 3; grid-row: 1; }
}
@media (max-width: 640px) {
  .hero { padding-top: 64px; }
  .hero .hero-sub { font-size: 16.5px; }
  .meta { grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .meta div:nth-child(2) { border-right: 0; }
  .meta div:nth-child(n+3) { border-top: 1px solid var(--line); padding-bottom: 16px; }
  .svc { grid-template-columns: 1fr 40px; gap: 14px; padding: 28px 0; }
  .svc-n { grid-column: 1; }
  .svc-main, .svc-list { grid-column: 1 / -1; }
  .svc-go { grid-column: 2; grid-row: 1; }
  .hero .tools { margin-top: 64px; }
}

/* hero brand lockup: logo above, larger label */
.hero-logo { display: block; width: 80px; height: 80px; margin: 0 auto 26px; border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .10), 0 0 70px 6px rgba(52, 46, 160, .55), 0 22px 50px -14px rgba(245, 165, 36, .40);
  opacity: 0; transform: translateY(10px) scale(.94); animation: up .9s var(--ease) forwards; }
.hero-eyebrow { font-size: 16px; font-weight: 500; letter-spacing: .01em; margin-bottom: 22px; }
@media (max-width: 640px) { .hero-logo { width: 62px; height: 62px; border-radius: 17px; } .hero-eyebrow { font-size: 14.5px; } }

.hero::after { content: ""; position: absolute; left: 50%; top: 40px; width: 520px; height: 300px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(52, 46, 160, .22), transparent); }
.hero-in { z-index: 1; }
