/* ============================================================
   Swift Run Renovations — v4 prototype
   Urbanist everywhere · handmade editorial layer
   Reduced radii · scribble doodles · magnetic buttons
   Prototype note: Google Fonts CDN used for speed; fonts will be
   self-hosted at WordPress conversion per HBM SOP.
   ============================================================ */

:root {
  --ink: #161d24;
  --ink-deep: #10151a;
  --ink-soft: #232c35;
  --paper: #f6f4ef;
  --linen: #edeae2;
  --white: #ffffff;
  --steel: #8ba9bc;
  --steel-deep: #4e6e82;
  --brass: #a98b5f;
  --muted: #5c6670;
  --muted-light: rgba(246, 244, 239, 0.64);

  --font-body: "Urbanist", -apple-system, "Segoe UI", sans-serif;

  --text-hero: clamp(2.7rem, 1.4rem + 5.8vw, 6.2rem);
  --text-h2: clamp(2.15rem, 1.3rem + 3.2vw, 4.1rem);
  --text-h3: clamp(1.25rem, 1.05rem + 0.8vw, 1.7rem);
  --text-lede: clamp(1.05rem, 0.95rem + 0.45vw, 1.3rem);

  --track: -0.035em;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: clamp(12px, 1.4vw, 16px);

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --inset: clamp(10px, 1.4vw, 18px);
  --section: clamp(5rem, 4rem + 6vw, 10rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 18px 50px -18px rgba(22, 29, 36, 0.22);
  --shadow-card: 0 8px 30px -12px rgba(22, 29, 36, 0.14);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 450;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

::selection { background: var(--steel); color: var(--ink-deep); }

/* Film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 var(--r) 0;
  z-index: 10000;
}
.skip-link:focus { left: 0; }

.container {
  width: min(100% - 2 * var(--gutter), 1240px);
  margin-inline: auto;
}
.container--wide { width: min(100% - 2 * clamp(1rem, 2.5vw, 2.5rem), 1560px); }

/* ---------- Typography ---------- */
h1, h2 {
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: var(--track);
}
h2 { font-size: var(--text-h2); }
h3, h4 { letter-spacing: -0.02em; }
h1 em, h2 em, .break__title em {
  font-style: italic;
  font-weight: 350;
  letter-spacing: -0.005em;
  color: var(--steel-deep);
}
.section--ink h2 em, .cta h2 em { color: var(--steel); }

/* Outlined accent words */
.tx-outline {
  font-style: normal;
  font-weight: 800;
  letter-spacing: var(--track);
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.5px var(--steel-deep);
}
.section--ink .tx-outline, .cta .tx-outline { -webkit-text-stroke-color: var(--steel); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--brass);
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--brass);
}

.lede {
  font-size: var(--text-lede);
  font-weight: 450;
  line-height: 1.7;
  color: var(--muted);
  max-width: 46em;
}
.section--ink .lede, .cta .lede { color: var(--muted-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
    background 0.3s, translate 0.4s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); }
/* Double class outranks Elementor's `.elementor a { box-shadow: none }` reset,
   which wipes single-class button shadows on the WP build. */
.btn.btn--steel {
  background: var(--steel);
  color: var(--ink-deep);
  box-shadow: 0 10px 30px -10px rgba(139, 169, 188, 0.55);
}
.btn.btn--steel:hover { background: #9db8c9; box-shadow: 0 16px 36px -10px rgba(139, 169, 188, 0.7); }
.btn.btn--ink {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 10px 30px -12px rgba(22, 29, 36, 0.5);
}
.btn.btn--ink:hover { background: var(--ink-soft); }
.btn.btn--ghost {
  background: rgba(246, 244, 239, 0.07);
  color: var(--paper);
  box-shadow: inset 0 0 0 2px rgba(246, 244, 239, 0.55);
}
.btn.btn--ghost:hover {
  color: var(--steel);
  background: rgba(139, 169, 188, 0.1);
  box-shadow: inset 0 0 0 2px var(--steel);
}
.btn--lg { padding: 1.15rem 2.3rem; }
.btn__arrow { transition: transform 0.35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid currentColor;
  transition: gap 0.35s var(--ease), opacity 0.3s;
}
.link-arrow:hover { gap: 1rem; opacity: 0.75; }

/* ============================================================
   HANDMADE LAYER — scribbles, doodles, stickers
   ============================================================ */
.scribble { position: relative; display: inline-block; white-space: nowrap; }
.scribble > svg {
  position: absolute;
  overflow: visible;
  pointer-events: none;
}
.scribble path, .doodle path, .sparkle path {
  fill: none;
  stroke: var(--brass);
  stroke-width: 3px;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.scribble--underline > svg {
  left: -1%;
  bottom: -0.22em;
  width: 102%;
  height: 0.32em;
}
.scribble--circle > svg {
  left: -11%;
  top: -16%;
  width: 122%;
  height: 134%;
}
.hero .scribble path { stroke: var(--steel); }

.doodle { position: absolute; pointer-events: none; }
.doodle svg, .sparkle svg { display: block; width: 100%; height: 100%; }
.doodle path { stroke-width: 2.5px; }

.sparkle { position: absolute; pointer-events: none; }
.sparkle path { stroke-width: 2.5px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding-top: clamp(10px, 1.4vw, 18px);
  transition: padding 0.5s var(--ease), transform 0.55s var(--ease);
}
.site-header.is-hidden { transform: translateY(calc(-100% - 12px)); }
body.nav-open .site-header.is-hidden { transform: none; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.95rem clamp(1.15rem, 2.2vw, 1.9rem);
  border-radius: 999px;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.site-header.scrolled .header-inner {
  background: rgba(246, 244, 239, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px -16px rgba(16, 21, 26, 0.35);
}

.brand { display: inline-flex; align-items: center; position: relative; }
.brand img { height: clamp(50px, 5.2vw, 70px); width: auto; transition: height 0.5s var(--ease); }
.brand--dark { display: none; }
.site-header.scrolled .brand--light { display: none; }
.site-header.scrolled .brand--dark { display: block; }
.site-header.scrolled .brand img { height: clamp(34px, 3.4vw, 44px); }

.nav-desktop { display: flex; gap: clamp(1.1rem, 2vw, 2rem); }
.nav-desktop a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  color: var(--paper);
  padding: 0.35rem 0;
  transition: color 0.3s;
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav-desktop a:hover::after,
.nav-desktop a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.site-header.scrolled .nav-desktop a { color: var(--ink); }

/* ---------- Services dropdown ---------- */
.nav-item { position: relative; }
.nav-item > a { display: inline-flex; align-items: center; gap: 0.45rem; }
.nav-caret {
  width: 10px;
  height: 6px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ease);
}
.nav-item:hover .nav-caret,
.nav-item:focus-within .nav-caret { transform: rotate(180deg); }
.drop {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  min-width: 250px;
  padding: 0.55rem;
  display: grid;
  gap: 2px;
  background: var(--paper);
  border-radius: var(--r);
  box-shadow: 0 24px 60px -18px rgba(22, 29, 36, 0.4), 0 0 0 1px rgba(22, 29, 36, 0.07);
  opacity: 0;
  translate: -50% 12px;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), translate 0.45s var(--ease);
}
.drop::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}
.nav-item:hover .drop,
.nav-item:focus-within .drop {
  opacity: 1;
  translate: -50% 0;
  pointer-events: auto;
}
.nav-desktop .drop a {
  display: flex;
  align-items: center;
  padding: 0.6rem 0.95rem;
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: 0.92rem;
  transition: background 0.25s, color 0.25s;
}
.nav-desktop .drop a::after { content: none; }
.nav-desktop .drop a::before {
  content: "";
  flex: none;
  width: 0;
  height: 1.5px;
  background: var(--brass);
  transition: width 0.3s var(--ease), margin-right 0.3s var(--ease);
}
.nav-desktop .drop a:hover::before,
.nav-desktop .drop a[aria-current]::before { width: 0.85rem; margin-right: 0.55rem; }
.nav-desktop .drop a:hover { background: var(--linen); }
.nav-desktop .drop a[aria-current] { color: var(--steel-deep); }

.header-cta { display: flex; align-items: center; gap: 1.4rem; }
.header-phone {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--paper);
  transition: color 0.3s;
}
.site-header.scrolled .header-phone { color: var(--ink); }
.header-cta .btn { padding: 0.85rem 1.7rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.6rem;
  z-index: 1001;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--paper);
  transition: transform 0.4s var(--ease), opacity 0.3s, background 0.3s;
}
.site-header.scrolled .nav-toggle span { background: var(--ink); }
body.nav-open .nav-toggle span,
body.nav-open .site-header.scrolled .nav-toggle span { background: var(--paper); }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

