/* ==========================================================================
   RUNNING SPACE LAB
   Shape lock : radius 0 everywhere (architectural, drawing-like).
   Accent lock: deep forest green, used for every interactive accent.
   Theme lock : one theme per page, follows prefers-color-scheme.
   ========================================================================== */

:root {
  --paper:      #f6f5f2;
  --paper-2:    #edebe6;
  --surface:    #fcfbf9;
  --ink:        #1a1b19;
  --ink-2:      #43453f;
  --muted:      #74766e;
  --line:       #dddbd4;
  --line-2:     #c8c5bc;

  --accent:     #27463c;
  --accent-hi:  #2f5648;
  --accent-on:  #f6f5f2;
  --accent-soft: rgba(39, 70, 60, .07);

  --on-media:   #f7f6f3;
  --on-media-2: rgba(247, 246, 243, .78);

  --shadow: 0 1px 2px rgba(26, 27, 25, .04), 0 12px 32px -12px rgba(26, 27, 25, .14);

  --wrap: 1280px;
  --gut: clamp(20px, 5vw, 64px);
  --sec-y: clamp(72px, 10vw, 148px);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --t: .45s var(--ease);

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #141513;
    --paper-2:    #1c1e1a;
    --surface:    #1a1c18;
    --ink:        #f0efea;
    --ink-2:      #c7c8c1;
    --muted:      #94968d;
    --line:       #2e302b;
    --line-2:     #3c3e38;

    --accent:     #8ab9a7;
    --accent-hi:  #a3cbbb;
    --accent-on:  #10120f;
    --accent-soft: rgba(138, 185, 167, .12);

    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 36px -14px rgba(0, 0, 0, .6);
  }
}

/* --------------------------------------------------------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; background: var(--paper-2); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, figure, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sr, .skip {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  width: auto; height: auto; clip: auto; margin: 0;
  padding: 10px 16px; background: var(--accent); color: var(--accent-on);
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sec { padding-block: var(--sec-y); }

/* ---------------------------------------------------- typography --------- */

.h2 {
  font-size: clamp(1.6rem, 3.3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -.035em;
}
.h2--light { color: var(--on-media); }

.lead {
  margin-top: 20px;
  max-width: 54ch;
  color: var(--ink-2);
  font-size: clamp(.98rem, 1.2vw, 1.075rem);
  line-height: 1.85;
}
.lead--wide { max-width: 62ch; }

.eyebrow {
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}

.note {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}
.note--tight { margin-top: 20px; padding-top: 0; border: 0; }

.link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 10px; color: var(--accent); font-weight: 600;
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
}
.link i { transition: transform var(--t); }
.link:hover i { transform: translateX(4px); }

.br-lg { display: none; }
@media (min-width: 900px) { .br-lg { display: inline; } }

/* -------------------------------------------------------- buttons -------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px;
  border: 1px solid transparent; border-radius: 0;
  font-size: .94rem; font-weight: 600; letter-spacing: -.01em;
  white-space: nowrap; cursor: pointer;
  transition: background-color var(--t), color var(--t), border-color var(--t), transform .18s var(--ease);
}
.btn i { font-size: 1.05em; transition: transform var(--t); }
.btn:hover i { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--solid { background: var(--accent); color: var(--accent-on); }
.btn--solid:hover { background: var(--accent-hi); }

.btn--ghost-light {
  background: transparent; color: var(--on-media);
  border-color: rgba(247, 246, 243, .45);
  backdrop-filter: blur(4px);
}
.btn--ghost-light:hover { background: rgba(247, 246, 243, .14); border-color: var(--on-media); }

.btn--sm { padding: 10px 18px; font-size: .86rem; }
.btn--full { width: 100%; margin-top: 8px; padding-block: 16px; }

/* ------------------------------------------------------------ nav -------- */

/* Over the hero the bar is transparent with light type; once the hero is past
   it turns into a solid bar. One state change, so the page header always
   stays legible against what is behind it. */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  color: var(--on-media);
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.nav .brand__mark { color: var(--on-media); }
.nav .brand__txt small { color: rgba(247, 246, 243, .62); }
.nav .nav__links a { color: rgba(247, 246, 243, .82); }
.nav .nav__links a:hover { color: var(--on-media); }
.nav .nav__toggle { border-color: rgba(247, 246, 243, .42); }

