/* ═══════════════════════════════════════════════════════════
   Hammons Enterprises, LLC — homepage styles
   Hand-rolled static site: dark, cinematic, dependency-free.
   Accent color lives in :root below — change it once, theme follows.
   ═══════════════════════════════════════════════════════════ */

/* ── MONAD MARK FONT ──
   Single-glyph subset (⊙ U+2299) of Noto Sans Math (OFL 1.1).
   Its inner dot is a fine true circle; the body font (Manrope)
   renders ⊙ with a square-ish dot, so the mark gets its own face. */
@font-face {
  font-family: 'Monad Mark';
  src: url('assets/monad.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: block;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  width: 100%; min-height: 100vh; min-height: 100dvh;
  background: #000; color: var(--ink);
  font-family: 'Manrope', sans-serif; font-weight: 400; font-size: 14px;
  letter-spacing: 0.01em; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

/* ── ACCENT COLOR ── */
:root {
  color-scheme: dark;           /* Dark-only by design — UA chrome follows. */
  --accent: 0, 230, 210;        /* Soft cyan, used sparingly — RGB triplet */
  --accent-soft: 0, 200, 195;
  /* Ink scale — one gray family (217,217,217 = #D9D9D9), three steps plus
     bright. bright = headings/wordmark; soft = secondary copy; faint =
     labels, eyebrows, meta. Nav chrome keeps its own brighter tone. */
  --ink: #D9D9D9;
  --ink-bright: #fff;
  --ink-soft: rgba(217,217,217,0.7);
  --ink-faint: rgba(217,217,217,0.5);
  /* Line scale — hairline borders and rules. */
  --line-faint: rgba(255,255,255,0.08);
  --line: rgba(255,255,255,0.14);
  --line-strong: rgba(255,255,255,0.25);
}
img { max-width: 100%; display: block; }
button, input, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* ── TYPOGRAPHY TOKENS ── */
.eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--ink-faint);
}
.display {
  font-size: clamp(36px, 6.3vw, 73px); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.05; text-transform: uppercase;
  color: var(--ink-bright);
}
.heading {
  font-size: clamp(25px, 3.6vw, 42px); font-weight: 600;
  letter-spacing: -0.01em; line-height: 1.1; text-transform: uppercase;
  color: var(--ink-bright);
}

/* ── BUTTON ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 31px; min-height: 48px;
  border: 1px solid rgba(255,255,255,0.5); background: transparent;
  color: var(--ink-bright); font-size: 13px; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  cursor: pointer;
  transition: border-color 300ms cubic-bezier(0.25,0.1,0.25,1),
              color 300ms cubic-bezier(0.25,0.1,0.25,1),
              background 300ms cubic-bezier(0.25,0.1,0.25,1),
              box-shadow 400ms cubic-bezier(0.25,0.1,0.25,1);
}
.btn:hover {
  border-color: rgba(var(--accent), 0.6);
  color: var(--ink-bright);
  background: rgba(var(--accent), 0.04);
  box-shadow: 0 0 24px rgba(var(--accent), 0.08);
}

/* ── HERO ──
   Waving-hand mark plus a random video clip that plays once and holds. */
.hero-video {
  position: fixed; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  opacity: 0; transition: opacity 1.2s cubic-bezier(0.25,0.1,0.25,1);
}
.hero-video.ready { opacity: 1; }
.hero-scrim {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.30) 0%,
    rgba(0,0,0,0.13) 30%,
    rgba(0,0,0,0.47) 100%
  );
}
.hero-fade {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: #000; opacity: 0;
  transition: opacity 200ms linear;
}

