/* ==========================================================================
   ABLO INVEST — style.css
   Editorial, warm-neutral palette with a single terracotta accent.
   Mobile-first. Breakpoints: 640px, 960px.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Colour */
  --bg: #F4EFE7;
  --bg-alt: #EAE3D6;
  --paper: #FBF8F3;
  --ink: #1C1B18;
  --ink-soft: #2A2825;
  --text: #38352F;
  --muted: #6D675E;
  --line: rgba(28, 27, 24, 0.16);
  --accent: #B2452A;
  --accent-hover: #93361F;
  --accent-light: #E58463;
  --error: #A12A1C;
  --success: #3E6B4E;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --container: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(5rem, 10vw, 9rem);
  --header-h: 84px;
  --header-h-compact: 60px;
  --radius: 2px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h-compact);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, p, ul, ol, dl, dd, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 350;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); }
h3 { font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1.2; }

em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--paper); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--paper);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.section { padding-block: var(--section-y); }

.section-index {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-index b { color: var(--accent); font-weight: 600; }
.section-index::after {
  content: "";
  width: 3.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* ---------- 3. Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary { background: var(--accent); color: var(--paper); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn-small { padding: 0.6rem 1.05rem; font-size: 0.85rem; }

.text-link {
  display: inline-block;
  padding-bottom: 0.15rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: color 0.25s var(--ease), background-size 0.3s var(--ease);
}
.text-link:hover { color: var(--accent); }
.text-link span { display: inline-block; transition: transform 0.25s var(--ease); }
.text-link:hover span { transform: translateX(4px); }
.text-link-light { color: var(--paper); }
.text-link-light:hover { color: var(--accent-light); }

/* ---------- 4. Header & navigation ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: height 0.35s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-scrolled {
  height: var(--header-h-compact);
  background: var(--bg);
  border-bottom-color: var(--line);
}
body.nav-open .site-header { background: var(--bg); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  color: var(--ink);
}
.logo-text span { font-weight: 400; }
.logo-mark {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
  margin-right: 4px;
  background: var(--accent);
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 5px -5px -5px 5px;
  border: 1.5px solid var(--ink);
  transition: inset 0.3s var(--ease);
}
.logo:hover .logo-mark::after { inset: 3px -3px -3px 3px; }

/* Mobile navigation: full-screen panel */
.nav {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 1rem) var(--gutter) 2.5rem;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
body.nav-open .nav {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.nav ul { display: grid; }
.nav ul a {
  display: block;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 2.8rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.2s var(--ease), padding-left 0.3s var(--ease);
}
.nav ul a:hover,
.nav ul a.is-active { color: var(--accent); padding-left: 0.5rem; }
.nav-cta { align-self: flex-start; margin-top: 2rem; }

.nav-toggle {
  position: relative;
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), width 0.3s var(--ease);
}
.nav-toggle span:first-child { width: 26px; }
.nav-toggle span:last-child { width: 16px; }
body.nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
body.nav-open .nav-toggle span:last-child { width: 26px; transform: translateY(-4px) rotate(-45deg); }

@media (min-width: 960px) {
  .nav {
    position: static;
    inset: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 2.5rem;
    padding: 0;
    background: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .nav ul { display: flex; gap: 2.25rem; }
  .nav ul a {
    position: relative;
    padding: 0.4rem 0;
    border: 0;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0;
    transition: color 0.2s var(--ease);
  }
  .nav ul a:hover,
  .nav ul a.is-active { padding-left: 0; color: var(--ink); }
  .nav ul a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
  }
  .nav ul a:hover::after { transform: scaleX(1); }
  .nav ul a.is-active::after { background: var(--accent); transform: scaleX(1); }
  .nav-cta { margin-top: 0; align-self: auto; }
  .nav-toggle { display: none; }
}

/* ---------- 5. Reveal-on-scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 6. Placeholder image frames ---------- */
.ph { position: relative; overflow: hidden; background: var(--bg-alt); }
.ph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph-4x5 { aspect-ratio: 4 / 5; }
.ph-3x4 { aspect-ratio: 3 / 4; }
.ph-1x1 { aspect-ratio: 1; }
.ph-16x10 { aspect-ratio: 16 / 10; }

figcaption {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- 7. Hero ---------- */
.hero { padding-top: var(--header-h); }
.hero-main { position: relative; }
.hero-main::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  background: var(--bg-alt);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 3.5rem;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 6vw, 6rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-line { flex: none; width: 2.5rem; height: 1px; background: var(--accent); }

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 6.1rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.lead {
  max-width: 34rem;
  margin-top: 2rem;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: 2.5rem;
}

.hero-visual { position: relative; padding: 0 1.6rem 12% 0; }
.hv-main { width: 82%; margin-left: auto; }
.hv-second {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42%;
  border: 10px solid var(--bg);
}
.hv-tag {
  position: absolute;
  top: 7%;
  left: 0;
  display: grid;
  gap: 0.1rem;
  max-width: 13rem;
  padding: 0.85rem 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
}
.hv-tag strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hv-tag-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.hv-coord {
  position: absolute;
  top: 0;
  right: 0;
  writing-mode: vertical-rl;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.hero-meta li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.1rem 1rem 1.3rem 0;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}
.hero-meta li span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
}

@media (min-width: 640px) {
  .hero-meta { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 960px) {
  .hero-main::before { inset: 0 0 0 auto; width: 36%; height: auto; }
  .hero-grid {
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gutter);
    align-items: center;
    min-height: min(84vh, 840px);
  }
  .hero-copy { grid-column: 1 / 8; }
  .hero-visual { grid-column: 8 / 13; }
}

/* ---------- 8. About ---------- */
.about-grid {
  display: grid;
  gap: 4rem;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}
.section-head h2 { max-width: 16ch; }

.about-media { position: relative; }
.about-statement {
  position: relative;
  width: calc(100% - 1.5rem);
  margin: -2.5rem 0 0 auto;
  padding: 1.5rem 1.6rem;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.3;
}
.about-media figcaption { margin-bottom: 0; }

.lead-serif {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 350;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.about-cols { margin-top: 2.25rem; }
.about-cols p + p { margin-top: 1.1rem; }

.facts {
  display: grid;
  margin-top: 3rem;
  border-top: 1px solid var(--ink);
}
.fact {
  padding: 1.25rem 0 1.4rem;
  border-bottom: 1px solid var(--line);
}
.fact dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.fact-value {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.fact-note { margin-top: 0.3rem; font-size: 0.88rem; line-height: 1.45; color: var(--muted); }

@media (min-width: 640px) {
  .about-cols { column-count: 2; column-gap: 2.25rem; }
  .about-cols p + p { margin-top: 0; }
  .facts { grid-template-columns: repeat(3, 1fr); column-gap: 1.5rem; }
  .fact { border-bottom: 0; }
}

@media (min-width: 960px) {
  .about-grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: start; }
  .about-media { grid-column: 1 / 6; margin-top: 3rem; }
  .about-body { grid-column: 7 / 13; }
  .about-statement {
    position: absolute;
    right: -16%;
    bottom: 3.4rem;
    width: 66%;
    margin: 0;
  }
}

/* ---------- 9. Services ---------- */
.services { background: var(--paper); border-block: 1px solid var(--line); }

.services-head {
  display: grid;
  gap: 1.5rem;
  align-items: end;
}
.services-head h2 { max-width: 18ch; }
.services-intro { max-width: 28rem; color: var(--text); }

.services-layout {
  display: grid;
  gap: 3.5rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}

.service-featured .ph { margin-bottom: 1.5rem; }
.sf-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.sf-label span { color: var(--accent); }
.sf-body h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); letter-spacing: -0.02em; }
.sf-body > p:not(.sf-label) { max-width: 30rem; margin-top: 1rem; }
.sf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
}
.sf-tags li + li::before { content: "/"; margin: 0 0.7rem; color: var(--accent); }

.service-list { border-bottom: 1px solid var(--ink); }
.service-item {
  position: relative;
  display: grid;
  grid-template-columns: 2.6rem 1fr 2rem;
  gap: 0.5rem 1rem;
  align-items: start;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}
.service-item:first-child { border-top-color: var(--ink); }
.service-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.service-item:hover::before { transform: scaleX(1); }

.si-num {
  padding-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.si-body { transition: transform 0.4s var(--ease); }
.si-body p { max-width: 32rem; margin-top: 0.5rem; font-size: 0.98rem; color: var(--muted); }
.si-icon {
  width: 2rem;
  height: 2rem;
  color: var(--muted);
  transition: color 0.3s var(--ease), transform 0.4s var(--ease);
}
.service-item:hover .si-num,
.service-item:hover .si-icon { color: var(--accent); }
.service-item:hover .si-body { transform: translateX(0.4rem); }
.service-item:hover .si-icon { transform: translateY(-3px); }

@media (min-width: 960px) {
  .services-head { grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); }
  .services-head > div { grid-column: 1 / 9; }
  .services-intro { grid-column: 9 / 13; padding-bottom: 0.6rem; }

  .services-layout { grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: start; }
  .service-featured {
    grid-column: 1 / 6;
    position: sticky;
    top: calc(var(--header-h-compact) + 2rem);
  }
  .service-list { grid-column: 7 / 13; }
  .service-item { padding: 2rem 0; }
}

/* ---------- 10. Editorial interlude ---------- */
.interlude { padding-block: var(--section-y) 0; }
.interlude-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem var(--gutter);
  align-items: end;
}
.ig-1 { grid-column: 1 / -1; }

