:root {
  color-scheme: dark;
  --bg: #030303;
  --bg-end: #080808;
  --surface: #0b0b0b;
  --surface-soft: #111111;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(234, 103, 35, 0.42);
  --text: #f3efe9;
  --muted: #b5afa7;
  --subtle: #7c766f;
  --orange: #e66a25;
  --orange-soft: #f29b58;
  --focus: #ffb36b;
  --button-text: #120703;
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  --principle-bg: rgba(255, 255, 255, 0.035);
  --hero-glow: rgba(230, 106, 37, 0.12);
  --systems-glow: rgba(230, 106, 37, 0.13);
  --header-bg: rgba(3, 3, 3, 0.9);
  --skip-bg: var(--text);
  --skip-text: #000;
  --max: 1160px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f3ee;
  --bg-end: #ebe4dc;
  --surface: #fffaf4;
  --surface-soft: #fff8f0;
  --line: rgba(24, 19, 15, 0.13);
  --line-strong: rgba(198, 82, 25, 0.42);
  --text: #17120e;
  --muted: #5f574f;
  --subtle: #83786d;
  --orange: #c9561d;
  --orange-soft: #9d4317;
  --focus: #9d4317;
  --button-text: #fffaf4;
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 248, 239, 0.62));
  --principle-bg: rgba(255, 255, 255, 0.66);
  --hero-glow: rgba(201, 86, 29, 0.16);
  --systems-glow: rgba(201, 86, 29, 0.1);
  --header-bg: rgba(247, 243, 238, 0.9);
  --skip-bg: #17120e;
  --skip-text: #fffaf4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% 0%, var(--hero-glow), transparent 32rem),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 38%, var(--bg-end) 100%);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
  transition: background 220ms ease, color 220ms ease;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  transform: translateY(-180%);
  border-radius: 6px;
  background: var(--skip-bg);
  color: var(--skip-text);
  padding: 0.65rem 0.9rem;
  font-weight: 700;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 1.15rem 0;
  backdrop-filter: blur(18px);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  text-decoration: none;
  letter-spacing: 0;
  font-weight: 800;
}

.brand-mark {
  color: var(--orange);
  font-size: 1.35rem;
  line-height: 1;
  transform: translateY(-0.2rem);
}

.brand-name {
  color: var(--orange);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.2rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.site-nav a {
  border-bottom: 1px solid transparent;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease;
}

.site-nav a:hover {
  border-color: var(--orange);
  color: var(--text);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.55rem;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.theme-toggle:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.toggle-track {
  position: relative;
  width: 2.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: rgba(230, 106, 37, 0.25);
}

.toggle-thumb {
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--orange);
  transition: transform 180ms ease;
}

[data-theme="light"] .toggle-thumb {
  transform: translateX(1rem);
}

.theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  color: var(--subtle);
}

.theme-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-dark {
  display: none;
  color: var(--orange-soft);
}

.theme-icon-light {
  color: var(--orange-soft);
}

[data-theme="light"] .theme-icon-dark {
  display: inline-flex;
  color: var(--orange);
}

[data-theme="light"] .theme-icon-light {
  display: none;
}

.section {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 6.5rem 0;
}

.hero {
  display: grid;
  min-height: calc(100svh - 5rem);
  place-items: center;
  padding-top: 5rem;
}

.hero-inner {
  width: min(100%, 900px);
  text-align: center;
  animation: rise-in 700ms ease both;
}

.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  color: var(--orange-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.35rem;
  font-size: clamp(2.8rem, 8vw, 6.9rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.85rem, 4vw, 3.8rem);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-copy {
  width: min(100%, 760px);
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.35rem;
  margin-top: 2.4rem;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border: 1px solid rgba(230, 106, 37, 0.8);
  border-radius: 7px;
  background: var(--orange);
  color: var(--button-text);
  padding: 0.8rem 1.1rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.button-primary:hover {
  background: var(--orange-soft);
  transform: translateY(-2px);
}

.hero-note {
  margin: 0;
  color: var(--subtle);
  font-size: 0.92rem;
  font-weight: 600;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.section-copy {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.8vw, 1.24rem);
}

.section-copy p:last-child,
.systems-panel p:last-child,
.private-statement p:last-child,
.contact-section p:last-child,
.site-footer p {
  margin-bottom: 0;
}

.section-heading {
  width: min(100%, 780px);
  margin-bottom: 2.4rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.four-column {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card {
  min-height: 15rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
  padding: 1.3rem;
  transition: border-color 180ms ease, transform 180ms ease;
}

.info-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.info-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.principles-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principle-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.principle-item {
  min-height: 5.25rem;
  display: flex;
  align-items: center;
  border-left: 2px solid var(--orange);
  background: var(--principle-bg);
  color: var(--text);
  padding: 1rem 1.1rem;
  font-weight: 700;
}

.systems-section {
  padding-bottom: 4rem;
}

.systems-panel {
  max-width: 920px;
  border: 1px solid rgba(230, 106, 37, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(120deg, var(--systems-glow), transparent 34rem),
    var(--surface-soft);
  padding: clamp(1.35rem, 4vw, 3rem);
}

.systems-panel p,
.private-statement p,
.contact-section p {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
}

.private-statement {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr);
  gap: clamp(1.3rem, 4vw, 2.4rem);
  align-items: stretch;
  width: min(100% - 2rem, 980px);
  padding-top: 4rem;
}

.statement-rule {
  border-radius: 99px;
  background: linear-gradient(180deg, var(--orange), rgba(230, 106, 37, 0.14));
}

.contact-section {
  text-align: center;
  padding-top: 5rem;
}

.contact-section h2 {
  width: min(100%, 760px);
  margin: 0 auto 1.2rem;
}

.email-link {
  display: inline-flex;
  margin-top: 0.8rem;
  color: var(--orange-soft);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 800;
  text-decoration: none;
  word-break: break-word;
}

.email-link:hover {
  color: var(--text);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.footer-meta {
  text-align: right;
}

.footer-meta a {
  color: var(--orange-soft);
  font-weight: 700;
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--text);
}

.copyright {
  margin-top: 0.45rem;
  color: var(--subtle);
  font-size: 0.82rem;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 980px) {
  .four-column,
  .principle-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .site-header {
    position: sticky;
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
    border-bottom: 1px solid var(--line);
    background: var(--header-bg);
    padding: 0.9rem 1rem;
  }

  .header-actions {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.8rem 1rem;
  }

  .section {
    padding: 4.5rem 0;
  }

  .hero {
    min-height: auto;
    place-items: start;
    padding-top: 4rem;
    text-align: left;
  }

  .hero-inner {
    text-align: left;
  }

  .hero-copy {
    margin-left: 0;
  }

  .hero-actions {
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
  }

  .button-primary {
    width: 100%;
  }

  .four-column,
  .principle-list {
    grid-template-columns: 1fr;
  }

  .info-card {
    min-height: auto;
  }

  .private-statement {
    grid-template-columns: 1fr;
  }

  .statement-rule {
    width: 4.5rem;
    height: 3px;
  }

  .contact-section {
    text-align: left;
  }

  .contact-section h2 {
    margin-left: 0;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-meta {
    text-align: left;
  }
}
