/* ── hi-everest ─────────────────────────────────────────────
   Dark, minimal, one accent. Three cards that expand.
   ─────────────────────────────────────────────────────────── */

:root {
  --bg:        #08090a;
  --bg-soft:   #101214;
  --line:      #1e2226;
  --fg:        #ececec;
  --fg-dim:    #8b9197;
  --fg-faint:  #5a6167;
  --accent:    #9bd1e5;          /* glacier */
  --measure:   68ch;
  --wide:      1120px;
  --pad:       clamp(1.25rem, 4vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; }

/* fixed Everest plate + a light scrim so type stays readable */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background: url('media/everest.jpg') center / cover no-repeat;
  filter: brightness(0.5) saturate(0.85) contrast(1.06);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    rgba(8,9,10,0.30) 0%,
    rgba(8,9,10,0.52) 40%,
    rgba(8,9,10,0.78) 100%);
}

/* ── scroll progress ─────────────────────────────────────── */
.progress {
  position: fixed; inset: 0 auto auto 0;
  height: 1px; width: 0;
  background: var(--accent); z-index: 100;
  transition: width 90ms linear;
}
.readout {
  position: fixed; right: var(--pad); bottom: 1.25rem;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 0.7rem; letter-spacing: 0.08em;
  color: var(--fg-faint); z-index: 100; pointer-events: none;
}

/* ── nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem var(--pad);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.nav.stuck { border-bottom-color: var(--line); }
.nav a { text-decoration: none; }
.mark {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.8rem; letter-spacing: 0.02em; color: var(--fg);
}
.nav nav { display: flex; gap: 1.4rem; }
.navlink {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem; letter-spacing: 0.06em;
  color: var(--fg-faint); cursor: pointer;
  transition: color 160ms ease;
}
.navlink:hover, .navlink.active { color: var(--accent); }

/* ── layout ──────────────────────────────────────────────── */
main { padding: 0 var(--pad); }

.hero { max-width: var(--measure); margin: 0 auto; }
.board { max-width: var(--wide); margin: 0 auto; padding-bottom: clamp(3rem, 8vh, 5rem); }

.hero { padding: clamp(3rem, 9vh, 5.5rem) 0 clamp(2.5rem, 6vh, 3.5rem); }

/* ── hero type ───────────────────────────────────────────── */
.eyebrow {
  margin: 0 0 1.5rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem; letter-spacing: 0.09em;
  color: var(--accent); text-transform: lowercase;
}
h1 {
  margin: 0 0 1.4rem;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 500; line-height: 1.02; letter-spacing: -0.035em;
}
.lede {
  margin: 0 0 1.1rem; max-width: 58ch;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
  color: var(--fg-dim); line-height: 1.6;
}
.lede strong { color: var(--fg); font-weight: 500; }
.scroll-hint {
  margin: 2.5rem 0 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem; letter-spacing: 0.06em; color: var(--fg-faint);
}

/* ── the three cards ─────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 3px;
  overflow: hidden;
}

.card {
  display: flex; flex-direction: column;
  gap: 0.55rem;
  padding: 1.9rem 1.6rem 0;
  background: rgba(8,9,10,0.55);
  backdrop-filter: blur(14px);
  text-align: left; cursor: pointer;
  min-height: 17rem;
  transition: background 220ms ease, transform 220ms ease;
}
.card:hover { background: rgba(16,18,20,0.72); transform: translateY(-2px); }
.card:focus-visible { outline: 1px solid var(--accent); outline-offset: -2px; }
.card.active { background: rgba(16,18,20,0.78); }

.card .num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--fg-faint);
  transition: color 200ms ease;
}
.card.active .num, .card:hover .num { color: var(--accent); }

.card .kicker {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-faint);
}

.card h2 {
  margin: 0;
  font-size: clamp(1.25rem, 1.05rem + 0.65vw, 1.6rem);
  font-weight: 500; letter-spacing: -0.025em; line-height: 1.15;
}

.photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 1px;
  margin: 1rem 0 0.35rem;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(255,255,255,0.10);
}
.photos img {
  display: block; width: 100%; height: 100%;
  aspect-ratio: 3 / 2; object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
  transition: filter 300ms ease, transform 500ms ease;
}
.card:hover .photos img { filter: saturate(1) contrast(1.02); transform: scale(1.02); }

.card .teaser {
  margin: 0.15rem 0 0;
  font-size: 0.9rem; line-height: 1.55;
  color: var(--fg-dim);
}
.card .teaser em { font-style: normal; font-weight: 500; color: var(--fg); }

.chips {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin: 0.9rem 0 0; padding: 0; list-style: none;
}
.chips li {
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 2px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.62rem; letter-spacing: 0.06em;
  color: var(--fg-dim);
  white-space: nowrap;
}

.card .expand {
  margin: auto -1.6rem 0;
  padding-top: 1.05rem;
  padding: 1.05rem 1.6rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-dim);
  display: flex; align-items: center; gap: 0.7rem;
  transition: color 200ms ease, background 200ms ease, border-color 200ms ease;
}
.card:hover .expand, .card.active .expand {
  color: var(--accent);
  background: rgba(155,209,229,0.10);
  border-top-color: rgba(155,209,229,0.35);
}
.card .sign {
  display: inline-grid; place-items: center;
  width: 1.6rem; height: 1.6rem; flex: none;
  border: 1px solid currentColor; border-radius: 50%;
  font-size: 0.95rem; line-height: 1; font-weight: 400;
  transition: transform 300ms ease, background 200ms ease;
}
.card:hover .sign { background: rgba(155,209,229,0.14); }
.card.active .sign { transform: rotate(45deg); }

/* ── expanding panels ────────────────────────────────────── */
.panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 420ms cubic-bezier(.4,0,.2,1);
}
.panel.open { grid-template-rows: 1fr; }
.panel-inner { overflow: hidden; }
.panel-body {
  margin-top: -1px;
  padding: 2.5rem clamp(1.25rem, 3vw, 2.25rem);
  background: rgba(8,9,10,0.72);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0 0 3px 3px;
}
.panel-body > * { max-width: var(--measure); }


