:root {
  --paper: #f3efe7;
  --paper-2: #ebe5d8;
  --ink: #141413;
  --ink-2: #2b2a26;
  --muted: #6f6a60;
  --muted-light: #a8a397;
  --line: rgba(20, 20, 19, 0.14);
  --line-light: rgba(243, 239, 231, 0.16);
  --accent: #ff5a1f;
  --accent-deep: #e0460f;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: inherit; }
ul { list-style: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Grain overlay for a printed, tactile feel */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.05;
  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='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Intro curtain ---------- */
.intro {
  position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--paper);
  display: flex; align-items: flex-end; padding: var(--gutter);
}
.intro-inner { width: 100%; display: flex; justify-content: space-between; align-items: flex-end; }
.intro-mark { font-family: var(--serif); font-size: clamp(28px, 4vw, 48px); }
.intro-count { font-family: var(--mono); font-size: clamp(48px, 10vw, 140px); line-height: 0.8; color: var(--accent); }
.intro.done { display: none; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: color 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform 0.55s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn-sm { height: 42px; padding: 0 20px; font-size: 14px; }
.btn-full { width: 100%; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink::before { background: var(--accent); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent::before { background: var(--ink); }
.contact .btn-accent::before, .plan-card .btn-accent::before { background: var(--paper); }
.contact .btn-accent:hover, .plan-card .btn-accent:hover { color: var(--ink); }
.btn-line { border: 1px solid var(--ink); color: var(--ink); }
.btn-line::before { background: var(--ink); }
.btn-line:hover { color: var(--paper); }
/* Text roll on hover */
.roll { display: inline-block; overflow: hidden; height: 1.3em; line-height: 1.3; }
.roll > span { display: block; transition: transform 0.55s var(--ease-out); }
.btn:hover .roll > span { transform: translateY(-100%); }
.btn-arrow { display: inline-block; transition: transform 0.55s var(--ease-out); }
.btn:hover .btn-arrow { transform: rotate(45deg); }

/* Underline link */
.ulink { position: relative; }
.ulink::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-out);
}
.ulink:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 18px var(--gutter);
  transition: transform 0.6s var(--ease-out), background 0.4s, padding 0.4s;
}
.nav.scrolled { background: rgba(243, 239, 231, 0.82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.nav.hidden { transform: translateY(-100%); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; justify-self: start; }
.logo-mark { position: relative; width: 26px; height: 26px; }
.logo-mark i { position: absolute; width: 16px; height: 22px; border-radius: 5px; border: 2px solid var(--ink); top: 2px; transition: transform 0.5s var(--ease-out), border-color 0.4s; }
.logo-mark i:first-child { left: 0; }
.logo-mark i:last-child { left: 9px; background: var(--accent); border-color: var(--accent); }
.logo:hover .logo-mark i:first-child { transform: translateX(-2px) rotate(-8deg); }
.logo:hover .logo-mark i:last-child { transform: translateX(2px) rotate(8deg); }
.nav-links { display: flex; gap: 32px; font-size: 14px; }
.nav-cta { justify-self: end; }
.menu-btn { display: none; justify-self: end; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); position: relative; z-index: 2; }
.menu-btn span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--paper); transition: transform 0.5s var(--ease-out); }
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between; padding: 110px var(--gutter) 40px;
  clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path 0.8s var(--ease), visibility 0s 0.8s;
}
.menu.open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.8s var(--ease); }
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  display: flex; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line-light);
  font-family: var(--serif); font-size: clamp(40px, 11vw, 64px); line-height: 1.1;
  transform: translateY(30px); opacity: 0; transition: transform 0.8s var(--ease-out), opacity 0.8s var(--ease-out);
}
.menu nav a small { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.menu.open nav a { transform: none; opacity: 1; }
.menu.open nav a:nth-child(1) { transition-delay: 0.2s; } .menu.open nav a:nth-child(2) { transition-delay: 0.25s; }
.menu.open nav a:nth-child(3) { transition-delay: 0.3s; } .menu.open nav a:nth-child(4) { transition-delay: 0.35s; }
.menu.open nav a:nth-child(5) { transition-delay: 0.4s; }
.menu-mail { font-size: 16px; color: var(--muted-light); }
.nav.menu-open { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav.menu-open .logo { color: var(--paper); }
.nav.menu-open .logo-mark i:first-child { border-color: var(--paper); }
.nav.menu-open .menu-btn { background: var(--paper); }
.nav.menu-open .menu-btn span { background: var(--ink); }

/* ---------- Shared type ---------- */
.label { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 20px; }
.label.light { color: var(--muted-light); }
.h2 { font-size: clamp(36px, 5.6vw, 80px); line-height: 1; font-weight: 500; letter-spacing: -0.035em; }
.section { padding: clamp(96px, 14vw, 180px) var(--gutter) 0; max-width: 1440px; margin: 0 auto; }
.section-head { max-width: 860px; margin-bottom: clamp(48px, 7vw, 88px); }
.section-sub { color: var(--muted); font-size: 18px; max-width: 520px; margin-top: 24px; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.w > span { display: inline-block; }

/* ---------- Hero ---------- */
main { overflow-x: clip; }
.hero {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center;
  min-height: min(100svh, 980px); padding: 120px var(--gutter) 64px; max-width: 1440px; margin: 0 auto;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 28px; }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--accent); animation: ping 2s var(--ease-out) infinite; }
@keyframes ping { from { transform: scale(0.6); opacity: 1; } to { transform: scale(2); opacity: 0; } }
.hero-title { font-size: clamp(44px, 5.6vw, 92px); line-height: 0.95; font-weight: 500; letter-spacing: -0.045em; margin-bottom: 32px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .line > span { display: inline-block; }
.hero-title em { color: var(--accent); letter-spacing: -0.02em; }
.hero-sub { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 500px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 56px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); max-width: 640px; }
.hero-stats li + li { border-left: 1px solid var(--line); }
.hero-stats a { display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 4px 0; height: 100%; }
.hero-stats li + li a { padding-left: 20px; }
.hero-stats strong { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; transition: color 0.3s, transform 0.5s var(--ease-out); }
.hero-stats a > span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.hero-stats a:hover strong { color: var(--accent); transform: translateX(4px); }

/* Phones */
.hero-visual { position: relative; height: 640px; }
.phones { position: absolute; inset: 0; }
.phone {
  position: absolute; top: 50%; left: 50%; width: 236px; height: 486px; margin: -243px 0 0 -118px;
  border-radius: 40px; padding: 9px; background: var(--ink);
  box-shadow: 0 1px 0 1px #3a3935 inset, 0 50px 80px -30px rgba(20, 20, 19, 0.45), 0 20px 30px -20px rgba(20, 20, 19, 0.3);
  will-change: transform;
}
.p-left { transform: translate(-50%, 5%) rotate(-8deg); }
.p-right { transform: translate(50%, 5%) rotate(8deg); }
.p-center { transform: translateY(-4%); z-index: 2; }
.ph-screen { position: relative; height: 100%; border-radius: 32px; overflow: hidden; padding: 14px 16px; font-size: 11px; display: flex; flex-direction: column; gap: 8px; }
.ph-cream { background: #fbf8f2; color: var(--ink); }
.ph-ink { background: #1d1c1a; color: var(--paper); }
.ph-status { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; font-weight: 500; padding: 0 6px 10px; opacity: 0.8; }
.ph-kicker { font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.ph-kicker.light { color: var(--muted-light); }
.ph-h { font-family: var(--serif); font-size: 26px; line-height: 1; margin-bottom: 6px; }
.ph-ring-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--ink); color: var(--paper); margin-bottom: 4px; }
.ph-ring-card b { display: block; font-size: 15px; font-weight: 600; }
.ph-ring-card small { color: var(--muted-light); }
.ph-ring { width: 44px; height: 44px; transform: rotate(-90deg); }
.ph-ring circle { fill: none; stroke: rgba(255, 255, 255, 0.15); stroke-width: 5; }
.ph-ring .fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 113; stroke-dashoffset: 28; }
.ph-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid rgba(20, 20, 19, 0.06); font-weight: 500; }
.ph-item i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line); flex-shrink: 0; }
.ph-item.done i { background: var(--accent); border-color: var(--accent); }
.ph-item span { margin-left: auto; color: var(--muted); font-weight: 400; }
.ph-art { position: relative; aspect-ratio: 1; border-radius: 18px; background: var(--accent); overflow: hidden; margin: 6px 0 8px; }
.ph-art span { position: absolute; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.5); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.ph-art span:nth-child(1) { width: 40%; height: 40%; background: var(--ink); border: 0; }
.ph-art span:nth-child(2) { width: 70%; height: 70%; }
.ph-art span:nth-child(3) { width: 100%; height: 100%; }
.ph-track { font-family: var(--serif); font-size: 22px; line-height: 1; }
.ph-artist { color: var(--muted-light); }
.ph-scrub { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.15); margin-top: 6px; }
.ph-scrub i { display: block; height: 100%; width: 36%; border-radius: inherit; background: var(--paper); animation: scrub 12s linear infinite; }
@keyframes scrub { from { width: 30%; } to { width: 70%; } }
.ph-times { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9px; color: var(--muted-light); }
.ph-controls { display: flex; justify-content: center; align-items: center; gap: 26px; font-size: 16px; margin: 4px 0; }
.ph-controls b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 13px; }
.ph-eq { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 24px; margin-top: auto; }
.ph-eq i { width: 3px; height: 30%; background: var(--accent); border-radius: 2px; animation: eq 1.1s ease-in-out infinite alternate; }
.ph-eq i:nth-child(3n) { animation-duration: 0.8s; } .ph-eq i:nth-child(4n+1) { animation-duration: 1.4s; } .ph-eq i:nth-child(5n+2) { animation-delay: -0.5s; }
@keyframes eq { to { height: 100%; } }
.ph-amount { font-family: var(--serif); font-size: 34px; line-height: 1; }
.ph-delta { color: #1f8a4c; font-weight: 500; }
.ph-chart { display: flex; align-items: flex-end; gap: 6px; height: 110px; padding: 10px; border-radius: 14px; background: #fff; border: 1px solid rgba(20, 20, 19, 0.06); margin: 4px 0; }
.ph-chart i { flex: 1; height: var(--h); background: var(--paper-2); border-radius: 4px; }
.ph-chart i.hi { background: var(--ink); }
.ph-row { display: flex; align-items: center; gap: 8px; padding: 6px 2px; border-bottom: 1px solid rgba(20, 20, 19, 0.07); font-weight: 500; }
.ph-row i { width: 8px; height: 8px; border-radius: 2px; }
.ph-row .c1 { background: var(--accent); } .ph-row .c2 { background: var(--ink); } .ph-row .c3 { background: #c9bfa9; }
.ph-row span { margin-left: auto; font-family: var(--mono); font-size: 10px; }
.hero-caption { position: absolute; bottom: 0; right: 0; font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; padding: 26px 0; margin-top: 40px; }
.marquee-track { display: flex; align-items: center; gap: 40px; width: max-content; font-family: var(--serif); font-size: clamp(32px, 4.5vw, 64px); line-height: 1; white-space: nowrap; animation: marquee 40s linear infinite; }
.marquee-track b { color: var(--accent); font-size: 0.5em; font-weight: 400; }
.js-anim .marquee-track { animation: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Services ---------- */
.services { border-top: 1px solid var(--ink); }
.svc {
  position: relative; width: 100%; display: grid; align-items: center; gap: 24px;
  grid-template-columns: 60px minmax(200px, 1.1fr) 1.4fr auto 56px;
  padding: 30px 8px; border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: color 0.5s var(--ease-out), padding 0.5s var(--ease-out);
}
.svc::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  clip-path: inset(100% 0 0 0); transition: clip-path 0.6s var(--ease-out);
}
.svc:hover, .svc:focus-visible { color: var(--paper); padding-left: 24px; padding-right: 24px; }
.svc:hover::before, .svc:focus-visible::before { clip-path: inset(0 0 0 0); }
.svc-num { font-family: var(--mono); font-size: 13px; color: var(--muted); transition: color 0.5s; }
.svc-title { font-size: clamp(26px, 3vw, 42px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.svc-desc { color: var(--muted); font-size: 16px; max-width: 420px; transition: color 0.5s; }
.svc-tags { display: flex; gap: 6px; }
.svc-tags i { font-style: normal; font-family: var(--mono); font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); transition: border-color 0.5s; white-space: nowrap; }
.svc-go {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); font-size: 18px;
  transition: background 0.5s var(--ease-out), border-color 0.5s, transform 0.6s var(--ease-out), color 0.5s;
}
.svc:hover .svc-num, .svc:hover .svc-desc { color: var(--muted-light); }
.svc:hover .svc-tags i { border-color: var(--line-light); }
.svc:hover .svc-go { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(45deg); }

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; transition: visibility 0s 0.75s; }
.drawer.open { visibility: visible; transition: none; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(20, 20, 19, 0.45); opacity: 0; transition: opacity 0.6s var(--ease); cursor: pointer; }
.drawer.open .drawer-scrim { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(640px, 100%);
  background: var(--paper); overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); transition: transform 0.75s var(--ease);
}
.drawer.open .drawer-panel { transform: none; }
.drawer-close {
  position: sticky; top: 20px; float: right; margin: 20px 20px 0 0; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--paper); text-align: center;
  transition: transform 0.5s var(--ease-out), background 0.3s;
}
.drawer-close:hover { transform: rotate(90deg); background: var(--accent); }
.drawer-body { padding: 40px clamp(24px, 5vw, 56px) 56px; }
.drawer-body > * { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.drawer.open .drawer-body > * { opacity: 1; transform: none; }
.drawer.open .drawer-body > *:nth-child(1) { transition-delay: 0.2s; } .drawer.open .drawer-body > *:nth-child(2) { transition-delay: 0.25s; }
.drawer.open .drawer-body > *:nth-child(3) { transition-delay: 0.3s; } .drawer.open .drawer-body > *:nth-child(4) { transition-delay: 0.35s; }
.drawer.open .drawer-body > *:nth-child(5) { transition-delay: 0.4s; } .drawer.open .drawer-body > *:nth-child(6) { transition-delay: 0.45s; }
.drawer.open .drawer-body > *:nth-child(7) { transition-delay: 0.5s; } .drawer.open .drawer-body > *:nth-child(8) { transition-delay: 0.55s; }
.d-num { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-bottom: 14px; }
.d-title { font-size: clamp(40px, 6vw, 64px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; margin-bottom: 20px; }
.d-lead { font-size: 19px; color: var(--ink-2); margin-bottom: 36px; }
.d-block { padding: 24px 0; border-top: 1px solid var(--line); }
.d-block h4 { font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 14px; }
.d-list li { display: flex; gap: 12px; padding: 7px 0; font-size: 16px; }
.d-list li::before { content: "→"; color: var(--accent); }
.d-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.d-chips span { font-family: var(--mono); font-size: 13px; padding: 7px 12px; border-radius: 999px; background: var(--paper-2); }
.d-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.d-meta div { padding: 18px; border-radius: 16px; background: var(--ink); color: var(--paper); }
.d-meta small { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-light); margin-bottom: 6px; }
.d-meta b { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; }
.d-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 32px; }

