/* ─────────────────────────────────────────────────────────────
   Majoto AI · Site Stylesheet · LIGHT VARIANT
   Brand sheet v1.0 — paper-dominant surfaces, ink type,
   dark hero + CTA-band as embedded feature blocks
   ───────────────────────────────────────────────────────────── */

/* ─── Variables — brand sheet tokens (light mode) ─── */
:root {
  /* Brand sheet — light surface tokens */
  --aurora:         #6FE3D3;
  --aurora-deep:    #2BA89A;
  --aurora-shadow:  #1A6B62;
  --ink:            #0A0F0E;
  --ink-soft:       #14201E;
  --graphite:       #2A332F;
  --paper:          #F4F1EA;
  --paper-warm:     #ECE6D9;
  --paper-edge:     #D9D2C0;
  --silver:         #8A938E;
  --line:           rgba(10, 15, 14, 0.10);
  --line-strong:    rgba(10, 15, 14, 0.30);

  /* Legacy aliases mapped to light surfaces */
  --bg-base:        var(--paper);
  --bg-mid:         var(--paper-warm);
  --bg-accent:      var(--paper-edge);
  --primary:        var(--aurora-deep);
  --teal-soft:      var(--aurora);
  --teal-dim:       var(--aurora-deep);
  --text-1:         var(--ink);
  --text-2:         var(--graphite);
  --text-3:         var(--silver);

  --ease:           0.3s ease;
  --ease-out-expo:  cubic-bezier(0.2, 0.8, 0.2, 1);
  --font-display:   'Playfair Display', Georgia, serif;
  --font-body:      'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  background: var(--bg-base);
  color: var(--text-1);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ─── Scroll-fade animation ─── */
.fade {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.40s; }

/* ─── Focus ring ─── */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* ─── Layout ─── */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }

/* ─── Eyebrow ─── */
.eyebrow {
  display: flex; align-items: center; justify-content: center;
  gap: 0.75rem;
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.eyebrow.left { justify-content: flex-start; }

/* ─── Section heading ─── */
.sh {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 3.8vw, 2.85rem);
  line-height: 1.2;
  color: var(--text-1);
  text-align: center;
  margin-bottom: 3rem;
}
.sh em { font-style: italic; color: var(--primary); }

/* ─── Buttons ─── */
.btn-p {
  display: inline-block;
  background: var(--primary); color: var(--paper);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem; font-weight: 600;
  padding: 0.9rem 2rem; border-radius: 2px;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: background var(--ease), transform var(--ease);
}
.btn-p:hover { background: var(--aurora-shadow); transform: translateY(-1px); }

.btn-g {
  display: inline-block;
  background: transparent; color: var(--graphite);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem; font-weight: 500;
  padding: 0.9rem 2rem; border-radius: 2px;
  border: 1px solid var(--aurora-deep);
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: border-color var(--ease), color var(--ease), transform var(--ease);
}
.btn-g:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.2rem 0;
  border-bottom: 1px solid transparent;
  transition: background var(--ease), backdrop-filter var(--ease), border-color var(--ease);
}
#nav.scrolled {
  background: rgba(244, 241, 234, 0.93);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: baseline; gap: 0.05rem; flex-shrink: 0;
}
.logo-word {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400; font-size: 1.6rem;
  color: var(--text-1); letter-spacing: -0.01em;
}
.logo-ai {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-weight: 400;
  font-size: 0.58rem;
  color: var(--primary); letter-spacing: 0.02em;
  position: relative; top: -0.65rem;
}
.nav-links {
  display: flex; align-items: center; gap: 2.25rem;
}
.nav-links a {
  font-size: 0.78rem; font-weight: 400;
  color: var(--text-2); letter-spacing: 0.06em;
  transition: color var(--ease);
}
.nav-links a:hover { color: var(--text-1); }
.nav-cta {
  font-size: 0.72rem !important; font-weight: 500 !important;
  color: var(--primary) !important;
  border: 1px solid var(--primary) !important;
  padding: 0.5rem 1.2rem; border-radius: 2px;
  letter-spacing: 0.06em !important; text-transform: uppercase;
  transition: background var(--ease), color var(--ease) !important;
}
.nav-cta:hover { background: var(--primary) !important; color: var(--paper) !important; }
.nav-toggle {
  display: none; padding: 0.4rem; color: var(--text-1);
  align-items: center; justify-content: center;
}

