﻿@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&display=swap");

:root {
  --bg: #f4efe6;
  --bg-dark: #0b0b0b;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --border: rgba(17, 17, 17, 0.12);
  --text-primary: #101010;
  --text-secondary: #4a4a4a;
  --accent: #c46a3f;
  --accent-2: #111111;
  --radius: 18px;
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  --font-sans: "Geist", "Inter", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

.background-glow {
  display: none;
}

.hero {
  width: 100%;
  background: var(--bg-dark);
  color: #f7f1e8;
  padding: 6.5rem 0 6rem;
}

.content,
.page {
  width: min(1100px, calc(100% - 3rem));
  margin: 0 auto;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 1.4rem;
  position: sticky;
  top: 1rem;
  z-index: 10;
  backdrop-filter: none;
  background: var(--bg);
  border-bottom: 1px solid rgba(16, 16, 16, 0.12);
  border-radius: 0;
  box-shadow: none;
  width: min(1100px, calc(100% - 3rem));
  margin: 1.2rem auto 0;
}

.brand {
  color: #111111;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.top-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-nav a {
  color: #1a1a1a;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 160ms ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--accent);
}

.hero-content {
  margin: 0 auto;
  max-width: 900px;
  text-align: left;
  padding: 2.5rem 3rem 0;
}

.eyebrow {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
}

h3 {
  font-size: 1.1rem;
}

h1,
h2,
h3 {
  scroll-margin-top: 5.5rem;
}

p {
  margin: 0;
}

.lead {
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.8;
  margin-top: 1.8rem;
}

.hero-content p {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.8;
  margin-top: 1.4rem;
}

.hero .eyebrow {
  color: #cfc6ba;
}

.hero h1 {
  color: #f7f1e8;
}

.hero .lead,
.hero .hero-content p {
  color: #e0d7cb;
}

.content {
  padding: 5rem 0 6rem;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

.card,
.project-card {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.card:hover,
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(196, 106, 63, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card p,
.project-card p {
  margin-top: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface-strong);
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-link:hover,
.card-link:focus-visible {
  color: inherit;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}

.page {
  padding: 5.5rem 0 6rem;
}

.page-header {
  max-width: 720px;
  margin-bottom: 2.8rem;
}

.section-intro {
  margin-top: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.05rem;
}

.page-hero {
  max-width: 820px;
  margin-bottom: 3.5rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}

.badge {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.15);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-secondary);
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

.section-block {
  margin-top: 3.5rem;
}

.section-header {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-header p {
  margin-top: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.step {
  padding: 1.4rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.step::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(160px circle at 20% 20%, rgba(196, 106, 63, 0.12), transparent 65%);
  opacity: 0.6;
  pointer-events: none;
}

.step-index {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.step-body h3 {
  margin: 0;
  font-size: 1.05rem;
}

.step-body p {
  margin-top: 0.6rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.muted {
  color: var(--text-secondary);
  margin-top: 0.4rem;
}

.insight-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: 0.7rem;
}

.insight-list li {
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 1.1rem;
  position: relative;
}

.insight-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.2);
  text-decoration: none;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  transition: transform 180ms ease, border-color 180ms ease;
  white-space: nowrap;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(196, 106, 63, 0.5);
}

.callout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 1.8rem;
  padding: 2rem;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.callout-meta {
  display: grid;
  gap: 1rem;
}

.metric {
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: rgba(255, 255, 255, 0.9);
}

.metric-label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-value {
  display: block;
  margin-top: 0.4rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.metric-grid .metric:nth-child(3) {
  grid-column: 1 / -1;
}

.project-image {
  margin: 2.2rem 0;
  text-align: center;
}

.project-image img {
  display: block;
  margin: 0 auto;
  width: min(720px, 100%);
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.project-image--compact img {
  width: min(560px, 100%);
}

.spotlight {
  position: relative;
  overflow: hidden;
}

.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(200px circle at var(--x, 50%) var(--y, 50%), rgba(196, 106, 63, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}

.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(17, 17, 17, 0.08);
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}

.spotlight:hover::before,
.spotlight:focus-within::before,
.spotlight:hover::after,
.spotlight:focus-within::after {
  opacity: 1;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.tag {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.15);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-secondary);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-cta {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.stat-card {
  padding: 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.stat-label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.stat-value {
  display: block;
  margin-top: 0.7rem;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.barbell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}

.barbell-card {
  padding: 1.6rem;
  border-radius: 18px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.barbell-divider {
  width: 2px;
  background: linear-gradient(180deg, rgba(196, 106, 63, 0) 0%, rgba(196, 106, 63, 0.6) 50%, rgba(196, 106, 63, 0) 100%);
  border-radius: 999px;
}

.section-note {
  margin-top: 1.2rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.case-grid,
.conviction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.code-block {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: #f7f2ea;
  color: #111111;
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", "Courier New", monospace;
  font-size: 0.88rem;
  line-height: 1.6;
  word-break: break-word;
}

.code-block code {
  display: block;
}

.logo-row {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.brand-logo {
  height: 48px;
  width: auto;
  opacity: 0.95;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.25));
}

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

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

  .stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .barbell-divider {
    display: none;
  }
}

@media (max-width: 760px) {
  .content,
  .page {
    width: min(1100px, calc(100% - 1.5rem));
  }

  .top-nav {
    border-radius: 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav ul {
    gap: 0.6rem;
  }

  .card,
  .project-card {
    padding: 1.6rem;
  }

  .card-top {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

  .metric-grid .metric:nth-child(3) {
    grid-column: auto;
  }

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