/* ── AMBIENT STARFIELD (fades in past hero) ── */
#stars-canvas {
  position: fixed; inset: 0; z-index: 8;
  pointer-events: none; opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 600ms cubic-bezier(0.25,0.1,0.25,1);
}
/* Distant nebula glow — visible cyan washes that anchor the depth */
#ambient-glow {
  position: fixed; inset: 0; z-index: 7;
  pointer-events: none; opacity: 0;
  transition: opacity 800ms cubic-bezier(0.25,0.1,0.25,1);
  background:
    radial-gradient(ellipse 60% 50% at 12% 75%, rgba(var(--accent), 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 90% 22%, rgba(var(--accent-soft), 0.16) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(var(--accent), 0.05) 0%, transparent 70%);
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 20px calc(3.4vw + 94px) 20px 3.4vw; display: flex; justify-content: space-between; align-items: center;
  transition: background 400ms cubic-bezier(0.25,0.1,0.25,1),
              backdrop-filter 400ms cubic-bezier(0.25,0.1,0.25,1);
}
nav.scrolled {
  background: rgba(77,77,77,0.55); /* #32: 30% lighter toward white */
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.nav-brand {
  display: flex; align-items: center; gap: clamp(10px, 1.9vw, 19px);
  text-decoration: none; color: inherit;
}
.nav-text { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.nav-logo-img {
  height: clamp(72px, 16.425vw, 108px); width: auto; flex: none;
  border-radius: 12px;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5));
}
.nav-logo {
  font-size: clamp(22.5px, 4.3875vw, 33.75px); font-weight: 800; letter-spacing: 0.08em;
  line-height: 1.15; text-wrap: balance;
  text-transform: uppercase; color: var(--ink-bright);
}
.nav-tagline {
  font-size: clamp(14.625px, 2.3625vw, 18px); font-weight: 400; letter-spacing: 0.28em;
  text-transform: uppercase; color: rgba(240,240,240,0.9);
}

.nav-links { display: flex; gap: 31px; align-items: center; }
.nav-links a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.28em;
  text-transform: uppercase; color: rgba(240,240,240,0.9);
  transition: color 300ms cubic-bezier(0.25,0.1,0.25,1),
              text-shadow 300ms cubic-bezier(0.25,0.1,0.25,1);
}
.nav-links a:hover {
  color: var(--ink-bright);
  text-shadow: 0 0 8px rgba(255,255,255,0.95), 0 0 22px rgba(255,255,255,0.75),
               0 0 45px rgba(255,255,255,0.55), 0 0 90px rgba(255,255,255,0.35);
}

/* ── MONAD MARK (the Monad; hidden at top, fades into the corner on scroll) ── */
.nav-monad {
  position: fixed; bottom: 24px; right: 4vw; z-index: 70;
  display: flex; align-items: center; justify-content: center;
  width: 96px; height: 96px; border-radius: 50%;
  color: var(--ink-soft); text-decoration: none;
  font-family: 'Monad Mark', 'Noto Sans Math', sans-serif;
  font-size: 45px; line-height: 1;
  opacity: 0; transform: translateY(14px);
  transition: color 300ms cubic-bezier(0.25,0.1,0.25,1),
              transform 300ms cubic-bezier(0.25,0.1,0.25,1),
              text-shadow 300ms cubic-bezier(0.25,0.1,0.25,1),
              opacity 300ms cubic-bezier(0.25,0.1,0.25,1);
}
.nav-monad:hover {
  color: rgb(var(--accent)); transform: scale(1.12);
  text-shadow: 0 0 18px rgba(var(--accent),0.85),
               0 0 42px rgba(var(--accent),0.45);
}
/* while the mobile menu overlay is open the monad must not float above it */
/* docked state: toggled by main.js once the hero is mostly out of view */
body.monad-docked .nav-monad { opacity: 1; transform: none; }
/* #39: contact is the mark's off-duty zone - it hides while #contact is the
   dominant view so the section's grid can run full width */
body.monad-docked.monad-hide .nav-monad {
  opacity: 0; pointer-events: none; transform: translateY(14px);
}
/* monad lives outside the nav: the scrolled nav's backdrop-filter would
   become its containing block and yank it to the top-right corner */
body:has(.nav-links.open) .nav-monad { opacity: 0; pointer-events: none; }

/* ── HERO ── */
/* Monad mark hero — the same symbol that later fades into the bottom-right
   corner while scrolling. Gentle glow breathe; motion-safe. After a beat the
   glyph condenses into the condensed sitemap in the same grid cell, and the
   whole mark dissolves away on the first real scroll (lifecycle in main.js). */
