/* ============================================================
   DAVID HAN — portfolio
   Minimal editorial / light base + monospace utility touches.
   Two typefaces. One accent. Big space between sections,
   tight within. Dark mode = restrained toggle, default light.
   ============================================================ */

:root {
  --bg: #FAF9F5;
  --bg-soft: #F1EFE8;
  --ink: #161615;
  --ink-2: #5F5E5A;
  --ink-3: #93928C;
  --line: #E4E2D9;
  --accent: #B23F16;
  --reel-bg: #121212;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", "Inter", -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --pad-x: clamp(1.25rem, 4vw, 3rem);
}

[data-theme="dark"] {
  --bg: #0F0F10;
  --bg-soft: #17171A;
  --ink: #F0EFEA;
  --ink-2: #A6A59E;
  --ink-3: #6E6D67;
  --line: #262629;
  --accent: #D97E52;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
}

::selection { background: var(--accent); color: var(--bg); }

img, video, iframe { display: block; max-width: 100%; }

a { color: inherit; }

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

.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg);
  padding: 0.5rem 1rem; z-index: 300; font-family: var(--mono);
}
.skip-link:focus { left: 0; }

/* ---------------- NAV ---------------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0 var(--pad-x);
  height: 52px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  font-family: var(--mono); font-size: 0.8rem; font-weight: 500;
  text-decoration: none; letter-spacing: 0.08em;
  border: 1px solid var(--ink); padding: 0.15rem 0.45rem;
}

.nav-links {
  display: flex; gap: 1.4rem; overflow-x: auto;
  scrollbar-width: none; flex: 1;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-decoration: none; color: var(--ink-2); white-space: nowrap;
  padding: 0.2rem 0;
}
.nav-links a:hover { color: var(--accent); }

.theme-toggle {
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.1em;
  background: none; border: 1px solid var(--line); color: var(--ink-2);
  padding: 0.3rem 0.6rem; cursor: pointer;
}
.theme-toggle:hover { border-color: var(--ink); color: var(--ink); }

/* ---------------- SECTION SCAFFOLD ---------------- */

.sec {
  max-width: 1200px; margin: 0 auto;
  padding: clamp(4.5rem, 11vw, 9rem) var(--pad-x) 0;
}

.sec-full { padding: clamp(4.5rem, 11vw, 9rem) 0 0; }
.sec-head.in-full { max-width: 1200px; margin: 0 auto 3rem; padding: 0 var(--pad-x); }

.sec-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }

.marker { color: var(--accent); margin-bottom: 0.9rem; }

h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 700; line-height: 1.02; letter-spacing: -0.03em;
}

h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 600; line-height: 1.1; letter-spacing: -0.02em;
}

h3 {
  font-family: var(--display);
  font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em;
  margin-bottom: 0.8rem;
}

.body-copy { color: var(--ink-2); max-width: 68ch; }
.narrow { max-width: 60ch; }

.footnote { color: var(--ink-3); margin-top: 2.5rem; }

/* honest placeholder */
.ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 1px dashed var(--ink-3);
  background: repeating-linear-gradient(-45deg, transparent 0 14px, color-mix(in srgb, var(--ink) 4%, transparent) 14px 15px);
  color: var(--ink-3);
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 1rem; line-height: 1.7;
  width: 100%; height: 100%; min-height: 90px;
}

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.rv.on { opacity: 1; transform: none; }

/* ---------------- HERO ---------------- */

.hero {
  display: grid; grid-template-columns: 7fr 5fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  max-width: 1200px; margin: 0 auto;
  padding: calc(52px + clamp(2rem, 6vw, 4rem)) var(--pad-x) 0;
  min-height: 92vh; align-items: center;
}

