/* ============================================
   EHA — self-hosted Nourd typeface
   ============================================ */
@font-face {
  font-family: 'Nourd';
  src: url('assets/fonts/nourd-light.woff') format('woff'),
       url('assets/fonts/nourd-light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nourd';
  src: url('assets/fonts/nourd-regular.woff') format('woff'),
       url('assets/fonts/nourd-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nourd';
  src: url('assets/fonts/nourd-medium.woff') format('woff'),
       url('assets/fonts/nourd-medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nourd';
  src: url('assets/fonts/nourd-semi-bold.woff') format('woff'),
       url('assets/fonts/nourd-semi-bold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nourd';
  src: url('assets/fonts/nourd-bold.woff') format('woff'),
       url('assets/fonts/nourd-bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nourd';
  src: url('assets/fonts/nourd-heavy.woff') format('woff'),
       url('assets/fonts/nourd-heavy.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   EHA — tokens
   ============================================ */
:root {
  --ivory: #F7F6F2;
  --bone: #D9D4CC;
  --washed-black: #333333;
  --ebony: #1A1A1A;

  --font-display: 'Tenor Sans', 'Georgia', serif;
  --font-body: 'Nourd', -apple-system, BlinkMacSystemFont, sans-serif;

  --measure: 62ch;
  --edge: clamp(1.5rem, 5vw, 5rem);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ebony);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ebony);
  color: var(--ivory);
  padding: 0.75em 1.25em;
  z-index: 1000;
}
.skip-link:focus {
  left: 1em;
  top: 1em;
}

:focus-visible {
  outline: 2px solid var(--ebony);
  outline-offset: 3px;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 246, 242, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--bone);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.1em var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mark-letters {
  font-family: var(--font-display);
  letter-spacing: 0.4em;
  font-size: 1.05rem;
  color: var(--ebony);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4em;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}

.site-nav a {
  position: relative;
  padding-bottom: 2px;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--ebony);
  transition: width 0.25s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}

.nav-divider {
  width: 1px;
  height: 0.9em;
  background: var(--washed-black);
  opacity: 0.35;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--ebony);
  width: 100%;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 0 var(--edge) 1.2em;
  gap: 0.9em;
  font-size: 1rem;
}

.mobile-nav a {
  padding: 0.4em 0;
  border-bottom: 1px solid var(--bone);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--ebony);
  color: var(--ivory);
  padding: 6rem var(--edge) 4rem;
  position: relative;
}

.hero-inner {
  max-width: 760px;
}

.hero-mark {
  display: flex;
  justify-content: center;
  gap: clamp(0.3em, 3vw, 0.6em);
  font-size: clamp(3.5rem, 14vw, 9rem);
  line-height: 1;
  color: var(--ivory);
}

.hero-mark .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.25em);
  animation: rise-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-mark .letter:nth-child(1) { animation-delay: 0.05s; }
.hero-mark .letter:nth-child(2) { animation-delay: 0.18s; }
.hero-mark .letter:nth-child(3) { animation-delay: 0.31s; }

@keyframes rise-in {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mark .letter { opacity: 1; transform: none; animation: none; }
}

.hero-sub {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.5em;
  font-size: clamp(0.75rem, 1.6vw, 0.95rem);
  color: var(--bone);
  margin: 0.9em 0 2.4em;
  padding-left: 0.5em; /* optical centering for the letter-spacing */
}

.hero-statement {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.5;
  color: var(--ivory);
  max-width: 34ch;
  margin: 0 auto 2.6em;
}

.hero-stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
}

.hero-stat-flat {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(4rem, 15vw, 9.5rem);
  line-height: 0.9;
  color: var(--ivory);
  letter-spacing: -0.01em;
}

.hero-stat-main {
  display: flex;
  align-items: baseline;
  gap: 0.18em;
}

