/* =========================================================
   Acousmos — Landing Page
   Dark cosmic aesthetic. Serif philosophical accents.
   Amber highlight echoes the preservation metaphor.
   ========================================================= */

:root {
  --bg: #09080f;
  --bg-deep: #050408;
  --bg-elevated: #0f0e18;
  --bg-card: rgba(15, 14, 24, 0.6);
  --text: #ede9e0;
  --text-soft: #9a96a0;
  --text-muted: #55525c;
  --accent-amber: #d4a24a;
  --accent-amber-bright: #e8b85f;
  --accent-amber-soft: rgba(212, 162, 74, 0.14);
  --accent-cosm: #6b5ce0;
  --accent-cosm-soft: rgba(107, 92, 224, 0.18);
  --border: rgba(237, 233, 224, 0.06);
  --border-strong: rgba(237, 233, 224, 0.14);

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;

  --container: 1200px;
  --container-narrow: 720px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-weight: 400;
}

::selection {
  background: var(--accent-amber-soft);
  color: var(--text);
}

/* Background canvas */
.starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Cursor trail layer — sits above content visually, does not block clicks.
   No mix-blend-mode: we do additive blending inside the canvas instead
   (lighter composite op), which is typically faster than a full-layer
   CSS blend mode on large viewports. */
.cursor-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  pointer-events: none;
}

/* Reading progress bar — thin amber line at the very top that fills
   as you scroll through the document. Uses transform scaleX for perf. */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 200;
  background: linear-gradient(
    90deg,
    rgba(212, 162, 74, 0.9) 0%,
    rgba(232, 184, 95, 1) 100%
  );
  transform: scaleX(0);
  transform-origin: 0 0;
  transition: transform 0.1s linear;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(212, 162, 74, 0.4);
}

@media (hover: none), (max-width: 640px) {
  .cursor-layer { display: none; }
}

/* =========================================================
   Navigation
   ========================================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: rgba(9, 8, 15, 0.6);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  letter-spacing: 0.04em;
}

.wordmark-mark {
  color: var(--accent-amber);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(212, 162, 74, 0.35));
  animation: pulse-mark 4s ease-in-out infinite;
}

.wordmark:hover .wordmark-mark {
  animation: pulse-mark-active 1.5s ease-in-out infinite;
}

@keyframes pulse-mark {
  0%, 100% { opacity: 0.95; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.96); }
}

@keyframes pulse-mark-active {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 12px rgba(232, 184, 95, 0.7)); }
  50% { opacity: 0.85; filter: drop-shadow(0 0 20px rgba(232, 184, 95, 0.9)); }
}

.nav-links {
  display: flex;
  gap: 1.9rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:visited {
  color: var(--text-soft);
}

.btn-subtle {
  padding: 0.55rem 1.2rem;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  color: var(--text) !important;
  transition: all 0.25s;
}

.btn-subtle:hover {
  background: rgba(237, 233, 224, 0.05);
  border-color: rgba(237, 233, 224, 0.25);
}

/* Tablet/mobile nav: keep the header quiet and consistent. */
@media (max-width: 820px) {
  .nav-inner {
    max-width: 100%;
    padding: 1rem 1.25rem;
    justify-content: space-between;
    gap: 1rem;
  }

  .wordmark {
    min-width: 0;
  }

  .nav-links {
    margin-left: auto;
    gap: 0;
    flex-shrink: 0;
  }

  .nav-links a {
    display: none;
  }

  .nav-links a.nav-mobile-visible {
    display: inline-flex !important;
    position: fixed;
    top: 1.08rem;
    right: 1.25rem;
    z-index: 110;
    color: var(--accent-amber);
    font-size: 0.88rem;
  }

  .nav-links a.nav-mobile-visible:hover {
    color: var(--accent-amber-bright);
  }
}

/* External / subpage link in nav */
.nav-external {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  position: relative;
}

.ext-arrow {
  display: inline-block;
  font-size: 0.78em;
  opacity: 0.55;
  transform: translateY(-1px);
  transition: transform 0.25s var(--ease-out), opacity 0.25s;
}

.nav-external:hover .ext-arrow,
.teaser-btn:hover .ext-arrow {
  transform: translate(2px, -3px);
  opacity: 1;
}

/* Arena teaser strip — between Principles and Access */
.arena-teaser {
  padding: 4rem 2rem 0;
}

.teaser-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.25rem 2.5rem;
  background: linear-gradient(
    135deg,
    rgba(15, 14, 24, 0.7) 0%,
    rgba(9, 8, 15, 0.5) 100%
  );
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
}