.hero-media { aspect-ratio: 4 / 3; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.origin-layout {
  display: grid; grid-template-columns: 7fr 5fr;
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
.origin-cutout a, .origin-cutout .media-wrap { display: block; width: 100%; }
.origin-cutout img { width: 100%; height: auto; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .origin-cutout a {
    display: block;
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .origin-cutout a:hover { transform: scale(1.03) translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .origin-cutout a { transform: none; }
}
@media (max-width: 900px) {
  .origin-layout { grid-template-columns: 1fr; }
  .origin-cutout { max-width: 320px; }
}

.hero-text h1 { margin-bottom: 1.2rem; }
.hero-line1 { font-size: 1.05rem; color: var(--ink); max-width: 42ch; margin-bottom: 0.8rem; }
.hero-line2 { font-size: 1.05rem; color: var(--ink-2); max-width: 42ch; font-style: italic; }

.meta-strip {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem;
  align-items: center;
  color: var(--ink-3); border-top: 1px solid var(--line);
  margin-top: 2rem; padding-top: 1rem;
}
.meta-strip .hot { color: var(--ink); }

.meta-link { color: var(--ink-2); text-decoration: none; }
.meta-link:hover { color: var(--accent); }

/* email emphasis + copy button */
.email-link { color: var(--accent); text-decoration: none; font-weight: 500; }
.email-link:hover { opacity: 0.75; }
.meta-strip .email-link { font-size: 0.85rem; }
.email-wrap { display: inline-flex; gap: 0.55rem; align-items: center; }
.email-right { display: inline-flex; gap: 0.6rem; align-items: center; }
.copy-btn {
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.1em;
  border: 1px solid var(--line); background: none; color: var(--ink-2);
  padding: 0.22rem 0.55rem; cursor: pointer;
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.copy-btn.did { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* ---------------- ORIGIN STORY ---------------- */

.origin .sec-head { margin-bottom: 1.6rem; }
.origin-paras { max-width: 62ch; }
.origin-paras p {
  font-size: 1.08rem; line-height: 1.75; color: var(--ink);
  margin-bottom: 1.4rem;
}
.origin-paras p:last-child { margin-bottom: 0; color: var(--ink-2); }

/* ---------------- CARDS (brands) ---------------- */

.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.card {
  border: 1px solid var(--line); padding: 1.4rem 1.4rem 1.2rem;
  display: flex; flex-direction: column; gap: 0.55rem;
  transition: background 0.2s ease, border-color 0.2s ease;
  text-decoration: none; color: inherit;
  position: relative; overflow: hidden;
}
.card:hover { background: var(--bg-soft); border-color: var(--ink-3); }

.read-more {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em;
  color: var(--accent); margin-top: 0.5rem;
}

/* the pokemon-card moment: lift + one shine sweep. Desktop pointers only,
   transform/opacity only (GPU-cheap), skipped for reduced-motion. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .card { transition: background 0.2s ease, border-color 0.2s ease, transform 0.28s ease, box-shadow 0.28s ease; }
  a.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px -20px rgba(15, 15, 16, 0.28);
  }
  a.card::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.32) 48%, rgba(217, 126, 82, 0.14) 53%, transparent 62%);
    transform: translateX(-130%);
  }
  a.card:hover::after { animation: cardShine 0.75s ease 0.05s 1 both; }
  @keyframes cardShine { to { transform: translateX(130%); } }
}

.card-media { aspect-ratio: 16 / 10; margin-bottom: 0.5rem; position: relative; overflow: hidden; }
.card-media .media-wrap { position: absolute; inset: 0; }
.card-media img { object-position: top center; }
.card-media .ph { min-height: 120px; }

.card-top { display: flex; justify-content: space-between; align-items: baseline; }
.card-code { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.1em; color: var(--accent); }
.card-years { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.08em; color: var(--ink-3); }
.card h3 { margin-bottom: 0; font-size: 1.15rem; }
.card-role { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.card-desc { font-size: 0.9rem; color: var(--ink-2); flex: 1; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; margin-top: 0.4rem; }
.status {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em;
  border: 1px solid var(--line); padding: 0.18rem 0.5rem; color: var(--ink-2);
}
.status.s-active { border-color: var(--accent); color: var(--accent); }
.card-cred { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.04em; color: var(--ink-3); text-align: right; }

/* ---------------- METRIC STRIP ---------------- */

.metric-strip {
  display: flex; flex-wrap: wrap; gap: 0.9rem 2rem;
  margin: 2rem 0; color: var(--ink);
}
.metric-strip span { border-left: 2px solid var(--accent); padding-left: 0.7rem; }

/* ---------------- CLOTHING ---------------- */

.buc { margin-bottom: clamp(3rem, 6vw, 5rem); }
.buc-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1rem; justify-content: space-between; }
.buc-tag { color: var(--ink-3); }

.volume-strip {
  display: flex; gap: 1.25rem; overflow-x: auto;
  padding-bottom: 0.75rem; margin-bottom: 2rem;
  scroll-snap-type: x mandatory;
}
.volume { flex: 0 0 440px; scroll-snap-align: start; }
.volume-img { aspect-ratio: 2 / 1; background: var(--bg-soft); }
.volume-img .ph { min-height: 200px; }
.volume-label { display: flex; justify-content: space-between; margin-top: 0.5rem; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }

.process-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.process-item .media-wrap { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.process-label { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; color: var(--ink-3); margin-top: 0.5rem; text-transform: uppercase; }

.buc-gallery { margin-top: 1.25rem; }
.buc-gallery:empty { display: none; }

.floral { display: grid; grid-template-columns: 5fr 7fr; gap: 2.5rem; align-items: start; }
.floral-note { color: var(--accent); margin-top: 1rem; }
.floral-images { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.floral-images > * { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

/* ---------------- VENDING ---------------- */

.vending-body-row { display: flex; gap: 2rem; align-items: stretch; }
.vending-logo { flex: 0 0 auto; display: flex; }
.vending-logo img { height: 100%; max-height: 170px; width: auto; display: block; }

.floral-banner { margin-top: 2rem; }

.video-frame { aspect-ratio: 16 / 9; border: 1px solid var(--line); background: var(--bg-soft); }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-caption { color: var(--ink-3); margin: 0.8rem 0 2.2rem; }

.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 0.5rem; }
.photo-row > * { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* vending photos: 4:3 tiles, four across */
.vending-row { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* ---------------- CARS / REEL ---------------- */

.reel { height: 380vh; position: relative; }

.reel-sticky {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  overflow: hidden; background: var(--reel-bg);
  display: flex; align-items: center; justify-content: center;
}

.reel-media { position: absolute; inset: 0; }
.reel-media video { width: 100%; height: 100%; object-fit: cover; }
.reel-media .ph {
  border: none; background: var(--reel-bg); color: #6B6B66;
  align-items: flex-end; justify-content: flex-start;
  text-align: left; padding: 2.5rem;
}

.reel-lines { position: relative; z-index: 2; width: 100%; text-align: center; padding: 0 1.5rem; }
.reel-line {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--display);
  font-size: clamp(1.5rem, 4vw, 3rem); font-weight: 600; letter-spacing: -0.02em;
  color: #F5F4EF; text-shadow: 0 1px 24px rgba(0,0,0,0.45);
  opacity: 0; transition: opacity 0.4s ease;
}
.reel-line.live { opacity: 1; }

.reel-static .reel-line { position: static; transform: none; opacity: 1; margin: 0.8rem 0; font-size: clamp(1.2rem, 3vw, 2rem); }
.reel-static { height: auto; }
.reel-static .reel-sticky { position: static; height: auto; padding: 4rem 1.5rem; flex-direction: column; }

.gallery-wrap { padding-top: clamp(2.5rem, 5vw, 4rem); }

.masonry { columns: 3 300px; column-gap: 1.25rem; }
.m-item { break-inside: avoid; margin-bottom: 1.25rem; cursor: zoom-in; border: 0; background: none; padding: 0; width: 100%; }
.m-item img { width: 100%; }
.m-item .ph { min-height: 240px; }
.m-item:nth-child(3n) .ph { min-height: 340px; }
.m-item:nth-child(4n) .ph { min-height: 200px; }
.m-cap { font-family: var(--mono); font-size: 0.6rem; color: var(--ink-3); margin-top: 0.35rem; letter-spacing: 0.06em; text-align: left; }

/* ---------------- VIDEO GRIDS (leadership / podcast) ---------------- */

.video-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem; margin-top: 1.5rem;
}
.vg-item .vg-media { aspect-ratio: 16 / 9; border: 1px solid var(--line); }
.vg-item iframe { width: 100%; height: 100%; border: 0; }
.vg-video { background: var(--reel-bg); }
.vg-video video { width: 100%; height: 100%; object-fit: contain; }
.vg-title { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin-top: 0.5rem; }
.vg-sub { font-family: var(--mono); font-size: 0.62rem; color: var(--ink-3); letter-spacing: 0.05em; }

.broco { margin-top: 3.5rem; }
.broco .photo-row { margin-top: 1.5rem; }

.clubs-block { margin-top: 3.5rem; }
.clubs-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem; margin-top: 1.5rem; align-items: start;
}
.club-name { font-weight: 500; font-size: 1.05rem; }
.club-role { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; color: var(--accent); margin-top: 0.15rem; }
.club-line { font-size: 0.9rem; color: var(--ink-2); margin: 0.3rem 0 0.9rem; }
.club-photos { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 0.6rem; }
.club-photos .ph { min-height: 260px; }

.mcfe-block { margin-top: 3.5rem; }
.slide-strip {
  display: flex; gap: 1.25rem; overflow-x: auto;
  padding-bottom: 0.75rem; margin-top: 1.5rem;
  scroll-snap-type: x mandatory;
}
.slide-strip .s-item { flex: 0 0 360px; scroll-snap-align: start; }
.slide-strip .media-wrap { aspect-ratio: 16 / 9; border: 1px solid var(--line); }
.slide-strip .ph { min-height: 200px; }

.poster-block { margin-top: 3rem; }
.poster-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.25rem; margin-top: 1.5rem;
}
.poster-grid .p-item .media-wrap { aspect-ratio: 3 / 4; }
.poster-grid .ph { min-height: 220px; }

.status-line { color: var(--ink-3); margin-bottom: 0.5rem; }

.subscribe-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.subscribe-row a, .guest-row a {
  color: var(--ink); text-decoration: none;
  border: 1px solid var(--line); padding: 0.5rem 1rem;
}
.subscribe-row a:hover, .guest-row a:hover { border-color: var(--accent); color: var(--accent); }
.subscribe-row .dead { color: var(--ink-3); border-style: dashed; pointer-events: none; }
.guest-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }

/* ---------------- TRAVEL MAP ---------------- */

.map-layout { display: grid; grid-template-columns: 8fr 4fr; gap: 0; border: 1px solid var(--line); }

.map-canvas-wrap { position: relative; }
#travel-map { height: 500px; background: var(--bg-soft); z-index: 1; }

.map-legend {
  position: absolute; bottom: 12px; left: 12px; z-index: 20;
  display: flex; gap: 1.1rem; background: var(--bg);
  border: 1px solid var(--line); padding: 0.45rem 0.8rem; color: var(--ink-2);
}
.pin-demo { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 0.35rem; vertical-align: -1px; }
.pin-demo.been { background: var(--accent); }
.pin-demo.planned { border: 2px dashed var(--accent); }

.pin-been {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent); cursor: pointer;
}
.pin-planned {
  width: 14px; height: 14px; border-radius: 50%;
  background: transparent; border: 2px dashed var(--accent); cursor: pointer;
}

.map-panel { border-left: 1px solid var(--line); padding: 1.5rem; min-height: 200px; }
.map-panel-hint { color: var(--ink-3); }
.map-panel h3 { margin-bottom: 0.3rem; }
.panel-status { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; color: var(--accent); text-transform: uppercase; }
.panel-rec { font-size: 0.9rem; color: var(--ink-2); margin-top: 0.9rem; }
.panel-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 1rem; }
.panel-photos > * { aspect-ratio: 1; object-fit: cover; width: 100%; cursor: zoom-in; }
.sample-tag { font-family: var(--mono); font-size: 0.58rem; color: var(--ink-3); border: 1px dashed var(--ink-3); padding: 0.1rem 0.4rem; margin-left: 0.5rem; vertical-align: 2px; }

.suggest { max-width: 720px; margin-top: 3rem; }
.suggest-head { color: var(--accent); margin-bottom: 1rem; }

#suggest-form { display: grid; grid-template-columns: 1fr 2fr; gap: 0.8rem; }
#suggest-form input {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em;
  background: transparent; border: 1px solid var(--line); color: var(--ink);
  padding: 0.75rem 0.9rem;
}
#suggest-form input::placeholder { color: var(--ink-3); }
#suggest-form input:focus { border-color: var(--accent); outline: none; }
#suggest-form input[name="from"] { grid-column: 1 / 2; }
#suggest-form button {
  grid-column: 2 / 3; justify-self: start;
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
  padding: 0.75rem 1.6rem; cursor: pointer; font-size: 0.72rem; letter-spacing: 0.1em;
}
#suggest-form button:hover { background: var(--accent); border-color: var(--accent); }
.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.form-msg { color: var(--accent); margin-top: 0.8rem; min-height: 1.2em; }

