/* Frame to Real — one stylesheet, no framework.
   Plaster and ink, one tuff accent, hairlines instead of shadows. */

@font-face { font-family: "Instrument Serif"; src: url("assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("assets/fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --plaster: #ece6dc;
  --stone: #e2dace;
  --ink: #1a1714;
  --muted: #5f574f;
  --line: rgb(26 23 20 / 0.16);
  --line-strong: rgb(26 23 20 / 0.42);
  --accent: #c4704a;        /* tuff: marks and UI on light, text on dark */
  --accent-deep: #9a4f2c;   /* tuff for text on light */

  --room: #171411;
  --room-raised: #221e19;
  --room-text: #ece6dc;
  --room-muted: #a89f93;
  --room-line: rgb(236 230 220 / 0.16);

  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1320px;
  --gutter: clamp(16px, 4.4vw, 64px);
  --section: clamp(96px, 11vw, 176px);
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font: 400 clamp(1rem, 0.95rem + 0.2vw, 1.125rem) / 1.6 var(--sans);
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
em { font-style: italic; }
code { font: 0.9em/1 var(--mono); background: rgb(26 23 20 / 0.07); padding: 0.15em 0.35em; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.btn--primary:focus-visible { outline-color: var(--ink); }
.skip-link { position: absolute; left: var(--gutter); top: 12px; z-index: 10; padding: 10px 14px; background: var(--ink); color: var(--plaster); font: 500 0.875rem/1 var(--sans); text-decoration: none; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

/* ---------- Shared type ---------- */
.label { font: 500 0.75rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.label__num { color: var(--accent-deep); margin-right: 0.9em; }
.section-title { font: 400 clamp(2.5rem, 1.55rem + 3.6vw, 4.75rem)/0.98 var(--serif); letter-spacing: -0.01em; max-width: 14ch; text-wrap: balance; }
.section-title em { color: var(--muted); }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line-strong); margin-bottom: clamp(40px, 6vw, 80px); }

.tag { display: inline-flex; align-items: center; gap: 0.6em; padding: 0.55em 0.85em; font: 500 0.75rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; background: var(--ink); color: var(--plaster); }
.tag__dot { width: 6px; height: 6px; background: var(--accent); }
.tag--outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tag--warn { background: var(--accent); color: var(--ink); }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0 1.35em;
  font: 500 0.9375rem/1 var(--sans); letter-spacing: -0.005em; text-decoration: none;
  border: 1px solid var(--ink); border-radius: 2px; cursor: pointer;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}
.btn--primary { background: var(--ink); color: var(--plaster); }
.btn--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--plaster); }
.btn--light { background: var(--room-text); color: var(--room); border-color: var(--room-text); }
.btn--light:hover { background: var(--accent); border-color: var(--accent); }
.icon-out { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform 180ms var(--ease); }
.btn:hover .icon-out { transform: translate(2px, -2px); }

