/* ============================================================
   JMDWJR Portfolio — page-level styles
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  background: var(--jmdw-cream);
  color: var(--jmdw-ink);
  font-family: var(--font-sans);
  overflow-x: hidden;
}
body { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* Hide scrollbars inside carousels */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

/* ---------- Small-label utilities ---------- */
.eyebrow {
  font-family: var(--font-sans); font-weight: 500;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--jmdw-teal);
}
.micro {
  font-family: var(--font-sans); font-weight: 500;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--jmdw-teal);
}

/* ---------- Section helpers ---------- */
.section { padding: 0 48px; position: relative; }
.divider { height: 1px; background: var(--jmdw-ink); border: 0; width: 100%; margin: 0; }
.divider--hair { background: var(--hairline); }

/* ---------- Paper grain overlay ---------- */
.paper-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("assets/paper-texture.jpg");
  background-size: cover;
  mix-blend-mode: multiply;
  opacity: 0.10;
}

/* ============================================================
   Media — every project thumb renders through these three
   ============================================================ */
.media__img,
.media__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(.85) contrast(1.05);
  transition: filter 600ms var(--ease-out), transform 700ms var(--ease-out);
}
.media__img--contain {
  object-fit: contain;
  padding: 14%;
  filter: none;
  background: var(--jmdw-cream-deep);
}
/* Portrait media inside a landscape frame — show the whole piece, letterboxed. */
.media__video--contain,
.reel__img-wrap .media__img--contain {
  object-fit: contain;
  padding: 0;
  background: var(--jmdw-cream-deep);
}
.tile:hover .media__img,
.tile:hover .media__video { filter: grayscale(0) contrast(1.02); transform: scale(1.03); }
.tile:hover .media__img--contain { transform: scale(1.04); }
.reel__img-wrap .media__img,
.reel__img-wrap .media__video { filter: grayscale(0) contrast(1.02); }

