/* ==========================================================================
   Mikai Stewart — portfolio
   ========================================================================== */

:root {
  --ink: #0b0b0b;
  --paper: #fcfcfb;
  --muted: #86868b;
  --line: rgba(11, 11, 11, 0.12);
  --accent: #c8102e;

  --gutter: clamp(16px, 3.4vw, 52px);
  --band-h: clamp(76px, 12vh, 128px);
  --gap: 6px;
  --bar-h: 58px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);

  --font: 'Jost', 'Futura', 'Avenir Next', 'Helvetica Neue', system-ui, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--ink); color: var(--paper); }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

html.is-loading { overflow: hidden; }

/* --------------------------------------------------------------------------
   Shared type
   -------------------------------------------------------------------------- */

.kicker {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.kicker__num { color: var(--accent); font-weight: 400; letter-spacing: 0.08em; }

.title {
  font-weight: 300;
  font-size: clamp(48px, 6.4vw, 108px);
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin: 20px 0 22px;
}

.meta {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.arrow {
  width: 0.62em;
  height: 0.62em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  flex: none;
  transition: transform 0.7s var(--ease-out);
}
a:hover .arrow { transform: translate(2px, -2px); }

.link-arrow { display: inline-flex; align-items: center; gap: 0.45em; }

/* Rolling text (counters, units) */
.roll {
  display: inline-block;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: top;
}
.roll__in, .roll__out { display: inline-block; white-space: nowrap; }
.roll__out { position: absolute; left: 0; top: 0; }
.roll__in > span, .roll__out > span { display: inline-block; }

/* --------------------------------------------------------------------------
   Photo holder: blurred placeholder → image
   -------------------------------------------------------------------------- */

.ph {
  display: block;
  position: relative;
  overflow: hidden;
  background-color: var(--c, #ddd);
  isolation: isolate;
}
.ph::before {
  content: '';
  position: absolute;
  inset: -12%;
  background: var(--lq) center / cover no-repeat;
  filter: blur(18px);
  z-index: -1;
}
.ph__inner {
  display: block;
  position: absolute;
  inset: 0;
  transform-origin: 50% 20%;
}
/* Parallax layers are oversized just enough to drift. Extra crop is biased
   toward the bottom of the photo so heads stay in frame. */
.ph__inner--h { inset: 0 -5%; }
.ph__inner--h img { object-position: 50% 30%; }
.ph__inner--v { inset: -2% 0 -10%; }
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease, transform 1.4s var(--ease-out);
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}
.ph img.is-loaded { opacity: 1; }

/* --------------------------------------------------------------------------
   Intro
   -------------------------------------------------------------------------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  color: #fff;
}
.intro__foot {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(18px, 4vh, 40px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.intro__count {
  font-size: clamp(44px, 7vw, 112px);
  font-weight: 300;
  line-height: 0.8;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.intro-layer {
  position: fixed;
  inset: 0;
  z-index: 91;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.intro-layer--name { z-index: 92; mix-blend-mode: difference; }

.intro-frame {
  position: relative;
  height: min(44vh, 60vw);
  aspect-ratio: 2 / 3;
  clip-path: inset(100% 0 0 0);
}
.intro-frame .ph { position: absolute; inset: 0; visibility: hidden; }
.intro-frame .ph.is-on { visibility: visible; }

.intro-name {
  color: #fff;
  font-weight: 300;
  font-size: clamp(30px, 9.4vw, 190px);
  line-height: 1;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Custom cursor
   -------------------------------------------------------------------------- */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  pointer-events: none;
  transform: scale(0);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cursor__label { display: block; padding-left: 0.14em; }

@media (hover: hover) and (pointer: fine) {
  .has-cursor [data-cursor],
  .has-cursor [data-cursor] * { cursor: none; }
}
@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

/* --------------------------------------------------------------------------
   Compact bar
   -------------------------------------------------------------------------- */

.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--bar-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--gutter);
  background: rgba(252, 252, 251, 0.86);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-101%);
}
.bar__name {
  justify-self: start;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bar__cta {
  justify-self: end;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.bar { transition: background-color 0.6s ease, color 0.6s ease, border-color 0.6s ease; }
.bar.is-dark {
  background: rgba(11, 11, 11, 0.72);
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
.lb-open .bar { visibility: hidden; }

/* --------------------------------------------------------------------------
   Tabs (shared by hero nav and bar)
   -------------------------------------------------------------------------- */

.tabs {
  position: relative;
  display: flex;
  gap: clamp(18px, 2.3vw, 34px);
}
.tab {
  position: relative;
  padding: 4px 0 9px;
  font-size: 15px;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  opacity: 0.5;
  transition: opacity 0.5s ease;
  white-space: nowrap;
}
.tab:hover, .tab.is-active { opacity: 1; }
.tabs--bar .tab { font-size: 13px; padding: 4px 0 7px; }
.tabs__line {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 2px;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

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

.hero {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
}

.band {
  flex: none;
  height: var(--band-h);
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
}
.band__name {
  font-weight: 300;
  font-size: clamp(30px, 4.3vw, 70px);
  line-height: 1;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  white-space: nowrap;
}
.is-loading .band__name { visibility: hidden; }

.nav {
  flex: none;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  row-gap: 14px;
  padding: 22px var(--gutter) 18px;
  background: var(--paper);
  box-shadow: 0 12px 22px -20px rgba(0, 0, 0, 0.35);
}

.nav__ig {
  justify-self: start;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.units {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.units__opt { opacity: 0.4; transition: opacity 0.5s ease; }
.units__opt.is-on { opacity: 1; }
.units__track {
  position: relative;
  width: 30px;
  height: 16px;
  border: 1px solid currentColor;
  border-radius: 99px;
}
.units__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  transition: transform 0.7s var(--ease-out);
}
.units[aria-pressed='true'] .units__knob { transform: translateX(14px); }

.stats {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px clamp(14px, 1.5vw, 22px);
  font-size: 14.5px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.stat {
  display: flex;
  align-items: center;
  gap: 0.38em;
  white-space: nowrap;
  line-height: 1.3;
}
.stat dt { font-weight: 500; }
.stat dd { font-weight: 300; }

/* Controls row */
.controls {
  flex: none;
  display: grid;
  grid-template-columns: 1fr minmax(0, 1.6fr) 1fr;
  align-items: center;
  gap: 28px;
  padding: 22px var(--gutter) 16px;
}
.counter {
  display: flex;
  align-items: center;
  gap: 0.55em;
  font-size: 12px;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.6s ease;
}
.counter__sep { opacity: 0.35; }
.progress {
  position: relative;
  height: 1px;
  background: var(--line);
  overflow: hidden;
  transition: opacity 0.6s ease;
}
.progress__bar {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.view {
  justify-self: end;
  position: relative;
  display: flex;
  gap: 20px;
}
.view__btn {
  padding: 2px 0 7px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.4;
  transition: opacity 0.5s ease;
}
.view__btn.is-on, .view__btn:hover { opacity: 1; }
.view__line {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  background: var(--ink);
  transform-origin: 0 50%;
}

/* Filmstrip */
.strip {
  position: relative;
  flex: 1;
  min-height: 0;
}
.strip__viewport {
  position: absolute;
  top: 0;
  bottom: clamp(18px, 3.4vh, 36px);
  left: var(--gutter);
  right: var(--gutter);
  overflow: hidden;
  touch-action: pan-y;
  outline: none;
}
.strip__viewport:focus-visible { outline: 1px solid var(--accent); outline-offset: 6px; }
.strip__track {
  display: flex;
  gap: var(--gap);
  height: 100%;
  will-change: transform;
}
.tile {
  position: relative;
  flex: none;
  height: 100%;
  aspect-ratio: 2 / 3;
}
.tile__btn {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}
.tile .ph { position: absolute; inset: 0; }
.tile__btn:hover .ph img,
.fig__btn:hover .ph img { transform: scale(1.035); }
.tile__num {
  position: absolute;
  left: 10px;
  bottom: 9px;
  z-index: 1;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.14em;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.is-grid .tile__num { opacity: 1; }

.strip__arrow {
  position: absolute;
  top: calc(50% - clamp(9px, 1.7vh, 18px));
  z-index: 2;
  width: var(--gutter);
  height: 72px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  transition: opacity 0.5s ease;
}
.strip__arrow--prev { left: 0; }
.strip__arrow--next { right: 0; }
.strip__arrow svg {
  width: 10px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  transition: transform 0.6s var(--ease-out);
}
.strip__arrow--prev:hover svg { transform: translateX(-3px); }
.strip__arrow--next:hover svg { transform: translateX(3px); }
.strip__arrow[disabled] { opacity: 0.2; cursor: default; }

/* Index (grid) view */
.hero.is-grid { height: auto; }
.hero.is-grid .strip { flex: none; padding-bottom: clamp(18px, 3.4vh, 36px); }
.hero.is-grid .strip__viewport { position: relative; inset: auto; margin: 0 var(--gutter); }
.hero.is-grid .strip__track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  height: auto;
}
.hero.is-grid .tile { height: auto; width: 100%; }
.hero.is-grid .strip__arrow,
.hero.is-grid .progress,
.hero.is-grid .counter { opacity: 0; pointer-events: none; }

/* --------------------------------------------------------------------------
   Statement
   -------------------------------------------------------------------------- */

.statement {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 24px var(--gutter);
  padding: clamp(110px, 20vh, 230px) var(--gutter) clamp(110px, 18vh, 210px);
}
.statement .kicker { padding-top: 0.9em; }
.statement__text {
  font-weight: 300;
  font-size: clamp(28px, 3.7vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.012em;
  max-width: 21ch;
}

/* --------------------------------------------------------------------------
   Figures
   -------------------------------------------------------------------------- */

.fig { position: relative; }
.fig__btn { display: block; width: 100%; text-align: left; }
.fig .ph { aspect-ratio: 2 / 3; }
.fig figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.fig figcaption span:first-child { color: var(--ink); letter-spacing: 0.14em; }

/* 01 — Guayabera ----------------------------------------------------------- */

.sa {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--gutter);
  padding: 0 var(--gutter) clamp(140px, 24vh, 280px);
}
.sa__head {
  position: sticky;
  top: calc(var(--bar-h) + 12vh);
  align-self: start;
}
.sa__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2vw, 30px);
}
.sa__col {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 5vw, 72px);
}
.sa__col--offset { padding-top: 26vh; }

/* 02 — Studio -------------------------------------------------------------- */

.studio__pin {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--paper);
}
.studio__frame {
  position: absolute;
  inset: 0;
  clip-path: inset(50% 50% 50% 50%);
}
.studio__frame .ph {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
}
.studio__frame .ph img { object-position: 50% 50%; }
.studio__title {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr var(--fw, 300px) 1fr;
  grid-template-areas: 'l . r';
  align-items: center;
  column-gap: 3.2vw;
  margin: 0;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  font-weight: 300;
  font-size: clamp(44px, 8.4vw, 150px);
  line-height: 1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.studio__word { display: block; }
.studio__word--l { grid-area: l; justify-self: end; }
.studio__word--r { grid-area: r; justify-self: start; }
.studio__kicker {
  position: absolute;
  left: var(--gutter);
  top: calc(var(--bar-h) + 28px);
}
.studio__caption {
  position: absolute;
  left: var(--gutter);
  bottom: 28px;
  color: #fff;
  mix-blend-mode: difference;
  opacity: 0;
}
.studio__hint {
  position: absolute;
  right: var(--gutter);
  bottom: 28px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.studio__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 30px);
  padding: clamp(90px, 14vh, 170px) var(--gutter) clamp(40px, 8vh, 100px);
}
.studio__row .fig:nth-child(even) { margin-top: 14vh; }

/* 03 — Denim --------------------------------------------------------------- */

.denim__pin {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.denim__word {
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -0.4em;
  white-space: nowrap;
  font-weight: 300;
  font-size: 36vw;
  line-height: 0.8;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(11, 11, 11, 0.09);
  pointer-events: none;
}
.denim__track {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 90px);
  height: 100%;
  padding: 0 12vw 0 var(--gutter);
  width: max-content;
  will-change: transform;
}
.denim__head { flex: none; width: clamp(260px, 30vw, 460px); }
.denim__track .fig { flex: none; }
.denim__track .ph { height: var(--h, 60vh); aspect-ratio: 2 / 3; }
.denim__track .fig:nth-of-type(4n + 1) { --h: 64vh; align-self: flex-start; margin-top: 12vh; }
.denim__track .fig:nth-of-type(4n + 2) { --h: 46vh; align-self: flex-end; margin-bottom: 14vh; }
.denim__track .fig:nth-of-type(4n + 3) { --h: 56vh; }
.denim__track .fig:nth-of-type(4n + 4) { --h: 70vh; align-self: flex-end; margin-bottom: 8vh; }
.denim__progress {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 26px;
  height: 1px;
  background: var(--line);
}
.denim__progress span {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* 04 — Suede --------------------------------------------------------------- */

.suede { padding: clamp(140px, 24vh, 280px) var(--gutter) clamp(120px, 20vh, 240px); }
.suede__head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  column-gap: var(--gutter);
}
.suede__head .kicker { grid-column: 1 / -1; }
.suede__head .title { margin-bottom: 0; }
.suede__head .meta { justify-self: end; text-align: right; padding-bottom: 6px; }
.suede__panels {
  display: flex;
  gap: var(--gap);
  height: min(80vh, 860px);
  margin-top: clamp(32px, 5vh, 56px);
}
.panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  transition: flex-grow 1.1s var(--ease-out);
}
.panel.is-open { flex-grow: 3.4; }
.panel .ph {
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--pw, 100%);
  /* Centre his face (--fx) in a narrow panel; as the panel widens this
     clamps toward 0 and pans out to the full frame. */
  left: clamp(calc(100% - var(--pw, 100%)), calc(50% - var(--fx, 0.5) * var(--pw, 100%)), 0px);
}
.panel .ph img { object-position: 50% 8%; }
.panel__num,
.panel__cap {
  position: absolute;
  bottom: 14px;
  z-index: 1;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  mix-blend-mode: difference;
  white-space: nowrap;
}
.panel__num { left: 14px; }
.panel__cap {
  right: 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.9s var(--ease-out);
}
.panel.is-open .panel__cap { opacity: 1; transform: none; transition-delay: 0.25s; }

/* --------------------------------------------------------------------------
   05 — Comp card
   -------------------------------------------------------------------------- */

.cc {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: var(--gutter);
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(110px, 16vh, 190px) var(--gutter);
}
.cc__lede { max-width: 30ch; }
.cc__hint-touch { display: none; }
@media (hover: none) {
  .cc__hint-touch { display: inline; }
  .cc__hint-fine { display: none; }
}

.downloads { margin-top: clamp(36px, 6vh, 64px); border-top: 1px solid var(--line); }
.dl {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.dl::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.9s var(--ease-out);
}
.dl:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.dl__name {
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.dl__meta {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.dl__icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  transition: transform 0.7s var(--ease-out);
}
.dl:hover .dl__icon { transform: translateY(3px); }

.cc__stage {
  display: grid;
  place-items: center;
  perspective: 1600px;
  padding: 24px 0;
}
.cc__float,
.cc__tilt { transform-style: preserve-3d; }
.card {
  position: relative;
  display: block;
  height: min(74vh, 740px);
  aspect-ratio: 5.5 / 8.5;
  transform-style: preserve-3d;
  text-align: left;
}
.card__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 4.2%;
  gap: 3.6%;
  background: #fff;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow:
    0 50px 90px -46px rgba(0, 0, 0, 0.45),
    0 1px 3px rgba(0, 0, 0, 0.08);
}
.card__back { transform: rotateY(180deg); visibility: hidden; }
.card__photo { display: block; position: relative; flex: 1; }
.card__photo .ph { position: absolute; inset: 0; }
.card__grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3%;
}
.card__grid .ph { width: 100%; height: 100%; }
.card__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  color: var(--ink);
}
.card__name {
  font-weight: 300;
  font-size: clamp(18px, 2.2vh, 26px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.card__agency {
  font-size: clamp(8px, 1vh, 10px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}
.card__foot--back { flex-direction: column; align-items: stretch; gap: 10px; }
.card__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 14px;
  font-size: clamp(8px, 1.1vh, 11px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.card__stats span { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.card__stats b { font-weight: 500; }
.card__glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--gx, 50%) var(--gy, 30%),
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0) 52%
  );
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.cc__stage:hover .card__glare { opacity: 1; }

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

.contact {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.contact__inner {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(100px, 16vh, 180px) var(--gutter) 26px;
}
.contact .meta { color: rgba(255, 255, 255, 0.55); }
.contact__list {
  margin-top: clamp(28px, 5vh, 52px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.contact__row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(0, 4fr);
  align-items: baseline;
  gap: 16px;
  padding: clamp(14px, 2.4vh, 24px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.contact__label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.contact__link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-weight: 300;
  font-size: clamp(24px, 3.9vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.contact__text {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.9s var(--ease-out);
}
.contact__link:hover .contact__text { background-size: 100% 1px; }
.contact__note { margin-top: 22px; }
.contact__note a { color: #fff; }
.contact__name {
  margin: auto auto 0;
  padding-top: clamp(80px, 12vh, 140px);
  width: max-content;
  font-weight: 300;
  font-size: 12vw;
  line-height: 0.82;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.contact__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: clamp(20px, 3vh, 32px);
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.to-top { display: inline-flex; align-items: center; gap: 10px; letter-spacing: inherit; text-transform: inherit; }
.to-top svg { width: 10px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.3; transition: transform 0.7s var(--ease-out); }
.to-top:hover { color: #fff; }
.to-top:hover svg { transform: translateY(-3px); }

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

.lb { position: fixed; inset: 0; z-index: 80; }
.lb[hidden] { display: none; }
.lb__bg { position: absolute; inset: 0; background: var(--paper); }
.lb__top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 22px var(--gutter);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lb__count { display: flex; gap: 0.55em; font-variant-numeric: tabular-nums; }
.lb__caption { text-align: center; color: var(--muted); letter-spacing: 0.08em; }
.lb__close {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: inherit;
  text-transform: inherit;
}
.lb__close svg { width: 11px; height: 11px; stroke: currentColor; stroke-width: 1.3; transition: transform 0.7s var(--ease-out); }
.lb__close:hover svg { transform: rotate(90deg); }
.lb__stage {
  position: absolute;
  top: 70px;
  bottom: 100px;
  left: 0;
  right: 0;
  display: grid;
  place-items: center;
  touch-action: pan-y;
}
.lb__figure {
  position: relative;
  height: min(100%, calc((100vw - 2 * var(--gutter)) * 1.5));
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--c, #ddd);
}
.lb__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.lb__zone { position: absolute; top: 0; bottom: 0; z-index: 2; width: 50%; }
.lb__zone--prev { left: 0; }
.lb__zone--next { right: 0; }
.lb__thumbs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.lb__thumb {
  width: 32px;
  aspect-ratio: 2 / 3;
  opacity: 0.3;
  transition: opacity 0.5s ease, transform 0.8s var(--ease-out);
}
.lb__thumb .ph { width: 100%; height: 100%; }
.lb__thumb:hover { opacity: 0.7; }
.lb__thumb.is-on { opacity: 1; transform: translateY(-5px); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .stats { font-size: 13px; }
  .hero.is-grid .strip__track { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --bar-h: 52px; }

  .nav {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      'ig units'
      'tabs tabs'
      'stats stats';
    padding-top: 16px;
  }
  .nav__ig { grid-area: ig; }
  .units { grid-area: units; }
  .tabs--hero { grid-area: tabs; justify-self: center; }
  .stats {
    grid-area: stats;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    margin: 0 calc(var(--gutter) * -1);
    padding: 2px var(--gutter);
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  }
  .stats::-webkit-scrollbar { display: none; }

  .hero { height: auto; min-height: 0; }
  .strip { flex: none; height: min(118vw, 64svh); }
  .strip__arrow { display: none; }
  .controls { grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; }
  .hero.is-grid .strip { height: auto; }
  .hero.is-grid .strip__track { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .bar .tabs--bar { display: none; }
  .bar { grid-template-columns: 1fr auto; }

  .statement { grid-template-columns: 1fr; }
  .statement .kicker { padding-top: 0; }

  .sa { grid-template-columns: 1fr; }
  .sa__head { position: static; }
  .sa__col--offset { padding-top: 14vh; }

  .studio__title {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr var(--fh, 300px) 1fr;
    grid-template-areas: 'l' '.' 'r';
    row-gap: 3vh;
  }
  .studio__word--l { justify-self: center; align-self: end; }
  .studio__word--r { justify-self: center; align-self: start; }
  .studio__row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .studio__row .fig:nth-child(even) { margin-top: 8vh; }

  .denim__head { width: 64vw; }
  .denim__track .fig:nth-of-type(4n + 1) { --h: 52vh; }
  .denim__track .fig:nth-of-type(4n + 2) { --h: 38vh; }
  .denim__track .fig:nth-of-type(4n + 3) { --h: 46vh; }
  .denim__track .fig:nth-of-type(4n + 4) { --h: 56vh; }

  .suede__head { grid-template-columns: 1fr; }
  .suede__head .meta { justify-self: start; text-align: left; margin-top: 14px; }
  .suede__panels {
    height: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: clamp(28px, 5vh, 48px) calc(var(--gutter) * -1) 0;
    padding: 0 var(--gutter);
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .suede__panels::-webkit-scrollbar { display: none; }
  .panel,
  .panel.is-open {
    flex: 0 0 74vw;
    aspect-ratio: 2 / 3;
    scroll-snap-align: start;
  }
  .panel .ph { left: 0; width: 100%; margin: 0; }
  .panel__cap { display: none; }

  .cc { grid-template-columns: 1fr; gap: 56px; }
  .card { height: auto; width: min(78vw, 420px); }

  .contact__row { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 560px) {
  .tab { font-size: 13px; }
  .tabs { gap: 16px; }
  .stats { font-size: 12.5px; }
  .hero.is-grid .strip__track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .view { gap: 14px; }
  .counter { display: none; }
  .controls { grid-template-columns: minmax(0, 1fr) auto; }

  .lb__top { grid-template-columns: 1fr auto; }
  .lb__caption { display: none; }
  .lb__stage { top: 60px; bottom: 76px; }
  .lb__thumbs { bottom: 22px; gap: 4px; }
  .lb__thumb { width: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .studio__frame { clip-path: none; }
  .studio__frame .ph { inset: 0; }
  .studio__frame .ph img { object-position: 50% 30%; }
  .denim__pin { height: auto; padding: 120px 0; }
  .denim__track { overflow-x: auto; width: auto; height: auto; }
}
