/* ============================================================
   Diego Parra — Portfolio
   Shared stylesheet. Design tokens + components for all pages.
   ============================================================ */

:root {
  --bg:            #08090b;
  --bg-panel:      #0c0e11;
  --bg-hero:       #101318;
  --bg-plate:      #141922;
  --bg-tile:       #12161c;
  --bg-tile-2:     #151b23;

  --text:          #f4f5f7;
  --text-90:       rgba(244,245,247,0.90);
  --text-72:       rgba(244,245,247,0.72);
  --text-70:       rgba(244,245,247,0.70);
  --text-66:       rgba(244,245,247,0.66);
  --text-55:       rgba(244,245,247,0.55);
  --text-50:       rgba(244,245,247,0.50);
  --text-45:       rgba(244,245,247,0.45);
  --text-42:       rgba(244,245,247,0.42);
  --text-40:       rgba(244,245,247,0.40);
  --text-38:       rgba(244,245,247,0.38);
  --text-32:       rgba(244,245,247,0.32);
  --text-30:       rgba(244,245,247,0.30);

  --line:          rgba(255,255,255,0.08);
  --line-09:       rgba(255,255,255,0.09);
  --line-10:       rgba(255,255,255,0.10);
  --line-12:       rgba(255,255,255,0.12);
  --line-16:       rgba(255,255,255,0.16);

  --accent:        oklch(0.68 0.17 248);
  --accent-soft:   oklch(0.72 0.15 248);
  --accent-bright: oklch(0.78 0.13 248);
  --accent-hover:  oklch(0.85 0.11 248);
  --btn:           oklch(0.55 0.19 251);
  --btn-hover:     oklch(0.63 0.19 251);
  --sel-bg:        rgba(74,132,255,0.16);
  --sel-border:    rgba(112,158,255,0.50);

  --sidebar-w:     296px;

  --font-sans:     Archivo, Helvetica, Arial, sans-serif;
  --font-mono:     'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body {
  font-family: var(--font-sans);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent-soft); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Keyframes ---------- */
