/* ============================================================
   ECHOHAUS · Homepage (Reference Layout)
   Full-bleed glowing hero · services strip · trust row ·
   featured projects · CTA bar. Built on site.css tokens.
   ============================================================ */

/* ---------- Warm amber glow on key headline words ---------- */
.eh-glow {
  background: linear-gradient(180deg, #f6ab55 0%, #ec9a44 40%, #c47e33 78%, #8f5926 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 0 16px rgba(232,154,69,0.45))
    drop-shadow(0 0 38px rgba(232,154,69,0.26));
}

/* ---------- NAV brand stack (mark + wordmark + tagline) ---------- */
.eh-nav__brandstack { display: flex; align-items: center; gap: 16px; }
.eh-nav__brandstack .txt { display: flex; flex-direction: column; gap: 4px; }
.eh-nav__brandstack .rulewrap {
  display: flex; align-items: center; gap: 8px;
}
.eh-nav__brandstack .rulewrap .ln { width: 18px; height: 1px; background: rgba(232,154,69,0.6); }
.eh-nav__brandstack .tech {
  font-family: var(--eh-display);
  font-size: 9px; letter-spacing: 0.5em; font-weight: 400;
  color: rgba(244,237,225,0.65); text-transform: uppercase;
  padding-left: 0.5em;
}
.eh-nav__brandstack .tagline {
  font-family: var(--eh-display);
  font-size: 8px; letter-spacing: 0.26em; font-weight: 400;
  color: rgba(244,237,225,0.42); text-transform: uppercase;
}
@media (max-width: 980px){ .eh-nav__brandstack .rulewrap, .eh-nav__brandstack .tagline { display: none; } }

/* =========================================================
   HERO — full bleed cinematic, text on the left
   ========================================================= */
.heroF {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(120px, 14vh, 200px) var(--eh-shell-x) clamp(64px, 10vh, 120px);
}
.heroF__bg { position: absolute; inset: 0; z-index: 0; }
.heroF__bg .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Landscape 16:9 photo — full-bleed; the left scrim keeps the headline legible. */
.heroF__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}
@media (max-width: 880px){
  .heroF__photo { object-position: 65% 50%; opacity: 0.55; }
}
/* Left-to-right cinematic scrim so text stays legible over the photo */
.heroF__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(4,4,5,0.94) 0%, rgba(4,4,5,0.82) 34%, rgba(5,5,6,0.45) 62%, rgba(6,6,8,0.15) 100%),
    linear-gradient(180deg, rgba(5,5,6,0.55) 0%, transparent 24%, transparent 64%, rgba(4,4,5,0.85) 100%);
  pointer-events: none;
}
.heroF__inner { position: relative; z-index: 2; max-width: 760px; }
.heroF__eyebrow {
  font-family: var(--eh-display);
  font-size: clamp(9px, 0.94vw, 11px);
  letter-spacing: 0.32em; text-transform: uppercase; font-weight: 600;
  color: var(--eh-amber);
  margin: 0 0 20px;
}
.heroF__h1 {
  font-family: var(--eh-display);
  font-weight: 700;
  font-size: clamp(27px, 3.8vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
  color: var(--eh-ivory);
}
.heroF__rule { width: 56px; height: 2px; background: var(--eh-amber); margin: 28px 0; }
.heroF__sub {
  font-family: var(--eh-display);
  font-size: clamp(9px, 1.01vw, 12px);
  letter-spacing: 0.28em; text-transform: uppercase; font-weight: 400;
  color: rgba(244,237,225,0.7);
  margin: 0 0 40px;
  line-height: 1.5;
  max-width: 540px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
}
.heroF__sub .sep { color: var(--eh-amber); }
.heroF__ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.heroF__ctas .eh-btn { padding: 13px 24px; font-size: 11px; }

/* =========================================================
   THE CHARACTER HOME — interactive model embed
   ========================================================= */
.eh-modelsec {
  margin: 0 var(--eh-shell-x);
  margin-top: clamp(-80px, -6vw, -40px);
  position: relative; z-index: 5;
  background: linear-gradient(180deg, #0c0b0a 0%, #09080a 34%, #050505 72%);
  border: 1px solid rgba(244,237,225,0.07);
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  padding: clamp(40px, 5vw, 72px) clamp(28px, 3.5vw, 64px) clamp(36px, 4vw, 60px);
}
.eh-modelsec__head { max-width: 760px; }
.eh-modelsec__title {
  font-family: var(--eh-display);
  font-weight: 700;
  font-size: clamp(27px, 3.8vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--eh-ivory);
  margin: 12px 0 0;
}
.eh-modelsec__intro { margin-top: 24px; max-width: 560px; }
.eh-modelsec__embed {
  margin-top: clamp(24px, 3vw, 44px);
  width: 100%;
  height: clamp(600px, 60vw, 760px);
  border: 0;
  background: #050505;
  overflow: hidden;
  position: relative;
  /* feather only the top edge so the model dissolves up into the headline,
     leaving the sides/bottom (where the model's controls live) fully visible */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 5%);
  mask-image: linear-gradient(180deg, transparent 0, #000 5%);
}
.eh-modelsec__frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; display: block;
}
@media (max-width: 760px){
  .eh-modelsec { padding: clamp(32px, 8vw, 48px) 18px; }
  .eh-modelsec__embed { height: clamp(480px, 130vw, 680px); }
}

/* =========================================================
   DESIGNED AROUND YOU — 3-column trust row
   ========================================================= */
.eh-about {
  display: grid;
  grid-template-columns: 1fr 1.05fr 0.85fr;
  gap: clamp(28px, 3.5vw, 56px);
  align-items: center;
}
@media (max-width: 1080px){ .eh-about { grid-template-columns: 1fr 1fr; } .eh-about__media { grid-column: 1 / -1; order: 3; } }
@media (max-width: 700px){ .eh-about { grid-template-columns: 1fr; } .eh-about__media { order: 0; } }

.eh-about__media {
  position: relative;
  aspect-ratio: 4 / 3.4;
  border: 1px solid var(--eh-line-2);
  overflow: hidden;
}
.eh-about__media image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Bare brand-mark panel — no card, no frame; the mark's own glow carries it */
.eh-about__media--bare { border: 0; background: none; aspect-ratio: auto; overflow: visible; display: grid; place-items: center; padding: clamp(12px,2vw,28px) 0; }
.eh-about__mark { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; }
.eh-about__mark::before { content: ''; position: absolute; left: 50%; top: 46%; width: 118%; height: 130%; transform: translate(-50%,-50%); background: radial-gradient(ellipse 60% 50% at 50% 55%, rgba(232,154,69,0.10), transparent 70%); pointer-events: none; }
.eh-about__mark-svg { display: block; line-height: 0; position: relative; }
.eh-about__mark-svg svg { max-width: 100%; height: auto; }
.eh-about__mark-labels { width: 100%; margin-top: clamp(16px,2vw,24px); display: flex; flex-direction: column; align-items: center; }
.eh-about__mark-disc { position: relative; width: 100%; height: 16px; }
.eh-about__mark-disc .d { position: absolute; left: 0; right: 0; top: 0; font-family: var(--eh-mono); font-size: 10px; line-height: 16px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--eh-amber); text-align: center; opacity: 0; transition: opacity 280ms ease; }
.eh-about__mark-disc .d.on { opacity: 1; }
.eh-about__mark-rest { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; margin-top: clamp(20px,2.4vw,30px); }
.eh-about__mark-cap { font-family: var(--eh-mono); font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase; color: rgba(232,154,69,0.72); }
.eh-about__mark-sub { font-size: 13px; line-height: 1.5; color: rgba(244,237,225,0.42); }
/* Power-on sequence. Default (no JS) = fully lit; .is-armed is added by JS only. */
.eh-about__mark.is-armed [data-eh-house], .eh-about__mark.is-armed [data-eh-bar], .eh-about__mark.is-armed [data-eh-halo] { opacity: 0; }
.eh-about__mark.is-armed [data-eh-bar], .eh-about__mark.is-armed [data-eh-halo] { transform: scaleY(0.03); transform-box: fill-box; transform-origin: center bottom; }
.eh-about__mark.is-armed [data-eh-house] { transition: opacity 520ms ease; }
.eh-about__mark.is-armed [data-eh-bar], .eh-about__mark.is-armed [data-eh-halo] { transition: opacity 380ms ease, transform 620ms cubic-bezier(0.16,0.84,0.44,1); }
.eh-about__mark.is-armed [data-eh-house].lit { opacity: 1; }
.eh-about__mark.is-armed [data-eh-bar].lit, .eh-about__mark.is-armed [data-eh-halo].lit { opacity: var(--op,1); transform: scaleY(1); }
@media (prefers-reduced-motion: reduce){ .eh-about__mark [data-eh-bar], .eh-about__mark [data-eh-halo], .eh-about__mark [data-eh-house] { transform: none; transition: none; } }

