/* ==========================================================================
   Wade Capital — site styles
   --------------------------------------------------------------------------
   EDIT THE LOOK HERE. Every color, font, size, and spacing value used on the
   site is defined in the :root block directly below. Change a value once
   and it updates everywhere.
   ========================================================================== */

:root {
  /* ---- Colors ---- */
  --color-bg: #07090F;              /* near-black page background */
  --color-navy: #0B1628;            /* sections and cards */
  --color-navy-raised: #0F1D33;     /* cards on hover, form fields */
  --color-gold: #B8975A;            /* accent: rules, buttons, tags */
  --color-gold-bright: #CDB07A;     /* accent on hover */
  --color-cream: #F3EDE0;           /* main text */
  --color-gray: #9AA3B2;            /* secondary text */
  --color-line: rgba(184, 151, 90, 0.22);        /* thin gold borders */
  --color-line-strong: rgba(184, 151, 90, 0.55); /* borders on hover */
  --color-glow: rgba(184, 151, 90, 0.10);        /* mouse-follow glow on cards */
  --color-header-bg: rgba(7, 9, 15, 0.84);       /* header after scrolling */

  /* ---- Fonts ---- */
  --font-serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* ---- Type sizes (they scale smoothly between phone and desktop) ---- */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: 1.1875rem;
  --text-h3: clamp(1.5rem, 2.2vw, 1.85rem);
  --text-h2: clamp(2.1rem, 4.2vw, 3.2rem);
  --text-h1: clamp(2.6rem, 6.4vw, 5rem);

  /* ---- Spacing ---- */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-section: clamp(5rem, 11vw, 9rem);  /* space above/below each section */
  --gutter: 16px;                             /* page edge padding on phones */
  --container: 1180px;                        /* max content width */

  /* ---- Shapes ---- */
  --radius: 2px;
  --header-height: 80px;
  --header-height-scrolled: 66px;

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.25s;
  --dur: 0.45s;
  --dur-slow: 0.9s;
  --stagger: 90ms;                  /* delay between cards in a cascade */
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height-scrolled) + 24px);
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-cream);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Fine grain texture over the whole page, like quality paper */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); line-height: 1.15; }
h1 em, h2 em { font-style: italic; color: var(--color-gold); }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

::selection { background: var(--color-gold); color: var(--color-bg); }

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 200;
  background: var(--color-gold);
  color: var(--color-bg);
  padding: 0.6rem 1rem;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ==========================================================================
   Small building blocks
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 var(--space-3);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.lead {
  font-size: var(--text-lg);
  color: var(--color-gray);
  max-width: 58ch;
}

.muted { color: var(--color-gray); }

/* Thin gold divider that draws itself across when scrolled into view */
.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-line) 55%, transparent 100%);
  transform-origin: left center;
}

/* Status tags: "Live", "Coming Soon", "Launching Soon" */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
  white-space: nowrap;
}
.tag--live { color: var(--color-cream); border-color: var(--color-line); }
.tag--live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(184, 151, 90, 0.18);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.8rem 1.6rem;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
/* Gold fill that sweeps in from the left on hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--dur) var(--ease-out);
}
.btn:hover::before,
.btn:focus-visible::before {
  transform: scaleX(1);
  transform-origin: left center;
}

.btn-outline { color: var(--color-gold); background: transparent; }
.btn-outline:hover,
.btn-outline:focus-visible { color: var(--color-bg); }

.btn-solid { color: var(--color-bg); background: var(--color-gold); }
.btn-solid::before { background: var(--color-cream); }
.btn-solid:hover, .btn-solid:focus-visible { border-color: var(--color-cream); }

.btn-sm { min-height: 40px; padding: 0.55rem 1.1rem; font-size: 0.75rem; }

.btn .arrow { transition: transform var(--dur) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* A button that isn't live yet (e.g. App Store link before launch) */
.btn[aria-disabled="true"] { cursor: not-allowed; opacity: 0.75; }
.btn[aria-disabled="true"]::before { display: none; }
.btn-outline[aria-disabled="true"]:hover { color: var(--color-gold); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* Text link with an arrow, used on cards */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-gold);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.text-link .arrow { transition: transform var(--dur) var(--ease-out); }
.text-link:hover { color: var(--color-gold-bright); }
.text-link:hover .arrow { transform: translateX(4px); }

