/* ======================================================================
   Nihul Consulting - site.css
   ----------------------------------------------------------------------
   Extracted VERBATIM from the approved rebrand spec brand/landing-share.html
   (2026-08-11, chips removed). Everything from ":root" down to the
   prefers-reduced-motion block is the spec's own stylesheet, dedented, with
   only two mechanical changes:
     - @font-face src: data-URI woff2  ->  /fonts/*.woff2 (byte-identical files)
     - two background-image data URIs  ->  /img/rebrand/*.jpg
   The one appended block (CONTACT BAND) is NOT in the spec: the spec's
   #contact anchor lands on the footer's mailto columns, and the live site
   needs a real form posting to /api/contact. It is built only from spec
   primitives (--night ground, hairlines, .btn, Gloock heads).

   All asset paths are ROOT-RELATIVE so any page depth can use this file.

   SECTION MAP
     1  @font-face (Gloock / Geologica / Montserrat)
     2  :root tokens + base/reset
     3  Shared primitives: .hair, .btn variants, reveal helpers (.w-wrap/.vf)
     4  Hero: .hero__field/grain/scrim/inner, .brand, .hero__nav
     5  Service nav: .snav + .snav__panel dropdowns
     6  Services band (ivory): .svc-grid / .svc-card / .svc-panel
     7  Statement band (dark, photo): .statement
     8  How we work (dark): .focus
     9  Editorial / blog rows (paper + texture): .editorial / .row / .filter
     10 Footer: .foot
     11 Responsive: 1180 / 1024 / 820 / 700 / 560  (NO hamburger by design)
     12 prefers-reduced-motion
     13 [APPENDED] Contact band + form
   ====================================================================== */

/* ---------- self-hosted fonts, embedded ---------- */
@font-face {
  font-family: "Gloock";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/gloock-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geologica-var-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/montserrat-800-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;

  /* original site palette */
  --ivory: #f5f1e8;
  --paper: #ece6da;
  /* --paper is Daniel's band colour and does not move. --paper-lift is that same
     colour divided by the paper-texture layer's mean multiply factor (0.97195), so
     the textured #editorial band composites back to exactly #ece6da on average. */
  --paper-lift: #f3ede0;
  --forest: #1b4d3e;
  --forest-deep: #12362d;
  --ink: #1c211f;
  --signal: #a8e05f;

  /* dark cinematic ground */
  --night: #0e1f1a;
  --night-2: #0b1915;

  /* hairlines: one for each ground */
  --hair: rgba(245, 241, 232, 0.22);
  --hair-ink: rgba(28, 33, 31, 0.18);
  --muted: #8a968f;
  --muted-ink: rgba(28, 33, 31, 0.68);

  --display: "Gloock", Georgia, serif;
  --sans: "Geologica", "Segoe UI", sans-serif;
  --pad: 40px;
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 330;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

/* the signal green all but vanishes on the ivory grounds */
.services :focus-visible,
.editorial :focus-visible {
  outline-color: var(--forest-deep);
}

/* ======================================================================
   SHARED PRIMITIVES
   ====================================================================== */
.hair {
  width: 100%;
  height: 1px;
  background: var(--hair);
  transform-origin: center;
}

.hair--left {
  transform-origin: left;
}

.hair--ink {
  background: var(--hair-ink);
}

html.js .hair[data-draw] {
  transform: scaleX(0);
}

html.js .hair[data-draw].is-in {
  transform: scaleX(1);
  transition: transform 0.8s ease-in-out;
}

/* square 2px-radius buttons, deliberately not pills */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 22px;
  border: 0;
  border-radius: 2px;
  background: var(--signal);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    background 0.25s ease,
    transform 0.25s var(--ease-out);
}

.btn:hover {
  background: #b8ea77;
}

.btn--ghost {
  background: transparent;
  color: var(--ivory);
  border: 1px solid var(--hair);
}

