/* =========================================================
   CurvatureInvest — production design system
   Logo: monochrome ivory · Accent: warm gold · Foundation: deep navy
   ========================================================= */

:root {
  --navy-deep: #0a1f3d;
  --navy: #15355c;
  --navy-mid: #1e4d7b;
  --slate-900: #0e1721;
  --slate-800: #1a2533;
  --slate-700: #2a3442;
  --slate-500: #5a6675;
  --slate-300: #aab4c2;
  --ivory: #f4efe6;
  --ivory-warm: #ebe3d3;
  --accent: #b88a3e;
  --accent-light: #d4a85c;
  --line: rgba(180, 165, 135, 0.18);
  --line-strong: rgba(180, 165, 135, 0.32);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-size: 16px; line-height: 1.6;
  color: var(--ivory);
  background: var(--slate-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400; letter-spacing: -0.02em; line-height: 1.1;
}

.eyebrow {
  font-family: 'Inter Tight', sans-serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1.25rem; display: inline-block;
}
.eyebrow::before {
  content: ''; display: inline-block;
  width: 28px; height: 1px; background: var(--accent);
  margin-right: 0.75rem; vertical-align: middle;
}

p { color: var(--slate-300); }
.lede { font-size: 1.25rem; line-height: 1.5; color: var(--ivory); font-weight: 300; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 980px; margin: 0 auto; padding: 0 2rem; }

section { padding: 6rem 0; position: relative; }
@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .container, .container-narrow { padding: 0 1.25rem; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.25rem 0;
  background: rgba(10, 23, 33, 0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s ease;
}
.site-header.scrolled { padding: 0.75rem 0; background: rgba(10, 23, 33, 0.95); }

.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1320px; margin: 0 auto; padding: 0 2rem;
}
@media (max-width: 768px) { .nav-inner { padding: 0 1.25rem; } }

.brand img { height: 40px; width: auto; display: block; opacity: 0.95; }
.site-header.scrolled .brand img { height: 34px; }

.nav-links {
  display: flex; gap: 2.5rem; list-style: none; align-items: center;
}
.nav-links a {
  font-size: 0.9rem; font-weight: 400;
  color: var(--slate-300); letter-spacing: 0.01em;
  position: relative; padding-bottom: 4px;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--ivory); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--ivory); }

.nav-cta {
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 0.85rem; letter-spacing: 0.05em;
  transition: all 0.25s ease;
}
.nav-cta:hover {
  background: var(--accent); border-color: var(--accent);
  color: var(--slate-900) !important;
}
.nav-cta::after { display: none; }

.nav-toggle {
  display: none; background: none; border: none;
  color: var(--ivory); cursor: pointer; padding: 0.5rem;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 960px) {
  .nav-links {
    position: fixed; top: 0; right: 0;
    height: 100vh; width: min(80%, 360px);
    background: var(--slate-900);
    border-left: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; justify-content: center;
    padding: 4rem 2.5rem; gap: 1.75rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; z-index: 101; }
  .nav-links a { font-size: 1.1rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1rem 2rem; font-size: 0.85rem;
  letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500;
  border: 1px solid transparent; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: var(--slate-900); }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); }

.btn-secondary { background: transparent; color: var(--ivory); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-light); }

.btn-ghost {
  background: transparent; color: var(--ivory);
  padding: 0.6rem 0; border-bottom: 1px solid var(--accent);
  font-size: 0.85rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-ghost:hover { color: var(--accent-light); }
.btn-ghost svg { transition: transform 0.25s ease; }
.btn-ghost:hover svg { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: flex-end;
  padding: 8rem 0 5rem; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(10, 23, 33, 0.6) 0%, rgba(10, 23, 33, 0.85) 60%, var(--slate-900) 100%),
    linear-gradient(to right, rgba(10, 31, 61, 0.7), transparent 50%);
}
.hero-content { position: relative; z-index: 2; max-width: 920px; }
.hero h1 {
  font-size: clamp(2.5rem, 6.5vw, 5.4rem);
  line-height: 1.02; margin-bottom: 1.75rem; font-weight: 300;
}
.hero h1 em { font-style: italic; color: var(--accent-light); font-weight: 300; }
.hero .lede {
  max-width: 640px; margin-bottom: 2.5rem;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}
.hero-meta {
  display: flex; gap: 3rem; margin-top: 3rem;
  padding-top: 2rem; border-top: 1px solid var(--line); flex-wrap: wrap;
}
.hero-meta-item .label {
  display: block; font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-light); margin-bottom: 0.5rem;
}
.hero-meta-item .value {
  font-family: 'Fraunces', serif; font-size: 1.5rem;
  color: var(--ivory); font-weight: 300;
}