/* ---------- Header ---------- */
.site-header { position: absolute; inset: 0 0 auto; z-index: 5; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.brand__mark rect:nth-child(2) { fill: var(--accent); stroke: none; }
.brand__name { font: 400 1.5rem/1 var(--serif); letter-spacing: -0.005em; }
.brand__name em { color: var(--muted); }
.site-nav ul { display: flex; gap: clamp(16px, 2.6vw, 36px); }
.site-nav a { font: 500 0.75rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; padding: 10px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 220ms var(--ease); }
.site-nav a:hover { background-size: 100% 1px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(120px, 14vw, 168px) 0 clamp(64px, 8vw, 112px); }
.hero__grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
.hero__copy { display: grid; gap: 28px; justify-items: start; }
.hero__title { font: 400 clamp(3rem, 1.3rem + 6.4vw, 7.25rem)/0.92 var(--serif); letter-spacing: -0.012em; text-wrap: balance; }
.hero__title em { display: block; color: var(--muted); }
.hero__lead { max-width: 30ch; font-size: clamp(1.125rem, 1rem + 0.55vw, 1.4375rem); line-height: 1.42; letter-spacing: -0.01em; }

/* The motif: a die-cut net around a photograph folds up into a room.
   Default values are the finished room, so the page reads correctly
   without JavaScript or with reduced motion. main.js drives the vars. */
.fold { container-type: inline-size; width: 100%; justify-self: center;
  /* Never taller than the screen, so the flat net is seen whole before it folds. */
  max-width: min(720px, calc((100vh - 160px) * 100 / 82));
  max-width: min(720px, calc((100svh - 160px) * 100 / 82));
}
.fold__stage {
  --s: 1.26;     /* overall scale */
  --af: 90;      /* floor angle, deg */
  --ac: 90;      /* ceiling */
  --al: 90;      /* left wall */
  --ar: 90;      /* right wall */
  --zk: 1;       /* how far the back wall has receded (0..1) */
  --die: 0;      /* die-line visibility (0..1) */
  --W: 62cqi; --H: calc(var(--W) * 2 / 3); --D: 30cqi;
  position: relative; aspect-ratio: 100 / 82; perspective: 66cqi; perspective-origin: 50% 42%;
}
.fold__scaler, .fold__box { position: absolute; left: 50%; top: 50%; width: var(--W); height: var(--H); margin: calc(var(--H) / -2) 0 0 calc(var(--W) / -2); transform-style: preserve-3d; }
.fold__scaler { transform: scale3d(var(--s), var(--s), var(--s)); }
.fold__box { left: 0; top: 0; margin: 0; transform: translateZ(calc(var(--D) * var(--zk) * -1)); }
.fold__back { position: absolute; inset: 0; overflow: hidden; background: #cbbca4; outline: 1px solid rgb(26 23 20 / 0.25); }
.fold__back img { width: 100%; height: 100%; object-fit: cover; }
.fold__flap { position: absolute; overflow: hidden; outline: 1px solid rgb(26 23 20 / 0.28); background: var(--stone); }
.fold__flap::before { /* fold line on the hinge edge */
  content: ""; position: absolute; opacity: var(--die); border: 0 dashed var(--accent-deep);
}
.fold__flap::after { /* light falloff once folded */
  content: ""; position: absolute; inset: 0; background: var(--ink); pointer-events: none;
}
.fold__flap--floor {
  left: 0; top: 100%; width: 100%; height: var(--D); transform-origin: 50% 0; transform: rotateX(calc(var(--af) * 1deg));
  background: #d6cdbd repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1.5px), rgb(26 23 20 / 0.14) calc(12.5% - 1.5px) 12.5%);
}
.fold__flap--floor::before { inset: 0 0 auto; border-top-width: 1px; }
.fold__flap--floor::after { background: linear-gradient(rgb(26 23 20 / 0.3), rgb(26 23 20 / 0.06) 70%); opacity: calc(var(--af) / 90); }
.fold__flap--ceiling { left: 0; bottom: 100%; width: 100%; height: var(--D); transform-origin: 50% 100%; transform: rotateX(calc(var(--ac) * -1deg)); background: #efe9df; }
.fold__flap--ceiling::before { inset: auto 0 0; border-bottom-width: 1px; }
.fold__flap--ceiling::after { background: linear-gradient(0deg, rgb(26 23 20 / 0.16), transparent 60%); opacity: calc(var(--ac) / 90); }
.fold__flap--left { right: 100%; top: 0; width: var(--D); height: 100%; transform-origin: 100% 50%; transform: rotateY(calc(var(--al) * 1deg)); background: #e6dfd3; }
.fold__flap--left::before { inset: 0 0 0 auto; border-right-width: 1px; }
.fold__flap--right { left: 100%; top: 0; width: var(--D); height: 100%; transform-origin: 0 50%; transform: rotateY(calc(var(--ar) * -1deg)); background: #e6dfd3; }
.fold__flap--right::before { inset: 0 auto 0 0; border-left-width: 1px; }
.fold__flap--left::after { background: linear-gradient(270deg, rgb(26 23 20 / 0.22), rgb(26 23 20 / 0.03) 80%); opacity: calc(var(--al) / 90); }
.fold__flap--right::after { background: linear-gradient(90deg, rgb(26 23 20 / 0.22), rgb(26 23 20 / 0.03) 80%); opacity: calc(var(--ar) / 90); }
.fold__skylight { position: absolute; inset: 22% 18%; background: repeating-linear-gradient(90deg, #fbf7f0 0 calc(25% - 4px), transparent calc(25% - 4px) 25%); outline: 1px solid rgb(26 23 20 / 0.18); }
.fold__pic { position: absolute; left: 22%; top: 24%; width: 56%; height: auto; outline: 3px solid #f5f0e8; box-shadow: 0 0 0 4px rgb(26 23 20 / 0.12); }
.fold__flap--right .fold__pic { top: 34%; }
.fold__die {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  /* Divided by the flat state's 0.72 scale so the labels stay legible there. */
  font: 500 calc(clamp(0.625rem, 1.5cqi, 0.75rem) / 0.72)/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-deep); opacity: var(--die); white-space: nowrap;
}
.fold__flap--left .fold__die, .fold__flap--right .fold__die { top: 12%; }
.fold__flap--ceiling .fold__die { top: 10%; z-index: 1; }
.fold__crop i { position: absolute; width: 7cqi; height: 7cqi; border: 0 solid var(--ink); }
.fold__crop i:nth-child(1) { left: -2.4cqi; top: -2.4cqi; border-width: 1.5px 0 0 1.5px; }
.fold__crop i:nth-child(2) { right: -2.4cqi; top: -2.4cqi; border-width: 1.5px 1.5px 0 0; }
.fold__crop i:nth-child(3) { left: -2.4cqi; bottom: -2.4cqi; border-width: 0 0 1.5px 1.5px; }
.fold__crop i:nth-child(4) { right: -2.4cqi; bottom: -2.4cqi; border-width: 0 1.5px 1.5px 0; }
.fold__crop { position: absolute; inset: 0; pointer-events: none; }

.fold__readout { margin-top: clamp(16px, 2.4vw, 28px); }
.fold__readout ol { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.fold__readout li { position: relative; padding-top: 14px; display: grid; gap: 4px; align-content: start; color: var(--muted); transition: color 240ms var(--ease); }
.fold__readout li::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--ink); transform: scaleX(var(--fill, 1)); transform-origin: 0 50%; }
.fold__step-num { font: 500 0.75rem/1 var(--mono); letter-spacing: 0.08em; color: var(--accent-deep); }
.fold__step-name { font: 400 1.375rem/1 var(--serif); color: var(--ink); }
.fold__step-text { font-size: 0.8125rem; line-height: 1.35; padding-right: 12px; text-wrap: balance; }

/* Scroll-driven version. The .motion class is set in <head> before first
   paint (when motion is allowed), so the hero starts as the flat net. */
.motion .fold__stage { --af: 0; --ac: 0; --al: 0; --ar: 0; --zk: 0; --s: 0.72; --die: 1; }
.motion .fold__readout li { --fill: 0; }
.motion .fold__readout li:first-child, .motion .fold__readout li.is-on { --fill: 1; }
.motion .fold.is-ready .fold__readout li::before { transition: transform 360ms var(--ease); }

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}
@media (min-width: 960px) and (max-width: 1099px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
/* Pinned stage only when the screen is tall enough to hold the whole hero.
   Keep this query identical to `pinned` in main.js. */
@media (min-width: 960px) and (min-height: 640px) {
  .motion .hero { height: 220vh; padding: 0; }
  .motion .hero__sticky { position: sticky; top: 0; height: 100vh; display: grid; align-items: center; padding-top: 76px; }
  .motion .fold { max-width: min(720px, calc((100vh - 280px) * 100 / 82)); }
}
/* Wide but short windows (small laptops, zoomed pages): keep the hero on one screen. */
@media (min-width: 960px) and (max-height: 639px) {
  .hero { padding-top: 96px; padding-bottom: 40px; }
  .hero__copy { gap: 16px; }
  .hero__title { font-size: clamp(2.75rem, 13vh, 7.25rem); }
  .fold { max-width: min(720px, calc((100svh - 230px) * 100 / 82)); }
  .fold__readout { margin-top: 12px; }
}

/* ---------- Featured project (dark "room" field) ---------- */
.work { background: var(--room); color: var(--room-text); padding: var(--section) 0; }
.work .label { color: var(--room-muted); }
.work .label__num { color: var(--accent); }
.work .section-head { border-color: var(--room-line); }
.work .tag { background: var(--room-text); color: var(--room); }
.work :focus-visible { outline-color: var(--room-text); }
.work__intro { display: grid; gap: 24px; margin-bottom: clamp(40px, 5vw, 72px); }
.work__title { font: 400 clamp(3.5rem, 1.4rem + 8.6vw, 10rem)/0.88 var(--serif); letter-spacing: -0.02em; }
.work__lede { max-width: 44ch; font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.3125rem); line-height: 1.5; color: var(--room-text); text-wrap: pretty; }
@media (min-width: 960px) {
  .work__intro { grid-template-columns: 7fr 5fr; align-items: end; }
  .work__lede { padding-bottom: 0.6em; }
}

.plate { display: grid; gap: 12px; }
.plate__frame { position: relative; overflow: hidden; background: var(--room-raised); }
.plate__frame img { width: 100%; height: 100%; object-fit: cover; }
.plate__bar { display: flex; align-items: center; gap: 14px; font: 500 0.75rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--room-muted); }
.plate__bar::before { content: ""; order: 1; flex: 1; height: 1px; background: var(--room-line); }
.plate__bar span:last-child { order: 2; }
.plate__caption { font-size: 0.8125rem; line-height: 1.45; color: var(--room-muted); max-width: 70ch; text-wrap: pretty; }
.plate--lobby .plate__frame { aspect-ratio: 16 / 9; }

/* Corner marks that echo the hero frame. */
.plate__frame::before, .plate__frame::after {
  content: ""; position: absolute; z-index: 2; width: clamp(12px, 1.6vw, 22px); height: clamp(12px, 1.6vw, 22px);
  border: 0 solid var(--room-text); opacity: 0.9;
}
.plate__frame::before { left: 8px; bottom: 8px; border-width: 0 0 1.5px 1.5px; }
.plate__frame::after { right: 8px; bottom: 8px; border-width: 0 1.5px 1.5px 0; }
.plate--lobby .plate__frame::before { display: none; } /* the prototype's own hint bar sits there */

.meta { display: grid; gap: 0; margin-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--room-line); }
.meta__item { display: grid; gap: 6px; align-content: start; padding: 16px 0; border-bottom: 1px solid var(--room-line); }
.meta dt { font: 500 0.75rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--room-muted); }
.meta dd { font-size: 0.9375rem; line-height: 1.45; text-wrap: balance; }
@media (min-width: 720px) {
  .meta { grid-template-columns: 1fr 1fr; }
  .meta__item { padding: 18px 24px 18px 0; }
  .meta__item:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--room-line); }
}
@media (min-width: 1100px) {
  .meta { grid-template-columns: 1fr 2fr 1fr 1fr; border-bottom: 1px solid var(--room-line); }
  .meta__item { border-bottom: 0; }
  .meta__item + .meta__item { padding-left: 24px; border-left: 1px solid var(--room-line); }
}

