/* ═══════════════════════════════════════════════════════════════
   DREW CHRISTIEN — Component Library  |  components.css  v3
   ═══════════════════════════════════════════════════════════════

   Figma grid (1440px canvas):
     Content max:  1180px  (12 cols × 80px + 11 × 20px gutter)
     Gutter:       20px
     Column:       80px
     Cards:        280px × 280px (1:1 square, 3 cols each)
     Body bg:      #ffffff
     Nav + footer: #eaeaea
*/

:root {
  --white:       #ffffff;
  --page-bg:     #f6f6f6;
  --chrome-bg:   #eaeaea;   /* nav and footer background */
  --light-gray:  #d4d4d4;
  --mid-gray:    #aaa9a4;
  --dark-gray:   #3c3a36;
  --black:       #111111;
  --red:         #de0008;

  --font-display: 'trade-gothic-next-compressed', sans-serif;
  --font-body:    'trade-gothic-next-compressed', sans-serif;

  --col:       80px;
  --gutter:    20px;
  /* Margin: fluid, centers 1180px content within any window width.
     At 1440px → 130px each side. Clamps to 40px minimum on smaller screens. */
  --margin:      max(40px, calc((100vw - 1180px) / 2));
  --proj-margin: max(40px, calc((100vw - 980px) / 2));  /* 10-col content: 10×80+9×20=980px */
  --max-w:       1180px;
  --card-size: 280px;   /* 3 cols: 3×80 + 2×20 = 280px */
  --nav-h:     56px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

html {
  background: var(--chrome-bg);
}

body {
  background: var(--page-bg);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.22;
  letter-spacing: 0.04em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════════════════════════
   COMPONENT: Mark
   Native: 12×18px PNG, 2-col × 3-row grid, no gaps between cells.

   Layout (left col | right col):
     Row 1: Green  #1ce004 | Black  #000000
     Row 2: Black  #000000 | Blue   #1300fc
     Row 3: Red    #de0008 | Black  #000000

   ACTIVE state   = full color
   INACTIVE state = gray checkerboard (#a5a5a5 / #222)
   FLIP           = scaleX(-1) mirror  → ">" shape for footer

   CSS state machine (driven by .is-current on parent .nav-item):
     Logo / footer (.mark-always): active always visible
     Current page nav item:        inactive visible; hover → active
     Other page nav item:          nothing visible; hover → active only
═══════════════════════════════════════════════════════════════ */

.dc-mark {
  display: inline-flex;
  position: relative;
  flex-shrink: 0;
  line-height: 0;
  font-size: 0;
}

.dc-mark img {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* Inactive is the layout layer (relative), active floats on top */
.dc-mark .mark-inactive-img { position: relative; }
.dc-mark .mark-active-img   { position: absolute; top: 0; left: 0; }

.dc-mark .mark-inactive-img,
.dc-mark .mark-active-img   { transition: opacity 0.15s ease; }

/* Default: both hidden */
.dc-mark .mark-inactive-img { opacity: 0; }
.dc-mark .mark-active-img   { opacity: 0; }

/* Always-on (logo, footer) */
.dc-mark.mark-always .mark-active-img { opacity: 1; }

/* Current page nav: show inactive, hover swaps to active */
.nav-item.is-current .dc-mark .mark-inactive-img          { opacity: 1; }
.nav-item.is-current:hover .dc-mark .mark-inactive-img    { opacity: 0; }
.nav-item.is-current:hover .dc-mark .mark-active-img      { opacity: 1; }

/* Other page nav: hover shows active */
.nav-item:not(.is-current):hover .dc-mark .mark-active-img { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════
   COMPONENT: Nav
═══════════════════════════════════════════════════════════════ */

.dc-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 var(--margin);
  background: var(--chrome-bg);
}

.dc-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--black);
  flex-shrink: 0;
  margin-right: auto;
}

.dc-nav__wordmark {
  display: flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
  line-height: 1;
}

.dc-nav__wordmark .sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: var(--black);
  margin-left: 10px;
}

/* Nav links — no borders; mark IS the indicator */
.dc-nav__links {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
}

.nav-item { list-style: none; }

.dc-nav__links .nav-item > a {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
  transition: color 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.dc-nav__links .nav-item:hover > a      { color: var(--black); }
.dc-nav__links .nav-item.is-current > a { color: var(--black); }


/* Hamburger (mobile only) */
.dc-nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.dc-nav__hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--black);
  transition: all 0.3s;
}