/* ---------- Section header ---------- */
.section-header {
  margin-bottom: 4rem;
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 4rem; align-items: end;
}
.section-header h2 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 300; }
.section-header h2 em { font-style: italic; color: var(--accent-light); }
.section-header p { font-size: 1.05rem; max-width: 520px; }
@media (max-width: 768px) {
  .section-header { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 2.5rem; }
}

/* ---------- Audience cards ---------- */
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .audience-grid { grid-template-columns: 1fr; } }

.audience-card {
  position: relative; overflow: hidden;
  background: var(--slate-800); border: 1px solid var(--line);
  min-height: 480px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.audience-card .img-bg { position: absolute; inset: 0; z-index: 0; }
.audience-card .img-bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.35; transition: all 0.6s ease;
}
.audience-card .img-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 23, 33, 0.96) 0%, rgba(10, 23, 33, 0.7) 50%, rgba(10, 23, 33, 0.4) 100%);
}
.audience-card:hover .img-bg img { opacity: 0.55; transform: scale(1.04); }
.audience-card:hover { border-color: var(--accent); }
.audience-card-content { position: relative; z-index: 1; }
.audience-card .number {
  font-family: 'Fraunces', serif; font-size: 0.9rem;
  color: var(--accent-light); margin-bottom: 1rem; letter-spacing: 0.05em;
}
.audience-card h3 { font-size: 1.85rem; margin-bottom: 1rem; font-weight: 400; }
.audience-card p { margin-bottom: 1.75rem; font-size: 0.95rem; color: var(--slate-300); }
.audience-card .arrow-link {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--accent-light); font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.audience-card .arrow-link svg { transition: transform 0.25s ease; }
.audience-card:hover .arrow-link svg { transform: translateX(6px); }

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--navy-deep);
}
@media (max-width: 900px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stat-strip { grid-template-columns: 1fr; } }

.stat-strip > div {
  padding: 3rem 2rem; border-right: 1px solid var(--line); text-align: center;
}
.stat-strip > div:last-child { border-right: none; }
.stat-strip .stat-value {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--accent-light); font-weight: 300;
  margin-bottom: 0.5rem; line-height: 1;
}
.stat-strip .stat-label {
  font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--slate-300);
}

/* ---------- Pull quote ---------- */
.pull-quote { background: var(--navy-deep); position: relative; overflow: hidden; }
.pull-quote::before {
  content: '"'; position: absolute; top: -3rem; left: 2rem;
  font-family: 'Fraunces', serif; font-size: 22rem;
  color: var(--accent); opacity: 0.06; line-height: 1;
}
.pull-quote-content {
  max-width: 920px; margin: 0 auto; text-align: center;
  position: relative; z-index: 1;
}
.pull-quote blockquote {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.35; color: var(--ivory);
  font-weight: 300; font-style: italic;
}
.pull-quote blockquote em { color: var(--accent-light); }

/* ---------- Feature split ---------- */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
@media (max-width: 900px) { .feature-split { grid-template-columns: 1fr; gap: 2.5rem; } }
.feature-split .image-wrap {
  position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--navy);
}
.feature-split .image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.feature-split .image-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(10, 31, 61, 0.4));
  pointer-events: none;
}
.feature-split.reverse { direction: rtl; }
.feature-split.reverse > * { direction: ltr; }
.feature-content h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem); font-weight: 300; margin-bottom: 1.5rem;
}
.feature-content h2 em { font-style: italic; color: var(--accent-light); }
.feature-content p { margin-bottom: 1.25rem; font-size: 1rem; }

/* ---------- Tri-grid ---------- */
.tri-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .tri-grid { grid-template-columns: 1fr; } }
.tri-grid > div {
  padding: 3rem 2.5rem;
  border-right: 1px solid var(--line);
  position: relative;
}
.tri-grid > div:last-child { border-right: none; }
@media (max-width: 900px) {
  .tri-grid > div { border-right: none; border-bottom: 1px solid var(--line); }
  .tri-grid > div:last-child { border-bottom: none; }
}
.tri-grid h3 {
  font-size: 1.3rem; margin-bottom: 1.5rem;
  font-weight: 400; color: var(--ivory);
}
.tri-grid .num {
  font-family: 'Fraunces', serif; font-size: 0.85rem;
  color: var(--accent-light); margin-bottom: 1rem;
  display: block; letter-spacing: 0.05em;
}
.tri-grid ul { list-style: none; }
.tri-grid li {
  font-size: 0.92rem; color: var(--slate-300);
  padding: 0.5rem 0 0.5rem 1.25rem;
  position: relative; border-bottom: 1px solid var(--line);
  line-height: 1.5;
}
.tri-grid li:last-child { border-bottom: none; }
.tri-grid li::before {
  content: '—'; position: absolute; left: 0;
  color: var(--accent);
}
.tri-grid p { font-size: 0.92rem; margin-bottom: 1rem; line-height: 1.55; }

