/* ==========================================================
   Copper Studios
   ========================================================== */

@font-face { font-family: "Brygada 1918"; src: url("../fonts/brygada-1918-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("../fonts/courier-prime-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* Single light look by design: parchment, ink, verdigris, copper accent */
:root {
  color-scheme: light;
  --parchment: #F3EDE9;
  --paper: #E9E0DA;
  --paper-deep: #DACDC5;
  --ink: #2B2325;
  --ink-soft: #5D5254;
  --ink-faint: #8B7E80;
  --verdigris-deep: #1F4A45;
  --verdigris-ink: #163733;
  --verdigris: #5E9C8F;
  --verdigris-light: #A9CFC3;
  --copper: #B4573A;
  --copper-dark: #8E3F27;
  --copper-light: #E59C80;
  --copper-button: #A84F33;
  --copper-button-hover: #8E3F27;

  --serif: "Brygada 1918", "Iowan Old Style", Georgia, serif;
  --typewriter: "Courier Prime", "Courier New", ui-monospace, monospace;
  --sheet: #FBF8F5;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(5rem, 11vw, 9rem);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}

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

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background-color: var(--parchment);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .17 0 0 0 0 .14 0 0 0 0 .15 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--parchment);
  padding: .6rem 1rem; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: .95rem; --pad-x: 1.5rem;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 0;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn-small { --pad-y: .65rem; --pad-x: 1.1rem; font-size: .9375rem; }
.btn-large { --pad-y: 1.15rem; --pad-x: 2rem; font-size: 1.0625rem; }

.btn-copper {
  color: #FCF5F2;
  background-color: var(--copper-button);
  box-shadow: 0 1px 2px rgba(60, 30, 10, .2), 0 8px 20px -10px rgba(142, 63, 39, .7);
}
.btn-copper:hover { background-color: var(--copper-button-hover); transform: translateY(-1px); }
.btn-copper:active { transform: translateY(1px) scale(.99); }

.btn-ghost {
  color: var(--ink);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(43, 35, 37, .3);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .4s, box-shadow .4s, backdrop-filter .4s;
}
.site-header.is-scrolled {
  background-color: rgba(243, 237, 233, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgba(43, 35, 37, .08);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 2rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; letter-spacing: -.005em; line-height: 1; }

.nav { display: none; gap: 1.9rem; }
.nav a {
  position: relative;
  text-decoration: none;
  font-size: .97rem;
  color: var(--ink-soft);
  padding-block: .35rem;
  transition: color .25s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px; background: var(--copper);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav a.is-active { color: var(--ink); }
.header-cta { display: none; }

.menu-toggle {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  margin-right: -10px;
  background: none; border: 0; cursor: pointer;
}
.menu-icon { width: 22px; height: 12px; position: relative; display: block; }
.menu-icon i {
  position: absolute; left: 0; right: 0; height: 1.75px; background: var(--ink); border-radius: 2px;
  transition: transform .45s var(--ease), top .45s var(--ease);
}
.menu-icon i:first-child { top: 0; }
.menu-icon i:last-child { top: 10px; }
.menu-open .menu-icon i:first-child { top: 5px; transform: rotate(45deg); }
.menu-open .menu-icon i:last-child { top: 5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: var(--parchment);
  padding: 2rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  display: flex; flex-direction: column;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.menu-open .mobile-menu { opacity: 1; transform: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.25rem;
  line-height: 1.15;
  text-decoration: none;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(43, 35, 37, .1);
  opacity: 0; transform: translateY(12px);
  transition: opacity .45s var(--ease), transform .55s var(--ease);
}
.menu-open .mobile-menu nav a { opacity: 1; transform: none; }
.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: .05s; }
.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: .1s; }
.menu-open .mobile-menu nav a:nth-child(4) { transition-delay: .15s; }
.mobile-menu .btn { margin-top: auto; }
.mobile-menu-note { margin-top: .9rem; text-align: center; color: var(--ink-soft); font-size: .95rem; }
body.menu-open { overflow: hidden; }

@media (min-width: 900px) {
  .nav, .header-cta { display: flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* ---------- Typed text and stamps (shared) ---------- */
.typed { font-family: var(--typewriter); font-weight: 400; letter-spacing: 0; }
.stamp { display: block; transform: rotate(var(--r, 0deg)); mix-blend-mode: multiply; }
.motion .stamp[data-stamp] { opacity: 0; transform: rotate(var(--r, 0deg)) scale(1.5); }
.motion .stamp[data-stamp].is-stamped { animation: stamp-press .5s cubic-bezier(.3, .7, .35, 1.15) forwards; }
@keyframes stamp-press {
  0%   { opacity: 0; transform: rotate(var(--r, 0deg)) scale(1.5); }
  55%  { opacity: 1; transform: rotate(var(--r, 0deg)) scale(.95); }
  100% { opacity: 1; transform: rotate(var(--r, 0deg)) scale(1); }
}
@keyframes jolt { 0%, 100% { translate: 0 0; } 40% { translate: 0 3px; } }
.is-hit { animation: jolt .32s ease-out; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 8vh, 6rem));
  padding-bottom: clamp(4rem, 10vh, 7rem);
  overflow: hidden;
}
.hero-grid { display: grid; gap: clamp(2.75rem, 6vw, 4rem); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 4.5rem; } }
.hero-copy { min-width: 0; }
.hero-title {
  font-size: clamp(2.35rem, 4.2vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.018em;
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}
.hero-sub {
  max-width: 32rem;
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  color: var(--ink-soft);
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 520px) { .hero-actions .btn { flex: 1 1 100%; } }

/* The work order card */
.order-stage { min-width: 0; perspective: 1400px; }
.order {
  --py: 0px; --tx: 0deg; --ty: 0deg;
  position: relative;
  max-width: 520px;
  margin-inline: auto;
  background: var(--sheet);
  border-radius: 6px;
  padding: clamp(1.4rem, 3vw, 2.1rem) clamp(1.3rem, 3vw, 2.3rem) clamp(1.3rem, 2.5vw, 1.8rem);
  box-shadow: 0 1px 0 rgba(43, 35, 37, .05), 0 34px 60px -30px rgba(43, 35, 37, .5), 0 2px 6px rgba(43, 35, 37, .08);
  transform: translateY(var(--py)) rotateX(var(--ty)) rotateY(var(--tx)) rotate(1.4deg);
  transition: transform .4s var(--ease);
}
.order-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border-bottom: 2px solid var(--ink);
  padding-bottom: .9rem; margin-bottom: .2rem;
}
.order-title { display: flex; align-items: center; gap: .7rem; font-family: var(--serif); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.5rem); }
.order-title img { width: 30px; height: 30px; }
.order-no { font-size: .98rem; color: var(--ink-soft); white-space: nowrap; }
.order-fields { margin: 0; }
.order-fields > div {
  display: grid; grid-template-columns: 6.6rem 1fr; align-items: baseline; gap: .5rem;
  padding: .75rem 0;
  border-bottom: 1px solid rgba(43, 35, 37, .14);
}
.order-fields dt { font-size: .78rem; font-weight: 600; color: var(--ink-faint); }
.order-fields dd { margin: 0; font-size: clamp(1rem, 1.35vw, 1.16rem); color: #1D1718; min-height: 1.35em; }
@media (max-width: 420px) { .order-fields > div { grid-template-columns: 5.6rem 1fr; } }
.cursor {
  display: inline-block; width: .55em; height: 1.05em; margin-left: 2px;
  background: var(--ink); vertical-align: -.15em;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.order-sign {
  display: flex; justify-content: space-between; gap: 1.5rem;
  margin-top: clamp(2.6rem, 5vw, 3.4rem);
  font-size: .78rem; color: var(--ink-faint);
}
.order-sign span { flex: 1; border-top: 1px solid rgba(43, 35, 37, .35); padding-top: .4rem; }
.order .stamp-approved {
  position: absolute;
  right: clamp(1rem, 3vw, 2rem); bottom: clamp(2.7rem, 5vw, 3.3rem);
  width: clamp(140px, 32%, 196px); height: auto;
}

/* Entrance: copy settles, card drops in, then fields type (JS) */
.motion .hero-copy, .motion .order-stage { opacity: 0; translate: 0 16px; }
.is-loaded .hero-copy { opacity: 1; translate: 0 0; transition: opacity .9s var(--ease), translate 1s var(--ease); }
.is-loaded .order-stage { opacity: 1; translate: 0 0; transition: opacity .9s var(--ease) .15s, translate 1s var(--ease) .15s; }

/* ---------- Promises ---------- */
.promises {
  background: var(--verdigris-deep);
  color: #E7F0EC;
  position: relative;
  z-index: 1;
}
.promise-list {
  list-style: none;
  margin: 0 auto;
  padding-block: 1.6rem 1.9rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .85rem 1.25rem;
  font-size: .97rem;
}
.promise-list li { display: flex; align-items: center; gap: .6rem; }
.promise-list li::before {
  content: ""; flex: none;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--copper-light);
  box-shadow: 0 0 0 3px rgba(229, 156, 128, .18);
}
@media (min-width: 760px) {
  .promise-list { grid-template-columns: repeat(3, auto); justify-content: space-between; }
}
@media (min-width: 1100px) {
  .promise-list { grid-template-columns: repeat(6, auto); padding-block: 1.5rem; font-size: .95rem; }
  .promise-list li { white-space: nowrap; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); position: relative; overflow-x: clip; }
.section-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { margin-bottom: 1rem; }
.section-head p { color: var(--ink-soft); font-size: 1.12em; }

/* ---------- Review (proof sheet) ---------- */
.review-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
@media (min-width: 960px) { .review-grid { grid-template-columns: .9fr 1.1fr; gap: 5rem; } }
.review-copy { min-width: 0; }
.review-copy h2 { margin-bottom: 1.4rem; max-width: 13ch; }
.review-copy p { color: var(--ink-soft); max-width: 31rem; }
.proof {
  position: relative;
  margin: 0;
  max-width: 600px; width: 100%;
  justify-self: center;
  background: var(--sheet);
  padding: clamp(1.6rem, 4vw, 2.9rem) clamp(1.4rem, 4vw, 2.9rem) clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: 0 34px 60px -30px rgba(43, 35, 37, .5), 0 2px 6px rgba(43, 35, 37, .08);
  transform: rotate(-1deg);
}
.crop { position: absolute; width: 20px; height: 20px; border: 0 solid rgba(43, 35, 37, .5); }
.c1 { left: 12px; top: 12px; border-left-width: 1px; border-top-width: 1px; }
.c2 { right: 12px; top: 12px; border-right-width: 1px; border-top-width: 1px; }
.c3 { left: 12px; bottom: 12px; border-left-width: 1px; border-bottom-width: 1px; }
.c4 { right: 12px; bottom: 12px; border-right-width: 1px; border-bottom-width: 1px; }
.proof-shot { width: 100%; height: auto; box-shadow: 0 0 0 1px rgba(43, 35, 37, .12); }
.proof-cap { margin-top: .9rem; font-size: .9rem; color: var(--ink-faint); }
.proof-notes { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .45rem; font-size: 1.05rem; color: #4A4244; }
.proof-notes li { position: relative; padding-left: 1.8rem; }
.proof-notes li::before {
  content: "\2713";
  position: absolute; left: 0; top: 0;
  width: 1.1em; text-align: center;
  color: var(--copper); font-weight: 700;
  transition: color .3s, box-shadow .3s, transform .35s var(--ease);
}
.motion .proof-notes li:not(.done)::before { color: transparent; box-shadow: inset 0 0 0 1.5px rgba(43, 35, 37, .3); border-radius: 3px; transform: scale(.85); }
.proof .proof-stamp { position: absolute; right: clamp(1.2rem, 4vw, 2.4rem); bottom: clamp(1.4rem, 3.5vw, 2.2rem); width: clamp(130px, 30%, 190px); height: auto; }
@media (max-width: 600px) {
  .proof-notes { margin-bottom: 3.6rem; }
  .proof .proof-stamp { width: 150px; bottom: 1.2rem; }
}

/* ---------- Work ---------- */
.work-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(82vw, 380px);
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: .5rem var(--gutter) 1.5rem;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.work-rail::-webkit-scrollbar { display: none; }
@media (min-width: 900px) {
  .work-rail {
    grid-auto-flow: initial;
    grid-template-columns: repeat(3, 1fr);
    max-width: var(--wrap);
    margin-inline: auto;
    overflow: visible;
    gap: 2rem;
  }
}
.work-card { scroll-snap-align: start; }
.work-card h3 { margin-top: 1.25rem; font-size: 1.45rem; }
.frame {
  border-radius: 12px;
  background: #FBF8F6;
  box-shadow: 0 0 0 1px rgba(43, 35, 37, .08), 0 18px 40px -22px rgba(43, 35, 37, .45);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.frame-bar { display: flex; gap: 6px; padding: 10px 12px; background: #EEE7E2; }
.frame-bar i { width: 8px; height: 8px; border-radius: 50%; background: #D6CBC4; }
.frame-body { aspect-ratio: 4 / 3; position: relative; }

/* Screenshot sits over a quiet fallback until the image loads */
.frame-body { background: var(--paper); overflow: hidden; }
.frame-body img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
}
.frame-fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; font-size: 1.35rem;
  color: var(--ink-faint);
}
.work-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.work-meta { color: var(--copper-dark) !important; font-weight: 600; font-size: .88rem !important; margin: .35rem 0 .5rem !important; }
.work-desc { color: var(--ink-soft) !important; font-size: .98rem !important; margin-bottom: 1rem !important; }
.work-visit {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  font-weight: 600; font-size: .95rem;
  color: var(--ink);
  border-bottom: 1.5px solid var(--copper);
  padding-bottom: 2px;
}
.work-link:hover .work-visit { color: var(--copper-dark); }

@media (hover: hover) and (pointer: fine) {
  .work-card:hover .frame { box-shadow: 0 0 0 1px rgba(43, 35, 37, .08), 0 30px 60px -28px rgba(43, 35, 37, .55); }
}

/* ---------- The math ---------- */
.math { background: var(--paper); }
.math-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
@media (min-width: 960px) { .math-grid { grid-template-columns: 1fr 1.05fr; } }
.math-copy h2 { margin-bottom: 1.5rem; max-width: 14ch; }
.math-copy p { color: var(--ink-soft); max-width: 34rem; }

.calc {
  background: var(--parchment);
  border-radius: 18px;
  padding: clamp(1.4rem, 3.5vw, 2.25rem);
  box-shadow: 0 0 0 1px rgba(43, 35, 37, .07), 0 30px 60px -36px rgba(43, 35, 37, .5);
}
.calc-title { font-size: 1.45rem; margin-bottom: 1.25rem; }
.calc-label { display: block; font-weight: 500; color: var(--ink-soft); margin-bottom: .6rem; }
.calc-label output { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.calc-range {
  --fill: 37%;
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 36px;
  background: transparent;
  cursor: pointer;
  margin: 0;
  touch-action: pan-y;
}
.calc-range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 6px;
  background: linear-gradient(90deg, var(--copper) var(--fill), var(--paper-deep) var(--fill));
}
.calc-range::-moz-range-track { height: 6px; border-radius: 6px; background: var(--paper-deep); }
.calc-range::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--copper); }
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px; height: 28px; margin-top: -11px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 4px var(--parchment), 0 3px 10px rgba(60, 30, 10, .35);
  transition: transform .25s var(--ease);
}
.calc-range::-moz-range-thumb {
  width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 4px var(--parchment), 0 3px 10px rgba(60, 30, 10, .35);
}
.calc-range:active::-webkit-slider-thumb { transform: scale(1.12); }
.calc-range:focus-visible { outline-offset: 4px; }
.calc-ticks {
  position: relative;
  height: 1.2em;
  font-size: .78rem; color: var(--ink-faint);
  margin: .1rem 0 1.6rem;
  font-variant-numeric: tabular-nums;
}
.calc-ticks span {
  position: absolute; top: 0;
  left: calc(14px + (100% - 28px) * var(--f));
  transform: translateX(-50%);
  white-space: nowrap;
}
.calc-ticks span:first-child { transform: translateX(-14px); }
.calc-ticks span:last-child { transform: translateX(calc(-100% + 14px)); }

.calc-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.15rem; }
.calc-row {
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: .45rem;
  align-items: baseline;
}
.calc-name { font-weight: 500; }
.calc-val { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.calc-bar {
  grid-column: 1 / -1;
  height: 12px; border-radius: 12px;
  background: rgba(43, 35, 37, .07);
  overflow: hidden;
}
.calc-bar i {
  display: block; height: 100%; width: 0;
  border-radius: inherit;
  background: #B8ACA9;
  transform-origin: left;
  transition: width .6s var(--ease);
}
.calc-row.is-copper .calc-name { color: var(--copper-dark); font-weight: 600; }
.calc-row.is-copper .calc-bar i { background: var(--copper); }
.calc-insight {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(43, 35, 37, .1);
  font-size: 1.02rem;
  min-height: 3.4em;
}
.calc-note { font-size: .8rem; color: var(--ink-faint); margin-top: .75rem; }

/* ---------- Process ---------- */
.process-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) {
  .process-grid { grid-template-columns: 1fr 1.25fr; gap: 5rem; }
  .process-intro { position: sticky; top: calc(var(--header-h) + 3rem); align-self: start; }
}
.process-intro h2 { margin-bottom: 1.25rem; max-width: 12ch; }
.process-intro p { color: var(--ink-soft); max-width: 28rem; }
.process-need {
  margin-top: 2rem !important;
  padding: 1.1rem 1.25rem;
  background: var(--paper);
  border-radius: 12px;
  font-size: .97rem;
}
.process-need strong { color: var(--ink); font-weight: 600; }