/* ---------------- CLIMBING ---------------- */

.climb-layout {
  display: grid; grid-template-columns: 7fr 5fr;
  gap: 3rem; align-items: start; margin-bottom: 2.5rem;
}

.timeline { list-style: none; margin-top: 2rem; }
.timeline li {
  display: flex; gap: 1.4rem;
  border-top: 1px solid var(--line); padding: 0.8rem 0;
  color: var(--ink-2); text-transform: none; letter-spacing: 0.03em; font-size: 0.75rem;
}
.timeline .tl-tag {
  color: var(--accent); flex: 0 0 6.5em;
  text-transform: uppercase; letter-spacing: 0.1em;
}

.prd-card { border: 1px solid var(--line); padding: 1.5rem; }
.prd-card .prd-title {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: 0.9rem;
}
.prd-card .prd-body { font-size: 0.9rem; color: var(--ink-2); }
.prd-card .prd-status {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em;
  color: var(--ink-3); border: 1px solid var(--line);
  display: inline-block; padding: 0.2rem 0.55rem; margin-top: 1.1rem;
}

/* ---------------- INTERESTS ---------------- */

.int-block { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.clip-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.5rem; }
.clip-item .media-wrap { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.clip-why { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.06em; color: var(--ink-3); margin-top: 0.5rem; text-transform: uppercase; }

.building-stack { display: flex; flex-direction: column; gap: 1.25rem; }
.building-stack .media-wrap { aspect-ratio: 21 / 9; width: 100%; object-fit: cover; }

.nature-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem; margin-top: 1.5rem;
}
.nature-grid .n-item .media-wrap { aspect-ratio: 4 / 3; }
.nature-grid .ph { min-height: 170px; }

