/* site.css: Ninebark Design-Build sample. Mobile first; one paper ground below
   a dark 3D hero, a dark footer, no alternating bands. Oswald for display,
   Crimson Pro for text. Glass only where it sits over the 3D scene. */

:root {
  --paper: #ebe9e2;
  --paper-2: #f6f5f0;
  --ink: #1b1d1c;
  --ink-2: #474b47;
  --fir: #1d2b25;
  --fir-deep: #121a17;
  --moss: #5f6d4e;
  --cedar: #a35b31;
  --cedar-ink: #8a4a25;
  --line: rgb(27 29 28 / .14);
  --ink-rgb: 27 29 28;
  --gutter: 20px;
  --max: 1280px;
  --hdr-h: 64px;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --text: "Crimson Pro", Georgia, serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --hero-step: 6.5s;
  --process-step: 6s;
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 32px; --hdr-h: 72px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 8px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.1875rem/1.5 var(--text);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.04; margin: 0; letter-spacing: .002em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--cedar); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--paper); padding: 10px 14px; }
.skip:focus { left: 8px; }

/* ---- glass (light, over the 3D scene only) ----
   Layered: tint on the padding box, a 1px gradient rim on the border box, an inner
   top highlight, contact + ambient shadow, grain against banding, and a sheen that
   follows a fine pointer (--mx/--my from ui.js). Tint .82 keeps ink-2 and cedar-ink
   text at 4.5:1 or better even over the darkest frame of the scene. */