.steps {
  --progress: 0;
  list-style: none;
  margin: 0; padding: 0 0 0 2.4rem;
  position: relative;
}
.steps::before, .steps::after {
  content: "";
  position: absolute; left: 9px; top: 10px; bottom: 10px;
  width: 2px; border-radius: 2px;
}
.steps::before { background: rgba(43, 35, 37, .12); }
.steps::after {
  background: var(--copper);
  transform-origin: top;
  transform: scaleY(var(--progress));
}
.step { position: relative; padding-bottom: clamp(2.5rem, 6vw, 3.5rem); }
.step:last-child { padding-bottom: 0; }
.step-stamp {
  position: absolute; left: calc(-2.4rem - 13px); top: -.35rem;
  width: 46px; height: 46px;
}
.step-stamp::before {
  content: ""; position: absolute; inset: 6px;
  border-radius: 50%;
  border: 2px dashed rgba(43, 35, 37, .22);
  background: var(--parchment);
}
.step-stamp .stamp { position: relative; width: 46px; height: 46px; }
.motion .step:not(.is-stamped) .step-stamp .stamp { opacity: 0; transform: rotate(var(--r)) scale(1.5); }
.motion .step.is-stamped .step-stamp .stamp { animation: stamp-press .5s cubic-bezier(.3, .7, .35, 1.15) forwards; }
.step-when {
  font-size: 1rem;
  color: var(--copper-dark);
  margin-bottom: .35rem;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: .6rem; }
