/* ─────────────────────────────────────────────
   MJO MYRIAD — Stylesheet
   ───────────────────────────────────────────── */

/* TOKENS */
:root {
  --bg:           #FAFAF8;
  --ink:          #0C0C0A;
  --blue:         #0047D4;
  --blue-mid:     #4A7DE8;
  --blue-light:   #EBF1FF;
  --gray:         #8A8A88;
  --border:       rgba(12,12,10,0.10);
  --border-light: rgba(12,12,10,0.06);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAV ──────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.5s, border-color 0.5s;
}
.nav-inner {
  padding: 28px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
nav.scrolled {
  background: rgba(250,250,248,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Cormorant SC', serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--ink);
  text-decoration: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 44px;
  list-style: none;
}
.nav-links li > a:not(.nav-cta) {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links li > a:not(.nav-cta):hover { color: var(--blue); }
.nav-cta {
  display: inline-block;
  padding: 11px 26px;
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s;
  border: none;
}
.nav-cta:hover { background: var(--blue); color: var(--bg); }

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── BUTTONS ──────────────────────────────── */
.btn-dark {
  display: inline-block;
  padding: 14px 32px;
  background: var(--ink);
  color: var(--bg);
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.25s;
}
.btn-dark:hover { background: var(--blue); }

.btn-outline {
  display: inline-block;
  padding: 13px 28px;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.btn-outline:hover { background: var(--ink); color: var(--bg); }

.btn-outline-light {
  display: inline-block;
  padding: 13px 28px;
  background: transparent;
  border: 1px solid rgba(250,250,248,0.45);
  color: var(--bg);
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.btn-outline-light:hover { background: var(--bg); color: var(--ink); }

/* ── HERO ─────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#boid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 32px;
}
.hero-eyebrow {
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 40px;
  font-weight: 400;
  display: block;
  animation: heroFade 1.2s 0.2s ease both;
}
.hero-name {
  font-family: 'Cormorant SC', serif;
  font-size: clamp(72px, 14vw, 200px);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 0.88;
  color: var(--ink);
  margin-bottom: 44px;
  animation: heroFade 1.2s 0.05s ease both;
}
.hero-name span { display: block; }

/*
 * Separate keyframe keeps animation-fill-mode from overriding
 * the intended resting opacity of 0.6.
 */
.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(17px, 2.2vw, 26px);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 60px;
  animation: heroFadeTagline 1.2s 0.3s ease both;
}
.hero-cta { animation: heroFade 1.2s 0.45s ease both; }

@keyframes heroFade {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeTagline {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 0.6; transform: translateY(0); }
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: heroFade 1.2s 0.9s ease both;
}
.hero-scroll span {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

/* ── SHARED ───────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 56px; }

.section-label {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 400;
  margin-bottom: 20px;
  display: block;
}
h2 {
  font-family: 'Cormorant SC', serif;
  font-size: clamp(34px, 4.5vw, 60px);
  font-weight: 500;
  letter-spacing: 0.07em;
  line-height: 1.1;
}

/* ── PILLARS ──────────────────────────────── */
#pillars { background: var(--ink); padding: 130px 0; }
#pillars .section-label { color: var(--blue-mid); }
#pillars h2 { color: var(--bg); margin-bottom: 80px; }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(250,250,248,0.1);
}
.pillar { padding: 60px 48px 60px 0; border-right: 1px solid rgba(250,250,248,0.1); }
.pillar:first-child  { padding-left: 0; }
.pillar:nth-child(2) { padding-left: 48px; }
.pillar:last-child   { border-right: none; padding-right: 0; padding-left: 48px; }

.pillar-num {
  font-family: 'Cormorant SC', serif;
  font-size: 13px;
  color: var(--blue-mid);
  letter-spacing: 0.3em;
  margin-bottom: 36px;
  display: block;
  opacity: 0.7;
}
.pillar h3 {
  font-family: 'Cormorant SC', serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--bg);
  margin-bottom: 18px;
  line-height: 1.2;
}
.pillar p { font-size: 14px; font-weight: 300; color: rgba(250,250,248,0.55); line-height: 1.85; }

/* ── PROCESS ──────────────────────────────── */
#how { padding: 130px 0; border-top: 1px solid var(--border); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 80px;
  border-top: 1px solid var(--border);
}
.step { padding: 48px 40px 0 0; border-right: 1px solid var(--border); }
.step:first-child  { padding-left: 0; }
.step:nth-child(2), .step:nth-child(3) { padding-left: 40px; }
.step:last-child   { border-right: none; padding-right: 0; padding-left: 40px; }

.step-num {
  font-family: 'Cormorant SC', serif;
  font-size: 11px;
  color: var(--blue);
  letter-spacing: 0.25em;
  margin-bottom: 28px;
  display: block;
}
.step h3 {
  font-family: 'Cormorant SC', serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.step p { font-size: 14px; font-weight: 300; color: var(--gray); line-height: 1.75; }

/* ── PACKAGES ─────────────────────────────── */
#packages { padding: 130px 0; border-top: 1px solid var(--border); background: var(--blue-light); }

.packages-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 40px;
}
.packages-note {
  font-size: 13px;
  font-weight: 300;
  color: var(--gray);
  max-width: 300px;
  line-height: 1.7;
  flex-shrink: 0;
}
.service-toggle {
  display: flex;
  gap: 2px;
  margin-bottom: 40px;
  background: rgba(12,12,10,0.08);
  padding: 2px;
  width: fit-content;
}
.toggle-btn {
  padding: 12px 36px;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--gray);
  transition: background 0.2s, color 0.2s;
}
.toggle-btn.active { background: var(--ink); color: var(--bg); }

.service-desc {
  display: none;
  font-size: 15px;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: 48px;
}
.service-desc.active { display: block; }

.packages-grid {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(12,12,10,0.08);
}
.packages-grid.active { display: grid; }

.package {
  background: var(--bg);
  padding: 56px 44px 48px;
  display: flex;
  flex-direction: column;
}
.package.featured { background: var(--ink); }

.pkg-tag {
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.recommended-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}
.package.featured .pkg-tag          { color: var(--blue-mid); }
.package.featured .recommended-dot  { background: var(--blue-mid); }

.package h3 {
  font-family: 'Cormorant SC', serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 40px;
  color: var(--ink);
}
.package.featured h3 { color: var(--bg); }

.pkg-features { list-style: none; flex: 1; margin-bottom: 48px; }
.pkg-features li {
  font-size: 14px;
  font-weight: 300;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}
.package.featured .pkg-features li {
  border-bottom-color: rgba(250,250,248,0.1);
  color: rgba(250,250,248,0.75);
}
.pkg-features li::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--blue);
  flex-shrink: 0;
}
.package.featured .pkg-features li::before { background: var(--blue-mid); }