.btn--ghost:hover {
  background: rgba(245, 241, 232, 0.06);
}

.btn--forest {
  background: var(--forest-deep);
  color: var(--ivory);
}

.btn--forest:hover {
  background: var(--forest);
}

.btn--outline-ink {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hair-ink);
}

.btn--outline-ink:hover {
  background: rgba(28, 33, 31, 0.05);
}

/* ---------- word-stagger reveal (JS-gated) ---------- */
.w-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.w-inner {
  display: inline-block;
  will-change: transform, opacity;
}

html.js .w-inner {
  transform: translateY(100%);
  opacity: 0;
}

html.js .is-in .w-inner {
  transform: translateY(0);
  opacity: 1;
  transition:
    transform 0.6s var(--ease-out),
    opacity 0.6s var(--ease-out);
}

html.js [data-fade] {
  opacity: 0;
  transform: translateY(22px);
}

html.js [data-fade].is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}

/* variable-weight hover letters (Geologica 100-900) */
.vf {
  display: inline-block;
  transition: font-weight 0.3s ease-out;
}

/* ======================================================================
   HERO (dark, cinematic, motion)
   ====================================================================== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 90vh;
  min-height: 90svh;
  overflow: hidden;
  background: #0b1a16;
}

/* The field: a rendered abstract ground (BOX-A / Ideogram 4, seed 4242,
   brand/abstract-imagery-2026-08-10) with the animated contour canvas drawn
   over it. The old gradient composition is kept UNDER the photograph as
   belt-and-braces: it is what shows if the image data fails to decode, and
   it is what the no-script and reduced-motion paths fall back through. */
.hero__field {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: #0b1a16;
}

/* The photograph lives on its own layer so its exposure can be lifted
   without dragging the contour canvas up with it. Round 3 shipped a
   ground whose left 40% measured mean luminance 0.0020 with 90% of its
   pixels under 0.005: black, with nothing in it to brighten. Round 4
   re-rendered a frame that carries light all the way across, and this
   filter spends some of the contrast headroom the type was sitting on. */
.hero__field::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    url("/img/rebrand/hero-ground.jpg"),
    radial-gradient(74% 60% at 70% 34%, rgba(47, 122, 98, 0.6) 0%, rgba(47, 122, 98, 0) 68%),
    radial-gradient(64% 56% at 24% 58%, rgba(32, 92, 74, 0.55) 0%, rgba(32, 92, 74, 0) 74%),
    radial-gradient(34% 28% at 62% 40%, rgba(168, 224, 95, 0.18) 0%, rgba(168, 224, 95, 0) 74%),
    linear-gradient(168deg, #0d1e19 0%, #143029 46%, #0b1a16 100%);
  background-repeat: no-repeat;
  background-position: 62% 30%, center, center, center, center;
  background-size: cover, auto, auto, auto, auto;
  filter: brightness(1.42) contrast(1.06) saturate(1.08);
}

/* the contours stay clear of the header row and off the headline, so
   the type never has to fight the animation for legibility */
.hero__field canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  /* the contours sit over a photographic ground, so they carry less of the
     frame than they did as the whole subject, but round 3 held them so far
     back that the layer stopped reading at all on a dim screen */
  opacity: 0.66;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.42) 8%,
    #000 20%,
    #000 62%,
    rgba(0, 0, 0, 0.34) 80%,
    rgba(0, 0, 0, 0) 92%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.42) 8%,
    #000 20%,
    #000 62%,
    rgba(0, 0, 0, 0.34) 80%,
    rgba(0, 0, 0, 0) 92%
  );
}