body.nav-open .site-header { z-index: 1001; }
body.nav-open .site-header.scrolled .header-inner {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
body.nav-open .site-header.scrolled .brand--dark { display: none; }
body.nav-open .site-header.scrolled .brand--light { display: block; }

/* Mobile overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: var(--ink-deep);
  display: flex;
  align-items: center;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.65s var(--ease);
}
body.nav-open .nav-overlay { clip-path: inset(0 0 0 0); }
.nav-links { display: flex; flex-direction: column; gap: 0.4rem; }
.nav-links a {
  font-size: clamp(2rem, 8vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--paper);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s;
}
.nav-links a:hover { color: var(--steel); font-style: italic; }
body.nav-open .nav-links a { opacity: 1; transform: none; }
.nav-meta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}
.nav-meta .header-phone { color: var(--paper); }

/* ============================================================
   HERO — inset rounded card
   ============================================================ */
.hero { padding: var(--inset) var(--inset) 0; }
.hero__card {
  position: relative;
  height: calc(100svh - var(--inset));
  min-height: 620px;
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  background: var(--ink-deep);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 116%;
  object-fit: cover;
  transform: scale(1.12);
  transition: transform 2.6s var(--ease);
}
body.is-loaded .hero__media img { transform: scale(1.03); }
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(16, 21, 26, 0.42) 0%, rgba(16, 21, 26, 0.06) 34%, rgba(16, 21, 26, 0.62) 82%),
    linear-gradient(76deg, rgba(16, 21, 26, 0.68) 0%, rgba(16, 21, 26, 0.18) 55%, rgba(16, 21, 26, 0) 100%);
}

.hero__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(4.6rem, 9vh, 6.2rem);
  color: var(--paper);
}
.hero__eyebrow { color: var(--steel); margin-bottom: 1.1rem; }
.hero__eyebrow::before { background: var(--steel); }
.hero__title {
  font-size: var(--text-hero);
  color: var(--paper);
  margin-bottom: 1.5rem;
  max-width: 11em;
}
.hero__title em { color: var(--steel); }
.hero__title--sm {
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.8rem);
  max-width: 22ch;
}
.line { display: block; overflow: hidden; padding-bottom: 0.3em; margin-bottom: -0.3em; }
.line-inner {
  display: block;
  transform: translateY(135%);
  transition: transform 1.15s var(--ease);
  transition-delay: var(--d, 0s);
}
body.is-loaded .line-inner { transform: translateY(0); }

.hero__sub {
  max-width: 46em;
  font-size: clamp(0.98rem, 0.9rem + 0.35vw, 1.15rem);
  line-height: 1.7;
  color: rgba(246, 244, 239, 0.85);
  margin-bottom: 2.2rem;
}
body[data-page="home"] .hero__sub { max-width: 40em; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.8rem;
}
.hero__actions .link-arrow { color: var(--paper); }

[data-hero-fade] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
body.is-loaded [data-hero-fade] { opacity: 1; transform: none; }

/* Floating rating card — tilted sticker */
.hero__badge {
  position: absolute;
  right: clamp(1.2rem, 3vw, 3rem);
  bottom: clamp(4.6rem, 9vh, 6.2rem);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.1rem 1.4rem;
  border-radius: var(--r-sm);
  background: rgba(246, 244, 239, 0.1);
  border: 1px solid rgba(246, 244, 239, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--paper);
  rotate: -2deg;
}
.hero__badge-value {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero__badge-value .unit { color: var(--brass); font-size: 1.2rem; }
.hero__badge-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 244, 239, 0.7);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(246, 244, 239, 0.65);
  padding-bottom: 42px;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, rgba(246, 244, 239, 0.7), transparent);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
