:root {
  --bg: #09090a;
  --bg-soft: #111214;
  --surface: rgba(17, 18, 20, 0.76);
  --surface-strong: rgba(20, 21, 24, 0.92);
  --surface-elevated: rgba(24, 25, 29, 0.96);
  --ink: #f0ece5;
  --ink-soft: #a8a39b;
  --ink-muted: #7f7b75;
  --line: rgba(255, 245, 230, 0.09);
  --line-strong: rgba(255, 245, 230, 0.16);
  --accent: #b59a75;
  --accent-strong: #d2bb97;
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.28);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Segoe UI Variable", "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(720px 420px at 84% 8%, rgba(181, 154, 117, 0.12), transparent 74%),
    radial-gradient(520px 280px at 18% 10%, rgba(255, 255, 255, 0.04), transparent 78%),
    linear-gradient(180deg, #09090a 0%, #0d0e10 46%, #0a0b0c 100%);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
  opacity: 0.026;
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
}

img {
  display: block;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.06;
  font-weight: 600;
}

h1,
h2 {
  font-family: "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
}

p {
  margin: 0;
}

.ambient,
.grain,
.page-shell {
  position: relative;
  z-index: 1;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 24%),
    radial-gradient(480px 220px at 50% 0%, rgba(181, 154, 117, 0.07), transparent 80%);
  mask-image: linear-gradient(180deg, black, rgba(0, 0, 0, 0.06));
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02));
  opacity: 0.2;
}

.page-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 28px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 12, 14, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.brand-copy small {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-width: 0;
}