/* a little tooth over the gradients, so nothing bands */
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* The scrim now works as two pads rather than one blanket: it holds the
     header/service-nav strip and the headline block, and gets out of the
     way through the middle, which is the part of the frame the imagery is
     actually for. */
  background:
    linear-gradient(
      to bottom,
      rgba(8, 18, 15, 0.66) 0px,
      rgba(8, 18, 15, 0.58) 132px,
      rgba(8, 18, 15, 0.12) 34%,
      rgba(8, 18, 15, 0.18) 58%,
      rgba(8, 18, 15, 0.62) 84%,
      rgba(14, 31, 26, 0.92) 95%,
      var(--night) 100%
    ),
    linear-gradient(
      to right,
      rgba(8, 18, 15, 0.44) 0%,
      rgba(8, 18, 15, 0.3) 18%,
      rgba(8, 18, 15, 0) 44%
    ),
    linear-gradient(
      to left,
      rgba(8, 18, 15, 0.4) 0%,
      rgba(8, 18, 15, 0.26) 18%,
      rgba(8, 18, 15, 0) 44%
    );
}

.hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 90vh;
  min-height: 90svh;
}

.hero__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px var(--pad) 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  overflow: visible;
  flex: none;
}

.brand-mark path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark__n {
  stroke: var(--ivory);
  stroke-width: 3.4;
}

.brand-mark__c {
  stroke: var(--signal);
  stroke-width: 3.8;
}

.brand-copy {
  display: grid;
  line-height: 0.95;
}

.brand-copy strong {
  font-family: "Montserrat", var(--sans);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.brand-copy span {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.34em;
  color: rgba(245, 241, 232, 0.88);
}

/* SECONDARY nav: the sections of this page. The services moved out to
   their own line below the rule and took the primary role with them. */
.hero__nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__nav a {
  position: relative;
  padding-bottom: 3px;
  color: rgba(245, 241, 232, 0.7);
  transition: color 0.25s ease;
}

.hero__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.hero__nav a:hover {
  color: var(--ivory);
}

.hero__nav a:hover::after {
  transform: scaleX(1);
}

/* ==================================================================
   SERVICE NAV: the primary line. One centred row directly under the
   header rule; every item is a real link to its service page AND the
   trigger for a panel of real destinations.
   ================================================================== */
.snav {
  position: relative;
  z-index: 20;
  padding: 15px var(--pad) 16px;
}

.snav__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.snav__item {
  position: relative;
  flex: none;
}

.snav__sep {
  flex: none;
  padding: 0 clamp(10px, 1.5vw, 22px);
  font-size: clamp(11px, 0.9vw, 13px);
  line-height: 1;
  color: rgba(245, 241, 232, 0.38);
  user-select: none;
}

.snav__link {
  position: relative;
  display: block;
  padding: 6px 2px;
  font-size: clamp(12px, 1.02vw, 15px);
  font-weight: 500;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  text-transform: uppercase;
  color: var(--ivory);
  transition: color 0.25s ease;
}

.snav__link::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 1px;
  height: 1px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.snav__item:hover .snav__link::after,
.snav__link[aria-expanded="true"]::after {
  transform: scaleX(1);
}

/* the caret only exists once JS can actually open something */
.snav__caret {
  display: none;
  margin-left: 0.5em;
  font-size: 0.62em;
  line-height: 1;
  vertical-align: middle;
  color: rgba(245, 241, 232, 0.55);
  transition: transform 0.25s var(--ease-out), color 0.25s ease;
}

html.js .snav__caret {
  display: inline-block;
}

.snav__link[aria-expanded="true"] .snav__caret {
  transform: rotate(180deg);
  color: var(--signal);
}

/* ---- the panel ---- */
.snav__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  z-index: 30;
  display: grid;
  width: max-content;
  min-width: 260px;
  max-width: min(420px, calc(100vw - var(--pad) * 2));
  padding: 8px;
  border: 1px solid rgba(245, 241, 232, 0.2);
  border-radius: 2px;
  background: rgba(11, 25, 21, 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 22px 60px rgba(4, 12, 10, 0.6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s var(--ease-out), transform 0.24s var(--ease-out),
    visibility 0s linear 0.24s;
}

/* no-JS: the panels must not sit on the page as dead stubs */
html:not(.js) .snav__panel {
  display: none;
}

.snav__item.is-open .snav__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}

/* the first and last items would hang off the page edge if centred */
.snav__item:first-child .snav__panel {
  left: 0;
  transform: translateX(0) translateY(-6px);
}

.snav__item:first-child.is-open .snav__panel {
  transform: translateX(0) translateY(0);
}

.snav__item:last-child .snav__panel {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(-6px);
}

.snav__item:last-child.is-open .snav__panel {
  transform: translateX(0) translateY(0);
}

.snav__panel a {
  display: block;
  padding: 9px 12px;
  border-radius: 2px;
  font-size: 13.5px;
  font-weight: 330;
  line-height: 1.45;
  letter-spacing: 0;
  text-indent: 0;
  text-transform: none;
  white-space: normal;
  color: rgba(245, 241, 232, 0.82);
  transition: background 0.2s ease, color 0.2s ease;
}

.snav__panel a:hover,
.snav__panel a:focus-visible {
  background: rgba(245, 241, 232, 0.08);
  color: var(--ivory);
}

.snav__panel a.snav__lead {
  font-weight: 500;
  color: var(--ivory);
}

.snav__panel hr {
  height: 1px;
  margin: 6px 12px;
  border: 0;
  background: rgba(245, 241, 232, 0.14);
}

.hero__headrule {
  margin: 0 var(--pad);
  width: calc(100% - var(--pad) * 2);
}

/* The service line used to live here as a two-line eyebrow. It is now the
   nav row above, and this band is open ground: the part of the frame the
   imagery is for. It stays a flexible spacer so the headline holds the
   bottom of the composition. */
.hero__mid {
  flex: 1 1 auto;
  min-height: 8vh;
}

.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding: 0 var(--pad) 30px;
}