.nav.is-stuck {
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav.is-stuck .brand__mark { color: var(--accent); }
.nav.is-stuck .brand__txt small { color: var(--muted); }
.nav.is-stuck .nav__links a { color: var(--ink-2); }
.nav.is-stuck .nav__links a:hover { color: var(--ink); }
.nav.is-stuck .nav__toggle { border-color: var(--line-2); }

/* an open mobile menu always sits on a solid bar */
.nav.menu-open { color: var(--ink); background: var(--paper); border-bottom-color: transparent; }
.nav.menu-open .brand__mark { color: var(--accent); }
.nav.menu-open .brand__txt small { color: var(--muted); }
.nav.menu-open .nav__toggle { border-color: var(--line-2); }
@supports not (backdrop-filter: blur(1px)) { .nav.is-stuck { background: var(--paper); } }

.nav__in {
  display: flex; align-items: center; gap: 28px;
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding: 14px var(--gut);
  height: 72px;
}

.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand__mark {
  width: 22px; height: 22px; flex: none;
  border: 1.5px solid currentColor;
  background:
    linear-gradient(to right, currentColor 0 1.5px, transparent 1.5px) 50% 0 / 1.5px 100% no-repeat,
    linear-gradient(to bottom, currentColor 0 1.5px, transparent 1.5px) 0 50% / 100% 1.5px no-repeat;
  color: var(--accent);
}
.brand__mark--light { color: var(--on-media); }
.brand__txt { display: grid; line-height: 1.2; }
.brand__txt strong { font-size: .84rem; font-weight: 700; letter-spacing: .1em; }
.brand__txt small { font-size: .7rem; color: var(--muted); letter-spacing: .02em; }

.nav__links { display: none; gap: 26px; font-size: .9rem; }
.nav__links a { position: relative; color: var(--ink-2); padding-block: 4px; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--t);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta { display: none; }

.nav__toggle {
  display: grid; place-items: center;
  width: 42px; height: 42px; padding: 0;
  background: transparent; border: 1px solid var(--line-2); cursor: pointer;
  font-size: 1.3rem;
}

.menu[hidden] { display: none; }
.menu {
  display: grid; gap: 2px;
  padding: 8px var(--gut) 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.menu a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .98rem; color: var(--ink); }
.menu a:last-child { border-bottom: 0; }
.menu__cta { margin-top: 10px; color: var(--accent); font-weight: 700; }

@media (min-width: 1040px) {
  .nav__links, .nav__cta { display: flex; }
  .nav__toggle { display: none; }
  .menu { display: none !important; }
}

/* ----------------------------------------------------------- hero -------- */

.hero {
  position: relative;
  min-height: min(100dvh, 860px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 112px;
  overflow: hidden;
  isolation: isolate;
}
.hero__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  animation: heroIn 1.6s var(--ease) both;
}
@keyframes heroIn { from { transform: scale(1.07); } to { transform: scale(1); } }

.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(14, 16, 14, .9) 0%, rgba(14, 16, 14, .62) 42%, rgba(14, 16, 14, .3) 78%, rgba(14, 16, 14, .42) 100%);
}

.hero__body { padding-bottom: clamp(40px, 6vw, 72px); }
.hero__h1 {
  max-width: 17ch;
  color: var(--on-media);
  font-size: clamp(2rem, 5.1vw, 3.9rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.04em;
}
.hero__p {
  margin-top: 22px; max-width: 46ch;
  color: var(--on-media-2);
  font-size: clamp(.98rem, 1.3vw, 1.1rem);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero__strip {
  display: flex; flex-wrap: wrap;
  border-top: 1px solid rgba(247, 246, 243, .22);
  background: rgba(14, 16, 14, .4);
  backdrop-filter: blur(6px);
}
.hero__strip li {
  flex: 1 1 50%;
  padding: 16px var(--gut);
  color: var(--on-media-2);
  font-size: .82rem; letter-spacing: .02em;
  border-bottom: 1px solid rgba(247, 246, 243, .14);
}
@media (min-width: 760px) {
  .hero__strip li { flex: 1 1 0; border-bottom: 0; border-right: 1px solid rgba(247, 246, 243, .16); padding-inline: 0; text-align: center; }
  .hero__strip li:last-child { border-right: 0; }
}

/* ---------------------------------------------------------- brand -------- */

.grid-split { display: grid; gap: clamp(36px, 5vw, 72px); }
@media (min-width: 980px) {
  .grid-split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }
  .grid-split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 96px); }
  .split__lead { position: sticky; top: 112px; }
}