@keyframes plateDrift { 0% { transform: scale(1.06) translate3d(0,0,0); } 100% { transform: scale(1.14) translate3d(-2%,-1.5%,0); } }
@keyframes pulseDot   { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes caretBlink { 0%,45% { opacity: 1; } 55%,100% { opacity: 0; } }
@keyframes fadeUp     { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn     { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* ============================================================
   Shell + sidebar
   ============================================================ */
.navtoggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.shell {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  display: flex; flex-direction: column;
  background: var(--bg-panel);
  border-right: 1px solid var(--line);
  z-index: 20;
}

.burger {
  display: none;
  position: absolute; top: 16px; right: 18px;
  width: 46px; height: 46px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid var(--line-16); border-radius: 3px;
  background: rgba(255,255,255,0.04); cursor: pointer; z-index: 5;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--text); }

.brand { padding: 38px 28px 30px 28px; }
.brand__name {
  display: block;
  font-size: 26px; font-weight: 900; letter-spacing: -0.01em; line-height: 1;
  text-transform: uppercase; color: var(--text);
}
a.brand__name:hover { color: #fff; }
.brand__tag {
  margin-top: 9px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  color: var(--text-38); text-transform: uppercase;
}

.nav { display: flex; flex-direction: column; gap: 6px; padding: 8px 18px; }
.nav__link {
  position: relative; display: flex; align-items: center;
  padding: 16px 18px; border-radius: 3px;
  border: 1px solid var(--line-10);
  background: rgba(255,255,255,0.03);
  color: var(--text-72);
  font-size: 15px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.nav__link:hover { background: var(--sel-bg); color: #fff; border-color: var(--sel-border); }
.nav__link--active { background: var(--sel-bg); color: #fff; border-color: var(--sel-border); }
.nav__link--active .nav__bar,
.nav__sublink--active .nav__bar { opacity: 1; }
.nav__bar {
  position: absolute; left: 0; top: 11px; bottom: 11px;
  width: 3px; border-radius: 2px; background: var(--accent); opacity: 0;
  transition: opacity 160ms ease;
}

.nav__sub { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.nav__sublink {
  position: relative;
  padding: 13px 18px; border-radius: 3px;
  color: var(--text-55);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease;
}
.nav__sublink:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav__sublink--active {
  background: rgba(74,132,255,0.14); color: #fff; font-weight: 700;
}
.nav__sublink--active .nav__bar { top: 9px; bottom: 9px; opacity: 1; }

.sidebar__cta { margin-top: auto; padding: 18px; }
.cta-button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px; background: var(--btn); color: #fff; border-radius: 3px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background 160ms ease;
}
.cta-button:hover { background: var(--btn-hover); color: #fff; }
.cta-button__arrow { font-family: var(--font-mono); font-size: 15px; }
.cta-email {
  margin-top: 12px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  color: var(--text-32); word-break: break-all;
}

/* ---------- Main column ---------- */
.main {
  margin-left: var(--sidebar-w);
  flex: 1; min-width: 0;
  position: relative;
  container-type: inline-size;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  height: 82vh; min-height: 560px;
  overflow: hidden;
}
.hero--home { min-height: 100vh; height: 100vh; }

.hero__bg { position: absolute; inset: 0; background: var(--bg-hero); overflow: hidden; }
.hero__plate {
  position: absolute; inset: -6%;
  animation: plateDrift 30s ease-in-out infinite alternate;
  background-color: var(--bg-plate);
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.055) 0px, rgba(255,255,255,0.055) 2px, transparent 2px, transparent 13px);
}
.hero--home .hero__plate { animation-duration: 26s; }
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 35%;
  /* A no-op filter forces the browser off the hardware-overlay video path, so the
     video keeps consistent color management and doesn't oversaturate on scroll. */
  filter: saturate(1);
}
.hero__scrim  { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6,7,9,0.93) 0%, rgba(6,7,9,0.7) 44%, rgba(6,7,9,0.46) 100%); }
.hero__scrim2 { position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,5,7,0.95) 0%, rgba(4,5,7,0) 60%); }
.hero--home .hero__scrim  { background: linear-gradient(100deg, rgba(6,7,9,0.94) 0%, rgba(6,7,9,0.72) 42%, rgba(6,7,9,0.5) 100%); }
.hero--home .hero__scrim2 { background: linear-gradient(to top, rgba(4,5,7,0.92) 0%, rgba(4,5,7,0) 58%); }

.hero__pad {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 64px 72px 60px 72px;
}
.hero--home .hero__pad { min-height: 100vh; height: auto; padding-bottom: 68px; }

.hero__topbar {
  position: absolute; top: 44px; left: 72px; right: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.hero__index { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: rgba(255,255,255,0.45); }
.hero__social { display: inline-flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.45); transition: color 160ms ease; }
.hero__social:hover { color: #fff; }
.hero__social svg { display: block; }

.badge {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 15px 9px 13px;
  border: 1px solid var(--line-16); background: rgba(255,255,255,0.05);
  border-radius: 999px; backdrop-filter: blur(6px); width: fit-content;
}
.badge__dot { width: 7px; height: 7px; border-radius: 999px; background: var(--accent); animation: pulseDot 2.4s ease-in-out infinite; }
.badge__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.82); }

.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent-soft); margin-bottom: 22px;
}

.hero__title {
  margin: 0;
  font-size: clamp(32px, 7.4cqw, 112px);
  font-weight: 900; line-height: 0.9; letter-spacing: -0.035em; text-transform: uppercase;
  max-width: 100%; overflow-wrap: break-word;
}
.hero--home .hero__title { min-height: 1.8em; }
.caret { color: var(--accent); animation: caretBlink 1s steps(1, end) infinite; }
.nowrap { display: inline; white-space: nowrap; }

