/* firstpack-v2 — base: PRESSROOM tokens, reset, type, chrome (capsule header /
   overlay nav / split footer). Owned by fp2-scaffold. Page stylesheets load AFTER
   this and may only ADD, never restyle chrome. Forked from the press-system template
   base, retinted to the PRESSROOM palette.

   PRESSROOM palette (BRIEF-V2 §3): cool uncoated paper ground, blue-black press ink,
   press-blue + kraft-board as the two FLAT panel hues, hexachrome CMYKOG semantic-only,
   foil gold ONLY in the hot-stamping moment. NO italics. NO rounded corners (0 radius).

   CONTRAST — WCAG 2.1 relative luminance, computed on the grounds each role lands on
   (paper #f2f1ec, ink #10151b, press-blue #0f4c6e, board #b99a6b, board-deep #7d6340):
     ink        #10151b on paper      #f2f1ec .... 16.22:1  ← body/display on light
     press-blue #0f4c6e on paper      #f2f1ec ....  8.15:1  ← brand hue as TEXT on light (AAA)
     paper      #f2f1ec on press-blue #0f4c6e ....  8.15:1  ← white text on PANEL-A (AAA)
     ink        #10151b on board      #b99a6b ....  6.90:1  ← ink text on PANEL-B (AAA)
     paper      #f2f1ec on board      #b99a6b ....  2.35:1  ← FAILS: never white on --board
     paper      #f2f1ec on board-deep #7d6340 ....  4.98:1  ← white text uses --board-deep (AA)
     foil-1     #b08d3e on ink        #10151b ....  5.87:1  ← hot-foil headline on ink (AA)
     paper      #f2f1ec on ink        #10151b .... 16.22:1  ← text on the ink scrim / footer
   Token NAMES are locked; VALUES retuned in place to hold AA. --board-deep was deepened
   past the brief's #8a6f47 draft (4.18:1, under the 4.5 body floor) to #7d6340 (4.98:1). */

