/* ==========================================================================
   MILO M — portfolio site
   Monochrome, dark, cinematic. No accent color by design.
   ========================================================================== */

:root {
  --black: #0a0a0a;
  --near-black: #121212;
  --panel: #1a1a1a;
  --border: #2c2c2c;
  --border-strong: #3d3d3d;
  --white: #f4f4f2;
  --gray-100: #cfcfcc;
  --gray-300: #9a9a96;
  --gray-500: #6d6d6a;

  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  --nav-height: 84px;
  --gutter: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -60px;
  background: var(--white);
  color: var(--black);
  padding: 10px 18px;
  z-index: 200;
  transition: top 0.2s var(--ease);
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* ---- Buttons (rectangular, never pill-shaped) ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid var(--white);
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover, .btn:focus-visible {
  background: var(--white);
  color: var(--black);
}
.btn.btn-ghost {
  border-color: var(--border-strong);
  color: var(--gray-100);
}
.btn.btn-ghost:hover, .btn.btn-ghost:focus-visible {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

/* ==========================================================================
   NAV
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  background: linear-gradient(to bottom, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 100%);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-nav.is-scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.04em;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: clamp(18px, 3vw, 40px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-100);
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-links a:hover, .nav-links a:focus-visible {
  color: var(--white);
  border-color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(10,10,10,0.98);
    border-bottom: 1px solid var(--border);
    padding: 24px var(--gutter) 32px;
    gap: 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-toggle { display: block; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 86svh;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--gutter) 56px;
  overflow: hidden;
  background: var(--black);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-backdrop::before {
  /* Vignette for legibility - a cinematographic technique, not a decorative gradient */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(10,10,10,0) 0%, rgba(10,10,10,0.55) 65%, rgba(10,10,10,0.95) 100%),
    linear-gradient(to top, var(--black) 0%, rgba(10,10,10,0.2) 45%, rgba(10,10,10,0.5) 100%);
  z-index: 2;
}
.hero-backdrop img,
.hero-backdrop video,
.hero-backdrop iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  filter: grayscale(0.15) contrast(1.05);
}
/* Reusable: biases object-fit:cover toward the lower part of the frame -
   for a portrait source cropped into a landscape box where the interesting
   content (e.g. rugs on the floor) sits lower than dead center. */
.is-lower-crop {
  object-position: 50% 80%;
}

.hero-sound-toggle {
  position: absolute;
  z-index: 4;
  right: var(--gutter);
  bottom: 56px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-100);
  border-radius: 50%;
  background: rgba(10,10,10,0.4);
  color: var(--white);
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s var(--ease), background 0.2s var(--ease);
}
.hero-sound-toggle svg { width: 18px; height: 18px; }
.hero:hover .hero-sound-toggle,
.hero-sound-toggle:hover,
.hero-sound-toggle:focus-visible {
  opacity: 1;
  background: rgba(10,10,10,0.7);
}
@media (max-width: 720px) {
  .hero-sound-toggle { bottom: 24px; right: 20px; opacity: 0.8; }
}

.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.05;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 900px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-300);
  margin: 0 0 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 13vw, 168px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  margin: 0 0 24px;
}

.hero-desc {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--gray-100);
  max-width: 620px;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   ROWS
   ========================================================================== */
.rows {
  position: relative;
  z-index: 2;
  padding: 32px 0 64px;
}

.row {
  padding: 16px 0;
}

.row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 var(--gutter);
  margin-bottom: 16px;
}

.row-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0.02em;
  margin: 0;
}

.row-count {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.row-viewport {
  position: relative;
}

.row-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px var(--gutter) 20px;
  scrollbar-width: none;
}
.row-track::-webkit-scrollbar { display: none; }

.row-arrow {
  position: absolute;
  top: 0;
  bottom: 20px;
  width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, var(--black) 20%, rgba(10,10,10,0));
  border: none;
  color: var(--white);
  cursor: pointer;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.row-arrow.next {
  right: 0;
  background: linear-gradient(to left, var(--black) 20%, rgba(10,10,10,0));
}
.row-arrow.prev { left: 0; }
.row-viewport:hover .row-arrow,
.row-arrow:focus-visible { opacity: 1; }
@media (hover: none) { .row-arrow { display: none; } }