/* ══════════════════════════════════════
   HERO — kept as a dark feature block, paper text on ink surface
   (matches brand sheet pattern: paper page + dark hero block)
══════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 8rem 2rem 6rem;
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 38%, var(--ink-soft) 0%, var(--ink) 68%);
  color: var(--paper);
}
#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
/* Corner brackets */
.cb, .cb-b { position: absolute; inset: 1.75rem; pointer-events: none; }
.cb::before, .cb::after, .cb-b::before, .cb-b::after {
  content: '';
  position: absolute;
  width: 36px; height: 36px;
  border-color: rgba(43,168,154,0.5); border-style: solid;
}
.cb::before  { top: 0;    left: 0;  border-width: 1px 0 0 1px; }
.cb::after   { top: 0;    right: 0; border-width: 1px 1px 0 0; }
.cb-b::before { bottom: 0; left: 0;  border-width: 0 0 1px 1px; }
.cb-b::after  { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

.hero-content {
  position: relative; z-index: 5;
  display: flex; flex-direction: column; align-items: center;
}
.hero-mono { width: 82px; height: 82px; margin-bottom: 0.75rem; }
.hero-wm {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(5rem, 13vw, 9.5rem);
  line-height: 1; letter-spacing: -0.02em;
  color: var(--paper);
  display: flex; align-items: flex-start; gap: 0.08rem;
  margin-bottom: 0.5rem;
}
.hero-wm-ai {
  font-family: var(--font-display);
  font-style: italic; font-weight: 400;
  font-size: 0.32em;
  color: var(--aurora);
  vertical-align: super;
  margin-left: 0.08em;
  letter-spacing: 0;
  position: relative; top: -0.18em;
}
.hero-tag {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-weight: 400;
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
  color: var(--paper-edge);
  margin-bottom: 0.5rem;
}
.hero-sub {
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 1.6rem;
}
.hero-pos {
  font-size: 0.88rem; color: var(--paper-edge);
  max-width: 460px; line-height: 1.8;
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.hero-ctas {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
}

/* ══════════════════════════════════════
   STRIP
══════════════════════════════════════ */
#strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.2rem 2rem;
  background: var(--paper-warm);
  text-align: center;
}
#strip p {
  font-size: 0.72rem; font-weight: 500;
  color: var(--graphite); letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════
   WHY MAJOTO
══════════════════════════════════════ */
#why { padding: 7rem 0; background: var(--paper); }
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem;
}
.why-card {
  padding: 2.25rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper-warm);
  position: relative;
}
.why-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--aurora-deep), transparent);
  opacity: 0.6;
}
.why-icon { width: 34px; height: 34px; color: var(--aurora-deep); margin-bottom: 1.1rem; }
.why-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400; font-size: 1.2rem;
  color: var(--ink); margin-bottom: 0.65rem;
}
.why-card p { font-size: 0.84rem; color: var(--graphite); line-height: 1.78; font-weight: 300; }

/* ══════════════════════════════════════
   SERVICES
══════════════════════════════════════ */
#services { padding: 7rem 0; background: var(--paper-warm); }
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.svc-card {
  padding: 1.85rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  position: relative; overflow: hidden;
  transition: border-color var(--ease), transform var(--ease), background var(--ease);
}
.svc-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--aurora-deep);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.svc-card:hover {
  border-color: var(--line-strong);
  background: var(--paper-edge);
  transform: translateY(-2px);
}
.svc-card:hover::before { transform: scaleX(1); }
.svc-num {
  display: block;
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.18em; color: var(--aurora-deep);
  margin-bottom: 0.9rem;
}
.svc-icon { width: 30px; height: 30px; color: var(--aurora-deep); margin-bottom: 0.9rem; }
.svc-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400; font-size: 1.1rem;
  color: var(--ink); margin-bottom: 0.65rem; line-height: 1.3;
}
.svc-card p { font-size: 0.82rem; color: var(--graphite); line-height: 1.78; font-weight: 300; }

