/* ==========================================================================
   V8 Global Communications — Design System
   Quiet Power: dark editorial, restrained luxury, disciplined typography
   ========================================================================== */

:root {
  --ink: #0b0b0d;
  --ink-2: #121216;
  --ink-3: #1a1a20;
  --line: rgba(242, 239, 233, 0.12);
  --line-strong: rgba(242, 239, 233, 0.25);
  --paper: #f2efe9;
  --paper-dim: rgba(242, 239, 233, 0.62);
  --paper-faint: rgba(242, 239, 233, 0.55); /* 5.6:1 on ink — AA for small text */
  --accent: #c2a878;
  --accent-deep: #a4885a;
  --cream: #dcddd5;
  --cream-ink: #15151a;
  --cream-dim: rgba(21, 21, 26, 0.68);
  --bronze: #826843;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --max: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--ink); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Film grain — tactile finish over everything, decorative only */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.005em;
}

h1 { letter-spacing: -0.005em; }

.statement-note {
  color: var(--paper-faint);
  max-width: 56ch;
  margin: 2.5rem auto 0;
  font-size: 0.95rem;
}

.kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.kicker::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

.kicker--center {
  justify-content: center;
}

.kicker--center::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

.lede {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.65;
  color: var(--paper-dim);
  font-weight: 300;
  max-width: 46ch;
}

.serif-em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   make it the containing block for the fixed-position mobile menu */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11, 11, 13, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.site-header.scrolled { border-bottom-color: var(--line); }
.site-header.scrolled::before { opacity: 1; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  line-height: 1;
}

.brand-mark {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.brand-mark span { color: var(--accent); }

.brand-name {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

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

.nav-links a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-dim);
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--paper); }

.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  border: 1px solid var(--line-strong) !important;
  padding: 0.7rem 1.5rem !important;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease !important;
}

.nav-cta::after { display: none; }

.nav-cta:hover {
  border-color: var(--accent) !important;
  background: var(--accent);
  color: var(--ink) !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 2.25rem;
  height: 2.25rem;
  position: relative;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 1.6rem;
  height: 1px;
  background: var(--paper);
  margin: 6px auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(11, 11, 13, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 2.25rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links a { font-size: 1rem; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-top: 7rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

/* flex item: without this, margin:auto shrink-wraps the wrap off the margin axis */
.hero > .wrap { width: 100%; }

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 75% 25%, rgba(194, 168, 120, 0.07), transparent 65%),
    radial-gradient(ellipse 55% 45% at 15% 85%, rgba(194, 168, 120, 0.04), transparent 60%);
}

.hero-watermark {
  position: absolute;
  right: -4rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: clamp(18rem, 38vw, 34rem);
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 239, 233, 0.05);
  pointer-events: none;
  user-select: none;
}

