/* ============================================================
   Transformed Construction & Restoration
   "Atelier" — premium editorial direction
   Warm espresso + bone + bronze. Archivo (display) · Spectral (serif accent) · Hanken Grotesk (body).
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Dark (warm near-black) */
  --espresso:       #1c1815;
  --espresso-deep:  #110e0c;
  --espresso-panel: #272019;
  /* Light (warm paper, low chroma) */
  --bone:    #f4f1ea;
  --bone-2:  #ebe5d9;
  --bone-3:  #ded6c6;
  /* Accent */
  --bronze:       #b0894e;
  --bronze-light: #cba874;
  --bronze-deep:  #936f38;
  --bronze-ink:   #6c5023;   /* darker bronze for small text on light bg (AA) */
  /* Text */
  --ink:        #221d18;   /* on light */
  --ink-soft:   #4b443c;
  --muted:      #847a6d;   /* muted on light */
  --on-dark:    #ece6da;   /* body on dark */
  --on-dark-soft: #b8ad9c; /* muted on dark */
  --white: #ffffff;

  --color-bg: var(--bone);
  --color-text: var(--ink);
  --line-light: rgba(34,29,24,0.14);
  --line-dark:  rgba(236,230,218,0.16);
  --line-bronze: rgba(176,137,78,0.4);

  /* Type families — Option C: Marcellus (display serif) + Mulish (sans) */
  --font-head:    "Marcellus", Georgia, "Times New Roman", serif;
  --font-display: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif:   "Marcellus", Georgia, serif;
  --font-body:    "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Fluid type scale (big contrast for editorial feel) */
  --t-eyebrow: 0.74rem;
  --t-sm:   0.875rem;
  --t-base: 1.0625rem;
  --t-lg:   1.1875rem;
  --t-xl:   clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
  --t-2xl:  clamp(1.7rem, 1.35rem + 1.6vw, 2.6rem);
  --t-3xl:  clamp(2.3rem, 1.7rem + 2.6vw, 3.75rem);
  --t-4xl:  clamp(2.7rem, 2rem + 3.6vw, 4.75rem);
  --t-display: clamp(2.8rem, 1.9rem + 4.4vw, 6rem);

  /* Spacing */
  --section: clamp(5rem, 3.5rem + 7vw, 10rem);
  --container: 1320px;
  --gutter: clamp(1.25rem, 4vw, 4rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.55s;

  --z-nav: 30;
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 120px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

body {
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  font-stretch: normal;
  line-height: 1.06;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-wrap: balance;
}
/* Accent — emphasis words in headings (same Marcellus, colored via context) */
.ser { font-family: var(--font-head); font-weight: 400; font-style: normal; font-stretch: normal; letter-spacing: 0; }

p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--bronze); color: var(--espresso-deep); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

/* ---------- 3. Primitives ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.wide { max-width: 1560px; }
.section { padding-block: var(--section); }
.dark { background: var(--espresso); color: var(--on-dark); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--bone); }
.bone2 { background: var(--bone-2); }

/* Label — small caps tracked. Used sparingly, not on every section. */
.label {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-display); font-weight: 600; font-stretch: 104%;
  font-size: var(--t-eyebrow); letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--bronze-ink);
}
.dark .label { color: var(--bronze-light); }
.label::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.6; }
.label--plain::before { display: none; }

.lede { font-size: var(--t-lg); color: var(--ink-soft); max-width: 60ch; }
.dark .lede { color: var(--on-dark-soft); }

.rule { height: 1px; background: var(--line-light); border: 0; }
.dark .rule { background: var(--line-dark); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mobile-cta { display: none; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--espresso); color: var(--bone); padding: .75rem 1.25rem; }
.skip-link:focus { left: 0; }

/* ---------- 4. Buttons ---------- */
.btn {
  --bg: var(--bronze); --fg: var(--espresso-deep); --bd: var(--bronze); --fill: var(--bronze-light);
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem;
  font-family: var(--font-display); font-weight: 600; font-stretch: 102%;
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1;
  padding: 1rem 1.8rem; border-radius: 4px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
/* Hover: a fill wipes up from the bottom (no lift, no glow) */
.btn::after { content: ""; position: absolute; inset: -1px; z-index: -1; background: var(--fill); transform: translateY(102%); transition: transform 0.5s var(--ease); }
.btn:hover::after, .btn:focus-visible::after { transform: translateY(0); }
.btn svg { width: 1em; height: 1em; }
.btn--outline { --bg: transparent; --fg: var(--ink); --bd: rgba(34,29,24,0.3); --fill: var(--espresso); }
.btn--outline:hover { color: var(--bone); border-color: var(--espresso); }
.btn--light { --bg: transparent; --fg: var(--bone); --bd: rgba(236,230,218,0.45); --fill: var(--bone); }
.btn--light:hover { color: var(--espresso); border-color: var(--bone); }
.btn--phone { --bg: var(--white); --fg: var(--espresso); --bd: var(--white); --fill: var(--espresso); }
.btn--phone:hover { color: var(--white); border-color: var(--white); }
.btn--lg { height: 48px; padding: 0 1.4rem; font-size: 0.82rem; }
.btn--sm { height: 40px; padding: 0 1.25rem; font-size: 0.75rem; }
.btn--icon { width: 40px; padding: 0; }
.btn--icon svg { width: 18px; height: 18px; }
/* Arrow contained in its own sharp off-white square, equidistant from top/bottom/right */
.btn--arrow { padding-right: 0; gap: 0; }
.btn__arrow { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; margin: 0 7px 0 0.9rem; background: var(--bone); color: var(--espresso); border-radius: 0; }
.btn__arrow svg { width: 15px; height: 15px; transition: transform 0.4s var(--ease); }
.btn--arrow:hover .btn__arrow svg { transform: rotate(90deg); }

/* Pill arrow CTA (header) */
.pill {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.62rem 0.62rem 0.62rem 1.15rem; border: 1px solid rgba(236,230,218,0.4); border-radius: 100px; color: var(--bone);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur);
}
.pill__dot { width: 30px; height: 30px; border-radius: 50%; background: var(--bronze); color: var(--espresso-deep); display: grid; place-items: center; transition: transform 0.35s var(--ease); }
.pill__dot svg { width: 14px; height: 14px; }
.pill:hover { background: var(--bone); color: var(--espresso); border-color: var(--bone); }
.pill:hover .pill__dot { transform: rotate(45deg); }
.is-scrolled .pill:not(:hover) { color: var(--ink); border-color: var(--line-light); }

