/* ==========================================================================
   Dune AI Technologies — public site
   Design tokens lifted from the source comps, then expressed as reusable
   block classes so every partial binds to data rather than inline styles.
   ========================================================================== */

:root {
  --ink: #0B0A08;
  --ink-soft: #100E0A;
  --ink-raise: #121009;
  --sand: #F7F3EC;
  --clay: #C97B3C;
  --gold: #E8B04B;
  --teal: #1B4B4A;

  --font-sans: Geist, "Geist Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(20px, 6vw, 90px);
  --gutter-tight: clamp(20px, 4vw, 48px);
  --section-pad: clamp(90px, 12vw, 160px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 70px;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  color: var(--sand);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  min-height: 100vh;
}

a { color: var(--clay); text-decoration: none; }
a:hover { color: var(--gold); }
::selection { background: var(--clay); color: var(--ink); }

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

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--gold);
  color: var(--ink);
  padding: 12px 18px;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

:where(a, button, summary, input, textarea):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--gutter-tight);
  border-bottom: 1px solid transparent;
  transition: background 0.5s var(--ease), border-color 0.5s, backdrop-filter 0.5s;
}

.site-header.is-stuck {
  background: rgba(11, 10, 8, 0.7);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: rgba(247, 243, 236, 0.08);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--sand);
}
.brand-name { font-family: var(--font-serif); font-style: italic; font-size: 26px; line-height: 1; }
.brand-suffix {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: rgba(247, 243, 236, 0.6);
  white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: 34px; }
.nav-link { font-size: 14px; color: rgba(247, 243, 236, 0.75); }
.nav-link:hover, .nav-link.is-active { color: var(--gold); }

.nav-cta {
  font-size: 14px;
  color: var(--sand);
  border: 1px solid rgba(247, 243, 236, 0.3);
  padding: 9px 20px;
  border-radius: 2px;
  display: inline-block;
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.45s var(--ease);
}
.nav-cta:hover { border-color: var(--gold); color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 1px; background: var(--sand); transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 18px var(--gutter-tight) 26px;
    background: rgba(11, 10, 8, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(247, 243, 236, 0.08);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .nav-link, .nav-cta { padding: 12px 0; font-size: 16px; }
  .nav-cta { border: 0; }
}

/* --------------------------------------------------------------------------
   Sections & typography
   -------------------------------------------------------------------------- */

.section {
  position: relative;
  padding: var(--section-pad) var(--gutter);
  overflow: clip;
}
.section--tight { padding-block: clamp(40px, 6vw, 80px); }
.section--anchored { scroll-margin-top: var(--header-h); }
.section--hero-compact { padding-top: clamp(150px, 18vw, 220px); }

.section--dark { background: var(--ink); color: var(--sand); }
.section--light { background: var(--sand); color: var(--ink); }
.section--teal { background: var(--teal); color: var(--sand); }

.section--ruled::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 31px, rgba(11, 10, 8, 0.045) 31px 32px);
}
.section--dark.section--ruled::before {
  background: repeating-linear-gradient(180deg, transparent 0 31px, rgba(247, 243, 236, 0.04) 31px 32px);
}

.section-inner { position: relative; max-width: 1400px; margin: 0 auto; }
.section-inner--center { text-align: center; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0;
}
.eyebrow--gold { color: var(--gold); }

.eyebrow-row { display: flex; align-items: center; gap: 20px; margin-bottom: 56px; }
.rule { flex: 1; height: 1px; background: rgba(11, 10, 8, 0.15); }
.section--dark .rule, .section--teal .rule { background: rgba(247, 243, 236, 0.1); }

.display {
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(48px, 6vw, 80px);
  text-wrap: balance;
}
.display--xl { font-size: clamp(52px, 8.6vw, 136px); line-height: 0.99; letter-spacing: -0.025em; max-width: 14em; margin-bottom: 0; }
.display--lg { font-size: clamp(40px, 5.6vw, 84px); line-height: 1.02; }
.display--md { font-size: clamp(36px, 4.6vw, 68px); max-width: 16em; }
.display--sm { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.08; }
.display--center { margin-inline: auto; max-width: 12em; }

.display em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
}
.section--dark .display em, .hero .display em {
  background: linear-gradient(92deg, var(--clay), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
}
.section--light .display em { color: var(--teal); -webkit-text-fill-color: currentColor; background: none; }
.section--teal .display em { color: var(--gold); -webkit-text-fill-color: currentColor; background: none; }

.line-mask { display: block; overflow: hidden; padding-bottom: 0.06em; }
.line { display: block; }

.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
  color: rgba(247, 243, 236, 0.68);
  max-width: 560px;
  margin: 24px 0 0;
  text-wrap: pretty;
}
.section--light .lead { color: rgba(11, 10, 8, 0.7); }
.lead--center { margin-inline: auto; text-align: center; max-width: 480px; }

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

.cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.cta-row--center { justify-content: center; }

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 15px;
  padding: 16px 30px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.45s var(--ease), filter 0.4s;
}
.btn--primary {
  background: linear-gradient(92deg, var(--clay), var(--gold));
  color: var(--ink);
}
.btn--primary:hover { color: var(--ink); filter: brightness(1.07); }
.btn--ghost {
  border-color: rgba(247, 243, 236, 0.28);
  color: var(--sand);
  font-weight: 500;
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.section--light .btn--ghost { border-color: rgba(11, 10, 8, 0.3); color: var(--ink); }
.section--light .btn--ghost:hover { border-color: var(--clay); color: var(--clay); }
.btn--block { width: 100%; }

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

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: clip;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-soft) 60%, var(--ink) 100%);
}
.hero--full { min-height: 100svh; }
.hero--compact { min-height: 58svh; }

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 10, 8, 0.72) 0%, rgba(11, 10, 8, 0.55) 45%, rgba(11, 10, 8, 0.82) 100%);
}

.hero-mesh { position: absolute; border-radius: 50%; will-change: transform; }
.hero-mesh--a {
  left: -10%; top: -20%;
  width: 70vw; height: 70vw; max-width: 1100px; max-height: 1100px;
  background: radial-gradient(closest-side, rgba(201, 123, 60, 0.22), rgba(201, 123, 60, 0) 70%);
}
.hero-mesh--b {
  right: -18%; bottom: -30%;
  width: 80vw; height: 80vw; max-width: 1300px; max-height: 1300px;
  background: radial-gradient(closest-side, rgba(27, 75, 74, 0.5), rgba(27, 75, 74, 0) 70%);
}

.hero-contours { position: absolute; inset: -8%; will-change: transform; }
.hero-contours svg { width: 100%; height: 100%; display: block; }

.hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: clamp(120px, 16vh, 160px) var(--gutter) 120px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  will-change: transform, opacity;
}
.hero--compact .hero-inner { padding-block: clamp(150px, 18vw, 210px) clamp(60px, 8vw, 100px); }

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-top: 52px;
}
.hero-foot .lead { margin-top: 0; max-width: 520px; }
.hero-foot .cta-row { margin-top: 0; }

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: var(--gutter);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}
.scroll-cue-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.26em; color: rgba(247, 243, 236, 0.45); }
.scroll-cue-track { display: block; width: 1px; height: 44px; background: rgba(247, 243, 236, 0.1); overflow: hidden; }
.scroll-cue-bar { display: block; width: 1px; height: 100%; background: var(--gold); animation: duneCue 2.4s var(--ease) infinite; }

@keyframes duneCue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-height: 700px) { .scroll-cue { display: none; } }

/* --------------------------------------------------------------------------
   Marquee block
   -------------------------------------------------------------------------- */

.marquee {
  display: flex;
  align-items: center;
  background: var(--ink);
  border-top: 1px solid rgba(247, 243, 236, 0.08);
  border-bottom: 1px solid rgba(247, 243, 236, 0.08);
}
.marquee-label {
  flex: 0 0 auto;
  padding: 26px var(--gutter-tight);
  border-right: 1px solid rgba(247, 243, 236, 0.08);
}
.marquee-label .mono { font-size: 10px; letter-spacing: 0.24em; color: rgba(247, 243, 236, 0.5); white-space: nowrap; }
.marquee-viewport {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 52px;
  width: max-content;
  padding: 26px 0;
  animation: duneMarquee var(--marquee-speed, 46s) linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 52px; }
.marquee-item .mono { font-size: 12px; color: rgba(247, 243, 236, 0.55); white-space: nowrap; }
.marquee-dot { width: 5px; height: 5px; background: rgba(232, 176, 75, 0.45); flex: 0 0 auto; }

@keyframes duneMarquee { to { transform: translateX(-50%); } }

@media (max-width: 700px) { .marquee-label { display: none; } }

/* --------------------------------------------------------------------------
   Anchor nav
   -------------------------------------------------------------------------- */