.hero-mark {
  display: grid; place-items: center; margin-bottom: 10px;
  transition: opacity 700ms ease, transform 700ms ease, filter 700ms ease;
}
.hero-mark > * { grid-area: 1 / 1; }
.hero-monad {
  display: block; line-height: 1;
  font-family: 'Monad Mark', 'Noto Sans Math', sans-serif;
  font-size: clamp(80px, 18.25vw, 120px); color: var(--ink-bright); /* #48: the mark keeps its original size after the nav head's 10% shrink */
  animation: monad-breathe 3.2s ease-in-out infinite;
  transition: opacity 700ms ease, transform 700ms ease, filter 700ms ease;
}
@keyframes monad-breathe {
  0%, 100% { text-shadow: 0 0 18px rgba(255,255,255,0.45), 0 0 48px rgba(255,255,255,0.22); }
  50%      { text-shadow: 0 0 32px rgba(255,255,255,0.75), 0 0 88px rgba(255,255,255,0.4); }
}
/* condensed state: the glyph collapses out of the shared grid cell while the
   sitemap fades up into it */
.hero-mark.condensed .hero-monad {
  opacity: 0; transform: scale(0.55); filter: blur(5px);
  animation: none; pointer-events: none;
}
/* the condensed sitemap: name row, section links, contact channels */
.hero-sitemap {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  text-align: center; max-width: 88vw;
  opacity: 0; transform: translateY(14px); filter: blur(6px);
  pointer-events: none;
  transition: opacity 800ms ease, transform 800ms ease, filter 800ms ease;
}
.hero-mark.condensed .hero-sitemap {
  opacity: 1; transform: none; filter: none; pointer-events: auto;
}
.sitemap-line a {
  color: var(--ink-soft); text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: color 300ms cubic-bezier(0.25,0.1,0.25,1),
              border-color 300ms cubic-bezier(0.25,0.1,0.25,1);
}
.sitemap-line a:hover,
.sitemap-line a:focus-visible {
  color: rgb(var(--accent)); border-color: rgb(var(--accent));
}
/* #31/#33: contact + follow channels stack one-per-line in the condensed
   reveal; .sg carries a small monochrome type glyph and the link text
   IS the channel kind - no URLs on the lines */
.sitemap-line {
  display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
  justify-content: center;
  /* #36: a tad bigger and whiter */
  font-size: 14px; font-weight: 400; letter-spacing: 0.08em;
  line-height: 1.7; color: var(--ink);
}
/* #34: glyph+name pair tightly; pairs breathe apart on the grouped lines */
.sitemap-line .sm-item { display: inline-flex; align-items: baseline; gap: 8px; }
.sitemap-line .sg { flex: none; width: 1.2em; text-align: center; color: var(--ink-soft); }
/* dissolved: one-way. visibility flips hidden only after the fade finishes, so
   the links stay out of the tab order once gone */
.hero-mark.dissolved {
  opacity: 0; transform: translateY(-10px); filter: blur(7px);
  pointer-events: none; visibility: hidden;
  transition: opacity 700ms ease, transform 700ms ease, filter 700ms ease,
              visibility 0s 700ms;
}
@media (prefers-reduced-motion: reduce) {
  .hero-monad { animation: none; }
  .hero-mark, .hero-sitemap { transition-duration: 1ms; }
}

.hero {
  position: relative; z-index: 5;
  height: 100vh; height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
}


.hero-cue {
  position: absolute; bottom: 48px; left: 50%;
  transform: translate(-50%, 8px);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0; text-decoration: none;
  animation: fadeUpCentered 1.4s cubic-bezier(0.25,0.1,0.25,1) 1.4s forwards;
}
.hero-cue-text {
  font-size: 13px; font-weight: 500; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--ink-faint);
}
.hero-cue-line {
  width: 3px; height: 40px;
  /* #30: bright white dashes flowing downward - the scroll cue reads as
     an indeterminate loading stitch, glowing like the nav links do.
     #35: thickened 1px -> 3px, dashes 7on/5off */
  background: repeating-linear-gradient(to bottom,
    rgba(255,255,255,0.95) 0 7px,
    rgba(255,255,255,0.12) 7px 12px);
  background-size: 3px 12px;
  animation: cueDash 0.9s linear infinite;
  box-shadow: 0 0 6px rgba(255,255,255,0.7), 0 0 16px rgba(255,255,255,0.35);
}
a.hero-cue:hover .hero-cue-text { color: var(--ink); }