.hero-stat-number {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(4rem, 15vw, 9.5rem);
  line-height: 0.9;
  color: var(--ivory);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.count {
  display: inline-block;
  min-width: 1.9ch;
  text-align: right;
}

.hero-stat-off {
  font-family: var(--font-body);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.6rem, 5vw, 3rem);
  color: var(--bone);
  opacity: 0;
  transform: translateX(-0.3em) scale(0.85);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-stat-block.is-revealed .hero-stat-off {
  opacity: 1;
  transform: translateX(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .hero-stat-off {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Marquee banner ---------- */
.marquee {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--washed-black);
  border-bottom: 1px solid var(--washed-black);
  padding: 1.1em 0;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  background: var(--ebony);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  white-space: nowrap;
  animation: marquee-scroll 22s linear infinite;
}

.marquee-item {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  color: var(--ivory);
  padding: 0 1.2em;
}

.marquee-sep {
  color: var(--washed-black);
  font-size: 0.9em;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
  .marquee {
    overflow-x: auto;
  }
}


/* ============================================
   Sections — shared
   ============================================ */
.section {
  padding: clamp(4.5rem, 10vw, 8rem) var(--edge);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: 0.02em;
  margin-bottom: 1.1em;
}

.section-title.light { color: var(--ivory); }

.subhead {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  margin: 1.6em 0 0.7em;
  color: var(--washed-black);
}

/* ---------- Story ---------- */
.story {
  background: var(--ivory);
}

.story-lede {
  max-width: var(--measure);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  line-height: 1.5;
  color: var(--washed-black);
  border-left: 2px solid var(--ebony);
  padding-left: 0.9em;
  margin-bottom: 2em;
}

.story-body {
  max-width: var(--measure);
  font-size: 1.05rem;
  color: var(--washed-black);
}

.story-emphasis {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ebony);
}

.story-pricing {
  margin-top: 2.4em;
  padding-top: 2em;
  border-top: 1px solid var(--bone);
}

.story-pricing .subhead {
  margin-top: 0;
}

/* ---------- Brands ---------- */
.brands {
  background: var(--bone);
}

.brands-lede {
  max-width: 50ch;
  font-size: 1.05rem;
  color: var(--washed-black);
  margin-bottom: 2.4em;
}

.brand-grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: var(--washed-black);
  border: 1px solid var(--washed-black);
}

.brand-tile {
  background: var(--ivory);
  width: 25%;
  padding: 1.6rem;
  border: 1px solid var(--washed-black);
  text-align: center;
  vertical-align: middle;
  transition: background-color 0.25s ease;
}

.brand-tile-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
}

.brand-tile-inner img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand-tile--dark {
  background: var(--ebony);
}

.brand-tile--navy {
  background: #0f2340;
}

@media (max-width: 860px) {
  .brand-grid,
  .brand-grid tbody,
  .brand-grid tr {
    display: contents;
  }

  .brand-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
  }

  .brand-tile-inner {
    height: 70px;
  }
}

@media (max-width: 480px) {
  .brand-tile {
    padding: 1rem;
  }
  .brand-tile-inner {
    height: 56px;
  }
}

/* ---------- Meaning ---------- */
.meaning {
  background: var(--bone);
}

.meaning-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.meaning-word {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  position: sticky;
  top: 6rem;
}

.meaning-eha {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  letter-spacing: 0.15em;
  line-height: 1;
  color: var(--ebony);
}

.meaning-arrow {
  color: var(--washed-black);
  font-size: 1.3rem;
  margin-left: 0.1em;
}

.meaning-now {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--washed-black);
}

.meaning-text {
  max-width: 58ch;
  color: var(--washed-black);
  font-size: 1.05rem;
}

.meaning-text .section-title {
  color: var(--ebony);
}

.meaning-text em {
  font-style: italic;
  color: var(--ebony);
}

/* ---------- Vision ---------- */
.vision {
  background: var(--ebony);
  color: var(--ivory);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
}

.pillar {
  border-left: 1px solid rgba(217, 212, 204, 0.35);
  padding-left: 1.4em;
}

.pillar h3 {
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--bone);
  margin-bottom: 0.6em;
}

.pillar p {
  font-size: 0.98rem;
  color: rgba(247, 246, 242, 0.85);
  line-height: 1.65;
}

/* ---------- Visit ---------- */
.visit {
  background: var(--ivory);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}

.visit-address {
  font-size: 1.1rem;
  color: var(--washed-black);
  margin-bottom: 1.4em;
}

.visit-link {
  display: inline-block;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--ebony);
  padding-bottom: 2px;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.65em;
  margin-bottom: 0.6em;
}

.contact-icon {
  width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
  color: var(--washed-black);
}

.contact-list a {
  font-size: 1rem;
  color: var(--washed-black);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--ebony);
  border-bottom-color: var(--ebony);
}

.visit-map {
  position: relative;
  min-height: 320px;
  border: 1px solid var(--bone);
}

.visit-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
  filter: grayscale(0.3) contrast(1.05);
  pointer-events: none;
}

.visit-map-overlay {
  position: absolute;
  inset: 0;
  display: block;
  background: transparent;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--ebony);
  color: var(--bone);
  padding: 3.5rem var(--edge) 2.5rem;
  text-align: center;
}

.footer-mark {
  color: var(--ivory);
  font-size: 1.3rem;
}

.footer-tag {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  color: var(--bone);
  margin: 0.8em 0 1.6em;
}

.footer-address,
.footer-copy {
  font-size: 0.85rem;
  color: rgba(217, 212, 204, 0.75);
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9em;
  margin-top: 1.4em;
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--bone);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ivory);
  border-bottom-color: var(--ivory);
}

.footer-links .nav-divider {
  background: rgba(217, 212, 204, 0.4);
}

.footer-copy {
  margin-top: 1.4em;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 860px) {
  .meaning-grid,
  .visit-grid {
    grid-template-columns: 1fr;
  }
  .meaning-word {
    position: static;
    flex-direction: row;
    align-items: baseline;
  }
  .pillars {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }
}

@media (max-width: 700px) {
  .site-nav {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .mobile-nav.open {
    display: flex;
  }
}