/* ---------- Process ---------- */
.process { background: var(--ink); color: var(--paper); margin-top: clamp(96px, 14vw, 180px); overflow: hidden; }
.process-pin { display: flex; flex-direction: column; justify-content: center; min-height: 100svh; padding: clamp(96px, 10vw, 140px) 0 80px; }
.process-head { padding: 0 var(--gutter); margin: 0 auto 56px; max-width: 1440px; width: 100%; }
.process .label { color: var(--muted-light); }
.process .h2 em { color: var(--accent); }
.process-progress { height: 1px; background: var(--line-light); margin-top: 40px; }
.process-progress i { display: block; height: 100%; width: 0; background: var(--accent); }
.process-track { display: flex; gap: 20px; padding: 0 var(--gutter); width: max-content; }
.no-pin .process-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.step {
  flex: 0 0 auto; width: clamp(300px, 30vw, 420px); min-height: 400px; scroll-snap-align: start;
  display: flex; flex-direction: column; padding: 32px; border-radius: 24px; border: 1px solid var(--line-light);
  transition: background 0.5s var(--ease-out), border-color 0.5s, transform 0.6s var(--ease-out);
}
.step:hover { background: var(--ink-2); border-color: rgba(255, 90, 31, 0.6); transform: translateY(-6px); }
.step-num { font-family: var(--serif); font-size: 96px; line-height: 0.8; color: var(--accent); margin-bottom: auto; padding-bottom: 40px; }
.step h3 { font-size: 34px; font-weight: 500; letter-spacing: -0.03em; margin-bottom: 12px; }
.step p { color: var(--muted-light); margin-bottom: 24px; }
.step ul { border-top: 1px solid var(--line-light); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.step li::before { content: "✓"; color: var(--accent); margin-right: 10px; }

/* ---------- Planner ---------- */
.planner { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.planner-form { display: flex; flex-direction: column; }
fieldset { border: 0; padding: 28px 0; border-top: 1px solid var(--line); min-width: 0; }
fieldset:last-child { border-bottom: 1px solid var(--line); }
legend { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 18px; float: left; width: 100%; }
legend + * { clear: both; }
legend span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--ink); font-family: var(--mono); font-size: 12px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px; background: transparent;
  transition: background 0.35s var(--ease-out), color 0.35s, border-color 0.35s, transform 0.2s;
}
.opt:hover { border-color: var(--ink); }
.opt:active { transform: scale(0.96); }
.opt.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.opts[data-group="features"] .opt.on::before { content: "✓ "; color: var(--accent); }
.opts.dark .opt { border-color: var(--line-light); color: var(--paper); }
.opts.dark .opt:hover { border-color: var(--paper); }
.opts.dark .opt.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.plan-card { position: sticky; top: 100px; padding: 32px; border-radius: 28px; background: var(--ink); color: var(--paper); }
.plan-label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-light); }
.plan-weeks { font-family: var(--serif); font-size: clamp(64px, 7vw, 96px); line-height: 1; margin: 12px 0 8px; font-variant-numeric: tabular-nums; }
.plan-weeks small { font-family: var(--sans); font-size: 18px; color: var(--muted-light); }
.plan-approach { color: var(--paper); font-size: 16px; margin-bottom: 24px; min-height: 3em; }
.plan-bar { display: flex; gap: 3px; height: 12px; margin-bottom: 12px; }
.plan-bar i { border-radius: 3px; transition: flex-grow 0.8s var(--ease-out); }
.b-design { background: #c9bfa9; } .b-build { background: var(--accent); } .b-test { background: #f3efe7; } .b-launch { background: #7a756a; }
.plan-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted-light); margin-bottom: 24px; }
.plan-legend li { display: flex; align-items: center; gap: 6px; }
.plan-legend i { width: 10px; height: 10px; border-radius: 2px; }
.plan-summary { font-size: 14px; color: var(--muted-light); padding: 16px 0; border-top: 1px solid var(--line-light); margin-bottom: 20px; }
.plan-summary b { color: var(--paper); font-weight: 500; }
.plan-note { font-size: 12px; color: var(--muted-light); text-align: center; margin-top: 14px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid .section-head { position: sticky; top: 120px; }
.faq { border-top: 1px solid var(--ink); }
.qa { border-bottom: 1px solid var(--line); }
.q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-size: clamp(18px, 1.8vw, 22px); font-weight: 500; letter-spacing: -0.015em; transition: color 0.3s, padding 0.5s var(--ease-out); }
.q:hover { color: var(--accent); padding-left: 8px; }
.q i { position: relative; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); transition: background 0.4s, border-color 0.4s, color 0.4s, transform 0.6s var(--ease-out); }
.q i::before, .q i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.q i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.6s var(--ease-out); }
.qa.open .q i { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: rotate(180deg); }
.qa.open .q i::after { transform: translate(-50%, -50%) rotate(0); }
.qa.open .q { color: var(--ink); }
.a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.a > div { overflow: hidden; }
.a p { color: var(--muted); font-size: 17px; max-width: 620px; padding-bottom: 28px; opacity: 0; transform: translateY(-8px); transition: opacity 0.5s, transform 0.6s var(--ease-out); }
.qa.open .a { grid-template-rows: 1fr; }
.qa.open .a p { opacity: 1; transform: none; transition-delay: 0.1s; }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: var(--paper); margin-top: clamp(96px, 14vw, 180px); border-radius: clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px) 0 0; }
.contact-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); max-width: 1440px; margin: 0 auto; padding: clamp(80px, 10vw, 140px) var(--gutter); }
.contact-title { font-size: clamp(48px, 7vw, 104px); line-height: 0.95; font-weight: 500; letter-spacing: -0.045em; margin-bottom: 28px; }
.contact-title em { color: var(--accent); letter-spacing: -0.02em; }
.contact-sub { color: var(--muted-light); font-size: 18px; max-width: 440px; margin-bottom: 40px; }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.mail-link { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 42px); line-height: 1.1; border-bottom: 1px solid var(--line-light); transition: color 0.3s, border-color 0.3s; overflow-wrap: anywhere; }
.mail-link:hover { color: var(--accent); border-color: var(--accent); }
.copy { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-light); font-size: 13px; font-family: var(--mono); transition: background 0.3s, color 0.3s; }
.copy:hover { background: var(--paper); color: var(--ink); }
.form { display: flex; flex-direction: column; gap: 22px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 26px 0 10px; background: transparent; border: 0; border-bottom: 1px solid var(--line-light);
  color: var(--paper); font: inherit; font-size: 18px; outline: none; resize: vertical; border-radius: 0;
  transition: border-color 0.3s;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field > label { position: absolute; left: 0; top: 24px; color: var(--muted-light); font-size: 18px; pointer-events: none; transform-origin: left top; transition: transform 0.4s var(--ease-out), color 0.3s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-22px) scale(0.72); color: var(--accent); }
