/* Fox Property Advisory. Handcrafted, no framework.
   Palette drawn from the photography: suit navy ink, cool plaster, fox rust.
   Grammar: the valuation report. Ruled ledgers, mono word keys, one certificate. */

@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-latin-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Mona Sans"; src: url("/assets/fonts/mona-sans-var.woff2") format("woff2"); font-weight: 200 900; font-stretch: 75% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-v25-latin-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-v25-latin-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-v25-latin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Spline Sans Mono"; src: url("/assets/fonts/spline-sans-mono-v13-latin-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Spline Sans Mono"; src: url("/assets/fonts/spline-sans-mono-v13-latin-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --ink: #16202F;
  --ink-2: #1C2839;
  --ink-line: #2C3B50;
  --paper: #FAFAF8;
  --plaster: #F1F1ED;
  --graphite: #262E3C;
  --slate: #5B6473;
  --rust: #B14D2B;
  --rust-bright: #D96B3F;
  --line: #DAD8D0;
  --dark-body: #B8BFC9;   /* body text on ink */
  --dark-dim: #9AA3B0;    /* secondary on ink, AA at small sizes */
  --dark-bright: #F5F4F0; /* headings on ink */
  --serif: "Mona Sans", "Instrument Sans", "Archivo", -apple-system, "Segoe UI", sans-serif;
  --sans: "Mona Sans", "Instrument Sans", "Archivo", -apple-system, "Segoe UI", sans-serif;
  --mono: "Spline Sans Mono", "SF Mono", Consolas, monospace;
  --label: 0.8rem;        /* the one mono word-key size */
  --shell: 1240px;
  --keygrid: minmax(0, 1fr) minmax(0, 2fr); /* shared ledger key column: 1/3 shell */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* spacing scale: s1 tight stack, s2 head-to-lead, s3 block, s4 section-internal */
  --s1: 0.8rem;
  --s2: 1.2rem;
  --s3: 2.2rem;
  --s4: 3.2rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 5rem; }
body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--graphite);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
.nowrap { white-space: nowrap; }

.shell { max-width: var(--shell); margin: 0 auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

/* ============ Header ============ */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-head.is-stuck { border-bottom-color: var(--line); }
.head-row {
  display: flex; align-items: center; gap: 2rem;
  padding-block: 0.85rem;
}
.wordmark { text-decoration: none; display: flex; align-items: baseline; gap: 0.45rem; }
.wordmark-rest {
  font-family: var(--sans); font-weight: 500; font-size: 0.95rem;
  color: var(--slate); letter-spacing: 0.01em;
}
.site-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.site-nav a {
  text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--graphite);
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.site-nav a:hover { color: var(--rust); border-bottom-color: var(--rust); }
.head-call {
  font-family: var(--mono); font-size: 0.9rem; font-weight: 500; text-decoration: none;
  color: var(--ink); border: 1px solid var(--ink); border-radius: 2px;
  padding: 0.55rem 1.05rem; white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.head-call:hover { background: var(--ink); color: var(--paper); }

/* ============ Hero ============ */
.hero { padding-block: clamp(2rem, 4.5vw, 3.5rem) 0; }
.hero-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.7rem, 7.2vw, 5.9rem);
  line-height: 1.02; letter-spacing: -0.02em; color: var(--ink);
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line-inner { display: block; }
.hero-title em { color: var(--rust); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  margin-top: var(--s3);
}
.hero-sub {
  max-width: 32rem;
  font-size: 1.125rem; color: var(--slate); text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: var(--s3); }
.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--mono); font-weight: 500; font-size: 0.95rem;
  padding: 0.9rem 1.6rem; border-radius: 2px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-solid { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.btn-solid:hover { background: var(--rust); border-color: var(--rust); }
.btn-line { border: 1px solid rgba(22, 32, 47, 0.4); color: var(--ink); }
.btn-line:hover { border-color: var(--rust); color: var(--rust); }
.hero-note {
  margin-top: var(--s2); font-size: 0.875rem;
  color: var(--slate); text-wrap: pretty;
}
.hero-photo img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 55% 30%;
  border: 1px solid var(--line);
}
.hero-photo figcaption, .about-photo figcaption, .contact-photo figcaption {
  font-family: var(--mono); font-size: var(--label); color: var(--slate);
  margin-top: 0.7rem;
}

/* The certificate: the one artifact this page is remembered by */
.cert {
  margin-block: clamp(2.75rem, 5vw, 4rem) clamp(2.75rem, 5vw, 4rem);
  background: var(--plaster);
  border: 1px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 4px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}
.cert-no {
  padding: 1.4rem 1.75rem 1.3rem;
  border-right: 1px solid var(--ink);
  display: flex; flex-direction: column; justify-content: space-between; gap: 0.5rem;
}
.cert-key { font-family: var(--mono); font-size: var(--label); color: var(--slate); }
.cert-num {
  font-family: var(--mono); font-weight: 500;
  font-size: clamp(2.4rem, 4.8vw, 4.2rem); line-height: 1;
  color: var(--ink); letter-spacing: -0.02em;
}
.cert-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cert-field { padding: 1rem 1.75rem 0.9rem; }
.cert-field:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.cert-field:nth-child(odd) { border-right: 1px solid var(--line); }
.cert-field dt { font-family: var(--mono); font-size: var(--label); color: var(--slate); margin-bottom: 0.1rem; }
.cert-field dd { font-size: 1rem; font-weight: 500; color: var(--ink); text-wrap: pretty; }

/* ============ The standard (dark signature) ============ */
.standard {
  background: var(--ink); color: var(--plaster);
  padding-block: clamp(3.25rem, 6.5vw, 5.25rem);
}
.standard-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.3rem, 5.4vw, 4.5rem); line-height: 1.06;
  letter-spacing: -0.015em; color: var(--dark-bright);
  max-width: 24ch; text-wrap: balance;
}
.standard-title em { color: var(--rust-bright); }
.standard-lead {
  margin-top: var(--s2); max-width: 40rem; font-size: 1.125rem;
  line-height: 1.75; color: var(--dark-body); text-wrap: pretty;
}
/* Full-bleed ledger: rules run edge to edge, content stays on the shell grid */
.hold-ledger {
  list-style: none; margin-top: var(--s4);
  border-top: 1px solid var(--ink-line);
}
.hold-row {
  display: grid; grid-template-columns: var(--keygrid);
  gap: 1.25rem;
  border-bottom: 1px solid var(--ink-line);
  padding-block: 1.1rem;
  padding-inline: max(clamp(1.25rem, 4vw, 2.5rem), calc((100% - var(--shell)) / 2 + 2.5rem));
  transition: background 0.25s var(--ease);
}
.hold-row:hover { background: var(--ink-2); }
.hold-venue { font-family: var(--mono); font-size: 0.95rem; font-weight: 500; color: var(--dark-bright); }
.hold-req { font-size: 1rem; color: var(--dark-dim); text-wrap: pretty; }
.standard-close-row {
  display: grid; grid-template-columns: var(--keygrid); gap: 1.25rem;
  margin-top: var(--s4);
}
.standard-close {
  grid-column: 2; font-family: var(--serif); font-size: 1.15rem;
  font-weight: 400; color: var(--dark-bright); max-width: 44ch; line-height: 1.5; text-wrap: balance;
}

/* ============ Services ============ */
.services { padding-block: clamp(3.25rem, 6.5vw, 5rem); background: var(--paper); }
.services-head { margin-bottom: var(--s4); }
.services-head h2, .about-copy h2, .contact-copy h2, .coverage-line {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.05rem); line-height: 1.12;
  letter-spacing: -0.01em; color: var(--ink); text-wrap: balance;
}
.services-lead { margin-top: var(--s2); max-width: 38rem; color: var(--slate); font-size: 1.0625rem; text-wrap: pretty; }
.svc-ledger {
  list-style: none;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--ink);
}
.svc-row {
  padding-block: 1.8rem; border-bottom: 1px solid var(--line);
  position: relative;
}
.svc-row::before {
  content: ""; position: absolute; bottom: -1px; left: 0;
  width: 0; height: 1px; background: var(--rust); z-index: 1;
  transition: width 0.45s var(--ease);
}
.svc-row:hover::before { width: 100%; }
.svc-row h3 {
  font-family: var(--serif); font-weight: 500; font-size: 1.2rem;
  color: var(--ink); margin-bottom: var(--s1);
}
.svc-row p { color: var(--slate); font-size: 1rem; max-width: 34rem; text-wrap: pretty; }

/* ============ About ============ */
.about { background: var(--plaster); padding-block: clamp(3.25rem, 6.5vw, 5rem); }
.about-grid {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 5rem); align-items: start;
}
.about-photo img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 42% 22%;
  border: 1px solid var(--line);
}
.about-copy p { margin-top: var(--s2); max-width: 36rem; color: var(--graphite); text-wrap: pretty; }
.about-copy p:first-of-type { margin-top: var(--s2); }
.fact-ledger { margin-top: var(--s3); border-top: 1px solid var(--ink); }
.fact {
  display: grid; grid-template-columns: var(--keygrid);
  gap: 1.25rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line);
}
.fact dt { font-family: var(--sans); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.fact dd { font-size: 1rem; font-weight: 500; color: var(--ink); text-wrap: pretty; }

/* ============ Coverage ============ */
.coverage {
  background: var(--paper);
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}
.region-ledger { margin-top: var(--s3); border-top: 1px solid var(--ink); }
.region {
  display: grid; grid-template-columns: var(--keygrid);
  gap: 1.25rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line);
}
.region dt { font-family: var(--mono); font-size: 0.95rem; font-weight: 500; color: var(--ink); }
.region dd { color: var(--slate); font-size: 1rem; text-wrap: pretty; }

/* ============ Contact ============ */
.contact { background: var(--ink); color: var(--plaster); padding-block: clamp(3.25rem, 6.5vw, 5rem); }
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
}
.contact-copy h2 { color: var(--dark-bright); }
.contact-copy > p { margin-top: var(--s2); max-width: 32rem; color: var(--dark-body); text-wrap: pretty; }
.contact-phone {
  display: inline-block; margin-top: var(--s3);
  font-family: var(--mono); font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--dark-bright); text-decoration: none;
  border-bottom: 2px solid var(--rust-bright); padding-bottom: 0.2rem;
  transition: color 0.25s;
}
.contact-phone:hover { color: var(--rust-bright); }
.js .m-underline { border-bottom-color: transparent; position: relative; }
.js .m-underline::after {
  content: ""; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px;
  background: var(--rust-bright);
  transform: scaleX(0); transform-origin: left center;
}
.js .m-underline.in::after { transform: none; transition: transform 0.8s var(--ease) 0.15s; }
.contact-mail {
  display: block; margin-top: var(--s2); font-size: 1rem;
  color: var(--dark-body); text-decoration: none; text-wrap: pretty;
}
.contact-mail:hover { color: var(--dark-bright); text-decoration: underline; }
.contact-addr { margin-top: var(--s2); font-style: normal; color: var(--dark-dim); font-size: 1rem; line-height: 1.6; }
.contact-photo img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 62% 28%;
  border: 1px solid var(--ink-line);
}
.contact-photo figcaption { color: var(--dark-dim); }

