/* ============================================================
   Asher Encounters — Website shared styles
   Sits on top of the design-system tokens (styles.css).
   Only layout glue, motion, and responsive chrome live here —
   all color/type/spacing comes from DS custom properties.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Client request: the JetBrains-Mono labels read as hard/small.
     Swap the label font globally to a cleaner, more legible techy
     grotesque (still signals "Silicon Valley", far easier to read),
     and nudge the eyebrow size up a touch. Everything that uses
     var(--font-mono) — eyebrows, tags, at-a-glance labels, dates,
     footer labels — updates from this one place. */
  --font-mono: 'Space Grotesk', 'Hanken Grotesk', -apple-system, sans-serif;
  --fs-eyebrow: 0.8rem;
}

html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--surface-page); overflow-x: clip; }
* { box-sizing: border-box; }

/* ---- Layout helpers --------------------------------------- */
.ae-container { max-width: var(--container-max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.ae-section { padding-top: var(--section-y); }
a { color: inherit; }

/* ---- Reveal-on-scroll (slide-only: never hides content, so it is
   robust even where CSS transitions can't advance frames) -------- */
.ae-reveal { opacity: 1; transform: translateY(14px); transition: transform .6s var(--ease-out); will-change: transform; }
.ae-reveal.is-in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ae-reveal { transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---- Nav --------------------------------------------------- */
.ae-nav-link { font-family: var(--font-sans); font-size: 1.02rem; font-weight: 500; color: var(--text-body); text-decoration: none; padding: 8px 2px; position: relative; white-space: nowrap; transition: color var(--dur-fast) var(--ease-out); }
.ae-nav-link:hover { color: var(--violet); text-decoration: none; }
.ae-nav-link[aria-current="page"] { color: var(--violet); }
.ae-nav-link[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--honey); border-radius: 3px; }

.ae-hamburger { display: none; }
.ae-mobile-menu { display: none; }

/* Nav logo link spacing */
.ae-progitem { transition: background var(--dur-fast) var(--ease-out); }
.ae-progitem:hover { background: var(--lilac-100); text-decoration: none; }
.ae-sample-row { transition: background var(--dur-fast) var(--ease-out); }
.ae-sample-row:hover { background: var(--lilac-100); text-decoration: none; }

/* ---- Mobile drawer ----------------------------------------- */
@media (max-width: 1000px) {
  .ae-desktop-links { display: none !important; }
  .ae-hamburger { display: inline-flex !important; }
  .ae-mobile-menu { display: block; }
}

/* ---- Modal ------------------------------------------------- */
.ae-modal-backdrop { position: fixed; inset: 0; background: rgba(22,20,31,0.55); backdrop-filter: blur(4px); z-index: var(--z-overlay); display: flex; align-items: flex-start; justify-content: center; padding: clamp(16px, 5vh, 64px) 16px; overflow-y: auto; animation: ae-fade .24s var(--ease-out); }
.ae-modal { width: 100%; max-width: 560px; background: var(--white); border-radius: var(--radius-2xl); box-shadow: var(--shadow-xl); overflow: hidden; animation: ae-rise .28s var(--ease-out); }
@keyframes ae-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ae-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---- Floating Book-a-Tour (negative-space rule) ------------ */
.ae-float-book { position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: var(--z-sticky); opacity: 0; transform: translateY(12px) scale(.96); pointer-events: none; transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.ae-float-book.is-show { opacity: 1; transform: none; pointer-events: auto; }

/* ---- Image placeholder frame ------------------------------- */
.ae-imgframe { position: relative; overflow: hidden; border-radius: var(--radius-2xl); background: var(--lilac-100); isolation: isolate; }
.ae-imgframe__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ae-imgframe__wash { position: absolute; inset: 0; }
.ae-imgframe__mark { position: absolute; width: 62%; max-width: 360px; opacity: 0.10; right: -6%; bottom: -10%; pointer-events: none; }
.ae-imgframe__body { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px; }
.ae-imgframe__label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; max-width: 28ch; line-height: 1.5; }
.ae-imgframe__chip { position: absolute; top: 14px; left: 14px; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; padding: 5px 10px; border-radius: var(--radius-pill); background: var(--honey); color: var(--honey-ink); }

/* ---- Forms / misc ------------------------------------------ */
select.ae-select { font-family: var(--font-sans); font-size: 0.95rem; color: var(--text-body); padding: 13px 16px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--border-strong); outline: none; width: 100%; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235246C0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
select.ae-select:focus { border-color: var(--violet); box-shadow: 0 0 0 3px var(--focus-ring); }
textarea.ae-textarea { font-family: var(--font-sans); font-size: 0.95rem; color: var(--text-body); padding: 13px 16px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--border-strong); outline: none; width: 100%; resize: vertical; min-height: 110px; }
textarea.ae-textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px var(--focus-ring); }

/* ---- Generic responsive grid collapse --------------------- */
@media (max-width: 900px) {
  .ae-grid-3 { grid-template-columns: 1fr !important; }
  .ae-grid-2 { grid-template-columns: 1fr !important; }
  .ae-hero-split { grid-template-columns: 1fr !important; }
  .ae-insights-split { grid-template-columns: 1fr !important; }
  .ae-apply-split { grid-template-columns: 1fr !important; }
  .ae-footer-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 560px) {
  .ae-footer-grid { grid-template-columns: 1fr !important; }
  .ae-form-row { grid-template-columns: 1fr !important; }
}

/* ---- PLACEHOLDER marker (for founder hand-off) ------------- */
.ae-placeholder-note { outline: 1px dashed var(--border-violet); outline-offset: 2px; }