.hero__sub {
  margin: 26px 0 0 0; max-width: 52ch;
  font-size: 19px; line-height: 1.6; color: var(--text-72); text-wrap: pretty;
}

.hero__actions { display: flex; align-items: center; gap: 28px; margin-top: 38px; flex-wrap: wrap; }
.hero--home .hero__actions { margin-top: 40px; }

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 26px; background: var(--btn); color: #fff; border: none;
  border-radius: 4px; cursor: pointer;
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background 160ms ease;
}
.btn:hover { background: var(--btn-hover); color: #fff; }
.btn__icon { font-family: var(--font-mono); font-size: 15px; }

.link-underline {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.25); padding-bottom: 5px;
  transition: color 160ms ease, border-color 160ms ease;
}
.link-underline:hover { color: #fff; border-color: var(--accent); }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 78px 72px 96px 72px; }
.section--tight { padding: 80px 72px 24px 72px; }
.section--grid {
  padding: 44px 72px 0 72px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px 56px; align-items: start;
}

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid var(--line-09);
}
.section-head__eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 14px; }
.section-head__title { margin: 0; font-size: clamp(28px, 3.4cqw, 46px); font-weight: 900; letter-spacing: -0.02em; text-transform: uppercase; line-height: 1; }
.section-head__count { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-45); }

.page-title {
  margin: 0; max-width: 22ch;
  font-size: clamp(34px, 6.2cqw, 92px);
  font-weight: 900; line-height: 0.92; letter-spacing: -0.035em; text-transform: uppercase;
}
.eyebrow--block { margin: 38px 0 20px 0; }

/* ---------- Gallery grids ---------- */
.grid { display: grid; margin-top: 38px; }
.grid--clips   { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 40px 24px; }
.grid--gallery { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 40px 24px; }

.figure { margin: 0; display: flex; flex-direction: column; gap: 15px; }

.thumb {
  position: relative; display: block; width: 100%; padding: 0;
  overflow: hidden; border-radius: 4px;
  border: 1px solid var(--line-09); background: var(--bg-tile);
  cursor: pointer;
  transition: border-color 200ms ease, transform 200ms ease;
}
.thumb:hover { border-color: rgba(112,158,255,0.6); transform: translateY(-3px); }
.thumb--video { cursor: pointer; aspect-ratio: 16 / 9; }
.thumb--photo { cursor: zoom-in; }
.thumb__img { display: block; width: 100%; height: 100%; object-fit: cover; }

.thumb__badge {
  position: absolute; top: 14px; right: 14px;
  padding: 5px 9px; border-radius: 2px;
  background: rgba(5,7,10,0.72); border: 1px solid var(--line-16);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: rgba(255,255,255,0.78);
}
.thumb__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 58px; height: 58px; border-radius: 999px;
  background: rgba(5,7,10,0.62); border: 1px solid rgba(255,255,255,0.28);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff; transition: background 200ms ease;
}
.thumb:hover .thumb__play { background: var(--btn); }
.thumb__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,7,10,0.55) 0%, rgba(5,7,10,0) 45%);
  opacity: 0; transition: opacity 220ms ease;
}
.thumb:hover .thumb__overlay { opacity: 1; }

/* Blur-up: a tiny placeholder sits on the button as a background and shows
   instantly; the real thumbnail fades in on top once it loads. The .blurup
   class is added by JS, so with JS off the images just show normally. */
.thumb--photo { background-size: cover; background-position: center; background-repeat: no-repeat; }
.blurup .thumb--photo .thumb__img { opacity: 0; transition: opacity 0.45s ease; }
.blurup .thumb--photo .thumb__img.is-loaded { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .blurup .thumb--photo .thumb__img { transition: none; } }

.figcap { display: flex; flex-direction: column; gap: 8px; }
.figcap__title  { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.22; }
.figcap__credit { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-50); line-height: 1.95; }
.figcap__role   { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent-soft); }