/* Laptop heights bottom out the .hero__content clamp (4.6rem) and the centered
   cue lands on the actions row's projects link, so drop the decoration. */
@media (max-height: 880px) {
  .scroll-cue { display: none; }
}

/* ============================================================
   MARQUEE — alternating fill / outline
   ============================================================ */
.marquee {
  overflow: hidden;
  padding: clamp(1.6rem, 3vw, 2.6rem) 0;
  border-bottom: 1px solid rgba(22, 29, 36, 0.09);
}
.marquee__track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(22, 29, 36, 0.32);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3.5rem;
}
.marquee__item:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 1px rgba(22, 29, 36, 0.38);
}
.marquee__item::after {
  content: "✦";
  font-size: 0.85em;
  color: var(--brass);
  -webkit-text-stroke: 0;
  opacity: 0.7;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section { padding: var(--section) 0; }
.section--ink {
  background: var(--ink);
  color: var(--paper);
}
.section--linen { background: var(--linen); }
.section-head { max-width: 48em; margin-bottom: clamp(2.6rem, 5vw, 4.5rem); }
.section-head .lede { margin-top: 1.3rem; }
section[id] { scroll-margin-top: 96px; }

/* ============================================================
   PROBLEM
   ============================================================ */
.problem-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.fears-intro {
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--steel-deep);
  margin-bottom: 1.8rem;
}
.fears {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.8rem);
}
.fear {
  background: var(--white);
  border-radius: var(--r);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-card);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.fear:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.fear__num {
  display: block;
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--brass);
  margin-bottom: 1.1rem;
  line-height: 1;
}
.fear p { color: var(--muted); font-size: 1.02rem; }

/* ============================================================
   BIG IMAGE BREAK
   ============================================================ */
.break { padding: 0 var(--inset); }
.break--flush .break__media { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.break__media {
  position: relative;
  height: clamp(440px, 86vh, 780px);
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
}
.break__media img {
  width: 100%;
  height: 118%;
  object-fit: cover;
}
.js [data-reveal-scale] img { scale: 1.1; transition: scale 1.8s var(--ease); }
.js [data-reveal-scale].is-visible img { scale: 1; }
.break__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(16, 21, 26, 0) 40%, rgba(16, 21, 26, 0.55) 100%);
}
.break__overlay {
  position: absolute;
  left: clamp(1.4rem, 4vw, 3.5rem);
  right: clamp(1.4rem, 4vw, 3.5rem);
  bottom: clamp(1.4rem, 4vw, 3rem);
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.4rem;
  color: var(--paper);
}
.break__tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.7rem;
}
.break__title {
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.break__title em { color: var(--steel); }
.break__overlay .link-arrow { color: var(--paper); flex-shrink: 0; }

/* ============================================================
   GUIDE
   ============================================================ */
.guide-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.frame {
  position: relative;
  border-radius: clamp(48px, 7vw, 110px) var(--r) clamp(48px, 7vw, 110px) var(--r);
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.55);
}
.frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.frame:hover img { transform: scale(1.045); }
.frame__caption {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(16, 21, 26, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(246, 244, 239, 0.14);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 244, 239, 0.85);
  rotate: -2deg;
}
.guide-copy h2 { margin-bottom: 1.6rem; }
.guide-copy p:not(.eyebrow) { color: var(--muted-light); margin-bottom: 1.3rem; max-width: 38em; }
.sig { display: flex; align-items: center; gap: 1.2rem; margin-top: 2rem; }
.sig__rule { width: 3.4rem; height: 1px; background: var(--brass); }
/* .sig p... outranks .guide-copy p:not(.eyebrow) above by source order (both 0,2,1).
   No !important: the WP widget's per-instance Signature styles must stay able to win. */
.sig p.sig__name {
  font-style: italic;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--paper);
  margin: 0;
}
.sig__role {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-top: 0.35rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(246, 244, 239, 0.12);
  border-block: 1px solid rgba(246, 244, 239, 0.12);
  margin-top: clamp(3.5rem, 7vw, 6rem);
}
.stat {
  background: var(--ink);
  padding: clamp(1.8rem, 3.4vw, 3rem) clamp(1rem, 2vw, 2rem);
  text-align: center;
}
.stat__value {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--paper);
  margin-bottom: 0.6rem;
}
.stat__value .unit { color: var(--brass); font-size: 0.6em; }
.stat__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-light);
}

/* ============================================================
   PLAN
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.8rem);
}
.step {
  position: relative;
  background: var(--linen);
  border-radius: var(--r);
  padding: clamp(1.8rem, 3.2vw, 2.8rem);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.step__num {
  display: block;
  font-size: clamp(3.4rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--brass);
  margin-bottom: 1.4rem;
  transition: color 0.5s var(--ease);
}
.step:hover .step__num { color: var(--brass); }
.step__title {
  font-size: var(--text-h3);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
}
.step__body { color: var(--muted); font-size: 1rem; }
.plan-cta { margin-top: clamp(2.6rem, 5vw, 4rem); text-align: center; }

/* ============================================================
   SERVICES
   ============================================================ */