.dc-nav__hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.dc-nav__hamburger.open span:nth-child(2) { opacity: 0; }
.dc-nav__hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════════
   COMPONENT: Mobile Menu
═══════════════════════════════════════════════════════════════ */

.dc-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: var(--chrome-bg);
  z-index: 199;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.dc-mobile-menu.open { display: flex; }

.dc-mobile-menu .nav-item > a {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 52px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--black);
  transition: color 0.2s;
}

.dc-mobile-menu .nav-item:hover > a { color: var(--red); }

/* ═══════════════════════════════════════════════════════════════
   COMPONENT: Project Card
   280×280px, 1:1 square.
   - Default: dark bg, title at low opacity (always readable)
   - Hover: dark scrim, "— VIEW —" label, full-brightness title
═══════════════════════════════════════════════════════════════ */

.dc-card {
  position: relative;
  overflow: hidden;
  background: #3a3835;
  text-decoration: none;
  display: block;
  flex-shrink: 0;
  width: var(--card-size);
  height: var(--card-size);
}

.dc-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Always-visible bottom title bar */
.dc-card__title-static {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: white;
  text-align: center;
  padding: 0 16px;
  line-height: 1;
  transition: opacity 0.25s;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dc-card__overlay { display: none; }

.dc-card:hover img { transform: scale(1.04); }

.dc-card__view {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
}

.dc-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: white;
  text-align: center;
  padding: 0 20px;
  line-height: 1.35;
}

/* ═══════════════════════════════════════════════════════════════
   COMPONENT: Footer
═══════════════════════════════════════════════════════════════ */

.dc-footer {
  background: var(--chrome-bg);
  border-top: 1px solid var(--light-gray);
  padding: 33px var(--margin) 18px;
}

.dc-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto auto;
  row-gap: 0;
}

/* Row 1 right: tagline + social icons */
.dc-footer__social-block {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 8px;
}

.dc-footer__tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  white-space: nowrap;
}

.dc-footer__social { display: flex; gap: 6px; }

.dc-footer__social a {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  transition: opacity 0.2s;
}

.dc-footer__social a img { display: block; }
.dc-footer__social a:hover { opacity: 0.75; }

/* Row 2: scrobble centered full width */
.dc-footer__scrobble {
  grid-column: 1 / -1;
  grid-row: 2;
  font-family: 'trade-gothic-next-condensed', sans-serif;
  font-size: 16px;
  font-style: italic;
  letter-spacing: 0.06em;
  color: var(--black);
  text-align: center;
  display: block;
  padding: 12px 0;
  visibility: hidden;
}

.dc-scrobble__track {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.dc-scrobble__track:hover { color: var(--dark-gray); }

/* Row 3 left: logo/wordmark */
.dc-footer__logo {
  grid-column: 1;
  grid-row: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--black);
  padding-bottom: 10px;
  align-self: start;
}

.dc-footer__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Row 4: legal full width */
.dc-footer__legal {
  grid-column: 1 / -1;
  grid-row: 4;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #666666;
  line-height: 1.22;
  white-space: nowrap;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   UTILITY: Dot nav (carousel + hero)
═══════════════════════════════════════════════════════════════ */

.dc-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.dc-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: none; cursor: pointer; padding: 0;
  transition: background 0.3s, transform 0.3s;
}

/* On white bg */
.dc-dot--light { background: var(--light-gray); }
.dc-dot--light.active { background: var(--black); transform: scale(1.3); }

/* On dark hero bg */
.dc-dot--dark { background: rgba(255,255,255,0.28); }
.dc-dot--dark.active { background: white; transform: scale(1.35); }

/* ═══════════════════════════════════════════════════════════════
   UTILITY: Eyebrow label
═══════════════════════════════════════════════════════════════ */

.dc-eyebrow {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid-gray);
}

.dc-down-arrow {
  display: block;
  margin: 0 auto;
  width: 12px;
  opacity: 0.3;
}

/* ═══════════════════════════════════════════════════════════════
   COMPONENT: Page Hero Banner
   Full-width image strip used on interior pages (bio, links).
═══════════════════════════════════════════════════════════════ */

.dc-hero-banner {
  width: 100%;
  height: 160px;
  background: var(--chrome-bg);
  overflow: hidden;
  position: relative;
}

.dc-hero-banner img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ═══════════════════════════════════════════════════════════════
   COMPONENT: Return Home
   Right-aligned chevron+text link, sits above the footer on
   interior pages (bio, links).