.panel-nature-label { color: var(--accent); margin-top: 1.3rem; }

.int-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 3rem 2.5rem; }
.int-cols.two { grid-template-columns: 1fr 1fr; align-items: start; }
.int-col-right .int-block { margin-bottom: 2.5rem; }
@media (max-width: 900px) {
  .int-cols.two { grid-template-columns: 1fr; }
}

.tech-list { list-style: none; }
.tech-list li { border-top: 1px solid var(--line); padding: 0.9rem 0; }
.tech-list .t-name { font-weight: 500; }
.tech-list .t-line { color: var(--ink-2); font-size: 0.9rem; }

.books-covers {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 0.8rem; margin-bottom: 1.2rem;
}
.books-covers .cover-item {
  border: 0; padding: 0; background: none; cursor: zoom-in;
  aspect-ratio: 2 / 3;
}

.book-list { list-style: none; }
.book-list li { display: flex; gap: 1.2rem; border-top: 1px solid var(--line); padding: 0.55rem 0; color: var(--ink-2); text-transform: none; letter-spacing: 0.02em; font-size: 0.75rem; }
.book-list .b-year { color: var(--accent); flex: 0 0 3em; }

/* ---------------- CONNECT ---------------- */

#connect { padding-bottom: 2rem; }

.connect-sub { margin: -1.5rem 0 1.5rem; }