.media__badge {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  font-family: var(--font-sans); font-weight: 500;
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 4px 8px;
  background: rgba(0, 0, 3, 0.62);
  color: var(--jmdw-cream);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Two loops sharing one tile — for a project that shipped as more than one piece. */
.media__pair {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--jmdw-ink);
}
.media__pair-cell { position: relative; overflow: hidden; background: var(--jmdw-cream-deep); }
.media__pair-cell .media__video { position: absolute; inset: 0; }
.media__pair-label {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  font-family: var(--font-sans); font-weight: 500;
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 4px 8px;
  background: rgba(0, 0, 3, 0.62);
  color: var(--jmdw-cream);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.media__type {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 28px;
  background: var(--jmdw-cream-deep);
  overflow: hidden;
}
.media__type.ink  { background: var(--jmdw-ink);  color: var(--jmdw-cream); }
.media__type.teal { background: var(--jmdw-teal); color: var(--jmdw-cream); }
.media__type.gold { background: var(--jmdw-gold); color: var(--jmdw-ink); }
.media__type.red  { background: #b1241a;          color: var(--jmdw-cream); }
.media__type-meta {
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--font-sans); font-weight: 500;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0.85;
}
.media__type-mark {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.88;
  /* Sized against the tile, not the viewport — a col-3 tile and a col-12 tile
     must not receive the same 8vw mark, or longer marks (NAMI) run off the edge. */
  font-size: clamp(40px, 26cqi, 150px);
  margin-top: auto;
  white-space: nowrap;
}

/* ---------- Top nav (fixed) ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: grid; grid-template-columns: 1fr auto;
  padding: 18px 48px;
  z-index: 80;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 246, 229, 0.65);
  border-bottom: 1px solid transparent;
  transition: border-color 220ms var(--ease-out), background 220ms;
}
.nav--scrolled { border-bottom-color: var(--hairline); background: rgba(255, 246, 229, 0.84); }
.nav__logo {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 20px;
  line-height: 1;
  color: var(--jmdw-ink);
  display: inline-flex; align-items: baseline;
}
.nav__logo sup { font-size: 0.45em; color: var(--jmdw-gold); margin-left: 2px; }
.nav__tabs {
  display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
  justify-content: flex-end;
}
.nav__tab {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  color: var(--jmdw-ink);
  cursor: pointer;
  position: relative;
  padding: 6px 0;
  background: transparent; border: 0;
  white-space: nowrap;
}
.nav__tab::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 2px;
  height: 1px; background: var(--jmdw-ink);
  transition: right 320ms var(--ease-out);
}
.nav__tab:hover::after { right: 0; }
.nav__tab--active::after { right: 0; }
.nav__tab--accent { color: var(--jmdw-gold); }
.nav__tab--accent::after { background: var(--jmdw-gold); }

/* Menu toggle — phone only (shown in the 720px block). */
.nav__burger {
  display: none;
  width: 44px; height: 44px;
  margin: -8px -8px -8px 0;
  padding: 0;
  background: transparent; border: 0; cursor: pointer;
  place-items: center; align-content: center; gap: 6px;
}
.nav__burger-bar {
  display: block; width: 22px; height: 1.5px;
  background: var(--jmdw-ink);
  transition: transform 260ms var(--ease-out), opacity 200ms;
}
.nav--open .nav__burger-bar:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav--open .nav__burger-bar:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 144px 48px 64px;
  overflow: hidden;
}
.hero__meta {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 24px; padding-bottom: 48px; position: relative;
}
.hero__meta-avail { display: flex; align-items: center; gap: 10px; }
.hero__dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--jmdw-gold); display: inline-block;
}
.hero__name {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0em;
  font-size: clamp(56px, 10.5vw, 168px);
  line-height: 0.9;
  margin: 0;
  color: var(--jmdw-ink);
  position: relative;
}
.hero__name-line { display: block; }
.hero__name sup {
  font-size: 0.18em; vertical-align: super;
  color: var(--jmdw-gold); letter-spacing: 0; margin-left: 0.06em;
}
.hero__lockup-meta {
  margin-top: 28px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px; align-items: end;
  padding-top: 18px; border-top: 1px solid var(--jmdw-ink);
}
.hero__statement {
  font-family: var(--font-sans);
  font-size: 17px; line-height: 1.55;
  margin: 0; max-width: 46ch; color: var(--jmdw-ink);
}
.hero__location {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 22px;
  /* Two-line uppercase display type carrying an underlined link: at 1.05 the
     rule under line 1 lands on the caps of line 2 ("BOUNDLESS" over "DESIGNS").
     The leading has to open the gap — padding-bottom on an inline <a> overlaps
     the next line rather than pushing it down. */
  line-height: 1.5;
  margin-top: 8px;
}
.hero__bd-link {
  border-bottom: 1px solid var(--jmdw-ink);
  padding-bottom: 2px;
}

