:root {
  --bg: #050505;
  --fg: #efefeb;
  --muted: #7f817c;
  --line: rgba(239, 239, 235, 0.17);
  --line-strong: rgba(239, 239, 235, 0.38);
  --accent: #b9d7ff;
  --panel: rgba(7, 7, 7, 0.94);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; width: 100%; min-height: 100%; background: var(--bg); }

body {
  min-height: 100dvh;
  overflow: hidden;
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

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

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

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: .78;
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.21'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

.site-shell {
  position: relative;
  z-index: 2;
  width: 100vw;
  height: 100dvh;
  isolation: isolate;
}

.corner {
  position: fixed;
  width: 18px;
  height: 18px;
  pointer-events: none;
  border-color: var(--line-strong);
  border-style: solid;
}
.corner.tl { top: 16px; left: 16px; border-width: 1px 0 0 1px; }
.corner.tr { top: 16px; right: 16px; border-width: 1px 1px 0 0; }
.corner.bl { bottom: 16px; left: 16px; border-width: 0 0 1px 1px; }
.corner.br { bottom: 16px; right: 16px; border-width: 0 1px 1px 0; }

.topbar {
  position: fixed;
  top: 21px;
  left: 42px;
  right: 42px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  z-index: 20;
}

.brand { font-weight: 700; letter-spacing: .32em; }
.top-meta { display: flex; align-items: center; gap: 22px; color: var(--muted); }
.live-dot { display: inline-flex; align-items: center; gap: 7px; }
.live-dot i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 9px var(--accent); }

.hero {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.hero-word {
  position: absolute;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: clamp(92px, 14vw, 270px);
  line-height: .72;
  font-weight: 800;
  letter-spacing: -.07em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--fg);
  user-select: none;
  pointer-events: none;
}
.hero-word--top { top: 13.5%; z-index: 1; }
.hero-word--bottom { bottom: 12.2%; z-index: 5; }

.portrait-wrap {
  position: relative;
  z-index: 3;
  width: min(35vw, 520px);
  height: min(62vh, 700px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(239,239,235,.23);
  background: #090909;
  transform: translateZ(0);
}

.portrait {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: scale(1.02);
  transition: transform 800ms cubic-bezier(.2,.8,.2,1), filter 600ms ease;
}

.portrait--base {
  filter: grayscale(1) contrast(1.19) brightness(.72);
}

.portrait--color {
  filter: saturate(.75) contrast(1.05) brightness(.92) hue-rotate(7deg);
  clip-path: circle(145px at var(--mx, 50%) var(--my, 50%));
  opacity: .86;
  will-change: clip-path;
}

.portrait-wrap:hover .portrait { transform: scale(1.055); }
.portrait-wrap:hover .portrait--base { filter: grayscale(1) contrast(1.22) brightness(.64); }

.portrait-grid {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(255,255,255,.17) 50%, transparent calc(50% + .5px)),
    linear-gradient(transparent calc(50% - .5px), rgba(255,255,255,.17) 50%, transparent calc(50% + .5px));
  mix-blend-mode: screen;
  opacity: .42;
}

.portrait-wrap::before,
.portrait-wrap::after {
  content: "";
  position: absolute;
  z-index: 4;
  pointer-events: none;
  width: 34px;
  height: 34px;
}
.portrait-wrap::before { left: 10px; top: 10px; border-left: 1px solid var(--fg); border-top: 1px solid var(--fg); }
.portrait-wrap::after { right: 10px; bottom: 10px; border-right: 1px solid var(--fg); border-bottom: 1px solid var(--fg); }

figcaption {
  position: absolute;
  z-index: 6;
  left: 12px;
  right: 12px;
  bottom: 10px;
  display: block;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}

.hero-copy {
  position: absolute;
  z-index: 6;
  left: calc(50% + min(21vw, 310px));
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.8;
  letter-spacing: .13em;
  color: var(--muted);
  white-space: nowrap;
}

.release {
  position: fixed;
  left: 42px;
  top: 50%;
  transform: translateY(-50%);
  width: 128px;
  z-index: 10;
  font-family: var(--mono);
}
.release-kicker { display: block; margin-bottom: 12px; font-size: 8px; letter-spacing: .2em; color: var(--muted); }
.release a { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 9px 0; }
.release strong { font-size: 11px; letter-spacing: .2em; }
.release small { font-size: 8px; color: var(--muted); }
.release a:hover strong { color: var(--accent); }

.links {
  position: fixed;
  left: 42px;
  bottom: 45.5px;
  z-index: 20;
  display: flex;
  gap: 20px;
  align-items: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .15em;
}
.links a { color: var(--muted); transition: color 180ms ease; }
.links a span { display: inline-block; transition: transform 180ms ease; }
.links a:hover { color: var(--fg); }
.links a:hover span { transform: translate(2px,-2px); }

.info-button,
.gallery-button {
  position: fixed;
  right: 42px;
  bottom: 42px;
  z-index: 20;
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  line-height: 1;
}
.gallery-button { right: 116px; }
.info-button .plus,
.gallery-button .plus { font-size: 18px; font-weight: 300; line-height: 1; transition: transform 250ms ease; }
.info-button:hover .plus,
.gallery-button:hover .plus { transform: rotate(90deg); color: var(--accent); }