.pillars { display: grid; }
.pillar {
  display: grid; grid-template-columns: 46px 1fr; gap: 18px;
  padding-block: 26px;
  border-top: 1px solid var(--line);
}
.pillar:last-child { border-bottom: 1px solid var(--line); }
.pillar__idx { font-family: var(--mono); font-size: .76rem; color: var(--accent); letter-spacing: .08em; padding-top: 6px; }
.pillar h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -.02em; }
.pillar p { margin-top: 8px; color: var(--muted); font-size: .93rem; line-height: 1.8; }

.services {
  display: grid; gap: 1px;
  margin-top: clamp(56px, 7vw, 96px);
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 680px) { .services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .services { grid-template-columns: repeat(3, 1fr); } }
.services li {
  background: var(--paper);
  padding: clamp(22px, 2.6vw, 32px);
  transition: background-color var(--t);
}
.services li:hover { background: var(--surface); }
.services span { font-family: var(--mono); font-size: .72rem; color: var(--accent); letter-spacing: .12em; }
.services h3 { margin-top: 10px; font-size: 1.02rem; font-weight: 700; letter-spacing: -.02em; }
.services p { margin-top: 6px; color: var(--muted); font-size: .88rem; line-height: 1.75; }

/* ---------------------------------------------------------- types -------- */

.types { background: var(--paper-2); }

.bento { display: grid; gap: 14px; margin-top: clamp(40px, 5vw, 64px); }
@media (min-width: 820px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas: "a a b" "c d b";
  }
  .cell--wide { grid-area: a; }
  .cell--tall { grid-area: b; }
  .bento > .cell:nth-child(3) { grid-area: c; }
  .bento > .cell:nth-child(4) { grid-area: d; }
}

.cell {
  position: relative; display: flex; flex-direction: column;
  min-height: 260px;
  background: var(--ink); color: var(--on-media);
  overflow: hidden; isolation: isolate;
}
.cell img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .58;
  transition: transform 1.1s var(--ease), opacity var(--t);
}
.cell::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(12, 14, 12, .88) 10%, rgba(12, 14, 12, .3) 70%);
}
.cell:hover img { transform: scale(1.05); opacity: .68; }

.cell__txt { margin-top: auto; padding: clamp(22px, 2.4vw, 30px); }
.cell h3 { font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 700; letter-spacing: -.025em; }
.cell p { margin-top: 10px; max-width: 44ch; color: var(--on-media-2); font-size: .89rem; line-height: 1.8; }
.cell__go {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
  font-size: .82rem; font-weight: 600; letter-spacing: .01em;
  border-bottom: 1px solid rgba(247, 246, 243, .4); padding-bottom: 2px;
}
.cell__go i { transition: transform var(--t); }
.cell:hover .cell__go i { transform: translateX(4px); }

.cell--wide { min-height: 320px; }
.cell--tall { min-height: 360px; }
@media (min-width: 820px) { .cell--tall { min-height: 100%; } }

/* ---------------------------------------------------------- cases -------- */

.case__head { max-width: 72ch; }
.case__head--row { display: grid; gap: 24px; }
@media (min-width: 980px) {
  .case__head--row { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(40px, 5vw, 80px); align-items: end; max-width: none; }
  .case__head--row .lead { margin-top: 0; }
}

.case__tag {
  margin-bottom: 16px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
}