.hero__title {
  margin: 0;
  max-width: 15ch;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 7.4vw, 110px);
  line-height: 0.98;
  letter-spacing: -0.015em;
}

.hero__lede {
  margin: 0 0 8px;
  width: 380px;
  max-width: 100%;
  flex: none;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(245, 241, 232, 0.88);
}

.hero__footrule {
  margin: 0 var(--pad);
  width: calc(100% - var(--pad) * 2);
}

.hero__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px var(--pad) 24px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.62);
}

/* ======================================================================
   BAND 01: SERVICES (IVORY) - original photo cards + frosted panels
   ====================================================================== */
.services {
  position: relative;
  z-index: 4;
  padding: 144px var(--pad) 120px;
  color: var(--ink);
  background: var(--ivory);
}

.services__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.services__title {
  margin: 0;
  max-width: 17ch;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--forest-deep);
}

.services__intro {
  margin: 0 0 8px;
  width: 400px;
  max-width: 100%;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted-ink);
}

.services__rule {
  margin-bottom: 44px;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 26px;
}

.svc-card {
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 540px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--forest-deep);
}

/* five cards: centre the two-card second row, same as the live site */
.svc-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.svc-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}

.svc-card:hover img {
  transform: scale(1.045);
}

.svc-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(18, 54, 45, 0.06) 38%, rgba(18, 54, 45, 0.34) 100%);
}

/* the floating frosted panel from the live site, squared off */
/* deliberately NOT position:relative and NOT backdrop-filter: either one would
   become the containing block for the stretched card link below and clip it to
   the panel. z-index still applies because the panel is a flex item, and the
   panel background is 93-95% opaque so the blur was doing nothing visible. */
.svc-panel {
  z-index: 2;
  display: grid;
  gap: 12px;
  margin: 16px;
  padding: 26px 24px 22px;
  color: var(--ink);
  background: rgba(250, 248, 243, 0.95);
  border-radius: 2px;
}

.svc-panel--mint {
  background: rgba(221, 240, 210, 0.95);
}

.svc-panel--dark {
  color: var(--ivory);
  background: rgba(18, 54, 45, 0.93);
}

