/* ==========================================================================
   NEXUS LOW VOLTAGE — Design System
   Built from: Nexus Digital Experience Design Brief v1.0
               Nexus Website Creative Specification v1.0
               Nexus Website Screen Blueprints v1.0
   --------------------------------------------------------------------------
   Principles: luxury through restraint · architecture leads · white space
   is a material · Lion gold at 1–2% · typography before color.
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Official Nexus Brand Palette */
  --lion:        #A6864B;   /* signature accent — used sparingly */
  --coyote:      #8D6D46;   /* hover / pressed state of Lion */
  --silver:      #C0C5C1;
  --rich-black:  #0B2027;   /* deep sections, footer */
  --ink-black:   #231F20;   /* logo ink — headlines */

  /* Website palette (subset per Creative Spec) */
  --canvas:      #F7F5F0;   /* primary background · 85–90% of page */
  --canvas-alt:  #EFECE4;   /* secondary background · 8–10% */
  --ink:         #26292B;   /* primary text — deep charcoal, never pure black */
  --ink-soft:    #5C6165;   /* secondary text — medium neutral gray */
  --hairline:    rgba(35, 31, 32, 0.14);
  --hairline-soft: rgba(35, 31, 32, 0.08);

  /* Typography
     Display: Fraunces Light (stand-in for Canela / Superior Title —
     swap here when a license is purchased).
     Body: Montserrat (official Nexus brand sans, per Brand Guide). */
  --font-display: "Fraunces", "Superior Title", Georgia, serif;
  --font-body: "Montserrat", "Neue Haas Grotesk", "Helvetica Neue", Arial, sans-serif;

  /* Scale */
  --text-display: clamp(2.4rem, 5vw, 4.2rem);
  --text-h2:      clamp(1.9rem, 3.4vw, 2.9rem);
  --text-h3:      clamp(1.2rem, 1.7vw, 1.45rem);
  --text-body:    1.0rem;
  --text-small:   0.875rem;
  --text-eyebrow: 0.72rem;

  /* Rhythm */
  --section-pad:  clamp(5.5rem, 11vw, 9.5rem);
  --container:    min(1160px, 90vw);
  --container-narrow: min(760px, 90vw);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.78;
  color: var(--ink);
  background-color: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-feature-settings: "kern" 1;
}

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

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

::selection { background: rgba(166, 134, 75, 0.22); }

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

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--ink-black);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--text-display); line-height: 1.12; }
h2 { font-size: var(--text-h2);      line-height: 1.18; }
h3 { font-size: var(--text-h3);      line-height: 1.35; font-weight: 400; }

.lede {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 46ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lion);
  margin-bottom: 1.4rem;
}

/* The Nexus diamond — quiet motif drawn from the logomark */
.diamond {
  width: 7px;
  height: 7px;
  background: var(--lion);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ---------- Layout ---------- */
.container        { width: var(--container); margin-inline: auto; }
.container-narrow { width: var(--container-narrow); margin-inline: auto; }

.section     { padding-block: var(--section-pad); }
.section-alt { background: var(--canvas-alt); }

.section-head { max-width: 62ch; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head.centered .eyebrow { justify-content: center; }
.section-head p { margin-top: 1.4rem; color: var(--ink-soft); max-width: 56ch; }
.section-head.centered p { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1.05rem 2.1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: var(--lion);
  color: var(--rich-black);
}
.btn-primary:hover { background: var(--coyote); color: #FFFFFF; }

.btn-ghost {
  border-color: var(--hairline);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink); }

/* Ghost button on dark imagery */
.on-dark .btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #F7F5F0;
}
.on-dark .btn-ghost:hover { border-color: #F7F5F0; }

.text-link {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--lion);
  padding-bottom: 0.3rem;
  transition: color 0.25s ease;
}
.text-link:hover { color: var(--coyote); }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
  padding-block: 1.6rem;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo img { height: 34px; width: auto; }
.nav-logo .logo-dark { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #F7F5F0;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { border-bottom-color: var(--lion); }

.nav-links a.nav-cta {
  font-size: 0.72rem;
  padding: 0.8rem 1.5rem;
  color: var(--rich-black);
  border-bottom: none;
}
.nav-links a.nav-cta:hover { color: #FFFFFF; border-bottom: none; }

/* Scrolled state — nav settles onto the canvas */
.site-nav.scrolled {
  background: #F7F5F0;
  box-shadow: 0 1px 0 var(--hairline-soft);
  padding-block: 1rem;
}
.site-nav.scrolled .nav-links a { color: var(--ink); }
.site-nav.scrolled .nav-logo .logo-light { display: none; }
.site-nav.scrolled .nav-logo .logo-dark  { display: block; }

/* Light-page variant (interior pages without dark hero) */
.site-nav.nav-solid { background: #F7F5F0); box-shadow: 0 1px 0 var(--hairline-soft); }
.site-nav.nav-solid .nav-links a { color: var(--ink); }
.site-nav.nav-solid .nav-logo .logo-light { display: none; }
.site-nav.nav-solid .nav-logo .logo-dark  { display: block; }

/* Mobile navigation */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 120;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: #F7F5F0;
  margin: 6px 0;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}
.site-nav.scrolled .nav-toggle span,
.site-nav.nav-solid .nav-toggle span,
.site-nav.menu-open .nav-toggle span { background: var(--ink); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 0;
      z-index: 100;
      visibility: hidden;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: var(--canvas);
    transform: translateY(-100%);
    transition: transform 0.4s ease, visibility 0s linear 0.4s;
  }
.site-nav.menu-open .nav-links { transform: translateY(0); visibility: visible; transition: transform 0.4s ease; }
  .nav-links a { color: var(--ink) !important; font-size: 1rem; }
  .site-nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .site-nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #F7F5F0;
  isolation: isolate;
}

/* Hero photography — 271 Pinecrest.
   The overlay exists only to guarantee text readability at the bottom
   edge; the architecture, warm interior lighting, and twilight sky
   remain the dominant visual elements. */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(11, 32, 39, 0.18) 0%,
      rgba(11, 32, 39, 0.00) 26%,
      rgba(9, 18, 22, 0.00) 55%,
      rgba(9, 18, 22, 0.42) 100%),
    url("../img/hero-pinecrest.jpg") center / cover no-repeat,
    #14232A;
}