/* before / after */
.ba { margin-top: clamp(40px, 5vw, 64px); }
.ba__stage {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--paper-2);
  touch-action: pan-y;
  cursor: ew-resize;
}
@media (max-width: 680px) { .ba__stage { aspect-ratio: 4 / 5; } }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__clip {
  position: absolute; inset: 0;
  clip-path: inset(0 50% 0 0);
  will-change: clip-path;
}
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; margin-left: -1px;
  background: var(--on-media);
  display: grid; place-items: center;
  pointer-events: none;
}
.ba__handle i {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--on-media); color: var(--ink); font-size: 1.2rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .3);
}
.ba__badge {
  position: absolute; top: 14px;
  padding: 6px 12px;
  background: rgba(12, 14, 12, .72); color: var(--on-media);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.ba__badge--l { left: 14px; }
.ba__badge--r { right: 14px; }

.ba__ctl { display: block; margin-top: 14px; }
.ba__ctl input {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 3px; margin: 10px 0;
  background: var(--line-2); cursor: ew-resize;
}
.ba__ctl input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; background: var(--accent); border: 0; cursor: ew-resize;
}
.ba__ctl input::-moz-range-thumb {
  width: 20px; height: 20px; background: var(--accent); border: 0; border-radius: 0; cursor: ew-resize;
}
.ba figcaption { color: var(--muted); font-size: .86rem; }