/* ============ Footer ============ */
.site-foot { background: var(--ink); border-top: 1px solid var(--ink-line); padding-block: 2rem 2.25rem; }
.foot-rule {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.75rem 2.5rem;
  padding-bottom: 1.1rem; border-bottom: 1px solid var(--ink-line); margin-bottom: 1rem;
}
.foot-mark { color: #E8E6E0; }
.foot-mark-rest { font-family: var(--sans); font-style: normal; font-size: 0.85rem; color: var(--dark-dim); }
.foot-reg { font-size: 0.875rem; color: var(--dark-dim); max-width: 72ch; text-wrap: pretty; }
.foot-legal { font-size: 0.8rem; color: #8A93A2; }

/* ============ Motion ============ */
/* Hero load choreography */
.js .hero-title .line-inner { transform: translateY(112%); }
.js.is-loaded .hero-title .line-inner {
  transform: none;
  transition: transform 0.95s var(--ease);
}
.js.is-loaded .hero-title .line:nth-child(2) .line-inner { transition-delay: 0.12s; }
.js .m-fade { opacity: 0; transform: translateY(10px); }
.js .m-fade.in {
  opacity: 1; transform: none;
  transition: opacity 0.8s var(--ease) 0.3s, transform 0.8s var(--ease) 0.3s;
}
.js .m-photo { opacity: 0; }
.js .m-photo img { transform: scale(1.025); }
.js .m-photo.in {
  opacity: 1; transition: opacity 0.9s var(--ease) 0.2s;
}
.js .m-photo.in img {
  transform: none; transition: transform 1.3s var(--ease) 0.2s;
}
/* Ledger rows: rule draws in, content follows */
.m-row { position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .js .m-row { border-bottom-color: transparent; }
}
.js .m-row::after {
  content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 1px;
  background: var(--line);
  transform: scaleX(0); transform-origin: left center;
}
.js .standard .m-row::after { background: var(--ink-line); }
.js .m-row > * { opacity: 0; }
.js .m-row.in::after {
  transform: none;
  transition: transform 0.8s var(--ease);
  transition-delay: var(--row-delay, 0s);
}
.js .m-row.in > * {
  opacity: 1;
  transition: opacity 0.7s var(--ease);
  transition-delay: calc(var(--row-delay, 0s) + 0.15s);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-title .line-inner { transform: none; transition: none; }
  .js .m-fade, .js .m-photo { opacity: 1; transform: none; transition: none; }
  .js .m-photo img { transform: none; }
  .js .m-row > * { opacity: 1; }
  .js .m-row::after { display: none; }
  .btn, .hold-row, .svc-row::before { transition: none; }
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .svc-ledger { grid-template-columns: 1fr; }
  .cert { grid-template-columns: 1fr; }
  .cert-no { border-right: none; border-bottom: 1px solid var(--ink); flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0.4rem; }
  .cert-key { white-space: nowrap; }
  .cert-num { font-size: 2.3rem; white-space: nowrap; }
  .cert-fields { grid-template-columns: 1fr; }
  .cert-field { border-right: none !important; padding-inline: 1.75rem; }
  .cert-field:not(:last-child) { border-bottom: 1px solid var(--line); }
  .hold-row, .fact, .region { grid-template-columns: 1fr; gap: 0.3rem; }
  .about-photo { max-width: 420px; }
  [id] { scroll-margin-top: 8rem; }
  .standard-close-row { grid-template-columns: 1fr; }
  .standard-close { grid-column: auto; }
  .contact { padding-block: clamp(2.75rem, 6.5vw, 5rem) 2.5rem; }
}
@media (max-width: 520px) {
  .head-call { font-size: 0.85rem; padding: 0.65rem 0.9rem; }
  .wordmark-fox { font-size: 1.3rem; }
  .wordmark-rest { font-size: 0.8rem; }
}

/* ============ Depth: shared page chrome ============ */
.crumb { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.crumb a { color: var(--slate); text-decoration: none; }
.crumb a:hover { color: var(--rust); }

.page-close { background: var(--ink); color: var(--plaster); padding-block: clamp(2.5rem, 5.5vw, 4rem); }
.page-close-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.page-close h2 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  line-height: 1.12; letter-spacing: -0.01em; color: var(--dark-bright); text-wrap: balance;
}
.page-close p { margin-top: var(--s2); max-width: 32rem; color: var(--dark-body); text-wrap: pretty; }
.page-close .contact-phone { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 0; }
.page-close-contact { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); }
.page-close .contact-mail { margin-top: 0; }

/* ============ Index pages (insights / tools) ============ */
.index-hero {
  background-color: var(--ink); color: var(--plaster);
  background-size: cover; background-position: center;
  padding-block: clamp(3rem, 7.5vw, 5rem);
  position: relative;
}
.index-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(22, 32, 47, 0.92) 30%, rgba(22, 32, 47, 0.55));
}
.index-hero-facade { background-image: url("/assets/img/real-facade-1800.webp"); }
.index-hero-report { background-image: url("/assets/img/real-watch-1800.webp"); background-color: var(--ink); }
.index-hero.index-hero-report::before {
  background:
    linear-gradient(100deg, rgba(16,24,36,0.97) 26%, rgba(16,24,36,0.78) 58%, rgba(16,24,36,0.62)),
    linear-gradient(0deg, rgba(16,24,36,0.5), rgba(16,24,36,0.35));
}
.index-hero .shell { position: relative; }
.index-hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1.04;
  letter-spacing: -0.015em; color: var(--dark-bright);
}
.index-lead { margin-top: var(--s2); max-width: 38rem; font-size: 1.125rem; color: var(--dark-body); text-wrap: pretty; }
.index-list { padding-block: clamp(2.5rem, 5.5vw, 4rem) clamp(3.25rem, 6.5vw, 4.75rem); }
.idx-ledger { border-top: 1px solid var(--ink); }
.idx-row {
  display: grid; grid-template-columns: minmax(0, 0.55fr) minmax(0, 2fr) minmax(0, 0.35fr);
  gap: 1.25rem; padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none; position: relative;
}
.idx-row::before {
  content: ""; position: absolute; bottom: -1px; left: 0; z-index: 1;
  width: 0; height: 1px; background: var(--rust);
  transition: width 0.45s var(--ease);
}
.idx-row:hover::before { width: 100%; }
.idx-key { font-family: var(--mono); font-size: 0.95rem; font-weight: 500; color: var(--ink); padding-top: 0.2rem; }
.idx-title {
  display: block; font-family: var(--serif); font-weight: 500; font-size: 1.2rem;
  color: var(--ink); line-height: 1.25; text-wrap: balance;
  transition: color 0.2s;
}
.idx-row:hover .idx-title { color: var(--rust); }
.idx-desc { display: block; margin-top: 0.35rem; color: var(--slate); font-size: 1rem; max-width: 44rem; text-wrap: pretty; }
.idx-min { font-family: var(--mono); font-size: var(--label); color: var(--slate); text-align: right; padding-top: 0.3rem; }

/* ============ Article pages ============ */
.article-head { padding-block: clamp(2rem, 5vw, 3.5rem) 0; }
.article-head h1 {
  margin-top: var(--s2);
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.08;
  letter-spacing: -0.015em; color: var(--ink); max-width: 24ch; text-wrap: balance;
}
.standfirst { margin-top: var(--s2); max-width: 40rem; font-size: 1.125rem; color: var(--slate); text-wrap: pretty; }
.article-meta {
  margin-top: var(--s3); border-top: 1px solid var(--ink);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem; padding-block: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.meta-item dt { font-family: var(--mono); font-size: var(--label); color: var(--slate); margin-bottom: 0.1rem; }
.meta-item dd { font-size: 0.95rem; font-weight: 500; color: var(--ink); }
.article-grid {
  display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  padding-block: clamp(2rem, 5vw, 3.25rem) clamp(3.25rem, 6.5vw, 4.5rem);
  align-items: start;
}
.article-body { max-width: 44rem; }
.article-body p { margin-top: var(--s2); color: var(--graphite); text-wrap: pretty; line-height: 1.75; }
.article-body p:first-child { margin-top: 0; font-size: 1.125rem; }
.article-body h2 {
  margin-top: var(--s4); font-family: var(--serif); font-weight: 500;
  font-size: 1.7rem; line-height: 1.2; color: var(--ink);
  padding-top: var(--s2); border-top: 1px solid var(--ink);
  text-wrap: balance;
}
.article-body h3 {
  margin-top: var(--s3); font-family: var(--serif); font-weight: 500;
  font-size: 1.25rem; color: var(--ink);
}
.article-body ul { margin-top: var(--s2); padding-left: 1.1rem; }
.article-body li { margin-top: 0.6rem; color: var(--graphite); text-wrap: pretty; line-height: 1.7; }
.article-body li::marker { color: var(--rust); }
.article-body a { color: var(--ink); text-decoration-color: var(--rust); text-underline-offset: 3px; }
.article-rail { position: sticky; top: 5.5rem; display: grid; gap: var(--s3); }
.rail-block { border-top: 1px solid var(--ink); padding-top: 0.9rem; }
.foot-key { font-family: var(--mono); font-size: var(--label); color: var(--slate); margin-bottom: 0.6rem; }
.rail-item {
  display: grid; gap: 0.15rem; padding-block: 0.75rem;
  border-bottom: 1px solid var(--line); text-decoration: none;
}
.rail-key { font-family: var(--mono); font-size: var(--label); color: var(--slate); }
.rail-title { font-family: var(--serif); font-weight: 500; font-size: 0.95rem; color: var(--ink); line-height: 1.3; }
.rail-item:hover .rail-title { color: var(--rust); }
.rail-card { background: var(--plaster); border: 1px solid var(--ink); border-top-width: 1px; padding: 1.1rem 1.25rem 1.25rem; }
.rail-card-line { font-size: 0.95rem; color: var(--graphite); text-wrap: pretty; }
.rail-card-tel {
  display: inline-block; margin-top: 0.8rem; font-family: var(--mono); font-weight: 500;
  font-size: 1.3rem; color: var(--ink); text-decoration: none;
  border-bottom: 2px solid var(--rust); padding-bottom: 0.15rem;
}
.rail-card-tel:hover { color: var(--rust); }

/* ============ Tool pages ============ */
.tool-page .shell:last-of-type { padding-bottom: clamp(2.75rem, 6.5vw, 4.25rem); }
.tool-panel {
  margin-top: clamp(2rem, 5vw, 3rem);
  background: var(--plaster);
  border: 1px solid var(--ink);
  outline: 1px solid var(--ink); outline-offset: 4px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 52rem;
}
.tool-form fieldset { border: 0; }
.tool-form legend, .tool-checks legend { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; color: var(--ink); margin-bottom: 0.9rem; }
.choice-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.choice-list label {
  display: flex; align-items: baseline; gap: 0.7rem;
  padding: 0.8rem 0.2rem; border-bottom: 1px solid var(--line);
  font-size: 1rem; color: var(--graphite); cursor: pointer;
}
.choice-list label:hover { color: var(--rust); }
.tool-field { display: block; margin-top: var(--s2); }
.tool-field > span:first-child { display: block; font-family: var(--mono); font-size: var(--label); color: var(--slate); margin-bottom: 0.35rem; }
.tool-input-wrap { display: flex; align-items: center; gap: 0.4rem; border-bottom: 2px solid var(--ink); max-width: 22rem; }
.tool-prefix { font-family: var(--mono); color: var(--slate); }
.tool-input-wrap input {
  border: 0; background: transparent; width: 100%;
  font-family: var(--mono); font-size: 1.35rem; font-weight: 500; color: var(--ink);
  padding: 0.35rem 0; outline: none;
}
.tool-checks { margin-top: var(--s3); }
.tool-checks label { display: flex; gap: 0.6rem; align-items: baseline; padding-block: 0.45rem; font-size: 1rem; color: var(--graphite); cursor: pointer; }
.tool-checks input, .choice-list input { accent-color: var(--rust); }
.tool-result { margin-top: var(--s3); }
.tool-out { border-top: 1px solid var(--ink); }
.tool-out-row {
  display: grid; grid-template-columns: var(--keygrid); gap: 1.25rem;
  padding-block: 0.9rem; border-bottom: 1px solid var(--line);
}
.tool-out-row dt { font-family: var(--mono); font-size: var(--label); color: var(--slate); padding-top: 0.4rem; }
.tool-out-row dd { font-size: 1.05rem; font-weight: 500; color: var(--ink); text-wrap: pretty; }
.tool-out-big dd { font-family: var(--mono); font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -0.01em; }
.tool-note-wrap { margin-top: var(--s2); }
.tool-note { font-size: 0.875rem; color: var(--slate); max-width: 44rem; text-wrap: pretty; }
.tool-explain { margin-top: var(--s3); max-width: 44rem; }
.tool-explain p { color: var(--graphite); line-height: 1.75; text-wrap: pretty; }

/* ============ Home depth rails ============ */
.rails { padding-block: clamp(3.25rem, 6.5vw, 4.75rem); background: var(--paper); border-top: 1px solid var(--line); }
.rails-head { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; margin-bottom: var(--s3); }
.rails-head h2 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance;
}
.rails-all {
  font-family: var(--mono); font-size: 0.9rem; font-weight: 500; color: var(--ink);
  text-decoration: none; border-bottom: 1px solid var(--rust); padding-bottom: 2px; white-space: nowrap;
}
.rails-all:hover { color: var(--rust); }

/* ============ Ambient video in the dark section ============ */
.standard { position: relative; overflow: hidden; }
.standard-media {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.standard-media video {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.38;
}
.standard-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22, 32, 47, 0.55), rgba(22, 32, 47, 0.35) 40%, rgba(22, 32, 47, 0.8));
}
.standard > .shell, .standard > .hold-ledger { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .standard-media { display: none; }
  .cine-media video { display: none; }
  .cine-media { background: url("/assets/media/survey-film-poster.jpg") center / cover no-repeat; }
}