.site-nav a,
.header-link {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  transition: color 0.22s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active,
.header-link:hover,
.header-link:focus-visible {
  color: var(--ink);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(210, 187, 151, 0.26);
  background: linear-gradient(180deg, rgba(192, 165, 126, 0.16), rgba(181, 154, 117, 0.08));
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.header-cta:hover,
.header-cta:focus-visible {
  border-color: rgba(210, 187, 151, 0.42);
  background: linear-gradient(180deg, rgba(192, 165, 126, 0.24), rgba(181, 154, 117, 0.12));
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.nav-toggle span:not(.nav-toggle-text) {
  display: block;
  width: 14px;
  height: 1px;
  background: currentColor;
}

.nav-toggle-text {
  font-size: 0.88rem;
}

.main-content {
  padding-top: 28px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(248px, 0.5fr);
  gap: clamp(48px, 6vw, 88px);
  align-items: center;
  padding: clamp(56px, 8vw, 104px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(17, 18, 20, 0.82), rgba(13, 14, 16, 0.96)),
    linear-gradient(90deg, rgba(181, 154, 117, 0.08), transparent 34%);
  box-shadow: var(--shadow-soft);
}

.hero-copy {
  max-width: 780px;
}

.section-label,
.panel-label,
.article-date {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-label.is-muted {
  color: var(--ink-muted);
}

.hero h1 {
  margin-top: 16px;
  max-width: 14.8ch;
  font-size: clamp(2.3rem, 4.2vw, 3.85rem);
  letter-spacing: -0.03em;
  line-height: 1.07;
}

.hero h1 span {
  display: block;
}

.hero-lead {
  margin-top: 32px;
  max-width: 720px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.22vw, 1.1rem);
  line-height: 1.82;
}

.hero-sublead {
  max-width: 60ch;
}

.hero-actions,
.hero-actions {
  margin-top: 40px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  border: 1px solid rgba(210, 187, 151, 0.28);
  background: linear-gradient(180deg, rgba(192, 165, 126, 0.16), rgba(181, 154, 117, 0.08));
  color: var(--ink);
}

.button-primary:hover,
.button-primary:focus-visible {
  border-color: rgba(210, 187, 151, 0.44);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(255, 245, 230, 0.24);
}

.hero-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  align-self: center;
  max-width: 286px;
  justify-self: end;
  padding: 16px 16px 14px;
  border: 1px solid rgba(255, 245, 230, 0.07);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(20, 21, 24, 0.78), rgba(15, 16, 18, 0.88));
}

.panel-title {
  font-family: "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  font-size: 0.98rem;
  line-height: 1.24;
}

.model-list {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.model-list article {
  display: grid;
  gap: 4px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 245, 230, 0.08);
}

.model-list article:first-child {
  padding-top: 0;
  border-top: none;
}

.model-list span {
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.model-list p {
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.5;
}

.panel-note {
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 0.74rem;
  line-height: 1.46;
}

.section {
  padding: 74px 0;
  border-top: 1px solid rgba(255, 245, 230, 0.07);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head h2 {
  margin-top: 12px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  max-width: 12ch;
}

.section-summary {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.76;
}

.route-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
}

.route-nav {
  display: grid;
  gap: 12px;
}

.route-stop {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 245, 230, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink-soft);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.route-stop span {
  color: var(--ink-muted);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.route-stop strong {
  font-size: 1.02rem;
  font-weight: 600;
}

.route-stop:hover,
.route-stop:focus-visible,
.route-stop.is-active {
  border-color: rgba(210, 187, 151, 0.22);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
}

.route-stage {
  min-height: 100%;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(255, 245, 230, 0.08);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(21, 22, 25, 0.84), rgba(14, 15, 17, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.route-stage h3 {
  margin-top: 14px;
  font-family: "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  max-width: 11ch;
}

.route-stage p:last-child {
  margin-top: 18px;
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 1.03rem;
  line-height: 1.76;
}

.artifact-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
}

.artifact-stage {
  position: sticky;
  top: 108px;
  align-self: start;
  padding: 28px;
  border: 1px solid rgba(255, 245, 230, 0.08);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(21, 22, 25, 0.9), rgba(15, 16, 18, 0.98));
}

.artifact-stage h3 {
  margin-top: 14px;
  font-size: clamp(1.8rem, 2.8vw, 2.75rem);
}

.artifact-copy {
  margin-top: 18px;
  color: #ddd7cd;
  font-size: 1.02rem;
  line-height: 1.74;
}

.artifact-copy-secondary {
  color: var(--ink-soft);
}

.artifact-divider {
  margin: 22px 0;
  height: 1px;
  background: rgba(255, 245, 230, 0.08);
}

.artifact-list {
  display: grid;
}

.artifact-entry {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 245, 230, 0.08);
  text-decoration: none;
  background: transparent;
  transition: padding-left 0.24s ease, border-color 0.24s ease;
}

.artifact-entry:first-child {
  border-top: none;
}

.artifact-entry span {
  color: var(--ink-muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-top: 6px;
}

.artifact-entry h3 {
  font-family: inherit;
  font-size: 1.28rem;
  line-height: 1.3;
}

.artifact-entry p {
  margin-top: 8px;
  color: var(--ink-soft);
}

.artifact-entry:hover,
.artifact-entry:focus-visible,
.artifact-entry.is-current {
  padding-left: 12px;
  border-color: rgba(210, 187, 151, 0.2);
}

.principles-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 28px;
}

.principles-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.principles-list li {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 245, 230, 0.08);
  color: #ddd7cd;
  font-size: 1.04rem;
}

.principles-list li:first-child {
  border-top: none;
}

.process-card {
  padding: 26px;
  border: 1px solid rgba(255, 245, 230, 0.08);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(21, 22, 25, 0.84), rgba(14, 15, 17, 0.98));
}

.process-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.process-list li {
  display: grid;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 245, 230, 0.08);
}

.process-list li:first-child {
  padding-top: 0;
  border-top: none;
}

.process-list span {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}

.process-list p {
  color: var(--ink-soft);
}

.knowledge-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 22px;
}

.featured-article,
.article-row {
  text-decoration: none;
  border: 1px solid rgba(255, 245, 230, 0.08);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(18, 19, 21, 0.82), rgba(14, 15, 17, 0.96));
}

.featured-article {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 28px;
  min-height: 100%;
}

.featured-article h3 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  max-width: 11ch;
}

.featured-article p {
  max-width: 560px;
  color: var(--ink-soft);
  line-height: 1.72;
}