.compare {
  display: grid; gap: 1px;
  margin-top: clamp(40px, 5vw, 64px);
  background: var(--line); border: 1px solid var(--line);
}
@media (min-width: 760px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare__row { background: var(--paper); padding: clamp(20px, 2.4vw, 28px); }
.compare__row h3 { font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.compare__was, .compare__now { position: relative; padding-left: 20px; margin-top: 12px; font-size: .95rem; line-height: 1.6; }
.compare__was { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.compare__now { color: var(--ink); font-weight: 600; }
.compare__was::before, .compare__now::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: 10px; height: 1px; background: var(--line-2);
}
.compare__now::before { background: var(--accent); height: 2px; }

.facts {
  display: grid; gap: 22px 32px;
  margin-top: clamp(36px, 4vw, 52px);
  padding-top: 26px; border-top: 1px solid var(--line);
}
@media (min-width: 680px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts dt { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin-top: 8px; font-size: .95rem; font-weight: 600; line-height: 1.55; }

/* case 02 */
.case--02 { background: var(--paper-2); }
.band {
  display: grid; gap: 14px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-inline: var(--gut);
  max-width: var(--wrap); margin-inline: auto;
}
@media (min-width: 820px) { .band { grid-template-columns: .72fr 1fr .72fr; align-items: end; } }
.band figure { display: grid; gap: 12px; }
.band img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 820px) { .band figure:nth-child(2) img { aspect-ratio: 4 / 3; } }
.band figcaption { color: var(--muted); font-size: .82rem; line-height: 1.65; }

.scope { display: grid; gap: clamp(32px, 4vw, 56px); margin-top: clamp(44px, 5vw, 72px); }
@media (min-width: 980px) { .scope { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.scope__list { display: grid; }
.scope__item { padding-block: 22px; border-top: 1px solid var(--line-2); }
.scope__item:last-child { border-bottom: 1px solid var(--line-2); }
.scope__item h3 { font-size: 1rem; font-weight: 700; letter-spacing: -.02em; }
.scope__item p { margin-top: 6px; color: var(--muted); font-size: .9rem; }
.scope__spec { background: var(--surface); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); align-self: start; }
.scope__spec h3 { font-size: .95rem; font-weight: 700; letter-spacing: -.02em; }
.scope__spec p { margin-top: 14px; color: var(--ink-2); font-size: .9rem; line-height: 1.8; }
.scope__spec b { display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.scope__quote {
  margin-top: 22px !important; padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: .93rem !important; color: var(--ink) !important; letter-spacing: -.015em;
}

/* case 03 */
.case03 { display: grid; gap: clamp(36px, 5vw, 72px); }
@media (min-width: 980px) { .case03 { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: start; } }
.steps-v { display: grid; margin-top: clamp(32px, 4vw, 48px); }
.steps-v li {
  position: relative; padding: 20px 0 20px 46px;
  border-top: 1px solid var(--line);
  counter-increment: s;
}
.steps-v { counter-reset: s; }
.steps-v li:last-child { border-bottom: 1px solid var(--line); }
.steps-v li::before {
  content: "0" counter(s);
  position: absolute; left: 0; top: 23px;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; color: var(--accent);
}
.steps-v h3 { font-size: 1rem; font-weight: 700; letter-spacing: -.02em; }
.steps-v p { margin-top: 6px; color: var(--muted); font-size: .9rem; }

.asis {
  display: grid; gap: 18px; align-items: center;
  margin-top: clamp(32px, 4vw, 44px);
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--surface); box-shadow: var(--shadow);
}
@media (min-width: 620px) { .asis { grid-template-columns: 1fr auto 1fr; } }
.asis h4 { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.asis div:last-of-type h4 { color: var(--accent); }
.asis p { margin-top: 8px; font-size: .9rem; line-height: 1.75; color: var(--ink-2); }
.asis__arrow { font-size: 1.4rem; color: var(--accent); justify-self: center; }

.case03__fig { display: grid; gap: 14px; }
.case03__fig img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
@media (min-width: 980px) { .case03__fig { position: sticky; top: 112px; } .case03__fig img { aspect-ratio: 2 / 3; } }
.case03__fig figcaption {
  color: var(--muted); font-size: .84rem; line-height: 1.7;
  padding-left: 14px; border-left: 2px solid var(--accent);
}

.full { margin-top: clamp(48px, 6vw, 88px); }
.full img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 680px) { .full img { aspect-ratio: 16 / 10; } }

/* case 04 */
.case--04 { background: var(--paper-2); }
.tiles { display: grid; gap: 14px; margin-top: clamp(40px, 5vw, 64px); }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { background: var(--surface); padding: clamp(24px, 2.8vw, 34px); box-shadow: var(--shadow); }
.tile h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.025em; }
.tile p { margin-top: 10px; color: var(--muted); font-size: .9rem; line-height: 1.8; }
@media (min-width: 760px) {
  .tile--hero { grid-column: span 2; display: grid; align-content: center; background: var(--accent); box-shadow: none; }
  .tile--hero h3 { color: var(--accent-on); font-size: clamp(1.2rem, 2vw, 1.6rem); }
  .tile--hero p { color: color-mix(in srgb, var(--accent-on) 80%, transparent); font-size: .96rem; max-width: 46ch; }
  .tile--wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 20px; align-items: baseline; }
  .tile--wide p { margin-top: 0; }
}

.shots { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 760px) { .shots { grid-template-columns: repeat(4, 1fr); } }
.shots figure img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.shots__note { background: var(--surface); padding: clamp(22px, 2.4vw, 28px); box-shadow: var(--shadow); align-self: stretch; }
.shots__note h3 { font-size: .95rem; font-weight: 700; letter-spacing: -.02em; }
.shots__note p { margin-top: 10px; color: var(--muted); font-size: .86rem; line-height: 1.8; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips li {
  padding: 6px 12px;
  background: var(--accent-soft); color: var(--accent);
  font-size: .78rem; font-weight: 600; letter-spacing: -.005em;
}
.chips--lg li { padding: 10px 16px; font-size: .86rem; }

/* ------------------------------------------------------ furniture -------- */

.seats { display: grid; gap: clamp(28px, 3vw, 36px); margin-top: clamp(44px, 5vw, 68px); }
@media (min-width: 880px) { .seats { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.seat img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 880px) { .seat--drop { margin-top: 56px; } .seat--drop img { aspect-ratio: 3 / 4; } }
.seat h3 { margin-top: 20px; font-size: 1.08rem; font-weight: 700; letter-spacing: -.025em; }
.seat h3 em {
  display: block; margin-bottom: 7px;
  font-family: var(--mono); font-style: normal; font-size: .68rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 600;
}
.seat p { margin-top: 10px; color: var(--muted); font-size: .9rem; line-height: 1.8; }
.seat__mat { margin-top: 12px !important; padding-top: 12px; border-top: 1px solid var(--line); font-size: .81rem !important; }

.mto {
  display: grid; gap: 22px clamp(36px, 4vw, 64px);
  margin-top: clamp(56px, 6vw, 88px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line-2);
}
@media (min-width: 900px) { .mto { grid-template-columns: minmax(0, .5fr) minmax(0, 1fr); } .mto .note--tight { grid-column: 2; margin-top: 4px; } }
.mto h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 700; letter-spacing: -.03em; }
.mto__list { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.mto__list li { background: var(--paper); padding: 16px 0 16px 0; display: grid; gap: 4px; }
@media (min-width: 620px) { .mto__list li { grid-template-columns: 110px 1fr; gap: 20px; align-items: baseline; } }
.mto__list b { font-size: .92rem; font-weight: 700; letter-spacing: -.015em; }
.mto__list li { color: var(--muted); font-size: .9rem; }

/* -------------------------------------------------------- process -------- */

.process { background: var(--paper-2); }
.rail { display: grid; gap: 1px; margin-top: clamp(40px, 5vw, 60px); background: var(--line-2); border-top: 1px solid var(--line-2); }
@media (min-width: 880px) { .rail { grid-template-columns: repeat(4, 1fr); } }
.rail li { position: relative; background: var(--paper-2); padding: clamp(26px, 3vw, 38px) clamp(20px, 2vw, 28px) clamp(26px, 3vw, 38px) 0; }
@media (min-width: 880px) { .rail li { padding-left: clamp(20px, 2vw, 28px); } .rail li:first-child { padding-left: 0; } }
.rail span {
  display: block; font-family: var(--mono); font-size: .74rem;
  letter-spacing: .12em; color: var(--accent);
}
.rail h3 { margin-top: 14px; font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 700; letter-spacing: -.03em; }
.rail p { margin-top: 10px; color: var(--muted); font-size: .89rem; line-height: 1.8; }
.rail li::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0;
  background: var(--accent); transition: width .8s var(--ease);
}
.rail li.is-in::before { width: 100%; }
@media (prefers-reduced-motion: reduce) { .rail li::before { width: 100%; transition: none; } }

/* ------------------------------------------------- promise + faq --------- */

.vows { display: grid; margin-top: clamp(28px, 3vw, 40px); counter-reset: v; }
.vows li { position: relative; padding: 22px 0 22px 48px; border-top: 1px solid var(--line); counter-increment: v; }
.vows li:last-child { border-bottom: 1px solid var(--line); }
.vows li::before {
  content: "0" counter(v);
  position: absolute; left: 0; top: 25px;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; color: var(--accent);
}
.vows h3 { font-size: 1rem; font-weight: 700; letter-spacing: -.02em; }
.vows p { margin-top: 6px; color: var(--muted); font-size: .9rem; }

.prep { margin-top: clamp(36px, 4vw, 52px); padding: clamp(22px, 2.6vw, 30px); background: var(--surface); box-shadow: var(--shadow); }
.prep h3 { font-size: .95rem; font-weight: 700; letter-spacing: -.02em; }

.faq { align-self: start; }
.qa { border-top: 1px solid var(--line); }
.qa:last-of-type { border-bottom: 1px solid var(--line); }
.faq .h2 { margin-bottom: clamp(24px, 3vw, 36px); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: 1rem; font-weight: 600; letter-spacing: -.02em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { flex: none; font-size: 1.15rem; color: var(--accent); transition: transform var(--t); }
.qa[open] summary i { transform: rotate(45deg); }
.qa summary:hover span { color: var(--accent); }
.qa__a { padding-bottom: 22px; color: var(--muted); font-size: .92rem; line-height: 1.85; max-width: 52ch; }
@media (prefers-reduced-motion: no-preference) {
  .qa[open] .qa__a { animation: qaIn .4s var(--ease) both; }
  @keyframes qaIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}

/* -------------------------------------------------------- contact -------- */

.contact { position: relative; isolation: isolate; overflow: hidden; }
.contact__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.contact__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to right, rgba(12, 14, 12, .95) 0%, rgba(12, 14, 12, .86) 46%, rgba(12, 14, 12, .68) 100%);
}
.contact__in { display: grid; gap: clamp(40px, 5vw, 72px); }
@media (min-width: 980px) { .contact__in { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); align-items: start; } }
.contact__lead > p { margin-top: 22px; max-width: 46ch; color: var(--on-media-2); font-size: 1rem; }