/* ============ Enterprise footer ============ */
.foot-grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2rem clamp(1.5rem, 4vw, 3.5rem);
  padding-bottom: var(--s3); margin-bottom: 1.25rem;
}
.foot-col { display: grid; gap: 0.45rem; align-content: start; }
.foot-col a { font-size: 0.9rem; color: var(--dark-body); text-decoration: none; line-height: 1.5; }
.foot-col a:hover { color: var(--dark-bright); text-decoration: underline; text-decoration-color: var(--rust-bright); }
.foot-col .foot-key { margin-bottom: 0.35rem; }
.site-foot .foot-key { color: #7A8494; }
.foot-addr { font-style: normal; font-size: 0.9rem; color: var(--dark-dim); line-height: 1.6; }
.foot-tel { font-family: var(--mono); font-weight: 500; font-size: 1.05rem; color: var(--dark-bright) !important; }
.foot-col-brand { gap: 0.7rem; }
.foot-mail { font-size: 0.9rem; }

@media (max-width: 900px) {
  .page-close-grid, .article-grid { grid-template-columns: 1fr; }
  .article-rail { position: static; }
  .article-meta { grid-template-columns: 1fr; gap: 0.8rem; }
  .idx-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .idx-min { text-align: left; padding-top: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .rails-head { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
}
@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; }
}

/* ============ Cinematic home ============ */
.site-head-cine {
  position: fixed; left: 0; right: 0; top: 0;
  background: transparent; border-bottom-color: transparent;
}
.site-head-cine:not(.is-stuck) .site-nav a,
.site-head-cine:not(.is-stuck) .wordmark-fox { color: var(--dark-bright); }
.site-head-cine:not(.is-stuck) .wordmark-rest { color: var(--dark-body); }
.site-head-cine:not(.is-stuck) .site-nav a:hover { color: var(--rust-bright); border-bottom-color: var(--rust-bright); }
.site-head-cine:not(.is-stuck) .head-call { color: var(--dark-bright); border-color: rgba(245, 244, 240, 0.55); }
.site-head-cine:not(.is-stuck) .head-call:hover { background: var(--dark-bright); color: var(--ink); }
.site-head-cine.is-stuck { position: fixed; background: var(--paper); }
.home main { padding-top: 0; }

.cine {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--plaster);
  padding-top: 5rem;
}
.cine-media { position: absolute; inset: 0; overflow: hidden; }
.cine-media video { width: 100%; height: 100%; object-fit: cover; }
.cine-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(75deg, rgba(22, 32, 47, 0.55) 0%, rgba(22, 32, 47, 0.18) 45%, rgba(22, 32, 47, 0) 75%),
    linear-gradient(180deg, rgba(22, 32, 47, 0.35) 0%, rgba(22, 32, 47, 0) 30%, rgba(22, 32, 47, 0.5) 100%);
}
.cine-content { position: relative; z-index: 1; width: 100%; }
.cine .hero-title { color: #FDFCFA; font-size: clamp(2.3rem, 4.8vw, 4.1rem); text-shadow: 0 2px 30px rgba(22, 32, 47, 0.45); }
.cine .hero-title em { color: var(--rust-bright); }
.cine-under {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: end;
  margin-top: var(--s3);
}
.cine-sub { max-width: 34rem; font-size: 1.0625rem; color: rgba(241, 241, 237, 0.88); text-wrap: pretty; }
.cine-under .hero-actions { margin-top: 0; justify-content: flex-end; }
.btn-on-dark { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-on-dark:hover { background: var(--rust-bright); border-color: var(--rust-bright); color: #FDFCFA; }
.btn-line-dark { border-color: rgba(245, 244, 240, 0.55); color: var(--dark-bright); }
.btn-line-dark:hover { border-color: var(--rust-bright); color: var(--rust-bright); }
.cine-foot {
  position: relative; z-index: 1; width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  padding-block: 1.1rem;
  border-top: 1px solid rgba(245, 244, 240, 0.25);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.cine-note { font-size: 0.875rem; color: rgba(241, 241, 237, 0.75); }
.cine-scroll {
  font-family: var(--mono); font-size: var(--label); color: rgba(241, 241, 237, 0.75);
  padding-right: 1.4rem; position: relative;
}
.cine-scroll::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 1px; height: 1.6em;
  background: var(--rust-bright); transform: translateY(-50%);
  animation: scrollhint 2.2s var(--ease) infinite;
}
@keyframes scrollhint {
  0%, 100% { transform: translateY(-70%) scaleY(0.6); opacity: 0.4; }
  50% { transform: translateY(-30%) scaleY(1); opacity: 1; }
}

/* Certificate crossing the boundary */
.cert-band { background: var(--paper); }
.cert-band .cert { margin-block: 0 0; }
.cert-pull {
  position: relative; z-index: 2;
  margin-top: -3.5rem;
  background: var(--plaster);
  box-shadow: 0 24px 50px -32px rgba(22, 32, 47, 0.5);
}

/* Intro split */
.intro { background: var(--paper); padding-block: clamp(3.25rem, 6.5vw, 5rem) clamp(3.25rem, 6.5vw, 4.5rem); }
.intro-grid {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
  gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
}
.intro-line {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.05rem); line-height: 1.14;
  letter-spacing: -0.01em; color: var(--ink); text-wrap: balance;
}
.intro-copy p { margin-top: var(--s2); max-width: 30rem; color: var(--slate); text-wrap: pretty; }
.intro-copy .rails-all { display: inline-block; margin-top: var(--s3); }
.intro-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 55% 30%; border: 1px solid var(--line); }

/* Standard: sticky side + ledger column */
.standard-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 6vw, 5rem); align-items: start;
}
.standard-side { position: sticky; top: 6rem; }
.standard-grid .standard-title { font-size: clamp(2.3rem, 4.4vw, 3.6rem); max-width: 16ch; }
.standard-grid .hold-ledger { margin-top: 0; }
.standard-grid .hold-row {
  grid-template-columns: 1fr; gap: 0.35rem;
  padding-inline: 0; padding-block: 1.9rem;
}
.standard-grid .standard-close { margin-top: var(--s3); }

/* Services switcher */
.svc-switch {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.svc-tabs { display: grid; border-top: 1px solid var(--ink); }
.svc-tabs [role="tab"] {
  appearance: none; background: none; border: 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  color: var(--slate); text-align: left; padding: 1rem 2.2rem 1rem 0.2rem;
  cursor: pointer; position: relative; line-height: 1.25;
  transition: color 0.2s;
}
.svc-tabs [role="tab"]:hover { color: var(--rust); }
.svc-tabs [role="tab"][aria-selected="true"] { color: var(--ink); }
.svc-tabs [role="tab"][aria-selected="true"]::after {
  content: ""; position: absolute; right: 0.2rem; top: 50%; transform: translateY(-50%);
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: var(--rust);
}
.svc-tabs [role="tab"]::before {
  content: ""; position: absolute; bottom: -1px; left: 0; z-index: 1;
  width: 0; height: 1px; background: var(--rust);
  transition: width 0.45s var(--ease);
}
.svc-tabs [role="tab"][aria-selected="true"]::before { width: 100%; }
.svc-panels { min-height: 22rem; }
.svc-panel { animation: panelin 0.45s var(--ease); }
@keyframes panelin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.svc-desc { font-size: 1.15rem; line-height: 1.6; color: var(--graphite); max-width: 36rem; text-wrap: pretty; font-family: var(--serif); }
.svc-facts { margin-top: var(--s3); border-top: 1px solid var(--ink); max-width: 36rem; }
.svc-fact {
  display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 2fr);
  gap: 1.25rem; padding-block: 0.9rem; border-bottom: 1px solid var(--line);
}
.svc-fact dt { font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); padding-top: 0.2rem; }
.svc-fact dd { font-size: 1rem; font-weight: 500; color: var(--ink); text-wrap: pretty; }
.svc-fact a { color: var(--ink); text-decoration-color: var(--rust); text-underline-offset: 3px; }
.svc-fact a:hover { color: var(--rust); }
@media (prefers-reduced-motion: reduce) { .svc-panel { animation: none; } }

/* About offset */
.about-offset { margin-top: -6rem; position: relative; z-index: 2; }
.about-offset img { box-shadow: 0 24px 50px -32px rgba(22, 32, 47, 0.4); }

/* Carousel */
.rails-side { display: flex; align-items: center; gap: 1.5rem; }
.car-nav { display: flex; gap: 0.5rem; }
.car-btn {
  appearance: none; background: none; cursor: pointer;
  border: 1px solid var(--ink); border-radius: 2px; color: var(--ink);
  font-size: 1rem; line-height: 1; padding: 0.55rem 0.8rem;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.car-btn[disabled] { opacity: 0.3; cursor: default; }
.car-btn[disabled]:hover { background: none; color: var(--ink); }
.car-btn:hover { background: var(--ink); color: var(--paper); }
.car {
  display: flex; gap: 1.25rem;
  overflow-x: auto; scroll-snap-type: x proximity;
  padding-inline: max(clamp(1.25rem, 4vw, 2.5rem), calc((100% - var(--shell)) / 2 + 2.5rem));
  scroll-padding-inline: max(clamp(1.25rem, 4vw, 2.5rem), calc((100% - var(--shell)) / 2 + 2.5rem));
  padding-bottom: 0.5rem;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.car-card {
  flex: 0 0 clamp(255px, 23.5vw, 315px);
  scroll-snap-align: start;
  display: grid; gap: 0.5rem; align-content: start;
  border: 1px solid var(--line); border-top: 1px solid var(--ink);
  background: var(--paper);
  padding: 1.2rem 1.3rem 1.4rem;
  text-decoration: none;
  transition: border-color 0.25s, transform 0.35s var(--ease);
}
.car-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.car-title { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; line-height: 1.25; color: var(--ink); text-wrap: balance; }
.car-card:hover .car-title { color: var(--rust); }
.car-desc { font-size: 0.95rem; color: var(--slate); line-height: 1.55; text-wrap: pretty; }

/* Tool cards */
.rails-tools { background: var(--plaster); border-top: 1px solid var(--line); }
.tool-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.tool-card {
  display: grid; gap: 0.5rem; align-content: start;
  border: 1px solid var(--line); border-top: 1px solid var(--ink);
  background: var(--paper);
  padding: 1.2rem 1.3rem 1.4rem;
  text-decoration: none;
  transition: border-color 0.25s, transform 0.35s var(--ease);
}
.tool-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.tool-card:hover .car-title { color: var(--rust); }

@media (max-width: 900px) {
  .cine { min-height: 100svh; }
  .cine-under { grid-template-columns: 1fr; align-items: start; }
  .cine-under .hero-actions { justify-content: flex-start; }
  .cine-sub { display: none; }
  .cine .btn { padding: 0.8rem 1.1rem; font-size: 0.9rem; }
  .cine-foot { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .cine-scroll { display: none; }
  .cert-pull { margin-top: -2.5rem; }
  .intro-grid, .standard-grid, .svc-switch { grid-template-columns: 1fr; }
  .standard-side { position: static; }
  .svc-tabs {
    display: flex; overflow-x: auto; border-top: 0; border-bottom: 1px solid var(--line);
    padding-right: 2.5rem;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2rem), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 2rem), transparent);
  }
  .svc-tabs [role="tab"] { flex: none; border-bottom: 2px solid transparent; font-size: 1.05rem; padding: 0.6rem 0.9rem 0.6rem 0.2rem; }
  .svc-tabs [role="tab"][aria-selected="true"] { border-bottom-color: var(--rust); }
  .svc-tabs [role="tab"]::before, .svc-tabs [role="tab"][aria-selected="true"]::after { display: none; }
  .svc-panels { min-height: 0; margin-top: var(--s3); }
  .about-offset { margin-top: 0; }
  .tool-cards { grid-template-columns: 1fr 1fr; }
  .site-head-cine:not(.is-stuck) .site-nav a { color: var(--dark-bright); }
}
@media (max-width: 520px) {
  .tool-cards { grid-template-columns: 1fr; }
}

/* ============ Multi-page architecture ============ */
/* Standard band on home */
.standard-band { padding-block: clamp(3.5rem, 7.5vw, 5.5rem); }
.standard-band-inner { position: relative; z-index: 1; max-width: 46rem; }
.standard-band .standard-title { font-size: clamp(2.4rem, 5vw, 4.2rem); max-width: none; }
.rails-all-dark { color: var(--dark-bright); border-bottom-color: var(--rust-bright); }
.rails-all-dark:hover { color: var(--rust-bright); }
.standard-band .rails-all-dark { display: inline-block; margin-top: var(--s3); }
.contact-more { display: inline-block; margin-top: var(--s2); }

/* Service index: big serif ledger */
.svc-index { border-top: 1px solid var(--ink); }
.svc-index-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 1rem clamp(1.5rem, 4vw, 3.5rem);
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none; position: relative;
  align-items: baseline;
}
.svc-index-row::before {
  content: ""; position: absolute; bottom: -1px; left: 0; z-index: 1;
  width: 0; height: 1px; background: var(--rust);
  transition: width 0.45s var(--ease);
}
.svc-index-row:hover::before { width: 100%; }
.svc-index-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.15;
  color: var(--ink); transition: color 0.2s;
}
.svc-index-row:hover .svc-index-title { color: var(--rust); }
.svc-index-desc { font-size: 1rem; color: var(--slate); max-width: 34rem; text-wrap: pretty; }

/* Valuations index page hero */
.index-hero-valuations { background-image: url("/assets/img/hero-wire-1800.webp"); }

/* Service pages */
.svc-facts-page { margin-top: var(--s4); max-width: none; }

/* Standard page */
.standard-page { min-height: 72vh; }
.standard-page .standard-title { font-size: clamp(2.5rem, 5.6vw, 4.6rem); }
.standard-how { background: var(--paper); padding-block: clamp(3.25rem, 6.5vw, 4.75rem); }
.standard-how h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.05rem); line-height: 1.12;
  color: var(--ink); margin-bottom: var(--s3); text-wrap: balance;
}
.how-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--ink); padding-top: var(--s3);
}
.how-key {
  font-family: var(--serif); font-weight: 500; font-size: 1.15rem;
  color: var(--ink); margin-bottom: var(--s1);
}
.how-item p:last-child { color: var(--slate); font-size: 1rem; text-wrap: pretty; }