.teaser-card::before {
  content: "";
  position: absolute;
  left: -40%;
  top: -50%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse at center, var(--accent-cosm-soft) 0%, transparent 50%);
  pointer-events: none;
}

.teaser-prelude {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-amber);
  opacity: 0.8;
  position: relative;
  z-index: 1;
}

.teaser-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
  position: relative;
  z-index: 1;
}

.teaser-body {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 560px;
  margin: 0 !important;
  position: relative;
  z-index: 1;
}

.teaser-btn {
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .teaser-card {
    padding: 1.75rem 1.5rem;
  }
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 6rem;
  text-align: center;
  z-index: 1;
}

.hero-visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  pointer-events: none;
}

.orb {
  width: 860px;
  height: 860px;
  max-width: 92vw;
  max-height: 92vw;
  opacity: 0.95;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(740px, 100%);
  max-width: 740px;
  min-width: 0;
  margin: 0 auto;
}

.hero-prelude {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent-amber);
  letter-spacing: 0.18em;
  margin-bottom: 2.25rem;
  opacity: 0.85;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1.03;
  letter-spacing: -0.022em;
  margin-bottom: 2rem;
  background: linear-gradient(180deg, #fff 0%, #bfbbb2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-soft);
  line-height: 1.65;
  margin: 0 auto 3rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.95rem 1.8rem;
  font-size: 0.95rem;
  border-radius: 100px;
  font-family: var(--sans);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--accent-amber);
  color: #1a1108;
  box-shadow: 0 0 0 0 rgba(212, 162, 74, 0), 0 8px 30px rgba(212, 162, 74, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--accent-amber-bright);
  box-shadow: 0 0 0 6px rgba(212, 162, 74, 0.08), 0 14px 50px rgba(212, 162, 74, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--text);
  background: rgba(237, 233, 224, 0.03);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
}

.hero-scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent 0%, var(--accent-amber) 100%);
  animation: scroll-hint 2.4s ease-in-out infinite;
}

@keyframes scroll-hint {
  0%, 100% { transform: scaleY(0.3); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

.hero-scroll-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* =========================================================
   Section shell
   ========================================================= */

.section {
  padding: 9rem 2rem;
  position: relative;
  z-index: 1;
}

.container {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.section-prelude {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--accent-amber);
  letter-spacing: 0.25em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  opacity: 0.85;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

/* Underline that draws in when the prelude scrolls into view */
.section-prelude::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-amber) 0%, transparent 100%);
  transform: scaleX(0);
  transform-origin: 0 0;
  transition: transform 1.1s var(--ease-out) 0.25s;
}

.section-prelude.is-visible::after,
.reveal.is-visible .section-prelude::after {
  transform: scaleX(1);
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin-bottom: 3rem;
  color: var(--text);
}

.section-lede {
  font-size: 1.15rem;
  color: var(--text-soft);
  margin-bottom: 3rem;
  max-width: 600px;
  line-height: 1.7;
}

/* =========================================================
   Philosophy
   ========================================================= */

.philosophy-body p {
  font-size: 1.12rem;
  line-height: 1.9;
  color: var(--text-soft);
  margin-bottom: 1.75rem;
  font-weight: 300;
}

.philosophy-body em {
  font-style: italic;
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.1em;
}

.philosophy-emphasis {
  font-family: var(--serif) !important;
  font-style: italic;
  font-size: 1.5rem !important;
  font-weight: 400 !important;
  color: var(--text) !important;
  padding: 2.5rem 0 !important;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  margin-top: 3rem !important;
  line-height: 1.4 !important;
  letter-spacing: -0.01em;
}

/* =========================================================
   Philosophy (duality)
   ========================================================= */

.duality {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.duality-card {
  padding: 3rem 2.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  backdrop-filter: blur(8px);
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.duality-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--accent-amber-soft) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.duality-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.duality-card:hover::after {
  opacity: 1;
}

.duality-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--accent-amber);
  margin-bottom: 1.25rem;
  letter-spacing: 0.12em;
  position: relative;
  z-index: 1;
}

.duality-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.9rem;
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.duality-card p {
  color: var(--text-soft);
  line-height: 1.75;
  font-size: 0.98rem;
  position: relative;
  z-index: 1;
}

.duality-card em {
  font-style: italic;
  font-family: var(--serif);
  color: var(--text);
}

/* =========================================================
   Principles
   ========================================================= */

.principles-list {
  list-style: none;
  margin-top: 2rem;
  counter-reset: principle;
}

.principles-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2.5rem;
  padding: 2.25rem 0;
  border-top: 1px solid var(--border);
  align-items: start;
  transition: border-color 0.3s;
}

.principles-list li:last-child {
  border-bottom: 1px solid var(--border);
}

