/* Wizard Dynamics — Nate-style single page, WD CI */

:root {
  --bg-dark: #0a0907;
  --bg-elevated: #121010;
  --bg-card: rgba(18, 16, 13, 0.72);
  --text-on-dark: #f0ede6;
  --text-muted: #857e6f;
  --text-dim: #4a463e;
  --accent: #d4a24a;
  --accent-hot: #e8b862;
  --line: rgba(240, 237, 230, 0.08);
  --line-strong: rgba(240, 237, 230, 0.18);
  --border-accent: rgba(212, 162, 74, 0.22);
  --border-accent-strong: rgba(212, 162, 74, 0.5);
  --glow-gold: 0 0 80px rgba(212, 162, 74, 0.16), 0 0 160px rgba(212, 162, 74, 0.06);
  --font-display: 'Instrument Serif', 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-body: 'Archivo', system-ui, sans-serif;
  --container: 1240px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--bg-dark); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.center { text-align: center; }
.arrow { display: inline-block; transition: transform 0.3s var(--ease-out); }
a { color: inherit; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Nav ---------- */
.nav-wrap {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav-wrap.scrolled {
  background: rgba(10, 9, 7, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-brand {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  white-space: nowrap;
}
.nav-brand .slash, .footer-brand .slash { color: var(--accent-hot); }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--accent-hot); }
.nav-links a.nav-cta {
  color: var(--bg-dark);
  background: var(--accent);
  padding: 0.55rem 1rem;
  border-radius: 3px;
  font-weight: 700;
  transition: background 0.25s, box-shadow 0.25s;
}
.nav-links a.nav-cta:hover {
  background: var(--accent-hot);
  box-shadow: 0 0 30px rgba(212, 162, 74, 0.35);
  color: var(--bg-dark);
}
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-on-dark);
  transition: transform 0.3s, opacity 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, rgba(212, 162, 74, 0.13) 0%, rgba(212, 162, 74, 0.04) 40%, transparent 70%);
  pointer-events: none;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 0%, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  width: 100%;
}

.hero-eyebrow, .eyebrow-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.6rem;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(212, 162, 74, 0.8);
  flex: 0 0 auto;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 7.5vw, 6.2rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 1.8rem;
}
.hero-line { display: block; }
.hero-line-accent i {
  font-style: italic;
  color: var(--accent);
  text-shadow: 0 0 60px rgba(212, 162, 74, 0.35);
}
.reveal.hero-line { transition-delay: 0.05s; }
.reveal.hero-line-accent { transition-delay: 0.15s; }
.reveal.hero-line + .reveal.hero-line + .reveal.hero-line { transition-delay: 0.25s; }

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 2.4rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}
.hero-cta.center { justify-content: center; margin-bottom: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.5rem;
  border-radius: 3px;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s, color 0.25s;
}
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary {
  background: var(--accent);
  color: var(--bg-dark);
  border: 1px solid var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hot);
  border-color: var(--accent-hot);
  box-shadow: 0 0 40px rgba(212, 162, 74, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--text-on-dark);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(212, 162, 74, 0.08);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.4rem);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  line-height: 1;
  color: var(--text-on-dark);
}
.hero-stat-num span { color: var(--accent); font-size: 0.7em; }
.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.hero-stat-rule {
  width: 1px;
  height: 44px;
  background: var(--line-strong);
  flex: 0 0 auto;
}

/* Hero info-cell column (sub pages) */
.hero-col-cells {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-self: center;
}
.hero-col-cells .reveal:nth-child(1) { transition-delay: 0.1s; }
.hero-col-cells .reveal:nth-child(2) { transition-delay: 0.2s; }
.hero-col-cells .reveal:nth-child(3) { transition-delay: 0.3s; }
.hero-col-cells .reveal:nth-child(4) { transition-delay: 0.4s; }

/* Globe — bleeds off the right edge, no contained circle */
.hero-col-globe { display: flex; justify-content: flex-end; }
.globe-wrap {
  position: relative;
  width: clamp(440px, 38vw, 680px);
  aspect-ratio: 1;
  margin-right: clamp(-8vw, -4vw, -2vw);
}
#globe {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  opacity: 0;
  transition: opacity 1.2s ease;
}
#globe canvas { display: block; }
.globe-hint {
  position: absolute;
  bottom: -0.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero-scroll-hint .arrow { animation: bob 1.8s ease-in-out infinite; color: var(--accent); }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(5rem, 10vw, 8.5rem) 0; position: relative; }
.section-pillars { border-top: 1px solid var(--line); }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 1.4rem;
}
.section-title em {
  font-style: italic;
  color: var(--accent);
}
.section-sub {
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 auto 3.5rem;
}
.eyebrow-dot.center { justify-content: center; display: flex; }