/* About page */
.about-page-grid { padding-block: clamp(2rem, 5vw, 3.5rem) 0; }
.about-page .about-copy p { margin-top: var(--s2); }
.about-second { padding-block: clamp(2rem, 5vw, 3.25rem) clamp(2.75rem, 6.5vw, 4.25rem); }
.about-desk { max-width: 60rem; }
.about-desk img { aspect-ratio: 16 / 9; object-fit: cover; object-position: 55% 30%; border: 1px solid var(--line); }
.about-desk figcaption { color: var(--slate); }

/* Contact page */
.contact-page-hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.1;
  letter-spacing: -0.01em; color: var(--dark-bright); text-wrap: balance;
}
.contact-how { background: var(--paper); padding-block: clamp(2.75rem, 6.5vw, 4.25rem); }
.contact-how h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.05rem); color: var(--ink);
  margin-bottom: var(--s3); text-wrap: balance;
}
.contact-steps { max-width: 52rem; }

/* Footer: five columns now */
.foot-grid { grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .svc-index-row { grid-template-columns: 1fr; gap: 0.35rem; }
  .how-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .standard-band { padding-block: 4rem; }
}
@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   DARK SYSTEM (v12). The reference is dark, filmic, premium.
   This layer flips every light surface to the ink system; the two
   report artifacts (certificate, tool panel) stay plaster so the
   report grammar physically pops out of the dark.
   ================================================================ */
:root {
  --surface: #101824;        /* page ground, deeper than ink */
  --surface-2: #16202F;      /* raised band (old ink) */
  --surface-3: #1C2839;      /* card */
  --rule: #26334A;           /* hairline on dark */
  --rule-strong: #3A4A66;    /* strong rule on dark */
}
body { background: var(--surface); color: var(--dark-body); }

/* Header: dark always */
.site-head, .site-head.is-stuck { background: rgba(16, 24, 36, 0.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.site-head.is-stuck { border-bottom-color: var(--rule); }
.site-head .wordmark-fox { color: var(--dark-bright); }
.site-head .wordmark-rest { color: var(--dark-dim); }
.site-head .site-nav a { color: var(--dark-body); }
.site-head .site-nav a:hover { color: var(--rust-bright); border-bottom-color: var(--rust-bright); }
.site-head .site-nav a[aria-current="page"] { color: var(--dark-bright); border-bottom-color: var(--rust-bright); }
.site-head .head-call { color: var(--dark-bright); border-color: var(--rule-strong); }
.site-head .head-call:hover { background: var(--dark-bright); color: var(--ink); border-color: var(--dark-bright); }
.site-head-cine:not(.is-stuck) { background: transparent; }

/* Generic light sections -> dark */
.services, .index-list, .coverage, .intro, .rails, .standard-how, .contact-how { background: var(--surface); }
.about, .rails-tools { background: var(--surface-2); }
.services-head h2, .about-copy h2, .coverage-line, .rails-head h2,
.standard-how h2, .contact-how h2, .how-key,
.article-head h1, .idx-title, .svc-index-title, .car-title,
.svc-row h3, .svc-tabs [role="tab"][aria-selected="true"],
.article-body h2, .article-body h3, .rail-title,
.tool-form legend, .tool-checks legend {
  color: var(--dark-bright);
}
.services-lead, .standfirst, .index-lead, .idx-desc, .svc-index-desc, .car-desc,
.svc-row p, .about-copy p, .coverage-sub, .article-body p, .article-body li,
.how-item p:last-child, .rail-card-line, .tool-note, .tool-explain p, .hero-sub {
  color: var(--dark-body);
}
.crumb a, .idx-key, .idx-min, .rail-key, .meta-item dt, .fact dt, .svc-fact dt,
.reg-item dt, .cert-key, .hero-note, .region dd,
.hero-photo figcaption, .about-photo figcaption, .contact-photo figcaption { color: var(--dark-dim); }
.crumb a:hover { color: var(--rust-bright); }
.fact dd, .svc-fact dd, .meta-item dd, .region dt { color: var(--dark-bright); }
.svc-fact a { color: var(--dark-bright); }
.svc-fact a:hover { color: var(--rust-bright); }
.article-body a { color: var(--dark-bright); text-decoration-color: var(--rust-bright); }
.article-body li::marker { color: var(--rust-bright); }

/* Rules and ledgers on dark */
.idx-ledger, .svc-index, .fact-ledger, .region-ledger, .article-meta,
.svc-facts, .svc-ledger, .svc-tabs, .rail-block, .how-grid { border-top-color: var(--rule-strong); }
.idx-row, .svc-index-row, .fact, .region, .article-meta, .svc-fact,
.svc-row, .rail-item, .svc-tabs [role="tab"], .choice-list label, .tool-out-row { border-bottom-color: var(--rule); }
.js .m-row::after { background: var(--rule); }
.js .standard .m-row::after { background: var(--ink-line); }
.svc-index-row:hover .svc-index-title, .idx-row:hover .idx-title,
.car-card:hover .car-title, .tool-card:hover .car-title, .rail-item:hover .rail-title,
.svc-tabs [role="tab"]:hover { color: var(--rust-bright); }

/* Cards */
.car-card, .tool-card {
  background: var(--surface-3); border-color: var(--rule);
  border-top-color: var(--rule-strong);
}
.car-card:hover, .tool-card:hover { border-color: var(--rule-strong); }
.car-btn { border-color: var(--rule-strong); color: var(--dark-bright); }
.car-btn:hover { background: var(--dark-bright); color: var(--ink); }
.car-btn[disabled]:hover { background: none; color: var(--dark-bright); }
.car { scrollbar-color: var(--rule) transparent; }

/* Buttons on dark ground */
.btn-solid { background: var(--dark-bright); color: var(--ink); border-color: var(--dark-bright); }
.btn-solid:hover { background: var(--rust-bright); border-color: var(--rust-bright); color: #FDFCFA; }
.btn-line { border-color: var(--rule-strong); color: var(--dark-bright); }
.btn-line:hover { border-color: var(--rust-bright); color: var(--rust-bright); }

/* Photos: hairline on dark */
.hero-photo img, .about-photo img, .contact-photo img, .intro-photo img, .about-desk img { border-color: var(--rule-strong); }

/* The two plaster artifacts keep their light material */
.cert { background: var(--plaster); }
.cert .cert-key { color: var(--slate); }
.cert-field dt { color: var(--slate); }
.cert-field dd, .cert-num { color: var(--ink); }
.cert-field { border-color: var(--line) !important; }
.cert-pull { box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8); }
.tool-panel { background: var(--plaster); }
.tool-panel .tool-field > span:first-child, .tool-panel .tool-prefix,
.tool-panel .tool-out-row dt { color: var(--slate); }
.tool-panel .tool-form legend, .tool-panel .tool-checks legend,
.tool-panel .tool-out-row dd, .tool-panel .tool-input-wrap input,
.tool-panel .choice-list label { color: var(--graphite); }
.tool-panel .tool-out { border-top-color: var(--ink); }
.tool-panel .tool-out-row, .tool-panel .choice-list label { border-bottom-color: var(--line); }
.tool-panel .choice-list { border-top-color: var(--line); }
.tool-panel .tool-input-wrap { border-bottom-color: var(--ink); }
.tool-panel .choice-list label:hover { color: var(--rust); }
.rail-card { background: var(--plaster); border-color: var(--plaster); }
.rail-card .foot-key { color: var(--slate); }
.rail-card .rail-card-line { color: var(--graphite); }
.rail-card .rail-card-tel { color: var(--ink); }
.rail-card .rail-card-tel:hover { color: var(--rust); }

/* Standard band and contact sit on surface-2 for tonal rhythm */
.standard, .contact, .page-close { background: var(--surface-2); }
.site-foot { background: var(--surface); border-top-color: var(--rule); }
.foot-col a { color: var(--dark-body); }

/* Index heroes: keep their film stills, deepen the scrim into the page ground */
.index-hero::before {
  background: linear-gradient(100deg, rgba(16, 24, 36, 0.94) 30%, rgba(16, 24, 36, 0.6));
}
.index-hero { background-color: var(--surface); }

/* Focus ring on dark */
:focus-visible { outline-color: var(--rust-bright); }

/* Selection */
::selection { background: var(--rust); color: #FDFCFA; }

/* dark layer patch: utility links + coverage keys were ink-on-dark */
.rails-all { color: var(--dark-bright); }
.rails-all:hover { color: var(--rust-bright); }
.foot-tel { color: var(--dark-bright) !important; }
.svc-tabs [role="tab"] { color: var(--dark-dim); }
.hold-venue { color: var(--dark-bright); }
.standard-lead, .hold-req { color: var(--dark-body); }
.cine-note, .cine-scroll { color: var(--dark-dim); }
.head-call { border-radius: 2px; }

/* ================= v14: art direction on interiors + jury fixes ================= */

/* HIGH: tool disclaimer was dark-body on plaster (~1.6:1). Restore slate. */
.tool-panel .tool-note { color: var(--slate); }
.tool-note { color: var(--dark-dim); } /* on dark sections it stays dim but legible */

/* Service + article banner bands (film stills, blue-hour register on interiors) */
.page-banner {
  height: clamp(220px, 34vw, 420px);
  background-size: cover; background-position: center;
  position: relative;
}
.page-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,24,36,0.35) 0%, rgba(16,24,36,0.55) 55%, var(--surface) 100%);
}
.article-head-banner { padding-top: clamp(2rem, 4vw, 3rem); }
.svc-page .page-banner + .article .article-head,
.svc-page .article-head-banner { position: relative; z-index: 1; margin-top: calc(-1 * clamp(3rem, 6vw, 6rem)); }

.article-band {
  height: clamp(160px, 22vw, 280px);
  background-size: cover; background-position: center;
  margin-block: clamp(2.5rem, 5vw, 4rem);
  position: relative; border-block: 1px solid var(--rule);
}
.article-band::after { content: none; }

/* Home service cards: media + body, breaks the ledger monotony */
.svc-cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.svc-card {
  display: grid; grid-template-rows: auto 1fr;
  border: 1px solid var(--rule); border-top-color: var(--rule-strong);
  background: var(--surface-3); text-decoration: none;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.svc-card:hover { border-color: var(--rule-strong); transform: translateY(-4px); }
.svc-card-media {
  display: block; aspect-ratio: 16 / 10;
  background-size: cover; background-position: center;
  filter: saturate(0.92);
  transition: transform 0.6s var(--ease);
}
.svc-card:hover .svc-card-media { transform: scale(1.04); }
.svc-card-body { padding: 1.1rem 1.25rem 1.35rem; display: grid; gap: 0.4rem; align-content: start; }
.svc-card-title { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; color: var(--dark-bright); line-height: 1.2; }
.svc-card:hover .svc-card-title { color: var(--rust-bright); }
.svc-card-desc { font-size: 0.95rem; color: var(--dark-body); line-height: 1.55; text-wrap: pretty; }

/* Sticky article rail (MEDIUM: right column emptied out) */
.article-rail { position: sticky; top: 6rem; align-self: start; }

/* Hero scrim deepened behind the copy block (LOW: contrast over bright frames) */
.cine-media::after {
  background:
    radial-gradient(120% 90% at 20% 78%, rgba(16,24,36,0.85) 0%, rgba(16,24,36,0.2) 60%),
    linear-gradient(75deg, rgba(16,24,36,0.85) 0%, rgba(16,24,36,0.4) 45%, rgba(16,24,36,0.12) 78%),
    linear-gradient(180deg, rgba(16,24,36,0.45) 0%, rgba(16,24,36,0.05) 30%, rgba(16,24,36,0.6) 100%);
}

/* Insights carousel cards: raised-band treatment to match tool panels (LOW) */
.car-card { border-top: 1px solid var(--rust); }
.car-card .car-title { transition: color 0.2s; }

@media (max-width: 900px) {
  .svc-cards { grid-template-columns: 1fr; }
  .svc-card { grid-template-columns: 40% 1fr; grid-template-rows: none; }
  .svc-card-media { aspect-ratio: auto; height: 100%; min-height: 120px; }
  .article-rail { position: static; }

}

/* ============ v16: background images as CSS classes (strict CSP, no inline styles) ============ */
.bg-svc-residential { background-image: url("/assets/img/real-residential-1800.webp"); }
.bg-svc-commercial  { background-image: url("/assets/img/real-commercial-1800.webp"); }
.bg-svc-family-law  { background-image: url("/assets/img/real-key-1800.webp"); }
.bg-svc-smsf        { background-image: url("/assets/img/real-smsf-1800.webp"); }
.bg-svc-street      { background-image: url("/assets/img/real-watch-1800.webp"); }
.bg-svc-veranda     { background-image: url("/assets/img/real-queenslander-1800.webp"); }
.bg-svc-build       { background-image: url("/assets/img/real-materials-1800.webp"); }
.bg-svc-report      { background-image: url("/assets/img/real-watch-1800.webp"); }
.bg-hero-valuations { background-image: url("/assets/img/hero-wire-1800.webp"); }
/* home cards use the 1000px variant */
.svc-card-media.bg-svc-residential { background-image: url("/assets/img/real-residential-1000.webp"); }
.svc-card-media.bg-svc-commercial  { background-image: url("/assets/img/real-commercial-1000.webp"); }
.svc-card-media.bg-svc-family-law  { background-image: url("/assets/img/real-key-1000.webp"); }
.svc-card-media.bg-svc-smsf        { background-image: url("/assets/img/real-smsf-1000.webp"); }
.svc-card-media.bg-svc-street      { background-image: url("/assets/img/real-watch-1000.webp"); }
.svc-card-media.bg-svc-veranda     { background-image: url("/assets/img/real-queenslander-1000.webp"); }
.svc-card-media.bg-svc-build       { background-image: url("/assets/img/real-materials-1000.webp"); }
.svc-card-media.bg-svc-report      { background-image: url("/assets/img/real-watch-1000.webp"); }

/* v17: Sebastian block balance + mobile Contact wrap */
.about-mini { margin-top: var(--s3); margin-bottom: var(--s3); max-width: 30rem; }
.about-copy { align-self: center; }
@media (max-width: 900px) {
  .about-copy { align-self: start; }
}

/* ================= v27: proper mobile header (hamburger) ================= */
.head-actions { display: flex; align-items: center; gap: 0.9rem; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  /* single compact header row */
  .head-row { flex-wrap: nowrap; align-items: center; padding-block: 0.7rem; }
  .head-actions { margin-left: auto; }

  /* hamburger button */
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 10px;
    background: none; border: 1px solid var(--rule-strong); border-radius: 2px;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle span {
    display: block; height: 1.5px; width: 100%; background: var(--dark-bright);
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
  }
  .site-head-cine:not(.is-stuck) .nav-toggle span { background: var(--dark-bright); }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* nav becomes a full overlay panel */
  .site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 60;
    height: 100vh; height: 100dvh;
    order: 0; width: 100%; margin: 0; padding: 6rem clamp(1.5rem, 6vw, 2.5rem) 2.5rem;
    display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0; overflow-y: auto;
    background: var(--surface);
    -webkit-mask-image: none; mask-image: none;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  body.nav-open .site-nav { transform: none; opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  .site-nav a {
    font-family: var(--serif); font-weight: 500; font-size: 1.55rem; color: var(--dark-bright);
    padding-block: 1rem; border-bottom: 1px solid var(--rule);
    border-left: 0; padding-bottom: 1rem;
  }
  .site-nav a:first-child { border-top: 1px solid var(--rule); }
  .site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--rust-bright); border-bottom-color: var(--rule); }
  /* the overlay carries its own contact affordance */
  .site-nav::after {
    content: "Level 1, 47 Brookes Street, Bowen Hills QLD";
    display: block; margin-top: 1.75rem;
    font-family: var(--mono); font-size: var(--label); color: var(--dark-dim);
    position: static; background: none; padding: 0; -webkit-mask-image: none; mask-image: none;
  }
  /* keep the header bar (wordmark + close button) above the overlay when open */
  body.nav-open .site-head { z-index: 70; background: var(--surface); }
  body.nav-open .site-head-cine { background: var(--surface); }
  body.nav-open .head-row { position: relative; z-index: 71; }
  body.nav-open .nav-toggle { position: relative; z-index: 72; }
  body.nav-open .wordmark { position: relative; z-index: 72; }
  body.nav-open .site-nav { padding-top: 5rem; }
}