.svc-panel h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(22px, 1.85vw, 29px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

.svc-panel > p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(28, 33, 31, 0.68);
}

.svc-panel--dark > p {
  color: rgba(245, 241, 232, 0.68);
}

.svc-panel a {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(28, 33, 31, 0.18);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* stretched link: the whole card is the click target, one anchor, same
   accessible name, no markup change. Containing block is .svc-card. */
.svc-panel a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.svc-panel--dark a {
  border-top-color: rgba(245, 241, 232, 0.25);
}

.svc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 48px;
}

/* ======================================================================
   BAND: STATEMENT (dark) - gradient Geologica line, hover-weight letters
   ====================================================================== */
.statement {
  position: relative;
  z-index: 4;
  overflow: hidden;
  padding: 126px var(--pad) 108px;
  background: var(--night);
}

.statement__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* the rendered convergence plate (BOX-A / Ideogram 4, seed 4242). Opened up
   from the corridor photo's treatment so the structure actually reads, while
   the band still sits as a dark band under the type. */
.statement__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  filter: brightness(0.82) saturate(1.04) contrast(1.02);
}

.statement__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 31, 26, 0.5) 0%, rgba(11, 25, 21, 0.72) 100%),
    linear-gradient(
      90deg,
      rgba(11, 25, 21, 0.72) 0%,
      rgba(11, 25, 21, 0.3) 56%,
      rgba(11, 25, 21, 0.42) 100%
    );
}