/* ── ABOUT ────────────────────────────────── */
#about { padding: 130px 0; border-top: 1px solid var(--border); }

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 72px;
}
.about-block p {
  font-size: 16px;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.85;
  margin-bottom: 24px;
}
.about-block p:last-child { margin-bottom: 0; }

/* ── FORMS ────────────────────────────────── */
#contact { padding: 130px 0; border-top: 1px solid var(--border); }
#creators { padding: 130px 0; border-top: 1px solid var(--border); background: var(--blue-light); }

.form-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 100px;
  margin-top: 72px;
  align-items: start;
}
.form-intro p {
  font-size: 16px;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.85;
  margin-top: 20px;
}
.form-detail {
  font-size: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}
form { display: flex; flex-direction: column; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.field { display: flex; flex-direction: column; margin-bottom: 36px; }

label {
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 400;
  margin-bottom: 10px;
}
input, select, textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}
/* Restore chevron removed by appearance:none */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238A8A88'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 20px;
}
input:focus, select:focus, textarea:focus { border-bottom-color: var(--blue); }
input::placeholder, textarea::placeholder { color: rgba(12,12,10,0.25); }
textarea { resize: none; height: 72px; }

.field-submit { margin-top: 8px; }
.field-submit .btn-dark { width: 100%; text-align: center; padding: 16px; }