/* ══════════════════════════════════════
   APPROACH
══════════════════════════════════════ */
#approach { padding: 7rem 0; background: var(--paper); }
.appr-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; margin-top: 3.5rem; position: relative;
}
.appr-grid::before {
  content: '';
  position: absolute; top: 1.75rem; left: 12.5%; right: 12.5%; height: 1px;
  background: linear-gradient(90deg, rgba(43,168,154,0.4), var(--aurora-deep), var(--aurora-deep), rgba(43,168,154,0.4));
}
.appr-step { display: flex; flex-direction: column; align-items: center; text-align: center; }
.appr-num {
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%; border: 1px solid var(--aurora-deep);
  display: flex; align-items: center; justify-content: center;
  background: var(--paper);
  position: relative; z-index: 1;
  margin-bottom: 1.35rem; flex-shrink: 0;
}
.appr-num span {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-size: 1rem; font-weight: 400;
  color: var(--aurora-deep);
}
.appr-step h3 {
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 0.65rem;
}
.appr-step p { font-size: 0.82rem; color: var(--graphite); line-height: 1.72; font-weight: 300; }

/* ══════════════════════════════════════
   ABOUT
══════════════════════════════════════ */
#about { padding: 7rem 0; background: var(--paper-warm); position: relative; overflow: hidden; }
.about-glow {
  position: absolute;
  width: 500px; height: 350px;
  background: radial-gradient(circle, rgba(43,168,154,0.06) 0%, transparent 70%);
  top: 50%; right: -60px; transform: translateY(-50%);
  pointer-events: none;
}
.about-inner { max-width: 700px; }
.about-inner .sh { text-align: left; }
.about-inner p {
  font-size: 0.92rem; color: var(--graphite);
  line-height: 1.88; margin-bottom: 1.2rem; font-weight: 300;
}
.stat-row {
  display: flex; gap: 3rem;
  margin-top: 2.25rem; padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.stat h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem; font-weight: 400;
  color: var(--aurora-deep); line-height: 1; margin-bottom: 0.2rem;
}
.stat p {
  font-size: 0.7rem !important;
  color: var(--silver) !important;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 0 !important; font-weight: 500 !important;
}

/* ══════════════════════════════════════
   CTA BAND — kept as a dark feature block
══════════════════════════════════════ */
#cta-band {
  padding: 6rem 2rem; text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse 80% 120% at 50% 50%, var(--ink-soft) 0%, var(--ink) 78%);
  position: relative; overflow: hidden;
  color: var(--paper);
}
.cta-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 90% at 50% 50%, rgba(111,227,211,0.08) 0%, transparent 70%);
  pointer-events: none;
}
#cta-band > * { position: relative; z-index: 1; }
#cta-band h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400; font-style: italic;
  font-size: clamp(1.65rem, 3.6vw, 2.55rem);
  color: var(--paper); max-width: 560px;
  margin: 0 auto 0.9rem; line-height: 1.3;
}
#cta-band p {
  font-size: 0.86rem; color: var(--paper-edge);
  max-width: 460px; margin: 0 auto 2.25rem;
  line-height: 1.78; font-weight: 300;
}