/* ==========================================================================
   Header and navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header-height);
  transition: height var(--dur) var(--ease);
}
/* Background lives on a pseudo-element so the mobile menu can still cover
   the full screen (a blur on the header itself would trap it). */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-header-bg);
  border-bottom: 1px solid var(--color-line);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.site-header.is-scrolled { height: var(--header-height-scrolled); }
.site-header.is-scrolled::before { opacity: 1; }

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

.brand { display: block; flex-shrink: 0; position: relative; z-index: 2; }
.brand img { width: 172px; height: auto; transition: width var(--dur) var(--ease); }
.is-scrolled .brand img { width: 158px; }

.site-nav { display: flex; align-items: center; gap: var(--space-4); }

.nav-list {
  display: flex;
  gap: var(--space-4);
  list-style: none;
  margin: 0; padding: 0;
}
.nav-list a {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  color: var(--color-gray);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
/* Underline that grows from the center */
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--color-gold);
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease-out);
}
.nav-list a:hover { color: var(--color-cream); }
.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--color-cream); }

/* Hamburger button (phones and small tablets) */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 44px; height: 44px;
  margin-right: -10px;
  background: none;
  border: 0;
  color: var(--color-cream);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) var(--ease);
}
.nav-toggle-bars { top: 50%; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; left: 0; }
.nav-toggle-bars::before { transform: translateY(-7px); }
.nav-toggle-bars::after { transform: translateY(7px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: rotate(-45deg); }

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

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-5);
    padding: var(--header-height) var(--gutter) var(--space-5);
    background: var(--color-bg);
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--dur) var(--ease), visibility 0s linear var(--dur);
  }
  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transition: opacity var(--dur) var(--ease), visibility 0s;
  }
  .nav-list { flex-direction: column; gap: var(--space-2); }
  .nav-list a {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 9vw, 3rem);
    color: var(--color-cream);
    letter-spacing: 0;
    line-height: 1.2;
  }
  .nav-list a::after { transform-origin: left center; }
  .nav-list li,
  .site-nav > .btn {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity var(--dur) var(--ease), transform var(--dur-slow) var(--ease-out);
  }
  .site-nav.is-open .nav-list li,
  .site-nav.is-open > .btn { opacity: 1; transform: none; }
  .site-nav.is-open .nav-list li:nth-child(1) { transition-delay: 60ms; }
  .site-nav.is-open .nav-list li:nth-child(2) { transition-delay: 120ms; }
  .site-nav.is-open .nav-list li:nth-child(3) { transition-delay: 180ms; }
  .site-nav.is-open .nav-list li:nth-child(4) { transition-delay: 240ms; }
  .site-nav.is-open > .btn { transition-delay: 300ms; }

  body.nav-locked { overflow: hidden; }
}

/* ==========================================================================
   Hero (home) and page heroes (inner pages)
   ========================================================================== */

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* Faint architectural grid behind the hero, fading out toward the edges */
.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(184, 151, 90, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(184, 151, 90, 0.07) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 70% at 70% 40%, #000 20%, transparent 75%);
}
/* Soft light from the upper right */
.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(184, 151, 90, 0.08), transparent);
  pointer-events: none;
}

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + var(--space-5)) 0 var(--space-6);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
}
.hero h1 { max-width: 15ch; margin-bottom: var(--space-4); }
.hero .lead { margin-bottom: var(--space-5); }
.hero-rule { width: min(220px, 40%); margin-bottom: var(--space-4); }

.hero-mark { width: clamp(84px, 24vw, 120px); color: var(--color-gold); }
.hero-mark svg { width: 100%; overflow: visible; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.35fr 1fr; }
  .hero-mark { order: 2; width: 100%; max-width: 400px; justify-self: end; }
}

.page-hero {
  padding: calc(var(--header-height) + var(--space-6)) 0 var(--space-6);
  border-bottom: 1px solid var(--color-line);
}
.page-hero h1 { max-width: 18ch; margin-bottom: var(--space-3); }

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: var(--space-section) 0; position: relative; }
.section--navy { background: var(--color-navy); }
.section--bordered { border-top: 1px solid var(--color-line); }