@media (min-width: 960px) {
  .interlude-grid { grid-template-columns: 7fr 3fr 4fr; }
  .ig-1 { grid-column: auto; }
}

/* ---------- 11. Benefits (dark) ---------- */
.benefits { background: var(--ink); color: rgba(244, 239, 231, 0.78); margin-top: var(--section-y); }
.benefits h2,
.benefits h3 { color: var(--paper); }
.benefits em { color: var(--accent-light); }
.benefits .section-index { color: rgba(244, 239, 231, 0.6); }
.benefits .section-index b { color: var(--accent-light); }

.benefits-head { display: grid; gap: 1.5rem; align-items: end; }
.benefits-head h2 { max-width: 14ch; }
.benefits-intro { max-width: 24rem; }

.benefit-list {
  display: grid;
  gap: 2.5rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.benefit { padding-top: 1.5rem; border-top: 1px solid rgba(244, 239, 231, 0.22); }
.b-num {
  display: block;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--accent-light);
}
.benefit h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
.benefit p { font-size: 0.98rem; }

.benefits-cta { margin-top: clamp(3rem, 6vw, 5rem); }

@media (min-width: 640px) {
  .benefit-list { grid-template-columns: 1fr 1fr; column-gap: var(--gutter); }
  .benefit:nth-child(even) { margin-top: 3rem; }
}