/* ── SECTION SKIP CUE ── */
.next-cue {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin: 41px auto 0;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--ink-faint); text-decoration: none;
  font-size: 18px; line-height: 1;
  transition: color 300ms cubic-bezier(0.25,0.1,0.25,1),
              border-color 300ms cubic-bezier(0.25,0.1,0.25,1),
              transform 300ms cubic-bezier(0.25,0.1,0.25,1);
}
.next-cue:hover {
  color: rgb(var(--accent)); border-color: rgba(var(--accent),0.55);
  transform: translateY(3px);
}

/* ── MAIN CONTENT ── */
main { position: relative; z-index: 10; background: transparent; }

/* Each section sets its own backdrop — varies opacity to vary star visibility */
.section { padding: clamp(68px, 11.9vh, 170px) 3.4vw; position: relative; }
.section-inner { max-width: 1500px; margin: 0 auto; position: relative; z-index: 2; }

.section-head { margin-bottom: clamp(34px, 5.1vh, 68px); }
.section-head .eyebrow { display: inline-block; margin-bottom: 20px; }
.section-head .eyebrow::before {
  content: ''; display: inline-block; width: 40px; height: 1px;
  background: rgb(var(--accent)); vertical-align: middle; margin-right: 12px;
  box-shadow: 0 0 8px rgba(var(--accent), 0.5);
}

/* Section-specific backdrops — lighter so stars + glow bleed through */
#approach { background: rgba(77, 77, 77, 0.47); } /* #32 */
#about    { background: rgba(77, 77, 77, 0.55); } /* #32 */
#contact  { background: rgba(77, 77, 77, 0.58); } /* #32 */
/* Bright gradient lines between major sections */
#approach::before, #about::before, #contact::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(var(--accent), 0.5) 25%,
    rgba(var(--accent), 0.7) 50%,
    rgba(var(--accent), 0.5) 75%,
    transparent 100%);
}

/* ── APPROACH GRID ── */
.approach-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--line-faint);
  border: 1px solid var(--line-faint);
}
/* Per-card accents — same cool jewel palette, distinct identity */
.approach-card { --card-accent: var(--accent); }
.approach-card:nth-child(1) { --card-accent: 0, 230, 210; }    /* cyan — theme accent */
.approach-card:nth-child(2) { --card-accent: 0, 230, 210; }    /* cyan — theme accent */
.approach-card:nth-child(3) { --card-accent: 0, 230, 210; }    /* cyan — theme accent */
.approach-card:nth-child(4) { --card-accent: 0, 230, 210; }    /* cyan — theme accent */

.approach-card {
  background:
    radial-gradient(ellipse at top right, rgba(var(--card-accent), 0.10) 0%, transparent 55%),
    /* #30: box shade lightened 40% toward white (was pure black) */
    rgba(102,102,102,0.55);
  padding: clamp(27px, 4.2vw, 54px);
  display: flex; flex-direction: column; gap: 17px;
  min-height: 280px; position: relative;
  transition: background 400ms cubic-bezier(0.25,0.1,0.25,1),
              box-shadow 400ms cubic-bezier(0.25,0.1,0.25,1);
}
.approach-card::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 3px;
  /* #34: bright-white dashed stitch with a white glow (was the solid
     accent line) - matches the scroll cue's loading look.
     #35: thickened 1px -> 3px, dashes 10on/8off */
  background: repeating-linear-gradient(to right,
    rgba(255,255,255,0.9) 0 10px,
    transparent 10px 18px);
  box-shadow: 0 0 8px rgba(255,255,255,0.5), 0 0 16px rgba(255,255,255,0.25);
  transition: width 600ms cubic-bezier(0.25,0.1,0.25,1);
}
.approach-card:hover {
  background:
    radial-gradient(ellipse at top right, rgba(var(--card-accent), 0.20) 0%, transparent 60%),
    rgba(107,109,110,0.85);
  box-shadow: inset 0 0 0 1px rgba(var(--card-accent), 0.18);
}
.approach-card:hover::after { width: 100%; }
/* Odd card counts: the lone last card spans the full grid width
   instead of leaving an empty cell. */