.principles-list li:hover {
  border-top-color: var(--border-strong);
}

.principles-list li:hover + li {
  border-top-color: var(--border-strong);
}

.principle-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--accent-amber);
  letter-spacing: 0.12em;
  padding-top: 0.25rem;
}

.principles-list h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.principles-list p {
  color: var(--text-soft);
  line-height: 1.75;
  font-size: 0.98rem;
}

/* =========================================================
   Download — main CTA for the Mac app
   ========================================================= */

.download {
  padding: 7rem 2rem;
}

.download-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 3rem;
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(22, 18, 34, 0.85) 0%,
    rgba(12, 10, 20, 0.7) 100%
  );
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  width: 160%;
  height: 200%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at center top, var(--accent-amber-soft) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 100%, var(--accent-cosm-soft) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.download-card > * {
  position: relative;
  z-index: 1;
}

.download-prelude {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--accent-amber);
  letter-spacing: 0.25em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  opacity: 0.85;
  display: inline-block;
  padding-bottom: 0.5rem;
  position: relative;
}

.download-prelude::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-amber) 50%, transparent 100%);
  transform: translateX(-50%) scaleX(0);
  transition: transform 1s var(--ease-out) 0.3s;
}

.download-card.is-visible .download-prelude::after {
  transform: translateX(-50%) scaleX(1);
}

.download-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  background: linear-gradient(180deg, #fff 0%, #c2bdb3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.download-sub {
  color: var(--text-soft);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0 auto 2.5rem;
  max-width: 520px;
}

.download-actions {
  margin-bottom: 2rem;
}

.btn-download {
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 100px;
  font-family: var(--sans);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--accent-amber);
  color: #1a1108;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 10px 40px rgba(212, 162, 74, 0.25);
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
}

.btn-download:hover {
  transform: translateY(-2px);
  background: var(--accent-amber-bright);
  box-shadow: 0 14px 50px rgba(212, 162, 74, 0.4),
              0 0 0 8px rgba(212, 162, 74, 0.08);
}

/* Pending state — Waiting for Apple review. Outlined + slow breath glow. */
.btn-download[data-pending="true"] {
  cursor: not-allowed;
  background: transparent;
  color: var(--accent-amber);
  border: 1px solid var(--accent-amber);
  box-shadow: none;
  position: relative;
}

.btn-download[data-pending="true"]::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 100px;
  background: radial-gradient(ellipse at center, var(--accent-amber-soft) 0%, transparent 70%);
  animation: pending-glow 2.6s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes pending-glow {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.btn-download[data-pending="true"]:hover {
  transform: none;
  background: rgba(212, 162, 74, 0.04);
  box-shadow: none;
}

.btn-mac-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.download-meta {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-soft);
  font-family: var(--sans);
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.download-meta .dot {
  color: var(--text-muted);
  opacity: 0.6;
}

/* Secondary link under the primary download CTA (e.g. direct .dmg when
   the main button points to the App Store). */
.download-alt {
  margin: 1.25rem 0 0 !important;
  font-size: 0.88rem !important;
  color: var(--text-soft);
  font-family: var(--sans) !important;
  font-style: normal !important;
}

.download-alt a {
  color: var(--accent-amber);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 162, 74, 0.4);
  transition: border-color 0.2s, color 0.2s;
  margin-left: 0.25rem;
}

.download-alt a:hover {
  color: var(--accent-amber-bright);
  border-bottom-color: var(--accent-amber-bright);
}

.download-fineprint {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  color: rgba(237, 233, 224, 0.58);
  max-width: 440px;
  margin: 0 auto !important;
  line-height: 1.55;
}

.download-fineprint a,
.download-fineprint a:visited {
  color: var(--accent-amber);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 162, 74, 0.35);
  transition: color 0.2s, border-color 0.2s;
}

.download-fineprint a:hover {
  color: var(--accent-amber-bright);
  border-bottom-color: var(--accent-amber-bright);
}

@media (max-width: 640px) {
  .download-card {
    padding: 3rem 1.5rem;
  }

  .btn-download {
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
  }

  .download-meta {
    font-size: 0.82rem;
    gap: 0.4rem;
  }
}

/* =========================================================
   Access / CTA
   ========================================================= */

.access {
  padding-bottom: 9rem;
}

.access-card {
  background: linear-gradient(
    180deg,
    rgba(15, 14, 24, 0.9) 0%,
    rgba(9, 8, 15, 0.6) 100%
  );
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.access-card::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  width: 150%;
  height: 200%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at center top, var(--accent-amber-soft) 0%, transparent 45%),
    radial-gradient(ellipse at 30% 80%, var(--accent-cosm-soft) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.access-card > * {
  position: relative;
  z-index: 1;
}

.access-card .section-title {
  margin-bottom: 1.5rem;
}

.access-card p {
  color: var(--text-soft);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  font-size: 1.05rem;
}

.access-card a,
.access-card a:visited {
  color: var(--accent-amber);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 162, 74, 0.35);
}