.section-head { max-width: 760px; margin-bottom: var(--space-5); }
.section-head h2 { margin-bottom: var(--space-3); }

.section-head--split {
  max-width: none;
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1fr 1fr; align-items: end; gap: var(--space-5); }
  .section-head--split .lead { margin-bottom: 0.4em; }
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .card-grid--2, .card-grid--4 { grid-template-columns: repeat(2, 1fr); } .card-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } .card-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--color-navy);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.section--navy .card { background: var(--color-bg); }

/* Soft gold light that follows the mouse */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), var(--color-glow), transparent 45%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}
/* Gold line that draws along the top edge on hover */
.card::after {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 1px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-slow) var(--ease-out);
}
@media (hover: hover) {
  .card:hover { transform: translateY(-3px); border-color: var(--color-line-strong); }
  .card:hover::before { opacity: 1; }
  .card:hover::after { transform: scaleX(1); }
}
.card:focus-within { border-color: var(--color-line-strong); }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-2);
}
.card-index {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--color-gold);
  letter-spacing: 0.05em;
}
.card h3 { margin-top: var(--space-1); }
.card p { color: var(--color-gray); font-size: 0.975rem; }
.card-foot { margin-top: auto; padding-top: var(--space-2); }
.card-kicker {
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gray);
}

/* Whole card is clickable (pillar cards) */
.card--link { text-decoration: none; color: inherit; }
.card--link::after { z-index: 1; }

/* Larger product cards */
.card--feature { padding: clamp(var(--space-4), 4vw, var(--space-5)); gap: var(--space-3); min-height: 360px; }
.card--feature h3 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.card--feature .card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.card-note { font-size: var(--text-xs); color: var(--color-gray); letter-spacing: 0.04em; }

/* Example cards (our own products, on the services page) */
.card--example { border-style: dashed; }

/* ==========================================================================
   The Sovereign: latest posts (home page)
   ========================================================================== */

.post-card { min-height: 220px; text-decoration: none; color: inherit; }
.post-card h3 { font-size: clamp(1.45rem, 2vw, 1.7rem); }
.post-card time { font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-gray); }
.post-card.is-new { animation: post-in var(--dur-slow) var(--ease-out) both; animation-delay: calc(var(--i, 0) * var(--stagger)); }
@keyframes post-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Quiet grey bars shown for a moment while posts load */
.post-card.is-placeholder span {
  display: block;
  height: 12px;
  width: 30%;
  background: rgba(154, 163, 178, 0.12);
  border-radius: var(--radius);
}
.post-card.is-placeholder span:nth-child(2) { height: 22px; width: 80%; margin-top: var(--space-2); }
.post-card.is-placeholder span:nth-child(3) { width: 65%; }
.post-card.is-placeholder::after { display: none; }

.feed-fallback { margin-top: var(--space-3); color: var(--color-gray); }

/* ==========================================================================
   Outlook / call-to-action blocks
   ========================================================================== */

.cta-block {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 900px) {
  .cta-block { grid-template-columns: 1.2fr 1fr; gap: var(--space-6); align-items: end; }
}
.role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
}
.role-list li {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  color: var(--color-cream);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.role-list li:hover { border-color: var(--color-line-strong); color: var(--color-gold-bright); }

.closing {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.closing h2 { margin-bottom: var(--space-3); }
.closing .lead { margin: 0 auto var(--space-4); }
.closing .btn-row { justify-content: center; }

/* ==========================================================================
   About page
   ========================================================================== */

.split {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1.5fr; gap: var(--space-6); }
}
.split .big-text {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.35;
  color: var(--color-cream);
}

.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-line);
}
.principle {
  display: grid;
  gap: var(--space-1) var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-line);
}
@media (min-width: 768px) {
  .principle { grid-template-columns: 80px 1fr 1.4fr; align-items: baseline; }
}
.principle .num { font-family: var(--font-serif); color: var(--color-gold); font-size: 1.25rem; }
.principle h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.principle p { color: var(--color-gray); }

.founder {
  max-width: 760px;
  padding-left: var(--space-4);
  border-left: 1px solid var(--color-gold);
}
.founder p { font-family: var(--font-serif); font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.4; }

/* ==========================================================================
   Services page
   ========================================================================== */