.approach-grid .approach-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.approach-card .num {
  font-size: 13px; font-weight: 500; letter-spacing: 0.28em;
  color: rgb(var(--card-accent));
  text-shadow: 0 0 12px rgba(var(--card-accent), 0.5);
}
.approach-card .title {
  font-size: clamp(20px, 2.2vw, 27px); font-weight: 600;
  letter-spacing: -0.01em; text-transform: uppercase; color: var(--ink-bright);
  margin-top: auto;
}
.approach-card .body {
  font-size: 14px; font-weight: 400; line-height: 1.6;
  color: var(--ink-soft); max-width: 360px;
}
/* Quiet inline links inside card body copy */
.approach-card .body a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  transition: color 300ms cubic-bezier(0.25,0.1,0.25,1),
              border-color 300ms cubic-bezier(0.25,0.1,0.25,1);
}
.approach-card .body a:hover,
.approach-card .body a:focus-visible {
  color: rgb(var(--accent));
  border-color: rgba(var(--accent), 0.6);
}
/* Card head: icon left, number right — every option recognizable at a glance */
.card-top { display: flex; align-items: center; justify-content: space-between; }
.card-top .ic {
  width: 28px; height: 28px;
  color: rgb(var(--card-accent));
  filter: drop-shadow(0 0 10px rgba(var(--card-accent), 0.35));
}

/* ── INLINE ICONS ──
   Line icons (stroke) for utilities, brand marks (fill) for federated
   services; both inherit currentColor, so each picks up its context accent. */
.ic { flex: none; width: 1em; height: 1em; }

/* ── ABOUT ── */
.about-statement {
  font-size: clamp(22px, 3.4vw, 40px); font-weight: 500;
  line-height: 1.2; letter-spacing: -0.01em;
  max-width: 1100px; color: var(--ink-bright);
  text-transform: uppercase;
}
.about-statement .quiet { color: var(--ink-soft); }
/* Site-specific: hello's statement is a full sentence (jason's is a
   one-word gag at the shared scale), so it runs a size smaller. */
.about-statement { font-size: clamp(18px, 2.9vw, 32px); }
.about-meta {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 51px; margin-top: clamp(51px, 6.8vh, 85px);
  padding-top: 34px; border-top: 1px solid var(--line-faint);
}
/* Per-column accents — echoing the Approach palette */
.about-meta > div { --col-accent: var(--accent); position: relative; }
.about-meta > div:nth-child(1) { --col-accent: 0, 230, 210; }    /* cyan — theme accent */
.about-meta > div:nth-child(2) { --col-accent: 0, 230, 210; }    /* cyan — theme accent */
.about-meta > div:nth-child(3) { --col-accent: 0, 230, 210; }    /* cyan — theme accent */
.about-meta .label {
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
  color: rgb(var(--col-accent));
  text-shadow: 0 0 12px rgba(var(--col-accent), 0.35);
}
.about-meta .label::before {
  content: ''; display: block; width: 16px; height: 1px;
  background: rgba(var(--col-accent), 0.85);
}
.about-meta .value {
  font-size: 14px; font-weight: 400; line-height: 1.7;
  color: var(--ink-soft);
}

