/* ==========================================================================
   tancode.dev - design system
   Theme: dark, corporate tech. One accent (orange) on a cool near-black base.
   Type: Geist (variable) + Geist Mono. Radius: buttons 10px, cards 16px, panels 22px, chips/tabs pill.
   Tokens are documented in CLAUDE.md; reuse them when adding components.
   ========================================================================== */
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0b0d12;
  --bg-2: #10131a;
  --bg-3: #161a23;
  --bg-4: #1d222d;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --text: #eceef3;
  --text-2: #b3b9c7;
  --muted: #7f8798;
  --accent: #e8843e;
  --accent-2: #f39554;
  --accent-ink: #17110a;
  --accent-soft: rgba(232, 132, 62, .13);
  --ok: #6fc796;
  --warn: #e6c05a;
  --r-btn: 10px;
  --r-card: 16px;
  --r-lg: 22px;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1180px;
  --gutter: 24px;
  --nav-h: 68px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow-lg: 0 30px 80px -24px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .04);
  --mx: 50%;
  --my: 50%;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Fine grain on a fixed, non-interactive layer for depth */
body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .028; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
img, svg { display: block; max-width: 100%; }
.sprite { display: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p, dl, dd, dt, ul { margin: 0; }
ul { padding: 0; list-style: none; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .92em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: var(--r-btn); z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(232, 132, 62, .35); }

/* Type */
h1 { font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.6rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.4rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; text-wrap: balance; }
h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.lead { font-size: clamp(1.05rem, .95rem + .5vw, 1.25rem); color: var(--text-2); line-height: 1.55; max-width: 34em; }
.eyebrow { font: 500 12.5px/1 var(--mono); color: var(--accent); letter-spacing: .06em; margin-bottom: 20px; display: inline-block; }
.sub { display: block; color: var(--muted); font-weight: 500; }
h1 .sub { font-size: .48em; letter-spacing: -.01em; line-height: 1.3; margin-top: 8px; }
.card-head .sub { font-size: .86em; font-weight: 500; margin-top: 3px; }
.section-intro { color: var(--text-2); margin-top: 10px; max-width: 52ch; font-size: 16.5px; }
.group-title { font-size: 1.25rem; margin: 8px 0 20px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 500; font-size: 14.5px; padding-bottom: 6px; transition: color .2s; }
.link-more svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.link-more:hover { color: var(--text); }
.link-more:hover svg { transform: translateX(3px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  padding: 12px 20px; border-radius: var(--r-btn); font-weight: 500; font-size: 15px; line-height: 1;
  border: 1px solid transparent; transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px -10px rgba(232, 132, 62, .55); }
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 10px 28px -10px rgba(232, 132, 62, .7); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { background: var(--bg-3); border-color: rgba(255, 255, 255, .24); }
.btn-sm { padding: 9px 14px; font-size: 14px; }
.btn-lg { padding: 15px 24px; font-size: 16px; }

/* Chips and tabs (pill) */
.chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-3); color: var(--text-2); font: 500 12.5px/1.3 var(--mono); white-space: nowrap; }
.chip-live { color: var(--ok); border-color: rgba(111, 199, 150, .3); }
.chip-beta, .chip-soon { color: var(--warn); border-color: rgba(230, 192, 90, .3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs { display: inline-flex; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text-2); white-space: nowrap; transition: background .25s var(--ease), color .25s var(--ease); }
.tab:hover { color: var(--text); }
.tab[aria-pressed="true"], .tab[aria-current="page"] { background: var(--bg-4); color: var(--text); }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgba(11, 13, 18, .72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.02em; color: var(--text); }
.brand .mark { color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { padding: 8px 12px; border-radius: var(--r-btn); font-size: 14.5px; font-weight: 500; color: var(--text-2); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-lang { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 13px !important; margin-left: 6px; }
.nav-lang svg { width: 15px; height: 15px; }
.nav-links .nav-cta { margin-left: 8px; color: var(--accent-ink); }
.nav-links .nav-cta:hover { background: var(--accent-2); color: var(--accent-ink); }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: var(--r-btn); border: 1px solid var(--line); align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .ic-close { display: none; }
.nav.is-open .nav-toggle .ic-close { display: block; }
.nav.is-open .nav-toggle .ic-open { display: none; }

/* Sections */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-tight { padding-top: 0; }
.section-alt { background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .018) 20%, rgba(255, 255, 255, .018) 80%, transparent); }
.section-head { margin-bottom: 36px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.page-head { padding-bottom: 28px; }
.page-head h1 { margin-bottom: 20px; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); }
.empty { color: var(--muted); padding: 40px 0; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 5vw, 72px) 0 clamp(28px, 4vw, 56px); }
.hero::before { content: ""; position: absolute; inset: -10% -10% 0; background:
  radial-gradient(42% 48% at 74% 42%, rgba(232, 132, 62, .16), transparent 70%),
  radial-gradient(30% 40% at 20% 90%, rgba(255, 255, 255, .035), transparent 70%);
  pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 56px); min-height: min(660px, calc(100dvh - var(--nav-h) - 32px)); }