.access-card .btn-primary,
.access-card .btn-primary:visited {
  color: #1a1108;
  border-bottom: none;
}

.access-card .btn-ghost,
.access-card .btn-ghost:visited {
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
}

.access-card a:hover {
  color: var(--accent-amber-bright);
  border-bottom-color: var(--accent-amber-bright);
}

.access-card .btn-primary:hover {
  color: #1a1108;
  border-bottom: none;
}

.access-card .btn-ghost:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

.access-form {
  display: flex;
  gap: 0.5rem;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.access-form input {
  flex: 1;
  min-width: 220px;
  padding: 1rem 1.3rem;
  background: rgba(237, 233, 224, 0.05);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: all 0.25s;
}

.access-form input::placeholder {
  color: var(--text-muted);
}

.access-form input:focus {
  outline: none;
  border-color: var(--accent-amber);
  background: rgba(237, 233, 224, 0.07);
  box-shadow: 0 0 0 4px rgba(212, 162, 74, 0.08);
}

.access-form button {
  padding: 1rem 1.8rem;
  background: var(--accent-amber);
  color: #1a1108;
  border: none;
  border-radius: 100px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}

.access-form button:hover:not(:disabled) {
  transform: translateY(-2px);
  background: var(--accent-amber-bright);
  box-shadow: 0 10px 40px rgba(212, 162, 74, 0.35);
}

.access-form button:disabled {
  opacity: 0.8;
  cursor: default;
}

.access-fineprint {
  margin-top: 1.75rem !important;
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
}

/* Honeypot — never visible to a human, but present in DOM for bots. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Inline form error shown after a failed submit */
.form-error {
  margin-top: 1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--accent-amber);
  min-height: 1em;
  line-height: 1.4;
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
  padding: 3.5rem 2rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
  background: var(--bg-deep);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.footer-mark {
  color: var(--accent-amber);
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  font-weight: 500;
}

.footer-tag {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--serif);
  margin-top: 0.15rem;
}

.footer-right {
  display: flex;
  gap: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  align-items: center;
}

.footer-right a,
.footer-right a:visited {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-right a:hover {
  color: var(--accent-amber);
}

/* =========================================================
   Scroll reveal animation
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .wordmark-mark,
  .hero-scroll-line {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {
  .section {
    padding: 6rem 1.5rem;
  }

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

@media (max-width: 640px) {
  .nav-inner {
    max-width: 100%;
    padding: 1rem 1.25rem;
    justify-content: space-between;
    gap: 1rem;
  }

  .wordmark {
    min-width: 0;
  }

  .nav-links {
    margin-left: auto;
    gap: 0;
    flex-shrink: 0;
  }

  .nav-links a {
    display: none;
  }

  .nav-links a.nav-mobile-visible {
    display: inline-flex !important;
    position: fixed;
    top: 1.08rem;
    right: 1.25rem;
    z-index: 110;
    color: var(--accent-amber);
    font-size: 0.88rem;
  }

  .nav-links a.nav-mobile-visible:hover {
    color: var(--accent-amber-bright);
  }

  .hero {
    padding: 7rem 1.25rem 5rem;
  }

  .hero-title {
    font-size: clamp(2.35rem, 13vw, 3.4rem);
    line-height: 1.02;
    letter-spacing: -0.014em;
    max-width: 100%;
    text-wrap: balance;
  }

  .hero-sub {
    font-size: 1.02rem;
  }

  .section {
    padding: 5rem 1.25rem;
  }

  .philosophy-body p {
    font-size: 1.02rem;
  }

  .philosophy-emphasis {
    font-size: 1.25rem !important;
    padding: 2rem 0 !important;
  }

  .principles-list li {
    grid-template-columns: 60px 1fr;
    gap: 1.25rem;
    padding: 1.75rem 0;
  }

  .principles-list h4 {
    font-size: 1.3rem;
  }

  .access-card {
    padding: 3.5rem 1.5rem;
  }

  .access-form {
    flex-direction: column;
    align-items: stretch;
  }

  .access-form input,
  .access-form button {
    min-width: unset;
    width: 100%;
  }

  .orb {
    opacity: 0.55;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-left {
    justify-content: center;
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-text {
    text-align: center;
  }

  .footer-right {
    justify-content: center;
    flex-direction: column;
    gap: 0.75rem;
  }
}