.eh-trust { display: flex; flex-direction: column; gap: 28px; }
.eh-trust__item { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.eh-trust__icon { color: var(--eh-amber); }
.eh-trust__h {
  font-family: var(--eh-display);
  font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600;
  color: var(--eh-ivory); margin: 0 0 6px;
}
.eh-trust__p {
  font-family: var(--eh-text); font-weight: 300;
  font-size: 13.5px; line-height: 1.6; color: rgba(244,237,225,0.62); margin: 0;
}

/* =========================================================
   FEATURED PROJECTS — carousel of cinematic cards
   ========================================================= */
.eh-projects__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin-bottom: clamp(28px, 3vw, 44px);
}
.eh-projects__title { font-weight: 300; }
.eh-projects__nav { display: flex; gap: 10px; }
.eh-projects__nav button {
  width: 48px; height: 48px;
  background: transparent; border: 1px solid var(--eh-line-2); color: var(--eh-ivory);
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.eh-projects__nav button:hover { border-color: var(--eh-amber); color: var(--eh-amber); background: rgba(232,154,69,0.06); }

.eh-projects__track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: clamp(16px, 1.8vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.eh-projects__track::-webkit-scrollbar { display: none; }
@media (max-width: 980px){ .eh-projects__track { grid-auto-columns: minmax(78%, 1fr); } }

.eh-proj {
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 3 / 3.4;
  border: 1px solid var(--eh-line-2);
  overflow: hidden;
  cursor: pointer;
}
.eh-proj__media { position: absolute; inset: 0; }
.eh-proj__media image-slot,
.eh-proj__media .scene { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.eh-proj:hover .eh-proj__media image-slot,
.eh-proj:hover .eh-proj__media .scene { transform: scale(1.06); }
.eh-proj__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 38%, rgba(4,4,5,0.5) 66%, rgba(3,3,4,0.92) 100%);
  transition: background 0.5s;
}
.eh-proj:hover .eh-proj__scrim { background: linear-gradient(180deg, rgba(232,154,69,0.06) 20%, rgba(4,4,5,0.55) 60%, rgba(3,3,4,0.95) 100%); }
.eh-proj__label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: clamp(20px, 2vw, 28px);
}
.eh-proj__type {
  font-family: var(--eh-display);
  font-size: clamp(15px, 1.5vw, 19px); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  color: var(--eh-ivory); margin: 0 0 6px;
}
.eh-proj__loc {
  font-family: var(--eh-mono);
  font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase;
  color: rgba(244,237,225,0.55); margin: 0 0 18px;
}
.eh-proj__cta {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--eh-line-2); padding-top: 14px;
  font-family: var(--eh-display);
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 500;
  color: var(--eh-amber);
}
.eh-proj__cta .arr { transition: transform 0.3s; }
.eh-proj:hover .eh-proj__cta .arr { transform: translateX(5px); }