/* ══════════════════════════════════════
   CONTACT
══════════════════════════════════════ */
#contact { padding: 7rem 0; background: var(--paper); }
.contact-grid {
  display: grid; grid-template-columns: 3fr 2fr;
  gap: 5rem; margin-top: 2.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fg { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.9rem; }
.fg label {
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--silver);
}
.fg input, .fg select, .fg textarea {
  background: #FFFFFF;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 0.72rem 0.9rem;
  color: var(--ink);
  font-family: 'Montserrat', sans-serif; font-size: 0.85rem; font-weight: 300;
  outline: none; width: 100%;
  transition: border-color var(--ease);
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--aurora-deep);
}
.fg input::placeholder, .fg textarea::placeholder { color: var(--silver); }
.fg select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232BA89A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center;
  padding-right: 2.25rem;
}
.fg select option { background: var(--paper); color: var(--ink); }
.fg textarea { resize: vertical; min-height: 110px; }
.fg-err { font-size: 0.7rem; color: #C13E3E; display: none; margin-top: -0.1rem; }
.fg.err input, .fg.err select, .fg.err textarea { border-color: #C13E3E; }
.fg.err .fg-err { display: block; }
.form-ok {
  display: none; padding: 2rem;
  border: 1px solid var(--aurora-deep); border-radius: 2px;
  background: rgba(43,168,154,0.06); text-align: center;
}
.form-ok.show { display: block; }
.form-ok h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-size: 1.5rem;
  color: var(--aurora-deep); margin-bottom: 0.4rem;
}
.form-ok p { font-size: 0.875rem; color: var(--graphite); font-weight: 300; }
.form-fail {
  display: none; padding: 1rem 1.25rem; margin-top: 1rem;
  border: 1px solid #C13E3E; border-radius: 2px;
  background: rgba(193,62,62,0.06);
  font-size: 0.82rem; color: #C13E3E; font-weight: 400;
}
.form-fail.show { display: block; }
button[disabled] { opacity: 0.6; cursor: not-allowed; }
.contact-info h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400; font-size: 1.4rem;
  color: var(--ink); margin-bottom: 0.75rem;
}
.contact-info p { font-size: 0.86rem; color: var(--graphite); line-height: 1.78; margin-bottom: 0.75rem; font-weight: 300; }
.c-div { width: 36px; height: 1px; background: var(--aurora-deep); opacity: 0.5; margin: 1.4rem 0; }
.c-detail {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.83rem; color: var(--graphite); margin-bottom: 0.65rem; font-weight: 300;
}
.c-detail svg { color: var(--aurora-deep); flex-shrink: 0; }
.c-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-size: 0.95rem;
  color: var(--silver); line-height: 1.7; margin-top: 1.5rem;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 1.75rem;
  background: var(--paper);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.footer-left { display: flex; flex-direction: column; gap: 0.2rem; }
.footer-cr { font-size: 0.7rem; color: var(--silver); margin-top: 0.2rem; font-weight: 400; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a {
  font-size: 0.76rem; color: var(--silver);
  letter-spacing: 0.06em;
  transition: color var(--ease);
}
.footer-links a:hover { color: var(--aurora-deep); }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.footer-tag {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-size: 0.85rem; color: var(--silver);
}
.f-bracket {
  width: 20px; height: 20px;
  border-right: 1px solid var(--aurora-deep);
  border-bottom: 1px solid var(--aurora-deep);
  opacity: 0.5;
}

/* ─── Hero entrance — exact brand keyframes & timing ─── */
@keyframes brand-mark-in {
  from { opacity: 0; transform: scale(0.85) rotate(-8deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes brand-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes brand-fade-only {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes brand-spike-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 0.95; transform: translateY(0); }
}
@keyframes brand-letter-in {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes brand-grid-drift {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 80px 80px, 80px 80px; }
}
@keyframes brand-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(1.05); }
}
@keyframes brand-rule-grow {
  from { opacity: 0; transform: scaleX(0); }
  to   { opacity: 1; transform: scaleX(1); }
}

/* Animation classes — delays match brand CSS exactly */
.h-meta    { opacity: 0; animation: brand-fade-in 1.2s var(--ease-out-expo) 0.3s  forwards; }
.h-mark    { opacity: 0; animation: brand-mark-in 1.2s var(--ease-out-expo) 0.5s  forwards; }
.h-wm      { opacity: 0; animation: brand-fade-in 1.2s var(--ease-out-expo) 1.0s  forwards; }
.h-rule    { opacity: 0; animation: brand-rule-grow 1.0s var(--ease-out-expo) 1.6s forwards; transform-origin: center; }
.h-tag     { opacity: 0; animation: brand-fade-in 1.2s var(--ease-out-expo) 1.8s  forwards; }
.h-sub     { opacity: 0; animation: brand-fade-in 1.2s var(--ease-out-expo) 2.2s  forwards; }
.h-ctas    { opacity: 0; animation: brand-fade-in 1.2s var(--ease-out-expo) 2.8s  forwards; }
.h-bracket { opacity: 0; animation: brand-fade-only 1.2s var(--ease-out-expo) 0.1s forwards; }

/* SVG sub-element animations inside the compass mark */
.hero-mono .ring,
.hero-mono .axis,
.hero-mono .diagonal { animation: brand-fade-only 1.6s var(--ease-out-expo) 0.7s backwards; }
.hero-mono .spike    { animation: brand-spike-in  1.0s var(--ease-out-expo) 1.4s backwards; }
.hero-mono .letter   { animation: brand-letter-in 1.0s ease-out             1.6s backwards; }

/* Animated grid layer inside hero */
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(111,227,211,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111,227,211,0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center center;
  animation: brand-grid-drift 60s linear infinite;
}

/* Aurora glow — pulsing, top-right */
.hero-aurora {
  position: absolute; pointer-events: none; z-index: 0;
  top: -10%; right: -15%; width: 70%; height: 70%;
  background: radial-gradient(circle, rgba(111,227,211,0.10) 0%, transparent 60%);
  animation: brand-pulse 8s ease-in-out infinite;
}

/* Film grain overlay */
.hero-grain {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.04; mix-blend-mode: overlay;
  background-image:
    radial-gradient(circle at 23% 47%, rgba(255,255,255,0.5) 1px, transparent 1px),
    radial-gradient(circle at 74% 23%, rgba(255,255,255,0.5) 1px, transparent 1px),
    radial-gradient(circle at 53% 78%, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px, 7px 7px;
}

/* Full border frame (brand-frame equivalent) */
.hero-frame {
  position: absolute; z-index: 2; pointer-events: none;
  top: 24px; left: 24px; right: 24px; bottom: 24px;
  border: 1px solid rgba(111,227,211,0.18);
}

/* Hero corner metadata — paper-toned for dark hero */
.hero-corner-tl, .hero-corner-tr {
  position: absolute; z-index: 5;
  top: 5.25rem;
  font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--silver); line-height: 1.6;
}
.hero-corner-tl { left: 2.75rem; }
.hero-corner-tr { right: 2.75rem; text-align: right; }
.hero-corner-tl em, .hero-corner-tr em { font-style: normal; color: var(--paper-edge); }

/* Decorative rule */
.hero-rule {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin: 4px auto 14px;
}
.hero-rule .line {
  display: block; width: 56px; height: 1px;
  background: var(--aurora); opacity: 0.6;
}
.hero-rule .star {
  color: var(--aurora); font-size: 8px;
  display: block; transform: rotate(45deg);
  line-height: 1;
}

/* Discipline line — paper-toned for dark hero */
.hero-disc {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--paper-edge); margin-bottom: 1rem;
}

