/* V-WIZARD — drafting-paper design system */
:root {
  --paper: #F3EFE7;
  --paper-2: #EAE4D8;
  --paper-3: #E0D8C8;
  --ink: #161514;
  --ink-2: #3A3835;
  --muted: #6F6A62;
  --line: rgba(22, 21, 20, .14);
  --line-2: rgba(22, 21, 20, .28);
  --accent: #A8733A;
  --accent-ink: #8A5C2A;
  --night: #121211;
  --night-2: #1C1B19;
  --on-night: #EDE8DF;
  --on-night-muted: #A39C90;
  --night-line: rgba(237, 232, 223, .14);

  --f-th: "IBM Plex Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Cormorant Garamond", "Times New Roman", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-th);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; line-height: 1.25; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 4.2vw, 50px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.eyebrow .mono { color: var(--accent-ink); }
.eyebrow .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }
.eyebrow.light .mono { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius);
  font-weight: 500; font-size: 16px; text-decoration: none;
  border: 1px solid transparent; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--accent-ink); }
.btn-ghost { border-color: var(--line-2); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost.light { color: var(--on-night); border-color: var(--night-line); }
.btn-ghost.light:hover { border-color: var(--on-night); }
.btn-accent { background: var(--accent); color: #fff; border: 0; }
.btn-accent:hover { background: var(--accent-ink); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: auto; }
.brand-word { font-family: var(--f-mono); font-weight: 500; letter-spacing: .28em; font-size: 14px; margin: 0; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); position: relative; }
.nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px; background: var(--ink); transition: right .3s var(--ease); }
.nav a:not(.nav-cta):hover::after, .nav a.active::after { right: 0; }
.nav-cta { background: var(--ink); color: var(--paper) !important; padding: 8px 16px; border-radius: var(--radius); }
.nav-cta:hover { background: var(--accent-ink); }
.menu-btn { display: none; width: 44px; height: 44px; background: none; border: 0; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), top .3s; }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 26px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 8vw, 96px) 0 0; overflow: hidden; }
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 75%);
  opacity: .55;
}
.hero-head { position: relative; display: grid; gap: 28px; }
.hero-head .eyebrow { margin: 0; }
.hero-sub { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }
.hero-sub p { margin: 0; }
.hero-title { font-size: clamp(38px, 7vw, 96px); line-height: 1.1; font-weight: 600; letter-spacing: -.02em; }
.nw { white-space: nowrap; }
.hero-title em { font-style: normal; color: var(--accent-ink); font-weight: 500; }
.hero-sub p { color: var(--ink-2); font-size: 18px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* compare slider */
.compare-wrap { margin: clamp(40px, 6vw, 72px) auto 0; }
.compare {
  position: relative; aspect-ratio: 1800 / 872; overflow: hidden;
  background: var(--paper-2); border: 1px solid var(--line);
  user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.compare-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); background: #fff; }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: #fff;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.25); pointer-events: none;
}
.compare-handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); font-size: 20px;
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.compare-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none;
}
.compare-range:focus-visible + .compare-handle, .compare:focus-within .compare-handle span { outline: 2px solid var(--accent); }
.compare-tag {
  position: absolute; top: 16px; padding: 6px 10px; background: rgba(243, 239, 231, .92); color: var(--ink);
  font-size: 11px; pointer-events: none; transition: opacity .3s;
}
.tag-l { left: 16px; }
.tag-r { right: 16px; background: rgba(22, 21, 20, .8); color: var(--paper); }
.compare-cap { display: flex; gap: 24px; padding-top: 16px; padding-bottom: 8px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.compare-cap .mono { color: var(--ink); white-space: nowrap; padding-top: 2px; }

/* ---------- numbers ---------- */
.numbers { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 64px); }
.numbers-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.num { padding: 28px 24px 0 0; border-right: 1px solid var(--line); padding-left: 24px; }
.num:first-child { padding-left: 0; }
.num:last-child { border-right: 0; }
.num b { font-family: var(--f-serif); font-weight: 500; font-size: clamp(48px, 6vw, 76px); line-height: 1; letter-spacing: -.02em; }
.num .unit { font-size: 15px; color: var(--muted); margin-left: 6px; }
.num p { margin: 12px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; max-width: 24ch; }

/* ---------- clients marquee ---------- */
.clients { padding: 8px 0 clamp(64px, 8vw, 104px); }
.clients-label { color: var(--muted); margin-bottom: 20px; }
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: flex; align-items: center; gap: 40px; padding: 22px 20px; font-family: var(--f-serif), var(--f-th); font-size: clamp(22px, 2.6vw, 30px); font-weight: 400; white-space: nowrap; color: var(--ink-2); }
.marquee-track span::after { content: "✦"; font-size: 12px; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- philosophy ---------- */
.philosophy { padding: clamp(72px, 10vw, 140px) 0; background: var(--paper-2); }
.philo-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.quote-en { font-family: var(--f-serif); font-size: clamp(38px, 5.4vw, 72px); line-height: 1.05; margin: 0 0 28px; letter-spacing: -.01em; }
.quote-en em { color: var(--accent-ink); }
.quote-th { color: var(--muted); font-size: 18px; border-left: 2px solid var(--accent); padding-left: 16px; }
.philo-body .lead { font-size: 21px; line-height: 1.65; color: var(--ink); }
.philo-body p { color: var(--ink-2); }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pill-list li { border: 1px solid var(--line-2); padding: 6px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-2); }