/* ---------- Reel player (single embedded video) ---------- */
.reel-player {
  margin-top: 38px; width: 100%; max-width: 720px;
  aspect-ratio: 16 / 9; overflow: hidden;
  border: 1px solid var(--line-09); border-radius: 4px; background: #000;
}
.reel-player__video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; filter: saturate(1); }
.reel-fallback {
  display: inline-block; margin-top: 14px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--text-45); border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.reel-fallback:hover { color: #fff; border-color: var(--accent); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(4,5,7,0.94); backdrop-filter: blur(8px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; padding: 56px 64px;
  animation: fadeIn 200ms ease both; cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  display: block; width: auto; max-width: min(1180px, 100%); max-height: 70vh;
  border: 1px solid var(--line-16); border-radius: 4px; object-fit: contain; background: var(--bg-tile-2);
}
.lightbox__frame {
  position: relative; width: min(1180px, 100%); max-height: 74vh; aspect-ratio: 16 / 9;
  border: 1px solid var(--line-16); border-radius: 4px; overflow: hidden;
  background-color: var(--bg-tile-2);
}
.lightbox__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lightbox__frameplay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.lightbox__frameplay span {
  width: 62px; height: 62px; border-radius: 999px; background: var(--btn);
  display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff;
}
.lightbox__bar { width: min(1180px, 100%); display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.lightbox__meta { display: flex; flex-direction: column; gap: 7px; }
.lightbox__metaline { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-bright); }
.lightbox__title { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.lightbox__controls { display: flex; align-items: center; gap: 10px; }
.lb-btn {
  padding: 14px 20px; border: 1px solid var(--line-16); background: rgba(255,255,255,0.04);
  color: #fff; border-radius: 3px; cursor: pointer;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  transition: background 160ms ease;
}
.lb-btn:hover { background: rgba(255,255,255,0.12); }
.lb-index { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: rgba(255,255,255,0.5); min-width: 74px; text-align: center; }
.lb-close {
  margin-left: 10px; padding: 14px 22px; border: none; background: var(--btn); color: #fff;
  border-radius: 3px; cursor: pointer;
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background 160ms ease;
}
.lb-close:hover { background: var(--btn-hover); }

/* ============================================================
   Lighting — case studies
   ============================================================ */
.cases { display: flex; flex-direction: column; gap: 92px; margin-top: 52px; }
.case { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 36px 56px; align-items: start; }
.case__body { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.case__head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.case__num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; color: var(--accent-soft); }
.case__title { margin: 0; font-size: clamp(24px, 2.6cqw, 34px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.05; text-transform: uppercase; }
.case__meta { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; line-height: 1.9; }
.case__meta .credit { color: var(--text-50); }
.case__meta .role   { color: var(--accent-soft); }
.case__approach { margin: 0; max-width: 56ch; font-size: 16px; line-height: 1.75; color: var(--text-70); text-wrap: pretty; }

.specs { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line-09); border: 1px solid var(--line-09); border-radius: 3px; overflow: hidden; }
.spec { background: var(--bg-panel); padding: 16px 18px; display: flex; flex-direction: column; gap: 7px; flex: 1 1 130px; min-width: 130px; }
.spec__value { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.spec__label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-45); }

.case__pdf {
  display: inline-flex; align-items: center; gap: 12px; width: fit-content;
  padding: 15px 20px; border: 1px dashed rgba(255,255,255,0.18); background: rgba(255,255,255,0.02);
  border-radius: 3px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-45);
  transition: border-color 160ms ease, color 160ms ease;
}
.case__pdf:hover { border-color: var(--sel-border); color: #fff; }

.case__media { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.case__lead { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.case__lead img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--line-09); border-radius: 4px; background: var(--bg-tile); }
.case__stills { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.case__stills figure { margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.case__stills img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--line-09); border-radius: 4px; background: var(--bg-tile); }
.caption { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-45); line-height: 1.9; }