/* ---------- Highlight carousel ---------- */
.reel {
  position: relative;
  padding: 64px 0 96px;
  border-top: 1px solid var(--jmdw-ink);
}
.reel__header {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: end; padding: 28px 48px 24px;
  gap: 32px;
}
.reel__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0em;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.92;
  margin: 14px 0 0;
}
.reel__lede {
  font-family: var(--font-sans); font-size: 14px; line-height: 1.55;
  max-width: 44ch; justify-self: end;
}
.reel__viewport { width: 100%; overflow: hidden; position: relative; }
.reel__track {
  display: flex; will-change: transform;
  transition: transform 900ms var(--ease-in-out);
}
.reel__slide {
  flex: 0 0 100%; padding: 0 48px;
  display: grid; grid-template-columns: 6fr 5fr;
  gap: 40px; align-items: stretch;
  /* Flex items default to min-width:auto, so a long unbreakable title
     ("Environmental") can push a slide wider than its 100% basis and throw every
     following slide out of alignment. */
  min-width: 0;
}
.reel__copy, .reel__copy-top { min-width: 0; }
.reel__project-title { overflow-wrap: break-word; }
.reel__img-wrap {
  position: relative; overflow: hidden;
  /* 16:10 sits closest to the featured set once the sources are cropped to their
     real content (1.44 – 2.01), so the mat stays thin on every slide. */
  aspect-ratio: 16 / 10;
  container-type: inline-size;
  /* Width must be definite so `aspect-ratio` derives the HEIGHT from it. Left to
     stretch, the grid item takes its height from the row and the ratio then
     computes a width wider than the column, pushing media past the slide edge. */
  width: 100%;
  min-width: 0;
  align-self: start;
}
.reel__img-wrap .media__img,
.reel__img-wrap .media__video { object-fit: contain; filter: none; }
.reel__img-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  color: var(--jmdw-cream);
  background: linear-gradient(to top, rgba(0,0,3,.62) 0%, rgba(0,0,3,0) 45%);
  pointer-events: none;
}
.reel__img-cap {
  font-family: var(--font-display); font-size: 14px; letter-spacing: -.02em;
  text-transform: uppercase; text-align: right;
}
.reel__img-overlay .micro { color: rgba(255, 246, 229, 0.82); }
.reel__copy {
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 24px;
}
.reel__copy-top { display: flex; flex-direction: column; gap: 16px; }
.reel__num {
  font-family: var(--font-display);
  font-size: 14px; letter-spacing: -.02em;
  color: var(--jmdw-teal);
}
.reel__project-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.94;
  font-size: clamp(40px, 4.4vw, 68px);
  margin: 0; color: var(--jmdw-ink);
}
.reel__project-title em { font-style: normal; color: var(--jmdw-gold); }
.reel__project-desc {
  font-family: var(--font-sans);
  font-size: 15px; line-height: 1.6;
  margin: 0; color: var(--jmdw-ink);
  max-width: 48ch;
}
.reel__deliverables {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding-top: 16px; border-top: 1px solid var(--hairline);
}
.tag {
  font-family: var(--font-sans); font-weight: 500;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 5px 10px; border: 1px solid var(--hairline-strong);
  color: var(--jmdw-ink); border-radius: 0;
}
.reel__controls {
  padding: 24px 48px 0;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
}
.reel__dots { display: flex; gap: 8px; align-items: center; }
.reel__dot {
  width: 24px; height: 2px; background: var(--hairline);
  border: 0; padding: 0; cursor: pointer;
  transition: background 240ms var(--ease-out);
  position: relative; overflow: hidden;
}
.reel__dot::after {
  content: ""; position: absolute; inset: 0; background: var(--jmdw-ink);
  transform-origin: left center; transform: scaleX(0);
}
.reel__dot--active::after { animation: reel-progress 7200ms linear forwards; }
@keyframes reel-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.reel__counter { font-family: var(--font-display); font-size: 14px; letter-spacing: -.02em; }
.reel__counter span { color: rgba(0,0,3,.35); }

.reel__nav-btns { display: flex; gap: 4px; }
.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--jmdw-ink);
  background: transparent;
  color: var(--jmdw-ink);
  font-family: var(--font-display); font-size: 16px;
  cursor: pointer;
  transition: background 80ms, color 80ms;
}
.icon-btn:hover { background: var(--jmdw-ink); color: var(--jmdw-cream); }

/* ---------- Personality / About ---------- */
.about { padding: 144px 48px; position: relative; }
.about__grid {
  display: grid; grid-template-columns: 5fr 4fr 3fr;
  gap: 56px; align-items: start;
}
.about__intro-tag {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 24px;
}
.about__intro-tag .dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--jmdw-gold);
}
.about__heading {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0em;
  line-height: 0.94;
  font-size: clamp(48px, 6.5vw, 108px);
  margin: 0 0 32px;
  color: var(--jmdw-ink);
}
.about__heading em { font-style: normal; color: var(--jmdw-gold); }
.about__quote {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.018em;
  line-height: 1.05;
  font-size: clamp(22px, 2vw, 30px);
  margin: 32px 0;
  color: var(--jmdw-teal);
  max-width: 24ch;
}
.about__quote::before { content: "“"; color: var(--jmdw-gold); margin-right: 4px; }
.about__quote::after  { content: "”"; color: var(--jmdw-gold); margin-left: 4px; }
.about__body { font-size: 16px; line-height: 1.65; max-width: 52ch; }
.about__body p { margin: 0 0 14px; }
.about__photo {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
.about__photo-caption {
  display: flex; justify-content: space-between; gap: 12px;
  padding-top: 10px; border-top: 1px solid var(--jmdw-ink);
  margin-top: 10px;
}
.about__photo-plate {
  font-family: var(--font-display); font-size: 12px;
  letter-spacing: -.02em; color: var(--jmdw-ink);
}
.about__specs { display: flex; flex-direction: column; gap: 20px; }
.about__spec-row {
  display: grid; grid-template-columns: 32px 1fr;
  gap: 8px; padding: 12px 0;
  border-top: 1px solid var(--hairline);
}
.about__spec-row:first-of-type { border-top: 1px solid var(--jmdw-ink); }
.about__spec-num {
  font-family: var(--font-display);
  font-size: 12px; letter-spacing: -.02em;
  color: var(--jmdw-gold);
}
.about__spec-label {
  font-family: var(--font-sans); font-weight: 500;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--jmdw-teal); margin-bottom: 4px;
}
.about__spec-value {
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: -.015em;
  font-size: 18px; line-height: 1.15;
}
.about__chapter {
  margin-top: 24px; padding: 20px;
  border: 1px solid var(--jmdw-ink);
  background: var(--jmdw-cream-soft);
}
.about__chapter-title {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: -.02em; font-size: 22px; line-height: 1.1;
  margin-bottom: 8px;
}
.about__chapter-body { font-family: var(--font-sans); font-size: 13px; line-height: 1.5; }