.step p:last-child { color: var(--ink-soft); max-width: 32rem; }
.motion .step { opacity: .5; transition: opacity .6s var(--ease); }
.motion .step.is-reached { opacity: 1; }

/* ---------- Included (deep verdigris band) ---------- */
.included { background: var(--verdigris-deep); color: #E3EEEA; }
.included .section-head h2 { color: #F6F1EE; }
.included .section-head p { color: #B9D2CA; }
.inc-list {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  gap: 0 3rem;
}
@media (min-width: 760px) { .inc-list { grid-template-columns: 1fr 1fr; } }
.inc-list li {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.35rem 0;
  border-top: 1px solid rgba(169, 207, 195, .22);
}
.inc-list svg {
  width: 26px; height: 26px; flex: none; margin-top: .15rem;
  fill: none; stroke: var(--copper-light); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.inc-list h3 { font-size: 1.25rem; margin-bottom: .3rem; color: #F6F1EE; }
.inc-list p { color: #B9D2CA; font-size: .98rem; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; gap: 1.5rem; align-items: stretch; }
@media (min-width: 1000px) { .price-grid { grid-template-columns: .85fr 1.15fr; gap: 2rem; } }

.build {
  background: var(--ink);
  color: #F3EDE9;
  border-radius: 22px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.build::before {
  content: "";
  position: absolute; right: -70px; top: -70px;
  width: 190px; height: 190px; border-radius: 50%;
  background: var(--copper);
  opacity: .28;
  pointer-events: none;
}
.build h3 { font-size: 1.5rem; }
.build-price { margin: 1rem 0 .4rem; display: flex; align-items: baseline; gap: .6rem; }
.build-price .amt { font-family: var(--serif); font-weight: 600; font-size: clamp(3.4rem, 7vw, 4.6rem); line-height: 1; letter-spacing: -.02em; }
.build-price .per { color: #BDB1AF; }
.build-lede { color: #D8CDC9; margin-bottom: 1.5rem; }
.build .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 520px) { .build .btn { align-self: stretch; } }

.ticks { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: .7rem; }
.ticks li { display: flex; gap: .7rem; align-items: baseline; }
.ticks li::before {
  content: ""; flex: none;
  width: 14px; height: 8px;
  border-left: 1.75px solid var(--copper-light);
  border-bottom: 1.75px solid var(--copper-light);
  transform: translateY(-3px) rotate(-45deg);
}

.plans { display: flex; flex-direction: column; gap: 1.25rem; }
.plans-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.plans-head h3 { font-size: 1.5rem; }
.billing {
  display: inline-flex; padding: 4px; border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(43, 35, 37, .06);
}
.billing button {
  border: 0; cursor: pointer;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: transparent;
  font-size: .92rem; font-weight: 500;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: .45rem;
  transition: background .35s var(--ease), color .35s, box-shadow .35s;
}
.billing button[aria-pressed="true"] {
  background: var(--parchment); color: var(--ink);
  box-shadow: 0 1px 3px rgba(43, 35, 37, .15);
}
.billing .save {
  font-size: .74rem; font-weight: 600;
  color: var(--verdigris-deep);
  background: rgba(94, 156, 143, .22);
  padding: .15rem .45rem; border-radius: 999px;
}

.plan-list { display: grid; gap: 1rem; }
@media (min-width: 700px) { .plan-list { grid-template-columns: repeat(3, 1fr); } }
.plan {
  border-radius: 18px;
  padding: 1.5rem;
  background: var(--paper);
  display: flex; flex-direction: column;
}
.plan h4 { font-size: 1.4rem; }
.plan-price { margin: .6rem 0 .8rem; display: flex; align-items: baseline; gap: .15rem; }
.plan-price .amt { font-family: var(--serif); font-weight: 600; font-size: 2.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price .per { color: var(--ink-faint); font-size: .95rem; }
.plan-desc { font-size: .95rem; color: var(--ink-soft); }

/* The Patina plan carries the brand texture */
.plan-patina {
  position: relative;
  overflow: hidden;
  background: var(--verdigris-deep);
  color: #EAF2EF;
}
.plan-patina::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012' numOctaves='4' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 .37 0 0 0 0 .62 0 0 0 0 .56 0 0 0 1.6 -.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  background-size: cover;
  opacity: .55;
  pointer-events: none;
}
.plan-patina > * { position: relative; }
.plan-patina .per { color: #A9C7BB; }
.plan-patina .plan-desc { color: #C9DED7; }

.extras {
  border-top: 1px solid rgba(43, 35, 37, .12);
  padding-top: 1.25rem;
}
.extras h4 { font-size: 1.2rem; margin-bottom: .5rem; }
.extras p { color: var(--ink-soft); font-size: .98rem; max-width: 46rem; }
.extras-list { font-size: .92rem !important; color: var(--ink-faint) !important; }

/* ---------- FAQ ---------- */
.faq { background: var(--paper); }
.faq-grid { display: grid; gap: 1rem; }
@media (min-width: 960px) {
  .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 5rem; }
  .faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 3rem); align-self: start; }
}
.faq-list details { border-top: 1px solid rgba(43, 35, 37, .14); }
.faq-list details:last-child { border-bottom: 1px solid rgba(43, 35, 37, .14); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.35rem 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.25;
  -webkit-tap-highlight-color: transparent;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 11px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 11px no-repeat;
  box-shadow: inset 0 0 0 1px rgba(43, 35, 37, .2);
  transition: transform .45s var(--ease), background-color .3s, box-shadow .3s;
}
.faq-list details[open] summary::after {
  transform: rotate(135deg);
  box-shadow: inset 0 0 0 1px var(--copper);
}
.faq-list summary:hover::after { box-shadow: inset 0 0 0 1px var(--ink); }
.faq-body { overflow: hidden; }
.faq-body p { color: var(--ink-soft); padding-bottom: 1.5rem; max-width: 38rem; margin: 0; }
.faq-body p:has(+ .faq-never) { padding-bottom: .75rem; }
.faq-never { list-style: none; margin: 0; padding: 0 0 1.5rem; display: grid; gap: .45rem; color: var(--ink); }
.faq-never li { display: flex; gap: .7rem; align-items: baseline; }
.faq-never li::before { content: ""; flex: none; width: 10px; height: 1.75px; background: var(--copper); transform: translateY(-4px); }

/* ---------- Closing ---------- */
.closing {
  position: relative;
  overflow: hidden;
  background: var(--verdigris-ink);
  color: #F3EDE9;
  text-align: center;
  padding-block: clamp(6rem, 14vw, 11rem);
}
.closing-glow {
  position: absolute; left: 50%; top: 100%;
  width: min(70vw, 420px); aspect-ratio: 1;
  transform: translate(-50%, -32%);
  border-radius: 50%;
  background: var(--copper);
  opacity: .22;
  pointer-events: none;
}
.closing-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.closing-mark { width: 84px; height: 84px; margin-bottom: 2rem; transform: rotate(-6deg); }
.closing h2 { max-width: 16ch; margin-bottom: 1.25rem; font-size: clamp(2.3rem, 5.6vw, 4.4rem); color: #FCF5F2; }
.closing p { color: #B9D2CA; margin-bottom: 2.25rem; }
.closing-alt { margin: 1.5rem 0 0 !important; font-size: .95rem; }
.closing-alt a { color: #F3EDE9; text-underline-offset: 3px; text-decoration-color: rgba(243, 237, 233, .4); }
@media (max-width: 520px) { .closing .btn { width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--verdigris-ink); color: #A9C7BB; border-top: 1px solid rgba(255, 255, 255, .07); }
.footer-inner {
  display: grid; gap: 1.5rem;
  padding-block: 2.5rem calc(2.5rem + env(safe-area-inset-bottom));
}
.footer-inner .brand { color: #F3EDE9; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; }
.footer-nav a { text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { color: #F3EDE9; }
.footer-small { font-size: .85rem; color: #7FA399; }
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: auto 1fr auto; align-items: center; }
  .footer-nav { justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .cursor { animation: none; }
}