.tile {
  position: relative;
  flex: 0 0 auto;
  width: clamp(300px, 34vw, 460px);
  aspect-ratio: 16 / 9;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), z-index 0s;
}
.tile:hover, .tile:focus-visible {
  transform: scale(1.06) translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 36px rgba(0,0,0,0.55);
  z-index: 6;
  outline: none;
}

.tile-media {
  position: absolute;
  inset: 0;
}
.tile-media img,
.tile-media video,
.tile-media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

.tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 55%);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.tile:hover .tile-overlay,
.tile:focus-visible .tile-overlay { opacity: 1; }

.tile-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 2px;
}
.tile-meta {
  font-size: 12px;
  color: var(--gray-300);
  margin: 0;
}

.tile-play {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px; height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(244,244,242,0.6);
  border-radius: 50%;
  background: rgba(10,10,10,0.5);
}
.tile-play svg { width: 12px; height: 12px; fill: var(--white); }

/* Placeholder tiles */
.tile.is-placeholder {
  cursor: default;
  border-style: dashed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
}
.tile.is-placeholder:hover { transform: none; z-index: auto; }
.tile-placeholder-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 20px;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.section {
  padding: 96px var(--gutter);
  max-width: 1180px;
  margin: 0 auto;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin: 0 0 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: 0.01em;
  margin: 0 0 32px;
  max-width: 14ch;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 320px) 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-photo {
  aspect-ratio: 4 / 5;
  background: var(--panel);
  border: 1px solid var(--border);
  overflow: hidden;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 24px;
}

.about-bio p {
  font-size: 18px;
  color: var(--gray-100);
  max-width: 62ch;
  margin: 0 0 20px;
}
.about-bio p:first-child { color: var(--white); font-size: 20px; }

.services-list {
  list-style: none;
  margin: 40px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 20px;
}
.services-list li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.services-list li:last-child { border-bottom: none; padding-bottom: 0; }
.service-name {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.02em;
}
.service-desc {
  color: var(--gray-300);
  font-size: 15px;
  margin: 0;
}
@media (max-width: 560px) {
  .services-list li { grid-template-columns: 1fr; gap: 6px; }
}

.credentials {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.credentials-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 20px;
}
.credentials-row:last-child { margin-bottom: 0; }
.credentials-kicker {
  width: 100%;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 6px;
}
.credential-chip {
  font-size: 14px;
  color: var(--gray-100);
  padding: 6px 0;
}
.credential-chip:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--gray-500);
  margin-left: 14px;
  vertical-align: middle;
}

/* ==========================================================================
   PROJECT CARD (browse row on the homepage, links to a project's own page -
   distinct from .tile: no hover-preview/modal, just a link with a bigger,
   always-legible title card)
   ========================================================================== */
.project-card {
  position: relative;
  flex: 0 0 auto;
  display: block;
  width: clamp(300px, 42vw, 560px);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.project-card:hover,
.project-card:focus-visible {
  transform: scale(1.045) translateY(-8px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 42px rgba(0,0,0,0.55);
  z-index: 2;
  outline: none;
}
.project-card-media {
  position: absolute;
  inset: 0;
}
.project-card-media--flat {
  background: var(--panel);
}
.project-card-media img,
.project-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.1) contrast(1.03);
}
.project-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(18px, 3vw, 28px);
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.05) 100%);
}
.project-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-300);
  margin: 0 0 8px;
}
.project-card-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 6px;
}
.project-card-meta {
  font-size: 13px;
  color: var(--gray-300);
  margin: 0;
}

/* ==========================================================================
   PROJECT (title-detail page, Netflix-style: full-bleed backdrop + meta
   sidebar + a horizontally-scrolling media row using the same .tile
   component as the homepage rows)
   ========================================================================== */
.project {
  padding: 0 0 80px;
  border-top: 1px solid var(--border);
}

.project-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--gutter) 48px;
  overflow: hidden;
  background: var(--black);
}
.project-hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.project-hero-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to top, var(--black) 0%, rgba(10,10,10,0.55) 35%, rgba(10,10,10,0.15) 65%, rgba(10,10,10,0.5) 100%);
}
.project-hero-backdrop img,
.project-hero-backdrop video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.1) contrast(1.05);
}