.article-link {
  margin-top: auto;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.article-list {
  display: grid;
  gap: 12px;
}

.article-row {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.article-row h3 {
  font-family: inherit;
  font-size: 1.12rem;
  line-height: 1.35;
}

.article-row p {
  color: var(--ink-soft);
}

.featured-article:hover,
.featured-article:focus-visible,
.article-row:hover,
.article-row:focus-visible {
  border-color: rgba(210, 187, 151, 0.2);
}

.contact-section {
  margin-top: 74px;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid rgba(255, 245, 230, 0.08);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(360px 220px at 90% 8%, rgba(181, 154, 117, 0.08), transparent 76%),
    linear-gradient(180deg, rgba(18, 19, 21, 0.84), rgba(13, 14, 16, 0.98));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 34px;
  align-items: start;
}

.contact-copy {
  max-width: 620px;
}

.contact-copy h2 {
  margin-top: 14px;
  max-width: 17ch;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 1.12;
}

.contact-copy p:last-child {
  margin-top: 16px;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.74;
}

.contact-grid {
  display: grid;
  gap: 12px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 18px 18px 20px;
  border: 1px solid rgba(255, 245, 230, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18, 19, 21, 0.78), rgba(14, 15, 17, 0.94));
}

.contact-card-primary {
  border-color: rgba(210, 187, 151, 0.18);
  background:
    linear-gradient(180deg, rgba(32, 29, 24, 0.52), rgba(15, 16, 17, 0.94)),
    linear-gradient(180deg, rgba(18, 19, 21, 0.78), rgba(14, 15, 17, 0.94));
}

.contact-card-copy {
  min-width: 0;
}

.contact-card-copy h3 {
  font-family: inherit;
  font-size: 1.02rem;
  line-height: 1.3;
}

.contact-card-copy p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.62;
}

.contact-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 245, 230, 0.12);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.contact-card-link:hover,
.contact-card-link:focus-visible {
  border-color: rgba(210, 187, 151, 0.24);
}

.contact-card-primary .contact-card-link {
  border-color: rgba(210, 187, 151, 0.26);
  background: linear-gradient(180deg, rgba(192, 165, 126, 0.14), rgba(181, 154, 117, 0.06));
}

.site-footer {
  padding: 22px 0 8px;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 245, 230, 0.08);
}

.site-footer-inner a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer-inner a:hover,
.site-footer-inner a:focus-visible {
  color: var(--ink);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(210, 187, 151, 0.82);
  outline-offset: 4px;
}

@media (max-width: 1180px) {
  .page-shell {
    width: min(1240px, calc(100% - 32px));
  }

  .site-header {
    grid-template-columns: auto 1fr;
  }

  .header-actions {
    justify-self: end;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 245, 230, 0.08);
  }

  .hero,
  .route-shell,
  .artifact-shell,
  .principles-grid,
  .knowledge-grid,
  .contact-section,
  .section-head {
    grid-template-columns: 1fr;
  }

  .artifact-stage {
    position: static;
  }

}

@media (max-width: 860px) {
  .page-shell {
    width: calc(100% - 20px);
    padding-top: 12px;
  }

  .site-header {
    grid-template-columns: auto auto;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 24px;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .site-nav,
  .header-actions {
    display: none;
  }

  .site-header.is-open .site-nav,
  .site-header.is-open .header-actions {
    display: flex;
    grid-column: 1 / -1;
    width: 100%;
  }

  .site-header.is-open .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 18px;
    margin-top: 4px;
    border-top: 1px solid rgba(255, 245, 230, 0.08);
  }

  .site-header.is-open .header-actions {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 10px;
  }

  .site-header.is-open .header-cta {
    width: 100%;
  }

  .brand-copy small {
    letter-spacing: 0.12em;
  }

  .hero {
    padding: 38px 24px;
    gap: 28px;
    border-radius: 24px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.08rem, 8.5vw, 3.32rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-panel {
    max-width: none;
    justify-self: stretch;
  }

  .hero-panel,
  .route-stage,
  .artifact-stage,
  .process-card,
  .featured-article,
  .article-row,
  .contact-section,
  .contact-card {
    border-radius: 20px;
  }

  .section {
    padding: 56px 0;
  }

  .section-head {
    gap: 16px;
    margin-bottom: 24px;
  }

  .section-head h2,
  .contact-copy h2 {
    max-width: 100%;
  }

  .artifact-entry {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .artifact-entry span {
    padding-top: 0;
  }
}

@media (max-width: 560px) {
  .header-actions {
    gap: 10px;
  }

  .header-link {
    font-size: 0.88rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button,
  .header-cta {
    width: 100%;
  }

  .contact-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .contact-card-link {
    width: 100%;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .route-stop {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .featured-article h3 {
    max-width: 100%;
    font-size: clamp(1.8rem, 8.5vw, 2.8rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .button,
  .route-stop,
  .artifact-entry,
  .site-nav a,
  .header-link {
    transition: none;
  }
}
