/* ============ base.css ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  hanging-punctuation: first last;
  scroll-padding-top: var(--space-16);
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body, sans-serif);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul[role='list'],
ol[role='list'] {
  list-style: none;
}
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
  line-height: 1.15;
}
p,
li,
figcaption {
  text-wrap: pretty;
  max-width: 72ch;
}

::selection {
  background: oklch(from var(--color-primary) l c h / 0.25);
  color: var(--color-text);
}

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

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

a,
button,
[role='button'],
input {
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}

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

/* ============ design tokens ============ */
:root {
  /* type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 0.5rem + 7vw, 7rem);

  /* spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  --transition-interactive: 220ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  --font-display: 'Instrument Serif', 'Georgia', serif;
  --font-body: 'Switzer', 'Work Sans', 'Helvetica Neue', sans-serif;

  /* Desert-sunrise gradient (from brand feather mark) */
  --gradient-sunrise: linear-gradient(
    180deg,
    #5cc7dd 0%,
    #bfe0d8 22%,
    #f3c96a 45%,
    #ef8e3f 68%,
    #d85a3a 88%,
    #b83b34 100%
  );
  --gradient-sunrise-h: linear-gradient(100deg, #5cc7dd 0%, #f3c96a 40%, #ef8e3f 65%, #c94a34 100%);
}

/* Dark (default) — matches the video/emblem: near-black with warm cream text */
:root,
[data-theme='dark'] {
  --color-bg: #0a0908;
  --color-surface: #121110;
  --color-surface-2: #171514;
  --color-surface-offset: #1c1a17;
  --color-divider: #29241f;
  --color-border: #332d26;

  --color-text: #f3ead9;
  --color-text-muted: #b5a891;
  --color-text-faint: #6f6656;
  --color-text-inverse: #0a0908;

  --color-primary: #ef8e3f;
  --color-primary-hover: #f3a75e;
  --color-primary-active: #d97530;
  --color-primary-highlight: #3a2c1e;

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
  --shadow-md: 0 8px 24px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 20px 48px rgb(0 0 0 / 0.5);
}

/* Light mode */
[data-theme='light'] {
  --color-bg: #f8f2e6;
  --color-surface: #fbf7ee;
  --color-surface-2: #ffffff;
  --color-surface-offset: #f0e7d4;
  --color-divider: #e4d8bf;
  --color-border: #d9caa8;

  --color-text: #241a10;
  --color-text-muted: #6c5c44;
  --color-text-faint: #a4956f;
  --color-text-inverse: #f8f2e6;

  --color-primary: #c25a1f;
  --color-primary-hover: #a84a17;
  --color-primary-active: #8a3c12;
  --color-primary-highlight: #f1ddc0;

  --shadow-sm: 0 1px 2px rgb(40 30 10 / 0.08);
  --shadow-md: 0 8px 24px rgb(40 30 10 / 0.1);
  --shadow-lg: 0 20px 48px rgb(40 30 10 / 0.14);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --color-bg: #f8f2e6;
    --color-surface: #fbf7ee;
    --color-surface-2: #ffffff;
    --color-surface-offset: #f0e7d4;
    --color-divider: #e4d8bf;
    --color-border: #d9caa8;
    --color-text: #241a10;
    --color-text-muted: #6c5c44;
    --color-text-faint: #a4956f;
    --color-text-inverse: #f8f2e6;
    --color-primary: #c25a1f;
    --color-primary-hover: #a84a17;
    --color-primary-active: #8a3c12;
    --color-primary-highlight: #f1ddc0;
  }
}

/* ============ layout helpers ============ */
.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 5vw, var(--space-12));
}

.section {
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
}