/* Text link with arrow */
.tlink { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bronze-ink); }
.dark .tlink { color: var(--bronze-light); }
.tlink svg { width: 1.05em; height: 1.05em; transition: transform 0.35s var(--ease); }
.tlink:hover svg { transform: translateX(6px); }

/* ---------- 5. Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav); transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur); border-bottom: 1px solid transparent; }
.site-header::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 150px; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, rgba(17,14,12,0.7), transparent); transition: opacity var(--dur) var(--ease); }
.site-header.is-scrolled { background: rgba(17,14,12,0.88); backdrop-filter: blur(12px) saturate(1.2); border-bottom-color: rgba(176,137,78,0.22); }
.site-header.is-scrolled::before { opacity: 0; }
.header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; height: 88px; }

.brand { display: inline-flex; align-items: center; justify-self: start; }
.brand img { height: 40px; width: auto; }
.brand .logo-light { display: block; }
.brand .logo-dark { display: none; }

.nav { display: flex; align-items: center; gap: 2.2rem; justify-self: center; }
.nav a { font-family: var(--font-display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--bone); position: relative; padding-block: 0.3rem; transition: color 0.3s; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--bronze); transition: width 0.4s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav .nav__cta { display: none; }   /* desktop uses the header-right button; this one is for the mobile menu */
.nav .nav__cta::after { display: none; }

.header__right { display: flex; align-items: center; gap: 0.6rem; justify-self: end; }

.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; gap: 6px; align-items: center; justify-content: center; justify-self: end; }
.nav-toggle span { width: 26px; height: 1.5px; background: var(--bone); transition: transform 0.4s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- 6. Hero (cinematic full-bleed) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: var(--bone); isolation: isolate; }
/* Entrance: image settles, content rises in stagger */
@keyframes heroSettle { from { transform: scale(1.07); } to { transform: scale(1); } }
@keyframes heroRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; animation: heroSettle 1.6s var(--ease) both; }
.hero__media img { position: absolute; top: -16%; left: 0; width: 100%; height: 132%; object-fit: cover; will-change: transform; }
.hero__media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(17,14,12,0.86) 0%, rgba(17,14,12,0.55) 38%, rgba(17,14,12,0.12) 70%, rgba(17,14,12,0.35) 100%),
              linear-gradient(to top, rgba(17,14,12,1) 0%, rgba(17,14,12,0.85) 6%, rgba(17,14,12,0.2) 32%, rgba(17,14,12,0) 55%); }
.hero__inner { width: 100%; padding-top: 96px; padding-bottom: 96px; }
.hero__content { max-width: 85%; }
.hero__grid { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; }

.hero__eyebrow { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.6rem; }
.hero__eyebrow img { width: 30px; height: auto; }
.hero__eyebrow span { font-family: var(--font-display); font-weight: 600; font-size: var(--t-eyebrow); letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone); line-height: 1.4; }
.hero__eyebrow span small { display: block; color: var(--bronze-light); font-size: 0.92em; }

.hero h1 { font-size: var(--t-display); color: var(--white); font-weight: 400; letter-spacing: -0.01em; }
.hero h1 .ser { color: var(--bronze-light); }
.hero__sub { margin-top: 1.6rem; font-size: var(--t-lg); max-width: 65ch; color: rgba(236,230,218,0.9); }
.hero__cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__eyebrow { animation: heroRise 0.9s var(--ease) 0.15s both; }
.hero h1 { animation: heroRise 1s var(--ease) 0.3s both; }
.hero__sub { animation: heroRise 0.9s var(--ease) 0.52s both; }
.hero__cta { animation: heroRise 0.9s var(--ease) 0.66s both; }

/* Hero services list (lower-right overlay) */
.hero__svcs { text-align: right; padding-bottom: 0.4rem; }
.hero__svcs li { padding: 0.62rem 0; border-top: 1px solid var(--line-dark); font-family: var(--font-display); font-weight: 500; font-size: 0.92rem; letter-spacing: 0.02em; color: rgba(236,230,218,0.92); white-space: nowrap; }
.hero__svcs li:first-child { border-top: 0; }

.hero__scroll { position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: var(--on-dark-soft); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; z-index: 1; }
.hero__scroll i { width: 1px; height: 34px; background: linear-gradient(var(--bronze-light), transparent); animation: scrolldrop 2.4s var(--ease) infinite; }
@keyframes scrolldrop { 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; } }