/* Whisper of depth behind the headline text only */
.hero-inner {
  text-shadow: 0 1px 30px rgba(9, 18, 22, 0.45);
}

.hero-inner {
  width: var(--container);
  margin-inline: auto;
  padding-block: 8rem clamp(5rem, 12vh, 8rem);
  max-width: 100%;
}

.hero h1 {
  color: #F7F5F0;
  max-width: 15ch;
}

.hero .lede {
  color: rgba(247, 245, 240, 0.82);
  margin-top: 1.8rem;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
  margin-top: 2.8rem;
}

.hero .scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%) rotate(45deg);
  width: 9px;
  height: 9px;
  border-right: 1.5px solid rgba(247, 245, 240, 0.7);
  border-bottom: 1.5px solid rgba(247, 245, 240, 0.7);
  animation: cue 2.6s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(45deg); opacity: 0.7; }
  50%      { transform: translateX(-50%) translateY(7px) rotate(45deg); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .hero .scroll-cue { animation: none; } }

/* ---------- Photography Placeholder Frames ----------
   Styled as architectural drawing sheets. Each frame is annotated with
   the shot the Screen Blueprints call for — this is the photography
   shot list, living inside the layout it will occupy. */
.photo-frame {
  position: relative;
  background:
    linear-gradient(150deg, #E7E2D7 0%, #EDE8DE 55%, #E2DCCF 100%);
  border: 1px solid var(--hairline);
  overflow: hidden;
}
.photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 111px, rgba(11, 32, 39, 0.05) 111px 112px),
    repeating-linear-gradient(0deg, transparent 0 111px, rgba(11, 32, 39, 0.05) 111px 112px);
}
.photo-frame .photo-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  opacity: 0.28;
}
.photo-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1.1rem;
  background: rgba(247, 245, 240, 0.93);
  border-top: 1px solid var(--hairline-soft);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.photo-label .diamond { width: 5px; height: 5px; }

.ratio-45  { aspect-ratio: 4 / 5; }
.ratio-43  { aspect-ratio: 4 / 3; }
.ratio-169 { aspect-ratio: 16 / 9; }

/* ---------- Editorial Column ----------
   A single, comfortably measured reading column used when a section
   should read like the opening pages of an architecture publication.
   The surrounding white space is intentional — typography carries it. */
.editorial {
  width: min(770px, 90vw);
  margin-inline: auto;
}
.editorial .eyebrow { margin-bottom: 2rem; }
.editorial h2 { margin-bottom: 3.2rem; max-width: 22ch; }
.editorial .lede { max-width: 62ch; }
.editorial .lede + .lede { margin-top: 1.8rem; }
.editorial .principles { margin-top: 5.5rem; }
.editorial .principles li { padding: 2.4rem 0; }

/* Coordination statement — a quiet emphasis line within the essay */
.editorial-statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--ink-black);
  max-width: 30ch;
  margin-top: 3.4rem;
}