/* ============ header ============ */
.header {
  --header-bg: rgb(8 7 6 / 0.32);
  --header-text: #f6efe1;
  --header-text-muted: rgb(246 239 225 / 0.78);
  --header-border: transparent;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) clamp(var(--space-5), 5vw, var(--space-12));
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--header-border);
  transition:
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.header--scrolled {
  --header-bg: color-mix(in oklab, var(--color-bg) 82%, transparent);
  --header-text: var(--color-text);
  --header-text-muted: var(--color-text-muted);
  --header-border: var(--color-divider);
}
.header--hidden {
  transform: translateY(-100%);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--header-text);
  text-decoration: none;
}
.brand svg {
  width: 26px;
  height: 34px;
  flex-shrink: 0;
}
.brand-word {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: 0.01em;
}
.brand-word .dotcom {
  font-size: 0.62em;
  color: var(--header-text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav-links a {
  font-size: var(--text-sm);
  color: var(--header-text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-links a:hover {
  color: var(--header-text);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  color: var(--header-text-muted);
  border: 1px solid color-mix(in oklab, var(--header-text) 30%, transparent);
}
.theme-toggle:hover {
  color: var(--header-text);
  border-color: var(--color-primary);
}

@media (max-width: 720px) {
  .nav-links a:not(.notify-link) {
    display: none;
  }
}

/* ============ hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #050403;
  overflow: hidden;
  padding-top: var(--space-24);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.9;
}

@media (min-aspect-ratio: 4/3) {
  .hero-video {
    object-fit: cover;
  }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgb(5 4 3 / 0.15) 0%,
    rgb(5 4 3 / 0.55) 62%,
    rgb(5 4 3 / 0.92) 100%
  );
}

.hero-badge-wrap {
  position: absolute;
  top: clamp(6.5rem, 14vh, 9rem);
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #f3ead9;
  opacity: 0.85;
  border: 1px solid rgb(243 234 217 / 0.28);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-5);
  backdrop-filter: blur(6px);
}

.hero-content {
  position: absolute;
  bottom: clamp(5rem, 14vh, 7.5rem);
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding-inline: var(--space-5);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: #ddcfb4;
  opacity: 0.7;
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-scroll svg {
  width: 14px;
  height: 20px;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* ============ buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--gradient-sunrise-h);
  color: #1c1206;
}
.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn-ghost {
  border-color: rgb(243 234 217 / 0.35);
  color: #f3ead9;
}
.btn-ghost:hover {
  border-color: rgb(243 234 217 / 0.7);
  background: rgb(243 234 217 / 0.06);
}

/* ============ notice bar ============ */
.notice {
  background: var(--color-surface-offset);
  border-bottom: 1px solid var(--color-divider);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  text-align: center;
  padding: var(--space-2) var(--space-4);
  letter-spacing: 0.02em;
}
.notice strong {
  color: var(--color-text);
}

/* ============ about / philosophy ============ */
.about {
  position: relative;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: center;
}
.about-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, transparent 55%, rgb(0 0 0 / 0.35) 100%);
}
.about-copy h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-2xl);
  margin-block: var(--space-4) var(--space-5);
}
.about-copy p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
}
.about-copy p:last-child {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-media {
    aspect-ratio: 16 / 10;
    order: -1;
  }
}

/* ============ status / pillars ============ */
.status {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.status-head {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: clamp(var(--space-10), 6vw, var(--space-16));
}
.status-head h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-2xl);
  margin-top: var(--space-4);
}
.status-head p {
  color: var(--color-text-muted);
  margin-top: var(--space-4);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.pillar {
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
}
.pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-sunrise-h);
  color: #1c1206;
  margin-bottom: var(--space-5);
}
.pillar-icon svg {
  width: 20px;
  height: 20px;
}
.pillar h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.pillar p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

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

/* ============ notify ============ */
.notify {
  text-align: center;
}
.notify-inner {
  max-width: 560px;
  margin-inline: auto;
}
.notify h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-2xl);
  margin-top: var(--space-4);
}
.notify p {
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  margin-inline: auto;
}
.notify-form {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-8);
  max-width: 440px;
  margin-inline: auto;
}
.notify-form input {
  flex: 1;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  color: var(--color-text);
  font-size: var(--text-sm);
}
.notify-form input::placeholder {
  color: var(--color-text-faint);
}
.notify-form input:focus-visible {
  border-color: var(--color-primary);
}
.notify-form button {
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  background: var(--gradient-sunrise-h);
  color: #1c1206;
  font-weight: 600;
  font-size: var(--text-sm);
  white-space: nowrap;
}
.notify-form button:hover {
  filter: brightness(1.08);
}
.notify-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-4);
}

@media (max-width: 520px) {
  .notify-form {
    flex-direction: column;
  }
}

/* ============ footer ============ */
.footer {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-10);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-muted);
}
.footer-brand svg {
  width: 18px;
  height: 24px;
}
.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--color-text-faint);
}
.footer-meta {
  display: flex;
  gap: var(--space-6);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer-meta a {
  color: inherit;
  text-decoration: none;
}
.footer-meta a:hover {
  color: var(--color-text-muted);
}