/* ---------- Fit box ---------- */
.fit-box {
  background: var(--navy); border: 1px solid var(--line-strong);
  padding: 3.5rem; position: relative;
}
@media (max-width: 768px) { .fit-box { padding: 2rem 1.5rem; } }
.fit-box h3 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 300; margin-bottom: 1rem;
}
.fit-box .lede { margin-bottom: 2.5rem; }
.fit-list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2.5rem; list-style: none;
}
@media (max-width: 768px) { .fit-list { grid-template-columns: 1fr; } }
.fit-list li {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 0.85rem 0; border-bottom: 1px solid var(--line);
  color: var(--ivory); font-size: 0.95rem; line-height: 1.4;
}
.fit-list li::before {
  content: '✓'; color: var(--accent-light); font-size: 1rem;
  flex-shrink: 0; margin-top: 0.1rem;
}

/* ---------- Process steps ---------- */
.process-steps {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0; margin-top: 3rem;
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) { .process-steps { grid-template-columns: 1fr; } }
.process-steps > div {
  padding: 2.5rem 1.75rem;
  border-right: 1px solid var(--line);
  position: relative;
}
.process-steps > div:last-child { border-right: none; }
@media (max-width: 900px) {
  .process-steps > div { border-right: none; border-bottom: 1px solid var(--line); }
}
.process-steps .step-num {
  font-family: 'Fraunces', serif; font-size: 2.25rem;
  color: var(--accent); font-weight: 300;
  display: block; margin-bottom: 1rem; line-height: 1;
}
.process-steps p { font-size: 0.92rem; color: var(--ivory); line-height: 1.45; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--navy-deep); position: relative; overflow: hidden;
  padding: 7rem 0;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(184, 138, 62, 0.12), transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(30, 77, 123, 0.4), transparent 50%);
}
.cta-banner-content {
  position: relative; z-index: 1; max-width: 800px;
  margin: 0 auto; text-align: center;
}
.cta-banner h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300; margin-bottom: 1.5rem; line-height: 1.1;
}
.cta-banner h2 em { font-style: italic; color: var(--accent-light); }
.cta-banner p { font-size: 1.1rem; margin-bottom: 2.5rem; color: var(--slate-300); }

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; min-height: 60vh;
  display: flex; align-items: flex-end;
  padding: 9rem 0 4rem; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero .hero-bg img { opacity: 0.4; }
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 300; margin-bottom: 1.5rem; line-height: 1.05;
  max-width: 900px;
}
.page-hero h1 em { font-style: italic; color: var(--accent-light); }
.page-hero .lede { max-width: 700px; }

/* ---------- Case card ---------- */
.case-card {
  display: grid; grid-template-columns: 1.1fr 1fr;
  background: var(--navy-deep); border: 1px solid var(--line);
  overflow: hidden;
}
@media (max-width: 900px) { .case-card { grid-template-columns: 1fr; } }
.case-card .case-img {
  background: var(--navy); position: relative;
  min-height: 480px; overflow: hidden;
}
.case-card .case-img img { width: 100%; height: 100%; object-fit: cover; }
.case-card .case-content { padding: 3.5rem; }
@media (max-width: 768px) {
  .case-card .case-content { padding: 2rem 1.5rem; }
  .case-card .case-img { min-height: 280px; }
}
.case-card h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 300; margin-bottom: 1.5rem;
}
.case-card .case-meta {
  display: flex; gap: 2rem; margin: 2rem 0;
  padding-top: 1.5rem; border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.case-card .case-meta-item .label {
  display: block; font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--accent-light); margin-bottom: 0.4rem;
}
.case-card .case-meta-item .value {
  font-family: 'Fraunces', serif; font-size: 1.1rem; color: var(--ivory);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 5rem; align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 3rem; } }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-form label {
  display: block; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent-light); margin-bottom: 0.5rem;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%; background: var(--slate-800);
  border: 1px solid var(--line);
  padding: 0.95rem 1rem;
  color: var(--ivory); font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { outline: none; border-color: var(--accent); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button { align-self: flex-start; margin-top: 0.5rem; }

.contact-info {
  background: var(--navy-deep); border: 1px solid var(--line);
  padding: 3rem;
}
@media (max-width: 768px) { .contact-info { padding: 2rem 1.5rem; } }
.contact-info h3 { font-size: 1.5rem; font-weight: 400; margin-bottom: 2rem; }
.contact-info-item { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .label {
  font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--accent-light); margin-bottom: 0.5rem;
}
.contact-info-item .value { font-size: 1rem; color: var(--ivory); }
.contact-info-item a:hover { color: var(--accent-light); }

.disclaimer {
  margin-top: 3rem; padding: 2rem;
  background: var(--slate-800); border-left: 2px solid var(--accent);
  font-size: 0.85rem; line-height: 1.55; color: var(--slate-300);
}
.disclaimer strong {
  display: block; color: var(--ivory);
  margin-bottom: 0.5rem; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.15em;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--slate-900);
  border-top: 1px solid var(--line);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr repeat(2, 1fr);
  gap: 3rem; margin-bottom: 3rem;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer-brand img {
  height: 50px; width: auto;
  margin-bottom: 1rem; display: block; opacity: 0.9;
}
.footer-tag {
  color: var(--slate-300); font-size: 0.92rem;
  max-width: 360px; line-height: 1.55;
}
.footer-col h4 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--accent-light);
  margin-bottom: 1.25rem; font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a {
  color: var(--slate-300); font-size: 0.92rem;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--ivory); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 2rem;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.82rem; color: var(--slate-500);
}
.footer-bottom-links { display: flex; gap: 2rem; }
.footer-bottom-links a:hover { color: var(--ivory); }

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