.channels { display: grid; gap: 14px; margin-top: 36px; }
.channels li {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(247, 246, 243, .22);
  background: rgba(247, 246, 243, .05);
  color: var(--on-media);
}
.channels i { font-size: 1.5rem; color: var(--on-media); opacity: .8; }
.channels b { display: block; font-size: 1.05rem; font-weight: 700; letter-spacing: .01em; }
.channels small { display: block; margin-top: 2px; color: var(--on-media-2); font-size: .8rem; }
.channels b a { border-bottom: 1px solid rgba(247, 246, 243, .35); padding-bottom: 1px; transition: border-color var(--t); }
.channels b a:hover { border-bottom-color: var(--on-media); }

.form { background: var(--surface); padding: clamp(26px, 3.2vw, 40px); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .5); }
.form__h { font-size: 1.15rem; font-weight: 700; letter-spacing: -.03em; margin-bottom: 22px; }

.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-size: .85rem; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 0;
  font-size: .94rem; line-height: 1.5;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 104px; }
.field select { cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); background: var(--surface); outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field .hint { color: var(--muted); font-size: .78rem; line-height: 1.5; }
.err { display: none; color: #b3261e; font-size: .78rem; font-weight: 600; }
@media (prefers-color-scheme: dark) { .err { color: #ef9a93; } }
.field.is-bad input, .field.is-bad select, .field.is-bad textarea { border-color: #b3261e; }
.field.is-bad .err, .err.is-on { display: block; }

.check { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 4px; font-size: .86rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--accent); }

.form__status { margin-top: 14px; font-size: .86rem; font-weight: 600; color: var(--accent); min-height: 1.4em; }

/* --------------------------------------------------------- footer -------- */

.foot { background: var(--ink); color: var(--paper); padding-block: clamp(48px, 6vw, 72px); }
@media (prefers-color-scheme: dark) { .foot { background: #0e100e; border-top: 1px solid var(--line); } }
.foot__in { display: grid; gap: 28px; }
.foot__brand { display: flex; align-items: center; gap: 13px; }
.foot__brand p { font-size: .82rem; line-height: 1.6; color: rgba(246, 245, 242, .68); }
.foot__brand strong { color: #f6f5f2; font-size: .86rem; letter-spacing: .1em; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .88rem; }
.foot__nav a { color: rgba(246, 245, 242, .72); padding-bottom: 2px; border-bottom: 1px solid transparent; transition: color var(--t), border-color var(--t); }
.foot__nav a:hover { color: #f6f5f2; border-bottom-color: currentColor; }
.foot__corp { display: grid; gap: 16px 48px; padding-top: 28px; border-top: 1px solid rgba(246, 245, 242, .14); }
@media (min-width: 640px) { .foot__corp { grid-template-columns: repeat(3, auto); justify-content: start; gap: 16px 64px; } }
.foot__corp dt { font-size: .72rem; letter-spacing: .02em; color: rgba(246, 245, 242, .42); }
.foot__corp dd { margin-top: 5px; color: rgba(246, 245, 242, .84); font-size: .88rem; }
.foot__corp a { border-bottom: 1px solid rgba(246, 245, 242, .3); padding-bottom: 1px; transition: border-color var(--t); }
.foot__corp a:hover { border-bottom-color: rgba(246, 245, 242, .85); }

.foot__fine, .foot__copy { color: rgba(246, 245, 242, .45); font-size: .78rem; line-height: 1.75; max-width: 76ch; }

@media (min-width: 900px) {
  .foot__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; }
  .foot__corp { grid-column: 1 / -1; }
  .foot__fine { grid-column: 1 / -1; }
  .foot__nav { justify-content: flex-end; }
  .foot__copy { grid-column: 1 / -1; }
}

/* ------------------------------------------------------- reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .rv[data-rv="1"] { transition-delay: .08s; }
  .rv[data-rv="2"] { transition-delay: .16s; }
  .rv[data-rv="3"] { transition-delay: .24s; }
  .rv.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__img { animation: none; }
  .cell img { transition: none; }
}