:root {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.u-glass {
  --tint: rgb(250 249 245 / .82);
  --cedar-ink: #7a3f1e; /* small cedar labels on glass clear 4.5:1 over the darkest frame */
  position: relative; isolation: isolate;
  border: 1px solid transparent; border-radius: 22px;
  background:
    linear-gradient(var(--tint), var(--tint)) padding-box,
    linear-gradient(135deg, rgb(255 255 255 / .95), rgb(255 255 255 / .2) 55%, rgb(255 255 255 / .06)) border-box;
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .8), inset 0 -1px 0 rgb(255 255 255 / .14),
    0 1px 2px rgb(var(--ink-rgb) / .08), 0 8px 20px -8px rgb(var(--ink-rgb) / .2), 0 40px 70px -34px rgb(var(--ink-rgb) / .45);
  color: var(--ink);
}
.u-glass::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 18%) var(--my, -30%), rgb(255 255 255 / .42), transparent 60%), var(--grain);
  background-size: auto, 160px 160px;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .u-glass { --tint: rgb(250 249 245 / .96); }
}
@media (prefers-reduced-transparency: reduce) {
  .u-glass { --tint: rgb(250 249 245); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .u-glass::before { display: none; }
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  font: 500 .95rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.btn--light { background: #f4f2ec; color: var(--fir-deep); }
.btn--light:hover { background: #fff; }
.btn--dark { background: var(--fir); color: #f4f2ec; }
.btn--dark:hover { background: var(--fir-deep); }

/* ---- header ---- */
.hdr {
  position: fixed; inset-inline: 0; top: 0; z-index: 50; height: var(--hdr-h);
  color: #f4f2ec; transition: background-color .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.hdr.is-scrolled {
  background: rgb(18 26 23 / .74);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: rgb(255 255 255 / .08);
}
.hdr__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.hdr__slot { display: block; height: 34px; flex: none; }
.hdr__nav { display: none; margin-left: auto; gap: 4px; white-space: nowrap; }
.hdr__nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font: 400 .9rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  color: rgb(244 242 236 / .86);
}
.hdr__nav a:hover { color: #fff; }
.hdr__cta { margin-left: auto; min-height: 44px; padding: 0 16px; font-size: .82rem; }
@media (min-width: 1000px) {
  .hdr__nav { display: flex; }
  .hdr__cta { margin-left: 8px; }
}

/* the wordmark: drawn large, flown into the header by ui.js */
.brand {
  position: fixed; left: 0; top: 0; z-index: 60; transform-origin: 0 0;
  display: inline-flex; align-items: center; gap: .32em; color: #f6f4ee; text-decoration: none;
  font-size: clamp(30px, 8.6vw, 58px); opacity: 0; will-change: transform;
}
.brand.is-ready { opacity: 1; transition: opacity .4s var(--ease); }
.brand__mark { width: .86em; height: auto; flex: none; }
.brand__words { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font: 600 1em/0.92 var(--display); text-transform: uppercase; letter-spacing: .06em; }
.brand__sub { font: italic 400 .46em/1.1 var(--text); letter-spacing: .02em; margin-top: .08em; padding-left: .08em; opacity: .9; }

/* ---- hero ---- */
.hero {
  position: relative; height: 100svh; min-height: 560px; max-height: 1180px;
  background: #3f5562; color: #f6f4ee; overflow: hidden; isolation: isolate;
  touch-action: pan-y;
}
.hero__stage { position: absolute; inset: 0; z-index: -2; }
.hero__poster img, .hero__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__stage canvas, .config__stage canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s var(--ease);
}
.hero__stage.is-live canvas, .config__stage.is-live canvas { opacity: 1; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgb(12 18 16 / .62) 0%, rgb(12 18 16 / .34) 26%, rgb(12 18 16 / 0) 46%),
    linear-gradient(0deg, rgb(12 18 16 / .66) 0%, rgb(12 18 16 / .28) 18%, rgb(12 18 16 / 0) 34%);
}
.hero__in {
  position: relative; height: 100%;
  display: grid; grid-template-rows: 1fr auto auto; gap: 12px;
  padding-top: calc(var(--hdr-h) + 40px); padding-bottom: max(16px, env(safe-area-inset-bottom));
}
.hero__copy { align-self: start; max-width: 34rem; }
.hero__slot { display: block; margin-bottom: 18px; }
.hero h1 { font-size: clamp(1.9rem, 7.4vw, 3.7rem); font-weight: 500; text-shadow: 0 1px 24px rgb(0 0 0 / .25); }
.hero__lede { display: none; margin-top: 14px; font-size: 1.2rem; color: rgb(246 244 238 / .92); max-width: 30rem; }
.hero__copy .btn { margin-top: 18px; }

.hud {
  justify-self: start; display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 14px 8px;
  font: 400 .8rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; border-radius: 999px;
}
.hud b { font: 500 1.35rem/1 var(--display); font-variant-numeric: tabular-nums; min-width: 1.4em; }

.hero__card { padding: 14px 16px 16px; max-width: 30rem; border-radius: 26px; }
.hero__card.is-in > * { animation: card-in .55s var(--ease) both; }
.hero__card.is-in > :nth-child(2) { animation-delay: .05s; }
.hero__card.is-in > :nth-child(3) { animation-delay: .1s; }
.card__k { font: 400 .78rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--cedar-ink); }
.card__t { font-size: 1.45rem; margin: 6px 0 6px; }
.hero__card p:last-child { font-size: 1.05rem; line-height: 1.4; color: #2b2e2c; }
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hero__bar { display: flex; align-items: center; gap: 10px; }
.steps { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.steps button {
  width: 100%; min-height: 48px; padding: 6px 2px 0; border: 0; background: none; cursor: pointer; text-align: left;
  display: grid; grid-template-columns: auto 1fr; column-gap: 6px; align-items: baseline; color: rgb(246 244 238 / .74);
}
.steps button.is-active, .steps button:hover { color: #fff; }
.steps__n { grid-column: 1 / -1; font: 400 .72rem/1 var(--display); letter-spacing: .06em; opacity: .8; margin-bottom: 4px; }
.steps__t { grid-column: 1 / -1; font: 500 .86rem/1 var(--display); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.steps__fill { grid-column: 1 / -1; display: block; height: 3px; margin-top: 10px; background: rgb(255 255 255 / .28); border-radius: 2px; overflow: hidden; }
.fill { display: block; height: 100%; background: currentColor; transform-origin: 0 50%; transform: scaleX(0); }
.is-done .fill { transform: scaleX(1); }
.steps .is-active .fill { animation: step-fill var(--hero-step) linear forwards; }
.is-paused .is-active .fill, .is-offscreen .is-active .fill { animation-play-state: paused; }
@keyframes step-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.play {
  flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .35); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.play svg { width: 20px; height: 20px; fill: currentColor; }
.play .i-play, .play[aria-pressed="false"] .i-pause { display: none; }
.play[aria-pressed="false"] .i-play { display: inline; }
.play--dark { background: var(--fir); border-color: var(--fir); color: #f4f2ec; }

@media (max-height: 720px) and (max-width: 767px) {
  .hero__in { padding-top: calc(var(--hdr-h) + 28px); }
  .hero__card p:last-child { font-size: .98rem; }
  .card__t { font-size: 1.25rem; }
}
@media (min-width: 768px) {
  .hero__lede { display: block; }
  .hero__in { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr auto auto; column-gap: 32px; padding-top: calc(var(--hdr-h) + 56px); padding-bottom: 28px; }
  .hero__copy { grid-column: 1; grid-row: 1; }
  .hud { grid-column: 2; grid-row: 1; align-self: start; justify-self: end; }
  .hero__card { grid-column: 1; grid-row: 2; padding: 18px 22px 20px; }
  .hero__bar { grid-column: 1 / -1; grid-row: 3; }
  .card__t { font-size: 1.7rem; }
  .steps { gap: 18px; }
  .steps__n { grid-column: auto; margin-bottom: 0; }
  .steps__t { grid-column: auto; font-size: 1rem; letter-spacing: .06em; }
  .hero__scrim { background:
    linear-gradient(90deg, rgb(12 18 16 / .58) 0%, rgb(12 18 16 / .3) 30%, rgb(12 18 16 / 0) 52%),
    linear-gradient(180deg, rgb(12 18 16 / .55) 0%, rgb(12 18 16 / 0) 30%),
    linear-gradient(0deg, rgb(12 18 16 / .66) 0%, rgb(12 18 16 / 0) 26%); }
}
@media (min-width: 768px) and (max-height: 820px) {
  .hero__lede { display: none; }
}

/* ---- sections ---- */
.sec { padding-block: 72px; }
@media (min-width: 768px) { .sec { padding-block: 112px; } }
.head { max-width: 46rem; margin-bottom: 32px; }
.head--split { max-width: none; display: grid; gap: 14px; }
@media (min-width: 960px) { .head--split { grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; } }
.kicker {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font: 500 .82rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--cedar-ink);
}
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.head h2, .contact h2 { font-size: clamp(2rem, 5.6vw, 3.5rem); }
.head__lede { margin-top: 14px; font-size: 1.22rem; color: var(--ink-2); max-width: 38rem; }
.head--split .head__lede { margin-top: 0; }
.note { font: italic 400 1rem/1.4 var(--text); color: var(--ink-2); }
.caption { margin-top: 12px; font: italic 400 1rem/1.4 var(--text); color: var(--ink-2); }

/* ---- configurator ---- */
.config__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.config__view { position: relative; }
.config__stage {
  position: relative; aspect-ratio: 1 / 1; max-height: 62svh; width: 100%; border-radius: 24px; overflow: hidden;
  background: #56707b; cursor: grab; touch-action: pan-y; outline-offset: 4px;
}
.config__stage.is-dragging { cursor: grabbing; }
.config__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.config__hint {
  position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  font: 400 .78rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: #fff;
  background: rgb(18 26 23 / .5); border-radius: 999px; pointer-events: none;
}
.config__hint svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
/* Spec tiles: phones swipe them as a peeking carousel under the stage; from 640px
   they sit as a row of glass over the model. Each carries a small sample chart. */
.tiles {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 320px); gap: 10px;
  margin: -40px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 18px; position: relative;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  overscroll-behavior-x: contain; scrollbar-width: none;
}
.tiles::-webkit-scrollbar { display: none; }
.tile { padding: 14px 16px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; border-radius: 20px; scroll-snap-align: start; }
.tile__k { font: 400 .72rem/1.1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.tile__v { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.tile__v b { font: 500 2rem/1 var(--display); font-variant-numeric: tabular-nums; }
.tile__v small { font: italic 400 .95rem/1 var(--text); color: var(--ink-2); white-space: nowrap; }
.tile__f { font: italic 400 .9rem/1.1 var(--text); color: var(--ink-2); }

/* Build phases: one rounded track split by weeks, a 2px gap between segments. */
.phases { display: flex; gap: 2px; height: 12px; margin-top: auto; clip-path: inset(0 0 0 0 round 6px); transition: clip-path .9s var(--ease) .1s; }
.phases i { flex: var(--w) 1 0; min-width: 0; background: var(--moss); transition: flex-grow .7s var(--ease); }
.phases i:nth-child(1) { background: #8f9a80; }
.phases i:nth-child(2) { background: #74825f; }
.phases i:nth-child(4) { background: var(--fir); }

/* Energy score: a half-ring gauge, moss on a faint track (offset set by config.js). */
.gauge { width: 100%; max-width: 120px; height: auto; margin: auto auto 0; overflow: visible; }
.gauge path { fill: none; stroke-width: 9; stroke-linecap: round; }
.gauge__trk { stroke: rgb(var(--ink-rgb) / .12); }
.gauge__val { stroke: var(--moss); stroke-dasharray: 100 200; stroke-dashoffset: var(--off); transition: stroke-dashoffset 1s var(--ease) .15s; }

/* Before the tiles are first seen (motion allowed only), charts sit undrawn. */
.tiles.armed:not(.seen) .phases { clip-path: inset(0 100% 0 0 round 6px); }
.tiles.armed:not(.seen) .gauge__val { stroke-dashoffset: 100; }

.tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.tabs button {
  min-height: 48px; border: 0; background: none; cursor: pointer; position: relative;
  font: 500 .9rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
}
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -1px; height: 2px; background: var(--cedar); }

.chips {
  display: flex; gap: 10px; margin: 16px calc(var(--gutter) * -1) 0; padding: 2px var(--gutter);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 6px 16px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper-2); cursor: pointer;
  font: 500 .9rem/1 var(--display); letter-spacing: .05em; white-space: nowrap; color: var(--ink);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.chip[aria-pressed="true"] { border-color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.chip__sw { width: 34px; height: 34px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .15); }
.chip__sw--plan { background: var(--paper); position: relative; overflow: hidden; }
.chip__sw--plan::before { content: ""; position: absolute; left: 6px; bottom: 9px; width: 9px; height: 16px; background: var(--fir); clip-path: polygon(0 35%, 50% 0, 100% 35%, 100% 100%, 0 100%); }
.chip__sw--plan::after { content: ""; position: absolute; left: 15px; bottom: 9px; height: 9px; width: calc(var(--w) * 15px); background: var(--moss); }
.config__summary { margin-top: 16px; font-size: 1.15rem; }
.config__panel .note { margin-top: 10px; }

@media (min-width: 640px) {
  .config__stage { aspect-ratio: 16 / 10; max-height: none; }
  .tiles {
    position: absolute; left: 16px; right: 16px; bottom: 16px; margin: 0; padding: 0; gap: 12px;
    grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible;
  }
  .tile { padding: 14px 16px 14px; }
  .tile__v b { font-size: 2.2rem; }
}
@media (min-width: 960px) {
  .config__grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .tiles { max-width: 620px; }
  .chips {
    flex-direction: column; overflow: visible; margin: 18px 0 0; padding: 0; -webkit-mask-image: none; mask-image: none;
  }
  .chip { width: 100%; min-height: 56px; border-radius: 16px; }
}

/* ---- before / after ---- */
.compare {
  position: relative; aspect-ratio: 3 / 2; border-radius: 24px; overflow: hidden; background: #6b7f86;
  touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none;
}
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .12); }
.compare__handle {
  position: absolute; top: 50%; left: var(--pos); width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: 0 8px 24px -8px rgb(0 0 0 / .45);
}
.compare__handle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
.compare.is-dragging .compare__handle { transform: scale(1.06); }
.compare__tag {
  position: absolute; top: 12px; padding: 7px 12px; border-radius: 999px; background: rgb(18 26 23 / .62); color: #fff;
  font: 500 .78rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; pointer-events: none;
}
.compare__tag--before { left: 12px; }
.compare__tag--after { right: 12px; }

/* ---- process ---- */
.process__grid { display: grid; gap: 20px; }
.process__rail { display: flex; align-items: flex-start; gap: 10px; }
.psteps { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.psteps button {
  width: 100%; min-height: 56px; padding: 8px 0 0; border: 0; background: none; cursor: pointer; text-align: left;
  display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; color: var(--ink-2);
}
.psteps button.is-active { color: var(--ink); }
.psteps__n { font: 500 1.5rem/1 var(--display); font-variant-numeric: tabular-nums; }
.psteps__t { display: none; font: 500 1rem/1.15 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.psteps__fill { grid-column: 1 / -1; display: block; height: 3px; margin-top: 10px; background: rgb(var(--ink-rgb) / .12); border-radius: 2px; overflow: hidden; }
.psteps .fill { background: var(--cedar); }
.psteps .is-active .fill { animation: step-fill var(--process-step) linear forwards; }
.ppanel {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 22px; padding: 22px 20px 24px; min-height: 300px;
  touch-action: pan-y;
}
.ppanel.is-in > * { animation: card-in .5s var(--ease) both; }
.ppanel.is-in > :nth-child(2) { animation-delay: .04s; }
.ppanel.is-in > :nth-child(3) { animation-delay: .08s; }
.ppanel.is-in > :nth-child(4) { animation-delay: .12s; }
.ppanel__k { font: 500 .8rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--cedar-ink); }
.ppanel h3 { font-size: clamp(1.7rem, 4.4vw, 2.5rem); margin: 10px 0 12px; }
.ppanel p:not(.ppanel__k) { font-size: 1.2rem; max-width: 34rem; }
.ppanel__list { margin-top: 18px; display: grid; gap: 8px; }
.ppanel__list li { display: flex; gap: 12px; align-items: baseline; font-size: 1.08rem; color: var(--ink-2); }
.ppanel__list li::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--moss); transform: translateY(-2px); }
@media (min-width: 900px) {
  .process__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: stretch; }
  .process__rail { flex-direction: column; align-items: stretch; gap: 18px; }
  .psteps { grid-template-columns: 1fr; gap: 4px; }
  .psteps button { min-height: 64px; }
  .psteps__t { display: block; }
  .ppanel { padding: 36px 40px 40px; min-height: 0; }
}

/* ---- work ---- */
.work__grid {
  display: flex; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain;
  scrollbar-width: none; touch-action: pan-x pan-y;
}
.work__grid::-webkit-scrollbar { display: none; }
.proj { flex: 0 0 min(78vw, 320px); scroll-snap-align: start; }
.proj img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; background: #6b7f86; }
.proj__txt { padding-top: 12px; }
.proj h3 { font-size: 1.3rem; }
.proj p { margin-top: 4px; font-size: 1.02rem; color: var(--ink-2); }
@media (min-width: 640px) {
  .work__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 20px; overflow: visible; margin: 0; padding: 0; }
}
@media (min-width: 1000px) { .work__grid { grid-template-columns: repeat(3, 1fr); gap: 40px 24px; } }

/* ---- testimonials ---- */
.words__track {
  display: flex; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 4px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain;
  scrollbar-width: none; touch-action: pan-x pan-y;
}
.words__track::-webkit-scrollbar { display: none; }
.words__track.is-dragging, .work__grid.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.quote {
  flex: 0 0 min(80vw, 340px); scroll-snap-align: start; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 22px; padding: 24px 22px 20px;
}
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: 1.24rem; line-height: 1.42; }
.quote blockquote p::before { content: "\201C"; display: block; font: 500 2.6rem/0.6 var(--display); color: var(--cedar); margin-bottom: 10px; }
.quote__who { font: 500 .85rem/1.3 var(--display); letter-spacing: .08em; text-transform: uppercase; display: flex; justify-content: space-between; gap: 10px; }
.quote__who span { color: var(--ink-2); font-weight: 400; }
.car__nav { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; }
.car__btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper-2); cursor: pointer; display: grid; place-items: center;
}
.car__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.car__btn:disabled { opacity: .35; cursor: default; }
.dots { display: flex; }
.dot { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; padding: 0; }
.dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--ink-rgb) / .25); transition: background-color .2s, transform .2s; }
.dot[aria-current="true"]::before { background: var(--ink); transform: scale(1.2); }
@media (min-width: 768px) {
  .quote { flex-basis: calc((100% - 2 * 16px) / 3); }
  .words__track { gap: 16px; margin: 0; padding: 2px 0 4px; scroll-padding-inline: 0; }
  .car__nav { justify-content: flex-end; }
}