/* ================= v33: mobile overlay contact + tap targets + card/label stacking ================= */
.nav-contact { display: none; }

@media (max-width: 900px) {
  /* the overlay's ::after address is replaced by a real tappable contact block */
  .site-nav::after { display: none; }
  .nav-contact {
    display: flex; flex-direction: column; gap: 0.9rem;
    margin-top: auto; padding-top: 2rem;
  }
  .nav-call, .nav-mail {
    font-family: var(--mono); font-weight: 500; text-decoration: none;
    color: var(--dark-bright); font-size: 1.05rem;
    border: 1px solid var(--rule-strong); border-radius: 2px;
    padding: 0.85rem 1.1rem; min-height: 44px; display: flex; align-items: center;
  }
  .nav-call { background: var(--rust); border-color: var(--rust); color: #FDFCFA; }
  .nav-call:hover { background: var(--rust-bright); }
  .nav-mail:hover { border-color: var(--rust-bright); color: var(--rust-bright); }
  .nav-addr { font-family: var(--sans); font-size: 0.82rem; color: var(--dark-dim); margin-top: 0.4rem; }

  /* call chip: proper 44px tap target */
  .head-call { min-height: 44px; display: inline-flex; align-items: center; }

  /* wordmark descriptor stays one line */
  .wordmark-rest { white-space: nowrap; }

  /* service cards: stack image on top, full-width text */
  .svc-card { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .svc-card-media { aspect-ratio: 16 / 9; height: auto; min-height: 0; }

  /* cert card: kill the residual desktop right-column border on mobile */
  .cert-field:nth-child(odd) { border-right: none !important; }

  /* tool result rows: stack label above value so labels stop fragmenting */
  .tool-out-row { grid-template-columns: 1fr; gap: 0.25rem; }
  .tool-out-row dt { padding-top: 0; }

  /* insights carousel: hide desktop arrows on phone (swipe + peek card signal it) */
  .car-nav { display: none; }
}

/* ================================================================
   v34: INSTRUMENT GRADE. Reference: precision-engineering product
   sites. Ground deepens and cools, display type flips from serif to
   heavy tight grotesk (the serif survives only as the italic accent
   word and the pull-quote voice), and three new instruments arrive:
   the telemetry strip, the card-button, and scroll-lit statements.
   ================================================================ */
:root {
  --surface: #FBFAF7;
  --surface-2: #F4F2EC;
  --surface-3: #ECE9E1;
  --rule: #E3E0D6;
  --rule-strong: #C8C3B5;
  --dark-body: #414B58;
  --dark-dim: #737D8A;
  --dark-bright: #131A24;
  --display-ls: -0.032em;
}
body { background: var(--surface); }

/* ---- Display voice: heavy tight grotesk, serif italic accent ---- */
.hero-title, .cine .hero-title,
.standard-title,
.services-head h2, .about-copy h2, .contact-copy h2, .coverage-line,
.rails-head h2, .standard-how h2, .contact-how h2, .page-close h2,
.index-hero h1, .article-head h1, .contact-page-hero h1 {
  font-family: var(--sans); font-weight: 600;
  letter-spacing: var(--display-ls); line-height: 1.02;
}
.cine .hero-title {
  font-size: clamp(2.3rem, 4.8vw, 4.1rem);
  line-height: 1.01; text-shadow: none;
}
.standard-title, .standard-band .standard-title { font-size: clamp(1.85rem, 3.5vw, 2.8rem); line-height: 1.06; }
.services-head h2, .about-copy h2, .contact-copy h2, .rails-head h2,
.standard-how h2, .contact-how h2, .page-close h2 {
  font-size: clamp(1.55rem, 2.7vw, 2.25rem); line-height: 1.1;
}
.index-hero h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.03; }
.article-head h1 { font-size: clamp(1.7rem, 3.2vw, 2.55rem); line-height: 1.1; }
.hero-title em, .standard-title em, .services-head h2 em, .about-copy h2 em,
.contact-copy h2 em, .rails-head h2 em, .index-hero h1 em, .page-close h2 em,
.standard-how h2 em, .contact-how h2 em {
  font-family: inherit; font-style: normal; font-weight: inherit;
  letter-spacing: inherit; font-size: 1em;
}
/* Interior working type follows: heads to grotesk, quotes stay serif */
.article-body h2, .article-body h3, .how-key,
.svc-index-title, .idx-title, .car-title, .svc-card-title, .rail-title,
.tool-form legend, .tool-checks legend {
  font-family: var(--sans); font-weight: 600; letter-spacing: -0.014em;
}
.svc-tabs [role="tab"] { font-family: var(--sans); font-weight: 600; letter-spacing: -0.014em; }
.svc-desc, .standard-close { font-family: var(--serif); font-weight: 400; }

/* ---- Telemetry strip: caps micro-keys and bold values on hairlines ---- */
.telem {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: stretch;
  border-top: 1px solid rgba(242, 244, 248, 0.22);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.telem-cell {
  display: flex; flex-direction: column; gap: 0.3rem;
  padding: 1.05rem clamp(1.1rem, 2.6vw, 2.2rem) 1.15rem 0;
  margin-right: clamp(1.1rem, 2.6vw, 2.2rem);
  border-right: 1px solid rgba(242, 244, 248, 0.14);
  text-decoration: none;
}
.telem-cell:last-child { border-right: 0; margin-right: 0; }
.telem-key {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: rgba(242, 244, 248, 0.6);
}
.telem-val { font-family: var(--sans); font-weight: 600; font-size: 0.98rem; color: var(--dark-bright); }
a.telem-cell:hover .telem-val { color: var(--rust-bright); }

/* ---- Card-buttons: the big rectangles that ask for the job ---- */
.cbtn {
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 7.5rem; min-width: min(100%, 15rem); padding: 1.1rem 1.2rem 1.15rem;
  text-decoration: none; border-radius: 3px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.35s var(--ease);
}
.cbtn-label { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; line-height: 1.25; }
.cbtn-ic { align-self: flex-end; width: 1.15rem; height: 1.15rem; transition: transform 0.35s var(--ease); }
.cbtn-ic svg { display: block; width: 100%; height: 100%; }
.cbtn-solid { background: var(--rust); color: #FDFCFA; }
.cbtn-solid:hover { background: var(--rust-bright); transform: translateY(-3px); }
.cbtn-ghost { background: var(--surface-3); color: var(--dark-bright); border: 1px solid var(--rule-strong); }
.cbtn-ghost:hover { border-color: var(--rust-bright); transform: translateY(-3px); }
.cbtn:hover .cbtn-ic { transform: translate(3px, -3px); }
.cbtn-row { display: grid; grid-template-columns: repeat(2, minmax(0, 17rem)); gap: 1rem; }

/* ---- Scroll-lit statement: words load as evidence accumulates ---- */
.wb { color: var(--dark-body); }
.js .wb .w { color: #46536B; transition: color 0.45s var(--ease); }
.js .wb .w.on { color: var(--dark-bright); }
@media (prefers-reduced-motion: reduce) { .js .wb .w { color: var(--dark-body); } }

/* ---- Buttons sharpen: primary goes rust ---- */
.btn { border-radius: 3px; font-weight: 500; }
.btn-solid, .btn-on-dark { background: var(--rust); border-color: var(--rust); color: #FDFCFA; }
.btn-solid:hover, .btn-on-dark:hover { background: var(--rust-bright); border-color: var(--rust-bright); color: #FDFCFA; }

/* ---- Media frames: product-film discipline ---- */
.about-photo img, .contact-photo img, .intro-photo img, .about-desk img, .hero-photo img {
  border-radius: 6px; border-color: var(--rule-strong);
}
.svc-card, .car-card, .tool-card { border-radius: 6px; overflow: hidden; }
.frame-chip {
  position: absolute; top: 0.9rem; left: 0.9rem; z-index: 2;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(242, 244, 248, 0.85);
  background: rgba(10, 16, 28, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(242, 244, 248, 0.18); border-radius: 3px;
  padding: 0.35rem 0.6rem;
}
.vid-toggle {
  position: absolute; right: clamp(1.25rem, 4vw, 2.5rem); bottom: 5.2rem; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(10, 16, 28, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(242, 244, 248, 0.3); color: var(--dark-bright);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color 0.25s;
}
.vid-toggle:hover { border-color: var(--rust-bright); }
.vid-toggle svg { width: 14px; height: 14px; display: block; }
.vid-toggle .ic-play { display: none; }
.vid-toggle.is-paused .ic-play { display: block; }
.vid-toggle.is-paused .ic-pause { display: none; }

/* ---- Hero recomposition: strip replaces the note row ---- */
.cine-media::after {
  background:
    radial-gradient(120% 90% at 18% 76%, rgba(10, 16, 28, 0.82) 0%, rgba(10, 16, 28, 0.16) 60%),
    linear-gradient(75deg, rgba(10, 16, 28, 0.82) 0%, rgba(10, 16, 28, 0.34) 45%, rgba(10, 16, 28, 0.1) 78%),
    linear-gradient(180deg, rgba(10, 16, 28, 0.5) 0%, rgba(10, 16, 28, 0.06) 30%, rgba(10, 16, 28, 0.72) 100%);
}
.cine-note { font-size: 0.875rem; }
.cine-sub { color: rgba(240, 243, 248, 0.92); }

/* ---- Certificate: tightens against the cooler ground ---- */
.cert, .cert-pull { border-radius: 4px; }
.cert-pull { box-shadow: 0 34px 80px -34px rgba(0, 0, 0, 0.9); }
.tool-panel { border-radius: 4px; }

/* ---- Cards: hover lifts get calmer, borders crisper ---- */
.svc-card { border-color: var(--rule); }
.svc-card:hover { transform: translateY(-3px); }
.svc-card-title { font-size: 1.22rem; }
.svc-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 0.85rem; border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--dark-dim);
}
.svc-card:hover .svc-card-foot { color: var(--rust-bright); }
.svc-card-body { padding-bottom: 1.15rem; display: grid; grid-template-rows: auto auto 1fr; }
.car-card { border-top-color: var(--rule-strong); }
.car-card:hover { border-top-color: var(--rust); }

/* ---- Contact: the ask becomes card-buttons ---- */
.contact-cbtns { margin-top: var(--s3); }

@media (max-width: 900px) {
  .telem { margin-top: 1.6rem; }
  .telem-cell { flex: 1 1 40%; border-right: 0; padding-right: 0; margin-right: 0; }
  .cbtn-row { grid-template-columns: 1fr; }
  .cine .hero-title { font-size: clamp(2.6rem, 11vw, 3.4rem); }
  .vid-toggle { bottom: auto; top: 5rem; }
}

/* v34b: standard band splits into statement + the report object */
.standard-split {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
}
.standard-split .standard-band-inner { max-width: none; }
.report-frame {
  position: relative; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--rule-strong);
  box-shadow: 0 34px 80px -34px rgba(0, 0, 0, 0.85);
  aspect-ratio: 16 / 10; background-size: cover; background-position: center;
}
.report-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.bg-report-object { background-image: url("/assets/media/report-object5-poster.jpg"); }
@media (prefers-reduced-motion: reduce) {
  .report-frame video { display: none; }
}
@media (max-width: 900px) {
  .standard-split { grid-template-columns: 1fr; }
  .report-frame { aspect-ratio: 16 / 9; }
}

/* v34c: hero accent joins the grotesk (serif italic at 6.6rem reads thin
   against Archivo 700; the serif seam stays at h2 scale and below) */
.cine .hero-title em {
  font-family: var(--sans); font-style: normal; font-weight: inherit;
  letter-spacing: var(--display-ls); font-size: 1em; color: inherit;
}
/* hero strip: a breath of air off the viewport floor */
.cine { padding-bottom: 0.9rem; }

/* ================= v37: jury round 1 fixes ================= */
/* Strip on the grid: flex column + auto cross margins shrank the shell */
.cine > .shell { width: 100%; }
/* Pause control lives inside the content column, clear of the strip */
.vid-toggle {
  right: max(clamp(1.25rem, 4vw, 2.5rem), calc((100% - var(--shell)) / 2 + 2.5rem));
  bottom: 10rem;
}
/* Hero headline: one voice, white; rust stays with the cert and "hold." */
.cine .hero-title em { color: inherit; }
/* Scroll-lit words: raise the unlit floor */
.js .wb .w { color: #566379; }
/* Article band for the report article */
.bg-report-detail { background-image: url("/assets/img/report-band-1800.webp"); }
/* Insights carousel: deliberate edge fade instead of a hard viewport cut */
@media (min-width: 901px) {
  .car {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 4rem), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 4rem), transparent);
  }
}
/* Print: reveal system must never gate content on scroll */
@media print {
  .js .m-row > *, .js .m-fade, .js .m-photo { opacity: 1 !important; transform: none !important; }
  .js .m-photo img, .js .hero-title .line-inner { transform: none !important; }
  .js .m-row::after { display: none !important; }
  .js .wb .w { color: inherit !important; }
  .cine-media video, .standard-media, .vid-toggle, .car-nav { display: none !important; }
}
@media (max-width: 900px) {
  /* equal-width hero CTAs */
  .cine .hero-actions { width: 100%; }
  .cine .hero-actions .btn { flex: 1 1 100%; text-align: center; }
  /* pause chip clear of header and content */
  .vid-toggle { top: 4.6rem; bottom: auto; right: 1.25rem; }
  /* footer phone: full tap target */
  .foot-tel { display: inline-flex; align-items: center; min-height: 44px; }
}

/* v38: strip becomes a true 4-column instrument row; no wrap */
.telem { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.telem-cell { margin-right: 0; padding-right: clamp(1rem, 2vw, 1.8rem); }
.telem-cell + .telem-cell { padding-left: clamp(1rem, 2vw, 1.8rem); }
.telem-cell:last-child { border-right: 0; }
.telem-val { font-size: 0.94rem; }
@media (max-width: 900px) {
  .telem { grid-template-columns: 1fr 1fr; }
  .telem-cell { border-right: 0; padding-left: 0 !important; }
}

/* ================= v39: jury round 2 fixes ================= */
/* Film control owns the film: top corner of the hero, clear of CTAs */
@media (min-width: 901px) {
  .vid-toggle { top: 6.5rem; bottom: auto; }
}
/* Long-form measure back inside the comfort band */
.article-body { max-width: 38rem; }
/* Headline rag control on cards and ledgers */
.car-title, .idx-title, .svc-card-title, .svc-index-title { text-wrap: pretty; }
/* Disabled carousel arrow stays legible */
.car-btn[disabled] { opacity: 0.55; }
/* The practice three-up: one top rule does the work, no ragged closers */
.how-grid .m-row::after { content: none; }
.how-grid .how-item { border-bottom: 0; }
/* Article band: pre-cropped wide frame of the report and plinth */
.bg-report-detail { background-image: url("/assets/img/report-light-1800.webp"); }
@media (max-width: 520px) {
  /* action cards collapse to rows */
  .cbtn { flex-direction: row; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
  .cbtn-ic { align-self: center; }
}

/* v39b: valuations index rows carry the house link affordance */
.svc-index-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) auto; align-items: baseline; }
.svc-index-go {
  display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--dark-dim);
  transition: color 0.2s;
}
.svc-index-row:hover .svc-index-go { color: var(--rust-bright); }
@media (max-width: 900px) {
  .svc-index-row { grid-template-columns: 1fr; }
  .svc-index-go { margin-top: 0.2rem; }
}

/* ================= v42: final lock ================= */
/* Report band: the object must resolve at any band aspect; letterbox blends into its own darkness */
.article-band.bg-report-detail {
  background-size: contain; background-repeat: no-repeat;
  background-color: var(--surface-2); background-position: center;
  height: clamp(220px, 26vw, 340px);
}
/* Carousel edge: unmistakable fade so the peek clips on light, not mid-glyph */
@media (min-width: 901px) {
  .car {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 7rem), transparent calc(100% - 0.5rem));
    mask-image: linear-gradient(90deg, #000 calc(100% - 7rem), transparent calc(100% - 0.5rem));
  }
}
/* Contact grid: columns share a top line */
.contact-grid { align-items: start; }
.contact-photo { margin-top: 0.4rem; }
@media (max-width: 900px) { .contact-photo { margin-top: 0; } }

/* ================= v44: mobile pass 2 ================= */
@media (max-width: 470px) {
  /* header must fit: descriptor yields, gaps tighten, chip slims */
  .wordmark-rest { display: none; }
  .head-row { gap: 0.75rem; }
  .head-actions { gap: 0.6rem; }
  .head-call { font-size: 0.82rem; padding: 0.5rem 0.65rem; letter-spacing: 0; }
}
@media (max-width: 900px) {
  /* carousel: same deliberate edge fade as desktop, scaled down */
  .car {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.75rem), transparent calc(100% - 0.25rem));
    mask-image: linear-gradient(90deg, #000 calc(100% - 2.75rem), transparent calc(100% - 0.25rem));
  }
  /* telemetry strip: tighter rhythm under the hero */
  .telem-cell { padding-top: 0.65rem; padding-bottom: 0.7rem; }
  .telem { margin-top: 1.2rem; }
}