/* Flat hero variant: for a campaign/project with no specific backdrop
   photo yet - a plain dark fill instead of a blank/broken image. Shorter
   than the full hero too, since there's no image to give it presence. */
.project-hero--flat {
  min-height: 42vh;
}
.project-hero-flat-fill {
  width: 100%;
  height: 100%;
  background: var(--panel);
}

/* A YouTube-embedded hero background (no self-hosted file for this one).
   iframes don't support object-fit:cover the way <video> does, so this is
   the standard trick: oversize the iframe in both dimensions relative to
   viewport units, center it, and let the parent's overflow:hidden crop the
   excess - same visual result as object-fit:cover. */
.hero-youtube-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-youtube-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 100vw * 9/16 */
  min-height: 100%;
  min-width: 177.78vh; /* 100vh * 16/9 */
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
  filter: grayscale(0.1) contrast(1.05);
}

.project-hero-content {
  position: relative;
  z-index: 3;
  max-width: 780px;
}
.project-back {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gray-100);
  margin-bottom: 20px;
  border-bottom: 1px solid transparent;
}
.project-back:hover,
.project-back:focus-visible {
  color: var(--white);
  border-color: var(--white);
}
.project-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-300);
  margin: 0 0 14px;
}
.project-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin: 0 0 18px;
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-size: 14px;
  color: var(--gray-100);
  margin: 0 0 28px;
}
.project-meta span:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--gray-500);
  margin: 0 12px;
  vertical-align: middle;
}
.project-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.project-play svg { width: 13px; height: 13px; fill: var(--black); }

.project-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: clamp(32px, 5vw, 72px);
  padding: 48px var(--gutter) 40px;
  max-width: 1180px;
  margin: 0 auto;
}
@media (max-width: 860px) {
  .project-body { grid-template-columns: 1fr; }
}

.project-copy p {
  font-size: 17px;
  color: var(--gray-100);
  margin: 0 0 18px;
}
.project-copy p:last-child { margin-bottom: 0; }

.project-quote {
  margin: 32px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.project-quote p {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--white);
  margin: 0 0 16px;
}
.project-quote footer {
  font-size: 13px;
  color: var(--gray-300);
}

.project-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.detail-group {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.detail-group:last-child { border-bottom: none; padding-bottom: 0; }
.detail-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 8px;
}
.detail-value {
  font-size: 15px;
  color: var(--gray-100);
}
.detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.detail-chips a { border-bottom: 1px solid var(--gray-500); }
.detail-chips a:hover { border-color: var(--white); }
.detail-chips span:not(:last-child)::after,
.detail-chips a:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--gray-500);
  margin-left: 10px;
  vertical-align: middle;
}

.project-gallery-row {
  padding-top: 8px;
}
.project-gallery-row .row-head {
  padding: 0 var(--gutter);
  margin-bottom: 16px;
}
.project-gallery-row .row-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-family: var(--font-body);
}

/* Fixed 2x2 grid of real event flyers - all four shown at once, no
   scrolling, since there are exactly four and they read best side by side. */
.flyer-grid-row {
  padding: 44px var(--gutter) 8px;
  max-width: 1400px;
  margin: 0 auto;
}
.flyer-grid-row .row-head {
  padding: 0;
  margin-bottom: 16px;
}
.flyer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}
.flyer-grid .tile {
  width: 100%;
  aspect-ratio: 1 / 1;
}

/* Instagram embeds (official widget) vary in height post to post - a
   masonry column layout handles that gracefully instead of forcing a
   uniform grid cell on content we don't control the shape of. */
.instagram-gallery {
  columns: 1;
  column-gap: 24px;
  padding: 0 var(--gutter);
  max-width: 1100px;
  margin: 0 auto;
}
.instagram-gallery-item {
  break-inside: avoid;
  margin: 0 0 24px;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
}
.instagram-gallery .instagram-media {
  margin: 0 !important;
  width: 100% !important;
}
@media (min-width: 720px) {
  .instagram-gallery { columns: 2; }
}