/* Specialization list */
.spec-list { border-top: 1px solid var(--jmdw-ink); }
.spec-list__row {
  display: grid; grid-template-columns: 26px 1fr;
  gap: 10px; align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
}
.spec-list__num { font-family: var(--font-display); font-size: 10px; color: var(--jmdw-gold); }
.spec-list__name {
  display: block;
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: -.015em; font-size: 14px; line-height: 1.15;
}
.spec-list__note {
  display: block; margin-top: 3px;
  font-family: var(--font-sans); font-size: 11.5px; line-height: 1.4;
  color: var(--fg-mute);
}

/* ---------- Resume CTA ---------- */
.resume-cta {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 32px;
  padding: 16px 22px;
  background: var(--jmdw-ink);
  color: var(--jmdw-cream);
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: .06em;
  font-size: 12px; border: 1px solid var(--jmdw-ink);
  cursor: pointer; transition: background 80ms, color 80ms;
}
.resume-cta:hover { background: var(--jmdw-gold); border-color: var(--jmdw-gold); color: var(--jmdw-ink); }
.resume-cta svg { display: block; }

/* ---------- Career ---------- */
.career { padding: 0 48px 144px; position: relative; }
.career__header {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: end; gap: 32px;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--jmdw-ink);
}
.career__heading {
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: 0em;
  line-height: 0.94;
  font-size: clamp(44px, 6vw, 96px);
  margin: 14px 0 0;
}
.career__lede {
  max-width: 44ch; justify-self: end;
  font-size: 15px; line-height: 1.6; margin: 0;
}
.career__list { list-style: none; margin: 0; padding: 0; }
.career__row {
  display: grid;
  grid-template-columns: 40px 170px 1.1fr 0.9fr 1.4fr;
  gap: 24px; align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
  transition: background 240ms var(--ease-out), padding 240ms var(--ease-out);
}
.career__row:hover { background: var(--jmdw-cream-soft); }
.career__num { font-family: var(--font-display); font-size: 12px; color: var(--jmdw-gold); }
.career__span {
  font-family: var(--font-sans); font-weight: 500;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--jmdw-teal);
}
.career__role {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: -.015em; font-size: clamp(20px, 2vw, 30px); line-height: 1.05;
}
.career__org {
  font-family: var(--font-sans); font-weight: 600;
  font-size: 14px; line-height: 1.35;
}
.career__note {
  font-family: var(--font-sans); font-size: 13px; line-height: 1.5;
  color: var(--fg-mute);
}

/* ---------- Gallery ---------- */
.gallery { padding: 0 48px 144px; }
.gallery__header {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: end; gap: 32px;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--jmdw-ink);
}
.gallery__heading {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0em;
  line-height: 0.94;
  font-size: clamp(48px, 7vw, 120px);
  margin: 0;
}
.gallery__intro {
  max-width: 44ch; justify-self: end;
  font-size: 15px; line-height: 1.6; margin: 0;
}
.gallery__footer {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--jmdw-ink);
}
.gallery__request {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: .06em; font-size: 12px;
  padding-bottom: 3px; border-bottom: 1px solid var(--jmdw-ink);
  display: inline-flex; align-items: center; gap: 8px;
}