.exploring {
  color: var(--accent); max-width: 68ch;
  margin: 0 0 2.5rem; line-height: 1.9;
}

.connect-row { display: grid; grid-template-columns: 7fr 5fr; gap: 3rem; align-items: center; }

.connect-links { display: flex; flex-direction: column; gap: 0.9rem; }
.connect-links a, .connect-links .link-row {
  text-decoration: none; color: var(--ink); font-size: 0.8rem;
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--line); padding-bottom: 0.7rem; max-width: 480px;
}
.connect-links a span:last-child { color: var(--ink-3); }
.connect-links a:hover { color: var(--accent); }
.connect-links .dead { color: var(--ink-3); pointer-events: none; }

.portrait { max-width: 280px; aspect-ratio: 4 / 5; justify-self: end; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }

.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  border-top: 1px solid var(--line); margin-top: clamp(3rem, 7vw, 6rem);
  padding: 1.2rem 0 1.4rem; color: var(--ink-3);
}

/* ---------------- ARTICLE PAGES (project.html) ---------------- */

.article { max-width: 860px; padding-top: calc(52px + clamp(2.5rem, 6vw, 4rem)); position: relative; z-index: 1; }
.a-title-row { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.a-title-row h1 { flex: 1 1 auto; min-width: 0; }
.article-logo { height: clamp(2.4rem, 5vw, 3.8rem); width: auto; display: block; }
.article-watermark {
  position: fixed; right: -6vw; bottom: -8vh;
  width: min(55vw, 680px); height: auto;
  opacity: 0.06; pointer-events: none; z-index: 0;
}
.article h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600; line-height: 1.05; letter-spacing: -0.02em;
}
.article .meta-strip { margin-top: 1.4rem; }
.article-hero { margin: 0 0 2.5rem; }
.article-hero img { width: 100%; max-height: 480px; object-fit: cover; }
.article-body p {
  font-size: 1.08rem; line-height: 1.75; color: var(--ink);
  max-width: 62ch; margin-bottom: 1.4rem;
}
.article-link { margin: 0.5rem 0 1rem; }
.article-link a {
  color: var(--ink); text-decoration: none;
  border: 1px solid var(--line); padding: 0.55rem 1.1rem; display: inline-block;
}
.article-link a:hover { border-color: var(--accent); color: var(--accent); }
.article-gallery { columns: 2 320px; column-gap: 1.25rem; margin-top: 2.5rem; }
.article-gallery .g-item {
  display: block; width: 100%; break-inside: avoid; margin-bottom: 1.25rem;
  border: 0; padding: 0; background: none; cursor: zoom-in;
}
.article-gallery img { width: 100%; display: block; }
.article-gallery .g-video { break-inside: avoid; margin-bottom: 1.25rem; background: var(--reel-bg); }
.article-gallery video { width: 100%; display: block; }
.article .video-frame { margin-bottom: 0.8rem; }
.article-link a + a { margin-left: 0.8rem; }
.article-back { margin-top: 3.5rem; padding-bottom: 3rem; }
.article-back a { color: var(--ink-2); text-decoration: none; }
.article-back a:hover { color: var(--accent); }