.field.invalid input, .field.invalid textarea { border-color: #ff8a65; }
.field.invalid > label { color: #ff8a65; }
.field-label { color: var(--muted-light); font-size: 14px; margin-bottom: 12px; }
.form-note { font-size: 13px; color: var(--muted-light); text-align: center; }
.form-note a { color: var(--paper); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn.loading { pointer-events: none; }
.btn.loading .roll, .btn.loading .btn-arrow { opacity: 0; }
.btn.loading::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-done { display: none; flex-direction: column; align-items: flex-start; gap: 16px; padding: 40px 0; outline: none; }
.form.sent > :not(.form-done) { display: none; }
.form.sent .form-done { display: flex; animation: doneIn 0.8s var(--ease-out); }
@keyframes doneIn { from { opacity: 0; transform: translateY(24px); } }
.done-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 28px; }
.form-done h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4vw, 56px); line-height: 1; }
.form-done p { color: var(--muted-light); font-size: 17px; max-width: 420px; }
.form-done b { color: var(--paper); font-weight: 500; }
.btn-line.light { border-color: var(--paper); color: var(--paper); }
.btn-line.light::before { background: var(--paper); }
.btn-line.light:hover { color: var(--ink); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding: 0 var(--gutter) 28px; overflow: hidden; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line-light); max-width: 1440px; margin: 0 auto; font-size: 14px; color: var(--muted-light); }
.footer-top nav { display: flex; flex-wrap: wrap; gap: 24px; color: var(--paper); }
.to-top { font-size: 14px; color: var(--paper); transition: color 0.3s; }
.to-top:hover { color: var(--accent); }
.footer-word { font-size: clamp(44px, 12.6vw, 210px); font-weight: 500; letter-spacing: -0.06em; line-height: 0.9; text-align: center; white-space: nowrap; margin: 24px 0 20px; color: var(--paper); }
.footer-copy { text-align: center; font-size: 13px; color: var(--muted-light); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 95; padding: 12px 20px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, calc(100% + 40px)); visibility: hidden; transition: transform 0.6s var(--ease-out), visibility 0s 0.6s; pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform 0.6s var(--ease-out); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .svc { grid-template-columns: 48px 1fr auto 52px; }
  .svc-desc { grid-column: 2 / 4; grid-row: 2; }
  .svc-tags { display: none; }
  .svc-go { grid-column: 4; grid-row: 1 / 3; }
}
@media (max-width: 960px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: block; }
  .hero { grid-template-columns: 1fr; padding-top: 110px; gap: 24px; }
  .hero-visual { height: 560px; }
  .planner, .faq-grid, .contact-inner { grid-template-columns: 1fr; }
  .plan-card { position: relative; top: 0; }
  .faq-grid .section-head { position: static; }
  .process-pin { min-height: 0; }
  .process-track { flex-direction: column; width: auto; }
  .no-pin .process-track { overflow: visible; }
  .step { width: 100%; min-height: 0; }
  .step-num { font-size: 64px; padding-bottom: 24px; }
}
@media (max-width: 600px) {
  .hero-stats strong { font-size: 34px; }
  .hero-stats a { padding-right: 10px; }
  .hero-stats li + li a { padding-left: 12px; }
  .hero-stats a > span { font-size: 12px; }
  .hero-visual { height: 440px; }
  .phones { scale: 0.74; }
  .svc { grid-template-columns: 1fr 44px; gap: 8px 16px; padding: 24px 0; }
  .svc:hover, .svc:focus-visible { padding-left: 14px; padding-right: 14px; }
  .svc-num, .svc-title { grid-column: 1; }
  .svc-desc { grid-column: 1; grid-row: auto; font-size: 15px; }
  .svc-go { grid-column: 2; grid-row: 1 / 4; width: 44px; height: 44px; }
  .d-meta { grid-template-columns: 1fr; }
  .plan-card { padding: 24px; }
  .opt { padding: 9px 14px; font-size: 14px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}

/* ---------- Legal pages ---------- */
.legal-page .nav { grid-template-columns: 1fr auto; }
.legal-page .nav > span:empty { display: none; }
.legal { max-width: 760px; margin: 0 auto; padding: 150px var(--gutter) 120px; }
.legal h1 { font-size: clamp(48px, 8vw, 96px); font-weight: 500; letter-spacing: -0.045em; line-height: 0.95; margin-bottom: 20px; }
.legal h1 em { color: var(--accent); letter-spacing: -0.02em; }
.legal-date { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 48px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.legal-toc a { font-size: 14px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); transition: background 0.3s, color 0.3s, border-color 0.3s; }
.legal-toc a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.legal section { padding: 32px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.legal h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 500; letter-spacing: -0.025em; margin-bottom: 16px; }
.legal h3 { font-size: 18px; font-weight: 600; margin: 20px 0 8px; }
.legal p, .legal li { color: var(--ink-2); font-size: 17px; line-height: 1.7; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0; display: flex; flex-direction: column; gap: 6px; }
.legal li { position: relative; padding-left: 24px; }
.legal li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
.legal a.ulink { color: var(--accent-deep); }
.legal-page .footer { padding-top: 0; }
.legal-page .footer-copy { padding-top: 8px; }
html:has(.legal-page) { scroll-behavior: smooth; }