/* ---------- 7. Ethos / intro band ---------- */
.dark.darkest { background: var(--espresso-deep); }
.ethos__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.ethos h2 { font-size: var(--t-3xl); }
.ethos h2 .ser { color: var(--bronze-deep); }
.ethos__side p { color: var(--ink-soft); }
.ethos__stats { margin-top: clamp(3rem, 5vw, 4.5rem); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-light); }
.stat { padding: 1.75rem clamp(1.5rem, 2.5vw, 2.5rem) 0; border-right: 1px solid var(--line-light); }
.stat:first-child { padding-left: 0; }
.stat:last-child { padding-right: 0; border-right: 0; }
.stat__n { font-family: var(--font-head); font-weight: 400; font-size: var(--t-2xl); color: var(--ink); display: block; line-height: 1; }
.stat__star { font-size: 0.72em; }
/* Dark ethos adaptations */
.ethos.dark h2 .ser { color: var(--bronze-light); }
.ethos.dark .ethos__side p { color: var(--on-dark-soft); }
.ethos.dark .ethos__stats { border-top-color: var(--line-dark); }
.ethos.dark .stat { border-right-color: var(--line-dark); border-bottom-color: var(--line-dark); }
.ethos.dark .stat__n { color: var(--bone); }
.ethos.dark .stat__l { color: var(--on-dark-soft); }
.stat__l { margin-top: 0.5rem; font-size: var(--t-sm); color: var(--muted); }

/* ---------- 8. Selected work (editorial gallery) ---------- */
.work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: clamp(2.5rem, 4vw, 4rem); flex-wrap: wrap; }
.work__head h2 { font-size: var(--t-3xl); }
.work__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.25rem, 2.5vw, 2.5rem) clamp(1.25rem, 2.5vw, 2.5rem); }
.proj { position: relative; display: block; overflow: hidden; }
.proj__img { overflow: hidden; background: var(--espresso-panel); }
.proj__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.proj:hover .proj__img img { transform: scale(1.045); }
.proj__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1.1rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line-light); }
.dark .proj__meta { border-color: var(--line-dark); }
.proj__idx { font-family: var(--font-display); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.15em; color: var(--bronze-deep); }
.proj__name { font-family: var(--font-display); font-weight: 700; font-size: var(--t-lg); color: var(--ink); }
.dark .proj__name { color: var(--bone); }
.proj__loc { font-size: var(--t-sm); color: var(--muted); }
.proj:hover .proj__name { color: var(--bronze-deep); }
/* spans */
.col-7 { grid-column: span 7; } .col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; } .col-4 { grid-column: span 4; } .col-8 { grid-column: span 8; }
.r-tall .proj__img { aspect-ratio: 4/5; } .r-wide .proj__img { aspect-ratio: 16/10; } .r-sq .proj__img { aspect-ratio: 1/1; }

/* ---------- 8b. Selected Work — horizontal scroll gallery ---------- */
.hwork { background: var(--bone-2); position: relative; }
.hwork__sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-block: clamp(4rem, 8vh, 6rem) clamp(2rem, 5vh, 4rem); }
.hwork__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(1.5rem, 3vh, 2.5rem); }
.hwork__head h2 { font-size: var(--t-3xl); }
.hwork__viewport { overflow: hidden; }
.hwork__track { display: flex; gap: clamp(1rem, 1.6vw, 1.75rem); padding-left: var(--gutter); padding-right: clamp(5rem, 18vw, 20rem); will-change: transform; }
.htile { position: relative; flex: 0 0 auto; width: clamp(280px, 31vw, 430px); height: min(58vh, 540px); overflow: hidden; border-radius: 8px; background: var(--espresso-panel); display: block; }
button.htile { border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: zoom-in; -webkit-appearance: none; appearance: none; }
button.htile:focus, button.htile:focus-visible { outline: none; }
.htile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.htile:hover img { transform: scale(1.05); }
/* persistent bottom gradient so caption + view link stay readable */
.htile:not(.htile--more)::after { content: ""; position: absolute; inset: auto 0 0 0; height: 60%; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(17,14,12,0.9), rgba(17,14,12,0.15) 55%, transparent); }
/* Staggered entrance when the section scrolls into view */
.htile { opacity: 0; transform: translateY(48px); transition: opacity 0.7s var(--ease), transform 0.85s var(--ease); }
.hwork.in .htile { opacity: 1; transform: none; }
.hwork.in .htile:nth-child(1) { transition-delay: 0.04s; }
.hwork.in .htile:nth-child(2) { transition-delay: 0.12s; }
.hwork.in .htile:nth-child(3) { transition-delay: 0.20s; }
.hwork.in .htile:nth-child(4) { transition-delay: 0.28s; }
.hwork.in .htile:nth-child(5) { transition-delay: 0.36s; }
.hwork.in .htile:nth-child(6) { transition-delay: 0.44s; }
@media (prefers-reduced-motion: reduce) { .htile { opacity: 1; transform: none; } }
.htile__cap { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.15rem; color: var(--bone); }
.htile__name { font-family: var(--font-head); font-size: var(--t-xl); }
.htile__loc { font-size: var(--t-sm); color: var(--on-dark-soft); }
.htile__view { position: absolute; top: 1.1rem; right: 1.1rem; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(17,14,12,0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); border: 1px solid rgba(236,230,218,0.32); color: var(--bone); opacity: 0; transform: translateY(-6px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease); }
.htile__view svg { width: 18px; height: 18px; }
.htile:hover .htile__view { opacity: 1; transform: translateY(0); background: var(--bronze); color: var(--espresso-deep); border-color: var(--bronze); }
.htile--more { background: var(--espresso); color: var(--bone); display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; padding: clamp(1.75rem, 2.5vw, 2.75rem); }
.htile--more .htile__more-k { font-family: var(--font-head); font-size: var(--t-2xl); color: var(--bone); line-height: 1.05; }
.htile--more .htile__more-t { font-size: var(--t-sm); color: var(--on-dark-soft); margin-top: 0.9rem; max-width: 28ch; }
.htile--more .htile__arrow { margin-top: auto; width: 48px; height: 48px; border-radius: 4px; border: 1px solid rgba(236,230,218,0.45); display: grid; place-items: center; color: var(--bronze-light); transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease); }
.htile--more .htile__arrow svg { width: 20px; height: 20px; }
.htile--more:hover .htile__arrow { background: var(--bronze); color: var(--espresso-deep); border-color: var(--bronze); }
/* Fallback (mobile / reduced-motion): native horizontal swipe, no pin */
.hwork--scroll { height: auto !important; }
.hwork--scroll .hwork__sticky { position: static; height: auto; }
.hwork--scroll .hwork__viewport { overflow: visible; }
.hwork--scroll .hwork__track { transform: none !important; flex-direction: column; gap: 1rem; padding: 0 var(--gutter); }
.hwork--scroll .htile { width: 100%; max-width: none; height: auto; aspect-ratio: 4/3; }
.hwork--scroll .htile--more { aspect-ratio: 16/10; }

