/* PROJECT SOO — public site styles
   System: ivory/white ground, black/charcoal type, Pretendard (KR+Latin), IBM Plex Mono for labels.
   No decorative icons; hierarchy via scale, rule lines and whitespace. */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --bg: #F6F4EF;          /* ivory */
  --paper: #FBFAF7;       /* warm white */
  --ink: #141414;
  --charcoal: #2E2E2C;
  --muted: #5F5E59;       /* 6.2:1 on --bg */
  --faint: #8A8882;       /* decorative only, not for body text */
  --line: rgba(20,20,20,.14);
  --line-strong: rgba(20,20,20,.32);
  --accent: oklch(0.52 0.07 155);   /* muted pine — used sparingly (status dots, focus) */
  --warn: oklch(0.52 0.12 45);
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1440px;
  --ease: cubic-bezier(.2,.7,.1,1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.7;
  letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.12; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; gap: 14px; align-items: center; }
.eyebrow .idx { color: var(--ink); }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand-mark { font-weight: 700; font-size: 17px; letter-spacing: .14em; }
.brand-sub { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.nav-primary ul { display: flex; gap: clamp(14px, 2vw, 30px); }
.nav-primary a {
  text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: .08em; position: relative; padding: 6px 0;
}
.nav-primary a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--ink); transition: right .35s var(--ease); }
.nav-primary a:hover::after, .nav-primary a[aria-current="page"]::after { right: 0; }
.nav-cta { text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .04em; border: 1px solid var(--ink); padding: 9px 16px; border-radius: 999px; transition: background .25s, color .25s; white-space: nowrap; }
.nav-cta:hover { background: var(--ink); color: var(--paper); }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; min-width: 44px; min-height: 44px; }
.menu-toggle .bars { display: block; width: 22px; height: 10px; position: relative; }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-toggle .bars::before { top: 0; } .menu-toggle .bars::after { top: 8px; }
.menu-toggle[aria-expanded="true"] .bars::before { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { top: 4px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--bg);
  padding: 32px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between;
  visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s;
}
.mobile-menu.open { visibility: visible; opacity: 1; transform: none; transition: opacity .3s, transform .3s var(--ease); }
.mobile-menu ul li { border-bottom: 1px solid var(--line); }
.mobile-menu ul a { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; text-decoration: none; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.mobile-menu ul a span { font-family: var(--mono); font-size: 11px; color: var(--muted); font-weight: 400; letter-spacing: .06em; }
.mobile-menu ul a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

@media (max-width: 1080px) {
  .nav-primary, .site-header .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* ---------- Buttons / links ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); text-decoration: none; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .25s, color .25s, transform .25s var(--ease); }