/* Brand artwork — transparent gold line-art, sits directly on dark sections */
.hero-art {
  position: absolute;
  right: clamp(-5rem, -3vw, -1rem);
  top: 50%;
  width: clamp(30rem, 46vw, 54rem);
  transform: translateY(-50%);
  opacity: 0.9;
  filter: drop-shadow(0 0 80px rgba(194, 168, 120, 0.12));
  pointer-events: none;
  user-select: none;
  animation: heroArt 2.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

@keyframes heroArt {
  from { opacity: 0; transform: translateY(-47%) scale(0.975); }
}

.hero-art--page {
  width: clamp(24rem, 38vw, 42rem);
  opacity: 0.5;
}

@media (max-width: 860px) {
  .hero-art {
    width: 110vw;
    right: -32vw;
    opacity: 0.28;
  }
  .hero-art--page { opacity: 0.2; }
}

.hero h1 {
  font-size: clamp(3rem, 7.5vw, 6.25rem);
  font-weight: 500;
  max-width: 14ch;
  margin-bottom: 2rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero .lede { margin-bottom: 3rem; }

.hero-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-foot {
  position: absolute;
  bottom: 2.5rem;
  left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--paper-faint);
}

.scroll-hint {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.scroll-hint::after {
  content: "";
  width: 1px;
  height: 3rem;
  background: linear-gradient(var(--paper-faint), transparent);
  animation: drip 2.4s ease-in-out infinite;
}

@keyframes drip {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Page hero (interior pages) */
.page-hero {
  padding-top: clamp(10rem, 18vh, 14rem);
  padding-bottom: clamp(3.5rem, 7vh, 5.5rem);
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  max-width: 18ch;
  margin-bottom: 1.75rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 1.05rem 2.1rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  font-family: var(--sans);
  position: relative;
  overflow: hidden;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

/* Sheen sweep on hover */
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.btn:hover::before { left: 130%; }

.btn .arrow { transition: transform 0.35s ease; }

.btn:hover { border-color: var(--accent); }
.btn:hover .arrow { transform: translateX(5px); }

.btn--solid {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

.btn--solid:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding-top: clamp(5rem, 11vh, 8.5rem);
  padding-bottom: clamp(5rem, 11vh, 8.5rem);
  position: relative;
}

.section--line { border-top: 1px solid var(--line); }
.section--panel { background: var(--ink-2); }

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: clamp(3rem, 6vh, 4.5rem);
}

.section-head h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  max-width: 22ch;
  text-wrap: balance;
}

.section-head--split {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: end;
  gap: 3rem;
}

@media (max-width: 820px) {
  .section-head--split { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Positioning statement band
   -------------------------------------------------------------------------- */

.statement {
  text-align: center;
}

.statement blockquote {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.45;
  max-width: 28ch;
  margin: 0 auto;
}

.statement blockquote em {
  font-style: italic;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Cream brand band — the client's mark on its native paper
   -------------------------------------------------------------------------- */

.section--cream {
  background: var(--cream);
  color: var(--cream-ink);
}

.section--cream .kicker { color: #6e5535; } /* 5.1:1 on cream — AA at kicker size */
.section--cream .kicker::before,
.section--cream .kicker::after { background: #6e5535; }

.section--cream blockquote { color: var(--cream-ink); }
.section--cream blockquote em { color: var(--bronze); }

.section--cream .statement-note { color: var(--cream-dim); }

.brand-art {
  width: min(26rem, 76vw);
  height: auto;
  margin: 0 auto 2.5rem;
  user-select: none;
}

.brand-art--small {
  width: min(20rem, 62vw);
}

/* --------------------------------------------------------------------------
   Engine band — discipline section with technical sketch
   -------------------------------------------------------------------------- */

.discipline-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.discipline-art img {
  width: 100%;
  height: auto;
  opacity: 0.92;
  filter: drop-shadow(0 0 60px rgba(194, 168, 120, 0.1));
  user-select: none;
  pointer-events: none;
}

.discipline-layout .principles {
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem;
}

@media (max-width: 860px) {
  .discipline-layout { grid-template-columns: 1fr; }
  .discipline-art { max-width: 26rem; margin: 0 auto; }
}

@media (max-width: 560px) {
  .discipline-layout .principles { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Services grid
   -------------------------------------------------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

.service-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.25rem 2rem 2.5rem;
  position: relative;
  transition: background 0.4s ease;
}

.service-cell:hover { background: rgba(194, 168, 120, 0.045); }

.service-num {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--paper-faint);
  display: block;
  margin-bottom: 2.5rem;
  font-variant-numeric: tabular-nums;
}

.service-cell h3 {
  font-size: 1.45rem;
  margin-bottom: 0.85rem;
}

.service-cell p {
  font-size: 0.92rem;
  color: var(--paper-dim);
  line-height: 1.7;
}

/* Service detail rows (services page) */
.service-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(2.5rem, 5vh, 4rem) 0;
  border-top: 1px solid var(--line);
}

.service-row:last-child { border-bottom: 1px solid var(--line); }

@media (max-width: 760px) { .service-row { grid-template-columns: 1fr; gap: 1.25rem; } }

.service-row-title {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}

.service-row-title .service-num { margin-bottom: 0; flex-shrink: 0; }

.service-row h2,
.service-row h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.service-row p {
  color: var(--paper-dim);
  max-width: 58ch;
}

/* --------------------------------------------------------------------------
   Industries / markets
   -------------------------------------------------------------------------- */

.markets-list {
  list-style: none;
  border-top: 1px solid var(--line);
  counter-reset: market;
}

.markets-list li {
  counter-increment: market;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: baseline;
  padding: 1.6rem 0;
  transition: padding-left 0.35s ease;
}

.markets-list li:hover { padding-left: 0.85rem; }

.markets-list li::before {
  content: counter(market, decimal-leading-zero);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.markets-list .market-name {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 500;
  transition: color 0.3s ease;
}

.markets-list li:hover .market-name { color: var(--accent); }

.markets-list .market-note {
  font-size: 0.88rem;
  color: var(--paper-faint);
}

@media (max-width: 760px) {
  .markets-list li { grid-template-columns: 3rem 1fr; }
  .markets-list .market-note { display: none; }
}

/* --------------------------------------------------------------------------
   Founder block
   -------------------------------------------------------------------------- */

.founder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

@media (max-width: 860px) { .founder { grid-template-columns: 1fr; } }

.founder h2 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  margin-bottom: 1.5rem;
}

.founder-body p {
  color: var(--paper-dim);
  margin-bottom: 1.4rem;
}

.founder-meta {
  border-top: 1px solid var(--line);
}

.founder-meta dl {
  display: grid;
  grid-template-columns: 1fr;
}

.founder-meta .meta-row {
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0;
}

.founder-meta dt {
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.founder-meta dd {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.5;
}

/* Newsroom strip */
.newsrooms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem clamp(1.5rem, 2.6vw, 2.4rem);
  align-items: center;
  justify-content: flex-start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2rem 0;
}

.newsrooms span {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.75vw, 1.3rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--paper-dim);
}

/* --------------------------------------------------------------------------
   Principles / advantage
   -------------------------------------------------------------------------- */

.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.principles--3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 980px) { .principles, .principles--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .principles, .principles--3 { grid-template-columns: 1fr; } }

.principle {
  border-top: 1px solid var(--line-strong);
  padding-top: 1.5rem;
}

.principle h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.principle p {
  font-size: 0.9rem;
  color: var(--paper-dim);
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 50% 110%, rgba(194, 168, 120, 0.1), transparent 70%),
    var(--ink-2);
  border-top: 1px solid var(--line);
}

.cta-band h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  max-width: 18ch;
  margin: 0 auto 1.5rem;
  text-wrap: balance;
}

.cta-band p {
  color: var(--paper-dim);
  max-width: 52ch;
  margin: 0 auto 2.75rem;
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

@media (max-width: 860px) { .contact-layout { grid-template-columns: minmax(0, 1fr); } }

.contact-channel .email { overflow-wrap: anywhere; }

.contact-channels { border-top: 1px solid var(--line); }

.contact-channel {
  display: block;
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
  transition: padding-left 0.3s ease;
}

.contact-channel:hover { padding-left: 0.75rem; }

.contact-channel .label {
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.4rem;
}

.contact-channel .email {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 500;
}

/* Form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.form-grid .full { grid-column: 1 / -1; }

@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--paper-faint);
  margin-bottom: 0.6rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(242, 239, 233, 0.4); /* 3.4:1 — non-text contrast */
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  padding: 0.65rem 0;
  border-radius: 0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23c2a878' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  cursor: pointer;
}

.field select option { background: var(--ink-2); color: var(--paper); }

.field textarea { resize: none; min-height: 8rem; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 0 var(--accent);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--paper-faint);
  margin-top: 1.25rem;
}

/* Live region stays in the accessibility tree; only its spacing collapses when empty */
.form-status {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.form-status:empty { margin-top: 0; }

.form-status.ok { color: var(--accent); }
.form-status.err { color: #d98b8b; }

/* Honeypot */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(3.5rem, 7vh, 5.5rem) 0 2.5rem;
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.footer-brand .brand-mark { font-size: 2.4rem; }

.footer-brand p {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--paper-faint);
  max-width: 32ch;
}

.footer-col h4 {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 0.7rem; }

.footer-col a {
  font-size: 0.92rem;
  color: var(--paper-dim);
  transition: color 0.3s ease;
  overflow-wrap: anywhere;
}

.footer-col a:hover { color: var(--paper); }

.footer-base {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-faint);
}

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero-art { animation: none; }
  .scroll-hint::after { animation: none; }
}
