/* Alex Wayne — realalexwayne.com
   Design system shared across all pages. */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Barlow:wght@300;400;500;600&display=swap');

:root {
  --bg: #0A0A0A;
  --bg-raised: #101010;
  --gold: #C9A84C;
  --gold-light: #E2C97E;
  --text: #F0ECE4;
  --muted: #888880;
  --border: rgba(201, 168, 76, 0.18);

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Barlow', Arial, sans-serif;

  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ---------- Layout shell ---------- */

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 34px 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--border);
  padding: 22px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand svg {
  display: block;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--text);
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer p {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--gold-light);
}

/* ---------- CTA link ---------- */

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 500;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gold);
  transition: gap 0.25s ease, color 0.25s ease;
}

.cta-link:hover {
  gap: 16px;
  color: #fff;
}

.cta-link .arrow {
  transition: transform 0.25s ease;
}

.cta-link:hover .arrow {
  transform: translateX(2px);
}

/* ---------- Hero (homepage) ---------- */

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 160px 5vw 100px clamp(40px, 6vw, 96px);
}

.hero-copy .eyebrow {
  margin-bottom: 26px;
}

.hero-copy h1 {
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  color: var(--text);
  line-height: 1.35;
  max-width: 16ch;
}

.hero-copy .sub {
  margin-top: 28px;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 42ch;
  line-height: 1.75;
}

.hero-copy .cta-link {
  margin-top: 44px;
  align-self: flex-start;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  filter: url(#duotone);
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 160px 40px rgba(0, 0, 0, 0.85);
  pointer-events: none;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 10, 0.55), transparent 18%);
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    height: 56vh;
    order: -1;
  }

  .hero-copy {
    padding: 40px 28px 72px;
  }

  .site-header {
    padding: 22px 0;
  }

  .site-header.scrolled {
    padding: 16px 0;
  }

  .site-nav {
    gap: 20px;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 22px;
  }

  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-nav {
    gap: 14px;
    flex-wrap: wrap;
  }

  .site-nav a {
    font-size: 0.64rem;
    letter-spacing: 0.06em;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .placeholder-main {
    padding-top: 210px;
  }
}

/* ---------- Placeholder pages ---------- */

.placeholder-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 160px 0 100px;
}

.placeholder-main h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-top: 20px;
  max-width: 20ch;
}

.placeholder-main .sub {
  margin-top: 24px;
  color: var(--muted);
  max-width: 50ch;
  font-size: 1.02rem;
}

.placeholder-main .cta-link {
  margin-top: 40px;
}

/* ---------- Essay pages (Story) ---------- */

.essay {
  max-width: 700px;
  margin: 0 auto;
  padding: 190px 24px 140px;
}

.essay > .eyebrow {
  display: block;
  margin-bottom: 22px;
}

.essay h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  line-height: 1.28;
  color: var(--text);
  margin-bottom: 52px;
  max-width: 18ch;
}

.essay p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 26px;
}

.essay .lede {
  font-size: 1.18rem;
  color: var(--text);
}

.essay .section-mark {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin: 58px 0 20px;
}

.essay .pull-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  color: var(--gold-light);
  text-align: center;
  line-height: 1.5;
  max-width: 480px;
  margin: 56px auto;
}

.essay .closing {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.essay .cta-row {
  margin-top: 48px;
}

@media (max-width: 560px) {
  .essay {
    padding-top: 220px;
  }

  .essay .pull-quote {
    margin: 44px auto;
  }
}

/* ---------- Proof page ---------- */

.proof-main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 190px 24px 140px;
}

.proof-header {
  max-width: 620px;
  margin-bottom: 64px;
}

.proof-header .eyebrow {
  display: block;
  margin-bottom: 22px;
}

.proof-header h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  line-height: 1.25;
  margin-bottom: 22px;
}

.proof-header .sub {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.stat-tile {
  background: var(--bg);
  padding: 42px 30px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  color: var(--gold-light);
  line-height: 1.1;
}

.stat-label {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.55;
}

.stat-tag {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-top: 12px;
}

.proof-closing {
  max-width: 620px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.proof-closing p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.85;
  margin-bottom: 26px;
}

.proof-closing .cta-link {
  margin-top: 10px;
}

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

@media (max-width: 560px) {
  .proof-main {
    padding-top: 220px;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }
}

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

.contact-main {
  max-width: 620px;
  margin: 0 auto;
  padding: 190px 24px 140px;
}

.contact-photo {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 36px;
  border: 1px solid var(--border);
}

.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  filter: url(#duotone);
}

.contact-main h1 {
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  line-height: 1.3;
  margin-bottom: 20px;
}

.contact-main .sub {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
  max-width: 46ch;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--gold-light);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gold);
  transition: color 0.25s ease;
}

.contact-email:hover {
  color: #fff;
}

.contact-press {
  margin-top: 68px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.contact-press .section-mark {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 16px;
}

.contact-press p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

@media (max-width: 560px) {
  .contact-main {
    padding-top: 220px;
  }
}

/* ---------- Systems page ---------- */

.systems-main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 190px 24px 140px;
}

.systems-header {
  max-width: 620px;
  margin-bottom: 64px;
}

.systems-header .eyebrow {
  display: block;
  margin-bottom: 22px;
}

.systems-header h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  line-height: 1.25;
  margin-bottom: 22px;
}

.systems-header .sub {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.systems-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.system-card {
  position: relative;
  border: 1px solid var(--border);
  padding: 48px 38px;
  display: flex;
  flex-direction: column;
}

.system-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.system-card .eyebrow {
  margin-bottom: 18px;
}

.system-card h2 {
  font-size: 1.7rem;
  color: var(--text);
  margin-bottom: 18px;
}

.system-card p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
  flex-grow: 1;
  margin-bottom: 30px;
}

.system-card .cta-link {
  align-self: flex-start;
}

.system-card.is-pending .cta-link {
  color: var(--muted);
  border-bottom-color: var(--border);
  cursor: default;
  pointer-events: none;
}

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

@media (max-width: 560px) {
  .systems-main {
    padding-top: 220px;
  }

  .system-card {
    padding: 38px 26px;
  }
}