/* ---------- section heads ---------- */
.section-head { margin-bottom: clamp(36px, 5vw, 56px); max-width: 720px; }
.section-head.split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.section-head.split > div:first-child { max-width: 620px; }
.section-sub { color: var(--muted); font-size: 18px; margin-top: 14px; }

/* ---------- services ---------- */
.services { padding: clamp(72px, 10vw, 140px) 0; }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.svc { position: relative; padding: 28px 24px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .35s; }
.svc:hover { background: var(--paper-2); }
.svc-no { display: block; color: var(--accent-ink); }
.svc-ico { display: block; width: 56px; height: 56px; margin: 28px 0 24px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.svc h3 { margin-bottom: 12px; font-size: 20px; }
.svc p { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
.svc ul { border-top: 1px dashed var(--line-2); padding-top: 14px; margin-top: 18px; }
.svc li { font-family: var(--f-mono); font-size: 12px; color: var(--muted); padding: 3px 0; letter-spacing: .02em; }

/* ---------- process ---------- */
.process { padding: clamp(72px, 10vw, 140px) 0; background: var(--ink); color: var(--on-night); }
.process .eyebrow .mono { color: var(--accent); }
.process .section-sub { color: var(--on-night-muted); }
.process-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 96px); }
.sticky { position: sticky; top: 110px; }
.process h2 { font-size: clamp(34px, 4.6vw, 58px); }
.process-meter { height: 2px; background: var(--night-line); margin-top: 32px; max-width: 320px; }
.process-meter span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s linear; }
.steps { counter-reset: s; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 32px 0; border-top: 1px solid var(--night-line); opacity: .35; transition: opacity .5s var(--ease); }
.step.lit { opacity: 1; }
.step-no { font-size: 13px; color: var(--accent); padding-top: 4px; }
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--on-night-muted); margin: 0; }