/* ============================================================
   Lighting — project index (cards) + detail
   ============================================================ */
.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 38px; }

.proj-card {
  position: relative;
  display: flex; flex-direction: column;
  overflow: hidden; border: 1px solid var(--line-10); border-radius: 6px;
  background: var(--bg-panel); color: var(--text); text-decoration: none;
  transition: border-color 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}
.proj-card:hover {
  border-color: rgba(112,158,255,0.55);
  box-shadow: 0 0 0 1px rgba(112,158,255,0.28), 0 0 38px 2px rgba(74,132,255,0.42);
  transform: translateY(-3px);
}
.proj-card:hover .proj-card__title { color: #fff; }

.proj-card__thumb { position: relative; overflow: hidden; background: var(--bg-tile); aspect-ratio: 16 / 9; }
.proj-card__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.proj-card:hover .proj-card__thumb img { transform: scale(1.04); }
.proj-card__tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(74,132,255,0.24); border: 1px solid var(--sel-border);
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: #fff;
  backdrop-filter: blur(6px);
}

.proj-card__info { padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.proj-card__title { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.12; text-transform: uppercase; transition: color 200ms ease; }
.proj-card__metarow { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-50); }
.proj-card__metarow .accent { color: var(--accent-soft); }
.proj-card__blurb { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-66); text-wrap: pretty; }
.proj-card__go { margin-top: auto; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-soft); display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 560px) { .proj-grid { grid-template-columns: 1fr; } }

/* Project detail page */
.detail-back {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 26px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-55);
  transition: color 160ms ease;
}
.detail-back:hover { color: #fff; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-55); }
.detail-meta .accent { color: var(--accent-soft); }

/* ============================================================
   About
   ============================================================ */
.prose { display: flex; flex-direction: column; gap: 22px; max-width: 62ch; }
.prose .lede { margin: 0; font-size: 21px; line-height: 1.55; color: var(--text-90); text-wrap: pretty; }
.prose p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--text-66); text-wrap: pretty; }

.portrait {
  position: relative; width: 100%; max-width: 460px; aspect-ratio: 4 / 5;
  border-radius: 4px; overflow: hidden; border: 1px solid var(--line-10);
  background-color: var(--bg-tile-2);
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 2px, transparent 2px, transparent 12px);
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait__ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-30); line-height: 2;
}

.facts { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line-09); border: 1px solid var(--line-09); border-radius: 4px; }
.fact { background: var(--bg-panel); padding: 30px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 190px; min-width: 190px; }
.fact__value { font-size: 34px; font-weight: 900; letter-spacing: -0.02em; color: #fff; }
.fact__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-45); }