/* ---- contact ---- */
.contact__grid { display: grid; gap: 36px; }
.contact__info > p:not(.kicker):not(.note) { margin-top: 16px; font-size: 1.22rem; color: var(--ink-2); max-width: 32rem; }
.contact__list { margin: 26px 0 18px; display: grid; gap: 14px; }
.contact__list div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 12px; }
.contact__list dt { font: 500 .8rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.contact__list dd { margin: 0; font-size: 1.15rem; }
.contact__list a { text-decoration-color: rgb(var(--ink-rgb) / .3); text-underline-offset: 3px; display: inline-block; padding-block: 8px; margin-block: -8px; }
.form { display: grid; gap: 16px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 24px; padding: 22px 20px; }
.form label { display: grid; gap: 6px; font: 500 .82rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.form input, .form textarea {
  font: 400 1.12rem/1.3 var(--text); color: var(--ink); background: #fff; border: 1px solid rgb(var(--ink-rgb) / .22);
  border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%; text-transform: none; letter-spacing: 0;
}
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--cedar); outline-offset: 0; border-color: transparent; }
.form .btn { justify-self: start; }
.form__status { font-style: italic; color: var(--moss); min-height: 1.4em; }
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .form { padding: 32px; }
}

/* ---- footer ---- */
.foot { background: var(--fir-deep); color: #d9ddd6; padding-block: 56px 40px; }
.foot__in { display: grid; gap: 28px; }
.foot__brand { font: 500 1.4rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: #f4f2ec; }
.credits h2 { font: 500 .8rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #aab3a9; margin-bottom: 10px; }
.credits p { font-size: 1.02rem; line-height: 1.5; max-width: 52rem; }
.credits p + p { margin-top: 8px; }
.ulric { font-size: .98rem; border-top: 1px solid rgb(255 255 255 / .12); padding-top: 20px; }
.ulric a { color: #f4f2ec; text-underline-offset: 3px; display: inline-block; padding-block: 12px; margin-block: -12px; }

/* ---- reduced motion ---- */
@media (hover: hover) and (pointer: fine) {
  .tile { transition: box-shadow .3s var(--ease); }
  .tile:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / .8), 0 1px 2px rgb(var(--ink-rgb) / .1), 0 14px 30px -10px rgb(var(--ink-rgb) / .3), 0 44px 80px -34px rgb(var(--ink-rgb) / .5); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .hero__card.is-in > *, .ppanel.is-in > * { animation: none; }
}