/* v44b: overlay menu joins the grotesk system */
@media (max-width: 900px) {
  .site-nav a { font-family: var(--sans); font-weight: 600; letter-spacing: -0.014em; font-size: 1.7rem; }
}

/* ================= v47: the fox mark, blended ================= */
.wordmark { align-items: center; }
.wordmark-mark { display: block; height: 34px; width: auto; }
.wordmark-fox, .wordmark-rest { position: relative; top: 1px; }
.foot-mark-img { display: block; height: 28px; width: auto; margin-bottom: 0.15rem; opacity: 0.92; }
@media (max-width: 470px) {
  .wordmark-mark { height: 30px; }
}

/* ================= v48: the lockup proper + parity chrome ================= */
/* Wordmark: his mark plus spaced caps, the letterhead voice */
.wordmark { gap: 0.8rem; }
.wordmark-mark { height: 35px; }
.wordmark-name {
  font-family: var(--sans); font-weight: 450; font-size: 0.72rem;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--dark-bright); white-space: nowrap; position: static;
}
.site-head-cine:not(.is-stuck) .wordmark-name { color: var(--dark-bright); }
.foot-name { font-size: 0.68rem; color: var(--dark-bright); }
/* phone chip: number on wide, icon on small */
.head-call { display: inline-flex; align-items: center; gap: 0.5rem; }
.head-call-ic { display: block; width: 15px; height: 15px; }
/* services also-row */
.svc-also {
  display: flex; align-items: baseline; gap: 1.2rem;
  margin-top: 1.25rem; padding: 1rem 0.2rem 1.1rem;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.svc-also-key {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--dark-dim); white-space: nowrap;
}
.svc-also-title { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; color: var(--dark-bright); flex: 1; }
.svc-also:hover .svc-also-title { color: var(--rust-bright); }
@media (max-width: 470px) {
  .wordmark-name { font-size: 0.64rem; letter-spacing: 0.2em; }
  .head-call-ic { display: block; }
  .head-call-num { display: none; }
  .head-call { padding: 0.55rem 0.75rem; min-height: 44px; }
  .svc-also { flex-wrap: wrap; gap: 0.4rem 1.2rem; }
}