/* One block per piece on a multi-work project page (e.g. Warehouse Rug).
   Editorial layout: a large full-bleed feature photo (edge to edge, real
   presence), then the write-up at readable width, then any remaining
   photos in a full-bleed supporting grid - the whole point being to let
   the photography use the full site width instead of sitting in small
   uniform thumbnails. */
.rug-piece {
  padding-top: 64px;
  margin-top: 64px;
  border-top: 1px solid var(--border);
}
.rug-piece:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

.rug-piece-feature {
  width: 100%;
}
.rug-piece-feature .tile,
.rug-piece-secondary .tile {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  flex: none;
  border: none;
  border-radius: 0;
  background: none;
}
.rug-piece-feature .tile:hover,
.rug-piece-feature .tile:focus-visible {
  transform: scale(1.015);
  box-shadow: 0 24px 48px rgba(0,0,0,0.6);
  z-index: 6;
}
.rug-piece-secondary .tile:hover,
.rug-piece-secondary .tile:focus-visible {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 18px 32px rgba(0,0,0,0.55);
  z-index: 6;
}
/* No forced box, no crop: the image's own dimensions decide the tile's
   size, so nothing is ever cropped or stretched to fit. */
.rug-piece-feature .tile-media,
.rug-piece-secondary .tile-media {
  position: static;
}
.rug-piece-feature .tile-media img,
.rug-piece-secondary .tile-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: unset;
}

.rug-piece-info {
  padding: 28px var(--gutter) 0;
  max-width: 68ch;
}
.rug-piece-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--white);
  margin: 0;
}
.rug-piece-specs {
  font-size: 13px;
  color: var(--gray-500);
  margin: 8px 0 0;
}
.rug-piece-desc {
  font-size: 17px;
  color: var(--gray-100);
  margin: 14px 0 0;
}

/* Remaining photos for a piece - still edge to edge, still large.
   align-items: start (not the grid default of stretch) so a shorter image
   never gets stretched to match a taller neighbor in the same row. */
.rug-piece-secondary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
  gap: 3px;
  margin-top: 28px;
}

/* WR monogram: a small flat-color badge in the tufted-rug style (organic
   blob shapes, nature palette) instead of a wordmark - used only on the
   Warehouse Rug project page. */
.wr-mark {
  display: block;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
}

/* A real logo file with a baked-in white background, shown as a small card
   rather than stretched full-bleed - used where a project has a real logo
   asset but no high-res venue photography to fill a big hero backdrop. */
.project-logo-badge {
  display: inline-block;
  background: #fff;
  border-radius: 6px;
  padding: 10px 16px;
  margin-bottom: 20px;
}
.project-logo-badge img {
  display: block;
  height: 34px;
  width: auto;
}

/* ==========================================================================
   PHOTOGRAPHY GALLERY (standalone page, not the homepage rows)
   One full, uncropped photo at a time - category tabs + prev/next + a
   filmstrip of thumbnails, closer to Apple Photos than a browse grid.
   ========================================================================== */
.photo-page {
  padding: calc(var(--nav-height) + 40px) 0 96px;
}
.photo-page-header {
  padding: 0 var(--gutter);
  max-width: 820px;
  margin: 0 auto 40px;
  text-align: center;
}
.photo-page-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 52px);
  letter-spacing: 0.01em;
  margin: 12px 0 28px;
}
.photo-tabs {
  display: inline-flex;
  gap: 6px;
}
.photo-tab {
  padding: 11px 24px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  background: transparent;
  color: var(--gray-300);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.photo-tab:hover,
.photo-tab.is-active {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.photo-stage {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.photo-stage-frame {
  position: relative;
  flex: 1;
  height: 74vh;
  min-height: 380px;
  max-height: 820px;
  background: var(--panel);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.photo-stage-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.photo-stage-image.is-visible {
  opacity: 1;
}
.photo-stage-nav {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--gray-100);
  background: rgba(10, 10, 10, 0.4);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.photo-stage-nav:hover {
  background: var(--white);
  color: var(--black);
}
.photo-stage-nav:disabled {
  opacity: 0.3;
  cursor: default;
}
.photo-stage-nav svg {
  width: 18px;
  height: 18px;
}
@media (max-width: 720px) {
  .photo-stage-nav { width: 38px; height: 38px; }
  .photo-stage-nav svg { width: 15px; height: 15px; }
}

.photo-stage-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px var(--gutter) 0;
}
.photo-stage-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: 0.01em;
  margin: 0;
}
.photo-stage-meta {
  font-size: 13px;
  color: var(--gray-300);
  margin: 4px 0 0;
}
.photo-stage-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-100);
  margin-top: 10px;
  border-bottom: 1px solid var(--gray-500);
}
.photo-stage-link:hover,
.photo-stage-link:focus-visible {
  color: var(--white);
  border-color: var(--white);
}
.photo-stage-counter {
  font-size: 13px;
  color: var(--gray-500);
  flex: none;
}