:root {
  /* ground + ink */
  --paper: #f2f1ec;      /* cool uncoated stock — the SITE reads LIGHT */
  --ink: #10151b;        /* blue-black press ink — scrim, footer-left, <=2 chapter breaks */
  /* two flat panel hues (rationed exactly like press-grammar) */
  --press-blue: #0f4c6e; /* PANEL-A — deep press cyan-blue (X-rite / technical heritage) */
  --board: #b99a6b;      /* PANEL-B — kraft carton board; INK text only */
  --board-deep: #7d6340; /* PANEL-B where WHITE text sits (AA: 4.98:1) */
  /* chrome token (name kept, value retuned v4): capsule header wash — soft warm PASTEL.
     v3 coral #ec8377 read too strong; Charlie order #1 → washed lighter/softer, still warm
     (not white, not candy-pink). INK text only (ink on this pastel ≈ 12.2:1, well past AA).
     Never white-on-pastel. */
  --hdr-red: #f5c9c2;
  /* hexachrome CMYKOG — SEMANTIC ONLY (capabilities unit chapters + press-pass rail) */
  --hx-c: #0085ca;
  --hx-m: #e10098;
  --hx-y: #fedd00;
  --hx-o: #ff6a13;
  --hx-g: #00a651;
  --hx-k: var(--ink);
  /* foil-gold gradient pair — ONLY the hot-stamping moment */
  --foil-1: #b08d3e;
  --foil-2: #e8d59a;
  --foil: linear-gradient(100deg, #b08d3e 0%, #e8d59a 48%, #b08d3e 100%);
  /* hairlines */
  --line: rgba(16, 21, 27, .16);
  --line-strong: rgba(16, 21, 27, .30);
  --line-paper: rgba(242, 241, 236, .24);   /* on the ink ground */
  /* rhythm + type scale (press-grammar grammar, unchanged) */
  --sec: clamp(5rem, 4rem + 6vw, 9rem);
  --pad: clamp(1.25rem, .9rem + 2.2vw, 3rem);
  --cap: 1020px;
  --wrap: 1400px;
  --eyebrow: .6875rem;
  --display: clamp(2.4rem, 1.4rem + 3.2vw, 4.25rem);
  --display-sm: clamp(1.75rem, 1.15rem + 1.9vw, 2.75rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --hdr-h: 68px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0;   /* Charlie law: zero rounded corners anywhere, incl. buttons */
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  font-size: clamp(.9375rem, .9rem + .1vw, 1rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* House rule: no italics anywhere, ever. */
em,
i,
cite,
address,
blockquote,
dfn,
var {
  font-style: normal;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul {
  list-style: none;
}

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

body.nav-open {
  overflow: hidden;
}

.skip {
  position: fixed;
  z-index: 90;
  top: -100%;
  left: var(--pad);
  padding: .9em 1.4em;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--eyebrow);
  letter-spacing: .22em;
  text-transform: uppercase;
}

.skip:focus {
  top: .5rem;
}

/* ---- type primitives (shared by every page) ---- */
.eyebrow {
  font-size: var(--eyebrow);
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  line-height: 1;
}

h1,
h2,
h3,
.display {
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.02;
  font-size: var(--display);
}

h3,
.display-sm {
  font-size: var(--display-sm);
}

.lede {
  max-width: 34rem;
  font-weight: 300;
}

/* CN accents (一鸣, chapter labels) — Noto Sans SC 300, sparse. */
.cn {
  font-family: "Noto Sans SC", Archivo, sans-serif;
  font-weight: 300;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---- ghost box button: square, hairline, caps (never rounded) ---- */
.ghost {
  display: inline-block;
  border: 1px solid currentColor;
  padding: .85em 1.5em .8em;
  font-size: var(--eyebrow);
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}

.ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.ghost.on-dark:hover {
  background: var(--paper);
  color: var(--ink);
}
/* ---- mechanic 1: floating capsule header ---- */
.cap {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--cap), calc(100% - var(--pad) * 2));
}

/* v3: light-red capsule (Charlie order #1). SOLID red in every state — a translucent
   wash over the dark hero film reads muddy-dark, not light-red, and breaks the computed
   AA on the ink content. Ink text/icons throughout; the hairline gives the pill a crisp
   edge on both the paper pages and the dark hero film. */
.cap-in {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  height: var(--hdr-h);
  padding-inline: clamp(.75rem, .4rem + 1vw, 1.25rem);
  background: var(--hdr-red);
  color: var(--ink);
  border: 1px solid var(--line);
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease);
}

/* scrolled off the hero / inner pages: same red, stronger edge + a whisper of lift */
.cap.scrolled .cap-in,
.cap.inner .cap-in {
  border-color: var(--line-strong);
  box-shadow: 0 12px 30px -14px rgba(16, 21, 27, .42);
}

.cap-in > .ghost {
  justify-self: start;
  padding: .7em 1.15em .65em;
  letter-spacing: .2em;
  color: var(--ink);   /* ink text + ink border (currentColor) on the red — never white */
}

.wm {
  justify-self: center;
  text-align: center;
  display: grid;
  gap: .35em;
}

.wm-n {
  font-size: clamp(.9rem, .8rem + .3vw, 1.05rem);
  font-weight: 400;
  letter-spacing: .42em;
  text-indent: .42em;
  text-transform: uppercase;
  line-height: 1;
}

.wm-s {
  font-size: .5rem;
  font-weight: 300;
  letter-spacing: .3em;
  text-indent: .3em;
  text-transform: uppercase;
  line-height: 1;
  opacity: .8;   /* v3: ink sub-mark on light-red — .8 holds AA (~5:1); .62 (tuned for white-on-dark) fell to ~3.5:1 */
}

/* v4.1r9: real client logo (badge + FIRSTPACK GRAPHICS lockup) replaces the text wordmark */
.wm-logo {
  display: block;
  height: 40px;
  width: auto;
}

.burger {
  justify-self: end;
  display: grid;
  gap: 5px;
  width: 34px;
  padding: 8px 4px;
}

.burger span {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform .45s var(--ease), opacity .3s;
}

body.nav-open .burger span:first-child {
  transform: translateY(3px) rotate(45deg);
}

body.nav-open .burger span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* ---- full-screen paper overlay nav (sibling of .cap: a transformed or
   backdrop-filtered ancestor would break position:fixed here) ---- */
.ov {
  position: fixed;
  z-index: 55;
  inset: 0;
  background: var(--paper);
  display: grid;
  align-content: center;
  padding: var(--hdr-h) var(--pad) var(--pad);
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s;
}

body.nav-open .ov {
  opacity: 1;
  visibility: visible;
}

.ov-list {
  max-width: var(--cap);
  width: 100%;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}

.ov-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(.9rem, .4rem + 1.4vw, 1.6rem) 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.6rem, 1rem + 2.6vw, 3.25rem);
  font-weight: 300;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), color .4s;
}