═══════════════════════════════════════════════════════════════ */

.dc-return-home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid-gray);
  transition: color 0.2s;
}

.dc-return-home:hover { color: var(--dark-gray); }
.dc-return-home img   { flex-shrink: 0; height: 36px; width: auto; }

/* ═══════════════════════════════════════════════════════════════
   COMPONENT: Project Hero
   400px full-width hero with image + right-or-left overlay text.
   Used on all 03_ProjectPage pages.

   Text alignment:
     .proj-hero__text          → left-aligned (default)
     .proj-hero__text--right   → right-aligned (Project 01)
═══════════════════════════════════════════════════════════════ */

.proj-hero {
  width: 100%;
  height: 400px;
  background: var(--black);
  overflow: hidden;
  position: relative;
}

.proj-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.proj-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 var(--proj-margin);
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 50%, transparent 80%);
  pointer-events: none;
}

.proj-hero__text { max-width: 480px; }

.proj-hero__text--right {
  max-width: 752px;
  margin-left: auto;
  text-align: right;
}

.proj-hero__kicker {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  line-height: 1.3;
}

.proj-hero__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.22;
  margin-top: 2px;
  margin-bottom: 14px;
}

.proj-hero__desc {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  line-height: 1.55;
  max-width: 425px;
}

.proj-hero__text--right .proj-hero__desc { margin-left: auto; }

/* ═══════════════════════════════════════════════════════════════
   COMPONENT: Misc Page Intro
   Replaces proj-hero on misc/other pages — title + description
   sits directly below the subnav before the image array.
═══════════════════════════════════════════════════════════════ */

.misc-intro {
  padding: 32px var(--proj-margin) 24px;
}

.misc-intro__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dark-gray);
  line-height: 1.22;
  margin-bottom: 12px;
}

.misc-intro__desc {
  display: block;
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.55;
  color: var(--dark-gray);
  max-width: 944px;
}

/* ═══════════════════════════════════════════════════════════════
   COMPONENT: Project Navigation Bar
   50px row directly below hero. Left: prev/next + label.
   Right: back to portfolio.
═══════════════════════════════════════════════════════════════ */

/* Wrapper injected by JS — enables mobile reordering via column-reverse */
.proj-hero-wrapper {
  display: flex;
  flex-direction: column;
}

.proj-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 var(--margin);
}

.proj-nav__explore {
  display: flex;
  align-items: center;
  gap: 6px;
}

.proj-nav__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid-gray);
  white-space: nowrap;
}

.proj-nav__chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--mid-gray);
  text-decoration: none;
  transition: color 0.2s;
  padding: 0;
}

.proj-nav__chevron:hover { opacity: 0.7; }
.proj-nav__chevron img  { height: 36px; width: auto; }

.proj-nav__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid-gray);
  transition: color 0.2s;
  white-space: nowrap;
}

.proj-nav__back:hover  { color: var(--dark-gray); }
.proj-nav__back img    { flex-shrink: 0; height: 36px; width: auto; }

/* ═══════════════════════════════════════════════════════════════
   COMPONENT: Project Image Area
   Content-column image stack. Three layout variants:

     .proj-img              → full content-width (944px)
     .proj-img--narrow      → centered 600px column
     .proj-img--medium      → centered 752px column
     .proj-img--pair        → two equal columns side by side
═══════════════════════════════════════════════════════════════ */

.proj-images {
  padding: 0 var(--proj-margin);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

/* Base image figure */
.proj-img {
  margin: 0;
  background: var(--page-bg);
  overflow: hidden;
  line-height: 0;
}

.proj-img img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.proj-img--narrow { width: 100%; max-width: 600px; margin-left: auto; margin-right: auto; }
.proj-img--medium { width: 100%; max-width: 752px; margin-left: auto; margin-right: auto; }

/* Two-column pair — each side is ~50% of content width */
.proj-img--pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.proj-img--pair .proj-img {
  /* inherits .proj-img dark bg */
}

/* ═══════════════════════════════════════════════════════════════
   COMPONENT: Project Section Caption
   Heading + body text between image groups.
   Matches Figma floating text nodes (same font as bio text).
═══════════════════════════════════════════════════════════════ */

.proj-caption {
  padding: 28px var(--proj-margin) 6px;
}

.proj-caption p {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.1em;
  color: var(--black);
  line-height: 1.22;
  max-width: 944px;
}

.proj-caption span {
  display: block;
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.5;
  color: var(--dark-gray);
  margin-top: 8px;
  max-width: 944px;
}

/* ═══════════════════════════════════════════════════════════════
   COMPONENT: Video Facade — click-to-load local video player
   Usage: <div class="proj-video" data-src="path/to/file.mp4">
            <button class="proj-video__play" aria-label="Play video"></button>
          </div>
   JS in components.js swaps the facade for a <video> on click.
═══════════════════════════════════════════════════════════════ */

.proj-video {
  position: relative;
  width: 100%;
  aspect-ratio: inherit;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}

/* Thumbnail frame — preload="metadata" + JS seek shows first real frame */
.proj-video__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Play button centered over thumbnail */
.proj-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s, background 0.15s;
  pointer-events: none;
}