/* Closing pull statement — sits closer to the paragraph it concludes (~28px) */
.editorial-statement.statement-close { margin-top: 1.75rem; }

/* Founder signature — a personal sign-off, not a heading.
   Sits close to the letter's final line; quiet editorial typography. */
.signature { margin-top: 2.8rem; }
.signature .sig-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--ink-black);
}
.signature .sig-role {
  margin-top: 0.4rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Editorial list — no bullets; spacing and typography carry it */
.editorial-points {
  list-style: none;
  margin: 2rem 0 2.6rem;
  color: var(--ink-soft);
}
.editorial-points li {
  margin-bottom: 1.05rem;
  line-height: 1.7;
}

/* Marked variant — the Nexus diamond leads each line */
.editorial-points.marked li {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
}
.editorial-points.marked .diamond {
  position: relative;
  top: -2px;
}

/* Trust blocks — vertically stacked editorial passages.
   No boxes, borders, shadows, or hover states; hierarchy and
   spacing alone carry the structure. */
.trust-blocks { margin-top: 4.5rem; }
.trust-block + .trust-block { margin-top: 3.6rem; }

/* Spaced variant — each principle stands further on its own (+~14px) */
.trust-blocks-spaced .trust-block + .trust-block { margin-top: 4.5rem; }
.trust-block h3 { max-width: 26ch; }
.trust-block p {
  margin-top: 0.9rem;
  max-width: 62ch;
  color: var(--ink-soft);
  line-height: 1.8;
}

/* ---------- Interior Page Header ----------
   Interior pages open on the canvas itself — no photography.
   Typography establishes the page the way the hero photograph
   establishes the homepage. */
.page-header {
  padding-top: clamp(10rem, 18vh, 13rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.page-header h1 { max-width: 17ch; }
.page-header .lede { margin-top: 2.2rem; }
.page-header .hero-actions { margin-top: 2.6rem; }

/* Spacious variant — ~12% more vertical breathing room */
.page-header-spacious {
  padding-top: clamp(11.2rem, 20vh, 14.5rem);
  padding-bottom: clamp(3.4rem, 6.8vw, 5.6rem);
}
.page-header-spacious .lede { margin-top: 2.7rem; }
.page-header-spacious .lede + .lede { margin-top: 1.8rem; }
.page-header-spacious .hero-actions { margin-top: 3.2rem; }

/* The section following a full-screen hero receives a deeper top
   pause, letting the reader arrive before the reading begins. */
.section-after-hero { padding-top: calc(var(--section-pad) + 5rem); }

/* ---------- Split Layout (editorial two-column) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 6.5rem);
  align-items: center;
}
.split.reverse > *:first-child { order: 2; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > *:first-child { order: 0; }
}

/* Guiding principles list (A Better Way) */
.principles {
  list-style: none;
  margin-top: 2.6rem;
  border-top: 1px solid var(--hairline);
}
.principles li {
  display: flex;
  gap: 1.1rem;
  align-items: baseline;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--hairline);
}
.principles .diamond { position: relative; top: -2px; }
.principles strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.08rem;
  color: var(--ink-black);
  display: block;
  letter-spacing: 0;
}
.principles span.desc {
  display: block;
  font-size: var(--text-small);
  color: var(--ink-soft);
  margin-top: 0.25rem;
  line-height: 1.7;
}

/* ---------- Trust Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}
.pillar {
  border-top: 1px solid var(--hairline);
  padding-top: 1.8rem;
}
.pillar .diamond { margin-bottom: 1.3rem; }
.pillar h3 { max-width: 18ch; }
.pillar p {
  margin-top: 0.9rem;
  font-size: var(--text-small);
  line-height: 1.75;
  color: var(--ink-soft);
}
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ---------- Philosophy Cards ----------
   Three equal editorial statements of principle. No photography,
   icons, or decoration — typography, white space, and a single
   hairline boundary carry the structure. */
.philosophy-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2.5rem, 5vw, 4rem);
  margin-top: 1rem;
}
.philosophy-card {
  border-top: 1px solid var(--hairline);
  padding-top: 2rem;
}
.philosophy-card h3 { max-width: 16ch; }
.philosophy-card .card-tag {
  margin-top: 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.philosophy-card p:not(.card-tag) {
  margin-top: 1.2rem;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--ink-soft);
}
@media (max-width: 860px) {
  .philosophy-cards { grid-template-columns: 1fr; gap: 3rem; }
}