.pillar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
}
.pillar-nav a {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  color: var(--color-cream);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.pillar-nav a:hover { border-color: var(--color-gold); color: var(--color-gold-bright); }

.pillar-head {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
@media (min-width: 900px) {
  .pillar-head { grid-template-columns: 1fr 1.3fr; gap: var(--space-6); align-items: end; }
}
.pillar-head .num { font-family: var(--font-serif); color: var(--color-gold); font-size: 1.25rem; display: block; margin-bottom: var(--space-2); }

.coming-soon {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px dashed var(--color-line-strong);
  border-radius: var(--radius);
  max-width: 760px;
}
.coming-soon p { color: var(--color-gray); }

/* ==========================================================================
   Contact page: tabs and forms
   ========================================================================== */

.contact-layout {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 1000px) {
  .contact-layout { grid-template-columns: 1fr 2fr; gap: var(--space-6); }
}
.contact-aside h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: var(--space-3); }
.contact-aside .email-link {
  display: inline-block;
  margin-top: var(--space-2);
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  color: var(--color-gold);
  text-decoration: none;
  border-bottom: 1px solid var(--color-line-strong);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  word-break: break-word;
}
.contact-aside .email-link:hover { color: var(--color-gold-bright); border-color: var(--color-gold); }

.tabs {
  position: relative;
  display: flex;
  border-bottom: 1px solid var(--color-line);
  margin-bottom: var(--space-4);
}
.tab {
  flex: 1 1 0;
  padding: 1rem 0.5rem;
  background: none;
  border: 0;
  color: var(--color-gray);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease);
}
.tab:hover { color: var(--color-cream); }
.tab[aria-selected="true"] { color: var(--color-gold); }
/* Gold bar that slides between the two tabs */
.tabs-indicator {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 50%;
  height: 2px;
  background: var(--color-gold);
  transition: transform var(--dur) var(--ease-out);
}
.tabs[data-active="collaborate"] .tabs-indicator { transform: translateX(100%); }
html:not(.js) .tabs { display: none; }

.form-panel { scroll-margin-top: calc(var(--header-height-scrolled) + 24px); }
.form-panel + .form-panel { margin-top: var(--space-6); }
.js .form-panel + .form-panel { margin-top: 0; }
.form-panel.is-entering { animation: panel-in var(--dur-slow) var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.form-intro { color: var(--color-gray); margin-bottom: var(--space-4); }

.form-grid {
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}

.field { display: flex; flex-direction: column; gap: 0.45rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label,
.field legend {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-cream);
  padding: 0;
}
.field .optional { color: var(--color-gray); font-weight: 400; }
.field .req { color: var(--color-gold); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="file"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.8rem 0.95rem;
  background: var(--color-navy);
  border: 1px solid rgba(154, 163, 178, 0.35);
  border-radius: var(--radius);
  color: var(--color-cream);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23B8975A' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.field select option { background: var(--color-navy); color: var(--color-cream); }
.field input::placeholder, .field textarea::placeholder { color: #6F7888; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--color-line-strong); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  background-color: var(--color-navy-raised);
  box-shadow: 0 0 0 3px rgba(184, 151, 90, 0.18);
}
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: #D98C7A; }

.check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.2rem;
}
.check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(154, 163, 178, 0.35);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.check:hover { border-color: var(--color-line-strong); }
.check input { accent-color: var(--color-gold); width: 16px; height: 16px; margin: 0; }
.check:has(input:checked) { border-color: var(--color-gold); background: rgba(184, 151, 90, 0.08); }
.check-error { color: #E3A898; font-size: var(--text-sm); margin: 0.3rem 0 0; }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin-top: var(--space-4);
}
.form-foot p { font-size: var(--text-xs); color: var(--color-gray); margin: 0; }

.hp { display: none !important; }

/* ==========================================================================
   Simple centered pages (thank you, 404)
   ========================================================================== */

.center-page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + var(--space-5)) 0 var(--space-5);
}
.center-page .inner { max-width: 640px; }
.center-page h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: var(--space-3); }
.center-page .lead { margin-bottom: var(--space-4); }
.center-page .mark { width: 72px; margin-bottom: var(--space-4); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: var(--space-6) 0 var(--space-4);
  background: var(--color-bg);
  border-top: 1px solid var(--color-line);
  font-size: var(--text-sm);
}
.footer-top {
  display: grid;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
}
@media (min-width: 768px) {
  .footer-top { grid-template-columns: 1.3fr 1fr 1fr; }
}
.footer-brand img { width: 64px; margin-bottom: var(--space-3); }
.footer-brand p { color: var(--color-gray); max-width: 34ch; }
.footer-title {
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 var(--space-2);
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-links a {
  color: var(--color-cream);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
.footer-links a:hover { color: var(--color-gold-bright); }
.footer-bottom {
  display: grid;
  gap: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-line);
  color: var(--color-gray);
  font-size: var(--text-xs);
}
.footer-bottom p { margin: 0; max-width: 90ch; }

/* ==========================================================================
   Motion: scroll reveals
   Only hidden when JavaScript is running, so content is never lost.
   ========================================================================== */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity var(--dur-slow) var(--ease),
    transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}