.gallery-panel {
  position: fixed;
  z-index: 45;
  inset: 0;
  padding: 72px 42px 52px;
  background: rgba(5, 5, 5, .97);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 280ms ease, transform 420ms cubic-bezier(.2,.8,.2,1), visibility 0s linear 420ms;
  overflow-y: auto;
}
.gallery-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
.gallery-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 42px;
  border-top: 1px solid var(--line-strong);
  padding-top: 14px;
}
.gallery-index { font-family: var(--mono); color: var(--muted); font-size: 8px; letter-spacing: .22em; }
.gallery-header h2 { margin: 10px 0 0; font-size: clamp(34px, 4vw, 64px); line-height: .95; letter-spacing: -.055em; }
.close-gallery {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  font-size: 28px;
  font-weight: 200;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 18px;
  max-width: 1400px;
  margin: 0 auto;
}
.gallery-item { margin: 0; min-width: 0; }
.gallery-item img,
.gallery-item video {
  display: block;
  width: 100%;
  height: min(72vh, 760px);
  border: 1px solid var(--line);
  background: #090909;
  object-fit: cover;
}
.gallery-item--video video { object-fit: contain; }
.gallery-item--wide { grid-column: 1 / -1; }
.gallery-item--wide img { height: auto; max-height: 82vh; }
.gallery-item figcaption {
  position: static;
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  color: var(--muted);
}

.info-panel {
  position: fixed;
  z-index: 50;
  inset: 0 0 0 auto;
  width: min(540px, 100vw);
  padding: 80px 52px 48px;
  background: var(--panel);
  border-left: 1px solid var(--line-strong);
  backdrop-filter: blur(18px);
  transform: translateX(102%);
  transition: transform 520ms cubic-bezier(.76,0,.24,1);
  overflow-y: auto;
  will-change: transform;
}
.info-panel.is-open { transform: translateX(0); }
.close-info {
  position: absolute;
  top: 20px;
  right: 22px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 28px;
  font-weight: 200;
}
.info-index { font-family: var(--mono); color: var(--muted); font-size: 8px; letter-spacing: .22em; margin-bottom: 55px; }
.info-content h2 { margin: 0 0 22px; font-size: clamp(44px, 5vw, 72px); line-height: .9; letter-spacing: -.055em; }
.info-content p { margin: 0 0 24px; color: #a8aaa5; font-size: 13px; line-height: 1.65; max-width: 44ch; }
.info-content .lead { color: var(--fg); font-size: 18px; line-height: 1.45; }
.info-facts { margin-top: 48px; border-top: 1px solid var(--line); }
.info-facts div { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 90px 1fr; gap: 18px; }
.info-facts span { font-family: var(--mono); font-size: 8px; letter-spacing: .17em; color: var(--muted); }
.info-facts strong { font-family: var(--mono); font-size: 9px; font-weight: 400; line-height: 1.6; letter-spacing: .08em; }
.footer {
  position: fixed;
  bottom: 30px;
  left: 42px;
  right: 42px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: .18em;
  color: #41423f;
  pointer-events: none;
}

.footer span:first-child { position: absolute; left: 0; }
.footer span:last-child { position: absolute; right: 0; }

.wennor-credit {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 23px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transform: translateX(-50%);
  color: #555652;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: .18em;
  white-space: nowrap;
  transition: color 180ms ease;
}

.wennor-mark {
  position: relative;
  display: block;
  width: 8px;
  height: 8px;
  overflow: hidden;
  flex: 0 0 8px;
}

.wennor-mark img {
  position: absolute;
  top: -.75px;
  left: -1.4px;
  width: 9.75px;
  height: 9.75px;
  max-width: none;
}

.wennor-credit:hover,
.wennor-credit:focus-visible { color: var(--fg); }
.wennor-credit:focus-visible { outline: 1px solid var(--line-strong); outline-offset: 4px; }

@media (max-width: 900px) {
  .top-meta span:nth-child(2) { display: none; }
  .portrait-wrap { width: min(52vw, 470px); height: min(59vh, 650px); }
  .hero-copy { display: none; }
  .release { display: none; }
  .hero-word { font-size: clamp(84px, 19vw, 190px); }
}

@media (max-width: 640px) {
  body { overflow: hidden; }
  .topbar { left: 28px; right: 28px; }
  .top-meta { gap: 11px; }
  .top-meta span:first-child { display: none; }
  .brand { letter-spacing: .22em; }
  .portrait-wrap { width: 70vw; height: 56vh; }
  .hero-word { font-size: 25vw; }
  .hero-word--top { top: 17.5%; }
  .hero-word--bottom { bottom: 18%; }
  .links {
    left: 28px;
    right: 28px;
    bottom: 76px;
    max-width: none;
    flex-wrap: nowrap;
    column-gap: 18px;
  }
  .links a span { display: none; }
  .info-button,
  .gallery-button {
    bottom: 38px;
    min-height: 20px;
  }
  .info-button { right: 28px; }
  .gallery-button { right: 98px; }
  .wennor-credit { left: 28px; bottom: 23px; transform: none; }
  .info-button .plus,
  .gallery-button .plus { width: 12px; text-align: center; }
  .footer { left: 28px; right: 28px; }
  .footer span:first-child { display: none; }
  .info-panel { padding: 72px 28px 40px; }
  .gallery-panel { padding: 64px 18px 42px; }
  .gallery-header { margin-bottom: 28px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 38px; }
  .gallery-item--wide { grid-column: auto; }
  .gallery-item img,
  .gallery-item video { height: auto; max-height: 76vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
  #field { display: none; }
}