.svc-list { border-top: 1px solid rgba(22, 29, 36, 0.12); }
.svc {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem 1.2fr 1.6fr 3.5rem;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding: clamp(1.6rem, 3vw, 2.4rem) clamp(0.8rem, 1.6vw, 1.6rem);
  border-bottom: 1px solid rgba(22, 29, 36, 0.12);
  border-radius: var(--r-sm);
  transition: background 0.45s var(--ease), padding-left 0.45s var(--ease);
}
.svc:hover { background: rgba(255, 255, 255, 0.75); padding-left: clamp(1.4rem, 2.6vw, 2.6rem); }
.svc__num {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brass);
}
.svc__title {
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  transition: color 0.35s;
}
.svc:hover .svc__title { color: var(--steel-deep); }
.svc__desc { color: var(--muted); font-size: 0.99rem; max-width: 34em; }
.svc__desc .learn {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.svc:hover .learn { opacity: 1; transform: none; }
.svc__go {
  width: 3.2rem;
  height: 3.2rem;
  border: 1px solid rgba(22, 29, 36, 0.25);
  border-radius: 50%;
  display: grid;
  place-items: center;
  justify-self: end;
  transition: background 0.4s var(--ease), border-color 0.4s, transform 0.5s var(--ease);
}
.svc__go svg { stroke: currentColor; }
.svc:hover .svc__go {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  transform: rotate(-45deg);
}

.svc-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 800;
  width: 320px;
  aspect-ratio: 4 / 5;
  border-radius: var(--r);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  box-shadow: 0 30px 70px -20px rgba(16, 21, 26, 0.5);
}
.svc-preview.active { opacity: 1; }
.svc-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.45s var(--ease), transform 0.9s var(--ease);
}
.svc-preview img.show { opacity: 1; transform: scale(1); }

/* ============================================================
   RESULT — statement + mosaic
   ============================================================ */
.result-statement {
  text-align: center;
  max-width: 54em;
  margin: 0 auto clamp(3rem, 6vw, 5rem);
}
.result-statement h2 { margin-bottom: 1.5rem; }
.result-statement .lede { margin-inline: auto; }

.mosaic {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.8vw, 1.5rem);
  height: clamp(520px, 82vh, 780px);
}
.mosaic figure {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
}
.mosaic figure:first-child { grid-row: 1 / 3; }
.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.mosaic figure:hover img { transform: scale(1.05); }
.mosaic figcaption {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(16, 21, 26, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(246, 244, 239, 0.14);
  color: rgba(246, 244, 239, 0.9);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.mosaic figure:nth-child(odd) figcaption { rotate: -1.5deg; }
.mosaic figure:nth-child(even) figcaption { rotate: 1.2deg; }

/* ============================================================
   PROOF
   ============================================================ */
.proof-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.rating-display__value {
  position: relative;
  display: inline-block;
  font-size: clamp(5.5rem, 12vw, 10rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--paper);
}
.rating-display__value .unit {
  font-size: 0.28em;
  font-weight: 350;
  color: var(--muted-light);
  font-style: italic;
}
.sparkle--a { top: -1.4rem; right: -2.2rem; width: 34px; height: 34px; rotate: 12deg; }
.sparkle--b { top: 38%; right: -3.6rem; width: 20px; height: 20px; rotate: -10deg; }
.stars { display: flex; gap: 0.4rem; color: var(--brass); margin: 1.2rem 0 1rem; }
.rating-display__note { color: var(--muted-light); font-size: 0.98rem; max-width: 24em; }

.badges { display: grid; gap: 0.9rem; }
.badge {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  padding: 1.2rem 1.5rem;
  background: rgba(246, 244, 239, 0.05);
  border: 1px solid rgba(246, 244, 239, 0.1);
  border-radius: var(--r-sm);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}
.badge:hover { background: rgba(246, 244, 239, 0.09); transform: translateX(6px); }
.badge__icon {
  flex-shrink: 0;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(169, 139, 95, 0.5);
  color: var(--brass);
}
.badge__title { font-weight: 700; font-size: 1.02rem; }
.badge__sub { color: var(--muted-light); font-size: 0.9rem; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: clamp(2.8rem, 5vw, 4.5rem);
}
.review-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin: 0;
  padding: 1.9rem 1.7rem;
  background: rgba(246, 244, 239, 0.05);
  border: 1px solid rgba(246, 244, 239, 0.1);
  border-radius: var(--r);
  transition: background 0.35s, transform 0.5s var(--ease);
}
.review-card:hover { background: rgba(246, 244, 239, 0.09); transform: translateY(-4px); }
.review-card .stars { margin: 0; gap: 0.3rem; }
.review-card blockquote {
  color: var(--muted-light);
  font-size: 0.98rem;
  line-height: 1.7;
  flex-grow: 1;
}
.review-card figcaption { display: flex; flex-direction: column; gap: 0.2rem; }
.review-card figcaption strong { font-weight: 700; font-size: 0.98rem; }
.review-card figcaption span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

/* ============================================================
   AREAS
   ============================================================ */
.areas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.areas-copy h2 { margin-bottom: 1.4rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.chip {
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  font-size: 0.9rem;
  font-weight: 650;
  transition: transform 0.4s var(--ease);
}
.chip:hover { transform: translateY(-3px); }
.chip--anchor { background: var(--ink); color: var(--paper); }

/* ============================================================
   CTA — inset rounded card
   ============================================================ */
.cta { padding: 0 var(--inset); }
.cta__card {
  position: relative;
  background: var(--ink-deep);
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: clamp(4.5rem, 10vw, 8.5rem) var(--gutter);
  text-align: center;
  color: var(--paper);
  isolation: isolate;
}
.cta__card::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 120%, rgba(78, 110, 130, 0.5), transparent 55%);
}
.cta h2 { max-width: 15em; margin: 0 auto 1.6rem; }
.cta .lede { margin: 0 auto 2.6rem; }
.cta__actions { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.2rem;
}
.doodle--arrow {
  left: calc(50% + 292px);
  top: -56px;
  width: 60px;
  height: 62px;
}
.cta__phone { color: var(--muted-light); font-size: 0.98rem; }
.cta__phone a {
  font-style: italic;
  font-weight: 600;
  color: var(--paper);
  border-bottom: 1px solid var(--brass);
  transition: color 0.3s;
}
.cta__phone a:hover { color: var(--steel); }

/* ============================================================
   FOOTER — statement
   ============================================================ */