/* ---------------- TRAVEL PAGE ---------------- */

.travel-page { padding-top: calc(52px + clamp(2.5rem, 6vw, 4rem)); }
.travel-page h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600; line-height: 1.05; letter-spacing: -0.02em;
}
.travel-nature { margin-top: clamp(3rem, 6vw, 5rem); }

/* ---------------- LIGHTBOX ---------------- */

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 10, 10, 0.93);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 3rem 1.5rem;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 80vh; object-fit: contain; }
.lightbox-cap { color: #B5B4AE; margin-top: 1rem; }
.lightbox-close {
  position: absolute; top: 1.2rem; right: 1.5rem;
  background: none; border: 1px solid #4A4A46; color: #D8D7D1;
  padding: 0.45rem 0.9rem; cursor: pointer; font-size: 0.68rem; letter-spacing: 0.1em;
}
.lightbox-close:hover { border-color: #D8D7D1; }

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: calc(52px + 1.5rem); }
  .hero-media { aspect-ratio: 3 / 2; }
  .floral { grid-template-columns: 1fr; }
  .map-layout { grid-template-columns: 1fr; }
  .map-panel { border-left: none; border-top: 1px solid var(--line); }
  #travel-map { height: 380px; }
  .connect-row { grid-template-columns: 1fr; }
  .portrait { justify-self: start; }
  .climb-layout { grid-template-columns: 1fr; gap: 2rem; }
  .process-row { grid-template-columns: 1fr; }
  .photo-row { grid-template-columns: 1fr 1fr; }
  .vending-body-row { flex-direction: column; gap: 1.2rem; }
  .vending-logo img { max-height: 80px; }
  .clip-row { grid-template-columns: 1fr; }
  #suggest-form { grid-template-columns: 1fr; }
  #suggest-form input[name="from"], #suggest-form button { grid-column: 1 / 2; }
}

@media (max-width: 560px) {
  .photo-row { grid-template-columns: 1fr; }
  .volume { flex-basis: 88vw; }
}

/* ---------------- MOTION ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .rv { opacity: 1; transform: none; }
}