.pill-row { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(247, 243, 236, 0.7);
  border: 1px solid rgba(247, 243, 236, 0.2);
  padding: 10px 18px;
  border-radius: 2px;
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.pill:hover { border-color: var(--gold); color: var(--gold); }
.section--light .pill { color: rgba(11, 10, 8, 0.7); border-color: rgba(11, 10, 8, 0.2); }
.section--light .pill:hover { color: var(--clay); border-color: var(--clay); }

/* --------------------------------------------------------------------------
   Feature grid / cards / lists
   -------------------------------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(32px, 4vw, 64px);
}
.feature-card { border-top: 1px solid rgba(11, 10, 8, 0.25); padding-top: 26px; }
.section--dark .feature-card { border-top-color: rgba(247, 243, 236, 0.18); }

.card-number { color: rgba(11, 10, 8, 0.45); }
.section--dark .card-number { color: rgba(247, 243, 236, 0.45); }
.card-number--accent { color: var(--clay); }

.card-title { font-size: 20px; font-weight: 600; margin: 14px 0 12px; letter-spacing: -0.01em; }
.card-title--lg { font-size: 22px; margin-top: 16px; }
.card-body { font-size: 16px; line-height: 1.65; color: rgba(11, 10, 8, 0.68); margin: 0; text-wrap: pretty; }
.section--dark .card-body { color: rgba(247, 243, 236, 0.62); font-size: 15px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: rgba(247, 243, 236, 0.1);
  border: 1px solid rgba(247, 243, 236, 0.1);
}
.section--light .card-grid { background: rgba(11, 10, 8, 0.12); border-color: rgba(11, 10, 8, 0.12); }

.service-card {
  display: block;
  background: var(--ink);
  color: var(--sand);
  padding: clamp(28px, 3vw, 44px);
  transition: background 0.5s var(--ease);
}
.service-card:hover { background: var(--ink-raise); color: var(--sand); }
.section--light .service-card { background: var(--sand); color: var(--ink); }
.section--light .service-card:hover { background: #fffdf8; }
.card-link { display: inline-block; margin-top: 24px; font-size: 11px; letter-spacing: 0.18em; color: var(--gold); }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.split--contact { gap: clamp(48px, 7vw, 110px); }

.ruled-list { display: flex; flex-direction: column; }

.ruled-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(11, 10, 8, 0.15);
}
.section--dark .ruled-row { border-bottom-color: rgba(247, 243, 236, 0.12); }
.ruled-name { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.ruled-note { font-size: 11px; letter-spacing: 0.14em; color: rgba(11, 10, 8, 0.5); text-align: right; }
.section--dark .ruled-note { color: rgba(247, 243, 236, 0.5); }

.detail-row { border-top: 1px solid rgba(11, 10, 8, 0.18); padding: 22px 0; }
.section--dark .detail-row { border-top-color: rgba(247, 243, 236, 0.12); }
.detail-title { font-size: 17px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.01em; }
.detail-body { font-size: 15px; line-height: 1.6; color: rgba(11, 10, 8, 0.65); margin: 0; text-wrap: pretty; }
.section--dark .detail-body { color: rgba(247, 243, 236, 0.6); }

/* --------------------------------------------------------------------------
   Value list & stats
   -------------------------------------------------------------------------- */

.value-list { display: flex; flex-direction: column; }
.value-row {
  display: grid;
  grid-template-columns: minmax(60px, 120px) minmax(200px, 1fr) minmax(240px, 1.6fr);
  gap: clamp(16px, 3vw, 48px);
  align-items: baseline;
  padding: clamp(28px, 3.4vw, 44px) 0;
  border-bottom: 1px solid rgba(247, 243, 236, 0.1);
}
.section--light .value-row { border-bottom-color: rgba(11, 10, 8, 0.15); }
.value-number { font-size: 12px; color: var(--clay); }
.value-title { font-size: clamp(24px, 2.6vw, 36px); font-weight: 500; letter-spacing: -0.015em; margin: 0; }
.value-title em { font-family: var(--font-serif); font-weight: 400; font-style: italic; }
.value-body { font-size: 16px; line-height: 1.65; color: rgba(247, 243, 236, 0.62); margin: 0; text-wrap: pretty; }
.section--light .value-body { color: rgba(11, 10, 8, 0.68); }

@media (max-width: 780px) {
  .value-row { grid-template-columns: 1fr; gap: 12px; }
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(24px, 4vw, 56px);
}
.stat { border-top: 1px solid rgba(247, 243, 236, 0.14); padding-top: 22px; }
.section--light .stat { border-top-color: rgba(11, 10, 8, 0.18); }
.stat-value {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(44px, 5vw, 76px);
  line-height: 1;
  color: var(--gold);
}
.section--light .stat-value { color: var(--teal); }
.stat-label { display: block; margin-top: 12px; font-size: 10px; letter-spacing: 0.2em; color: rgba(247, 243, 236, 0.5); }
.section--light .stat-label { color: rgba(11, 10, 8, 0.5); }

/* --------------------------------------------------------------------------
   Prose (rich text)
   -------------------------------------------------------------------------- */

.prose { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.7; color: rgba(11, 10, 8, 0.72); text-wrap: pretty; }
.section--dark .prose { color: rgba(247, 243, 236, 0.68); }
.prose--narrow { max-width: 68ch; }
.prose > * + * { margin-top: 24px; }
.prose h2 { font-size: clamp(24px, 2.4vw, 34px); font-weight: 500; letter-spacing: -0.015em; margin-top: 40px; color: inherit; }
.prose h3 { font-size: 20px; font-weight: 600; margin-top: 32px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--clay); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  border-left: 2px solid var(--clay);
  padding-left: 20px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15em;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-list { display: flex; flex-direction: column; max-width: 900px; }
.faq-item { border-top: 1px solid rgba(11, 10, 8, 0.18); }
.section--dark .faq-item { border-top-color: rgba(247, 243, 236, 0.12); }
.faq-item:last-child { border-bottom: 1px solid rgba(11, 10, 8, 0.18); }
.section--dark .faq-item:last-child { border-bottom-color: rgba(247, 243, 236, 0.12); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-marker {
  position: relative;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}
.faq-marker::before, .faq-marker::after {
  content: "";
  position: absolute;
  background: var(--clay);
  transition: transform 0.4s var(--ease);
}
.faq-marker::before { inset: 6px 0 auto 0; height: 1px; }
.faq-marker::after { inset: 0 auto 0 6px; width: 1px; }
.faq-item[open] .faq-marker::after { transform: scaleY(0); }
.faq-answer { padding-bottom: 26px; max-width: 70ch; }

/* --------------------------------------------------------------------------
   Media block
   -------------------------------------------------------------------------- */

.media-frame { margin: 0; position: relative; }
.media-frame--16x9 .media-el { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.media-frame--4x3 .media-el { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.media-frame--1x1 .media-el { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.media-frame--21x9 .media-el { aspect-ratio: 21 / 9; object-fit: cover; width: 100%; }
.media-frame--auto .media-el { width: 100%; height: auto; }
.media-caption { display: block; margin-top: 14px; font-size: 10px; letter-spacing: 0.18em; color: rgba(247, 243, 236, 0.5); }
.section--light .media-caption { color: rgba(11, 10, 8, 0.5); }
.media-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border: 1px dashed rgba(247, 243, 236, 0.25);
  color: rgba(247, 243, 236, 0.4);
  font-size: 10px;
  letter-spacing: 0.18em;
}
.media-copy .lead { margin-top: 20px; }

.post-cover { margin: 0; }
.post-cover img { width: 100%; max-height: 70vh; object-fit: cover; }

/* --------------------------------------------------------------------------
   Contact block
   -------------------------------------------------------------------------- */

.contact-section .display { margin-bottom: 0; }

.contact-rows { display: flex; flex-direction: column; margin-top: 48px; }
.contact-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid rgba(247, 243, 236, 0.12);
}
.contact-row:last-child { border-bottom: 1px solid rgba(247, 243, 236, 0.12); }
.section--light .contact-row { border-top-color: rgba(11, 10, 8, 0.15); }
.section--light .contact-row:last-child { border-bottom-color: rgba(11, 10, 8, 0.15); }
.contact-row-label { color: rgba(247, 243, 236, 0.5); }
.section--light .contact-row-label { color: rgba(11, 10, 8, 0.5); }
.contact-row-value { font-size: 16px; color: inherit; text-align: right; }
a.contact-row-value:hover { color: var(--gold); }

.contact-note { margin-top: 48px; border-left: 2px solid var(--clay); padding-left: 20px; }
.contact-note-title { display: block; margin-bottom: 10px; color: var(--gold); }
.contact-note p { font-size: 15px; line-height: 1.7; color: rgba(247, 243, 236, 0.65); margin: 0; max-width: 420px; text-wrap: pretty; }
.section--light .contact-note p { color: rgba(11, 10, 8, 0.65); }

.contact-panel {
  background: var(--sand);
  color: var(--ink);
  padding: clamp(28px, 3.4vw, 48px);
}
.contact-form { display: flex; flex-direction: column; gap: 22px; }
.form-title { color: var(--clay); letter-spacing: 0.24em; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.field-input {
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 13px 14px;
  border: 1px solid rgba(11, 10, 8, 0.25);
  background: #fff;
  color: var(--ink);
  border-radius: 2px;
  resize: vertical;
}
.field-input:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: transparent; }
.field-input[aria-invalid="true"] { border-color: #b3261e; }

.field-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { color: rgba(11, 10, 8, 0.5); margin: 0; line-height: 1.6; letter-spacing: 0.06em; font-size: 11px; }
.form-status { margin: 0; font-size: 14px; color: #b3261e; min-height: 0; }
.form-status:empty { display: none; }

.contact-success {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 420px;
  justify-content: center;
  text-align: center;
}
.contact-success-title { font-family: var(--font-serif); font-style: italic; font-size: 40px; color: var(--teal); }
.contact-success p { font-size: 16px; line-height: 1.65; color: rgba(11, 10, 8, 0.7); margin: 0; }

/* --------------------------------------------------------------------------
   CTA banner
   -------------------------------------------------------------------------- */

.section--cta { text-align: center; padding-block: clamp(100px, 14vw, 180px); }
.cta-glow {
  position: absolute;
  left: 50%;
  top: -40%;
  width: 90vw;
  height: 90vw;
  max-width: 1200px;
  max-height: 1200px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 176, 75, 0.14), rgba(232, 176, 75, 0) 70%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Blog list
   -------------------------------------------------------------------------- */

.post-list { display: flex; flex-direction: column; }
.post-row { border-top: 1px solid rgba(11, 10, 8, 0.18); }
.post-row:last-child { border-bottom: 1px solid rgba(11, 10, 8, 0.18); }
.post-row-link { display: block; padding: 32px 0; color: inherit; }
.post-row-link:hover .post-row-title { color: var(--clay); }
.post-row-title { font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; letter-spacing: -0.015em; margin: 0 0 10px; transition: color 0.3s; }
.post-row-excerpt { font-size: 16px; line-height: 1.65; color: rgba(11, 10, 8, 0.68); margin: 0 0 12px; max-width: 70ch; }
.post-row-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: rgba(11, 10, 8, 0.45); }

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

.site-footer {
  background: var(--ink);
  color: var(--sand);
  border-top: 1px solid rgba(247, 243, 236, 0.08);
  padding: clamp(56px, 7vw, 90px) var(--gutter) 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(36px, 5vw, 72px);
  margin-bottom: 64px;
  max-width: 1400px;
  margin-inline: auto;
}
.footer-about .brand { margin-bottom: 18px; }
.footer-blurb { font-size: 14px; line-height: 1.65; color: rgba(247, 243, 236, 0.55); margin: 0; max-width: 280px; text-wrap: pretty; }
.footer-column { display: flex; flex-direction: column; gap: 12px; }
.footer-heading { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em; color: rgba(247, 243, 236, 0.4); margin-bottom: 6px; }
.footer-column a, .footer-column span:not(.footer-heading) { font-size: 14px; color: rgba(247, 243, 236, 0.7); }
.footer-column a:hover { color: var(--gold); }
.footer-column .muted { color: rgba(247, 243, 236, 0.55); line-height: 1.6; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(247, 243, 236, 0.08);
  padding-top: 28px;
  max-width: 1400px;
  margin-inline: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(247, 243, 236, 0.4);
}
.footer-legal-links { display: flex; gap: 24px; }
.footer-legal a { color: rgba(247, 243, 236, 0.4); }
.footer-legal a:hover { color: var(--gold); }

/* --------------------------------------------------------------------------
   Reveal animation + custom cursor
   -------------------------------------------------------------------------- */

.reveal, .reveal-line { will-change: transform, opacity; }

html.js .reveal { opacity: 0; transform: translateY(24px); }
html.js .reveal-line { transform: translateY(112%); }

html.js .reveal.is-shown,
html.js .reveal-line.is-shown {
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.95s var(--ease), opacity 0.95s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.cursor-dot, .cursor-ring { display: none; }

html.has-custom-cursor .cursor-dot,
html.has-custom-cursor .cursor-ring {
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  opacity: 0;
}
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--gold); z-index: 9999; }
.cursor-ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 1px solid rgba(232, 176, 75, 0.55);
  z-index: 9998;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background 0.35s;
}
html.has-custom-cursor, html.has-custom-cursor a, html.has-custom-cursor button { cursor: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01s !important; animation-iteration-count: 1 !important; transition-duration: 0.2s !important; scroll-behavior: auto; }
  html.js .reveal, html.js .reveal-line { opacity: 1; transform: none; }
}