.site-footer {
  background: var(--ink-deep);
  color: var(--paper);
  margin-top: var(--inset);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding-top: clamp(4.5rem, 9vw, 8rem);
  overflow: hidden;
}
.footer-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.6rem;
}
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; }
.footer-big {
  font-size: clamp(2.6rem, 7.5vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--paper);
  transition: color 0.35s;
}
.footer-big:hover { color: var(--steel); font-style: italic; }
.footer-big--email {
  font-size: clamp(1.4rem, 3.8vw, 3rem);
  color: var(--muted-light);
  overflow-wrap: anywhere;
}
.footer-big--email:hover { color: var(--steel); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 1.1fr 0.8fr 0.9fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(3rem, 6vw, 5rem) 0;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid rgba(246, 244, 239, 0.1);
}
.footer-brand img { height: 72px; width: auto; margin-bottom: 1.3rem; }
.footer-brand p { color: var(--muted-light); font-size: 1.05rem; max-width: 26em; }
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.2rem;
}
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a {
  color: var(--muted-light);
  font-size: 1.08rem;
  transition: color 0.3s, padding-left 0.35s var(--ease);
}
.footer-col a:hover { color: var(--paper); padding-left: 6px; }
.footer-col address { color: var(--muted-light); font-size: 1.08rem; line-height: 1.8; }

.footer-mark {
  font-weight: 800;
  font-size: clamp(3.6rem, 13.5vw, 13rem);
  line-height: 0.82;
  letter-spacing: -0.03em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(246, 244, 239, 0.14);
  user-select: none;
  pointer-events: none;
  transform: translateY(8%);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1.4rem 0 1.6rem;
  border-top: 1px solid rgba(246, 244, 239, 0.1);
  font-size: 0.9rem;
  color: rgba(246, 244, 239, 0.45);
}
.footer-bottom a {
  color: rgba(246, 244, 239, 0.7);
  transition: color 0.3s;
}
.footer-bottom a:hover { color: var(--brass); }

/* ============================================================
   REVEAL SYSTEM
   ============================================================ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1.2s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

.js h2[data-reveal] { filter: blur(10px); }
.js h2[data-reveal].is-visible { filter: blur(0); }

.js [data-reveal-img] { clip-path: inset(8% 4% 8% 4% round var(--r)); transition: clip-path 1.3s var(--ease); }
.js [data-reveal-img].is-visible { clip-path: inset(0 0 0 0 round var(--r)); }

/* ============================================================
   QUICK ACTIONS BAR (mobile / tablet)
   ============================================================ */
.quickbar {
  display: none;
  position: fixed;
  z-index: 940;
  left: var(--inset);
  right: var(--inset);
  bottom: calc(var(--inset) + env(safe-area-inset-bottom, 0px));
  max-width: 440px;
  margin-inline: auto;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 0.2rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(18, 24, 30, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(246, 244, 239, 0.14);
  box-shadow: 0 18px 44px -14px rgba(16, 21, 26, 0.65);
}
.quickbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.34rem;
  min-height: 52px;
  padding: 0.5rem 0.2rem;
  border: 0;
  border-radius: 999px;
  background: none;
  font-family: inherit;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.quickbar__item svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--brass);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.35s var(--ease);
}
.quickbar__item--cta { background: var(--steel); color: var(--ink); }
.quickbar__item--cta svg { stroke: var(--ink); }
.quickbar__item[aria-current="page"] { background: rgba(246, 244, 239, 0.1); }
.quickbar__item[aria-current="page"] svg { stroke: var(--paper); }
.quickbar__item--cta[aria-current="page"] { background: var(--steel); }
.quickbar__item--cta[aria-current="page"] svg { stroke: var(--ink); }
.quickbar__item:active { background: rgba(246, 244, 239, 0.16); }
.quickbar__item--cta:active { background: var(--steel-deep); }

.quickbar__burger { position: relative; display: block; width: 20px; height: 20px; }
.quickbar__burger span {
  position: absolute;
  left: 1px;
  right: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--brass);
  transition: transform 0.4s var(--ease), opacity 0.25s var(--ease), background 0.35s var(--ease);
}
.quickbar__burger span:nth-child(1) { top: 4px; }
.quickbar__burger span:nth-child(2) { top: 9px; }
.quickbar__burger span:nth-child(3) { top: 14px; }
body.nav-open .quickbar__burger span { background: var(--paper); }
body.nav-open .quickbar__burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.nav-open .quickbar__burger span:nth-child(2) { opacity: 0; }
body.nav-open .quickbar__burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
body.nav-open .quickbar { z-index: 1001; }

.js .quickbar { transform: translateY(160%); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.45s var(--ease); }
.js .quickbar.is-in { transform: none; opacity: 1; }
.js .quickbar.is-out { transform: translateY(160%); opacity: 0; pointer-events: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1320px) {
  .header-phone { display: none; }
}

@media (max-width: 1080px) {
  .nav-desktop { display: none; }
  .header-cta .btn { display: none; }
  .header-phone { display: inline; }
  .nav-toggle { display: flex; }
  .problem-grid { grid-template-columns: 1fr; align-items: start; }
  .guide-grid { grid-template-columns: 1fr; }
  .frame { max-width: 480px; }
  .proof-grid { grid-template-columns: 1fr; gap: 3rem; }
  .areas-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .quickbar { display: grid; }
  .site-footer { padding-bottom: calc(var(--inset) + 70px + 1.4rem + env(safe-area-inset-bottom, 0px)); }
  .nav-overlay .container { padding-bottom: 92px; }
}

@media (max-width: 820px) {
  .fears { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 2.6rem 1fr 3rem; }
  .svc__desc { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    height: auto;
  }
  .mosaic figure:first-child { grid-row: auto; }
  .mosaic figure { height: clamp(280px, 52vw, 460px); }
  .hero__badge { display: none; }
  .footer-mark { white-space: normal; line-height: 0.9; }
  .doodle--arrow { display: none; }
  .sparkle--a { right: -1.6rem; }
  .sparkle--b { display: none; }
}