.work__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.work__note { max-width: 52ch; font-size: 0.875rem; line-height: 1.5; color: var(--room-muted); text-wrap: pretty; }

.rooms { margin-top: clamp(96px, 12vw, 176px); }
.rooms__head { display: grid; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--room-line); margin-bottom: clamp(48px, 7vw, 96px); }
.rooms__title { font: 400 clamp(2rem, 1.4rem + 2.4vw, 3.5rem)/1 var(--serif); }
.rooms__intro { max-width: 56ch; color: var(--room-muted); text-wrap: pretty; }
@media (min-width: 960px) { .rooms__head { grid-template-columns: 7fr 5fr; column-gap: 24px; align-items: end; } }

.rooms__list { display: grid; gap: clamp(64px, 9vw, 136px); }
.room { display: grid; gap: 24px; align-items: end; }
.room__num { font: 400 clamp(3rem, 2rem + 3vw, 5rem)/0.8 var(--serif); color: var(--accent); margin-bottom: 16px; }
.room__name { font: 400 clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem)/1 var(--serif); margin-bottom: 12px; }
.room__name span { display: block; margin-top: 8px; font: 500 0.75rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--room-muted); }
.room__text > p:last-child { max-width: 40ch; color: var(--room-text); opacity: 0.86; }
.room--svaneti .plate__frame { aspect-ratio: 4 / 5; }
.room--gergeti .plate__frame { aspect-ratio: 3 / 2; }
.room--tbilisi .plate__frame { aspect-ratio: 2 / 1; }
@media (max-width: 719px) { .room--tbilisi .plate__frame { aspect-ratio: 4 / 3; } }
@media (min-width: 720px) and (max-width: 959px) { .room--svaneti .plate { width: 72%; } }
@media (min-width: 960px) {
  .room { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .room--svaneti .plate { grid-column: 1 / span 5; }
  .room--svaneti .room__text { grid-column: 7 / span 4; padding-bottom: 8%; }
  .room--gergeti .plate { grid-column: 5 / span 8; grid-row: 1; }
  .room--gergeti .room__text { grid-column: 1 / span 4; grid-row: 1; padding: 0 16px 4% 0; }
  .room--tbilisi .plate { grid-column: 1 / -1; }
  .room--tbilisi .room__text { grid-column: 1 / span 6; display: grid; grid-template-columns: auto 1fr; column-gap: 28px; }
  .room--tbilisi .room__num { grid-row: span 2; }
}

.abilities { display: grid; gap: clamp(48px, 6vw, 96px); margin-top: clamp(96px, 12vw, 176px); padding-top: 28px; border-top: 1px solid var(--room-line); }
.abilities__title { font: 400 clamp(2rem, 1.4rem + 2.4vw, 3.5rem)/1 var(--serif); margin-bottom: clamp(28px, 4vw, 44px); }
.abilities__list { display: grid; gap: 0; }
.abilities__list li { padding: 16px 0; border-bottom: 1px solid var(--room-line); color: var(--room-muted); font-size: 0.9375rem; line-height: 1.55; }
.abilities__list strong { font-weight: 500; color: var(--room-text); }
.phone { justify-self: center; width: min(300px, 62vw); }
.phone__frame { overflow: hidden; border: 1px solid var(--room-line); padding: 8px; background: var(--room-raised); }
@media (min-width: 720px) {
  .abilities__list { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}
@media (min-width: 960px) {
  .abilities { grid-template-columns: 7fr 4fr; align-items: start; }
  .phone { justify-self: end; }
}

/* ---------- Possible applications ---------- */
.apps { padding: var(--section) 0; }
.apps__intro { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 80px); }
.apps__lede { max-width: 42ch; color: var(--muted); font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem); line-height: 1.5; text-wrap: pretty; }
@media (min-width: 960px) { .apps__intro { grid-template-columns: 7fr 5fr; column-gap: 24px; align-items: end; } }
.apps__list { border-top: 1px solid var(--line-strong); }
.app {
  display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; row-gap: 10px; align-items: start;
  padding: clamp(24px, 3vw, 36px) 0; border-bottom: 1px solid var(--line);
}
.app__num { grid-row: span 2; font: 400 1.75rem/1 var(--serif); font-style: italic; color: var(--accent-deep); }
.app__name { font: 400 clamp(1.75rem, 1.35rem + 1.6vw, 2.75rem)/1 var(--serif); }
.app__text { max-width: 46ch; color: var(--muted); }
.app__fig { display: none; width: 132px; height: auto; fill: none; stroke: var(--ink); stroke-width: 1; }
.app__fig .fill { fill: var(--accent); stroke: none; }
.app__fig .fill-soft { fill: var(--stone); stroke: var(--ink); }
@media (min-width: 840px) {
  .app { grid-template-columns: 32px minmax(0, 1fr) minmax(0, 1fr) 112px; column-gap: 24px; align-items: center; }
  .app__num { grid-row: auto; }
  .app__fig { display: block; width: 112px; }
}
@media (min-width: 1200px) {
  .app { grid-template-columns: 64px minmax(0, 4fr) minmax(0, 5fr) 132px; column-gap: 32px; }
  .app__fig { width: 132px; }
}