/* Image lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(17,14,12,0.95); padding: clamp(1rem, 4vw, 3rem); opacity: 0; transition: opacity 0.3s var(--ease); }
.lightbox.open { display: flex; opacity: 1; }
body.lb-open .mobile-cta { display: none; }
.lightbox__fig { margin: 0; max-width: min(1160px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.lightbox__img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,0.55); }
.lightbox__cap { font-family: var(--font-head); font-size: var(--t-lg); color: var(--bone); text-align: center; }
.lightbox__btn { position: absolute; background: rgba(244,241,234,0.08); border: 1px solid rgba(236,230,218,0.28); color: var(--bone); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease); }
.lightbox__btn:hover { background: var(--bronze); border-color: var(--bronze); color: var(--espresso-deep); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: clamp(0.5rem, 3vw, 2rem); }
.lightbox__nav--next { right: clamp(0.5rem, 3vw, 2rem); }
@media (max-width: 600px) {
  .lightbox__img { max-height: 72vh; }
  .lightbox__btn { width: 44px; height: 44px; }
  .lightbox__nav { top: auto; bottom: clamp(1rem, 4vw, 2rem); transform: none; }
  .lightbox__nav--prev { left: clamp(1rem, 6vw, 3rem); }
  .lightbox__nav--next { right: clamp(1rem, 6vw, 3rem); }
}
@media (prefers-reduced-motion: reduce) { .lightbox { transition: none; } }

/* ---------- 9. Services (editorial list) ---------- */
.svc-section { position: relative; isolation: isolate; overflow: hidden; }
.svc-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.svc-bg__layer { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; filter: grayscale(100%) contrast(1.05); mix-blend-mode: screen; transition: opacity 0.8s var(--ease); }
.svc-bg__layer.on { opacity: 0.05; }
.svc-list { border-top: 1px solid var(--line-dark); }
.svc-row { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr) auto; gap: clamp(1rem, 4vw, 3.5rem); align-items: center; padding: clamp(1.6rem, 3vw, 2.6rem) 0; border-bottom: 1px solid var(--line-dark); transition: padding-left 0.5s var(--ease); }
.svc-row:hover { padding-left: 1rem; }
.svc-row__idx { font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.1em; color: var(--bronze-light); }
.svc-row__name { font-family: var(--font-head); font-weight: 400; font-size: var(--t-2xl); color: var(--bone); }
.svc-row__name .ser { color: var(--bronze-light); font-weight: 400; }
.svc-row__desc { color: var(--on-dark-soft); max-width: 46ch; font-size: var(--t-base); }
.svc-row__arrow { color: var(--bronze-light); opacity: 0; transform: translateX(-10px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.svc-row__arrow svg { width: 26px; height: 26px; }
.svc-row:hover .svc-row__arrow { opacity: 1; transform: translateX(0); }
.svc-onestop { margin-top: clamp(2.5rem, 4vw, 3.75rem); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.svc-onestop__msg { font-family: var(--font-head); font-weight: 400; font-size: var(--t-xl); line-height: 1.3; color: var(--bone); max-width: 26ch; }
.svc-onestop__msg .ser { color: var(--bronze-light); }
.svc-onestop__chips { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.svc-onestop__chips li { font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.02em; color: var(--on-dark-soft); border: 1px solid var(--line-dark); border-radius: 999px; padding: 0.55rem 1.1rem; transition: border-color 0.4s var(--ease), color 0.4s var(--ease); }
.svc-onestop__chips li:hover { border-color: var(--bronze); color: var(--bronze-light); }
@media (max-width: 760px) { .svc-onestop { grid-template-columns: 1fr; gap: 1.75rem; } }
@media (max-width: 760px){
  .svc-row { grid-template-columns: 1fr auto; grid-template-areas: "name arrow" "desc desc"; gap: 0.5rem 1rem; align-items: center; }
  .svc-row__name { grid-area: name; }
  .svc-row__desc { grid-area: desc; max-width: none; }
  .svc-row__arrow { grid-area: arrow; opacity: 1; transform: none; align-self: center; }
  .svc-row:hover { padding-left: 0; }
}

/* ---------- 10. About / people teaser ---------- */
.people { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.people__media { position: relative; }
/* Container itself doesn't slide — the Polaroids fly in individually */
.people__media.reveal { opacity: 1; transform: none; }
.polaroids { position: relative; width: min(100%, 460px); aspect-ratio: 498 / 660; margin: 0 auto; }
.polaroid { position: absolute; width: 74%; margin: 0; background: #fff; padding: 4% 4% 13%;
  box-shadow: 0 22px 45px -14px rgba(34, 29, 24, 0.30), 0 8px 16px -8px rgba(34, 29, 24, 0.18);
  opacity: 0; transform: translateX(-150px) rotate(var(--rot, 0deg));
  transition: opacity 0.8s var(--ease), transform 0.95s var(--ease); will-change: transform, opacity; }
.polaroid img { display: block; width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; object-position: center 28%;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.12); }
/* Nudge each family up within its square crop (Cody's needs the most) */
.polaroid--back img { object-position: center 44%; }
.polaroid--front img { object-position: center 36%; }
.polaroid--back { left: 7%; top: 0; z-index: 1; --rot: -4.5deg; }
.polaroid--front { left: 33%; top: 37%; z-index: 2; --rot: 4.6deg; }
.people__media.in .polaroid { opacity: 1; transform: translateX(0) rotate(var(--rot)); }
.people__media.in .polaroid--back { transition-delay: 0.05s; }
.people__media.in .polaroid--front { transition-delay: 0.22s; }
@media (prefers-reduced-motion: reduce) { .polaroid { opacity: 1; transform: rotate(var(--rot)); transition: none; } }
.people__badge { position: absolute; left: 0; bottom: -32px; transform: translate(-34%, 40%); width: 44%; z-index: 5; color: var(--bronze); pointer-events: none; }
.people__badge svg { width: 100%; height: auto; display: block; animation: badge-spin 30s linear infinite; }
@keyframes badge-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .people__badge svg { animation: none; } }
.people h2 { font-size: var(--t-3xl); }
.people h2 .ser { color: var(--bronze-deep); }
.people__body p { margin-top: 1.3rem; color: var(--ink-soft); }
.people__sign { margin-top: 1.8rem; font-family: var(--font-serif); font-style: normal; font-size: var(--t-lg); color: var(--ink); }

/* ---------- 11. Pull-quote / testimonial ---------- */
/* Kind Words faded background, fading to 0 toward the top */
.kindwords { position: relative; isolation: isolate; overflow: hidden; }
.kindwords::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("/images/services/kindwords-bg.jpg") center/cover no-repeat;
  opacity: 0.1;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 40%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 40%, #000 100%);
}
.quotes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.quote { display: flex; flex-direction: column; }
.quote__stars { display: flex; gap: 3px; color: var(--bronze-light); margin-bottom: 1.3rem; }
.quote__stars svg { width: 16px; height: 16px; }
.quote blockquote { font-family: var(--font-serif); font-size: var(--t-xl); line-height: 1.4; color: var(--bone); font-weight: 400; }
.quote blockquote::before { content: "\201C"; color: var(--bone); }
.quote__by { margin-top: auto; padding-top: 1.5rem; }
.quote__name { display: block; font-family: var(--font-display); font-weight: 700; color: var(--bone); }
.quote__meta { display: block; font-size: var(--t-sm); color: var(--on-dark-soft); margin-top: 0.2rem; }

/* ---------- 12. Service area ---------- */
.area__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem,5vw,5.5rem); align-items: center; }
.area h2 { font-size: var(--t-3xl); }
.area h2 .ser { color: var(--bronze-deep); }
.area__list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: clamp(2.5rem, 4vw, 3.75rem); padding-top: clamp(2rem, 3vw, 2.75rem); border-top: 1px solid var(--line-light); }
.area__list li { font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.02em; color: var(--ink-soft); display: inline-flex; align-items: center; }
.area__list li:not(:last-child)::after { content: "·"; margin: 0 0.9rem; color: var(--bronze); }
.area__map { background: var(--espresso); border-radius: 8px; padding: 0; overflow: hidden; }
#dfwMap { width: 100%; aspect-ratio: 1.08; min-height: 320px; background: var(--espresso); }
#dfwMap .leaflet-container { background: var(--espresso); font-family: var(--font-body); }
/* warm the CARTO dark basemap toward our espresso/brass palette */
#dfwMap .leaflet-tile-pane { filter: brightness(1.1) sepia(0.55) saturate(1.3) hue-rotate(-12deg); }
.leaflet-control-attribution { background: rgba(17,14,12,0.55) !important; color: var(--on-dark-soft) !important; font-size: 9px !important; padding: 1px 5px !important; }
.leaflet-control-attribution a { color: var(--bronze-light) !important; }
/* custom city pins */
.mpin { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-family: var(--font-display); font-weight: 500; font-size: 12px; letter-spacing: 0.02em; color: var(--on-dark); text-shadow: 0 1px 4px rgba(0,0,0,0.7); }
.mpin__dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(236,230,218,0.92); flex: none; box-shadow: 0 0 0 1px rgba(17,14,12,0.55); }
.mpin--hub { color: var(--bone); font-weight: 700; font-size: 13.5px; }
.mpin--hub .mpin__dot { width: 12px; height: 12px; background: var(--bronze); box-shadow: 0 0 0 4px rgba(176,137,78,0.3), 0 0 0 1px rgba(17,14,12,0.5); }