.btn:hover { background: var(--charcoal); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn .arr { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.text-link { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.text-link .arr { transition: transform .3s var(--ease); }
.text-link:hover .arr { transform: translateX(4px); }

/* ---------- Sections ---------- */
main { display: block; min-height: 60vh; }
.section { padding: clamp(80px, 11vw, 168px) 0; }
.section.tight { padding: clamp(56px, 7vw, 104px) 0; }
.section.paper { background: var(--paper); }
.section.dark { background: var(--ink); color: var(--paper); }
.section.dark .eyebrow, .section.dark .muted { color: #B9B7B0; }
.section.dark .eyebrow .idx { color: var(--paper); }
.section-head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px var(--gutter); align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.section-head h2 { font-size: clamp(34px, 4.6vw, 68px); }
.section-head .lede { font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); max-width: 46ch; }
.section-head .actions { margin-top: 24px; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 128px) 0 0; }
.hero-top { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; margin-bottom: clamp(32px, 5vw, 64px); }
.hero h1 { font-size: clamp(48px, 9.4vw, 152px); line-height: .96; letter-spacing: -0.055em; font-weight: 600; max-width: 12ch; }
.hero h1 .ln { display: block; overflow: hidden; }
.hero h1 .ln > span { display: inline-block; }
.hero-bottom { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px var(--gutter); align-items: end; padding-bottom: clamp(40px, 5vw, 64px); }
.hero-sub { font-size: clamp(19px, 1.9vw, 28px); line-height: 1.5; font-weight: 500; letter-spacing: -0.025em; max-width: 26ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.hero-figure { position: relative; height: clamp(320px, 62vh, 720px); overflow: hidden; background: #d9d6ce; }
.hero-figure img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.hero-figure figcaption { position: absolute; left: var(--gutter); bottom: 20px; color: #fff; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
@media (max-width: 860px) {
  .hero-top { grid-template-columns: 1fr; }
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-actions { justify-content: flex-start; }
}

/* ---------- Intro / capabilities ---------- */
.statement { font-size: clamp(26px, 3.3vw, 50px); line-height: 1.32; letter-spacing: -0.035em; font-weight: 500; max-width: 24ch; }
.statement em { font-style: normal; color: var(--muted); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px var(--gutter); }
.cap-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 var(--gutter); margin-top: clamp(48px, 6vw, 88px); }
.cap { border-top: 1px solid var(--line-strong); padding: 24px 0 40px; }
.cap .mono { color: var(--muted); }
.cap h3 { font-size: 22px; margin: 14px 0 10px; letter-spacing: -0.025em; }
.cap p { color: var(--muted); font-size: 16px; max-width: 38ch; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } .cap-list { grid-template-columns: 1fr; } }

/* ---------- Expertise list ---------- */
.exp-list { border-top: 1px solid var(--line-strong); }
.exp-row { border-bottom: 1px solid var(--line-strong); }
.exp-row a { display: grid; grid-template-columns: 80px minmax(0, 6fr) minmax(0, 4fr) 48px; gap: 16px var(--gutter); align-items: center; padding: clamp(24px, 3vw, 40px) 0; text-decoration: none; position: relative; }
.exp-row .num { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.exp-row h3 { font-size: clamp(24px, 3vw, 44px); letter-spacing: -0.04em; font-weight: 600; transition: transform .45s var(--ease); }
.exp-row .ko { display: block; font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: -0.01em; margin-top: 8px; }
.exp-row .desc { color: var(--muted); font-size: 15px; }
.exp-row .go { width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; transition: background .3s, color .3s, border-color .3s; font-size: 16px; }
.exp-row a:hover .go, .exp-row a:focus-visible .go { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.exp-row a:hover h3 { transform: translateX(10px); }
.exp-peek { position: fixed; z-index: 30; width: 280px; aspect-ratio: 4/5; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.92); transition: opacity .3s, transform .4s var(--ease); overflow: hidden; background: #ccc; }
.exp-peek.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.exp-peek img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .exp-row a { grid-template-columns: 44px minmax(0,1fr) 44px; }
  .exp-row .desc { display: none; }
  .exp-peek { display: none; }
}

/* ---------- Cards / grids ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(20px, 2.4vw, 36px); }
@media (max-width: 1080px) { .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 16px; }
.card .media { aspect-ratio: 4/3; overflow: hidden; background: #DEDBD3; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .media img { transform: scale(1.04); }
.card .meta { display: flex; gap: 12px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card h3 { font-size: 22px; letter-spacing: -0.03em; }
.card p { color: var(--muted); font-size: 15px; }

/* skeleton */
.skel { display: flex; flex-direction: column; gap: 14px; }
.skel .b { background: linear-gradient(90deg, rgba(20,20,20,.06) 0%, rgba(20,20,20,.1) 50%, rgba(20,20,20,.06) 100%); background-size: 200% 100%; animation: shimmer 2.4s linear infinite; }
.skel .b.media { aspect-ratio: 4/3; }
.skel .b.l1 { height: 10px; width: 36%; }
.skel .b.l2 { height: 20px; width: 78%; }
.skel .b.l3 { height: 12px; width: 92%; }
.skel .b.l4 { height: 12px; width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* empty state */
.empty { position: relative; }
.empty .skel-layer { opacity: .9; }
.empty-note {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 24px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--bg) 25%, transparent) 0%, color-mix(in oklab, var(--bg) 92%, transparent) 55%);
}
.section.paper .empty-note { background: linear-gradient(180deg, color-mix(in oklab, var(--paper) 25%, transparent) 0%, color-mix(in oklab, var(--paper) 92%, transparent) 55%); }
.empty-note .box { text-align: center; max-width: 520px; }
.empty-note .box .mono { color: var(--muted); }
.empty-note .box h3 { font-size: clamp(22px, 2.4vw, 30px); margin: 14px 0 12px; }
.empty-note .box p { color: var(--muted); font-size: 16px; }
.empty-note .box .text-link { margin-top: 24px; }
.empty.inline { border-top: 1px solid var(--line-strong); padding: 40px 0; }
.empty.inline h3 { font-size: 22px; margin: 10px 0 8px; }
.empty.inline p { color: var(--muted); max-width: 52ch; }

/* ---------- Page header (sub pages) ---------- */
.page-head { padding: clamp(56px, 8vw, 120px) 0 clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(48px, 8vw, 128px); letter-spacing: -0.055em; line-height: .98; margin-top: 24px; }
.page-head .lede { margin-top: 28px; font-size: clamp(18px, 1.6vw, 24px); max-width: 36ch; font-weight: 500; letter-spacing: -0.02em; color: var(--charcoal); }
.crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }

.wide-figure { height: clamp(260px, 48vh, 560px); overflow: hidden; background: #d9d6ce; }
.wide-figure img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- About ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px var(--gutter); }
.two-col + .two-col { margin-top: clamp(64px, 8vw, 120px); }
.two-col h2 { font-size: clamp(28px, 3vw, 40px); }
.prose p + p { margin-top: 1.2em; }
.prose { font-size: 18px; max-width: 62ch; color: var(--charcoal); }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0 var(--gutter); }
.principles li { border-top: 1px solid var(--line-strong); padding: 22px 0 8px; }
.principles h3 { font-size: 20px; margin: 12px 0 8px; }
.principles p { font-size: 15px; color: var(--muted); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } .principles { grid-template-columns: 1fr; } }
.area-list li { display: grid; grid-template-columns: 60px 1fr auto; gap: 16px; border-top: 1px solid var(--line); padding: 18px 0; align-items: baseline; }
.area-list li:last-child { border-bottom: 1px solid var(--line); }
.area-list .mono { color: var(--muted); }
.area-list a { font-size: 14px; }