body.nav-open .ov-list a {
  opacity: 1;
  transform: none;
  transition-delay: calc(60ms * var(--i, 0) + 120ms);
}

.ov-list a:hover {
  color: var(--press-blue);
}

.ov-list a[aria-current="page"] {
  color: var(--press-blue);
}

.ov-list a .n {
  font-size: var(--eyebrow);
  font-weight: 400;
  letter-spacing: .2em;
  opacity: .45;
}

.ov-meta {
  max-width: var(--cap);
  width: 100%;
  margin: clamp(1.5rem, 1rem + 2vw, 3rem) auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2.5rem;
  opacity: .55;
}
/* ---- mechanic 7: split footer (photo left / paper right) ---- */
.ft {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--ink);
  border-top: 1px solid var(--line);
}

.ft-img {
  position: relative;
  min-height: 30rem;
  overflow: hidden;
}

.ft-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9) brightness(.82);
}

.ft-body {
  background: var(--paper);
  padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(1.5rem, 1rem + 3vw, 4.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
}

.ft-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: clamp(1.75rem, 1rem + 2vw, 3rem);
}

.ft-cols .eyebrow {
  margin-bottom: 1.35em;
  opacity: .45;
}

/* key off .val, not the tag: <address> + <p> is a real pairing in the Visit column
   and a `p + p` selector silently skips it */
.ft-cols li + li,
.ft-cols .val + .val {
  margin-top: .5rem;
}

.ft-cols a:hover {
  color: var(--press-blue);
}

/* caps + tracking is the brand system (see .eyebrow above, .ft-legal below);
   footer values carry it too, so the column heads don't contradict their own list */
.ft-cols .val {
  font-size: .75rem;
  line-height: 1.75;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ft-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .625rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .45;
}

/* ---- motion: slow, few. fade + small translate-y on scroll ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: calc(90ms * var(--d, 0));
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

@media (max-width: 860px) {
  .ft {
    grid-template-columns: 1fr;
  }

  .ft-img {
    min-height: 16rem;
  }
}

@media (max-width: 560px) {
  .cap-in > .ghost {
    display: none;
  }

  .cap-in {
    grid-template-columns: 1fr auto;
  }

  .wm {
    justify-self: start;
  }

  .wm-logo {
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---- shared CTA band: kraft-board inset rectangle on a full-bleed press still
   (used by home + services; page css may extend, e.g. .svc-band border-top) ---- */
.band {
  position: relative;
  background: var(--ink);
  display: grid;
  place-items: center;
  padding: clamp(3rem, 2rem + 5vw, 7rem) var(--pad);
  overflow: hidden;
}

.band-media {
  position: absolute;
  inset: 0;
}

.band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9) brightness(.7);
}

.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 21, 27, .32);
}

.inset {
  position: relative;
  z-index: 2;
  width: min(var(--cap), 100%);
  background: var(--board);
  color: var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
  padding: clamp(2.25rem, 1.5rem + 3vw, 4rem) clamp(1.5rem, 1rem + 2.5vw, 3.5rem);
}

.inset-head .eyebrow {
  opacity: .6;
  margin-bottom: clamp(2.5rem, 1.5rem + 5vw, 5rem);
}

.inset-head h2 {
  font-size: var(--display-sm);
}

.inset-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}

.inset .ghost {
  border-color: rgba(16, 21, 27, .5);
}

.arrow-mail {
  font-size: .625rem;
  letter-spacing: .16em;
  text-transform: none;
}

.arrow-mail .box {
  border-color: rgba(16, 21, 27, .4);
}

@media (max-width: 1000px) {
  .inset {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .inset-head .eyebrow {
    margin-bottom: clamp(2rem, 1.5rem + 3vw, 3.5rem);
  }
}

/* r27 — site-wide WhatsApp float (Charlie "add whatsapp button 91808368").
   Brand-green circle, fixed bottom-right, above everything; safe-area aware. */
.wa-float {
  position: fixed;
  right: clamp(1rem, .6rem + 1.2vw, 1.6rem);
  bottom: clamp(1rem, .6rem + 1.2vw, 1.6rem);
  z-index: 80;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  /* square-cut, not a circle — the house die-line idiom is radius-0 everywhere,
     and the gate computed-checks it */
  background: #25d366;
  box-shadow: 0 6px 18px rgba(16, 21, 27, .25);
  transition: transform .25s var(--ease, ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 1.9rem; height: 1.9rem; fill: #fff; }