/* ---------- Process ---------- */
.process { --accent-deep: #904928; /* 4.8:1 on stone */ padding: var(--section) 0; background: var(--stone); }
.process .section-head { border-color: var(--line-strong); }
.process .section-title { margin-bottom: clamp(48px, 7vw, 96px); }
.steps { display: grid; gap: 40px; counter-reset: step; }
.step { display: grid; gap: 12px; align-content: start; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.step__fig { width: 64px; height: 48px; margin-bottom: 12px; fill: none; stroke: var(--ink); stroke-width: 1; }
.step__fig .die { stroke-dasharray: 2 2; }
.step__fig .fill { fill: var(--accent); stroke: none; }
.step__num { font: 500 0.75rem/1 var(--mono); letter-spacing: 0.08em; color: var(--accent-deep); }
.step__name { font: 400 clamp(1.625rem, 1.3rem + 1.1vw, 2.25rem)/1.05 var(--serif); max-width: 14ch; text-wrap: balance; }
.step p:last-child { color: var(--muted); max-width: 36ch; text-wrap: pretty; }
.process__note { margin-top: clamp(40px, 5vw, 64px); font: 500 0.75rem/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-wrap: pretty; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
@media (min-width: 1100px) { .steps { gap: 32px; } }

/* ---------- Contact ---------- */
.contact { padding: var(--section) 0 clamp(96px, 10vw, 152px); }
.contact__title { font: 400 clamp(3.25rem, 1.2rem + 8.4vw, 9.5rem)/0.9 var(--serif); letter-spacing: -0.02em; margin-bottom: clamp(40px, 6vw, 80px); }
.contact__link { display: inline-flex; align-items: baseline; gap: 0.18em; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 96% / 0 2px no-repeat; transition: background-size 320ms var(--ease), color 200ms var(--ease); }
.contact__link:hover { color: var(--accent-deep); background-size: 100% 2px; }
.icon-arrow { width: 0.6em; height: 0.6em; fill: none; stroke: currentColor; stroke-width: 1.6; align-self: center; transition: transform 240ms var(--ease); }
.contact__link:hover .icon-arrow { transform: translateX(0.08em); }
.contact__grid { display: grid; gap: 40px; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.contact__lede { font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem); margin-bottom: 20px; max-width: 46ch; text-wrap: pretty; }
.contact__prompts li { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font: 400 clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem)/1.15 var(--serif); text-wrap: balance; }
.contact__prompts li::before { content: ""; flex: none; width: 12px; height: 1px; background: var(--accent-deep); align-self: center; }
.contact__action { display: grid; gap: 14px; align-content: start; justify-items: start; }
.contact__address { font: 400 clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem)/1.1 var(--serif); word-break: break-word; }
.copy-status { min-height: 1.4em; font: 500 0.75rem/1.4 var(--mono); letter-spacing: 0.06em; color: var(--muted); }
.placeholder-note { display: grid; gap: 14px; justify-items: start; padding: 22px; border: 1.5px dashed var(--accent-deep); background: rgb(196 112 74 / 0.08); }
.placeholder-note p:last-child { font-size: 0.9375rem; line-height: 1.55; }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 7fr 5fr; column-gap: 24px; } }