/* ---------- Services Index ---------- */
.services-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 3rem;
}
.service-item {
  border-top: 1px solid var(--hairline);
  padding-top: 1.3rem;
}
.service-item h3 {
  font-size: 1.12rem;
}
.service-item p {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* Quiet concluding thought following a grid */
.grid-closing {
  margin-top: 3.5rem;
  max-width: 62ch;
  color: var(--ink-soft);
}
@media (max-width: 960px) { .services-index { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-index { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  position: relative;
  margin-top: 1rem;
}
.process::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--hairline);
}
.step { position: relative; padding-top: 2rem; }
.step .diamond {
  position: absolute;
  top: 0;
  left: 0;
  width: 11px;
  height: 11px;
  background: var(--canvas-alt);
  border: 1.5px solid var(--lion);
}
.step-num {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--lion);
  display: block;
  margin-bottom: 0.5rem;
}
.step h3 { font-size: 1.15rem; }
.step p {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
@media (max-width: 960px) {
  .process { grid-template-columns: 1fr; gap: 2.4rem; }
  .process::before { top: 0; bottom: 0; right: auto; left: 5px; width: 1px; height: auto; }
  .step { padding-top: 0; padding-left: 2.2rem; }
}

/* ---------- Purpose (Why Nexus Exists) ---------- */
.purpose { text-align: center; }
.purpose .eyebrow { justify-content: center; }
.purpose-statement {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
  line-height: 1.3;
  color: var(--ink-black);
  max-width: 26ch;
  margin-inline: auto;
}
.purpose p {
  margin: 2.2rem auto 0;
  max-width: 58ch;
  color: var(--ink-soft);
}
.purpose .founder-line {
  margin-top: 2.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Final Invitation ---------- */
.invitation { text-align: center; }
.invitation h2 { max-width: 20ch; margin-inline: auto; }
.invitation p {
  margin: 1.6rem auto 0;
  max-width: 52ch;
  color: var(--ink-soft);
}
.invitation .hero-actions { justify-content: center; margin-top: 2.6rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--rich-black);
  color: rgba(247, 245, 240, 0.75);
  padding: clamp(4rem, 8vw, 6rem) 0 2.5rem;
  font-size: var(--text-small);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(247, 245, 240, 0.12);
}
.footer-brand img { height: 40px; width: auto; margin-bottom: 1.4rem; }
.footer-brand p { max-width: 34ch; line-height: 1.8; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lion);
  margin-bottom: 1.3rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.75rem; }
.footer-col a { transition: color 0.25s ease; }
.footer-col a:hover { color: #F7F5F0; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2.2rem;
  font-size: 0.75rem;
  color: rgba(247, 245, 240, 0.45);
}
@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Scoped spacing adjustments — tighten the transition between a
   closing content section and the final invitation (~14% combined) */
.tight-bottom { padding-bottom: calc(var(--section-pad) * 0.86); }
.tight-top    { padding-top:    calc(var(--section-pad) * 0.86); }

/* Form start — the contact form follows its introduction closely,
   ~40-60px tighter than a standard section break */
.form-start { padding-top: calc(var(--section-pad) * 0.45); }

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Honeypot — visually removed, present for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.form-field { margin-bottom: 1.6rem; }
.form-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.55rem;
}
.form-field .req { color: var(--lion); }
.form-field .opt { color: var(--ink-soft); text-transform: none; letter-spacing: 0.04em; font-weight: 500; }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: #FDFCF9;
  border: 1px solid var(--hairline);
  border-radius: 0;
  padding: 0.95rem 1.05rem;
  transition: border-color 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}
.form-field textarea { resize: vertical; min-height: 160px; line-height: 1.7; }
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235C6165' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.05rem center;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(92, 97, 101, 0.55); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--lion);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
  margin-top: 0.4rem;
}
.form-note { font-size: 0.82rem; color: var(--ink-soft); }
.btn:disabled { opacity: 0.6; cursor: default; }

.form-status { margin-top: 1.4rem; font-size: 0.92rem; line-height: 1.7; }
.form-status.success { color: #4A6741; }
.form-status.error { color: #8A4B3B; }

/* Contact aside */
.contact-aside .aside-block { border-top: 1px solid var(--hairline); padding-top: 1.6rem; }
.contact-aside .aside-block + .aside-block { margin-top: 2.4rem; }
.contact-aside h3 { font-size: 1.15rem; }
.contact-aside p {
  margin-top: 0.8rem;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.contact-details {
  list-style: none;
  margin-top: 0.9rem;
}
.contact-details li { margin-bottom: 0.55rem; font-size: 0.95rem; }
.contact-details a { border-bottom: 1px solid var(--lion); padding-bottom: 0.15rem; transition: color 0.25s ease; }
.contact-details a:hover { color: var(--coyote); }
.next-steps { margin: 1.1rem 0 0; }
.next-steps li { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 0.9rem; }

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
