:root {
  --bg: #0c0c0c;
  --fg: #efece6;
  --muted: rgba(239, 236, 230, 0.62);
  --faint: rgba(239, 236, 230, 0.38);
  --line: rgba(239, 236, 230, 0.18);
  --serif: "Bodoni Moda", "Didot", "Bodoni MT", "Times New Roman", serif;
  --sans: "Outfit", "Avenir Next", "Helvetica Neue", sans-serif;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --topbar: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: #3a3a3a var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1,
h2,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

.skip {
  position: absolute;
  left: var(--pad);
  top: 0.75rem;
  z-index: 100;
  transform: translateY(-150%);
  background: var(--fg);
  color: var(--bg);
  padding: 0.4rem 0.7rem;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

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

.wrap {
  width: min(1120px, calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
}

.index {
  margin: 0 0 1.25rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar);
  padding: 0 var(--pad);
  padding-top: env(safe-area-inset-top);
  height: calc(var(--topbar) + env(safe-area-inset-top));
}

.topbar.is-scrolled {
  background: rgba(12, 12, 12, 0.88);
  backdrop-filter: blur(10px);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.lang-switch button {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--faint);
}

.lang-switch button.is-active {
  color: var(--fg);
}

.wordmark,
.menu-button {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
}

.menu-button .when-open {
  display: none;
}

body.is-menu-open .menu-button .when-closed {
  display: none;
}

body.is-menu-open .menu-button .when-open {
  display: inline;
}

.menu-button:focus-visible,
.wordmark:focus-visible,
.lang-switch button:focus-visible,
a:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 4px;
}

@media (max-width: 420px) {
  .wordmark {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .topbar-actions {
    gap: 0.9rem;
  }
}

.nav-panel {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: flex-end;
  background: var(--bg);
  padding: calc(var(--topbar) + 8vh) var(--pad) 12vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

body.is-menu-open .nav-panel {
  opacity: 1;
  visibility: visible;
}

.nav-panel nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.nav-panel a {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-panel a span:first-child {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--faint);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--topbar) + 1rem) var(--pad) calc(4.5rem + env(safe-area-inset-bottom));
  overflow: hidden;
}

.hero > .media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}

.hero > .media img {
  filter: grayscale(1) contrast(1.05);
  object-position: center 18%;
}

.hero > .media img.hero-wash {
  display: none;
}

/* A portrait cannot fill a wide window without cutting the head.
   Fit the whole frame there, with the same picture blurred behind it.
   Narrow screens stay full-bleed. */
@media (min-aspect-ratio: 1 / 1) {
  .hero > .media img.hero-wash {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    object-fit: cover;
    object-position: center center;
    filter: grayscale(1) blur(46px) brightness(0.38) contrast(1.08);
    transform: scale(1.16);
    -webkit-mask-image: radial-gradient(ellipse 62% 78% at center, #000 28%, transparent 74%);
    mask-image: radial-gradient(ellipse 62% 78% at center, #000 28%, transparent 74%);
  }

  .hero > .media img.hero-plate {
    position: relative;
    z-index: 1;
    object-fit: contain;
    object-position: center center;
  }
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to top, rgba(12, 12, 12, 0.86) 0%, rgba(12, 12, 12, 0.08) 46%, rgba(12, 12, 12, 0.28) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 100%;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 8.4vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
}

.role {
  margin-top: 1.1rem;
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.manifesto {
  margin-top: 0.85rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.15;
}

.house {
  margin-top: 1.75rem;
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--faint);
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  width: 1px;
  height: 2.4rem;
  transform: translateX(-50%);
}

.scroll-line {
  display: block;
  width: 1px;
  height: 100%;
  background: var(--fg);
  transform-origin: top;
  animation: cue 2.4s ease-in-out infinite;
}

@keyframes cue {
  0% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
  }
  35% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }
  70% {
    transform: scaleY(0);
    transform-origin: bottom;
    opacity: 1;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
    opacity: 0;
  }
}

.media {
  position: relative;
  overflow: hidden;
  background: #111;
  aspect-ratio: 3 / 4;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.05);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/grain.svg");
  background-size: 180px 180px;
  opacity: 0.28;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.work {
  padding-top: clamp(5rem, 12vh, 8rem);
}

.section-intro h2 {
  max-width: 11em;
}

.lookbook {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
}

.shot {
  position: relative;
  margin: 0;
}

.lookbook .media {
  aspect-ratio: 2 / 3;
}

.lookbook .media img {
  filter: none;
  object-fit: contain;
}

.lookbook .media {
  background: var(--bg);
}

/* Keep a plate inside the window on a wide screen.
   On a phone, 100% width is already shorter than the screen. */
.shot--full {
  width: min(100%, calc(90svh * 2 / 3));
  margin-inline: auto;
}

.shot-row {
  width: min(100%, calc(82svh * 2 / 3 * 2 / 1.15));
  margin-inline: auto;
}

.lookbook .media.media--square {
  aspect-ratio: 1 / 1;
}

