/* ============================================================
   Multi-page routing + per-page components
   ============================================================ */

/* ---- router / page transitions -------------------------- */
.page { display: none; }
.page.active { display: block; animation: pageIn .7s var(--ease) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* nav active state */
.nav__link.is-active { color: var(--ink); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 16px; bottom: 6px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--ember);
  box-shadow: 0 0 8px var(--ember-glow);
}

/* ---- logo mark (reconstructed hexagon-C in ember) ------- */
.nav__logo .mark { width: 33px; height: 33px; flex: none; display: block; }
.nav__logo .mark svg { width: 100%; height: 100%; display: block; transition: filter .4s var(--ease); }
.nav__logo:hover .mark svg { filter: drop-shadow(0 0 9px var(--ember-glow)); }
.nav__logo .wordmark em { font-style: normal; color: var(--ember); }

/* ---- page hero (interior pages) ------------------------- */
.phero {
  position: relative; padding-top: clamp(140px, 18vh, 220px);
  padding-bottom: clamp(56px, 8vw, 110px); overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.phero--media { min-height: 86vh; display: flex; align-items: flex-end; }
.phero__bg { position: absolute; inset: 0; z-index: 0; }
.phero__bg video, .phero__bg img { width: 100%; height: 100%; object-fit: cover; }
.phero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,8,10,.6) 0%, rgba(8,8,10,.25) 40%, rgba(8,8,10,.7) 75%, var(--bg) 100%);
}
.phero__inner { position: relative; z-index: 2; width: 100%; }
.phero__title { font-family: var(--display); font-weight: 800; font-size: clamp(46px, 8vw, 116px); line-height: .9; letter-spacing: -.035em; margin: 26px 0; }
.phero__title em { font-style: normal; color: var(--ember); }
.phero__lede { max-width: 52ch; }
.phero__crumbs { display: flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.phero__crumbs .sep { color: var(--ink-4); }
.phero__crumbs b { color: var(--ember); font-weight: 500; }

/* ---- product page hero badge --------------------------- */
.phero__badge { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 100px; background: rgba(8,8,10,.45); backdrop-filter: blur(8px); margin-bottom: 22px; }
.phero__badge .d { width: 7px; height: 7px; border-radius: 50%; }
.phero__badge.is-live .d { background: #34D17A; box-shadow: 0 0 10px rgba(52,209,122,.6); }
.phero__badge.is-soon .d { background: var(--ember); box-shadow: 0 0 10px var(--ember-glow); animation: pulse 2.4s infinite; }
.phero__badge.is-disc .d { background: var(--ink-4); }

/* ---- coming-soon roadmap ------------------------------- */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.rm { background: var(--bg-1); padding: 36px 30px; min-height: 200px; display: flex; flex-direction: column; }
.rm__n { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--ember); margin-bottom: auto; }
.rm__t { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -.02em; margin-bottom: 10px; }
.rm__d { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
@media (max-width: 760px) { .roadmap { grid-template-columns: 1fr; } }

/* ---- location map (Leaflet, dark + ember) -------------- */
.mapwrap { position: relative; margin-top: 34px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--bg-1); }
.map { width: 100%; height: clamp(380px, 52vh, 560px); }
.leaflet-container { background: #0a0a0c; font-family: var(--mono); outline: none; }
/* subtle warm grade + vignette over the tiles */
.map__overlay { position: absolute; inset: 0; pointer-events: none; z-index: 460; box-shadow: inset 0 0 140px rgba(8,8,10,.85); background: radial-gradient(60% 70% at 35% 50%, rgba(255,77,31,0.05), transparent 60%); }
.leaflet-tile { filter: saturate(.85) brightness(.92) contrast(1.05); }

.map__card { position: absolute; z-index: 500; left: 24px; bottom: 24px; background: rgba(11,11,14,.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line-2); border-radius: 6px; padding: 24px 26px; max-width: 300px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.85); }
.map__kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ember); }
.map__addr { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; margin: 12px 0 16px; line-height: 1.18; }