/* ── CONTACT (FULL-HEIGHT, REPLACES FOOTER) ── */
.contact {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center;
  /* #39: symmetric pad - the monad hides itself while this section is on
     screen (body.monad-hide in main.js), so it needs no keep-out band */
  padding: clamp(68px, 11.9vh, 170px) 3.4vw clamp(68px, 11.9vh, 170px) 3.4vw;
  position: relative; overflow: hidden;
}
/* Visible cyan glows — anchor the contact section */
.contact::after {
  content: ''; position: absolute;
  bottom: -25%; right: -15%; width: 90%; height: 110%;
  background: radial-gradient(ellipse at center,
    rgba(var(--accent), 0.30) 0%,
    rgba(var(--accent), 0.14) 30%,
    rgba(var(--accent), 0.05) 55%,
    transparent 75%);
  pointer-events: none;
  filter: blur(60px);
  z-index: 0;
}
.contact .glow-tl {
  position: absolute; top: -8%; left: -10%;
  width: 60%; height: 55%;
  background: radial-gradient(ellipse at center,
    rgba(var(--accent-soft), 0.18) 0%,
    rgba(var(--accent-soft), 0.06) 40%,
    transparent 70%);
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
}
.contact-inner { z-index: 1; position: relative; }
.contact-inner { max-width: 1500px; margin: 0 auto; width: 100%; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(51px, 6.8vw, 119px); align-items: start;
}
.contact-headline { color: var(--ink-bright); }
.contact-headline .display { display: block; margin-bottom: 27px; }
.contact-blurb {
  font-size: 14px; font-weight: 400; line-height: 1.7;
  color: var(--ink-soft); max-width: 480px;
}
/* Direct-contact block (no form — email / phone / chat) */
.contact-direct { display: flex; flex-direction: column; align-items: flex-start; }
.contact-direct-label {
  font-size: 13px; font-weight: 500; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: 17px;
}
/* Not .display/.heading: those force uppercase, which mangles an address */
.contact-email {
  font-size: clamp(20px, 2.9vw, 36px); font-weight: 600;
  letter-spacing: -0.01em; line-height: 1.2; color: var(--ink-bright);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 7px; word-break: break-word; max-width: 100%;
  transition: color 300ms cubic-bezier(0.25,0.1,0.25,1),
              border-color 300ms cubic-bezier(0.25,0.1,0.25,1);
}
.contact-email:hover,
.contact-email:focus-visible {
  color: rgb(var(--accent));
  border-color: rgba(var(--accent), 0.6);
}
/* Secondary contact channels (phone / booked call) */
.contact-alt {
  display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 15px;
}
.contact-sub-link {
  font-size: 14px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 3px;
  transition: color 300ms cubic-bezier(0.25,0.1,0.25,1),
              border-color 300ms cubic-bezier(0.25,0.1,0.25,1);
}
.contact-sub-link:hover,
.contact-sub-link:focus-visible {
  color: rgb(var(--accent));
  border-color: rgba(var(--accent), 0.6);
}
.contact-direct-note {
  font-size: 14px; font-weight: 400; line-height: 1.7;
  color: var(--ink-soft); max-width: 440px;
  margin-top: 27px;
}
.contact-checklist {
  list-style: none; display: flex; flex-direction: column;
  gap: 10px; max-width: 440px; margin-top: 17px;
}
.contact-checklist li {
  position: relative; padding-left: 20px;
  font-size: 14px; font-weight: 400; line-height: 1.7;
  color: var(--ink-soft);
}
.contact-checklist li::before {
  content: ''; position: absolute; left: 0; top: 11px;
  width: 12px; height: 1px;
  background: rgba(var(--accent), 0.85);
}


/* ── FOOTER (MINIMAL) ── */
/* ── CLOSING (ROTATING QUOTE + COMPANY MARK) ── */
.closing {
  position: relative; z-index: 10; background: rgba(77,77,77,0.88);
  padding: clamp(61px, 10.2vh, 119px) 3.4vw clamp(48px, 7.6vh, 85px);
  display: flex; flex-direction: column; align-items: center; gap: 37px;
  text-align: center;
}
.closing-quote { max-width: 780px; }
.quote-text {
  font-size: clamp(20px, 3.1vw, 34px); font-weight: 500;
  line-height: 1.4; color: var(--ink-bright);
}
.quote-cite {
  display: block; margin-top: 19px; font-style: normal;
  font-size: 13px; font-weight: 500; letter-spacing: 0.28em;
  text-transform: uppercase; color: rgba(var(--accent), 0.85);
}
/* #41: the forged toroid knot turns slowly beneath the quote */
.closing-toroid {
  width: clamp(140px, 18vw, 220px); height: auto;
  filter: drop-shadow(0 6px 26px rgba(0,0,0,0.6));
  cursor: pointer; /* #57: it rings the meditation bell on click */
}