.photo-filmstrip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px var(--gutter) 0;
  scrollbar-width: none;
}
.photo-filmstrip::-webkit-scrollbar {
  display: none;
}
.photo-filmstrip-item {
  flex: none;
  width: 96px;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease);
}
.photo-filmstrip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-filmstrip-item:hover {
  opacity: 0.85;
}
.photo-filmstrip-item.is-active {
  opacity: 1;
  border-color: var(--white);
}

/* ==========================================================================
   FOOTER / CONTACT
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px var(--gutter) 40px;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  margin: 0 0 20px;
}

.footer-contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-contact-links a {
  font-size: 16px;
  color: var(--gray-100);
  border-bottom: 1px solid transparent;
  width: max-content;
}
.footer-contact-links a:hover,
.footer-contact-links a:focus-visible {
  color: var(--white);
  border-color: var(--white);
}

.footer-meta {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--gray-500);
}
.footer-legal-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0; padding: 0;
}
.footer-legal-links a:hover, .footer-legal-links a:focus-visible {
  color: var(--gray-100);
}

/* ==========================================================================
   MODAL / LIGHTBOX
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px var(--gutter);
  background: rgba(6,6,6,0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}
.modal.is-open { opacity: 1; pointer-events: auto; }

.modal-dialog {
  width: 100%;
  max-width: 960px;
}

.modal-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--panel);
  border: 1px solid var(--border-strong);
}
.modal-frame iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}
.modal-frame video,
.modal-frame img {
  width: 100%;
  height: 100%;
  /* contain, not cover: this is the "see the whole thing" view - never crop
     a photo or video here, whatever its aspect ratio (a portrait rug photo
     or a vertical video letterboxes instead of losing content). */
  object-fit: contain;
  border: none;
}

.modal-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 18px;
  gap: 20px;
}
.modal-info h3 { font-family: var(--font-display); font-size: 24px; margin: 0 0 4px; letter-spacing: 0.02em; }
.modal-info p { font-size: 13px; color: var(--gray-300); margin: 0; }

.modal-close {
  position: fixed;
  top: 28px;
  right: var(--gutter);
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--white);
  width: 44px; height: 44px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.modal-close:hover, .modal-close:focus-visible { background: var(--white); color: var(--black); }
.modal-close svg { width: 16px; height: 16px; }

/* ==========================================================================
   REVEAL (single, restrained fade-up on first view - no cascades)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */
.legal-page {
  padding: calc(var(--nav-height) + 64px) var(--gutter) 96px;
  max-width: 760px;
  margin: 0 auto;
}
.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  margin: 0 0 8px;
}
.legal-page .legal-updated {
  color: var(--gray-500);
  font-size: 13px;
  margin: 0 0 48px;
}
.legal-page h2 {
  font-size: 18px;
  margin: 40px 0 12px;
}
.legal-page p, .legal-page li {
  color: var(--gray-100);
  font-size: 15px;
  line-height: 1.7;
}
.legal-page ul { padding-left: 20px; }
.legal-page a { border-bottom: 1px solid var(--gray-500); }
.legal-page a:hover { border-color: var(--white); }
.legal-placeholder {
  color: var(--gray-300);
  background: var(--panel);
  border: 1px dashed var(--border-strong);
  padding: 2px 6px;
}