/* ---------- work ---------- */
.work { padding: clamp(72px, 10vw, 140px) 0; }
.work-tools { display: flex; justify-content: space-between; align-items: center; gap: 14px 24px; width: 100%; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line-2); background: transparent; padding: 7px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-2); transition: all .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip small { opacity: .6; margin-left: 4px; }
.sort { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.sort select { font: inherit; font-family: var(--f-th); text-transform: none; letter-spacing: 0; font-size: 14px; background: transparent; border: 1px solid var(--line-2); padding: 6px 10px; border-radius: var(--radius); color: var(--ink); }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.proj { background: var(--paper); display: flex; flex-direction: column; min-height: 100%; transition: background .3s; animation: fadeUp .5s var(--ease) both; }
.proj:hover { background: #F7F4EE; }
.proj-plate {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background-color: #EDE7DB;
  background-image:
    linear-gradient(rgba(47,74,90,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,74,90,.09) 1px, transparent 1px),
    linear-gradient(rgba(47,74,90,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,74,90,.05) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
  border-bottom: 1px solid var(--line);
}
.proj-plate svg { position: absolute; inset: 14% 22%; width: 56%; height: 72%; fill: none; stroke: #2F4A5A; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease); }
.proj:hover .proj-plate svg { transform: scale(1.05); }
.proj-plate .plate-id { position: absolute; left: 14px; top: 12px; color: #2F4A5A; font-size: 11px; }
.proj-plate .plate-val { position: absolute; right: 14px; bottom: 12px; color: #2F4A5A; font-size: 11px; }
.proj-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.proj-meta { display: flex; justify-content: space-between; color: var(--muted); }
.proj-meta .tag { color: var(--accent-ink); }
.proj h3 { font-size: 18px; line-height: 1.45; }
.proj .loc { color: var(--muted); font-size: 14px; margin: 0; }
.proj .val { margin-top: auto; padding-top: 12px; font-family: var(--f-serif); font-size: 26px; font-weight: 500; }
.proj .val small { font-family: var(--f-th); font-size: 13px; color: var(--muted); margin-left: 4px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- homes gallery ---------- */
.homes { padding: 0 0 clamp(72px, 10vw, 140px); }
.gallery { columns: 3 280px; column-gap: 12px; }
.g-item { break-inside: avoid; margin: 0 0 12px; position: relative; cursor: zoom-in; overflow: hidden; background: var(--paper-2); border: 0; padding: 0; display: block; width: 100%; text-align: left; }
.g-item img { width: 100%; transition: transform .8s var(--ease), filter .5s; filter: saturate(.9); }
.g-item:hover img { transform: scale(1.04); filter: saturate(1); }
.g-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; color: #fff; font-size: 14px; background: linear-gradient(transparent, rgba(0,0,0,.6)); opacity: 0; transform: translateY(6px); transition: all .35s var(--ease); }
.g-item:hover figcaption, .g-item:focus-visible figcaption { opacity: 1; transform: none; }

/* ---------- drawing ---------- */
.drawing { padding: clamp(72px, 10vw, 140px) 0; background: var(--night); color: var(--on-night); }
.drawing-grid { display: grid; grid-template-columns: .9fr 1.3fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.drawing h2 { margin-bottom: 24px; }
.drawing-text > p { color: var(--on-night-muted); }
.cred { margin: 32px 0; border-top: 1px solid var(--night-line); }
.cred li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--night-line); }
.cred b { font-family: var(--f-serif); font-size: 26px; font-weight: 500; color: var(--on-night); line-height: 1.2; }
.cred span { color: var(--on-night-muted); font-size: 15px; }
.cred a { color: var(--on-night); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.hint { color: var(--accent); }
.loupe-wrap { margin: 0; }
.loupe { position: relative; background: #fff; cursor: crosshair; overflow: hidden; }
.lens {
  position: absolute; width: 220px; height: 220px; border-radius: 50%; pointer-events: none;
  border: 2px solid var(--accent); box-shadow: 0 10px 40px rgba(0,0,0,.35);
  background-repeat: no-repeat; background-color: #fff; opacity: 0; transform: scale(.8);
  transition: opacity .2s, transform .2s var(--ease);
}
.loupe.active .lens { opacity: 1; transform: scale(1); }
.loupe-wrap figcaption { margin-top: 12px; color: var(--on-night-muted); }

/* ---------- story ---------- */
.story { padding: clamp(72px, 10vw, 140px) 0; }
.timeline { position: relative; max-width: 880px; }
.timeline::before { content: ""; position: absolute; left: 118px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.timeline li { display: grid; grid-template-columns: 100px 1fr; gap: 40px; padding: 0 0 36px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 114px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); }
.timeline li.now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 20%, transparent); }
.t-year { font-family: var(--f-serif); font-size: 26px; font-weight: 600; text-align: right; line-height: 1; padding-top: 2px; }
.timeline h3 { margin-bottom: 4px; }
.timeline p { color: var(--ink-2); margin: 0; font-size: 16px; }

/* ---------- founder ---------- */
.founder { padding: clamp(64px, 8vw, 110px) 0; background: var(--paper-2); }
.founder-grid { display: grid; grid-template-columns: 320px 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.founder-mark { background: var(--paper); border: 1px solid var(--line); padding: 36px; aspect-ratio: 1; display: grid; place-items: center; }
.founder-mark img { width: 100%; }
.founder h2 { font-size: clamp(28px, 3.4vw, 42px); }
.founder .role { color: var(--accent-ink); margin: 6px 0 20px; }
.founder-text p:not(.role):not(.eyebrow) { color: var(--ink-2); max-width: 60ch; }

/* ---------- contact / wizard ---------- */
.contact { padding: clamp(72px, 10vw, 140px) 0; background: var(--night); color: var(--on-night); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-info > p { color: var(--on-night-muted); }
.contact-info h2 { margin-bottom: 20px; }
.contact-list { margin: 36px 0 0; border-top: 1px solid var(--night-line); }
.contact-list div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--night-line); }
.contact-list dt { color: var(--accent); padding-top: 3px; }
.contact-list dd { margin: 0; font-size: 16px; }
.contact-list a { color: var(--on-night); text-decoration-color: var(--night-line); text-underline-offset: 3px; }
.contact-list a:hover { text-decoration-color: var(--accent); }

.wizard { background: var(--night-2); border: 1px solid var(--night-line); padding: clamp(24px, 4vw, 40px); position: relative; }
.wz-progress { height: 2px; background: var(--night-line); margin: calc(-1 * clamp(24px, 4vw, 40px)) calc(-1 * clamp(24px, 4vw, 40px)) 24px; }
.wz-progress span { display: block; height: 100%; width: 33.33%; background: var(--accent); transition: width .5s var(--ease); }
.wz-step-label { color: var(--on-night-muted); margin-bottom: 8px; }
.wz-step { border: 0; padding: 0; margin: 0; display: none; }
.wz-step.is-active { display: block; animation: fadeUp .45s var(--ease); }
.wz-step legend { font-size: 22px; font-weight: 600; margin-bottom: 16px; padding: 0; }
.wz-step legend.sub { font-size: 17px; margin-top: 28px; }
.wz-step legend small { font-weight: 400; color: var(--on-night-muted); font-size: 14px; }
.opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.opt { text-align: left; background: transparent; border: 1px solid var(--night-line); color: var(--on-night); padding: 12px 14px; border-radius: var(--radius); font-size: 15px; transition: all .2s; min-height: 48px; }
.opt:hover { border-color: var(--on-night-muted); }
.opt[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); }
.field { display: block; font-size: 14px; color: var(--on-night-muted); margin-bottom: 14px; }
.field input, .field textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-size: 16px;
  background: var(--night); color: var(--on-night); border: 1px solid var(--night-line); border-radius: var(--radius);
}
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field-label { font-size: 15px; margin: 22px 0 10px; color: var(--on-night); font-weight: 500; }
.wz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.wz-nav #wzNext { margin-left: auto; min-width: 140px; }
.wz-error { color: #E8A87C; font-size: 14px; margin: 12px 0 0; min-height: 1em; }
.wz-done pre { white-space: pre-wrap; font-family: var(--f-th); font-size: 15px; line-height: 1.7; background: var(--night); border: 1px solid var(--night-line); padding: 16px; margin: 12px 0 20px; color: var(--on-night); max-height: 320px; overflow: auto; }
.wz-done > .mono { color: var(--accent); }
.wz-send { display: flex; flex-wrap: wrap; gap: 10px; }
.wz-note { color: var(--on-night-muted); font-size: 14px; margin-top: 12px; }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--on-night-muted); border-top: 1px solid var(--night-line); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 14px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { filter: invert(1) brightness(.92); width: 44px; }
.footer-brand p { margin: 0; line-height: 1.5; }
.footer-brand .brand-word { color: var(--on-night); }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--on-night); }
.copy { margin: 0; }

/* ---------- floating LINE ---------- */
.float-line {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; gap: 8px; padding: 0 18px 0 14px; height: 52px; border-radius: 999px;
  background: #06C755; color: #fff; text-decoration: none; font-weight: 500; font-size: 15px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  transform: translateY(120px); transition: transform .4s var(--ease);
}
.float-line.show { transform: none; }
.float-line svg { width: 24px; height: 24px; fill: #fff; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(12, 12, 11, .94); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; }
.lightbox figcaption { color: var(--on-night); text-align: center; margin-top: 14px; font-size: 15px; }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 26px; line-height: 1; display: grid; place-items: center; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.18); }

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

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .drawing-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .menu-btn { display: block; }
  .nav {
    position: fixed; top: 68px; left: 0; right: 0; height: calc(100dvh - 68px);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 12px var(--gutter) 40px;
    background: var(--paper); opacity: 0; transform: translateY(-10px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s; visibility: hidden; overflow-y: auto;
  }
  .nav.open { opacity: 1; transform: none; visibility: visible; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .nav a { font-size: 24px; padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin-top: 20px; text-align: center; font-size: 18px !important; padding: 14px !important; border-bottom: 0 !important; }
  .hero-head { grid-template-columns: 1fr; }
  .hero-sub p { max-width: none; }
  .compare-wrap { padding: 0; }
  .compare { aspect-ratio: 4 / 3; border-left: 0; border-right: 0; }
  .compare-cap { flex-direction: column; gap: 4px; }
  .numbers-row { grid-template-columns: repeat(2, 1fr); }
  .num { padding: 24px 16px 24px 0; border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0; }
  .num:nth-child(odd) { border-right: 1px solid var(--line); }
  .num:nth-child(even) { padding-left: 16px; }
  .philo-grid, .process-grid { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .founder-grid { grid-template-columns: 1fr; }
  .founder-mark { max-width: 220px; padding: 24px; }
  .timeline::before { left: 70px; }
  .timeline li { grid-template-columns: 56px 1fr; gap: 32px; }
  .timeline li::before { left: 66px; }
  .t-year { font-size: 19px; }
  .lens { width: 160px; height: 160px; }
}
@media (max-width: 600px) {
  .svc-grid, .projects { grid-template-columns: 1fr; }

  .cred li, .contact-list div { grid-template-columns: 1fr; gap: 2px; }
  .float-line span { display: none; }
  .float-line { width: 52px; padding: 0; justify-content: center; }
  .hero-actions .btn { flex: 1 1 100%; }
  .tag-l, .tag-r { top: 10px; font-size: 10px; }
  .tag-l { left: 10px; } .tag-r { right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* lining figures for serif numerals (Cormorant defaults to old-style) */
.num b, .proj .val, .t-year, .cred b { font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
.wz-edit { background: none; border: 0; color: var(--on-night-muted); font-size: 14px; padding: 12px 0 0; text-decoration: underline; text-underline-offset: 3px; }
.wz-edit:hover { color: var(--on-night); }

/* =====================================================================
   v2 — multi-page: drawing-sheet system
   ===================================================================== */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
.site-header { view-transition-name: header; }

/* scroll ruler */
.ruler { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.ruler span { display: block; height: 100%; width: 0; background: var(--accent);
  background-image: repeating-linear-gradient(90deg, transparent 0 9px, rgba(0,0,0,.35) 9px 10px); }

.nav-lang { font-family: var(--f-mono); font-size: 12px !important; letter-spacing: .1em; border: 1px solid var(--line-2); padding: 3px 8px; border-radius: 2px; }
.nav-lang::after { display: none; }
.text-link { color: var(--accent-ink); text-decoration: none; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.text-link:hover { color: var(--ink); }
.pt0 { padding-top: 0 !important; }

/* hero line drawing */
.hero-draw { position: absolute; right: 0; top: 6%; width: 46%; height: 26%; fill: none; stroke: var(--accent); stroke-width: 1; opacity: .28; pointer-events: none; vector-effect: non-scaling-stroke; }
.hero-draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 3.2s .3s var(--ease) forwards; vector-effect: non-scaling-stroke; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* page head = sheet header */
.page-head { position: relative; padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.page-head-grid { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.page-title { font-size: clamp(40px, 6.4vw, 84px); line-height: 1.12; letter-spacing: -.02em; }
.page-sub { color: var(--ink-2); font-size: clamp(17px, 1.6vw, 20px); max-width: 52ch; margin-top: 20px; }
.tblock { display: grid; grid-template-columns: repeat(2, minmax(96px, auto)); border: 1px solid var(--ink); margin: 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; background: var(--paper); }
.tblock div { padding: 8px 12px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.tblock div:nth-child(2n) { border-right: 0; }
.tblock div:nth-last-child(-n+2) { border-bottom: 0; }
.tblock dt { color: var(--muted); font-size: 10px; }
.tblock dd { margin: 2px 0 0; font-size: 15px; color: var(--ink); font-weight: 500; }
.tblock div:first-child dd { color: var(--accent-ink); font-size: 22px; }
.page-head.nf { min-height: 70vh; display: flex; align-items: center; }

/* CTA band */
.cta-band { background: var(--accent); color: #fff; padding: clamp(48px, 7vw, 88px) 0; }
.cta-grid { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 46px); }
.cta-band h2 em { font-style: normal; font-weight: 400; opacity: .85; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-accent { background: var(--ink); }
.cta-band .btn-accent:hover { background: #000; }
.cta-band .btn-ghost.light { color: #fff; border-color: rgba(255,255,255,.5); }

/* footer title block */
.site-footer { padding-top: 48px; }
.tb-footer { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1fr .6fr; border: 1px solid var(--night-line); }
.tb-cell { padding: 18px 20px; border-right: 1px solid var(--night-line); font-size: 14px; line-height: 1.6; }
.tb-cell:last-child { border-right: 0; }
.tb-cell p { margin: 6px 0 0; }
.tb-cell a { color: var(--on-night); text-decoration: none; }
.tb-cell a:hover { color: var(--accent); }
.tb-k { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; color: var(--accent); }
.tb-brand { display: flex; gap: 14px; align-items: flex-start; }
.tb-brand img { filter: invert(1) brightness(.92); width: 44px; flex: none; }
.tb-brand .brand-word { color: var(--on-night); margin: 0; }
.tb-no { font-family: var(--f-serif); font-size: 34px; color: var(--on-night); line-height: 1; }
.site-footer .footer-nav { margin-top: 20px; }

/* services link */
.svc-link { display: inline-block; margin-top: 16px; color: var(--accent-ink); text-decoration: none; font-size: 14px; font-weight: 500; }

/* services detail */
.svc-detail { padding: 0 0 clamp(64px, 8vw, 120px); }
.svd { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.svd.flip .svd-img { order: 2; }
.svd-img { margin: 0; overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 3; }
.svd-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svd:hover .svd-img img { transform: scale(1.03); }
.svd-no { color: var(--accent-ink); margin-bottom: 10px; }
.svd h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 18px; }
.svd-text > p { color: var(--ink-2); }
.checks { margin-top: 18px; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .6em; width: 14px; height: 8px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg) translateY(-3px); }

.who { padding: clamp(64px, 9vw, 120px) 0; }
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.who-item { background: var(--paper); padding: 28px 24px; }
.who-item .mono { color: var(--accent-ink); }
.who-item h3 { margin: 18px 0 8px; }
.who-item p { color: var(--ink-2); font-size: 15px; margin: 0; }

.faq { padding: 0 0 clamp(64px, 9vw, 120px); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.faq-list details { border-top: 1px solid var(--line-2); }
.faq-list details:last-child { border-bottom: 1px solid var(--line-2); }
.faq-list summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 500; font-size: 18px; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 24px; font-weight: 300; color: var(--accent-ink); transition: transform .3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--ink-2); padding: 0 0 20px; margin: 0; max-width: 62ch; }

/* drawing studio */
.viz { padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 5vw, 64px); }
.viz .section-head a { color: var(--accent-ink); }
.for-pros { padding: clamp(64px, 9vw, 120px) 0; background: var(--paper-2); }
.pros-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.for-pros .hero-actions { margin-top: 28px; }
.community { background: var(--ink); color: var(--on-night); padding: 32px; }
.community .mono { color: var(--accent); }
.community-num { font-family: var(--f-serif); font-size: clamp(56px, 7vw, 92px); line-height: 1; margin: 8px 0 12px; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.community p { color: var(--on-night-muted); }
.community .text-link { color: var(--accent); }
.poster { margin: 24px 0 0; }
.poster figcaption { font-size: 13px; color: var(--on-night-muted); margin-top: 10px; }

/* about */
.team { padding: clamp(64px, 9vw, 120px) 0; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-item { border-top: 1px solid var(--ink); padding-top: 24px; }
.team-item svg { width: 48px; height: 48px; fill: none; stroke: var(--accent-ink); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 18px; }
.team-item p { color: var(--ink-2); }

/* journal */
.journal-teaser { padding: clamp(64px, 9vw, 120px) 0; }
.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.art-grid.two { grid-template-columns: repeat(2, 1fr); }
.art-card { text-decoration: none; display: block; }
.art-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); margin-bottom: 16px; }
.art-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.art-card:hover .art-img img { transform: scale(1.05); }
.art-meta { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: 8px; }
.art-meta span:first-child { color: var(--accent-ink); }
.art-card h3 { font-size: 21px; line-height: 1.4; margin-bottom: 8px; }
.art-card:hover h3 { color: var(--accent-ink); }
.art-card p:last-child { color: var(--ink-2); font-size: 15px; }

.post { padding: clamp(48px, 8vw, 100px) 0 0; }
.post-head { max-width: 860px; }
.post-head .eyebrow a { color: var(--accent-ink); text-decoration: none; }
.post-title { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.25; }
.post-lead { font-size: 20px; color: var(--ink-2); margin-top: 20px; }
.post-cover { margin: 40px auto; }
.post-cover img { width: 100%; max-height: 70vh; object-fit: cover; }
.post-body { max-width: 760px; font-size: 18px; line-height: 1.9; }
.post-body h2 { font-size: 28px; margin: 48px 0 16px; }
.post-body p { color: var(--ink-2); }
.post-body strong { color: var(--ink); }
.post-body a { color: var(--accent-ink); }
.post-body ul { margin: 0 0 1.2em; display: grid; gap: 8px; }
.post-body li { position: relative; padding-left: 22px; color: var(--ink-2); }
.post-body li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 8px; height: 1.5px; background: var(--accent); }
.post-body figure { margin: 36px 0; }
.post-body figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; font-family: var(--f-mono); letter-spacing: .02em; }

/* contact page */
.contact-page { padding-top: clamp(56px, 8vw, 110px); }
.contact-page .page-title { color: var(--on-night); font-size: clamp(34px, 4.6vw, 58px); margin-bottom: 20px; }
.map-sec { background: var(--night); padding: 0 0 1px; }
.map-frame { height: 420px; background: var(--night-2) center / cover; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; border-top: 1px solid var(--night-line); position: relative;
  background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px); background-size: 48px 48px; }
.map-frame .text-link { color: var(--accent); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.6) contrast(1.05); }
.en-cta { background: var(--night-2); border: 1px solid var(--night-line); padding: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.en-cta p { width: 100%; color: var(--on-night-muted); }
.hero-title.en { font-family: var(--f-serif); font-weight: 500; letter-spacing: -.01em; line-height: 1; }
.lang-en .page-sub, .lang-en .hero-sub p { font-size: 19px; }

/* ================= PLAN (private) ================= */
.plan-cover { position: relative; min-height: 92vh; display: flex; align-items: center; padding: 80px 0; overflow: hidden; }
.plan-title { font-size: clamp(40px, 7vw, 96px); line-height: 1.12; letter-spacing: -.02em; }
.plan-title .muted { color: var(--muted); font-weight: 400; }
.plan-title em { font-style: normal; font-family: var(--f-serif); color: var(--accent-ink); font-size: 1.5em; line-height: .9; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.plan-unit { font-size: .5em; font-weight: 500; }
.plan-lead { font-size: clamp(20px, 2.4vw, 30px); margin-top: 32px; color: var(--ink); line-height: 1.5; }
.scroll-cue { color: var(--muted); margin-top: 40px; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }
.muted { color: var(--muted); }

.plan-gap { background: var(--night); color: var(--on-night); padding: clamp(72px, 10vw, 140px) 0; }
.plan-gap h2 { font-size: clamp(32px, 4.4vw, 56px); margin-bottom: 48px; }
.gap-rows { display: grid; gap: 0; border-top: 1px solid var(--night-line); }
.gap { display: grid; grid-template-columns: 1fr 80px 1fr; align-items: center; gap: 24px; padding: 36px 0; border-bottom: 1px solid var(--night-line); }
.gap b { display: block; font-family: var(--f-serif); font-weight: 500; font-size: clamp(56px, 8vw, 112px); line-height: 1; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.gap span { display: block; color: var(--on-night-muted); margin-top: 10px; font-size: 16px; max-width: 34ch; }
.gap-have b { color: var(--on-night); }
.gap-seen b { color: #E0674F; }
.gap-arrow { font-size: 40px; color: var(--accent); text-align: center; }
.gap-note { color: var(--on-night-muted); font-size: 13px; margin-top: 24px; font-family: var(--f-mono); letter-spacing: .02em; }

.plan-why { padding: clamp(72px, 10vw, 140px) 0; }
.why-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 88px); }
.why-grid h2 { font-size: clamp(34px, 4.6vw, 60px); }
.why-text .lead { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.5; margin-bottom: 24px; }
.why-text p { color: var(--ink-2); font-size: 18px; }
.why-text em { color: var(--accent-ink); font-style: normal; font-weight: 500; }

.plan-funnel { background: var(--ink); color: var(--on-night); padding: clamp(72px, 10vw, 140px) 0; }
.plan-funnel h2 { font-size: clamp(32px, 4.4vw, 56px); margin-bottom: 56px; }
.funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: f; }
.funnel li { padding: 28px 24px 28px 0; border-top: 2px solid var(--accent); position: relative; margin-right: 24px; }
.funnel li::after { content: "→"; position: absolute; right: -20px; top: -14px; color: var(--accent); background: var(--ink); padding: 0 4px; font-size: 18px; }
.funnel li:last-child::after { display: none; }
.f-no { color: var(--accent); }
.funnel h3 { font-size: 28px; margin: 12px 0 10px; }
.funnel p { color: var(--on-night-muted); font-size: 15px; }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--night-line); border: 1px solid var(--night-line); margin-top: 56px; }
.feat { background: var(--ink); padding: 24px; }
.feat b { display: block; font-size: 18px; margin-bottom: 6px; color: var(--on-night); }
.feat span { color: var(--on-night-muted); font-size: 14px; }

.plan-90 { padding: clamp(72px, 10vw, 140px) 0; }
.plan-90 h2 { font-size: clamp(32px, 4.4vw, 56px); margin-bottom: 40px; }
.p90 { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.p90-col { padding: 24px 24px 24px 0; border-right: 1px solid var(--line); padding-left: 24px; }
.p90-col:first-child { padding-left: 0; }
.p90-col:last-child { border-right: 0; }
.p90-col .mono { color: var(--accent-ink); }
.p90-col h3 { font-size: 24px; margin: 8px 0 14px; }
.p90-col li { color: var(--ink-2); font-size: 15px; padding: 6px 0; border-bottom: 1px dashed var(--line); }

.plan-need { background: var(--night); color: var(--on-night); padding: clamp(72px, 10vw, 140px) 0; }
.need-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 88px); }
.need-grid h2 { font-size: clamp(30px, 3.8vw, 48px); }
.need-grid h2 .muted { color: var(--on-night-muted); font-size: .5em; font-weight: 400; display: block; margin-top: 12px; }
.need-list { counter-reset: n; }
.need-list li { counter-increment: n; display: grid; grid-template-columns: 44px 1fr; padding: 16px 0; border-bottom: 1px solid var(--night-line); color: var(--on-night); }
.need-list li::before { content: counter(n, decimal-leading-zero); font-family: var(--f-mono); font-size: 12px; color: var(--accent); padding-top: 5px; }

.plan-end { position: relative; padding: clamp(96px, 14vw, 200px) 0; text-align: center; overflow: hidden; }
.plan-end .hero-actions { justify-content: center; margin-top: 36px; }
.plan-quote { font-size: clamp(38px, 6vw, 84px); line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.plan-quote em { font-style: normal; color: var(--accent-ink); }

/* responsive v2 */
@media (max-width: 1080px) {
  .tb-footer { grid-template-columns: 1fr 1fr; }
  .tb-cell { border-bottom: 1px solid var(--night-line); }
  .tb-cell:nth-child(2n) { border-right: 0; }
  .who-grid, .funnel, .feat-grid, .p90 { grid-template-columns: repeat(2, 1fr); }
  .funnel li:nth-child(2n)::after { display: none; }
  .p90-col:nth-child(3) { padding-left: 0; }
  .art-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .page-head-grid { grid-template-columns: 1fr; }
  .tblock { justify-self: start; }
  .svd, .pros-grid, .faq-grid, .why-grid, .need-grid { grid-template-columns: 1fr; }
  .svd.flip .svd-img { order: 0; }
  .team-grid { grid-template-columns: 1fr; }
  .gap { grid-template-columns: 1fr; gap: 8px; }
  .gap-arrow { text-align: left; transform: rotate(90deg); width: 40px; }
  .nav-lang { width: auto !important; margin-top: 12px; }
}
@media (max-width: 600px) {
  .tb-footer { grid-template-columns: 1fr; }
  .tb-cell { border-right: 0; }
  .who-grid, .funnel, .feat-grid, .p90, .art-grid, .art-grid.two { grid-template-columns: 1fr; }
  .funnel li::after { display: none; }
  .p90-col { padding-left: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .map-frame { height: 320px; }
  .community { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { .hero-draw path { stroke-dashoffset: 0; animation: none; } }

@media (max-width: 860px) { .hero-draw { display: none; } }

/* language switcher + CJK */
.lang-switch { display: inline-flex; border: 1px solid var(--line-2); border-radius: 2px; overflow: hidden; }
.lang-switch a { font-family: var(--f-mono); font-size: 11px !important; letter-spacing: .08em; padding: 4px 7px; color: var(--muted) !important; text-decoration: none; }
.lang-switch a::after { display: none !important; }
.lang-switch a + a { border-left: 1px solid var(--line); }
.lang-switch a.on { background: var(--ink); color: var(--paper) !important; }
.lang-switch a:hover:not(.on) { color: var(--ink) !important; }
.lang-ja { --f-th: "Noto Sans JP", "Hiragino Sans", "IBM Plex Sans Thai", system-ui, sans-serif; }
.lang-zh { --f-th: "Noto Sans SC", "PingFang SC", "IBM Plex Sans Thai", system-ui, sans-serif; }
.lang-ja body, body.lang-ja, body.lang-zh { font-family: var(--f-th); }
.hero-title.intl { line-height: 1.12; }
.lang-en .hero-title.intl { font-family: var(--f-serif); font-weight: 500; letter-spacing: -.01em; line-height: 1.02; }
.lang-ja .hero-title.intl, .lang-zh .hero-title.intl { font-size: clamp(34px, 5.6vw, 76px); font-weight: 700; letter-spacing: 0; }
.nw-cjk { word-break: keep-all; }
.lang-ja .num p, .lang-zh .num p, .lang-ja .svc p, .lang-zh .svc p { line-break: strict; }
@media (max-width: 860px) {
  .lang-switch { margin-top: 16px; }
  .lang-switch a { font-size: 14px !important; padding: 8px 12px; border-bottom: 0 !important; width: auto !important; }
}
@media (max-width: 1180px) and (min-width: 861px) { .nav { gap: 16px; font-size: 14px; } .brand-word { letter-spacing: .18em; } }

/* project cards: real photo or text-only (no illustrations) */
.proj.no-img .proj-body { padding-top: 26px; border-top: 3px solid var(--accent); min-height: 230px; }
.proj.no-img .val { font-size: 40px; }
.proj-photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.proj-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.proj:hover .proj-photo img { transform: scale(1.04); }

/* ================= CINEMATIC HERO (real photos) ================= */
.cine { position: relative; height: 100svh; min-height: 620px; max-height: 1100px; overflow: hidden; background: #0d0d0c; color: #fff; margin-top: -68px; }
.cine-slides, .cine-slide { position: absolute; inset: 0; margin: 0; }
.cine-slide { opacity: 0; transition: opacity 1.6s ease; }
.cine-slide.on { opacity: 1; }
.cine-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 9s linear; }
.cine-slide.on img { transform: scale(1); }
.cine-shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.05) 30%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.78) 100%); }
.cine-content { position: absolute; left: 0; right: 0; bottom: 120px; }
.cine-eyebrow .mono { color: #E9C08C; }
.cine-title { font-size: clamp(44px, 7.6vw, 112px); line-height: 1.04; letter-spacing: -.025em; font-weight: 600; max-width: 14ch; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.cine-title em { font-style: normal; font-weight: 400; color: #F0D2A8; }
.lang-en .cine-title { font-family: var(--f-serif); font-weight: 500; max-width: 16ch; }
.lang-ja .cine-title, .lang-zh .cine-title { font-size: clamp(36px, 5.6vw, 84px); max-width: none; }
.cine-sub { font-size: clamp(17px, 1.5vw, 20px); max-width: 48ch; color: rgba(255,255,255,.88); margin: 22px 0 28px; }
.cine .btn-ghost.light { color: #fff; border-color: rgba(255,255,255,.5); }
.cine .btn-ghost.light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.cine-meta { position: absolute; left: 0; right: 0; bottom: 36px; display: flex; align-items: center; gap: 24px; color: rgba(255,255,255,.8); }
.cine-cap { flex: 1; font-size: 11px; }
.cine-dots { display: flex; gap: 8px; }
.cine-dot { width: 34px; height: 3px; border: 0; padding: 0; background: rgba(255,255,255,.3); cursor: pointer; position: relative; overflow: hidden; }
.cine-dot.on::after { content: ""; position: absolute; inset: 0; background: #E9C08C; transform-origin: left; animation: dotfill 6s linear forwards; }
@keyframes dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.cine-count b { color: #fff; font-weight: 500; }
body:has(.cine) .site-header:not(.scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
body:has(.cine) .site-header:not(.scrolled) .brand-word, body:has(.cine) .site-header:not(.scrolled) .nav > a:not(.nav-cta) { color: #fff; }
body:has(.cine) .site-header:not(.scrolled) .brand img { filter: invert(1); }
body:has(.cine) .site-header:not(.scrolled) .menu-btn span { background: #fff; }
body:has(.cine) .site-header:not(.scrolled) .lang-switch { border-color: rgba(255,255,255,.4); }
body:has(.cine) .site-header:not(.scrolled) .lang-switch a:not(.on) { color: rgba(255,255,255,.75) !important; }
body:has(.cine) .site-header:not(.scrolled) .nav a:not(.nav-cta)::after { background: #fff; }

/* ================= CASE STUDIES ================= */
.cases { padding: clamp(72px, 10vw, 140px) 0 clamp(40px, 5vw, 80px); }
.case { padding: clamp(48px, 7vw, 96px) 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.case-head { display: grid; grid-template-columns: 1fr 1.1fr; gap: 16px 64px; align-items: end; margin-bottom: 32px; }
.case-no { color: var(--accent-ink); grid-column: 1 / -1; margin: 0; }
.case-title { font-size: clamp(30px, 3.9vw, 56px); line-height: 1.08; letter-spacing: -.02em; }
.case-title span:not(.case-name) { display: block; font-weight: 400; color: var(--muted); font-size: .5em; letter-spacing: 0; margin-top: 8px; }
.case-story { color: var(--ink-2); font-size: 17px; margin: 0; }
.case-pair { display: grid; grid-template-columns: 1fr 1.35fr; gap: 12px; }
.case.flip .case-pair { grid-template-columns: 1.35fr 1fr; }
.case.flip .pair-a { order: 2; }
.case-pair figure { position: relative; margin: 0; overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 3; }
.case-pair .pair-b.solo { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.case-pair img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.case-pair figure:hover img { transform: scale(1.04); }
.case-pair figcaption { position: absolute; left: 14px; top: 14px; background: rgba(243,239,231,.92); color: var(--ink); padding: 5px 9px; font-size: 10px; }
.case-pair .pair-b figcaption { background: var(--accent); color: #fff; }
.case-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 12px; }
.case-thumb { margin: 0 !important; aspect-ratio: 4 / 3; }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-tag { position: absolute; left: 8px; bottom: 8px; font-size: 9px; padding: 3px 6px; background: rgba(0,0,0,.6); color: #fff; }
.thumb-tag.built { background: var(--accent); }
.viz-home { padding: 0 0 clamp(64px, 8vw, 120px); }
.poster + .poster { margin-top: 20px; }

@media (max-width: 860px) {
  .cine { margin-top: -68px; min-height: 560px; }
  .cine-content { bottom: 96px; }
  .cine-meta { bottom: 24px; }
  .cine-cap { display: none; }
  .case-head { grid-template-columns: 1fr; }
  .case-pair, .case.flip .case-pair { grid-template-columns: 1fr; }
  .case.flip .pair-a { order: 0; }
  .case-pair .pair-b.solo { aspect-ratio: 4 / 3; }
  .case-strip { grid-template-columns: repeat(2, 1fr); }
  body:has(.cine) .nav.open ~ * , body:has(.cine) .site-header:has(.nav.open) .brand-word { color: var(--ink); }
  body:has(.cine) .site-header:has(.nav.open) { background: var(--paper); }
  body:has(.cine) .site-header:has(.nav.open) .brand img { filter: none; }
  body:has(.cine) .site-header:has(.nav.open) .menu-btn span { background: var(--ink); }
  body:has(.cine) .site-header:not(.scrolled) .nav.open > a:not(.nav-cta) { color: var(--ink); }
}
.case-name { display: inline; }
@media (max-width: 600px) { .case-name { white-space: normal; } }