/* =========================================================
   CTA BAR — slim amber-bordered band
   ========================================================= */
.eh-ctabar {
  margin: 0 var(--eh-shell-x) clamp(64px, 8vh, 100px);
  border: 1px solid rgba(232,154,69,0.45);
  background:
    radial-gradient(ellipse 60% 140% at 12% 50%, rgba(232,154,69,0.10), transparent 60%),
    linear-gradient(180deg, #0b0a08 0%, #080706 100%);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: clamp(28px, 3.2vw, 44px) clamp(28px, 4vw, 64px);
}
.eh-ctabar__left { display: flex; align-items: center; gap: clamp(20px, 2.5vw, 36px); }
.eh-ctabar__txt { display: flex; flex-direction: column; gap: 8px; }
.eh-ctabar__h {
  font-family: var(--eh-display);
  font-size: clamp(20px, 2.4vw, 30px); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600;
  color: var(--eh-amber); margin: 0;
}
.eh-ctabar__p {
  font-family: var(--eh-text); font-weight: 300;
  font-size: 15px; color: rgba(244,237,225,0.7); margin: 0;
}
@media (max-width: 760px){
  .eh-ctabar__left { flex-direction: column; align-items: flex-start; }
  .eh-ctabar { justify-content: flex-start; }
}

/* Mobile small-label legibility (client demographic skews 45+) */
@media (max-width: 760px) {
  .eh-nav__brandstack .tech    { font-size: 10px; letter-spacing: 0.38em; }
  .eh-nav__brandstack .tagline { font-size: 10px; letter-spacing: 0.20em; }
  /* Pre-existing: the hero photo's scale transform escaped its wrapper by ~30px */
  .heroF__bg, .heroF__bg .scene { overflow: clip; }
  /* Pre-existing: .eh-about__mark::before is a fixed ~360px glow translated -180px, spilling a 305px container */
  .eh-about__mark { overflow: clip; }
}