.hero-copy > * + * { margin-top: 24px; }
.hero-copy .eyebrow { margin-bottom: 0; }
.hero-copy h1 { font-size: clamp(3rem, 2rem + 5.5vw, 6rem); }
.hero-copy .lead { max-width: 30em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 12px; }

/* Phone frames (real screenshots only). Frame thickness and corner radius scale with the phone's own width
   via container query units, so a 100px phone on mobile gets a thin frame and a 240px phone a 9px one. */
.phone { display: block; position: relative; isolation: isolate; border-radius: 42px; padding: 9px; background: #0e1016; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 34px; aspect-ratio: 9 / 19.5; }
@supports (width: 1cqw) {
  .phone { container-type: inline-size; padding: 0; background: none; border: 0; box-shadow: none; border-radius: 0; }
  .phone::before { content: ""; position: absolute; inset: -3.8cqw; z-index: -1; border-radius: 17.8cqw; background: #0e1016; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
  .phone img { border-radius: 14.4cqw; }
}

/* Hero composition: three phones in shallow 3D, pointer parallax via --px/--py */
.hero-visual { position: relative; height: clamp(440px, 46vw, 640px); perspective: 1600px; --px: 0; --py: 0; }
.hero-visual .phone { position: absolute; width: clamp(180px, 18.5vw, 236px); transition: transform .8s var(--ease); will-change: transform; }
.hero-visual .phone-1 { left: 0; top: 14%; z-index: 1; opacity: .92; transform: translate3d(calc(var(--px) * -10px), calc(var(--py) * -6px), 0) rotateY(calc(22deg + var(--px) * 4deg)) rotateX(calc(var(--py) * -3deg)) translateZ(-80px); }
.hero-visual .phone-2 { left: 50%; top: 0; z-index: 3; transform: translate3d(calc(-50% + var(--px) * 8px), calc(var(--py) * 8px), 0) rotateY(calc(var(--px) * 5deg)) rotateX(calc(var(--py) * -3deg)); }
.hero-visual .phone-3 { right: 0; top: 18%; z-index: 2; opacity: .92; transform: translate3d(calc(var(--px) * 12px), calc(var(--py) * -4px), 0) rotateY(calc(-22deg + var(--px) * 4deg)) rotateX(calc(var(--py) * -3deg)) translateZ(-80px); }
.hero-visual::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -6%; height: 24%; background: radial-gradient(50% 60% at 50% 50%, rgba(232, 132, 62, .22), transparent 70%); filter: blur(20px); pointer-events: none; }

/* Load-in (hero only) */
.js .hero-copy > * { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.js .hero-copy > :nth-child(2) { animation-delay: .08s; }
.js .hero-copy > :nth-child(3) { animation-delay: .16s; }
.js .hero-copy > :nth-child(4) { animation-delay: .24s; }
.js .hero-visual { opacity: 0; animation: fade 1.2s var(--ease) .25s forwards; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes fade { to { opacity: 1; } }

/* Logo strip */
.logos { padding: 8px 0 56px; }
.logos-title { font: 500 13px/1 var(--mono); color: var(--muted); margin-bottom: 26px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 64px; width: max-content; padding-right: 64px; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.logo { color: var(--muted); transition: color .3s; }
.logo svg { height: 28px; width: 28px; }
.logo:hover { color: var(--text); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Cards */
.card { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); transition: transform .5s var(--ease), border-color .3s var(--ease), background .3s; }
.card::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .4s; background: radial-gradient(520px circle at var(--mx) var(--my), rgba(232, 132, 62, .10), transparent 45%); }
.card:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--bg-3); }
.card:hover::before { opacity: 1; }
.card-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: radial-gradient(120% 100% at 15% 0%, color-mix(in srgb, var(--tint) 80%, #ffffff 20%) 0%, var(--tint) 42%, #0b0d12 100%); border-bottom: 1px solid var(--line); }
@supports not (background: color-mix(in srgb, red, blue)) { .card-cover { background: radial-gradient(120% 100% at 15% 0%, var(--tint) 0%, #0b0d12 100%); } }
.card-cover img { height: auto; }
.card-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 13, 18, .35), transparent 45%); pointer-events: none; }
.kind-phone .cover-shot { position: absolute; right: 7%; top: 15%; width: 40%; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 22px 50px -14px rgba(0, 0, 0, .85); transition: transform .6s var(--ease); }
.kind-phone .cover-shot-2 { right: 34%; top: 30%; width: 34%; opacity: .85; }
.kind-phone .cover-icon { position: absolute; left: 8%; top: 20%; width: 21%; border-radius: 23%; box-shadow: 0 16px 36px -10px rgba(0, 0, 0, .8); border: 1px solid rgba(255, 255, 255, .1); }
.card:hover .kind-phone .cover-shot { transform: translateY(-8px); }
.kind-web .cover-img { position: absolute; left: 8%; top: 10%; width: 100%; height: auto; border-radius: 10px 0 0 0; border: 1px solid rgba(255, 255, 255, .12); border-right: 0; border-bottom: 0; box-shadow: 0 22px 50px -14px rgba(0, 0, 0, .85); transition: transform .6s var(--ease); }
.card:hover .kind-web .cover-img { transform: translate(-6px, -6px); }
.card-lg .card-cover { aspect-ratio: auto; flex: 1; min-height: 340px; }
.card-lg .card-body { flex: 0 0 auto; }
.card-lg .card-body p { flex: none; }
.card-lg .kind-phone .cover-shot { width: 42%; right: 8%; top: auto; bottom: -10%; }
.card-lg .kind-phone .cover-shot-2 { width: 36%; right: 42%; top: auto; bottom: 6%; opacity: .9; }
.card-lg .kind-phone .cover-icon { width: 16%; left: 7%; top: 7%; }
.card-lg .kind-web .cover-img { left: 7%; top: 8%; width: 110%; }
.status { position: absolute; left: 14px; bottom: 12px; z-index: 1; padding: 4px 9px; border-radius: 999px; background: rgba(11, 13, 18, .75); border: 1px solid var(--line-2); font: 500 12px/1.2 var(--mono); color: var(--warn); }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 18px; flex: 1; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-head h3, .card-head h2 { font-size: 1.08rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.card-lg .card-head h3, .card-lg .card-head h2 { font-size: 1.3rem; }
.card-body p { color: var(--text-2); font-size: 14.5px; line-height: 1.55; flex: 1; }
.card-lg .card-body p { font-size: 15.5px; }
.card-meta { display: flex; align-items: center; justify-content: space-between; padding-top: 6px; color: var(--muted); }
.plat { display: inline-flex; align-items: center; gap: 8px; }
.plat svg { width: 16px; height: 16px; }
.plat-stack { font: 500 12px var(--mono); color: var(--muted); margin-left: 6px; }
.card-go { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); transition: background .3s, color .3s, border-color .3s; }
.card-go svg { width: 15px; height: 15px; }
.card:hover .card-go { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
/* Wide card: image left, text right */
.card-wide { flex-direction: row; }
.card-wide .card-cover { flex: 0 0 46%; aspect-ratio: auto; min-height: 220px; border-bottom: 0; border-right: 1px solid var(--line); }
.card-wide .kind-web .cover-img { left: 10%; top: 12%; }
.card-wide .card-body { padding: 24px 26px 22px; }
.card-wide .card-head h3, .card-wide .card-head h2 { font-size: 1.15rem; }

/* Grids */
.bento { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-auto-rows: minmax(0, 1fr); gap: 18px; }
.bento > :first-child { grid-row: span 2; }
.bento > * { min-width: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

/* Studio */
.studio-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.studio-in > * { min-width: 0; }
.studio-copy > p { color: var(--text-2); font-size: 16.5px; line-height: 1.7; margin-top: 18px; max-width: 58ch; }
.studio-copy h2 { max-width: 16ch; }
.stats { display: flex; flex-wrap: wrap; gap: 24px 40px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.stats > div { min-width: 0; }
.stats dt { font-size: 2.4rem; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.stats dd { color: var(--muted); font-size: 13.5px; margin-top: 8px; }
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service { padding: 28px 26px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .012), transparent); }
.service-ic { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: var(--r-btn); background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.service-ic svg { width: 21px; height: 21px; }
.service p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin-top: 8px; }

/* Contact */
.contact { padding-top: 0; }
.contact-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; padding: clamp(32px, 5vw, 64px); border: 1px solid var(--line); border-radius: var(--r-lg); background: radial-gradient(70% 120% at 100% 0%, var(--accent-soft), transparent 60%), var(--bg-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.contact-band p { color: var(--text-2); margin-top: 12px; max-width: 48ch; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.contact-actions .mono { color: var(--muted); font-size: 13.5px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .015)); }
.footer-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1fr); gap: 40px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-slogan { color: var(--accent); font: 500 12.5px var(--mono); letter-spacing: .06em; margin-bottom: 10px; }
.footer-desc { color: var(--muted); font-size: 14px; max-width: 34ch; line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-h { font: 500 12.5px var(--mono); color: var(--muted); margin-bottom: 6px; }
.footer-col a { color: var(--text-2); font-size: 14.5px; width: max-content; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-social { display: inline-flex; align-items: center; gap: 8px; }
.footer-social svg { width: 16px; height: 16px; color: var(--muted); }
.footer-base { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-base small:first-child { margin-right: auto; }
.footer-lang { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; transition: color .2s; }
.footer-lang svg { width: 14px; height: 14px; }
.footer-lang:hover { color: var(--text); }

/* Project detail */
.project { padding: 32px 0 clamp(64px, 8vw, 112px); }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 28px; transition: color .2s; }
.back:hover { color: var(--text); }
.back svg { width: 16px; height: 16px; }
.crumbs { margin-bottom: 26px; font-size: 13.5px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 4px; }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; }
.crumbs li + li::before { content: "/"; color: var(--line-2); margin: 0 6px; }
.crumbs a { color: var(--text-2); transition: color .2s; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }
.project-meta { margin-top: 14px; color: var(--muted); font-size: 13.5px; }
.project-meta a { color: var(--text-2); border-bottom: 1px solid var(--line-2); }
.project-meta a:hover { color: var(--text); }
.page-intro { margin: -8px 0 24px; }
.project-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px 28px; align-items: start; margin-bottom: 40px; }
.project-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
.project-icon { width: 92px; height: 92px; border-radius: 22px; border: 1px solid var(--line-2); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .8); }
.project-title .lead { margin-top: 12px; }
.project-title .chips { margin-top: 18px; }
.project-links { display: flex; flex-direction: column; gap: 10px; align-items: stretch; min-width: 180px; }
.stage { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); margin-bottom: clamp(40px, 6vw, 72px); }
.stage-web img { width: 100%; height: auto; }
.stage-phone { display: flex; justify-content: center; align-items: flex-start; gap: clamp(20px, 3vw, 40px); height: clamp(360px, 42vw, 560px); padding: clamp(28px, 5vw, 64px) clamp(20px, 4vw, 48px) 0; background: radial-gradient(90% 100% at 20% 0%, color-mix(in srgb, var(--tint) 80%, #fff 20%), var(--tint) 45%, #0b0d12 100%); }
.stage-phone .phone { width: clamp(150px, 20vw, 250px); flex: none; }
.stage-phone .phone:nth-child(2) { transform: translateY(-24px); }
.stage-phone .phone:nth-child(3) { transform: translateY(24px); }
.project-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(40px, 6vw, 80px); align-items: start; }
.prose p { color: var(--text-2); font-size: 16.5px; line-height: 1.72; max-width: 64ch; }
.prose p + p { margin-top: 18px; }
.prose .summary { color: var(--text); font-size: clamp(1.1rem, 1rem + .5vw, 1.32rem); line-height: 1.55; font-weight: 450; margin-bottom: 28px; }
.prose h2 { font-size: 1.35rem; margin: 44px 0 22px; }
.highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.highlight { display: flex; gap: 12px; align-items: flex-start; }
.hl-ic { display: inline-flex; width: 26px; height: 26px; flex: none; align-items: center; justify-content: center; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin-top: 1px; }
.hl-ic svg { width: 14px; height: 14px; }
.highlight h3 { font-size: 15.5px; }
.highlight p { font-size: 14.5px; color: var(--muted); margin-top: 4px; line-height: 1.55; max-width: none; }
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.faq dt { font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; }
.faq dd { margin: 6px 0 0; color: var(--text-2); font-size: 15px; line-height: 1.65; max-width: 64ch; }
.project-aside { position: sticky; top: calc(var(--nav-h) + 24px); }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; margin-bottom: 8px; }
.metric { padding: 16px 16px 14px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg-2); }
.metric b { display: block; font-size: 1.6rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.metric span { display: block; color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.aside-block { padding: 20px 0; border-top: 1px solid var(--line); }
.aside-block .aside-h { font: 500 12.5px/1 var(--mono); color: var(--muted); margin-bottom: 12px; letter-spacing: 0; }
.plain-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14.5px; color: var(--text-2); }
.plain-list svg { width: 16px; height: 16px; color: var(--muted); }
.plain-list a { display: inline-flex; align-items: center; gap: 10px; transition: color .2s; }
.plain-list a:hover { color: var(--text); }
.plain-list .ext { margin-left: auto; color: var(--muted); }
.screens { margin-top: clamp(48px, 7vw, 88px); }
.screens h2, .related h2 { font-size: 1.35rem; margin-bottom: 22px; }
.screens-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 0 16px; scrollbar-width: thin; scrollbar-color: var(--bg-4) transparent; }
.screens-track .phone { flex: 0 0 230px; scroll-snap-align: start; }
.screens-web img { flex: 0 0 min(80%, 640px); scroll-snap-align: start; border-radius: var(--r-card); border: 1px solid var(--line); }
.project-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: clamp(48px, 7vw, 88px); }
.pn { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg-2); transition: border-color .3s, background .3s; }
.pn:hover { border-color: var(--line-2); background: var(--bg-3); }
.pn span { display: inline-flex; align-items: center; gap: 6px; font: 500 12.5px var(--mono); color: var(--muted); }
.pn span svg { width: 14px; height: 14px; }
.pn strong { font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; }
.pn-next { text-align: right; align-items: flex-end; }
.related { margin-top: clamp(48px, 7vw, 88px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.notfound { padding: 48px 0 80px; max-width: 48ch; }
.notfound .mono { color: var(--accent); margin-bottom: 14px; }
.notfound p { color: var(--text-2); margin: 16px 0 28px; }

/* App sub-pages: invite, step code, download (partials/applanding) */
.applanding { padding-top: clamp(40px, 6vw, 72px); }
.applanding-in { max-width: 560px; text-align: center; }
.applanding-icon { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 18px; border: 1px solid var(--line-2); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .8); }
.applanding-app { font: 500 12.5px/1 var(--mono); color: var(--accent); letter-spacing: .06em; margin-bottom: 14px; }
.applanding h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }
.applanding-text { color: var(--text-2); margin-top: 14px; }
.applanding-code { font: 600 clamp(2rem, 1.4rem + 3vw, 2.6rem)/1.2 var(--mono); letter-spacing: .32em; margin: 14px 0 6px; padding-left: .32em; }
.applanding-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.applanding-note { color: var(--muted); font-size: 13.5px; margin-top: 32px; }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .js .hero-copy > *, .js .hero-visual, .js .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .hero-visual .phone { transition: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; gap: 32px 48px; }
  .marquee-track > [aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .card, .card:hover, .cover-shot, .cover-img { transition: none; transform: none; }
}