.cols { display: flex; flex-wrap: wrap; gap: 44px; margin-top: 64px; }
.col { display: flex; flex-direction: column; gap: 14px; flex: 1 1 240px; min-width: 240px; }
.col__head { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-soft); }
.col__body { font-size: 16px; line-height: 1.9; color: var(--text-70); }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
  padding: 44px 72px 0 72px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px 56px; align-items: start;
}
.form { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: flex; flex-wrap: wrap; gap: 16px; }
.field { flex: 1 1 220px; min-width: 220px; display: flex; flex-direction: column; gap: 9px; }
.field--full { flex-basis: 100%; }
.field__label, .form__grouplabel { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-50); }
input, textarea, select { font-family: var(--font-sans); }
.input, textarea.input {
  padding: 15px 16px; background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-12); border-radius: 3px; color: var(--text);
  font-size: 15px; transition: border-color 160ms ease;
}
textarea.input { line-height: 1.6; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--text-30); }
.input:focus, textarea.input:focus { outline: none; border-color: oklch(0.62 0.17 250); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 12px 18px; border-radius: 3px; border: 1px solid var(--line-12);
  background: rgba(255,255,255,0.03); color: var(--text-72); cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.chip[aria-pressed="true"] { background: rgba(74,132,255,0.18); border-color: rgba(112,158,255,0.55); color: #fff; }

.btn--submit { justify-content: space-between; margin-top: 6px; padding: 19px 26px; width: fit-content; min-width: 300px; }

.form__status {
  padding: 26px; border: 1px solid var(--sel-border); background: rgba(74,132,255,0.14);
  border-radius: 4px; animation: fadeUp 420ms ease both;
}
.form__status[hidden] { display: none; }
.form__status-title { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 8px; }
.form__status-note { font-size: 15px; line-height: 1.6; color: var(--text-72); }

.info { display: flex; flex-direction: column; gap: 18px; }
.card { border: 1px solid var(--line-10); border-radius: 4px; background: var(--bg-panel); padding: 28px; }
.card__head { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 18px; }
.card__stack { display: flex; flex-direction: column; gap: 16px; }
.card__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-42); margin-bottom: 6px; }
.card__value { font-size: 16px; font-weight: 600; }
.card__value a { color: var(--text); }
.card__value a:hover { color: var(--accent-bright); }
.card__prose { font-size: 15px; line-height: 1.85; color: var(--text-66); }

.avail { display: flex; flex-direction: column; gap: 1px; background: var(--line-09); border: 1px solid var(--line-09); border-radius: 3px; overflow: hidden; }
.avail__row { background: var(--bg-panel); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.avail__period { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244,245,247,0.6); }
.avail__status { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; }
.avail__status--limited { color: rgba(244,245,247,0.6); }
.avail__status--open    { color: var(--accent-bright); }
.avail__status--booked  { color: oklch(0.72 0.15 25); }

/* ---------- Footer ---------- */
.footer {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line-09);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-40);
}

/* ============================================================
   Responsive — sidebar collapses to a top bar + hamburger
   ============================================================ */
@media (max-width: 900px) {
  .shell { flex-direction: column; }
  .sidebar {
    position: relative; top: auto; left: auto; bottom: auto;
    width: 100%; border-right: none; border-bottom: 1px solid var(--line);
  }
  .main { margin-left: 0; min-height: 0; display: flex; flex-direction: column; }
  .brand { padding: 20px 24px 18px 24px; }
  .burger { display: flex; }
  .nav, .sidebar__cta { display: none; }
  #navToggle:checked ~ .shell .nav { display: flex; padding: 2px 16px 10px 16px; }
  #navToggle:checked ~ .shell .sidebar__cta { display: block; padding: 4px 16px 20px 16px; margin-top: 0; }
  .hero { height: auto; min-height: 0; }
  .hero--home { height: auto; flex: 1; display: flex; flex-direction: column; }
  .hero__pad, .hero--home .hero__pad { height: auto; min-height: 66vh; padding-top: 124px; }
  .hero--home .hero__pad { flex: 1; }
  .section, .section--tight, .section--grid, .contact-grid { padding-left: 32px; padding-right: 32px; }
  .hero__pad { padding-left: 32px; padding-right: 32px; }
  .hero__topbar { top: 28px; left: 32px; right: 32px; }
}
@media (max-width: 600px) {
  .brand { padding: 16px 20px 14px 20px; }
  .section, .section--tight, .section--grid, .contact-grid, .hero__pad { padding-left: 20px; padding-right: 20px; }
  .hero__topbar { top: 20px; left: 20px; right: 20px; }
  .hero__pad, .hero--home .hero__pad { padding-top: 108px; padding-bottom: 40px; min-height: 60vh; }
  /* Mobile home: center the eyebrow + typed headline (biased slightly up) rather than bottom-aligning. */
  .hero--home .hero__pad { justify-content: center; padding-bottom: 20vh; }
  .hero__title { font-size: clamp(24px, 7.5vw, 40px); min-height: 0; letter-spacing: -0.02em; }
}
