:root {
  --bg: #050403;
  --panel: rgba(18, 15, 13, 0.86);
  --line: rgba(255, 226, 190, 0.16);
  --text: #fff7e8;
  --muted: #d7bfa0;
  --accent: #f09b57;
  --archive-line: rgba(240, 155, 87, 0.17);
  --archive-text: #f4c99d;
  --radius: 8px;
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #000, #050403 32%, #080706);
  font-family: "Oswald", Arial, sans-serif;
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 99; transform: translateY(-160%); padding: 8px 12px; background: var(--text); color: #160d08; }
.skip-link:focus { transform: translateY(0); }
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px clamp(20px, 4vw, 52px);
  border-bottom: 1px solid rgba(255, 226, 190, 0.08);
  background: linear-gradient(180deg, rgba(5, 4, 3, 0.96), rgba(5, 4, 3, 0.7));
  transition: transform 240ms ease;
}
.site-nav.hidden { transform: translateY(-110%); }
.brand-mark { color: #fff8d6; font-size: 1.38rem; letter-spacing: 0.18em; text-decoration: none; }
.nav-links { display: flex; justify-content: center; gap: clamp(12px, 2vw, 24px); }
.nav-links a, .nav-pill { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.1em; text-decoration: none; text-transform: uppercase; }
.nav-links a:hover, .nav-pill:hover { color: var(--text); }
.nav-pill { padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.04); }
.fashion-hero {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 88vh;
  overflow: hidden;
  padding: 120px max(20px, calc((100% - var(--max)) / 2));
  background:
    linear-gradient(90deg, rgba(0,0,0,0.96), rgba(0,0,0,0.72)),
    url("images/landing/bh3.webp") center / cover no-repeat;
}
.fashion-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 32%; background: linear-gradient(transparent, var(--bg)); }
.hero-copy, .hero-explore { position: relative; z-index: 1; }
.hero-copy { max-width: 900px; }
.eyebrow, .directory-card span { margin: 0 0 10px; color: var(--accent); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; color: #fff6d9; font-size: clamp(4.8rem, 10vw, 10.2rem); line-height: 0.84; letter-spacing: 0.03em; text-shadow: 0 0 32px rgba(255,214,145,0.13); }
h2 { margin-bottom: 16px; color: #fff3cf; font-size: clamp(3rem, 6vw, 6.4rem); line-height: 0.9; text-transform: uppercase; }
p { color: var(--muted); font-size: 1.08rem; line-height: 1.55; }
.hero-copy p:last-child { max-width: 62ch; }
.hero-explore { align-self: end; width: max-content; margin-top: 24px; color: #fff3cf; font-size: 1.25rem; letter-spacing: 0.12em; text-decoration: none; text-transform: uppercase; }
.project-directory, .project-section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(74px, 9vw, 130px) 0;
}
.section-heading { max-width: 730px; margin-bottom: 38px; }
.directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.directory-card { position: relative; min-height: 340px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.directory-card::after { content: ""; position: absolute; inset: 28% 0 0; background: linear-gradient(transparent, rgba(0,0,0,0.94)); }
.directory-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.directory-card:hover img { transform: scale(1.04); }
.directory-card div { position: absolute; right: 16px; bottom: 16px; left: 16px; z-index: 1; }
.directory-card h3 { margin-bottom: 13px; color: #fff8d6; font-size: 1.65rem; letter-spacing: 0.04em; text-transform: uppercase; }
.directory-card:nth-child(n + 4) {
  border-color: rgba(240, 155, 87, 0.28);
  background:
    repeating-linear-gradient(0deg, transparent 0 21px, var(--archive-line) 22px),
    repeating-linear-gradient(90deg, transparent 0 21px, var(--archive-line) 22px),
    linear-gradient(rgba(10, 7, 5, 0.9), rgba(10, 7, 5, 0.9));
}
.directory-card:nth-child(n + 4)::before {
  content: "FIELD RECORD";
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 7px;
  color: var(--archive-text);
  border: 1px solid rgba(240, 155, 87, 0.38);
  background: rgba(8, 5, 4, 0.82);
  font-family: "Courier New", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
}
.button { display: inline-flex; padding: 9px 15px; border: 1px solid rgba(240,155,87,0.54); border-radius: 999px; color: #190d06; background: var(--accent); font-size: 0.78rem; letter-spacing: 0.12em; text-decoration: none; text-transform: uppercase; transition: transform 180ms ease; }
.button:hover { transform: translateY(-2px); }
.project-section {
  border-top: 1px solid rgba(255,226,190,0.08);
  transition: padding 240ms ease;
}
.project-section.collapsible-project { padding-block: 34px; }
.project-section.collapsible-project.is-expanded { padding-block: clamp(74px, 9vw, 130px); }
.project-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.collection-toggle {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--accent);
  border: 1px solid rgba(240, 155, 87, 0.54);
  border-radius: 50%;
  background: rgba(8, 5, 4, 0.82);
  cursor: pointer;
  font: 1.35rem/1 "Courier New", monospace;
  transition: transform 180ms ease, background 180ms ease;
}
.collection-toggle:hover { background: rgba(240, 155, 87, 0.12); transform: translateY(-2px); }
.collection-toggle span { display: block; transition: transform 220ms ease; }
.is-expanded > .project-heading .collection-toggle span { transform: rotate(45deg); }
.collection-content { display: none; }
.is-expanded > .collection-content { display: block; }
.is-expanded > .collection-content img {
  animation: archive-power-on 620ms steps(2, end) both;
}
.is-expanded > .collection-content img:nth-child(3n + 2) { animation-delay: 70ms; }
.is-expanded > .collection-content img:nth-child(3n) { animation-delay: 140ms; }
@keyframes archive-power-on {
  0% { opacity: 0; clip-path: inset(49% 0 49%); }
  18% { opacity: 0.9; clip-path: inset(49% 0 49%); }
  34% { opacity: 0.18; clip-path: inset(15% 0); }
  52% { opacity: 0.84; clip-path: inset(0); }
  68% { opacity: 0.38; }
  82% { opacity: 0.96; }
  100% { opacity: 1; clip-path: inset(0); }
}
.featured-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.project-gallery figure { margin: 0; overflow: hidden; border: 1px solid var(--line); background: #090706; }
.project-gallery img, .project-gallery video { width: 100%; height: 100%; aspect-ratio: 1; object-fit: contain; background: #080706; }
.singularity-record, .retro-record, .gap-inc-record, .queen-drape-record { margin-top: 30px; }
.project-subheading {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(240, 155, 87, 0.24);
  background:
    repeating-linear-gradient(90deg, transparent 0 21px, rgba(240, 155, 87, 0.07) 22px),
    rgba(8, 5, 4, 0.88);
}
.project-subheading h3 {
  margin: 7px 0;
  color: var(--text);
  font-family: "Courier New", monospace;
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  letter-spacing: 0.02em;
}
.singularity-board-gallery, .retro-board-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(240, 155, 87, 0.2);
  background:
    repeating-linear-gradient(0deg, transparent 0 21px, rgba(240, 155, 87, 0.07) 22px),
    repeating-linear-gradient(90deg, transparent 0 21px, rgba(240, 155, 87, 0.07) 22px),
    rgba(3, 2, 2, 0.7);
}
.singularity-board-gallery img, .retro-board-gallery img {
  display: block;
  width: 100%;
  border: 1px solid rgba(240, 155, 87, 0.2);
  background: #030303;
}
.singularity-editorial-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(240, 155, 87, 0.2);
  background:
    repeating-linear-gradient(0deg, transparent 0 21px, rgba(240, 155, 87, 0.07) 22px),
    repeating-linear-gradient(90deg, transparent 0 21px, rgba(240, 155, 87, 0.07) 22px),
    rgba(3, 2, 2, 0.7);
}
.singularity-editorial-gallery img {
  display: block;
  width: 100%;
  border: 1px solid rgba(240, 155, 87, 0.2);
  background: #030303;
}
.singularity-editorial-gallery img:first-child { grid-column: 1 / -1; }
.singularity-narrative-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(240, 155, 87, 0.2);
  background:
    repeating-linear-gradient(0deg, transparent 0 21px, rgba(240, 155, 87, 0.07) 22px),
    repeating-linear-gradient(90deg, transparent 0 21px, rgba(240, 155, 87, 0.07) 22px),
    rgba(3, 2, 2, 0.7);
}
.singularity-narrative-gallery img {
  display: block;
  width: 100%;
  border: 1px solid rgba(240, 155, 87, 0.2);
  background: #030303;
}
.singularity-narrative-gallery img:first-child { grid-column: 1 / -1; }
.research-heading { margin-top: 42px; }
.singularity-notes, .retro-notes, .retro-sketches { margin-top: 16px; }
.retro-sketch-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(240, 155, 87, 0.2);
  background:
    repeating-linear-gradient(0deg, transparent 0 21px, rgba(240, 155, 87, 0.07) 22px),
    repeating-linear-gradient(90deg, transparent 0 21px, rgba(240, 155, 87, 0.07) 22px),
    rgba(3, 2, 2, 0.7);
}
.retro-sketch-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border: 5px solid rgba(237, 224, 194, 0.94);
  background: #ede0c2;
  box-shadow: 0 7px 18px rgba(0,0,0,0.48), 0 0 0 1px rgba(240,155,87,0.1);
}
.chapter-gallery, .drape-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(240, 155, 87, 0.2);
  background:
    repeating-linear-gradient(0deg, transparent 0 21px, rgba(240, 155, 87, 0.07) 22px),
    repeating-linear-gradient(90deg, transparent 0 21px, rgba(240, 155, 87, 0.07) 22px),
    rgba(3, 2, 2, 0.7);
}
.chapter-gallery img, .drape-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border: 5px solid rgba(237, 224, 194, 0.94);
  background: #ede0c2;
  box-shadow: 0 7px 18px rgba(0,0,0,0.48), 0 0 0 1px rgba(240,155,87,0.1);
}
.drape-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.archive-section {
  width: 100%;
  padding-inline: max(20px, calc((100% - var(--max)) / 2));
  border-top-color: rgba(240, 155, 87, 0.22);
  background:
    repeating-linear-gradient(0deg, transparent 0 27px, var(--archive-line) 28px),
    repeating-linear-gradient(90deg, transparent 0 27px, var(--archive-line) 28px),
    radial-gradient(circle at 80% 15%, rgba(207, 99, 48, 0.09), transparent 32rem),
    linear-gradient(rgba(5, 4, 3, 0.96), rgba(2, 2, 2, 0.98));
}
#collection-04 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
#collection-01,
#collection-02,
#collection-03 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
#collection-01::before,
#collection-02::before,
#collection-03::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 2, 2, 0.76), rgba(3, 2, 2, 0.92)),
    url("images/fashion-archive/collection-03/lv-boards-bg.webp") center / cover no-repeat;
  opacity: 0.82;
}
#collection-01::before {
  background:
    linear-gradient(180deg, rgba(3, 2, 2, 0.76), rgba(3, 2, 2, 0.9)),
    url("images/fashion-archive/collection-01/sierra-chefs-bg.webp") center / cover no-repeat;
}
#collection-02::before {
  background:
    linear-gradient(180deg, rgba(3, 2, 2, 0.8), rgba(3, 2, 2, 0.92)),
    url("images/fashion-archive/collection-02/queen-jungle-bg.webp") center / cover no-repeat;
}
#collection-01 > .project-heading,
#collection-01 > .collection-content,
#collection-02 > .project-heading,
#collection-02 > .collection-content,
#collection-03 > .project-heading,
#collection-03 > .collection-content {
  position: relative;
  z-index: 1;
}
#collection-04 .supersonic-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: saturate(0.72) contrast(1.12);
  pointer-events: none;
  transition: opacity 320ms ease;
}
#collection-04::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 2, 2, 0.58), rgba(3, 2, 2, 0.86)),
    radial-gradient(circle at 58% 44%, rgba(220, 83, 26, 0.12), transparent 56%);
}
#collection-04.is-expanded .supersonic-bg { opacity: 0.34; }
#collection-04 > .project-heading,
#collection-04 > .collection-content {
  position: relative;
  z-index: 2;
}
.archive-section:nth-child(even) {
  background:
    repeating-linear-gradient(0deg, transparent 0 27px, var(--archive-line) 28px),
    repeating-linear-gradient(90deg, transparent 0 27px, var(--archive-line) 28px),
    radial-gradient(circle at 18% 18%, rgba(207, 99, 48, 0.08), transparent 30rem),
    linear-gradient(rgba(7, 5, 4, 0.95), rgba(2, 2, 2, 0.98));
}
.archive-section .project-heading {
  position: relative;
  display: block;
  margin-bottom: 0;
  padding: 18px 74px 18px 78px;
  border: 1px solid rgba(240, 155, 87, 0.25);
  background: rgba(8, 5, 4, 0.82);
}
.archive-section.is-expanded .project-heading { margin-bottom: 30px; }
.archive-section .collection-toggle {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
}
.archive-section .collection-toggle:hover { transform: translateY(calc(-50% - 2px)); }
.archive-section .project-heading::before {
  content: "OBS";
  position: absolute;
  top: 19px;
  left: 18px;
  color: var(--archive-text);
  font-family: "Courier New", monospace;
  font-size: 1rem;
  letter-spacing: 0.18em;
}
.archive-section .project-heading::after {
  content: "";
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 58px;
  border-left: 1px solid rgba(240, 155, 87, 0.24);
}
.archive-section h2 { margin-bottom: 8px; font-family: "Courier New", monospace; font-size: clamp(2.2rem, 4.6vw, 4.9rem); letter-spacing: 0.02em; }
.field-note {
  max-width: 82ch;
  margin: 0;
  color: var(--archive-text);
  font-family: "Courier New", monospace;
  font-size: 0.83rem;
  letter-spacing: 0.04em;
  line-height: 1.55;
}
.scan-gallery {
  columns: 3 280px;
  column-gap: 22px;
  padding: 24px;
  border: 1px solid rgba(240, 155, 87, 0.22);
  background:
    repeating-linear-gradient(0deg, transparent 0 21px, rgba(240, 155, 87, 0.08) 22px),
    repeating-linear-gradient(90deg, transparent 0 21px, rgba(240, 155, 87, 0.08) 22px),
    rgba(3, 2, 2, 0.64);
}
.scan-gallery img {
  width: calc(100% - 8px);
  margin: 7px 4px 18px;
  break-inside: avoid;
  border: 5px solid rgba(237, 224, 194, 0.94);
  background: #ede0c2;
  box-shadow: 0 7px 18px rgba(0,0,0,0.48), 0 0 0 1px rgba(240,155,87,0.1);
  transform: rotate(-0.35deg);
}
.scan-gallery img:nth-child(3n) { transform: rotate(0.42deg); }
.scan-gallery img:nth-child(4n) { transform: rotate(-0.12deg); }
.site-footer { display: flex; justify-content: space-between; gap: 18px; width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 34px 0 42px; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer p { margin: 0; }
.site-footer a { color: var(--text); text-decoration: none; }
@media (max-width: 900px) {
  .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .fashion-hero { min-height: 76vh; }
  .directory-grid, .featured-gallery { grid-template-columns: 1fr; }
  .directory-card { min-height: 290px; }
  .project-heading { display: block; }
  .singularity-board-gallery, .retro-board-gallery, .singularity-editorial-gallery, .singularity-narrative-gallery { grid-template-columns: 1fr; padding: 10px; }
  .retro-sketch-gallery { grid-template-columns: 1fr; padding: 10px; }
  .chapter-gallery, .drape-gallery { grid-template-columns: 1fr; padding: 10px; }
  .site-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .is-expanded > .collection-content img { animation: none; }
}