@media (min-width: 960px) {
  .benefits-head { grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); }
  .benefits-head > div { grid-column: 1 / 8; }
  .benefits-intro { grid-column: 9 / 13; padding-bottom: 0.6rem; }

  .benefit-list { grid-template-columns: repeat(4, 1fr); column-gap: 2rem; align-items: start; }
  .benefit:nth-child(1) { margin-top: 0; }
  .benefit:nth-child(2) { margin-top: 3rem; }
  .benefit:nth-child(3) { margin-top: 6rem; }
  .benefit:nth-child(4) { margin-top: 9rem; }
  .benefits-cta { margin-top: 2rem; }
}

/* ---------- 12. Contact ---------- */
.contact-grid { display: grid; gap: 3.5rem; }
.contact-info h2 { max-width: 13ch; }
.contact-lead { max-width: 28rem; margin-top: 1.5rem; }

.contact-details { margin-top: 2.5rem; border-top: 1px solid var(--ink); }
.contact-details > div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-details dt {
  padding-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-details dd { color: var(--ink); }
.contact-details a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 0.1rem;
  transition: color 0.25s var(--ease);
}
.contact-details a:hover { color: var(--accent); }

.contact-form {
  display: grid;
  gap: 1.75rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--paper);
  border: 1px solid var(--line);
}
.field-row { display: grid; gap: 1.75rem; }
.field { display: grid; gap: 0.35rem; }
.field > label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.field > label .opt { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  padding: 0.6rem 0 0.7rem;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 0 var(--accent);
}
.field.has-error input,
.field.has-error textarea {
  border-bottom-color: var(--error);
  box-shadow: 0 1px 0 var(--error);
}
.field-error { font-size: 0.84rem; line-height: 1.4; color: var(--error); }
.field-error:empty { display: none; }

.check { display: flex; align-items: flex-start; gap: 0.8rem; font-size: 0.88rem; line-height: 1.5; color: var(--text); }
.check input { flex: none; width: 1.1rem; height: 1.1rem; margin: 0.15rem 0 0; accent-color: var(--accent); }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.check a:hover { color: var(--accent); }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form-note { font-size: 0.82rem; color: var(--muted); }

.form-status {
  display: none;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--ink);
  font-size: 0.95rem;
  line-height: 1.5;
}
.form-status.is-success { display: block; border-color: var(--success); background: #E9EFE6; color: #26402F; }
.form-status.is-error { display: block; border-color: var(--error); background: #F5E4DF; color: #6E1D12; }

@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
}

@media (min-width: 960px) {
  .contact-grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: start; }
  .contact-info { grid-column: 1 / 6; }
  .contact-form-wrap { grid-column: 7 / 13; }
}

/* ---------- 13. Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(3.5rem, 7vw, 6rem);
  background: var(--ink);
  color: rgba(244, 239, 231, 0.7);
  font-size: 0.95rem;
}
.site-footer a { transition: color 0.2s var(--ease); }
.site-footer a:hover { color: var(--accent-light); }

.footer-grid { display: grid; gap: 2.75rem; }
.logo-light { color: var(--paper); }
.logo-light .logo-mark::after { border-color: var(--paper); }
.footer-brand p { max-width: 26rem; margin-top: 1.25rem; }

.footer-nav h2,
.footer-contact h2 {
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
  color: rgba(244, 239, 231, 0.5);
}
.footer-nav ul { display: grid; gap: 0.45rem; }
.footer-contact address { line-height: 1.7; }
.footer-contact a { color: var(--paper); }

.footer-wordmark {
  margin: clamp(2.5rem, 6vw, 4.5rem) 0 0 var(--gutter);
  font-family: var(--font-display);
  font-size: clamp(3rem, 14.5vw, 13rem);
  font-weight: 300;
  line-height: 0.85;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 239, 231, 0.2);
  user-select: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.75rem 2rem;
  border-top: 1px solid rgba(244, 239, 231, 0.16);
  margin-top: 2rem;
  font-size: 0.85rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.75rem; }

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1.2fr; column-gap: var(--gutter); }
  .footer-brand { grid-column: auto; }
}

/* ---------- 14. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