footer {
  position: relative; z-index: 10; background: rgba(77,77,77,0.88);
  padding: 31px 3.4vw; border-top: 1px solid var(--line-faint);
  /* Three-column grid (#12): mark on the left, HE logo exactly centered,
     links on the right — centering survives unequal text widths on either side */
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 17px;
}
footer .footer-mark {
  grid-column: 1; justify-self: start;
  font-size: 13px; font-weight: 500; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--ink-faint);
}
footer .footer-links {
  grid-column: 3; justify-self: end;
  display: flex; gap: 24px; flex-wrap: wrap;
}
footer .footer-links a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--ink-faint);
  transition: color 300ms cubic-bezier(0.25,0.1,0.25,1);
}
footer .footer-links a:hover { color: rgb(var(--accent)); }

/* ── END MARK: the company logo, the page's last word, riding inside the footer ── */
.endmark {
  /* grid column 2 of the footer's three-column layout — dead center (#12) */
  grid-column: 2; justify-self: center;
  display: flex; align-items: center; justify-content: center;
}
.endmark-link {
  display: inline-block; opacity: 0.92;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.endmark-link:hover,
.endmark-link:focus-visible { opacity: 1; transform: translateY(-2px); }
/* #58: sized to sit with the 13px footer text — a height that fits the footer
   line, not the old free-standing endmark clamp (#48) */
.end-logo { height: clamp(34px, 3.4vw, 46px); width: auto; }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 700ms cubic-bezier(0.25,0.1,0.25,1), transform 700ms cubic-bezier(0.25,0.1,0.25,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── HAMBURGER ── */
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; padding: 10px 7px;
  flex-direction: column; justify-content: center; gap: 5px; z-index: 60;
}
.hamburger span {
  display: block; width: 100%; height: 1px;
  background: rgba(255,255,255,0.6);
  transition: transform 300ms cubic-bezier(0.25,0.1,0.25,1);
}
.hamburger.open span:first-child { transform: rotate(45deg) translate(2px, 2.5px); }
.hamburger.open span:last-child { transform: rotate(-45deg) translate(2px, -2.5px); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUpCentered {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes cueDash { to { background-position-y: 12px; } }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 15px 5.1vw; }
  .nav-monad { bottom: 18px; right: 6vw; }

  .hamburger { display: flex; }
  .nav-links {
    position: fixed; inset: 0; z-index: 55;
    background: rgba(77,77,77,0.96);
    flex-direction: column; gap: 34px;
    align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 400ms cubic-bezier(0.25,0.1,0.25,1);
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 18px; min-height: 44px; display: flex; align-items: center; }

  /* Mobile readability: body copy reads larger on phones */
  body { font-size: 16px; }
  .approach-card .body { font-size: 16px; }
  .about-meta .value { font-size: 16px; }
  .contact-blurb { font-size: 16px; }
  .contact-direct-note { font-size: 16px; }
  .contact-checklist li { font-size: 16px; }

  .hero-cue { bottom: 32px; }


  .approach-grid { grid-template-columns: 1fr; }
  .approach-card { min-height: 220px; padding: 31px 24px; }

  .about-meta { grid-template-columns: 1fr; gap: 27px; }

  .contact-grid { grid-template-columns: 1fr; gap: 41px; }


  footer {
    /* single column on phones (#12): stack mark, links, logo — centered */
    grid-template-columns: 1fr; gap: 15px;
    padding: 27px 5.1vw; text-align: center;
  }
  footer .footer-mark, footer .footer-links, footer .endmark {
    grid-column: auto; justify-self: center;
  }
}

@media (max-width: 375px) {
  .section { padding: 54px 5.1vw; }
  nav { padding: 14px 5.1vw; }

}
/* Small phones: keep the nav masthead compact (logo + 1-2 line wordmark) */
@media (max-width: 480px) {
  nav { padding: 14px 3.4vw; }
  .nav-logo { font-size: 28.75px; }
  .nav-tagline { font-size: 16.25px; letter-spacing: 0.2em; }
  .nav-logo-img { height: 92.5px; }
}