.collage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  padding-top: 48px;
}
.tile { display: block; cursor: pointer; }
.tile__thumb {
  position: relative; overflow: hidden;
  background: var(--jmdw-cream-deep);
  width: 100%;
  container-type: inline-size;
  /* Set per tile from the asset's real aspect ratio, so nothing centre-crops. */
  aspect-ratio: var(--tile-ar, 4 / 3);
}
.tile__hr { height: 1px; background: var(--jmdw-ink); margin: 12px 0 8px; }
.tile__meta {
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--font-sans); font-weight: 500;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--jmdw-teal);
}
.tile__title {
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: 0.02em;
  font-size: 22px; line-height: 1.1;
  margin: 6px 0 8px;
}
.tile__desc {
  font-family: var(--font-sans);
  font-size: 13px; line-height: 1.55;
  color: var(--jmdw-ink);
  max-width: 52ch;
  margin: 0;
}

/* tile sizes — 12 col grid */
.collage > .col-12 { grid-column: span 12; }
.collage > .col-9  { grid-column: span 9; }
.collage > .col-8  { grid-column: span 8; }
.collage > .col-7  { grid-column: span 7; }
.collage > .col-6  { grid-column: span 6; }
.collage > .col-5  { grid-column: span 5; }
.collage > .col-4  { grid-column: span 4; }
.collage > .col-3  { grid-column: span 3; }

/* Tile heights come from `--tile-ar` (see .tile__thumb). Tiles align to the top of
   their row so differing natural heights read as a collage, not as broken rows. */
.collage > .tile,
.collage > .proj { align-self: start; }

/* ============================================================
   Letterbox plates
   Anything that does not fill its frame sits on black or white, chosen per asset:
   opaque art matches its own ground so the plate disappears; transparent art gets
   the opposite so the mark stays legible.
   ============================================================ */
.pad-black { background: #000; }
.pad-white { background: #fff; }
.media__img--fit,
.pad-black .lb__media,
.pad-white .lb__media { object-fit: contain; }

/* ---------- Project slot ---------- */
.proj {
  display: block; width: 100%;
  margin: 0; padding: 0;
  background: none; border: 0;
  font: inherit; color: inherit; text-align: left;
  cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.proj__thumb {
  position: relative; display: block; overflow: hidden;
  width: 100%;
  aspect-ratio: var(--tile-ar, 4 / 3);
  container-type: inline-size;
}
.proj__count {
  position: absolute; left: 12px; bottom: 12px; z-index: 3;
  font-family: var(--font-sans); font-weight: 500;
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 5px 9px;
  background: rgba(0, 0, 3, 0.66);
  color: var(--jmdw-cream);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.proj .tile__hr { display: block; height: 1px; background: var(--jmdw-ink); margin: 12px 0 8px; }
.proj .tile__meta { display: flex; justify-content: space-between; gap: 12px; }
.proj__title {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: 0.02em;
  font-size: clamp(24px, 2.2vw, 34px); line-height: 1.06;
  margin: 8px 0 10px;
}
.proj__title em { font-style: normal; color: var(--jmdw-gold); }
.proj .tile__desc { display: block; max-width: 54ch; }
.proj__cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; padding-bottom: 3px;
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 12px;
  border-bottom: 1px solid var(--jmdw-ink);
}
.proj__cta span { color: var(--jmdw-gold); transition: transform 320ms var(--ease-out); }
.proj:hover .proj__cta span { transform: translateX(4px); }
.proj:hover .media__img,
.proj:hover .media__video { filter: grayscale(0) contrast(1.02); transform: scale(1.03); }
.proj:focus-visible { outline: 2px solid var(--jmdw-gold); outline-offset: 6px; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; }
.lb__scrim { position: absolute; inset: 0; background: rgba(0, 0, 3, 0.92); }
.lb__chrome {
  position: relative; z-index: 1;
  width: min(1400px, 94vw); height: min(92vh, 1000px);
  display: grid; grid-template-rows: auto 1fr auto auto;
  gap: 14px;
  color: var(--jmdw-cream);
}
.lb__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.lb__head .micro { color: rgba(255, 246, 229, 0.6); }
.lb__title {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.02em; font-size: clamp(24px, 2.4vw, 38px); line-height: 1.05;
  margin-top: 6px;
}
.lb__title em { font-style: normal; color: var(--jmdw-gold); }
.lb__close {
  width: 40px; height: 40px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: transparent; border: 1px solid rgba(255, 246, 229, 0.4);
  color: var(--jmdw-cream); font-size: 15px; cursor: pointer;
  transition: background 80ms, color 80ms;
}
.lb__close:hover { background: var(--jmdw-cream); color: var(--jmdw-ink); }

.lb__stage { position: relative; overflow: hidden; min-height: 0; }
.lb__media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  filter: none;
}
.lb__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: rgba(0, 0, 3, 0.55); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-family: var(--font-display); font-size: 18px; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background 120ms;
}
.lb__arrow:hover { background: var(--jmdw-gold); color: var(--jmdw-ink); }
.lb__arrow--prev { left: 14px; }
.lb__arrow--next { right: 14px; }

.lb__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.lb__group {
  font-family: var(--font-sans); font-weight: 500;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255, 246, 229, 0.72);
}
.lb__counter { font-family: var(--font-display); font-size: 14px; letter-spacing: -.02em; }
.lb__counter span { color: rgba(255, 246, 229, 0.4); }