.proj-video__play::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 11px 0 11px 20px;
  border-color: transparent transparent transparent #111111;
  margin-left: 5px;
}

.proj-video:hover .proj-video__play {
  transform: translate(-50%, -50%) scale(1.1);
  background: #ffffff;
}

/* Inverted play button for videos with light/white backgrounds */
.proj-video--light-bg .proj-video__play {
  background: #111111;
}
.proj-video--light-bg .proj-video__play::after {
  border-color: transparent transparent transparent #ffffff;
}
.proj-video--light-bg:hover .proj-video__play {
  background: #333333;
}

/* ═══════════════════════════════════════════════════════════════
   COMPONENT: Project Bottom — Back-to-portfolio + featured works
   Sits after the last image array, before the footer.
═══════════════════════════════════════════════════════════════ */

.proj-bottom {
  padding: 0 var(--proj-margin) 80px;
  margin-top: 30px;
}

.proj-bottom__nav {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 30px;
}

.proj-bottom__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid-gray);
  text-align: center;
  margin-bottom: 20px;
}

/* Four featured project thumbnails */
.proj-featured {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.proj-featured .dc-card {
  width: auto;
  height: auto;
  aspect-ratio: 1;
}

/* Decorative 4-dot indicator */
.proj-dots {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 16px 0 0;
}

.proj-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--light-gray);
  flex-shrink: 0;
}

.proj-dot--active { background: var(--mid-gray); }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   COMPONENT: Mobile Project Text Section
   Injected by JS below the hero wrapper on project pages.
   Hidden on desktop; replaces the overlay desc on mobile.
═══════════════════════════════════════════════════════════════ */

.proj-mobile-text { display: none; }

.proj-mobile-desc {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
  color: var(--dark-gray);
  margin: 0 0 40px;
}

.proj-see-work {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.proj-see-work__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid-gray);
}

.proj-see-work__arrow {
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 8px 0 8px;
  border-color: var(--mid-gray) transparent transparent transparent;
}

/* Tablet: 2-wide card layout; collapse 10-col content back to standard margin */
@media (max-width: 1280px) {
  :root { --proj-margin: max(40px, calc((100vw - 1180px) / 2)); }
  .dc-carousel .dc-card {
    width: calc((100vw - 80px - 20px) / 2);
    height: calc((100vw - 80px - 20px) / 2);
  }
}