@media (max-width: 560px) {
  .header-phone { display: none; }
  .hero__content { bottom: clamp(2.4rem, 5.5vh, 4.5rem); }
  .hero__actions { gap: 1.2rem; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .cta__buttons { width: 100%; }
  .cta__buttons .btn { width: 100%; justify-content: center; }
  .footer-grid { column-gap: 1.5rem; row-gap: 2.6rem; }
  .footer-col h4 { margin-bottom: 0.9rem; }
  .footer-col a, .footer-col address { font-size: 1rem; line-height: 1.35; }
  .break__media { height: clamp(380px, 70vh, 560px); }
  .scroll-cue { display: none; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal], .js [data-reveal-img] { opacity: 1; transform: none; clip-path: none; filter: none; }
  .line-inner, [data-hero-fade] { transform: none; opacity: 1; }
  .js [data-reveal-scale] img { scale: 1; }
}

/* ============================================================
   INNER PAGES — shared components (v4)
   ============================================================ */

/* ---------- Hero variants ---------- */
.hero--inner .hero__card {
  height: clamp(520px, 74vh, 700px);
  min-height: 480px;
}
.hero--inner .hero__title {
  font-size: clamp(2.3rem, 1.2rem + 3.9vw, 4.6rem);
  max-width: 13em;
}
.hero--inner .hero__content { bottom: clamp(3rem, 7vh, 5rem); }

body[data-page="about"] .hero--inner .hero__card {
  height: clamp(620px, 88vh, 830px);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.hero--plain .hero__card {
  height: auto;
  min-height: 0;
}
.hero--plain .hero__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 62% at 80% 8%, rgba(139, 169, 188, 0.18), transparent 70%),
    radial-gradient(36% 46% at 8% 96%, rgba(169, 139, 95, 0.12), transparent 72%);
}
.hero--plain .hero__content {
  position: static;
  padding: clamp(9.5rem, 17vh, 12.5rem) 0 clamp(4.2rem, 8vh, 6.5rem);
}

/* ---------- Laptop letterbox guard ---------- */
/* Wide-but-short viewports (1366x768, 1600x757, 1280x720) let the
   bottom-anchored hero content climb into the fixed header. Compress the
   hero type scale and bottom offsets so every banner clears the header;
   viewports taller than 850px keep the approved scale untouched. */
@media (min-width: 1081px) and (max-height: 850px) {
  .hero { --text-hero: clamp(2.5rem, 0.9rem + 4.4vw, 4.7rem); }
  .hero__content { bottom: 2.4rem; }
  .hero__eyebrow { margin-bottom: 0.75rem; }
  .hero__title { margin-bottom: 1rem; }
  .hero__sub { margin-bottom: 1.5rem; font-size: clamp(0.92rem, 0.85rem + 0.3vw, 1.02rem); }
  .hero__badge { bottom: 2.4rem; }
  .hero--inner .hero__card { height: clamp(560px, 74vh, 700px); }
  .hero--inner .hero__title { font-size: clamp(2rem, 0.9rem + 2.9vw, 3.5rem); }
  .hero--inner .hero__content { bottom: 2.4rem; }
}

/* ---------- Image sticker tag ---------- */
.img-tag {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  z-index: 1;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(246, 244, 239, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  rotate: -2deg;
}

/* ---------- Founding story (about) ---------- */
.section--story {
  position: relative;
  overflow: hidden;
}
.section--story::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(46% 60% at 88% 6%, rgba(139, 169, 188, 0.14), transparent 70%),
    radial-gradient(34% 44% at 4% 100%, rgba(169, 139, 95, 0.1), transparent 72%);
}
.story-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(2.6rem, 6vw, 5.5rem);
  align-items: center;
}
.story-copy h2 { margin-bottom: 1.6rem; }
.story-media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.55);
}
.story-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3.6;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.story-media:hover img { transform: scale(1.045); }

/* ---------- Feature rows (services hub) ---------- */
.features { display: grid; gap: clamp(4rem, 7vw, 7rem); }
.feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: center;
}
.feature:nth-child(even) .feature__media { order: 2; }
.feature__media {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
}
.feature__media img {
  width: 100%;
  height: clamp(300px, 36vw, 460px);
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.feature:hover .feature__media img { transform: scale(1.045); }
.feature__num {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--brass);
  margin-bottom: 0.9rem;
}
.feature__body h3 {
  font-size: clamp(1.6rem, 1.15rem + 1.7vw, 2.5rem);
  letter-spacing: var(--track);
  line-height: 1.05;
  margin-bottom: 1.1rem;
}
.feature__body p {
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 1.7rem;
}

/* ---------- Split + sticky media + checklist ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.split__media {
  position: sticky;
  top: 110px;
  border-radius: var(--r);
  overflow: hidden;
}
.split__media img {
  width: 100%;
  height: clamp(420px, 62vh, 620px);
  object-fit: cover;
}
.copy { margin-top: 1.4rem; }
.copy p { color: var(--muted); max-width: 38em; }
.copy p + p { margin-top: 1.2rem; }
.section--ink .copy p { color: var(--muted-light); }

.checklist { display: grid; margin-top: 1.6rem; }
.checklist li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(22, 29, 36, 0.1);
  font-size: 1.05rem;
  font-weight: 550;
}
.checklist li::before {
  content: "✓";
  flex: none;
  font-weight: 800;
  color: var(--brass);
}

/* ---------- Why cards ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.2rem;
}
.why-card {
  background: var(--white);
  border-radius: var(--r);
  padding: 1.9rem 1.8rem 2rem;
  box-shadow: var(--shadow-card);
}
.why-card__num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: var(--track);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--steel-deep);
  margin-bottom: 1.1rem;
}
.why-card h3 { font-size: 1.16rem; margin-bottom: 0.55rem; }
.why-card p { color: var(--muted); font-size: 0.98rem; }

/* ---------- FAQ accordion ---------- */
#faq .section-head,
#faqs .section-head {
  margin-inline: auto;
  text-align: center;
}
#faq .section-head .eyebrow::after,
#faqs .section-head .eyebrow::after {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--brass);
}
/* The WP widget renders the same section without the static id, so also key
   the centering off structure. Kept as separate rules: a browser without
   :has() drops the whole selector list, which would kill the id rules too. */