.lb__rail { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.lb__thumb {
  flex: 0 0 auto; width: 74px; height: 52px;
  padding: 0; border: 1px solid transparent; cursor: pointer;
  opacity: 0.5; transition: opacity 160ms, border-color 160ms;
  overflow: hidden;
}
.lb__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.lb__thumb:hover { opacity: 0.85; }
.lb__thumb.is-active { opacity: 1; border-color: var(--jmdw-gold); }

/* ---------- Boundless tease ---------- */
.bd-tease {
  background: var(--bd-bg);
  color: var(--bd-fg);
  padding: 144px 48px;
  position: relative; overflow: hidden;
}
/* Single column since the logo panel came out — the typographic mark carries it. */
.bd-tease__grid {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 64px; align-items: center;
}
.bd-tease__meta {
  display: flex; gap: 40px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 20px;
  border-top: 1px solid rgba(239, 233, 216, 0.2);
  font-family: var(--font-sans); font-weight: 500;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(239, 233, 216, 0.62);
}
.bd-tease__eyebrow {
  font-family: var(--font-sans); font-weight: 500;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(239,233,216,0.62);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 32px;
}
.bd-tease__eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 999px;
  background: var(--bd-accent);
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.bd-tease__mark {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.88;
  font-size: clamp(64px, 12vw, 200px);
  margin: 0;
}
.bd-tease__mark span { color: var(--bd-accent); }
.bd-tease__body {
  font-family: var(--font-sans);
  font-size: 17px; line-height: 1.65;
  color: var(--bd-fg);
  margin: 0 0 32px;
  max-width: 44ch;
}
.bd-tease__cta {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 13px;
  padding: 16px 22px;
  background: var(--bd-fg); color: var(--bd-bg);
  border: 0; cursor: pointer;
  transition: background 80ms;
}
.bd-tease__cta:hover { background: var(--bd-accent); }
.bd-tease__viz {
  position: relative;
  height: clamp(280px, 36vw, 540px);
  overflow: hidden;
}
.bd-tease__viz .media__video { filter: grayscale(.2) brightness(.78) contrast(1.05); }
.bd-tease__viz--mark { display: grid; place-items: center; }
.bd-tease__viz--mark img {
  width: min(72%, 460px); height: auto; object-fit: contain;
  position: relative; z-index: 1;
}
.bd-tease__viz::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, var(--bd-bg) 98%);
  pointer-events: none;
}
.bd-tease__viz-meta {
  position: absolute; left: 16px; bottom: 16px; right: 16px; z-index: 2;
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--font-sans); font-weight: 500;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(239,233,216,0.7);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--jmdw-cream);
  padding: 64px 48px 32px;
  border-top: 1px solid var(--jmdw-ink);
}
.footer__top {
  display: grid; grid-template-columns: 5fr 2fr 2fr 3fr;
  gap: 48px; padding-bottom: 56px;
}
.footer__mark {
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: -0.01em;
  font-size: clamp(56px, 8vw, 120px); line-height: 0.9;
  margin: 0 0 24px;
}
.footer__mark sup { font-size: 0.22em; vertical-align: super; color: var(--jmdw-gold); }
.footer__tagline {
  font-family: var(--font-sans); font-size: 14px; line-height: 1.55;
  max-width: 38ch;
}
.footer__col-label {
  font-family: var(--font-sans); font-weight: 500;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--jmdw-teal); margin-bottom: 14px;
}
.footer__link {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0;
  font-family: var(--font-sans); font-size: 14px;
  color: var(--jmdw-ink); cursor: pointer;
  position: relative;
}
.footer__link svg { color: var(--jmdw-ink); transition: color 200ms; flex: 0 0 auto; }
.footer__link span.label { transition: color 200ms; position: relative; padding-bottom: 1px; }
.footer__link span.label::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--jmdw-gold);
  transition: right 320ms var(--ease-out);
}
.footer__link:hover span.label::after { right: 0; }
.footer__link:hover svg { color: var(--jmdw-gold); }
.footer__bottom {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  padding-top: 24px;
  border-top: 1px solid var(--jmdw-ink);
  font-family: var(--font-sans); font-weight: 500;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--jmdw-teal);
}
.footer__bottom > :nth-child(2) { text-align: center; }
.footer__bottom > :nth-child(3) { text-align: right; }