/* Pillar cards */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.pillar-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 62rem;
  margin: 0 auto;
}
.pillar-grid div.pillar-card { cursor: default; }
.pillar-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2rem 1.6rem;
  text-decoration: none;
  scroll-margin-top: 6rem;
  transition: border-color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.pillar-card:hover {
  border-color: var(--border-accent-strong);
  transform: translateY(-4px);
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.5), 0 0 60px rgba(212, 162, 74, 0.08);
}
.pillar-card:hover .arrow { transform: translateX(4px); }
.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.6rem;
}
.pillar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.pillar-head .pillar-num { margin-bottom: 0; }
.pillar-head { margin-bottom: 1.6rem; }
.pill {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-hot);
  border: 1px solid var(--border-accent-strong);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  white-space: nowrap;
  animation: pulse 2.4s ease-in-out infinite;
}
.pillar-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
  margin-bottom: 0.9rem;
}
.pillar-body {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
  flex: 1;
}
.pillar-link {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-hot);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* stagger the cards */
.pillar-grid .reveal:nth-child(1) { transition-delay: 0s; }
.pillar-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.pillar-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.pillar-grid .reveal:nth-child(4) { transition-delay: 0.3s; }

/* About */
.section-about {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 50% 60% at 85% 30%, rgba(212, 162, 74, 0.06) 0%, transparent 70%),
    var(--bg-dark);
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.about-col-text .section-title { margin-bottom: 1.6rem; }
.about-body {
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 36rem;
  margin-bottom: 1.4rem;
}
.about-col-text .hero-cta { margin: 1.2rem 0 0; }
.about-col-cells {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.info-cell {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.6rem 1.4rem;
  transition: border-color 0.3s;
}
.info-cell:hover { border-color: var(--border-accent-strong); }
.info-cell-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.info-cell-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.info-cell-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.about-col-cells .reveal:nth-child(1) { transition-delay: 0s; }
.about-col-cells .reveal:nth-child(2) { transition-delay: 0.1s; }
.about-col-cells .reveal:nth-child(3) { transition-delay: 0.2s; }
.about-col-cells .reveal:nth-child(4) { transition-delay: 0.3s; }

/* Closing */
.section-close {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(212, 162, 74, 0.07) 0%, transparent 70%),
    var(--bg-dark);
}
.section-close .section-sub { margin-bottom: 2.4rem; }

/* Legal pages */
.legal-page { padding-top: clamp(8rem, 14vw, 11rem); min-height: 70vh; }
.legal-inner { max-width: 46rem; }
.legal-h {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 2.6rem 0 0.8rem;
}
.legal-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
}
.legal-body a { color: var(--accent-hot); text-decoration: none; }
.legal-body a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-brand {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.footer-note {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}
.footer-note a { color: var(--text-muted); text-decoration: none; }
.footer-note a:hover { color: var(--accent-hot); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 340px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    background: rgba(10, 9, 7, 0.97);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 0.9rem; }
  .nav-burger { display: flex; position: relative; z-index: 110; }
  .nav-burger.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

  .hero { padding-top: 6rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-col-globe { order: -1; justify-content: center; }
  .globe-wrap { width: min(78vw, 400px); margin-right: 0; }
  .hero-scroll-hint { display: none; }
}

@media (max-width: 560px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; }
  .hero-stat-rule { display: none; }
  .hero-stat { min-width: 40%; }
}

/* ---------- Contact form ---------- */
.hero-col-form { display: flex; align-items: center; }
.contact-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 34px;
  backdrop-filter: blur(14px);
  box-shadow: var(--glow-gold);
}
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: flex; flex-direction: column; gap: 7px; }
.form-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 13px 15px;
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.form-input::placeholder { color: var(--text-dim); }
.form-input:focus {
  outline: none;
  border-color: var(--border-accent-strong);
  box-shadow: 0 0 0 3px rgba(212, 162, 74, 0.12);
}
.form-textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23857e6f' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}
.form-submit { justify-content: center; width: 100%; margin-top: 4px; border: none; cursor: pointer; }
.form-status { font-family: var(--font-mono); font-size: 13px; margin: 0; min-height: 18px; }
.form-status.ok { color: var(--accent-hot); }
.form-status.err { color: #e0906a; }
.contact-direct {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin: 20px 0 0;
  text-align: center;
}
.contact-direct a { color: var(--accent); text-decoration: none; }
.contact-direct a:hover { color: var(--accent-hot); }
.contact-cells { margin-top: 30px; }
.info-cell-value-sm { font-size: 1.15rem; }
@media (max-width: 900px) {
  .hero-col-form { margin-top: 8px; }
  .contact-card { padding: 26px; }
}