/* ================= v49: compositional variety on interior pages ================= */
/* Split-head service pages: copy left, framed media right, no full-bleed banner */
.svc-split-head {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: end;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
}
.svc-head-media {
  display: block; aspect-ratio: 16 / 11;
  background-size: cover; background-position: center;
  border-radius: 6px; border: 1px solid var(--rule-strong);
  box-shadow: 0 34px 80px -34px rgba(0, 0, 0, 0.85);
  margin-bottom: calc(-1 * clamp(2rem, 5vw, 3.5rem));
  position: relative; z-index: 2;
}
.svc-split .article-grid { padding-top: clamp(4rem, 8vw, 6rem); }
/* Mirrored grid: rail leads on the left */
.grid-rail-left { grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); }
.grid-rail-left .article-body { order: 2; }
.grid-rail-left .article-rail { order: 1; }
/* Pull quote: the serif voice, one per service */
.svc-pull {
  font-weight: 600; font-style: normal; letter-spacing: -0.014em;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.5;
  border-left: 2px solid var(--rust-bright); padding-left: 1.1rem;
  color: var(--dark-bright); max-width: 44ch; text-wrap: pretty;
  margin-block: var(--s3) !important;
}
/* Inline article band: framed inside the reading column */
.article-band-inline {
  height: clamp(180px, 26vw, 300px);
  margin-block: var(--s4);
  border-radius: 6px; border: 1px solid var(--rule-strong);
  background-size: cover; background-position: center;
}
.article-band-inline.bg-report-detail { background-size: cover; background-repeat: no-repeat; background-color: var(--surface-2); }
/* Featured lead on index pages, pulled across the hero boundary */
.svc-feature-wrap { position: relative; z-index: 2; }
.svc-feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 0; text-decoration: none; overflow: hidden;
  margin-top: calc(-1 * clamp(2rem, 5vw, 3.25rem));
  background: var(--surface-3); border: 1px solid var(--rule-strong);
  border-radius: 6px;
  box-shadow: 0 34px 80px -34px rgba(0, 0, 0, 0.9);
}
.svc-feature-copy {
  display: flex; flex-direction: column; gap: 0.7rem; justify-content: center;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
}
.svc-feature-title {
  font-family: var(--sans); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.05; color: var(--dark-bright);
  text-wrap: balance;
}
.svc-feature:hover .svc-feature-title { color: var(--rust-bright); }
.svc-feature-desc { font-size: 1rem; color: var(--dark-body); max-width: 34rem; text-wrap: pretty; }
.svc-feature-media { display: block; background-size: cover; background-position: center; min-height: 240px; }
.svc-feature .svc-index-go { margin-top: 0.5rem; }
.index-list .idx-ledger, .index-list .svc-index { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
@media (max-width: 900px) {
  .svc-split-head { grid-template-columns: 1fr; align-items: start; }
  .svc-head-media { margin-bottom: 0; aspect-ratio: 16 / 9; }
  .svc-split .article-grid { padding-top: clamp(2rem, 5vw, 3rem); }
  .grid-rail-left { grid-template-columns: 1fr; }
  .grid-rail-left .article-body { order: 1; }
  .grid-rail-left .article-rail { order: 2; }
  .svc-feature { grid-template-columns: 1fr; margin-top: -1.5rem; }
  .svc-feature-media { order: -1; min-height: 0; aspect-ratio: 16 / 9; }
}

/* ===== v53: Williams pass. One engineered voice: grotesk + mono.
   No italic renders anywhere; accents are colour and weight only. ===== */
em, i { font-style: normal; }
strong { font-weight: 600; }

/* ===== v54: audit pass. Focus, contrast, menu semantics, balance. ===== */
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--rust-bright); color: #FDFCFA; font-weight: 600;
  padding: 0.7rem 1.1rem; border-radius: 3px; transition: top 0.15s var(--ease);
}
.skip-link:focus-visible { top: 0.8rem; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--rust-bright); outline-offset: 2px;
}
.js .wb .w { color: #7C879B; }
.btn-line-dark { border-color: rgba(245, 244, 240, 0.75); }
.car-nav button { border-color: rgba(245, 244, 240, 0.75); }
main h1 { text-wrap: balance; }
@media (max-width: 900px) {
  .site-nav { visibility: hidden; transition: visibility 0s 0.4s; }
  body.nav-open .site-nav { visibility: visible; transition: visibility 0s; }
}

/* ===== v55: Williams hero fidelity. Headline + scroll chip, nothing else. ===== */
.cine { justify-content: flex-end; }
.cine .hero-title { font-size: clamp(2.1rem, 3.9vw, 3.45rem); max-width: 15em; }
.cine-scroll-chip { margin-top: clamp(1.6rem, 4vh, 3rem); }
.cine-scroll-chip a {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.02em;
  color: rgba(241, 241, 237, 0.85); text-decoration: none;
  border: 1px solid rgba(245, 244, 240, 0.4); padding: 0.6rem 0.9rem;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.cine-scroll-chip a:hover, .cine-scroll-chip a:focus-visible { border-color: var(--rust-bright); color: #FDFCFA; }
.cine-scroll-chip svg { animation: chipnudge 2.4s var(--ease) infinite; }
@media (prefers-reduced-motion: reduce) { .cine-scroll-chip svg { animation: none; } }
@keyframes chipnudge { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(2px); } }
.cine-content { padding-bottom: clamp(1.6rem, 4vh, 3rem); }
/* v55: CTAs are gone; the film control returns to the bottom corner like the reference. */
.cine .vid-toggle { top: auto; bottom: clamp(1.7rem, 4vh, 3.1rem); }

/* v57: jury fixes. One left axis (logo ink starts 9px inside the PNG),
   nav links centred on the viewport axis like the reference. */
.wordmark-mark { margin-left: -9px; }
@media (min-width: 1140px) {
  .site-head .site-nav { margin-inline: auto; }
}

/* ================================================================
   v65: LIGHT SYSTEM (Sebastian: light, inviting, transparent - not a
   security site). Grounds flip warm white; ink type; footer and the
   contact band stay dark as anchors. Reference feel: WhiteFox airiness,
   Milestone approachability, HTW content authority.
   ================================================================ */
.site-head, .site-head.is-stuck { background: rgba(251, 250, 247, 0.92); border-bottom: 1px solid var(--rule); }
.site-head-cine:not(.is-stuck) { background: rgba(251, 250, 247, 0.92); }
body.nav-open .site-nav { background: linear-gradient(100deg, rgba(251, 250, 247, 0.98) 30%, rgba(246, 244, 239, 0.94)); }
.js .wb .w { color: #B5AEA0; }
.index-hero { background-image: none !important; background-color: var(--surface); color: var(--dark-bright); }
.index-hero::before, .index-hero::after { display: none !important; }
.index-hero h1, .index-hero p { color: var(--dark-bright); }
.index-hero .index-lead, .index-hero p { color: var(--dark-body); }
.standard-band { background: var(--surface-2); }
.standard-media { display: none; }
.head-call { border: 1px solid rgba(19, 26, 36, 0.35); color: var(--dark-bright); }
.head-call:hover { border-color: var(--rust); color: var(--rust); }
.car-nav button { border-color: rgba(19, 26, 36, 0.3); color: var(--dark-bright); }

/* the light landing: the question, then the practice */
.landing {
  min-height: 76svh; display: flex; align-items: center;
  background: var(--surface); text-align: center;
  padding-top: 5rem;
}
.landing-inner { max-width: 44rem; margin-inline: auto; }
.landing-mark { width: 72px; height: 70px; margin: 0 auto 2rem; display: block; }
.landing-title {
  font-weight: 600; letter-spacing: var(--display-ls); line-height: 1.04;
  font-size: clamp(2.4rem, 5vw, 4rem); color: var(--dark-bright); text-wrap: balance;
}
.landing-sub { margin-top: 1.2rem; font-size: 1.0625rem; color: var(--dark-body); }
.landing-actions { margin-top: 2.2rem; display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.cred-strip { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cred-strip p {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em;
  color: var(--dark-dim); text-align: center; padding: 1.1rem 0; margin: 0;
}
@media (max-width: 600px) { .landing { min-height: 64svh; } .landing-mark { width: 56px; height: 55px; } }

/* ===== v66/v68: the fox sequence, full-bleed. Run in, door shuts, white, the sketch. ===== */
.landing { flex-direction: column; justify-content: flex-end; gap: 0; position: relative; overflow: hidden; }
.fox-seq { position: absolute; inset: 0; }
.seq-stage { position: absolute; inset: 0; background: #EFE3CB; }
.seq-stage video, .seq-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
@media (max-width: 899px) {
  /* landscape clips on a portrait screen: keep the door zone in frame
     until the portrait cuts land */
  .seq-run { object-position: 68% center; }
  .seq-draw, .seq-still { object-position: 55% center; }
}
.seq-run { opacity: 1; }
.seq-draw, .seq-still { opacity: 0; }
.fox-seq.is-done .seq-run { opacity: 0; }
.fox-seq.is-done .seq-draw { opacity: 1; }
.fox-seq.is-still .seq-draw { opacity: 0; }
.fox-seq.is-still .seq-still { opacity: 1; }
.seq-stage video, .seq-stage img { transition: opacity 0.45s var(--ease); }
.seq-flash {
  position: absolute; inset: 0; background: #FFFFFF; opacity: 0; pointer-events: none;
  transition: opacity 0.38s ease-in;
}
.fox-seq.is-flashing .seq-flash { opacity: 1; }
.seq-skip {
  position: absolute; right: 1.1rem; bottom: 1.1rem; z-index: 2;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em;
  background: rgba(251, 250, 247, 0.85); color: var(--dark-dim);
  border: 1px solid var(--rule-strong); padding: 0.4rem 0.8rem; cursor: pointer;
}
.seq-skip:hover, .seq-skip:focus-visible { color: var(--rust); border-color: var(--rust); }
.fox-seq.is-done .seq-skip, .fox-seq.is-still .seq-skip { display: none; }
.landing .landing-inner {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.6s var(--ease) 0.15s, transform 0.6s var(--ease) 0.15s;
  position: relative; z-index: 1; margin: 0 auto;
  padding-bottom: clamp(2.2rem, 6vh, 4.5rem);
}
.landing.seq-done .landing-inner { opacity: 1; transform: none; }
.landing { padding-block: 5rem 0; min-height: 100svh; }
/* the question sits on a white wash so it reads over any artwork */
.landing::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 46svh; z-index: 0;
  background: linear-gradient(180deg, rgba(251, 250, 247, 0) 0%, rgba(251, 250, 247, 0.9) 40%, #FBFAF7 100%);
  opacity: 0; transition: opacity 0.6s var(--ease); pointer-events: none;
}
.landing.seq-done::after { opacity: 1; }
@media (max-width: 600px) {
  .landing { min-height: 100svh; }
  .landing-actions { gap: 0.7rem; }
  .landing-actions .btn { text-align: center; padding: 0.7rem 1.05rem; font-size: 0.88rem; }
  .landing-title { font-size: clamp(1.85rem, 8vw, 2.4rem); }
  .landing-sub { font-size: 0.95rem; max-width: 30ch; margin-inline: auto; }
  /* tan sketch paper cuts contrast: solid-white text zone on phones */
  .landing::after {
    height: 58svh;
    background: linear-gradient(180deg, rgba(251, 250, 247, 0) 0%, rgba(251, 250, 247, 0.94) 34%, #FBFAF7 62%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .landing .landing-inner { opacity: 1; transform: none; transition: none; }
}

/* portrait cuts fill the frame natively - no crop steering needed */
.fox-seq.is-portrait .seq-run, .fox-seq.is-portrait .seq-draw, .fox-seq.is-portrait .seq-still { object-position: center; }

/* v72: portrait phones - the question lives in the artwork's empty upper
   paper (the portrait cuts were composed for exactly this); the drawn room
   keeps the lower two-thirds unwashed. */
@media (max-width: 600px) and (orientation: portrait) {
  .landing { justify-content: flex-start; }
  .landing .landing-inner { padding-top: clamp(5.5rem, 14svh, 8rem); padding-bottom: 0; }
  .landing::after {
    inset: 0 0 auto 0; height: 52svh;
    background: linear-gradient(180deg, rgba(251, 250, 247, 0.88) 0%, rgba(251, 250, 247, 0.55) 55%, rgba(251, 250, 247, 0) 100%);
  }
}

/* ================================================================
   v73: ROUND 1 FIXES. WhiteFox voice discipline, Milestone plainness,
   mobile usability. One label voice: brand-sans caps, wide-tracked.
   Mono survives ONLY as digits (phone numbers, calculator output).
   ================================================================ */
/* -- display: lighter, airier (whitefox-3) -- */
.landing-title, .standard-title, .services-head h2, .about-copy h2, .contact-copy h2,
.rails-head h2, .standard-how h2, .contact-how h2, .page-close h2,
.index-hero h1, .article-head h1, .contact-page-hero h1, .hero-title {
  font-weight: 500; letter-spacing: -0.014em;
}
/* -- nav: wide-tracked caps, unboxed phone (whitefox-4) -- */
.site-nav a {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em;
  font-weight: 500;
}
.head-call { border: none; padding: 0.4rem 0.2rem; font-family: var(--sans); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 500; }
.head-req {
  display: inline-flex; align-items: center;
  background: var(--rust); color: #FDFCFA; text-decoration: none;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500;
  padding: 0.62rem 1.05rem; border-radius: 2px; white-space: nowrap;
}
.head-req:hover { background: var(--dark-bright); }
/* -- one label voice: sans caps replaces mono labels (whitefox-2) -- */
.btn, .rails-all, .svc-index-go, .svc-also-key, .rail-key, .frame-chip,
.foot-key, .idx-key, .car-key, .cine-scroll-chip a, .seq-skip,
.about-photo figcaption, .contact-photo figcaption, .tool-form legend {
  font-family: var(--sans);
}
.btn { font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.82rem; }
.svc-also-key, .rail-key, .frame-chip, .foot-key, .idx-key, .car-key {
  letter-spacing: 0.12em; font-weight: 500;
}
/* digits stay instrument-voice */
.head-call-num, .contact-phone, .soon-tel { font-family: var(--mono); }
/* -- sticky header opaque (whitefox-6) -- */
.site-head, .site-head.is-stuck, .site-head-cine:not(.is-stuck) { background: rgba(251, 250, 247, 0.98); }
/* -- mobile menu: solid panel (mobile-1 blocker) -- */
body.nav-open .site-nav { background: #FBFAF7 !important; box-shadow: 0 30px 60px rgba(19, 26, 36, 0.12); }
/* -- skip chip: reachable, legible (mobile-2) -- */
.seq-skip {
  min-height: 44px; min-width: 74px; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--dark-bright); border-color: rgba(19, 26, 36, 0.45); bottom: max(1.1rem, env(safe-area-inset-bottom, 0px) + 0.9rem);
}
/* -- footer + inline links: touch targets (mobile-7) -- */
.foot-col a { padding-block: 0.55rem; display: inline-block; }
.rails-all, .svc-index-go { padding-block: 0.6rem; display: inline-flex; align-items: center; gap: 0.4rem; }
/* -- landing sub: no widows -- */
.landing-sub { text-wrap: balance; }
/* -- desktop wash a touch stronger under the headline (whitefox-8) -- */
@media (min-width: 601px) {
  .landing::after { background: linear-gradient(180deg, rgba(251, 250, 247, 0) 0%, rgba(251, 250, 247, 0.94) 42%, #FBFAF7 100%); }
}
/* -- mobile services: compact scannable rows (mobile-4) -- */
@media (max-width: 700px) {
  .svc-card { display: grid; grid-template-columns: 84px 1fr; gap: 0 0.9rem; align-items: center; }
  .svc-card-media { aspect-ratio: 1 / 1; height: 84px; }
  .svc-card-body { padding: 0.55rem 0; }
  .svc-card-desc { display: none; }
  .svc-card-foot { border: none; padding: 0; margin-top: 0.15rem; }
}

/* -- request page (milestone-1 / htw-1) -- */
.request-page { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3.5rem, 8vw, 5rem); background: var(--surface); }
.request-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 4.5rem); }
.request-copy h1 { font-weight: 500; letter-spacing: -0.014em; font-size: clamp(1.9rem, 3.6vw, 2.8rem); color: var(--dark-bright); }
.request-copy p { margin-top: 1rem; color: var(--dark-body); max-width: 34rem; }
.request-alt a { color: var(--rust); }
.request-form { display: flex; flex-direction: column; gap: 1.05rem; }
.request-form .tool-field > span:first-child { font-size: 0.85rem; font-weight: 500; color: var(--dark-bright); }
.request-form input, .request-form select, .request-form textarea {
  width: 100%; font: inherit; color: var(--dark-bright);
  background: #FFFFFF; border: 1px solid var(--rule-strong); border-radius: 2px;
  padding: 0.7rem 0.85rem;
}
.request-form textarea { resize: vertical; }
.request-form .btn { align-self: flex-start; margin-top: 0.4rem; }
.request-note { font-size: 0.85rem; color: var(--dark-dim); }
.request-thanks { max-width: 40rem; }
.request-thanks h1 { font-weight: 500; letter-spacing: -0.014em; font-size: clamp(1.9rem, 3.6vw, 2.8rem); color: var(--dark-bright); }
.request-thanks p { margin-top: 1rem; color: var(--dark-body); }
@media (max-width: 800px) { .request-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .head-req { display: none; } body.nav-open .site-nav .head-req { display: inline-flex; } }

/* -- v74: three doors (Sebastian: HTW's three obvious options, but pro) -- */
.door-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
.door { display: flex; flex-direction: column; text-decoration: none; }
.door-media { display: block; aspect-ratio: 4 / 3; background-size: cover; background-position: center; border-radius: 2px; }
.door-title { margin-top: 1.05rem; font-weight: 500; letter-spacing: -0.01em; font-size: 1.3rem; color: var(--dark-bright); }
.door-desc { margin-top: 0.35rem; color: var(--dark-body); font-size: 0.95rem; line-height: 1.55; }
.door .svc-index-go { margin-top: 0.55rem; color: var(--rust); }
.door:hover .door-title { color: var(--rust); }
.door-media { transition: transform 0.5s var(--ease); }
.door:hover .door-media { transform: scale(1.015); }
@media (max-width: 800px) {
  .door-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .door-media { aspect-ratio: 16 / 9; }
}

/* v75: the mobile composition wins everywhere (Kane) - question high in the
   clean paper, artwork below, one top veil instead of a bottom wash. */
.landing { justify-content: flex-start; }
.landing .landing-inner { padding-top: clamp(5.5rem, 13svh, 8.5rem); padding-bottom: 2rem; }
.landing::after {
  inset: 0 0 auto 0; height: 56svh;
  background: linear-gradient(180deg, rgba(251, 250, 247, 0.9) 0%, rgba(251, 250, 247, 0.5) 55%, rgba(251, 250, 247, 0) 100%);
}

/* v76: light report frame + the curl beat */
.report-frame-light img { display: block; width: 100%; height: 100%; object-fit: cover; }
.seq-curl { opacity: 0; }
.fox-seq.is-curl .seq-draw { opacity: 0; }
.fox-seq.is-curl .seq-curl { opacity: 1; }
.fox-seq.is-still .seq-curl { opacity: 0; }

/* v77: desktop veil earns the text zone (landscape art has none baked);
   nav never wraps */
.site-nav a { white-space: nowrap; }
@media (min-width: 601px) {
  .landing::after {
    height: 64svh;
    background: linear-gradient(180deg, rgba(251, 250, 247, 0.97) 0%, rgba(251, 250, 247, 0.94) 42%, rgba(251, 250, 247, 0.6) 68%, rgba(251, 250, 247, 0) 100%);
  }
}
@media (min-width: 901px) and (max-width: 1240px) {
  .site-nav { gap: 1.1rem; }
  .site-nav a { letter-spacing: 0.08em; }
}

/* v78: breathing room between lockup and nav at every width */
.head-row { gap: clamp(1.25rem, 3vw, 3rem); }

/* ===== fox spots: one small editorial fox moment per page type ===== */
.fox-spot { }
.h1-fox { display: inline-flex; align-items: baseline; }
.fox-spot-chew {
  width: 1.7em; height: auto; pointer-events: none;
  margin-left: 0.12em; align-self: flex-end;
  transform: translateY(0.18em);
  transform-origin: 50% 92%;
  animation: foxNibble 7s ease-in-out 2s infinite;
}
.fox-spot-block { display: block; margin: 0 auto 1.3rem; width: 170px; height: auto; }
.request-thanks .fox-spot-block { margin-inline: 0; }
.h1-fox-side { display: inline-flex; align-items: flex-end; gap: 0.35em; }
.fox-spot-side { width: 2.1em; height: auto; margin-bottom: 0.04em; opacity: 0; transform: translateX(-34px); }
.fox-endmark { margin-top: 2.2rem; text-align: center; }
.fox-endmark img { width: 108px; height: auto; animation: foxBreathe 4.5s ease-in-out infinite; transform-origin: 50% 100%; }
@media (max-width: 600px) { .fox-spot-chew { top: -0.58em; } }

/* ================= v84: ROUND 2 FIXES ================= */
/* ghost CTA gets a face - sketch lines never strike the number again */
.landing .btn-line { background: rgba(251, 250, 247, 0.96); border-color: rgba(19, 26, 36, 0.4); }
/* remaining mono word labels -> label voice */
.cred-strip p, .how-key, .hold-venue, .svc-card-foot, .tool-form legend, .tool-checks legend {
  font-family: var(--sans);
}
.cred-strip p { letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.72rem; }
.how-key { letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.78rem; font-weight: 500; }
/* view-service contrast (was 3.44:1) */
.svc-card-foot { color: #8A3D18; }
.svc-card:hover .svc-card-foot { color: var(--rust); }
/* valuations index: survey the offer, not a billboard wall */
.index-list .svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.6rem); }
.index-list .svc-card-media { aspect-ratio: 16 / 10; }
@media (max-width: 900px) { .index-list .svc-grid { grid-template-columns: 1fr; } }
/* header call target */
.head-call { min-width: 44px; min-height: 44px; justify-content: center; }
/* tools index: no dead band where the dark hero used to paint */
.index-hero-report { padding-block: clamp(1.5rem, 3vw, 2.5rem) 0; }
/* run beat reads at desktop scale */
@media (min-width: 901px) {
  .seq-run { transform: scale(1.14); transform-origin: 70% 82%; }
}
/* nav never kisses the wordmark */
.site-nav { margin-left: clamp(1.5rem, 3vw, 4rem); }
/* CGT tile was still the night brick */
.bg-svc-street { background-image: url("/assets/img/real-watch-1800.webp"); }
.svc-card-media.bg-svc-street { background-image: url("/assets/img/real-watch-1000.webp"); }
/* mobile drawer: the request path (blocker) */
.nav-req { display: none; }
@media (max-width: 900px) {
  body.nav-open .site-nav .nav-req {
    display: inline-flex; background: var(--rust); color: #FDFCFA;
    padding: 0.85rem 1.2rem; border-radius: 2px; text-decoration: none;
    font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.82rem;
    margin-top: 0.6rem; align-self: flex-start;
  }
}
/* request page owns the identity */
.request-fox { width: 120px; height: auto; margin-top: 1.6rem; }
.request-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
/* page-close request path */
.page-close-contact .btn { margin-bottom: 0.4rem; }

/* v85: round-3 regression fixes (all self-inflicted by round-2 rules) */
@media (max-width: 700px) {
  /* index 16/10 override fought the 84px row: pin the thumb */
  .svc-card-media, .index-list .svc-card-media { width: 84px; height: 84px; aspect-ratio: auto; }
}
@media (max-width: 800px) {
  /* request grid collapses again (later unqualified rule had beaten the breakpoint) */
  .request-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  /* nav-gap margin must not follow the nav into its fixed drawer state */
  .site-nav { margin-left: 0; }
}

/* v88: the spots live. Micro-motion, never gimmick-speed. */
@keyframes foxNibble {
  0%, 86%, 100% { transform: translateY(0.18em) rotate(0deg); }
  88% { transform: translateY(0.14em) rotate(-2.2deg); }
  91% { transform: translateY(0.18em) rotate(0.6deg); }
  94% { transform: translateY(0.15em) rotate(-1.6deg); }
  97% { transform: translateY(0.18em) rotate(0deg); }
}
@keyframes foxBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}
@keyframes foxTrotIn {
  0% { opacity: 0; transform: translateX(-34px) translateY(0); }
  55% { opacity: 1; transform: translateX(-8px) translateY(-3px); }
  75% { transform: translateX(-3px) translateY(1px); }
  100% { opacity: 1; transform: translateX(0) translateY(0); }
}
/* 404 peek fox rises over its wall line */
.fox-spot-block[src*="peek"] { width: 230px; clip-path: inset(0 0 0 0); }
.spot-rise { overflow: hidden; display: block; }
.spot-rise img { transform: translateY(58%); transition: transform 0.9s var(--ease) 0.2s; }
.spot-rise.spot-in img { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .fox-spot-chew, .fox-endmark img { animation: none; }
  .fox-spot-side { opacity: 1; transform: none; }
  .spot-rise img { transform: none; transition: none; }
}

/* ================= v92: round-3 punch list ================= */
/* wordmark's tracked caps paint past their box: real clearance before the nav */
.wordmark { margin-right: clamp(2rem, 3vw, 3rem); }
.wordmark-name { letter-spacing: 0.2em; }
/* request form labels: words are sans, everywhere, including the money page */
.request-form .tool-field > span:first-child { font-family: var(--sans); letter-spacing: 0.02em; text-transform: none; }
/* hero sub never sits on sketch lines: plateau the veil through the sub zone */
@media (min-width: 601px) {
  .landing::after {
    height: 66svh;
    background: linear-gradient(180deg, rgba(251, 250, 247, 0.97) 0%, rgba(251, 250, 247, 0.97) 50%, rgba(251, 250, 247, 0.62) 72%, rgba(251, 250, 247, 0) 100%);
  }
}



/* ===== v-foxlife: the film fox lives in the site. Walker on the den rule,
   leaper at the contact headline, peeker behind the 404 button, sleeper on
   the end-mark rule. JS drives behavior; idle motion and stills are CSS. ===== */
.fox-rig { display: inline-block; position: relative; }
.fox-rig .rp { position: absolute; height: auto; display: block; margin: 0; }
.rig-curledfilm { position: relative; aspect-ratio: 212 / 160; }
.rig-curledfilm .rp { position: absolute; height: auto; }
.rig-curledfilm .rp-body { left: 0.000%; top: 0.000%; width: 100.000%; z-index: 2; transform-origin: 49.53% 95.00%; }
@keyframes rig-curledfilm-body { 0%,100% { transform: scale(1,1); } 50% { transform: scale(1.004,1.013); } }
.rig-curledfilm .rp-body { animation: rig-curledfilm-body 4.7s ease-in-out -1.7s infinite; }
.rig-curledfilm .rp-ears { left: 7.547%; top: 0.000%; width: 41.981%; z-index: 3; transform-origin: 47.19% 84.06%; }
@keyframes rig-curledfilm-ears { 0% { transform: scaleY(1); } 4.84% { transform: scaleY(0.89); } 9.68%,100% { transform: none; } }
.rig-curledfilm .rp-ears { animation: rig-curledfilm-ears 9.3s ease-in-out 0.0s infinite; }

/* sleeper: asleep on the closing rule, off-centre */
.fox-endmark { margin-top: 3.4rem; text-align: right; border-bottom: 1px solid #D9D3C7; }
.fox-sleeper { width: 150px; vertical-align: bottom; margin-right: 9%; margin-bottom: -1px; }
.fox-sleeper-block { display: inline-block; width: 190px; margin: 0 0 1.1rem; }
.fox-sleeper .rp { pointer-events: none; }
.fox-sleeper.flick .rp-ears { animation: rig-curledfilm-ears 0.95s ease-in-out 0s 1; }
/* walker: the den rule is a path */
.index-list { position: relative; overflow-x: clip; }
.fox-walkway { position: absolute; top: -86px; left: 0; right: 0; height: 86px;
  overflow: hidden; pointer-events: none; }
.fox-walkway .fw { position: absolute; bottom: -2px; left: 0; width: 200px; height: auto;
  visibility: hidden; will-change: transform; }
.fox-walkway .fw.on { visibility: visible; }
/* leaper: hops at the headline */
.h1-fox { display: inline-flex; align-items: baseline; }
.fox-leaper { display: inline-block; width: 2.1em; margin-left: 0.3em; flex: none; align-self: last baseline;
  transform: translateY(0.12em); }
.fox-leaper img { width: 100%; height: auto; display: block; animation: foxIdleHop 5.6s ease-in-out infinite; }
@keyframes foxIdleHop { 0%,86%,100% { transform: translateY(0); } 92% { transform: translateY(-6%); } }
/* peeker: rises from behind the home button */
.fox-peek-home { position: relative; display: inline-block; margin-top: 3.2rem; }
.fox-peek-home .btn { position: relative; z-index: 2; }
.fox-peeker { position: absolute; left: 18%; bottom: calc(100% - 3px); width: 132px; height: 76px;
  overflow: hidden; pointer-events: none; }
.fox-peeker img { position: absolute; bottom: 0; left: -6px; width: 205px; max-width: none; height: auto;
  transform: translateY(108%); transition: transform 0.65s cubic-bezier(.3,1.35,.45,1); }
.fox-peeker.up img { transform: translateY(40%); }
@media (max-width: 600px) {
  .index-list { margin-top: 46px; }
  .fox-walkway .fw { width: 150px; }
  .fox-sleeper { width: 128px; }
  .fox-sleeper-block { width: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  .fox-rig .rp, .fox-leaper img { animation: none !important; }
  .fox-walkway, .fox-peeker { display: none; }
}