/* Corner brackets (in dark hero) — bright aurora reads on dark */
.cb::before, .cb::after, .cb-b::before, .cb-b::after {
  width: 24px; height: 24px;
  border-color: var(--aurora);
  opacity: 0.7;
}
.cb, .cb-b { inset: 24px; z-index: 5; }

/* Nav compass mark — uses --primary which is aurora-deep on light */
.logo-mark {
  width: 26px; height: 26px; flex-shrink: 0;
  opacity: 0;
  transform: scale(0.85) rotate(-8deg);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
  margin-right: 0.5rem;
}
#nav.scrolled .logo-mark {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}
.logo-mark .lm-ring     { fill: none; stroke: var(--aurora-deep); stroke-width: 2; opacity: 0.6; }
.logo-mark .lm-axis     { stroke: var(--aurora-deep); stroke-width: 1.5; opacity: 0.7; }
.logo-mark .lm-diagonal { stroke: var(--aurora-deep); stroke-width: 1; opacity: 0.4; }
.logo-mark .lm-spike    { fill: var(--aurora-deep); }

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .h-bracket, .h-meta, .h-mark, .h-wm, .h-rule,
  .h-tag, .h-sub, .h-ctas,
  .hero-mono .ring, .hero-mono .axis, .hero-mono .diagonal,
  .hero-mono .spike, .hero-mono .letter,
  .hero-grid, .hero-aurora {
    animation: none; opacity: 1; transform: none;
  }
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .appr-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .appr-grid::before { display: none; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(244, 241, 234, 0.97); backdrop-filter: blur(18px);
    flex-direction: column; padding: 1.75rem 2rem; gap: 1.25rem;
    border-top: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-cta { align-self: flex-start; }
  .why-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .appr-grid { grid-template-columns: 1fr; gap: 0; margin-top: 2rem; }
  .appr-step {
    flex-direction: row; text-align: left; align-items: flex-start;
    gap: 1.25rem; padding: 1.35rem 0;
    border-bottom: 1px solid var(--line);
  }
  .appr-step:last-child { border-bottom: none; }
  .appr-num { flex-shrink: 0; margin-bottom: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .stat-row { flex-wrap: wrap; gap: 1.5rem; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-right { align-items: center; }
}
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .btn-p, .btn-g { text-align: center; }
}