/* project panel type */
.idea-head {
  margin: 0 0 1.75rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}
.sub {
  margin: 2rem 0 0.6rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 500;
  color: var(--fg-faint);
}
.body a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(155,209,229,0.35); }
.body a:hover { border-bottom-color: var(--accent); }

.pitch {
  margin: 0 0 1.4rem;
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  font-weight: 400; color: var(--fg);
  letter-spacing: -0.02em; line-height: 1.35; text-wrap: balance;
}
.body { margin: 0 0 1.6rem; color: var(--fg-dim); }
.body em { color: var(--fg); font-style: normal; font-weight: 500; }

.bullets { margin: 0 0 2.25rem; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.bullets li {
  position: relative; padding: 0.5rem 0 0.5rem 1.4rem;
  color: var(--fg-dim); font-size: 0.95rem;
}
.bullets li::before {
  content: ""; position: absolute; left: -1px; top: 1.15em;
  width: 0.85rem; height: 1px; background: var(--line);
}
.bullets strong { color: var(--fg); font-weight: 500; }

/* ── media ───────────────────────────────────────────────── */
.media { margin: 0 0 1.6rem; }
.media:first-of-type { margin-bottom: 0.5rem; }
.media-slot {
  position: relative; aspect-ratio: 16 / 9;
  border: 1px solid var(--line); border-radius: 3px;
  background: rgba(16,18,20,0.6); overflow: hidden;
}
.media-slot::after {
  content: "media slot — drop a render in /media";
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.68rem; letter-spacing: 0.06em; color: var(--fg-faint);
}
.media-slot.filled { background: #000; }
.media-slot { backdrop-filter: blur(6px); }
.media-slot.filled::after { content: none; }
.media-slot img, .media-slot video { display: block; width: 100%; height: 100%; object-fit: cover; }

figcaption {
  margin-top: 0.7rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.68rem; letter-spacing: 0.05em; color: var(--fg-faint);
}
.track {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.68rem; letter-spacing: 0.06em;
  color: var(--accent); opacity: 0.75;
}

.contact {
  margin: 2.25rem 0 0; padding: 0; list-style: none;
  display: grid; gap: 1px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 3px; overflow: hidden;
}
.contact li {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(8,9,10,0.45);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.74rem; letter-spacing: 0.03em;
}
.contact .ck {
  flex: none; width: 5.5rem;
  font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-faint);
}
.contact a {
  color: var(--fg-dim); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
  overflow-wrap: anywhere;
}
.contact a:hover { color: var(--accent); border-bottom-color: rgba(155,209,229,0.5); }

.close {
  margin-top: 2rem; cursor: pointer;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-faint);
  transition: color 160ms ease;
}
.close:hover { color: var(--accent); }

/* ── footer ──────────────────────────────────────────────── */
footer {
  position: relative;
  max-width: var(--wide); margin: 0 auto;
  padding: 2rem var(--pad) 4rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between;
  border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem; letter-spacing: 0.05em; color: var(--fg-faint);
}
footer a { text-decoration: none; transition: color 160ms ease; }
footer a:hover { color: var(--accent); }

/* ── reveal ──────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(12px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 600ms ease, transform 600ms ease; }

/* ── responsive ──────────────────────────────────────────── */
@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
}
@media (max-width: 560px) {
  .readout { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  .progress, .panel, .sign { transition: none; }
}