/* ---------- 13. FAQ ---------- */
.faq { max-width: 980px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line-light); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.6rem 0; font-family: var(--font-head); font-weight: 400; font-size: var(--t-xl); letter-spacing: -0.01em; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--bronze-deep); }
.faq__icon { flex: none; width: 26px; height: 26px; position: relative; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: var(--bronze-deep); }
.faq__icon::before { width: 13px; height: 1.5px; }
.faq__icon::after { width: 1.5px; height: 13px; transition: transform 0.4s var(--ease); }
.faq__item[open] .faq__icon::after { transform: translate(-50%,-50%) scaleY(0); }
.faq__a { overflow: hidden; }
.faq__a p { padding-bottom: 1.6rem; color: var(--ink-soft); max-width: 72ch; }

/* ---------- 14. CTA ---------- */
.cta { position: relative; isolation: isolate; color: var(--bone); text-align: center; overflow: hidden; }
.cta__media { position: absolute; inset: 0; z-index: -2; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(17,14,12,0.80) 0%, rgba(17,14,12,0.85) 55%, rgba(17,14,12,0.95) 84%, var(--espresso-deep) 100%); }
.cta .container { padding-block: clamp(5rem, 9vw, 8rem); }
.cta h2 { font-size: var(--t-4xl); color: var(--white); max-width: 16ch; margin-inline: auto; }
.cta h2 .ser { color: var(--bronze-light); }
.cta p { margin: 1.4rem auto 2.4rem; color: rgba(236,230,218,0.85); font-size: var(--t-lg); max-width: 50ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------- 15. Footer ---------- */
.site-footer { background: var(--espresso-deep); color: var(--on-dark-soft); padding-top: var(--section); }
.footer__top { display: grid; grid-template-columns: 1.7fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3.5rem; }
.footer__brand img { height: 46px; margin-bottom: 1.3rem; }
.footer__brand p { max-width: 34ch; font-size: var(--t-sm); }
.footer__verse { margin-top: 1.4rem; font-family: var(--font-serif); font-style: normal; font-size: var(--t-base); color: var(--bronze-light); }
.site-footer h3 { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone); font-weight: 600; font-stretch: 104%; margin-bottom: 1.2rem; }
.site-footer ul { display: grid; gap: 0.7rem; }
.site-footer a { font-size: var(--t-sm); transition: color 0.3s; }
.site-footer a:hover { color: var(--bronze-light); }
.footer__contact li { display: flex; gap: 0.7rem; font-size: var(--t-sm); margin-bottom: 0.75rem; }
.footer__contact svg { width: 1rem; height: 1rem; color: var(--bronze); flex: none; margin-top: 3px; }
.footer__bar { border-top: 1px solid var(--line-dark); padding-block: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between; font-size: 0.74rem; }
.footer__attr { font-size: 0.64rem; color: rgba(168,158,144,0.55); padding-bottom: 1.4rem; margin-top: -0.4rem; }
.footer__attr a { font-size: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer__attr a:hover { color: var(--bronze-light); }
.footer__credit a { font-size: inherit; font-family: inherit; color: inherit; }
.footer__credit a:hover { color: var(--bronze-light); }

/* ---------- 16. Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay: .1s; } .reveal[data-d="2"]{ transition-delay: .2s; } .reveal[data-d="3"]{ transition-delay: .3s; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; } }

/* ---------- 17. Responsive ---------- */
@media (max-width: 1024px) {
  .ethos__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .quotes__grid { grid-template-columns: 1fr; max-width: 600px; margin-inline: auto; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .people { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
  .people__body { display: contents; }
  .people__body > .label { order: 0; }
  .people__body > h2 { order: 1; margin-top: 0 !important; }
  .people__body > p, .people__body > .people__sign, .people__body > .tlink { order: 3; }
  /* Polaroids + badge lead the section on mobile, above the eyebrow/heading/body */
  .people__media { order: -1; width: 100%; max-width: none; margin: 0 0 2.25rem; }
  .polaroids { margin: 0 auto; }
  .area__grid { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) { .hero__content { max-width: 78%; } }
@media (max-width: 860px) {
  .hero__content { max-width: 100%; }
  .nav, .header__contact { display: none; }
  .nav-toggle { display: flex; }
  .header__inner { grid-template-columns: 1fr auto; }
  .header__right { display: none; }
  .hero__scroll { display: none; }
  .brand, .nav-toggle { position: relative; z-index: 2; }
  /* full-page mobile menu */
  .nav.open { display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 0; position: fixed; top: 0; left: 0; width: 100vw; height: 100dvh; z-index: 1; background: var(--espresso-deep); padding: 88px var(--gutter) calc(104px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; animation: menuOverlayIn 0.4s var(--ease) both; }
  .nav.open a:not(.nav__cta) { color: var(--bone); font-family: var(--font-head); font-weight: 400; font-size: clamp(2.6rem, 14vw, 4.1rem); line-height: 1.05; letter-spacing: -0.02em; text-transform: none; padding-block: 0.5rem; border-bottom: 1px solid var(--line-dark); opacity: 0; animation: menuLinkIn 0.6s var(--ease) forwards; }
  .nav.open a:not(.nav__cta)::after { display: none; }
  .nav.open a:nth-child(1) { animation-delay: 0.13s; }
  .nav.open a:nth-child(2) { animation-delay: 0.20s; }
  .nav.open a:nth-child(3) { animation-delay: 0.27s; }
  .nav.open a:nth-child(4) { animation-delay: 0.34s; }
  .nav.open .nav__cta { display: none; }
  /* sticky mobile CTA bar — stays above the open menu */
  .mobile-cta { display: flex; align-items: center; gap: 0.6rem; position: fixed; inset: auto 0 0 0; z-index: 40; padding: 0.65rem var(--gutter); padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px)); background: rgba(17,14,12,0.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line-dark); }
  body:has(.nav.open) .mobile-cta { animation: menuBarIn 0.5s var(--ease) 0.38s both; }
  .mobile-cta .btn { height: 52px; padding-block: 0; }
  .mobile-cta__call { flex: none; width: 56px; padding-inline: 0; }
  .mobile-cta__call svg { width: 20px; height: 20px; }
  .mobile-cta__project { flex: 1; }
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  /* work grid simplifies */
  .work__grid { grid-template-columns: repeat(6, 1fr); }
  .col-7,.col-5,.col-6,.col-8,.col-4 { grid-column: span 6; }
  .ethos__stats { grid-template-columns: 1fr 1fr; gap: 0; }
  .stat { border-bottom: 1px solid var(--line-light); padding: 1.5rem 1.25rem 1.5rem 1.5rem; }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(2){ border-right: 0; }
  .quotes__grid { gap: 3.25rem; }
}
@keyframes menuOverlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes menuLinkIn { from { opacity: 0; transform: translateX(-48px); } to { opacity: 1; transform: translateX(0); } }
@keyframes menuBarIn { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .nav.open, .nav.open a:not(.nav__cta), body:has(.nav.open) .mobile-cta { animation: none; opacity: 1; transform: none; }
}
@media (max-width: 560px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__svcs { text-align: left; }
  .hero__svcs li { white-space: normal; }
  .footer__top { grid-template-columns: 1fr; }
}

/* ===== 18. Page hero (inner-page banner) ===== */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--espresso); color: var(--on-dark); padding-top: clamp(140px, 16vh, 210px); padding-bottom: clamp(2.6rem, 6vw, 5rem); }
.page-hero--media .page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero--media .page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--media .page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(17,14,12,0.9) 28%, rgba(17,14,12,0.55)); }
.page-hero .label { color: var(--bronze-light); }
.page-hero h1 { font-size: var(--t-4xl); color: var(--bone); margin-top: 1.3rem; }
.page-hero h1 .ser { color: var(--bronze-light); }
.page-hero__sub { margin-top: 1.4rem; font-size: var(--t-lg); color: var(--on-dark-soft); max-width: 58ch; }