/* Responsive */
@media (max-width: 1100px) {
  .hero-visual .phone { width: clamp(160px, 20vw, 220px); }
}
@media (max-width: 1024px) {
  .grid-3 { gap: 14px; }
  .card-body { padding: 16px 18px; }
  .project-body { grid-template-columns: 1fr; }
  .project-aside { position: static; }
  .project-head { grid-template-columns: auto minmax(0, 1fr); }
  .project-links { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: var(--nav-h); flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 20px; background: rgba(11, 13, 18, .97); border-bottom: 1px solid var(--line); }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a { padding: 12px; font-size: 16px; }
  .nav-lang { margin: 0; }
  .nav-links .nav-cta { margin: 8px 0 0; }
  .hero-in { grid-template-columns: 1fr; min-height: 0; gap: 44px; }
  .hero-copy h1 { font-size: clamp(2.8rem, 2rem + 5vw, 4.4rem); }
  .hero-visual { height: auto; display: flex; justify-content: center; align-items: flex-end; gap: 14px; perspective: none; padding-bottom: 8px; }
  .hero-visual .phone { position: static; width: min(30%, 200px); transform: none; opacity: 1; }
  .hero-visual .phone-2 { width: min(34%, 220px); margin-bottom: 22px; }
  .hero-visual::after { display: none; }
  .bento { grid-template-columns: 1fr; }
  .bento > :first-child { grid-row: auto; }
  .card-lg .card-cover { aspect-ratio: 16 / 10; flex: none; min-height: 0; }
  .card-lg .kind-phone .cover-shot { width: 40%; right: 7%; top: 15%; bottom: auto; }
  .card-lg .kind-phone .cover-shot-2 { width: 34%; right: 34%; top: 30%; bottom: auto; }
  .card-lg .kind-phone .cover-icon { width: 21%; left: 8%; top: 20%; }
  .card-lg .kind-web .cover-img { left: 8%; top: 10%; width: 100%; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .studio-in { grid-template-columns: 1fr; }
  .contact-band { grid-template-columns: 1fr; }
  .stage-phone .phone:nth-child(3) { display: none; }
}
@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .grid-3, .highlights, .project-nav { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .card-wide { flex-direction: column; }
  .card-wide .card-cover { flex: none; aspect-ratio: 16 / 10; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .card-wide .card-body { padding: 18px 20px; }
  .stats { gap: 18px 28px; }
  .stats dt { font-size: 1.8rem; }
  .stats dd { font-size: 12.5px; }
  .hero-visual { gap: 18px; padding-bottom: 12px; }
  .hero-visual .phone { width: 38%; }
  .hero-visual .phone-2 { width: 44%; margin-bottom: 18px; }
  .hero-visual .phone-3 { display: none; }
  .section-head-row { align-items: flex-start; }
  .project-head { grid-template-columns: 1fr; }
  .project-icon { width: 72px; height: 72px; border-radius: 18px; }
  .project-links { flex-direction: column; }
  .project-links .btn { width: 100%; }
  .stage-phone { height: clamp(300px, 90vw, 420px); }
  .stage-phone .phone { width: 44%; }
  .stage-phone .phone:nth-child(2) { transform: translateY(-14px); }
  .footer-in { grid-template-columns: 1fr; gap: 28px; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-base small:first-child { margin-right: 0; }
  .pn-next { text-align: left; align-items: flex-start; }
}