/* Tablet */
@media (max-width: 1280px) {
  .dc-hero-banner { height: 100px; }
  .proj-hero      { height: 320px; }
  .proj-featured  {
    grid-template-columns: repeat(2, 1fr);
    max-width: 616px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Mobile */
@media (max-width: 700px) {
  :root { --nav-h: 52px; --margin: 16px; }
  .dc-hero-banner          { height: 80px; }
  .proj-hero               { height: 240px; }
  .proj-hero__title        { font-size: 26px; }
  .proj-img--pair          { grid-template-columns: 1fr; }
  .proj-featured           { grid-template-columns: repeat(2, 1fr); }

  /* Project hero: B&W image, text anchored to bottom, desc hidden (moved below) */
  .proj-hero img           { filter: grayscale(1); }
  .proj-hero__overlay      { align-items: flex-end; padding: 0 var(--proj-margin) 16px; }
  .proj-hero__desc         { display: none; }

  /* Mobile reorder: wrapper flips so proj-nav appears above hero */
  .proj-hero-wrapper       { flex-direction: column-reverse; }

  /* Mobile text section: shown below hero */
  .proj-mobile-text {
    display: block;
    padding: 32px var(--proj-margin) 40px;
  }
  .proj-mobile-desc        { font-size: 20px; }

  /* Project nav on mobile: full-width, arrows bracket the label */
  .proj-nav                { height: 52px; }
  .proj-nav__explore       { width: 100%; justify-content: space-between; }
  .proj-nav__label         { order: 2; display: block; }
  .proj-nav__explore a[aria-label="Previous project"] { order: 1; }
  .proj-nav__explore a[aria-label="Next project"]     { order: 3; }
  .proj-nav__back          { display: none; }
  /* Smaller chevrons on mobile */
  .proj-nav__chevron       { width: 28px; height: 28px; }
  .proj-nav__chevron img   { height: 28px; }

  .dc-nav__links     { display: none; }
  .dc-nav__hamburger { display: flex; }
  .dc-nav__wordmark .sub { display: none; }

  .dc-carousel .dc-card {
    width: calc(100vw - 40px);
    height: calc(100vw - 40px);
  }

  .dc-mobile-menu .nav-item > a { font-size: 38px; }
  .misc-intro__title { font-size: 26px; }

  .dc-footer__inner { grid-template-columns: 1fr; }
  .dc-footer__social-block { grid-column: 1; grid-row: 1; }
  .dc-footer__scrobble     { grid-row: 2; text-align: left; }
  .dc-footer__logo         { grid-row: 3; }
  .dc-footer__legal        { grid-row: 4; white-space: normal; overflow: visible; }
}

/* ═══════════════════════════════════════════════════════════════
   COMPONENT: Lock modal
═══════════════════════════════════════════════════════════════ */

/* Lock badge on protected cards */
.dc-card[data-locked] { position: relative; }
.dc-card[data-locked]::after {
  content: '';
  position: absolute;
  top: 10px; right: 10px;
  width: 22px; height: 22px;
  background: rgba(0,0,0,0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M17 8h-1V6A4 4 0 0 0 8 6v2H7a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2zm-5 8a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm3-8H9V6a3 3 0 0 1 6 0v2z'/%3E%3C/svg%3E") center/14px no-repeat;
  border-radius: 4px;
  pointer-events: none;
  z-index: 2;
}

/* Password modal */
.dc-lock {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
}
.dc-lock.open { display: flex; animation: lb-in 0.18s ease; }

.dc-lock__card {
  background: var(--page-bg);
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  min-width: 300px;
  max-width: 380px;
  width: 90vw;
}

.dc-lock__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  margin: 0 0 6px;
}

.dc-lock__input {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 10px 12px;
  border: 1px solid var(--light-gray);
  background: var(--white);
  color: var(--black);
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.dc-lock__input:focus { border-color: var(--dark-gray); }

.dc-lock__error {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--red);
  min-height: 18px;
  margin: 0;
}

.dc-lock__btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 14px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.dc-lock__btn:hover { opacity: 0.75; }

@keyframes dc-shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-8px); }
  40%       { transform: translateX(8px); }
  60%       { transform: translateX(-6px); }
  80%       { transform: translateX(6px); }
}
.dc-lock.shake .dc-lock__card { animation: dc-shake 0.35s ease; }

/* ═══════════════════════════════════════════════════════════════
   COMPONENT: Lightbox
═══════════════════════════════════════════════════════════════ */

.dc-lb {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.96);
  align-items: center;
  justify-content: center;
}
.dc-lb.open {
  display: flex;
  animation: lb-in 0.18s ease;
}
@keyframes lb-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.dc-lb__img {
  max-width:  calc(100vw - 160px);
  max-height: calc(100vh - 96px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.dc-lb__close {
  position: absolute;
  top: 16px; right: 20px;
  background: none; border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.5);
  font-size: 32px;
  line-height: 1;
  padding: 8px;
  transition: color 0.15s;
  font-family: sans-serif;
  font-weight: 200;
}
.dc-lb__close:hover { color: #fff; }
.dc-lb__prev,
.dc-lb__next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: none; border: none;
  cursor: pointer;
  padding: 20px;
  opacity: 0.35;
  transition: opacity 0.2s;
  line-height: 0;
}
.dc-lb__prev { left: 4px; }
.dc-lb__next { right: 4px; }
.dc-lb__prev:hover,
.dc-lb__next:hover { opacity: 0.9; }
.dc-lb__prev img,
.dc-lb__next img { height: 20px; width: auto; filter: invert(1); }
.dc-lb__count {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
}

/* Zoom cursor — only on pages with a lightbox */
body.has-lightbox .proj-images .proj-img { cursor: zoom-in; }
@media (max-width: 700px) {
  body.has-lightbox .proj-images .proj-img { cursor: default; }
}