/* ===== 19. Forms ===== */
.contact { display: grid; grid-template-columns: 1.4fr 0.85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact__info ul { list-style: none; }
.contact__info li { display: flex; align-items: flex-start; gap: 0.8rem; margin-bottom: 1.1rem; color: var(--ink-soft); }
.contact__info svg { width: 20px; height: 20px; color: var(--bronze-deep); flex: none; margin-top: 3px; }
.contact__info a { color: var(--ink-soft); }
.contact__info a:hover { color: var(--bronze-deep); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); }
.form__field { display: flex; flex-direction: column; margin-bottom: 1.25rem; }
.form__label { font-family: var(--font-display); font-weight: 600; font-size: var(--t-sm); letter-spacing: 0.04em; color: var(--ink); margin-bottom: 0.5rem; }
.form__input, .form__select, .form__textarea { font-family: var(--font-body); font-size: var(--t-base); color: var(--ink); background: var(--white); border: 1px solid var(--line-light); border-radius: 4px; padding: 0.85rem 1rem; width: 100%; transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.form__textarea { resize: vertical; min-height: 150px; }
.form__select { -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 2.9rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23847a6d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.2rem center; }
.form__input:focus, .form__select:focus, .form__textarea:focus { outline: none; border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(176,137,78,0.18); }
.form__input::placeholder, .form__textarea::placeholder { color: var(--muted); }
.form__status { margin-top: 1rem; font-size: var(--t-base); min-height: 1.3em; }
.form__status.is-ok { color: var(--bronze-ink); font-weight: 600; }
.form__status.is-err { color: #9a3b2e; font-weight: 600; }
.form-success { text-align: center; padding: clamp(2rem, 5vw, 3.5rem) 1rem; }
.form-success__icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1.6rem; border-radius: 50%; background: var(--bronze); color: var(--espresso-deep); }
.form-success__icon svg { width: 30px; height: 30px; }
.form-success h3 { font-family: var(--font-head); font-size: var(--t-2xl); }
.form-success p { margin-top: 0.8rem; color: var(--ink-soft); max-width: 46ch; margin-inline: auto; }
.form-success .btn { margin-top: 1.8rem; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* ===== 20. Work gallery (masonry + filter) ===== */
.work-filter { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: clamp(2rem, 3vw, 3rem); }
.wf-btn { font-family: var(--font-display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); background: transparent; border: 1px solid var(--line-light); border-radius: 999px; padding: 0.6rem 1.2rem; cursor: pointer; transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease); }
.wf-btn:hover { color: var(--bronze-deep); border-color: var(--bronze); }
.wf-btn.is-active { background: var(--espresso); color: var(--bone); border-color: var(--espresso); }
.work-grid { columns: 3 320px; column-gap: clamp(1rem, 2vw, 1.5rem); }
@media (max-width: 900px) { .work-grid { columns: 2 240px; } }
@media (max-width: 560px) { .work-grid { columns: 1; } }
.work-item { display: block; width: 100%; padding: 0; margin: 0 0 clamp(1rem, 2vw, 1.5rem); border: 0; background: var(--espresso-panel); break-inside: avoid; -webkit-column-break-inside: avoid; overflow: hidden; border-radius: 8px; position: relative; cursor: zoom-in; font: inherit; color: inherit; text-align: left; -webkit-appearance: none; appearance: none; }
.work-item[hidden] { display: none; }
.work-item img { width: 100%; height: auto; display: block; transition: transform 0.9s var(--ease); }
.work-item:hover img { transform: scale(1.045); }
.work-item:focus, .work-item:focus-visible { outline: none; }
.work-item::after { content: ""; position: absolute; inset: auto 0 0 0; height: 48%; pointer-events: none; background: linear-gradient(to top, rgba(17,14,12,0.78), transparent); opacity: 0; transition: opacity 0.4s var(--ease); }
.work-item:hover::after { opacity: 1; }
.work-item__cap { position: absolute; left: 1.1rem; bottom: 1rem; z-index: 2; color: var(--bone); font-family: var(--font-head); font-size: var(--t-lg); opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.work-item:hover .work-item__cap { opacity: 1; transform: translateY(0); }
.work-item__zoom { position: absolute; top: 1rem; right: 1rem; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(17,14,12,0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); border: 1px solid rgba(236,230,218,0.32); color: var(--bone); opacity: 0; transform: translateY(-6px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease); }
.work-item__zoom svg { width: 17px; height: 17px; }
.work-item:hover .work-item__zoom { opacity: 1; transform: translateY(0); background: var(--bronze); color: var(--espresso-deep); border-color: var(--bronze); }
.work-empty { display: none; border: 1px dashed var(--line-light); border-radius: 8px; padding: clamp(2rem, 5vw, 3.5rem); text-align: center; color: var(--ink-soft); }
.work-empty.is-shown { display: block; }
.work-empty h3 { font-family: var(--font-head); font-size: var(--t-xl); color: var(--ink); }
.work-empty p { margin-top: 0.7rem; max-width: 46ch; margin-inline: auto; }
.work-empty .btn { margin-top: 1.5rem; }

/* ===== 21. About (bio + values) ===== */
.bio { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.bio + .bio { margin-top: clamp(3rem, 7vw, 6rem); }
.bio--reverse { grid-template-columns: 1.18fr 0.82fr; }
.bio--reverse .bio__media { order: 2; }
.bio__media { position: relative; }
.bio__media img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; border-radius: 8px; background: var(--espresso-panel); }
.bio__role { color: var(--bronze-ink); }
.bio h2 { font-size: var(--t-2xl); margin-top: 1.3rem; }
.bio h2 .ser { color: var(--bronze-deep); }
.bio__body p { margin-top: 1.1rem; color: var(--ink-soft); }
.bio__sign { margin-top: 1.4rem; font-family: var(--font-head); font-size: var(--t-lg); color: var(--ink); }
.bio__draft { display: inline-block; margin-top: 1rem; font-size: var(--t-sm); color: var(--muted); font-style: italic; }
@media (max-width: 860px) { .bio, .bio--reverse { grid-template-columns: 1fr; } .bio--reverse .bio__media { order: 0; } }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.75rem); }
.value-card { padding: clamp(1.6rem, 2.5vw, 2.1rem); border-radius: 10px; background: var(--espresso-panel); }
.value-card h3 { font-family: var(--font-head); font-size: var(--t-xl); }
.value-card p { margin-top: 0.7rem; opacity: 0.85; font-size: var(--t-base); }
.value-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--espresso-deep); color: var(--bronze-light); margin-bottom: 1.2rem; }
.value-card__icon svg { width: 22px; height: 22px; }
/* Stat tiles on any dark section (not just .ethos) */
.dark .stat__n { color: var(--bone); }
.dark .stat__l { color: var(--on-dark-soft); }
.dark .ethos__stats { border-top-color: var(--line-dark); }
.dark .stat { border-right-color: var(--line-dark); border-bottom-color: var(--line-dark); }
@media (max-width: 900px) { .values-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .values-grid { grid-template-columns: 1fr; } }