.form-success {
  display: none;
  padding: 16px;
  background: var(--blue);
  color: var(--bg);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1.6;
}
.form-success.visible { display: block; }

/* ── FOOTER ───────────────────────────────── */
footer { background: var(--ink); padding: 64px 0; }
footer .container { max-width: none; }

.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-logo {
  font-family: 'Cormorant SC', serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--bg);
}
.footer-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 300;
  font-style: italic;
  color: rgba(250,250,248,0.4);
}
.footer-meta {
  font-size: 11px;
  font-weight: 300;
  color: rgba(250,250,248,0.3);
  letter-spacing: 0.12em;
  text-align: right;
  line-height: 1.8;
}
.footer-email {
  color: rgba(250,250,248,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-email:hover { color: var(--bg); }

/* ── SCROLL FADE-IN ───────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── REDUCED MOTION ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-up        { opacity: 1; transform: none; }
  .hero-tagline   { opacity: 0.6; }
}

/* ── RESPONSIVE: TABLET (≤ 900px) ────────── */
@media (max-width: 900px) {
  .nav-inner { padding: 20px 32px; }
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(250,250,248,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 20px 32px 28px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links li > a:not(.nav-cta) {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
  }
  .nav-cta { display: block; margin-top: 16px; text-align: center; }

  .container { padding: 0 32px; }

  #about { padding: 80px 0; }
  .about-layout { grid-template-columns: 1fr; gap: 0; }
  .about-block:first-child { margin-bottom: 32px; }

  #pillars { padding: 80px 0; }
  .pillars-grid { grid-template-columns: 1fr; border-top: none; }
  .pillar { padding: 40px 0; border-right: none; border-top: 1px solid rgba(250,250,248,0.1); }
  .pillar:nth-child(2), .pillar:last-child { padding-left: 0; padding-right: 0; }

  #how { padding: 80px 0; }
  .steps { grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
  .step { padding: 36px 32px 36px 0; }
  .step:nth-child(2) { border-right: none; padding-right: 0; }
  .step:nth-child(3) { border-top: 1px solid var(--border); padding-top: 36px; padding-left: 0; padding-right: 32px; border-right: 1px solid var(--border); }
  .step:last-child   { border-top: 1px solid var(--border); padding-top: 36px; border-right: none; padding-right: 0; }

  #packages { padding: 80px 0; }
  .packages-header { flex-direction: column; align-items: flex-start; margin-bottom: 40px; }
  .packages-note { max-width: 100%; }
  .packages-grid { grid-template-columns: 1fr; }
  .package { padding: 40px 32px; }
  .toggle-btn { padding: 12px 24px; }

  #contact, #creators { padding: 80px 0; }
  .form-layout { grid-template-columns: 1fr; gap: 48px; }

  footer { padding: 48px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-meta { text-align: left; }
}

/* ── RESPONSIVE: MOBILE (≤ 560px) ────────── */
@media (max-width: 560px) {
  .nav-inner { padding: 18px 24px; }
  .nav-links { padding: 16px 24px 24px; }
  .container { padding: 0 24px; }

  #about { padding: 64px 0; }

  #pillars { padding: 64px 0; }

  #how { padding: 64px 0; }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 32px 0; border-right: none; border-top: 1px solid var(--border); }
  .step:first-child { border-top: none; }
  .step:nth-child(3) { border-right: none; padding-right: 0; }

  #packages { padding: 64px 0; }
  .service-toggle { width: 100%; }
  .toggle-btn { flex: 1; padding: 12px 16px; }

  #contact, #creators { padding: 64px 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  footer { padding: 40px 0; }
}