.hero-content > * { animation: fadeUp 1s cubic-bezier(0.4, 0, 0.2, 1) backwards; }
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.25s; }
.hero-content > *:nth-child(3) { animation-delay: 0.4s; }
.hero-content > *:nth-child(4) { animation-delay: 0.55s; }
.hero-content > *:nth-child(5) { animation-delay: 0.7s; }

.hero-bg { animation: fadeIn 1.4s ease backwards; }

.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Form submit: loading state ---------- */
#contact-submit { position: relative; min-width: 200px; }
#contact-submit .btn-spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(14, 23, 33, 0.25);
  border-top-color: var(--slate-900);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
#contact-submit.is-loading .btn-label,
#contact-submit.is-loading .btn-arrow { opacity: 0.4; }
#contact-submit.is-loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Form error ---------- */
.form-error {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(140, 74, 43, 0.12);
  border-left: 2px solid var(--rust, #8c4a2b);
  color: var(--ivory);
  font-size: 0.9rem;
  line-height: 1.5;
}
.form-error strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ivory);
}
.form-error a { color: var(--accent-light); border-bottom: 1px solid var(--accent); }

/* ---------- Form success state ---------- */
.form-success {
  animation: successFade 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
  padding: 1rem 0;
}
@keyframes successFade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.form-success .success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-light);
  margin-bottom: 2rem;
}
.form-success .eyebrow { margin-bottom: 1rem; }
.form-success h3 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
  color: var(--ivory);
}
.form-success h3 em {
  font-style: italic;
  color: var(--accent-light);
  font-weight: 300;
}
.form-success p {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--slate-300);
  margin-bottom: 1rem;
  max-width: 520px;
}
.form-success .success-meta {
  font-size: 0.92rem;
  color: var(--slate-500);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.form-success .success-meta a {
  color: var(--accent-light);
  border-bottom: 1px solid var(--accent);
  transition: color 0.2s ease;
}
.form-success .success-meta a:hover { color: var(--ivory); }

/* hidden attribute must override display: flex on flex containers */
.contact-form[hidden] { display: none; }

/* ---------- Legal pages (prose layout) ---------- */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 2rem;
}
.legal-content h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ivory);
  margin: 3rem 0 1rem;
  letter-spacing: -0.01em;
}
.legal-content h2:first-of-type { margin-top: 1rem; }
.legal-content h3 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 2rem 0 0.75rem;
}
.legal-content p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--slate-300);
  margin-bottom: 1rem;
}
.legal-content p strong { color: var(--ivory); font-weight: 500; }
.legal-content ul {
  margin: 1rem 0 1.25rem 0;
  padding-left: 0;
  list-style: none;
}
.legal-content li {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--slate-300);
  padding: 0.35rem 0 0.35rem 1.5rem;
  position: relative;
}
.legal-content li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.legal-content a {
  color: var(--accent-light);
  border-bottom: 1px solid var(--accent);
  transition: color 0.2s ease;
}
.legal-content a:hover { color: var(--ivory); }
.legal-meta {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--slate-500);
  font-style: italic;
}
.legal-block {
  background: var(--navy-deep);
  border: 1px solid var(--line);
  padding: 2rem;
  margin: 1.5rem 0;
}
.legal-block .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-light);
  margin-bottom: 0.4rem;
  display: block;
}
.legal-block .value {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  color: var(--ivory);
  font-weight: 300;
}