/* ===== 22. 404 ===== */
.err404 { background: var(--espresso-deep); color: var(--on-dark); min-height: 100svh; display: flex; align-items: center; text-align: center; padding-block: clamp(140px, 18vh, 220px) clamp(4rem, 8vw, 7rem); }
.err404 .container { display: flex; flex-direction: column; align-items: center; gap: 1.3rem; }
.err404__logo { height: 42px; width: auto; }
.err404__code { font-family: var(--font-head); font-size: clamp(5rem, 18vw, 12rem); line-height: 0.85; color: var(--bronze-light); }
.err404__title { color: var(--bone); font-size: var(--t-3xl); }
.err404__sub { color: var(--on-dark-soft); max-width: 46ch; }
.err404 .btn { margin-top: 0.8rem; }

/* ===== 23. Brand guide ===== */
.brand-section + .brand-section { margin-top: clamp(3rem, 6vw, 5rem); }
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.swatch { border: 1px solid var(--line-light); border-radius: 8px; overflow: hidden; }
.swatch__chip { height: 96px; }
.swatch__meta { padding: 0.75rem 0.9rem; }
.swatch__name { font-weight: 700; display: block; font-size: var(--t-sm); }
.swatch__hex { color: var(--muted); font-size: var(--t-sm); font-variant-numeric: tabular-nums; text-transform: uppercase; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; margin-top: 1.6rem; }
.logo-cell { display: grid; place-items: center; aspect-ratio: 16/10; border-radius: 8px; padding: 1.75rem; }
.logo-cell img { max-width: 78%; max-height: 64%; }
.logo-cell--dark { background: var(--espresso); }
.logo-cell--bone { background: var(--bone-2); }
.logo-cell--brass { background: var(--espresso-panel); }
.logo-cell__cap { /* caption below cell */ }
.type-spec { border-top: 1px solid var(--line-light); padding: 1.3rem 0; }
.type-spec__label { font-size: var(--t-sm); color: var(--muted); font-family: var(--font-display); letter-spacing: 0.05em; display: block; margin-bottom: 0.4rem; }
.comp-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.2rem; }
.brand-voice { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.6rem; }
.brand-voice ul { list-style: none; }
.brand-voice li { padding: 0.5rem 0; border-bottom: 1px solid var(--line-light); color: var(--ink-soft); }
@media (max-width: 700px) { .brand-voice { grid-template-columns: 1fr; } }
