/* Nara website: shared styles. Tokens from the Nara design system (sapphire dark). */
:root {
  --canvas: #0B0C11; --surface: #14161E; --ink: #FFFFFF; --ink-2: #EAEBEE; --secondary: #B8BCC4; --muted: #8B8F9A; --faint: #6F7480;
  --electric: #2547FF; --hair: rgba(255,255,255,0.08);
  --display: 'Figtree', system-ui, sans-serif; --ui: 'Inter', system-ui, sans-serif; --serif: 'Figtree', system-ui, sans-serif; /* Fraunces retired 2026-11-08: no serif anywhere */
  --spring: cubic-bezier(.34,1.56,.64,1); --reveal: cubic-bezier(.2,1,.3,1);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--canvas); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { color: var(--ink-2); font-family: var(--display); font-weight: 400; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: var(--ink-2); text-decoration: none; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
img { display: block; max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #07080B; padding: 10px 14px; border-radius: 10px; font: 600 14px var(--ui); }
.skip:focus { top: 12px; color: #07080B; }

/* wordmark: the shell and lowercase "nara" in Figtree Medium (assets/brand/README.md). The markup still
   carries the old diamond after the name; it is hidden here, so no page needed editing. */
.mark { display: inline-flex; align-items: center; gap: 7px; }
.mark::before { content: ''; width: 20px; height: 20px; flex: none; background: url('/assets/brand/logo/nara-shell-128.webp') center / contain no-repeat; }
.mark b { font: 500 18px/1 var(--display); letter-spacing: -0.0136em; color: var(--ink); }
.mark .dia { display: none; }
.dia { display: inline-block; width: 5px; height: 5px; background: var(--electric); transform: rotate(45deg); flex: none; }

/* pill nav, same on every page */
.nav { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 2px; padding: 6px 6px 6px 18px; border-radius: 999px; background: rgba(22,24,32,0.58); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); border: 1px solid var(--hair); box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 12px 30px -12px rgba(0,0,0,0.6); max-width: calc(100vw - 24px); }
.nav .mark { margin-right: 10px; }
.nav a.l { color: var(--secondary); font: 500 13px var(--ui); padding: 9px 11px; border-radius: 999px; white-space: nowrap; }
.nav a.l:hover, .nav a.l[aria-current="page"] { background: rgba(255,255,255,0.06); color: var(--ink); }
.nav a.cta { margin-left: 4px; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.08); color: var(--ink); font: 600 13px var(--ui); padding: 9px 16px; border-radius: 999px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.2); white-space: nowrap; }
.nav a.cta:hover { background: rgba(255,255,255,0.12); }
.nav a.cta .dia { background: var(--ink); width: 5.7px; height: 5.7px; }
@media (max-width: 440px) { .nav .hide-m { display: none; } }
@media (max-width: 520px) { .nav { padding-left: 14px; } .nav .mark { margin-right: 4px; } .nav a.l { padding: 9px 8px; font-size: 12.5px; } .nav .hide-s { display: none; } .nav a.cta { padding: 9px 12px; } }
/* narrow phones (360px Androids, 320px): the pill has to fit inside the screen */
@media (max-width: 400px) { .nav { gap: 0; padding: 5px 5px 5px 12px; max-width: calc(100vw - 12px); } .nav a.l { padding: 9px 6px; font-size: 12px; } .nav a.cta { margin-left: 2px; padding: 9px 11px; gap: 6px; font-size: 12.5px; } }
@media (max-width: 340px) { .nav a.cta .dia { display: none; } .nav a.l { padding: 9px 5px; } }
/* touch: links keep their look, but the area that takes a tap is at least 44px tall */
@media (pointer: coarse) { .nav a.l, .nav a.cta, .foot a { position: relative; } .nav a.l::after, .nav a.cta::after { content: ''; position: absolute; inset: -7px 0; } .foot a::after { content: ''; position: absolute; inset: -14px -8px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--electric); color: var(--ink); font: 600 15px var(--ui); padding: 16px 26px; border-radius: 999px; border: 0; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 16px 40px -14px rgba(37,71,255,0.7); transition: transform .35s var(--spring), filter .2s; }
.btn:hover { color: var(--ink); filter: brightness(1.12); }
.btn:active { transform: scale(1.04); }
.btn.ghost { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); box-shadow: inset 0 1px 0 rgba(255,255,255,0.16); }
.link-u { display: inline-flex; align-items: center; gap: 12px; font: 600 clamp(20px, 1.8vw, 24px) var(--display); color: var(--ink); padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,0.3); }
.link-u:hover { border-bottom-color: var(--ink); }
.link-u .dia { width: 8px; height: 8px; }

/* type */
.d1 { margin: 0; font: 600 clamp(44px, 6.6vw, 108px)/1 var(--display); letter-spacing: -0.04em; color: var(--ink); }
.d2 { margin: 0; font: 600 clamp(40px, 6vw, 96px)/0.96 var(--display); letter-spacing: -0.04em; color: var(--ink); text-wrap: balance; }
.lead { margin: 0; max-width: 460px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.body { margin: 0; max-width: 520px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--secondary); text-wrap: pretty; }
.serif-i { font-style: italic; font-weight: 700; }

/* pinned scenes: a tall section with a 100vh sticky child; --p in [0,1] is written each frame */
[data-pin] { position: relative; --p: 0; }
[data-pin] > .stick { position: sticky; top: 0; height: 100vh; height: 100svh; }
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 6vw; }

/* footer */
.foot { border-top: 1px solid rgba(255,255,255,0.06); }
.foot .in { max-width: 1240px; margin: 0 auto; padding: 32px 6vw; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font: 500 13px var(--ui); color: var(--faint); }
.foot .in > div { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }

/* phone frame */
.phone { height: min(62vh, 660px, 118vw); aspect-ratio: 9/19.5; border-radius: 40px; overflow: hidden; background: #07080B; border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 50px 120px -30px var(--glow, rgba(37,71,255,0.38)), inset 0 0 0 6px #050608; position: relative; justify-self: center; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* reveal on enter */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform 1s var(--reveal); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* forms */
.field { flex: 1 1 220px; min-width: 0; appearance: none; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,0.25); border-radius: 0; padding: 14px 2px; font: 400 18px var(--display); color: var(--ink); outline: none; }
.field:focus { border-bottom-color: var(--electric); }
.field::placeholder { color: var(--faint); }

/* dark, thin scroll bars everywhere (the browser default is a light bar with a white track) */
html { color-scheme: dark; }
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.16) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.14); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.28); border: 3px solid transparent; background-clip: padding-box; }