.section:has(.faq-list) .section-head {
  margin-inline: auto;
  text-align: center;
}
.section:has(.faq-list) .section-head .eyebrow::after {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--brass);
}
.faq-list {
  max-width: 56em;
  margin-inline: auto;
  border-top: 1px solid rgba(22, 29, 36, 0.13);
}
.faq { border-bottom: 1px solid rgba(22, 29, 36, 0.13); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: left;
  padding: 1.3rem 0;
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.28rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  transition: color 0.3s;
}
.faq__q:hover { color: var(--steel-deep); }
.faq__icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px rgba(22, 29, 36, 0.22);
  transition: transform 0.55s var(--ease), box-shadow 0.3s, background 0.3s;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.6px;
  background: currentColor;
  translate: -50% -50%;
  transition: rotate 0.55s var(--ease);
}
.faq__icon::after { rotate: 90deg; }
.faq.open .faq__icon { transform: rotate(180deg); background: var(--ink); color: var(--paper); box-shadow: none; }
.faq.open .faq__icon::after { rotate: 0deg; }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease);
}
.faq.open .faq__a { grid-template-rows: 1fr; }
.faq__a-inner { overflow: hidden; }
.faq__a p {
  color: var(--muted);
  max-width: 48em;
  padding-bottom: 1.4rem;
}
.faq-group { max-width: 56em; margin-inline: auto; margin-top: clamp(2.8rem, 5vw, 4.2rem); }
.faq-group:first-of-type { margin-top: 0; }
.faq-group__title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.6rem;
}

/* ---------- Projects: filters + gallery ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.filter {
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(22, 29, 36, 0.18);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.4s var(--ease);
}
.filter:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--ink); }
.filter.active {
  background: var(--ink);
  color: var(--paper);
  box-shadow: none;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.card {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
}
.card img {
  width: 100%;
  aspect-ratio: 11 / 12;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.card:hover img { transform: scale(1.05); }
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 21, 26, 0.72) 0%, rgba(16, 21, 26, 0.06) 46%, transparent 62%);
}
.card__info {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.1rem;
  z-index: 1;
  color: var(--paper);
}
.card__title {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.card__cat {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.35rem;
}
.card__count {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 1;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  background: rgba(246, 244, 239, 0.92);
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  rotate: 2deg;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(26px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.card-in { animation: cardIn 0.7s var(--ease) both; animation-delay: var(--d, 0s); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 3rem);
  background: rgba(16, 21, 26, 0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox__img {
  max-width: min(1100px, 88vw);
  max-height: 72vh;
  border-radius: var(--r-sm);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
/* main.js fades via this class while the next photo decodes (keep 0.2s in sync with lbFade) */
.lightbox__img.is-swap { opacity: 0; transform: scale(0.985); }
.lightbox__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.3rem;
  color: var(--paper);
}
.lightbox__caption { font-weight: 700; letter-spacing: -0.01em; }
.lightbox__count {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted-light);
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: var(--paper);
  font-size: 1.3rem;
  box-shadow: inset 0 0 0 1.5px rgba(246, 244, 239, 0.32);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: var(--paper);
  color: var(--ink);
  box-shadow: none;
}
.lightbox__close { top: 1.3rem; right: 1.5rem; }
.lightbox__prev { left: clamp(0.8rem, 2.5vw, 2.2rem); top: 50%; translate: 0 -50%; }
.lightbox__next { right: clamp(0.8rem, 2.5vw, 2.2rem); top: 50%; translate: 0 -50%; }

/* ---------- Featured project showcase (service pages) ---------- */
.showcase {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--inset);
}
.showcase figure {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
}
/* Absolute so the portrait full-size images cannot inflate the 1fr grid rows
   past the min-height floors (they rendered ~2x the intended height). */
.showcase figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.showcase figure:hover img { transform: scale(1.04); }
.showcase figure:first-child { grid-row: span 2; min-height: clamp(320px, 38vw, 460px); }
.showcase figure:not(:first-child) { min-height: clamp(150px, 17.5vw, 221px); }
.showcase-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: 1.8rem;
}
.showcase-foot p { color: var(--muted); max-width: 38em; }

/* ---------- Process page steps ---------- */
.process-steps { display: grid; gap: clamp(4rem, 7vw, 7rem); }
.pstep {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: center;
}
.pstep:nth-child(even) .pstep__media { order: 2; }
.pstep__media {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
}
.pstep__media img {
  width: 100%;
  height: clamp(320px, 40vw, 480px);
  object-fit: cover;
}
.pstep__num {
  display: block;
  font-size: clamp(4.4rem, 9vw, 8rem);
  font-weight: 800;
  letter-spacing: var(--track);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--steel);
  margin-bottom: 1.1rem;
}
.pstep__body h3 {
  font-size: clamp(1.6rem, 1.15rem + 1.7vw, 2.5rem);
  letter-spacing: var(--track);
  line-height: 1.05;
  margin-bottom: 1.1rem;
}
.pstep__body p { color: var(--muted); max-width: 36em; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.form { display: grid; gap: 1.3rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}
.field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border-radius: var(--r-sm);
  border: 1.5px solid rgba(22, 29, 36, 0.16);
  background: var(--white);
  font: inherit;
  color: var(--ink);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--steel-deep);
  box-shadow: 0 0 0 3px rgba(139, 169, 188, 0.25);
}
.field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted); }

.ghl-embed { margin-top: 2rem; }
.ghl-embed iframe { display: block; width: 100%; min-height: 1240px; }
.ghl-embed + .form-note { margin-top: 1.2rem; }

.contact-rail {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 2.1rem;
}
.contact-block h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.7rem;
}
.contact-block p,
.contact-block address {
  color: var(--muted);
  line-height: 1.75;
}
.contact-block .big-link {
  display: inline-block;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.3s;
}
.contact-block .big-link:hover { color: var(--steel-deep); font-style: italic; }

/* ---------- Blog index ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem 1.2rem;
}
.post-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}
.post-card__media { display: block; overflow: hidden; }
.post-card__media img {
  width: 100%;
  height: 235px;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.6rem 1.6rem 1.8rem;
}
.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.7rem;
}
.post-card__tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  white-space: nowrap;
}
.post-card__date {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.post-card__tag + .post-card__date::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-right: 0.7rem;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
  opacity: 0.6;
}
/* Long category names + date overflow a phone-width card. Tighten the
   tracking and drop the dot so a forced wrap never orphans a separator. */