/* ---------- Responsive ---------- */
/* Laptop / half-screen window. The 12-col collage makes col-3 tiles ~200px here,
   which is too small to carry a title and description — drop to a 6-col grid so
   the smallest tile is a usable half-width. */
@media (max-width: 1100px) and (min-width: 721px) {
  .section, .hero, .about, .career, .gallery, .bd-tease, .footer,
  .reel__header, .reel__slide, .reel__controls { padding-left: 32px; padding-right: 32px; }
  .nav { padding: 16px 32px; }
  /* `dense` backfills the half-row gaps left when a full-width tile can't fit
     the remainder of a row. */
  .collage { grid-template-columns: repeat(6, 1fr); gap: 20px; grid-auto-flow: row dense; }
  .collage > .col-12, .collage > .col-8, .collage > .col-7 { grid-column: span 6; }
  .collage > .col-6, .collage > .col-5, .collage > .col-4, .collage > .col-3 { grid-column: span 3; }
}

@media (max-width: 1100px) {
  .reel__slide { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr 1fr; }
  .about__photo-col { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .bd-tease__grid { grid-template-columns: 1fr; }
  .career__row { grid-template-columns: 32px 150px 1fr 1fr; }
  .career__note { grid-column: 3 / -1; }
}
@media (max-width: 720px) {
  .section, .hero, .about, .career, .gallery, .bd-tease, .footer,
  .reel__header, .reel__slide, .reel__controls { padding-left: 20px; padding-right: 20px; }

  /* ---------- Nav: collapse to a toggle ---------- */
  .nav { padding: 14px 20px; align-items: center; }
  .nav__burger { display: grid; }
  .nav__tabs {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; gap: 0;
    /* Full-bleed rows, not shrink-to-fit — the desktop rule centres items, which
       leaves each divider a different width. */
    align-items: stretch; justify-content: flex-start;
    padding: 4px 20px 12px;
    /* Opaque: the hero lockup reads straight through a translucent panel. */
    background: var(--jmdw-cream);
    border-bottom: 1px solid var(--hairline);
    max-height: calc(100vh - 100%); overflow-y: auto;
  }
  .nav__tabs--open { display: flex; }
  .nav__tab {
    font-size: 15px; letter-spacing: 0.05em;
    min-height: 52px; display: flex; align-items: center;
    padding: 0; border-bottom: 1px solid var(--hairline);
  }
  .nav__tab:last-child { border-bottom: 0; }
  /* The sliding underline is a pointer affordance; it reads as noise in a list. */
  .nav__tab::after { display: none; }
  .nav__tab--active { color: var(--jmdw-gold); }

  .hero { padding-top: 108px; }

  /* Keep the name on its authored two lines. The desktop 56px floor is wider
     than a phone: "WOODARD JR." measures 485px at 56px against ~335px of
     available width, so the floor — not the 10.5vw — was forcing a third and
     fourth line. 10vw holds the longest line inside the column from 320px up. */
  .hero__name { font-size: clamp(30px, 10vw, 56px); }
  .hero__meta { grid-template-columns: 1fr; }
  .hero__meta > :nth-child(n) { text-align: left !important; }
  .hero__lockup-meta { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  /* Every split header goes single-column — the reel's was still 1fr 1fr, which
     crushed its lede into a ~120px ribbon wrapping every two words. */
  .career__header, .gallery__header, .reel__header { grid-template-columns: 1fr; }
  .career__lede, .gallery__intro, .reel__lede { justify-self: start; max-width: none; }
  .reel__header { gap: 18px; }
  /* "Environmental" is the longest single word in the reel; at the desktop floor
     of 40px it measures ~365px against 335px of usable width. */
  .reel__project-title { font-size: clamp(26px, 8.5vw, 40px); }
  .career__row { grid-template-columns: 28px 1fr; gap: 6px 12px; padding: 18px 0; }
  .career__span { grid-column: 2; }
  .career__role { grid-column: 2; }
  .career__org  { grid-column: 2; }
  .career__note { grid-column: 2; }
  /* Small tiles pair up 2-across; anything half-width or wider goes full-bleed. */
  /* A side-by-side strip is too small at phone width — stack the two loops instead.
     8/9 keeps each stacked cell at 16:9. */
  .tile--pair .tile__thumb { aspect-ratio: 8 / 9; }
  .media__pair { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .collage { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .collage > .col-12, .collage > .col-9, .collage > .col-8, .collage > .col-7,
  .collage > .col-6, .collage > .col-5 { grid-column: span 2; }
  .collage > .col-4, .collage > .col-3 { grid-column: span 1; }
  .collage > .col-4 .tile__title, .collage > .col-3 .tile__title { font-size: 16px; }
  .collage > .col-4 .tile__desc, .collage > .col-3 .tile__desc { font-size: 12px; }
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { grid-template-columns: 1fr; gap: 8px; }
  .footer__bottom > :nth-child(2),
  .footer__bottom > :nth-child(3) { text-align: left; }

  /* ---------- "Boundless" is one unbreakable word ----------
     At the desktop floor of 64px it measures 408px and gets clipped inside 335px
     of usable width. Scale it to the viewport instead. */
  .bd-tease__mark { font-size: clamp(34px, 12.5vw, 64px); }

  /* ---------- Touch targets ----------
     Nothing interactive should be under ~44px on a phone. */
  .reel__dot {
    height: 44px; background: transparent;
    display: flex; align-items: center;
  }
  .reel__dot::before {
    content: ""; display: block;
    width: 100%; height: 2px; background: var(--hairline);
  }
  .reel__dot::after { top: 50%; bottom: auto; height: 2px; transform: translateY(-50%) scaleX(0); }
  .reel__dot--active::after { transform-origin: left center; animation: reel-progress-m 7200ms linear forwards; }
  @keyframes reel-progress-m {
    from { transform: translateY(-50%) scaleX(0); }
    to   { transform: translateY(-50%) scaleX(1); }
  }
  /* 44px arrows no longer fit beside the dots and counter on one row — give the
     dots their own line and pair the counter with the arrows below. */
  .reel__controls { align-items: center; flex-wrap: wrap; row-gap: 2px; }
  .reel__dots { flex: 1 0 100%; }
  .reel__counter { flex: 1 1 auto; }
  .reel__nav-btns { flex: 0 0 auto; }
  .icon-btn { width: 44px; height: 44px; }
  .lb__close { width: 44px; height: 44px; }
  .lb__arrow { width: 44px; height: 44px; }
  .footer__link { padding: 11px 0; }
  .gallery__request, .proj__cta { padding: 13px 0; }
  .hero__bd-link { display: inline-block; padding: 10px 0; }
  .nav__logo { padding: 12px 0; }

  /* ---------- Minimum legible type ----------
     The 9px micro-labels are a desktop detail; they stop being readable on glass. */
  .media__badge, .proj__count, .media__pair-label { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reel__track { transition: none; }
  .reel__dot--active::after { animation: none; transform: scaleX(1); }
  .bd-tease__eyebrow::before { animation: none; }
}