.reel img {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.reel img.is-on {
  opacity: 1;
}

.reel-nav {
  position: absolute;
  z-index: 3;
  right: 1.15rem;
  bottom: 1.05rem;
  display: flex;
  gap: 0.4rem;
}

.reel-dot {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  border: 1px solid rgba(239, 236, 230, 0.78);
  background: rgba(12, 12, 12, 0.35);
  color: var(--fg);
  font-size: 0.62rem;
  line-height: 1;
  letter-spacing: 0;
  backdrop-filter: blur(8px);
}

.reel-dot.is-on {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.reel-dot:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .lookbook .reel img {
    transition: opacity 2.8s cubic-bezier(0.45, 0.05, 0.2, 1), transform 1.8s ease;
  }

  .reel-dot {
    transition: background 0.6s ease, color 0.6s ease, border-color 0.6s ease;
  }
}

.lookbook .media::after {
  display: none;
}

.shot--full .media {
  aspect-ratio: 2 / 3;
}

.shot figcaption {
  position: absolute;
  z-index: 2;
  left: var(--pad);
  bottom: 1.1rem;
  display: flex;
  gap: 0.75rem;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.shot figcaption span:first-child {
  color: var(--faint);
}

.shot .media::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 28%;
  background: linear-gradient(to top, rgba(12, 12, 12, 0.55), transparent);
}

.essay,
.press,
.contact {
  padding: clamp(6.5rem, 16vh, 11rem) 0;
}

.essay-portrait {
  margin: 0 0 2.5rem;
}

.essay-portrait img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(1) contrast(1.04);
}

.essay-grid h2 {
  font-style: italic;
  font-size: clamp(3rem, 7vw, 6.2rem);
  max-width: 10ch;
}

.essay-body {
  max-width: 36rem;
  margin-top: 2rem;
  color: var(--muted);
}

.essay-body p + p {
  margin-top: 1rem;
}

.house-shot .media {
  aspect-ratio: 1024 / 682;
  min-height: 0;
}

.house-shot .media::before {
  display: none;
}

.house-shot img {
  object-position: center center;
}

.atelier-band {
  margin-top: 0.45rem;
}

.atelier-band .media {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.atelier-band img {
  object-position: center 42%;
}

.house-copy {
  padding: clamp(2.25rem, 6vh, 4rem) var(--pad) clamp(2.5rem, 7vh, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.house-copy h2 {
  font-style: italic;
  max-width: 8em;
}

.house-copy p {
  max-width: 34rem;
  margin-top: 1.5rem;
  color: var(--muted);
}

.house-place {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--fg) !important;
}

.press-list {
  margin-top: clamp(2.5rem, 6vh, 4rem);
}

.press-list a {
  display: grid;
  grid-template-columns: 3.4rem 1fr auto;
  grid-template-areas:
    "year pub arrow"
    "year piece arrow";
  column-gap: 1rem;
  row-gap: 0.15rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.press-list li:last-child a {
  border-bottom: 1px solid var(--line);
}

.year {
  grid-area: year;
  color: var(--faint);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.pub {
  grid-area: pub;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 400;
}

.piece {
  grid-area: piece;
  color: var(--muted);
}

.arrow {
  grid-area: arrow;
  color: var(--faint);
}

.press-list a:hover .piece,
.contact-links a:hover {
  color: var(--fg);
}

.contact-lead {
  max-width: 22rem;
  margin-top: 1.5rem;
  color: var(--muted);
}

.contact-links {
  margin-top: 2.25rem;
}

.contact-links a {
  display: inline-block;
  margin: 0.35rem 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--muted);
}

address {
  margin-top: 2.5rem;
  font-style: normal;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.colophon {
  padding: 0 0 calc(2rem + env(safe-area-inset-bottom));
}

.colophon-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.colophon a {
  text-decoration: none;
}

@media (min-width: 800px) {
  .shot--full .media {
    aspect-ratio: 2 / 3;
  }

  .shot-row {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 0.45rem;
    align-items: start;
  }

  .shot-row .shot:last-child {
    margin-top: 16vh;
  }

  .shot-row--reverse {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .shot-row--reverse .shot:first-child {
    margin-top: 16vh;
  }

  .shot-row--reverse .shot:last-child {
    margin-top: 0;
  }

  .essay-grid {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    column-gap: clamp(2rem, 5vw, 5rem);
    align-items: end;
  }

  .essay-portrait {
    margin: 0;
  }

  .essay-body {
    max-width: none;
  }

  .house-shot .media::before {
    display: block;
    inset: 0;
    height: auto;
    background:
      linear-gradient(to top, rgba(12, 12, 12, 0.9) 0%, rgba(12, 12, 12, 0.4) 42%, transparent 70%),
      linear-gradient(to right, rgba(12, 12, 12, 0.55) 0%, transparent 62%);
  }

  .house-shot .house-copy {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 46rem;
    padding: clamp(1.75rem, 4vh, 3rem) var(--pad) clamp(1.5rem, 4vh, 2.75rem);
  }

  .atelier-band .media {
    aspect-ratio: 2.2 / 1;
    min-height: 0;
  }

  .press-list a {
    grid-template-columns: 4.5rem minmax(12rem, 16rem) 1fr auto;
    grid-template-areas: "year pub piece arrow";
    align-items: center;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .media img {
    transition: transform 1.4s ease;
  }

  .shot:hover img {
    transform: scale(1.035);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-line {
    animation: none;
    opacity: 0.7;
  }

  .nav-panel,
  .media img,
  .reel-dot {
    transition: none;
  }
}