@media (max-width: 420px) {
  .post-card__tag { letter-spacing: 0.12em; }
  .post-card__date { letter-spacing: 0.1em; }
  .post-card__tag + .post-card__date::before { display: none; }
}
.post-card__title {
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
}
.post-card__excerpt { flex: 1; color: var(--muted); font-size: 0.97rem; }
.post-card .link-arrow {
  align-self: flex-start;
  font-size: 0.74rem;
  color: var(--ink);
}
.post-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
}
.post-card--featured .post-card__media { height: 100%; }
.post-card--featured .post-card__media img { height: 100%; min-height: 340px; }
.post-card--featured .post-card__body {
  padding: clamp(1.8rem, 3.5vw, 3rem);
  justify-content: center;
}
.post-card--featured .post-card__title { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.7rem); }
.post-card--featured .post-card__excerpt { flex: 0 1 auto; }

/* ---------- Single post article + TOC ---------- */
.article-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: start;
}
.toc { position: sticky; top: 110px; }
.toc h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
}
.toc ol {
  display: grid;
  gap: 0.2rem;
  border-left: 1px solid rgba(22, 29, 36, 0.14);
}
.toc a {
  display: block;
  padding: 0.4rem 0 0.4rem 1.1rem;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.3s, border-color 0.3s;
}
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--ink); border-left-color: var(--brass); }
.toc-mobile { display: none; }

.article { max-width: 70ch; }
.article > p { margin-bottom: 1.4rem; }
.article > p,
.article ul li { color: var(--muted); }
.article h2 {
  font-size: clamp(1.65rem, 1.25rem + 1.6vw, 2.5rem);
  line-height: 1.08;
  margin: 2.9rem 0 1.2rem;
  scroll-margin-top: 120px;
}
.article h2:first-child { margin-top: 0; }
.article ul {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}
.article ul li {
  position: relative;
  padding-left: 1.7rem;
}
.article ul li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0.22em;
  font-size: 0.75em;
  color: var(--brass);
}
.article figure {
  margin: 2.1rem 0;
  border-radius: var(--r);
  overflow: hidden;
}
.article figure img { width: 100%; height: 450px; object-fit: cover; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  align-items: center;
  margin-bottom: 2.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-meta .dot { color: var(--brass); }

/* ---------- Inner pages responsive ---------- */
@media (max-width: 1080px) {
  .feature,
  .pstep,
  .split,
  .contact-grid { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature__media,
  .pstep:nth-child(even) .pstep__media { order: 0; }
  .split__media { position: static; }
  .split__media img { height: clamp(280px, 48vw, 440px); }
  .story-grid { grid-template-columns: 1fr; }
  .story-media { order: -1; max-width: 560px; }
  .contact-rail { position: static; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .post-card--featured { grid-template-columns: 1fr; }
  .post-card--featured .post-card__media img { min-height: 0; height: clamp(240px, 42vw, 380px); }
  .article-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .toc-mobile {
    display: block;
    margin-bottom: 2rem;
    border: 1.5px solid rgba(22, 29, 36, 0.14);
    border-radius: var(--r-sm);
    padding: 0.9rem 1.2rem;
  }
  .toc-mobile summary {
    cursor: pointer;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brass);
  }
  .toc-mobile ol { display: grid; gap: 0.4rem; margin-top: 1rem; }
  .toc-mobile a { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
  .showcase { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .showcase figure:first-child { grid-column: 1 / -1; grid-row: auto; min-height: clamp(240px, 44vw, 400px); }
}

@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .lightbox__prev, .lightbox__next { width: 42px; height: 42px; }
  .lightbox__img { max-height: 62vh; }
  .showcase figure:not(:first-child) { min-height: clamp(150px, 32vw, 240px); }
}

/* ============================================================
   404 PAGE — inset ink card, outlined code (WP 404.php only)
   ============================================================ */
.err { padding: var(--inset) var(--inset) 0; }
.err__card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - var(--inset));
  padding: clamp(7.5rem, 15vh, 10rem) clamp(1.4rem, 4vw, 3rem) clamp(4rem, 8vh, 5.5rem);
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  background: var(--ink-deep);
  color: var(--paper);
  text-align: center;
}
.err__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 62% at 80% 8%, rgba(139, 169, 188, 0.16), transparent 70%),
    radial-gradient(36% 46% at 8% 96%, rgba(169, 139, 95, 0.13), transparent 72%);
}
.err__inner { max-width: 48rem; margin: 0 auto; }
.err .eyebrow { color: var(--steel); margin-bottom: 0.4rem; }
.err .eyebrow::before, .err .eyebrow::after { background: var(--steel); }
.err__code {
  font-size: clamp(6.5rem, 3.4rem + 17vw, 14rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.05em;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px rgba(139, 169, 188, 0.75);
  margin: 0 0 0.6rem;
  user-select: none;
}
.err__code em {
  font-style: normal;
  -webkit-text-fill-color: var(--brass);
  -webkit-text-stroke: 2px var(--brass);
}
.err h1 {
  font-size: clamp(1.9rem, 1.1rem + 2.6vw, 3.2rem);
  margin-bottom: 1.3rem;
}
.err h1 em { color: var(--steel); }
.err__sub {
  max-width: 36em;
  margin: 0 auto 2.4rem;
  color: var(--muted-light);
  font-size: 1.02rem;
  line-height: 1.7;
}
.err__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.err__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.7rem;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.err__links span { color: rgba(246, 244, 239, 0.4); }
.err__links a {
  color: var(--muted-light);
  border-bottom: 1px solid rgba(246, 244, 239, 0.22);
  padding-bottom: 3px;
  transition: color 0.3s, border-color 0.3s;
}
.err__links a:hover { color: var(--brass); border-color: var(--brass); }
@media (max-width: 520px) {
  .err__actions { flex-direction: column; align-items: stretch; }
  .err__actions .btn { justify-content: center; }
}