/* ---------- Expertise detail ---------- */
.exp-detail-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px var(--gutter); }
.scope-list li { border-top: 1px solid var(--line); padding: 16px 0; display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.scope-list li:last-child { border-bottom: 1px solid var(--line); }
.scope-list .mono { color: var(--muted); padding-top: 4px; }
.exp-nav { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line-strong); padding-top: 24px; margin-top: clamp(64px, 8vw, 120px); }
.exp-nav a { text-decoration: none; max-width: 45%; }
.exp-nav a .mono { color: var(--muted); display: block; margin-bottom: 6px; }
.exp-nav a strong { font-size: clamp(18px, 2vw, 26px); letter-spacing: -0.03em; }
.exp-nav a:hover strong { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.exp-nav .next { text-align: right; margin-left: auto; }
@media (max-width: 860px) { .exp-detail-grid { grid-template-columns: 1fr; } }

/* ---------- Filters ---------- */
.filters { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; padding: 24px 0; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.field-s label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field-s input, .field-s select { width: 100%; height: 46px; border: 1px solid var(--line-strong); background: var(--paper); padding: 0 14px; border-radius: 0; appearance: none; -webkit-appearance: none; }
.field-s select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field-s input:focus, .field-s select:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.btn-reset { height: 46px; padding: 0 18px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; font-size: 14px; }
.btn-reset:hover { border-color: var(--ink); }
.result-line { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px; font-size: 13px; background: transparent; cursor: pointer; min-height: 38px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (max-width: 960px) { .filters { grid-template-columns: 1fr 1fr; } .filters .search { grid-column: 1 / -1; } }

/* ---------- Log list ---------- */
.log-list li { border-top: 1px solid var(--line); }
.log-item { display: grid; grid-template-columns: 140px minmax(0,1fr) 240px; gap: 24px var(--gutter); padding: 28px 0; text-decoration: none; align-items: start; }
.log-item .media { aspect-ratio: 3/2; overflow: hidden; background: #ddd; }
@media (max-width: 860px) { .log-item { grid-template-columns: 1fr; } }

/* ---------- Article detail ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article h1 { font-size: clamp(36px, 5vw, 64px); }
.article .prose { margin-top: 40px; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px var(--gutter); }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.proto-flag { border: 1px solid var(--line-strong); padding: 16px 18px; font-size: 14px; color: var(--charcoal); background: var(--paper); display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.proto-flag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); margin-top: 8px; }
.form { display: grid; gap: 28px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 640px) { .form .row2 { grid-template-columns: 1fr; } }
.fld label, .fld legend { display: block; font-size: 14px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.fld .req { color: var(--warn); margin-left: 4px; }
.fld input[type=text], .fld input[type=email], .fld textarea, .fld select {
  width: 100%; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; padding: 10px 0; font-size: 17px; border-radius: 0; min-height: 48px;
}
.fld select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 10px) 22px, calc(100% - 5px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.fld textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.fld input:focus, .fld textarea:focus, .fld select:focus { outline: none; border-bottom: 2px solid var(--ink); }
.fld [aria-invalid="true"] { border-bottom-color: var(--warn) !important; }
.fld .hint { font-size: 13px; color: var(--muted); margin-top: 8px; }
.fld .err { font-size: 13px; color: var(--warn); margin-top: 8px; font-weight: 600; }
.fld .err:empty { display: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.type-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.type-grid label { margin: 0; font-weight: 500; font-size: 14px; }
.type-grid input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.type-grid span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.type-grid input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.type-grid input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.consent { border: 1px solid var(--line); background: var(--paper); padding: 20px; font-size: 14px; color: var(--charcoal); }
.consent dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 16px; margin: 0 0 14px; }
.consent dt { color: var(--muted); } .consent dd { margin: 0; }
.consent .review { font-size: 13px; color: var(--warn); margin-bottom: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 600; font-size: 15px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.err-summary { border: 1px solid var(--warn); padding: 18px 20px; background: color-mix(in oklab, var(--warn) 6%, var(--paper)); }
.err-summary h2 { font-size: 17px; letter-spacing: -0.01em; margin-bottom: 8px; }
.err-summary ul { list-style: disc; padding-left: 18px; font-size: 14px; }
.err-summary a { color: var(--ink); }
.success { border: 1px solid var(--ink); padding: clamp(24px, 4vw, 44px); background: var(--paper); }
.success h2 { font-size: clamp(26px, 3vw, 36px); margin: 12px 0 14px; }
.success p { color: var(--charcoal); }
.success dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 16px; margin: 24px 0; font-size: 15px; border-top: 1px solid var(--line); padding-top: 20px; }
.success dt { color: var(--muted); } .success dd { margin: 0; white-space: pre-wrap; word-break: break-all; }

/* ---------- CTA band ---------- */
.cta-band h2 { font-size: clamp(40px, 7vw, 112px); letter-spacing: -0.05em; line-height: 1; max-width: 14ch; }
.cta-band .row { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-top: 48px; }
.section.dark .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.section.dark .btn:hover { background: transparent; color: var(--paper); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D8D6CF; padding: clamp(56px, 7vw, 96px) 0 32px; border-top: 1px solid #2a2a2a; }
.site-footer .top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px var(--gutter); }
.site-footer .slogan { font-size: clamp(26px, 3vw, 40px); color: #fff; letter-spacing: -0.04em; font-weight: 600; line-height: 1.15; max-width: 16ch; }
.site-footer nav ul { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 24px; }
.site-footer a { text-decoration: none; font-size: 14px; letter-spacing: .06em; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-footer .bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid #333; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: #A8A6A0; text-transform: uppercase; }
@media (max-width: 860px) { .site-footer .top { grid-template-columns: 1fr; } }

/* ---------- Preview banner (builder preview entry only) ---------- */
.preview-banner { position: sticky; top: 0; z-index: 60; background: #1d1d1b; color: #f4f2ec; font-size: 13px; padding: 10px var(--gutter); display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.preview-banner strong { color: #FFD9B0; font-weight: 600; }
.preview-banner a { color: #fff; }
body.is-preview .site-header { top: 40px; }
.tag-example { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; border: 1px dashed var(--warn); color: var(--warn); padding: 3px 8px; }
.ph-media { width: 100%; height: 100%; display: grid; place-items: center; background: repeating-linear-gradient(135deg, #E4E1D9 0 10px, #DCD9D0 10px 20px); font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; text-align: center; padding: 12px; }

/* ---------- Reveal motion ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; }
.hero h1 .ln > span { transform: translateY(105%); transition: transform 1.1s var(--ease); }
.hero.ready h1 .ln > span { transform: none; }
.hero h1 .ln:nth-child(2) > span { transition-delay: .08s; }
.hero h1 .ln:nth-child(3) > span { transition-delay: .16s; }
.view-enter { animation: viewIn .6s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .rv { opacity: 1; transform: none; }
  .hero h1 .ln > span { transform: none; }
  .hero-figure img { transform: none !important; height: 100%; }
  .skel .b { animation: none; }
  .exp-peek { display: none; }
}
