/* White Balenciaga base · Virgil quoted labels and lists · one dark Rick Owens section */

:root {
  --paper: #ffffff;
  --ink: #000000;
  --mute: #6b6b6b;
  --rule: #000000;
  --dark: #0b0b0b;
  --dark-ink: #d9d6d0;
  --dark-mute: #7d7a74;
  --gutter: clamp(16px, 2.2vw, 32px);
  --bar-h: 56px;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--bar-h);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

::selection {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Top bar ---------- */

.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  background: var(--paper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}

.bar.on-dark {
  background: var(--dark);
  color: var(--dark-ink);
}

.bar-nav {
  display: flex;
  gap: clamp(12px, 2.5vw, 32px);
}

/* ---------- Hero ---------- */

.hero {
  padding: calc(var(--bar-h) + 8px) var(--gutter) 0;
}

.hero-name {
  margin: 0;
  font-size: 14vw; /* main.js fits this to the full width */
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-sub {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 var(--gutter);
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Full-width campaign photo, framed so head to shoes stay in view */
.hero-split {
  display: flex;
  flex-direction: column;
  gap: var(--gutter);
  margin-top: var(--gutter);
}

.hero-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 88%;
}

.block-side {
  display: flex;
  flex-direction: column;
  gap: var(--gutter);
}

.about-img {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.hero-caption {
  margin: 0;
  font-size: clamp(32px, 5.6vw, 96px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

/* Empty image slot */
.slot {
  display: grid;
  place-items: center;
  background: #efefef;
  color: var(--mute);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

/* ---------- Text blocks ---------- */

.block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--gutter);
  padding: clamp(64px, 10vw, 160px) var(--gutter);
}

.label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.block-body {
  max-width: 760px;
}

.block-body p {
  margin: 0 0 1.1em;
  font-size: 17px;
}

.block-body .lead {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1em;
}

.sublabel {
  margin: 56px 0 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.sublabel:first-child {
  margin-top: 0;
}

/* Virgil-style numbered list */
.rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #dcdcdc;
}

.row-n,
.row-date {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--mute);
}

.row-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.row-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.row-org {
  color: var(--mute);
}

.row-summary {
  margin-top: 6px;
}

.skills {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.03em;
}

.download {
  display: inline-block;
  margin-top: 48px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* ---------- Dark section (Rick Owens) ---------- */

.dark {
  position: relative;
  isolation: isolate;
  background: var(--dark);
  color: var(--dark-ink);
  padding: clamp(64px, 10vw, 160px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas:
    "img quote"
    "img figures";
  gap: clamp(32px, 5vw, 80px) var(--gutter);
  align-items: end;
  overflow: hidden;
}

/* Film grain */
.dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.dark-img {
  grid-area: img;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15) brightness(0.85);
}

.dark .slot {
  background: #1a1a1a;
  color: var(--dark-mute);
}

.dark-quote {
  grid-area: quote;
  margin: 0;
  font-size: clamp(32px, 5.2vw, 84px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.figures {
  grid-area: figures;
  list-style: none;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid #333;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 24px;
}

.figure {
  display: block;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.figure-label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--dark-mute);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Contact ---------- */

.contact {
  padding: clamp(64px, 10vw, 160px) var(--gutter);
  border-top: 1px solid var(--rule);
}

.contact-cta {
  margin: 24px 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
}

.contact-email {
  display: inline-block;
  max-width: 100%;
  font-size: clamp(28px, 6.5vw, 112px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.contact-links {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Footer ---------- */

.foot {
  display: flex;
  justify-content: space-between;
  padding: 20px var(--gutter);
  border-top: 1px solid var(--rule);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Small screens ---------- */

@media (max-width: 760px) {
  .block {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .dark {
    grid-template-columns: 1fr;
    grid-template-areas:
      "quote"
      "img"
      "figures";
  }

  .hero-sub {
    flex-direction: column;
    gap: 4px;
  }

  .hero-img {
    aspect-ratio: 3 / 4;
    object-position: 0% 70%;
  }

  .hero-caption {
    font-size: clamp(28px, 9vw, 40px);
  }

  .row {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .row-date {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .row-main {
    grid-column: 2;
  }

  /* The giant hero name already says who this is; keep the bar to the nav. */
  .bar-name {
    display: none;
  }

  .bar {
    justify-content: flex-end;
  }
}