.statement__line {
  margin: 0;
  max-width: 21ch;
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(30px, 4.4vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
}

/* the gradient rides on each letter so it survives the word/letter split */
.statement__line .vf,
.statement__line .w-inner {
  background: linear-gradient(to bottom, var(--ivory) 0%, rgba(245, 241, 232, 0.42) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.statement__line,
.statement__sub {
  position: relative;
  z-index: 1;
}

.statement__sub {
  margin: 46px 0 0 auto;
  max-width: 540px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

/* ======================================================================
   BAND 02: HOW WE WORK (dark) - editorial list treatment
   ====================================================================== */
.focus {
  position: relative;
  z-index: 4;
  padding: 40px var(--pad) 126px;
  background: var(--night);
}

.focus__title {
  margin: 0 0 24px;
  max-width: 13ch;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.015em;
}

.focus__grid {
  display: grid;
  grid-template-columns: minmax(240px, 3.2fr) 8.8fr;
  gap: 56px 80px;
  align-items: start;
}

.focus__intro {
  margin: 0;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.focus__items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 52px 48px;
  /* drop the column heads below the section title so it reads as a
     title, not a fourth column */
  margin-top: 24px;
}

.focus-item {
  border-top: 1px solid var(--hair);
  padding-top: 10px;
}

.focus-item h3 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(21px, 1.85vw, 28px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.focus-item ul {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.focus-item li {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}

.focus__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 72px;
  padding-top: 26px;
  border-top: 1px solid var(--hair);
}

.focus__foot p {
  margin: 0;
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.focus__foot b {
  color: var(--ivory);
  font-weight: 500;
}

/* ======================================================================
   BAND 03: EDITORIAL BLOG LIST (IVORY) - hairline rows + hover thumbs
   ====================================================================== */
.editorial {
  position: relative;
  z-index: 4;
  padding: 144px var(--pad) 118px;
  color: var(--ink);
  background: var(--paper-lift);
}

/* paper-texture-P-s313: a flat scan of fine ivory laid paper, rendered on box-a.
   It is a material layer, not a colour change. The source is GRAYSCALE, so
   multiply scales R, G and B by the same factor -- a pure luminance modulation
   that leaves the band's hue untouched -- and --paper-lift above cancels the
   mean darkening, so the average tone is still #ece6da. z-index -1 paints it
   above the band's own background but beneath every child, which keeps the row
   hairlines, the hover thumbnails and all text unblended and crisp. */
.editorial::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("/img/rebrand/paper-texture.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.13;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.editorial__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.editorial__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  max-width: 16ch;
  color: var(--forest-deep);
}

/* no script, no filtering: the row is hidden and every post shows */
.editorial__filters {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html.js .editorial__filters {
  display: flex;
}

.filter {
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: none;
  color: rgba(28, 33, 31, 0.66);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.filter:hover {
  color: var(--forest-deep);
  border-bottom-color: rgba(18, 54, 45, 0.45);
}

.filter.is-active {
  color: var(--forest-deep);
  font-weight: 650;
  border-bottom-color: var(--forest-deep);
}

.editorial__rows {
  display: flex;
  flex-direction: column;
}

.row {
  position: relative;
  display: block;
}

.row[hidden] {
  display: none;
}

html.js .row {
  transition: opacity 0.26s var(--ease-out);
}

html.js .row.is-out {
  opacity: 0;
}

.row:hover {
  z-index: 6;
}

.row__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 24px var(--pad) 22px;
  margin: 0 calc(var(--pad) * -1);
  transition: background 0.25s ease;
}

.row__link:hover {
  background: rgba(28, 33, 31, 0.045);
}

.row__title {
  position: relative;
  z-index: 2;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.35;
  color: rgba(28, 33, 31, 0.68);
  transition: color 0.25s ease;
}

.row__link:hover .row__title {
  color: var(--forest-deep);
}

/* the post's real hero image, revealed beside the row on hover */
.row__thumb {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 96px;
  width: 232px;
  height: 132px;
  overflow: hidden;
  border-radius: 2px;
  opacity: 0;
  transform: translateY(-50%) translateY(10px) scale(0.96);
  transition:
    opacity 0.42s var(--ease-out),
    transform 0.42s var(--ease-out);
  pointer-events: none;
  box-shadow: 0 18px 40px rgba(18, 54, 45, 0.24);
}

.row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.row__link:hover .row__thumb {
  opacity: 1;
  transform: translateY(-50%) translateY(0) scale(1);
}

/* ======================================================================
   FOOTER (dark)
   ====================================================================== */
.foot {
  position: relative;
  z-index: 4;
  padding: 56px var(--pad) 78px;
  background: var(--night);
}

.foot__rule {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.foot__grid {
  display: grid;
  grid-template-columns: 6fr 2fr 2fr;
  gap: 40px;
  max-width: 1728px;
  margin: 0 auto;
}

.foot__left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}

.foot__services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.55);
}

.foot__services a {
  transition: color 0.25s ease;
}

.foot__services a:hover {
  color: var(--signal);
}

.foot__copy {
  font-size: 13px;
  color: rgba(245, 241, 232, 0.6);
}

.foot__col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid var(--hair);
  padding-left: 32px;
}

/* Geologica, so the hover-weight trick has a home down here too */
.foot__col h2 {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-weight: 250;
  font-size: clamp(26px, 2.3vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
}

.foot__col p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.foot__col a.foot__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 56px;
  font-size: 17px;
  transition: opacity 0.25s ease;
}

.foot__col a.foot__cta:hover {
  opacity: 0.75;
}

/* ======================================================================
   RESPONSIVE
   ====================================================================== */
@media (max-width: 1180px) {
  .svc-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .svc-card,
  .svc-card:nth-child(4) {
    grid-column: span 2;
  }

  .svc-card:nth-child(5) {
    grid-column: 2 / span 2;
  }
}

@media (max-width: 1024px) {
  .focus__grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .focus__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 8px;
  }

  /* hover thumbnails are a pointer affordance; drop them on touch widths */
  .row__thumb {
    display: none;
  }
}

@media (max-width: 820px) {
  :root {
    --pad: 22px;
  }

  /* No hamburger. The header keeps brand + CTA on one line; the service
     line owns the row below the rule, and the section links follow it as
     a quieter third row. */
  .hero__header {
    flex-wrap: wrap;
    gap: 14px;
    padding: 20px var(--pad) 12px;
  }

  /* the section links take the whole width below the brand row, so the
     lockup and the button keep a line to themselves */
  .hero__nav {
    order: 4;
    width: 100%;
    justify-content: center;
    gap: 26px;
    margin-left: 0;
    margin-top: 2px;
    padding: 12px 0 0;
    border-top: 1px solid var(--hair);
    font-size: 9.5px;
    letter-spacing: 0.13em;
  }

  /* small caps over a photograph: buy back the contrast the size costs */
  .hero__nav a {
    color: rgba(245, 241, 232, 0.9);
  }

  /* The service line stays ONE row at every width. It shrinks first; if a
     viewport genuinely cannot seat it, the row itself scrolls rather than
     wrapping or pushing the page sideways. */
  .snav {
    padding: 12px 0 4px;
  }

  .snav__row {
    justify-content: flex-start;
    padding: 0 var(--pad);
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .snav__row::-webkit-scrollbar {
    display: none;
  }

  /* only fades when there is genuinely something out of view */
  .snav__row.is-scrollable {
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0,
      #000 18px,
      #000 calc(100% - 18px),
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0,
      #000 18px,
      #000 calc(100% - 18px),
      transparent 100%
    );
  }

  .snav__item {
    scroll-snap-align: center;
  }

  .snav__link {
    font-size: 10.5px;
    letter-spacing: 0.15em;
    text-indent: 0.15em;
  }

  .snav__sep {
    padding: 0 9px;
    font-size: 10px;
  }

  /* an overflow-scrolled row cannot host an absolutely positioned panel,
     so on touch widths the panel is fixed to the viewport instead */
  .snav__panel {
    position: fixed;
    top: auto;
    left: var(--pad);
    right: var(--pad);
    width: auto;
    min-width: 0;
    max-width: none;
    transform: translateY(-6px);
  }

  .snav__item.is-open .snav__panel,
  .snav__item:first-child.is-open .snav__panel,
  .snav__item:last-child.is-open .snav__panel {
    transform: translateY(0);
  }

  .snav__item:first-child .snav__panel,
  .snav__item:last-child .snav__panel {
    left: var(--pad);
    right: var(--pad);
    transform: translateY(-6px);
  }

  /* the sideways scrim eats a narrow viewport whole, so drop it and
     lean on the vertical one only - the mid band stays light enough
     that the photograph still reads */
  .hero__scrim {
    background: linear-gradient(
      to bottom,
      rgba(8, 18, 15, 0.62) 0px,
      rgba(8, 18, 15, 0.56) 176px,
      rgba(8, 18, 15, 0.08) 38%,
      rgba(8, 18, 15, 0.2) 60%,
      rgba(8, 18, 15, 0.64) 84%,
      rgba(14, 31, 26, 0.92) 95%,
      var(--night) 100%
    );
  }

  .hero__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .hero__title {
    max-width: none;
    font-size: clamp(34px, 9vw, 60px);
  }

  .hero__lede {
    width: 100%;
    max-width: 520px;
  }

  .services {
    padding: 84px var(--pad) 88px;
  }

  .services__intro {
    width: 100%;
  }

  .svc-card {
    min-height: 470px;
  }

  .statement {
    padding: 88px var(--pad) 74px;
  }

  .statement__line {
    max-width: none;
  }

  .statement__sub {
    margin-left: 0;
  }

  .focus {
    padding-bottom: 88px;
  }

  .focus__items {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .focus__foot {
    margin-top: 52px;
  }

  .editorial {
    padding: 84px var(--pad) 84px;
  }

  .foot__grid {
    grid-template-columns: 1fr;
  }

  .foot__col {
    border-left: 0;
    border-top: 1px solid var(--hair);
    padding-left: 0;
    padding-top: 26px;
  }

  .foot__col a.foot__cta {
    margin-top: 24px;
  }
}

@media (max-width: 700px) {
  .svc-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .svc-card,
  .svc-card:nth-child(4),
  .svc-card:nth-child(5) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .hero__header {
    padding-top: 18px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .hero__cta {
    gap: 7px;
    padding: 11px 13px;
    font-size: 12px;
    white-space: nowrap;
  }

  .hero__mid {
    min-height: 6vh;
  }

  .snav__link {
    font-size: 9.6px;
    letter-spacing: 0.11em;
    text-indent: 0.11em;
  }

  .snav__sep {
    padding: 0 5px;
    font-size: 9px;
  }

  .hero__meta {
    padding-bottom: 26px;
    font-size: 9.5px;
  }

  .svc-card {
    min-height: 420px;
  }

  .svc-panel {
    margin: 12px;
    padding: 22px 20px 18px;
  }

  .row__link {
    align-items: flex-start;
    padding: 18px var(--pad);
  }

  .editorial {
    padding-bottom: 96px;
  }
}

/* ======================================================================
   REDUCED MOTION: static first frame, nothing moves
   ====================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js .w-inner,
  html.js [data-fade] {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }

  html.js .hair[data-draw] {
    transform: none !important;
    transition: none !important;
  }

  .vf {
    transition: none;
  }

  .svc-card img,
  .row__thumb,
  .hero__nav a::after,
  .snav__link::after,
  .snav__caret,
  .snav__panel a,
  .filter,
  html.js .row {
    transition: none;
  }

  /* the panels still open and close, they just do it instantly */
  .snav__panel {
    transition: none;
  }
}
/* ======================================================================
   [APPENDED - not in the approved spec]
   CONTACT BAND (dark) - the real form, in the spec's own language.
   The spec routes "Contact" to the footer's mailto columns; the live site
   also has to carry the working form that posts to /api/contact.
   ====================================================================== */
.contact {
  position: relative;
  z-index: 4;
  padding: 126px var(--pad) 30px;
  background: var(--night);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(240px, 3.2fr) 8.8fr;
  gap: 56px 80px;
  align-items: start;
}

.contact__title {
  margin: 0 0 24px;
  max-width: 15ch;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.015em;
}

.contact__intro {
  margin: 0;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 22px;
  max-width: 620px;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.7);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--hair);
  border-radius: 0;
  background: transparent;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 330;
  line-height: 1.55;
  transition: border-color 0.25s ease;
}

.field textarea {
  resize: vertical;
  min-height: 132px;
}

.field input:hover,
.field textarea:hover {
  border-bottom-color: rgba(245, 241, 232, 0.4);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--signal);
}

.contact-submit {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 22px;
  border: 0;
  border-radius: 2px;
  background: var(--signal);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    background 0.25s ease,
    opacity 0.25s ease;
}

.contact-submit:hover {
  background: #b8ea77;
}

.contact-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.contact-status {
  margin: 0;
  min-height: 1.4em;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.contact-status.is-success {
  color: var(--signal);
}

.contact-status.is-error {
  color: #e7a08a;
}

.contact-status a {
  text-decoration: underline;
}

.contact-form.is-sent .field,
.contact-form.is-sent .contact-submit {
  display: none;
}

/* honeypot: present for bots, gone for everyone else */
.contact-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.contact__secondary {
  margin: 26px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

.contact__secondary a {
  border-bottom: 1px solid rgba(168, 224, 95, 0.5);
}

.contact__secondary a:hover {
  color: var(--signal);
}

/* screen-reader-only helper, for the skip link */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: var(--pad);
  z-index: 60;
  padding: 12px 18px;
  border-radius: 2px;
  background: var(--signal);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 12px;
}

@media (max-width: 1024px) {
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 820px) {
  .contact {
    padding: 84px var(--pad) 20px;
  }

  .contact__intro {
    max-width: none;
  }

  .contact-form {
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .field input,
  .field textarea,
  .contact-submit,
  .skip-link {
    transition: none;
  }
}
