/* ======================================================================
   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.

   2026-09-02 DEPTH + TYPE PASS (Daniel: "the font seems AI ... maybe add
   some depth"). Display face moved from the Gloock serif to heavy Geologica;
   body weight 330 -> 400; no tracked-uppercase labels; every band sits on a
   wash rather than a flat fill; cards, panels, rows and fields are raised
   with layered shadows from ONE light source (upper left, x offset = y/3),
   tinted with the brand green rather than gray; decorative hairlines gone.

   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 ---------- */
/* Gloock @font-face removed 2026-09-02: the serif display is retired */
@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: "Geologica", "Segoe UI", sans-serif;
  --sans: "Geologica", "Segoe UI", sans-serif;
  --pad: 40px;

  /* depth: one light source, upper left. Shadows are tinted with the brand
     green on light grounds and with the night ground on dark ones. */
  --lift: 1px 3px 6px rgba(18, 54, 45, 0.07), 4px 12px 24px rgba(18, 54, 45, 0.1),
    10px 30px 54px rgba(18, 54, 45, 0.12);
  --lift-hover: 2px 6px 10px rgba(18, 54, 45, 0.09), 8px 22px 40px rgba(18, 54, 45, 0.14),
    16px 48px 80px rgba(18, 54, 45, 0.14);
  --lift-dark: 1px 3px 6px rgba(3, 10, 8, 0.3), 4px 12px 26px rgba(3, 10, 8, 0.42),
    10px 30px 60px rgba(3, 10, 8, 0.38);
  --lift-dark-hover: 2px 6px 10px rgba(3, 10, 8, 0.34), 8px 22px 44px rgba(3, 10, 8, 0.5),
    16px 48px 84px rgba(3, 10, 8, 0.4);
  --card-dark: linear-gradient(160deg, #173a31 0%, #112a23 58%, #0e241e 100%);
  --edge-dark: inset 0 1px 0 rgba(245, 241, 232, 0.07);
  --radius: 4px;
  --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: 400;
  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: var(--radius);
  background: linear-gradient(180deg, #b9ea79 0%, var(--signal) 55%, #9bd551 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    1px 2px 4px rgba(3, 10, 8, 0.22),
    3px 9px 20px rgba(3, 10, 8, 0.28);
  transition:
    background 0.25s ease,
    box-shadow 0.3s var(--ease-out),
    transform 0.3s var(--ease-out);
}

.btn:hover {
  background: linear-gradient(180deg, #c4ef8b 0%, #b8ea77 55%, #a6dd62 100%);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    2px 4px 8px rgba(3, 10, 8, 0.22),
    6px 16px 32px rgba(3, 10, 8, 0.3);
}

.btn:active {
  transform: translateY(0);
}

.btn--ghost {
  background: rgba(245, 241, 232, 0.06);
  color: var(--ivory);
  border: 1px solid rgba(245, 241, 232, 0.22);
  box-shadow: var(--lift-dark);
}

.btn--ghost:hover {
  background: rgba(245, 241, 232, 0.1);
  box-shadow: var(--lift-dark-hover);
}

.btn--forest {
  background: linear-gradient(180deg, #1f5a48 0%, var(--forest-deep) 60%, #0f2e26 100%);
  color: var(--ivory);
  box-shadow:
    inset 0 1px 0 rgba(245, 241, 232, 0.14),
    1px 3px 6px rgba(18, 54, 45, 0.18),
    4px 12px 26px rgba(18, 54, 45, 0.28);
}

.btn--forest:hover {
  background: linear-gradient(180deg, #266a55 0%, var(--forest) 60%, #12362d 100%);
  box-shadow:
    inset 0 1px 0 rgba(245, 241, 232, 0.16),
    2px 5px 10px rgba(18, 54, 45, 0.2),
    8px 20px 40px rgba(18, 54, 45, 0.3);
}

.btn--outline-ink {
  background: linear-gradient(180deg, #fffdf8 0%, #f7f3ea 100%);
  color: var(--ink);
  border: 1px solid rgba(28, 33, 31, 0.14);
  box-shadow: var(--lift);
}

.btn--outline-ink:hover {
  background: #fffdf8;
  box-shadow: var(--lift-hover);
}

/* ---------- 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: 30px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.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(15px, 1.12vw, 17px);
  font-weight: 600;
  letter-spacing: -0.005em;
  text-indent: 0;
  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: var(--radius);
  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: 14px;
  font-weight: 400;
  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) 64px;
}

.hero__title {
  margin: 0;
  max-width: 14ch;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 6.6vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-shadow: 0 2px 24px rgba(4, 12, 10, 0.45);
}

.hero__lede {
  margin: 0 0 8px;
  width: 380px;
  max-width: 100%;
  flex: none;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(245, 241, 232, 0.92);
  text-shadow: 0 1px 12px rgba(4, 12, 10, 0.5);
}

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

/* .hero__meta (the last eyebrow) was removed 2026-09-02 */

/* ======================================================================
   BAND 01: SERVICES (IVORY) - original photo cards + frosted panels
   ====================================================================== */
.services {
  position: relative;
  z-index: 4;
  padding: 132px var(--pad) 120px;
  color: var(--ink);
  background:
    radial-gradient(110% 70% at 6% 0%, #fdfbf6 0%, rgba(253, 251, 246, 0) 58%),
    radial-gradient(80% 60% at 100% 100%, #e4ddcc 0%, rgba(228, 221, 204, 0) 62%),
    linear-gradient(168deg, var(--ivory) 0%, #eee8db 100%);
}

.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: 700;
  font-size: clamp(34px, 4vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  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__head {
  margin-bottom: 48px;
}

.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: var(--radius);
  background: var(--forest-deep);
  box-shadow: var(--lift);
  transition:
    transform 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
}

.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--lift-hover);
}

/* 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: linear-gradient(170deg, #fffdf8 0%, #f7f3ea 100%);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    1px 3px 6px rgba(6, 20, 16, 0.16),
    5px 16px 34px rgba(6, 20, 16, 0.32);
}

/* the mint variant used to rotate through the cards for no reason; the
   panels now share one surface, and only the photo behind them changes */
.svc-panel--mint {
  background: linear-gradient(170deg, #fffdf8 0%, #f7f3ea 100%);
}

.svc-panel--dark {
  color: var(--ivory);
  background: var(--card-dark);
  box-shadow:
    var(--edge-dark),
    1px 3px 6px rgba(3, 10, 8, 0.3),
    5px 16px 34px rgba(3, 10, 8, 0.45);
}

.svc-panel h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(20px, 1.6vw, 25px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

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

.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: 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--forest-deep);
}

.svc-panel--dark a {
  color: var(--signal);
}

/* 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-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:
    radial-gradient(70% 90% at 8% 8%, #1a3d33 0%, rgba(26, 61, 51, 0) 60%),
    linear-gradient(180deg, #112a23 0%, var(--night) 100%);
}

.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: 20ch;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ivory);
  text-shadow: 0 2px 20px rgba(3, 10, 8, 0.5);
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
}

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

.statement__sub {
  margin: 46px 0 0 auto;
  max-width: 540px;
  padding: 26px 28px;
  border-radius: var(--radius);
  background: rgba(14, 31, 26, 0.72);
  box-shadow: var(--edge-dark), var(--lift-dark);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 16px;
  line-height: 1.65;
  color: rgba(245, 241, 232, 0.86);
}

/* ======================================================================
   BAND 02: HOW WE WORK (dark) - editorial list treatment
   ====================================================================== */
.focus {
  position: relative;
  z-index: 4;
  padding: 40px var(--pad) 126px;
  background:
    radial-gradient(60% 70% at 100% 0%, #142f27 0%, rgba(20, 47, 39, 0) 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
}

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

.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: 16px;
  line-height: 1.65;
  color: rgba(245, 241, 232, 0.8);
}

.focus__items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

/* raised dark cards, lit from the upper left */
.focus-item {
  padding: 26px 26px 28px;
  border-radius: var(--radius);
  background: var(--card-dark);
  box-shadow: var(--edge-dark), var(--lift-dark);
}

.focus-item h3 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.14;
  letter-spacing: -0.025em;
}

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

.focus-item li {
  padding-left: 18px;
  position: relative;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(245, 241, 232, 0.8);
}

.focus-item li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(168, 224, 95, 0.14);
}

.focus__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 40px;
  padding: 26px 28px;
  border-radius: var(--radius);
  background: rgba(245, 241, 232, 0.04);
  box-shadow: var(--edge-dark), var(--lift-dark);
}

.focus__foot p {
  margin: 0;
  max-width: 56ch;
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(245, 241, 232, 0.8);
}

.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: 132px var(--pad) 118px;
  color: var(--ink);
  background:
    radial-gradient(100% 70% at 4% 0%, #f8f4ea 0%, rgba(248, 244, 234, 0) 58%),
    radial-gradient(80% 60% at 100% 100%, #e3dccb 0%, rgba(227, 220, 203, 0) 62%),
    linear-gradient(168deg, var(--paper-lift) 0%, #ebe4d6 100%);
}

/* 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: 700;
  font-size: clamp(30px, 3.4vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  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 22px;
  margin-bottom: 26px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0;
}

html.js .editorial__filters {
  display: flex;
}

.filter {
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  color: rgba(28, 33, 31, 0.7);
  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);
  background: rgba(255, 253, 248, 0.7);
}

.filter.is-active {
  color: var(--ivory);
  font-weight: 600;
  background: linear-gradient(180deg, #1f5a48 0%, var(--forest-deep) 100%);
  box-shadow:
    inset 0 1px 0 rgba(245, 241, 232, 0.14),
    1px 3px 8px rgba(18, 54, 45, 0.28);
}

.editorial__rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}

.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;
}

/* each post is a raised paper card: real thumbnail, title, date */
.row__link {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  height: 100%;
  padding: 14px 22px 14px 14px;
  border-radius: var(--radius);
  background: linear-gradient(170deg, #fffdf8 0%, #f8f4ec 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), var(--lift);
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}

.row__link:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), var(--lift-hover);
}

.row__body {
  display: grid;
  gap: 7px;
}

.row__title {
  font-size: clamp(16px, 1.25vw, 18px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: color 0.25s ease;
}

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

.row__meta {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--muted-ink);
}

.row__thumb {
  display: block;
  width: 150px;
  height: 96px;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 1px 3px 8px rgba(18, 54, 45, 0.22);
}

.row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.row__link:hover .row__thumb img {
  transform: scale(1.05);
}

/* ======================================================================
   FOOTER (dark)
   ====================================================================== */
.foot {
  position: relative;
  z-index: 4;
  padding: 56px var(--pad) 78px;
  background:
    radial-gradient(70% 80% at 0% 100%, #122a23 0%, rgba(18, 42, 35, 0) 60%),
    linear-gradient(180deg, var(--night) 0%, #091511 100%);
}

.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 14px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(245, 241, 232, 0.7);
}

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

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

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

.foot__col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 28px 28px;
  border-radius: var(--radius);
  background: var(--card-dark);
  box-shadow: var(--edge-dark), var(--lift-dark);
}

/* Geologica, so the hover-weight trick has a home down here too */
.foot__col h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
}

.foot__col p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(245, 241, 232, 0.78);
}

.foot__col a.foot__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  font-size: 16px;
  font-weight: 600;
  color: var(--signal);
  transition: opacity 0.25s ease;
}

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

/* ======================================================================
   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;
  }

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

@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: 13px;
    letter-spacing: 0;
  }

  /* 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;
  }

  /* 2026-09-02: the row wraps at readable sizes instead of scrolling
     sideways at 9.6px; nothing is ever cut off */
  .snav__row {
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 4px;
    padding: 0 var(--pad);
    overflow: visible;
  }

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

  /* the row no longer scrolls; the mask is kept inert for the JS toggle */
  .snav__row.is-scrollable.never {
    -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 {
    padding: 6px 10px;
    font-size: 15px;
    letter-spacing: 0;
    text-indent: 0;
  }

  /* a wrapped row leaves dots dangling at line ends; spacing does the job */
  .snav__sep {
    display: none;
  }

  /* 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 {
    padding: 5px 8px;
    font-size: 14.5px;
    letter-spacing: 0;
    text-indent: 0;
  }

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

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

  .row__link {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    padding: 12px 16px 12px 12px;
  }

  .row__thumb {
    width: 104px;
    height: 70px;
  }

  .focus__foot {
    padding: 22px 20px;
  }

  .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,
  .svc-card img,
  .row__link,
  .row__thumb img,
  .btn,
  .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:
    radial-gradient(70% 90% at 0% 0%, #163329 0%, rgba(22, 51, 41, 0) 60%),
    linear-gradient(180deg, var(--night-2) 0%, var(--night) 100%);
}

.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: 700;
  font-size: clamp(30px, 3.4vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.contact__intro {
  margin: 0;
  max-width: 34ch;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(245, 241, 232, 0.8);
}

/* the form sits on its own raised card */
.contact-form {
  display: grid;
  gap: 18px;
  max-width: 620px;
  margin-top: 0;
  padding: 28px 28px 30px;
  border-radius: var(--radius);
  background: var(--card-dark);
  box-shadow: var(--edge-dark), var(--lift-dark);
}

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

.field label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(245, 241, 232, 0.86);
}

/* sunk fields on a raised card */
.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(245, 241, 232, 0.12);
  border-radius: var(--radius);
  background: rgba(5, 14, 11, 0.55);
  box-shadow: inset 1px 2px 6px rgba(0, 0, 0, 0.35);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

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

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

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow:
    inset 1px 2px 6px rgba(0, 0, 0, 0.35),
    0 0 0 3px rgba(168, 224, 95, 0.18);
}

.contact-submit {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 22px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #b9ea79 0%, var(--signal) 55%, #9bd551 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    1px 2px 4px rgba(3, 10, 8, 0.22),
    3px 9px 20px rgba(3, 10, 8, 0.28);
  transition:
    background 0.25s ease,
    transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out),
    opacity 0.25s ease;
}

.contact-submit:hover {
  background: linear-gradient(180deg, #c4ef8b 0%, #b8ea77 55%, #a6dd62 100%);
  transform: translateY(-2px);
}

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

.contact-status {
  margin: 0;
  min-height: 1.4em;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(245, 241, 232, 0.78);
}

.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: 22px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(245, 241, 232, 0.78);
}

.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: var(--radius);
  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;
  }
}