/* ---------- Footer ---------- */
.site-footer { padding: 0 0 48px; font-size: 0.8125rem; color: var(--muted); }
.site-footer__grid { display: grid; gap: 28px; padding-top: 40px; border-top: 1px solid var(--line-strong); }
.site-footer__line { text-wrap: pretty; }
.brand--footer { color: var(--ink); margin-bottom: 12px; }
.site-footer__notes { display: grid; gap: 8px; max-width: 64ch; }
@media (min-width: 840px) { .site-footer__grid { grid-template-columns: 7fr 5fr; column-gap: 24px; } }

/* ---------- Narrow screens ---------- */
@media (max-width: 719px) {
  .site-nav { display: none; }
  .site-header__inner { min-height: 64px; }
  .hero { padding-top: 104px; }
  .hero__copy { gap: 22px; }
  .actions { width: 100%; }
  .actions .btn { flex: 1 1 auto; }
  .fold__step-text { font-size: 0.75rem; }
  .fold__step-name { font-size: 1.125rem; }
}

/* ---------- Entrances (only with .motion) ---------- */
.motion [data-reveal] .plate__frame,
.motion [data-reveal] .phone__frame { clip-path: inset(5% 5% 5% 5%); transition: clip-path 1000ms var(--ease); }
.motion [data-reveal] img { transform: scale(1.06); transition: transform 1400ms var(--ease); }
.motion [data-reveal].is-in .plate__frame,
.motion [data-reveal].is-in .phone__frame { clip-path: inset(0 0 0 0); }
.motion [data-reveal].is-in img { transform: none; }
.motion .fold.is-ready .fold__crop i { transition: transform 900ms var(--ease), opacity 500ms var(--ease); }
.motion .fold.is-ready .fold__back img { transition: opacity 900ms var(--ease); }
.motion .fold:not(.is-ready) .fold__back img { opacity: 0; }
.motion .fold:not(.is-ready) .fold__crop i { opacity: 0; }
.motion .fold:not(.is-ready) .fold__crop i:nth-child(1) { transform: translate(5cqi, 5cqi); }
.motion .fold:not(.is-ready) .fold__crop i:nth-child(2) { transform: translate(-5cqi, 5cqi); }
.motion .fold:not(.is-ready) .fold__crop i:nth-child(3) { transform: translate(5cqi, -5cqi); }
.motion .fold:not(.is-ready) .fold__crop i:nth-child(4) { transform: translate(-5cqi, -5cqi); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Print the finished state, not whatever the scroll position was. */
@media print {
  .fold__stage { --af: 90 !important; --ac: 90 !important; --al: 90 !important; --ar: 90 !important; --zk: 1 !important; --s: 1.26 !important; --die: 0 !important; }
  .motion .hero { height: auto; }
  .motion .hero__sticky { position: static; height: auto; }
  .motion [data-reveal] .plate__frame, .motion [data-reveal] .phone__frame { clip-path: none !important; }
  .motion [data-reveal] img, .motion .fold__back img { transform: none !important; opacity: 1 !important; }
  .motion .fold__readout li { --fill: 1 !important; }
  .fold__readout li::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .skip-link { display: none; }
}