/* custom pin */
.c3d-pin { position: relative; }
.c3d-pin .pin__dot { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; transform: translate(-50%,-50%); background: var(--ember); border-radius: 50%; border: 2px solid #0a0a0a; box-shadow: 0 0 16px var(--ember-glow); }
.c3d-pin .pin__ring { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; transform: translate(-50%,-50%); border-radius: 50%; border: 1.5px solid var(--ember); animation: pinpulse 2.6s ease-out infinite; }
@keyframes pinpulse { 0% { transform: translate(-50%,-50%) scale(.5); opacity: .85; } 100% { transform: translate(-50%,-50%) scale(2.4); opacity: 0; } }

/* leaflet controls themed */
.leaflet-bar a { background: rgba(12,12,15,.92) !important; color: var(--ink) !important; border-color: var(--line-2) !important; transition: background .25s, color .25s; }
.leaflet-bar a:hover { background: var(--ember) !important; color: #0a0a0a !important; }
.leaflet-control-attribution { background: rgba(8,8,10,.6) !important; color: var(--ink-4) !important; font-size: 10px !important; }
.leaflet-control-attribution a { color: var(--ink-3) !important; }

@media (max-width: 760px) { .map__card { left: 14px; right: 14px; bottom: 14px; max-width: none; padding: 20px; } }

/* ---- spec sheet ----------------------------------------- */
.spec { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.spec__cell { padding: 32px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.spec__cell:nth-child(4n) { border-right: none; }
.spec__k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.spec__v { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2vw, 30px); letter-spacing: -.02em; margin-top: 14px; }
.spec__v small { font-size: 14px; color: var(--ink-3); font-family: var(--mono); font-weight: 400; letter-spacing: 0; }

/* ---- lineup comparison table ---------------------------- */
.cmp { margin-top: clamp(34px, 4vw, 52px); }
.cmp__scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--card); -webkit-overflow-scrolling: touch; }
.cmp__table { width: 100%; min-width: 660px; border-collapse: collapse; }
.cmp__table th, .cmp__table td { text-align: left; padding: 19px clamp(20px, 2.4vw, 30px); border-bottom: 1px solid var(--line); vertical-align: middle; }
.cmp__table tbody tr:last-child th, .cmp__table tbody tr:last-child td { border-bottom: none; }
.cmp__table tbody th { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; width: 26%; }
.cmp__table td { font-family: var(--display); font-weight: 600; font-size: clamp(15px, 1.15vw, 18px); letter-spacing: -.01em; color: var(--ink); width: 24.66%; }
.cmp__table td small { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0; color: var(--ink-3); }
.cmp__na { color: var(--ink-4) !important; font-weight: 500 !important; }

/* header row */
.cmp__head th { padding-top: 26px; padding-bottom: 24px; border-bottom: 1px solid var(--line-2); vertical-align: bottom; }
.cmp__caption { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-4); font-weight: 400; }
.cmp__name { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2vw, 30px); letter-spacing: -.025em; line-height: 1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cmp__col--evo .cmp__name { color: var(--ember); }
.cmp__tag { font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #0a0a0a; background: var(--ember); padding: 4px 9px; border-radius: 100px; }
.cmp__badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.cmp__badge .d { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.cmp__badge .d.live { background: #34D17A; box-shadow: 0 0 9px rgba(52,209,122,.6); }
.cmp__badge .d.soon { background: var(--ember); box-shadow: 0 0 9px var(--ember-glow); }
.cmp__badge .d.disc { background: var(--ink-4); }

/* highlighted EVO column */
.cmp__col--evo { background: linear-gradient(180deg, var(--ember-wash), rgba(255,77,31,0.03)); box-shadow: inset 1px 0 0 var(--line-2), inset -1px 0 0 var(--line-2); }
.cmp__head th.cmp__col--evo { box-shadow: inset 1px 0 0 var(--line-2), inset -1px 0 0 var(--line-2); border-bottom-color: var(--ember); }

.cmp__foot { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--ink-3); margin-top: 18px; line-height: 1.5; }

/* ---- split feature row ---------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 90px); align-items: center; }
.split--rev .split__media { order: -1; }
.split__media { position: relative; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; aspect-ratio: 4/3; background: radial-gradient(120% 100% at 50% 0%, var(--bg-3), var(--bg)); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media.contain img { object-fit: contain; padding: 30px; }
.split__kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ember); }
.split__h { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.2vw, 46px); letter-spacing: -.025em; margin: 18px 0 22px; line-height: 1; }
.split__list { display: flex; flex-direction: column; margin-top: 24px; }
.split__list .li { display: flex; gap: 14px; padding: 15px 0; border-top: 1px solid var(--line-hair); color: var(--ink-2); font-size: 15px; }
.split__list .li .ic { color: var(--ember); flex: none; margin-top: 2px; }

/* ---- materials chips ------------------------------------ */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; padding: 11px 18px; border: 1px solid var(--line-2); border-radius: 100px; color: var(--ink-2); transition: all .35s var(--ease); cursor: default; }
.chip:hover { border-color: var(--ember); color: var(--ink); background: var(--ember-wash); }

/* ---- events list ---------------------------------------- */
.events { border-top: 1px solid var(--line); }
.evt { display: grid; grid-template-columns: 150px 1fr auto; gap: 30px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease); position: relative; }
.evt:hover { padding-left: 18px; }
.evt::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--ember); transform: scaleY(0); transform-origin: top; transition: transform .4s var(--ease); }
.evt:hover::before { transform: scaleY(1); }
.evt__date { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ember); }
.evt__date span { display: block; color: var(--ink-3); font-size: 11px; margin-top: 5px; }
.evt__name { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2vw, 28px); letter-spacing: -.02em; }
.evt__loc { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.evt__cta { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.evt:hover .evt__cta { color: var(--ember); }

/* ---- resources ------------------------------------------ */
.res { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.res__card { border: 1px solid var(--line); border-radius: 5px; padding: 32px; background: var(--card); display: flex; flex-direction: column; gap: 16px; min-height: 240px; transition: all .45s var(--ease); }
.res__card:hover { border-color: var(--ember); transform: translateY(-5px); background: var(--card-hi); }
.res__ic { width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 10px; display: grid; place-items: center; color: var(--ember); }
.res__type { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: auto; }
.res__name { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.res__dl { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); display: flex; align-items: center; gap: 9px; }
.res__card:hover .res__dl { color: var(--ember); }

/* ---- story / company ------------------------------------ */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.story__lead { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3vw, 44px); line-height: 1.06; letter-spacing: -.025em; }
.story__lead .dim { color: var(--ink-3); }
.story__body p { color: var(--ink-2); font-size: 16.5px; line-height: 1.65; margin-bottom: 22px; }
.story__body p:first-child::first-letter { font-family: var(--display); font-weight: 800; font-size: 62px; float: left; line-height: .8; padding: 6px 14px 0 0; color: var(--ember); }

.timeline { border-top: 1px solid var(--line); margin-top: 10px; }
.tl { display: grid; grid-template-columns: 110px 1fr; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.tl__yr { font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--ember); letter-spacing: -.02em; }
.tl__t { font-family: var(--display); font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.tl__d { color: var(--ink-2); font-size: 14.5px; }

/* ---- value cards ---------------------------------------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.value { background: var(--bg-1); padding: 38px 32px; min-height: 240px; display: flex; flex-direction: column; }
.value__n { font-family: var(--mono); font-size: 11px; color: var(--ember); letter-spacing: .16em; margin-bottom: auto; }
.value__t { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; margin-bottom: 12px; }
.value__d { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

/* ---- contact form --------------------------------------- */
.cform { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 80px); }
.cform__aside h3 { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3vw, 44px); letter-spacing: -.025em; line-height: 1; }
.cform__aside .row { display: flex; gap: 14px; margin-top: 22px; color: var(--ink-2); font-size: 15px; align-items: flex-start; }
.cform__aside .row .ic { color: var(--ember); flex: none; margin-top: 2px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field textarea, .field select {
  background: var(--card); border: 1px solid var(--line-2); border-radius: 3px;
  padding: 15px 16px; color: var(--ink); font-family: var(--sans); font-size: 15px;
  transition: border-color .3s var(--ease), background .3s; outline: none; width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ember); background: var(--card-hi); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }

/* ---- CTA band (shared) ---------------------------------- */
.ctaband { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.ctaband__glow { position: absolute; left: 50%; bottom: -40%; width: 1000px; height: 1000px; transform: translateX(-50%); background: radial-gradient(circle, var(--ember-wash), transparent 62%); pointer-events: none; }
.ctaband__inner { position: relative; z-index: 2; text-align: center; }
.ctaband h2 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6vw, 96px); letter-spacing: -.035em; line-height: .92; }
.ctaband h2 em { font-style: normal; color: var(--ember); }

@media (max-width: 1024px) {
  .spec { grid-template-columns: 1fr 1fr; }
  .spec__cell:nth-child(4n) { border-right: 1px solid var(--line); }
  .spec__cell:nth-child(2n) { border-right: none; }
  .res, .values { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .split, .split--rev .split__media { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .story, .cform, .form__grid, .res, .values { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; }
  .spec__cell { border-right: none !important; }
  .evt { grid-template-columns: 1fr; gap: 10px; }
  .evt__cta { justify-self: start; }
}