.js .reveal.is-visible { opacity: 1; transform: none; }

.js .rule.reveal { opacity: 1; transform: scaleX(0); transition: transform 1.4s var(--ease-out); }
.js .rule.reveal.is-visible { transform: scaleX(1); }

/* Cards keep their own hover movement once they've appeared */
.js .card.reveal.is-visible { transition: opacity var(--dur-slow) var(--ease), transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease); transition-delay: 0s; }

/* ==========================================================================
   Motion: home page opening sequence
   The logo draws itself, then the headline rises in. Plays once per visit.
   ========================================================================== */

.intro .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.3s var(--ease) forwards;
}
.intro .draw--inner { animation-delay: 0.25s; animation-duration: 1.2s; }
.intro .draw--line { animation-delay: 0.7s; animation-duration: 0.9s; }
.intro .letter { opacity: 0; animation: letter-in 0.9s var(--ease) forwards; }
.intro .letter--w { animation-delay: 1.05s; }
.intro .letter--c { animation-delay: 1.25s; }

.intro .rise { opacity: 0; transform: translateY(24px); animation: rise 1.1s var(--ease-out) forwards; }
.intro .rise-1 { animation-delay: 0.3s; }
.intro .rise-2 { animation-delay: 0.45s; }
.intro .rise-3 { animation-delay: 0.9s; }
.intro .rise-4 { animation-delay: 1.05s; }
.intro .hero-rule { transform: scaleX(0); animation: grow 1.3s var(--ease-out) 0.75s forwards; }
.intro .site-header { opacity: 0; animation: fade 0.9s var(--ease) 0.2s forwards; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes letter-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes grow { to { transform: scaleX(1); } }
@keyframes fade { to { opacity: 1; } }

/* ==========================================================================
   Motion: gentle fade between pages (supported browsers only)
   ========================================================================== */

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.28s var(--ease) both vt-out; }
::view-transition-new(root) { animation: 0.45s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ==========================================================================
   Respect "reduce motion" settings: everything appears instantly.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal, .js .rule.reveal { opacity: 1; transform: none; }
  .card:hover { transform: none; }
}

/* ---- Guides (articles) ---- */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--text-h3); margin: var(--space-5) 0 var(--space-2); }
.prose p, .prose li { color: var(--color-cream); line-height: 1.75; margin-bottom: var(--space-2); }
.prose ul, .prose ol { padding-left: 1.25em; margin-bottom: var(--space-3); }
.prose a { color: var(--color-gold-bright); }
.guide-list { list-style: none; padding: 0; }
.guide-list li { border-bottom: 1px solid var(--color-line); padding: var(--space-3) 0; }
.guide-list a { font-family: var(--font-serif); font-size: var(--text-h3); text-decoration: none; }
.guide-list p { color: var(--color-gray); margin: var(--space-1) 0 0; }
.guide-cta { margin-top: var(--space-6); padding: var(--space-4); border: 1px solid var(--color-line-strong); background: var(--color-navy); }
.guide-cta h2 { margin-top: 0; }
.faq-item { border-bottom: 1px solid var(--color-line); padding: var(--space-2) 0; }
.faq-item summary { cursor: pointer; font-family: var(--font-serif); font-size: var(--text-lg); color: var(--color-cream); }
.faq-item p { margin-top: var(--space-1); color: var(--color-gray); }
