/* Jacky Woo — V3
   Tokens, sizes and rules from "Jacky Woo Site v3.dc.html". Radius 0, no shadows
   except the sticky header's scroll lift, hairlines only, no media queries:
   every axis is fluid via clamp() + auto-fit grids. */

:root {
  --paper: #F2ECE1;
  --ink: #16150F;
  --muted: #6A6455;
  --line: #D8D0C1;
  --accent: #8A5E36;
  --band: #131310;
  --bandInk: #F2ECE1;
  --bandMuted: #9A9484;
  --bandLine: #2C2C26;

  --shell: 1560px;
  --gutter: clamp(18px, 4vw, 60px);
  --display: 'Bodoni Moda', 'Times New Roman', serif;
  --text: 'Archivo', 'Helvetica Neue', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

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

html { overflow-x: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

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

.mono {
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.aside {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-size: 17px;
  color: var(--muted);
}

.arrow { font-family: var(--display); font-size: 16px; }

/* Section head: hairline with a mono label left and a count right */
.rule-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.on-band .mono, .on-band .aside { color: var(--bandMuted); }
.on-band .rule-head { border-top-color: var(--bandLine); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(242, 236, 225, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .4s ease;
}
.site-header.is-past { box-shadow: 0 1px 24px rgba(22, 21, 15, 0.07); }

.site-header__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(14px, 1.6vw, 22px) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px clamp(20px, 4vw, 56px);
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand:hover { color: inherit; }

.brand__name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(20px, 2.1vw, 27px);
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand__place {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px clamp(14px, 2.4vw, 36px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 12px 0;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  height: 1px;
  background: var(--accent);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 28px);
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--accent); color: var(--paper); }

.btn--light { background: #FBF7EF; color: var(--ink); }
.btn--light:hover { background: var(--accent); color: #FBF7EF; }

.btn--outline { background: none; color: var(--ink); border: 1px solid var(--line); min-height: 50px; padding: 0 22px; gap: 20px; }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- hero ---------- */

.hero { position: relative; }

.hero__stage {
  position: relative;
  width: 100%;
  height: clamp(500px, 84vh, 900px);
  overflow: hidden;
  background: var(--band);
}

.hero__stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s cubic-bezier(.4, 0, .2, 1);
}
.hero__stage img.is-current { opacity: 1; }

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(10, 10, 8, 0.88) 0%,
    rgba(10, 10, 8, 0.78) 30%,
    rgba(10, 10, 8, 0.34) 58%,
    rgba(10, 10, 8, 0.12) 78%,
    rgba(10, 10, 8, 0.42) 100%);
}

.hero__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(22px, 4vw, 60px);
  max-width: var(--shell);
  margin: 0 auto;
}

.hero__eyebrow {
  display: inline-block;
  margin: 0 0 clamp(14px, 2vw, 26px);
  padding: 7px 12px;
  background: rgba(10, 10, 8, 0.86);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #F6F1E6;
}

.hero h1 {
  margin: 0;
  max-width: 20ch;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 7.4vw, 124px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: #FBF7EF;
  text-wrap: balance;
}

.hero__foot {
  margin-top: clamp(22px, 3.4vw, 44px);
  padding-top: clamp(16px, 2vw, 24px);
  border-top: 1px solid rgba(251, 247, 239, 0.28);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px clamp(24px, 4vw, 56px);
}

.hero__lead {
  margin: 0;
  max-width: 42ch;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.55;
  color: #EDE6D9;
  text-wrap: pretty;
}

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

.hero__tag {
  position: absolute;
  top: clamp(20px, 3vw, 44px);
  right: clamp(20px, 4vw, 60px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  background: rgba(10, 10, 8, 0.86);
}
.hero__tag span:first-child {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #F6F1E6;
}
.hero__tag span:last-child { display: block; width: 22px; height: 1px; background: rgba(246, 241, 230, 0.75); }

/* ---------- statement + facts ---------- */

.statement {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(46px, 7vw, 116px) var(--gutter) clamp(34px, 5vw, 72px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 88px);
  align-items: flex-start;
}

.statement__lead {
  margin: 0;
  flex: 1 1 min(100%, 440px);
  min-width: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(24px, 3.1vw, 50px);
  line-height: 1.18;
  letter-spacing: -0.028em;
  text-wrap: pretty;
}

.facts {
  margin: 0;
  flex: 0 1 min(100%, 300px);
  min-width: 0;
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
  align-content: start;
}

.facts > div { border-top: 1px solid var(--line); padding-top: 12px; }
.facts dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 6px 0 0; font-size: 16px; }
.facts dd a { border-bottom: 1px solid var(--line); }

/* ---------- plates ---------- */

.plates { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter) clamp(46px, 7vw, 116px); }
.plates .rule-head { margin-bottom: clamp(26px, 4vw, 56px); }

.plates__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(20px, 3.4vw, 56px);
  align-items: start;
}

.plates__grid figure { margin: 0; }
.plates__grid figure:nth-child(2) { padding-top: clamp(0px, 7vw, 120px); }
.plates__grid figure:nth-child(4) { padding-top: clamp(0px, 4vw, 64px); }

.frame { width: 100%; object-fit: cover; background: var(--line); }
.on-band .frame { background: var(--bandLine); }

.plate-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.on-band .plate-caption { color: var(--bandMuted); }

/* ---------- dark band ---------- */

.band { background: var(--band); color: var(--bandInk); }
.band__inner { max-width: var(--shell); margin: 0 auto; padding: clamp(46px, 7vw, 120px) var(--gutter); }
.band .rule-head { border-top-color: var(--bandLine); }
.band .mono { color: var(--bandMuted); }

.collections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: clamp(32px, 5vw, 80px);
  margin-top: clamp(30px, 5vw, 72px);
}

.collection-card {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
}
.collection-card:hover { opacity: 0.88; color: inherit; }

.collection-card__images {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: clamp(10px, 1.4vw, 18px);
  align-items: end;
}
.collection-card__images img { width: 100%; object-fit: cover; background: var(--bandLine); }

.collection-card h3 {
  margin: clamp(18px, 2.4vw, 30px) 0 8px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(27px, 3.2vw, 46px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.collection-card__sub {
  margin: 0 0 20px;
  font-family: var(--display);
  font-style: italic;
  font-size: 17px;
  color: var(--bandMuted);
}

.collection-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--bandLine);
  padding-top: 14px;
}
.collection-card__foot .mono { color: var(--bandMuted); font-size: 10px; }
.collection-card__foot .arrow { font-size: 19px; }

/* ---------- commissions ---------- */

.commissions { max-width: var(--shell); margin: 0 auto; padding: clamp(46px, 7vw, 116px) var(--gutter); }
.commissions .rule-head { margin-bottom: clamp(20px, 3vw, 36px); }

.commission {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 8px clamp(24px, 4vw, 64px);
  align-items: baseline;
  padding: clamp(20px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--line);
}
.commission:hover { background: rgba(138, 94, 54, 0.045); }

.commission__head { display: flex; align-items: baseline; gap: clamp(14px, 2vw, 26px); min-width: 0; }
.commission__no { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; color: var(--accent); }

.commission h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.commission p { margin: 0; max-width: 46ch; font-size: 16px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

/* ---------- studio teaser ---------- */

.teaser { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter) clamp(46px, 7vw, 116px); }

.teaser__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}

.teaser__portrait { width: 100%; max-width: 460px; aspect-ratio: 545/638; object-fit: cover; background: var(--line); }
.teaser__copy { max-width: 560px; }
.teaser__copy .mono { margin-bottom: clamp(16px, 2vw, 22px); }

.teaser__copy h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.teaser__copy p.body {
  margin: clamp(20px, 3vw, 30px) 0 0;
  font-size: 17px;
  line-height: 1.62;
  color: var(--muted);
  text-wrap: pretty;
}

.teaser__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: clamp(22px, 3vw, 34px); }

/* ---------- collection views ---------- */

.collection { max-width: var(--shell); margin: 0 auto; padding: clamp(34px, 5vw, 80px) var(--gutter) clamp(46px, 7vw, 110px); }

.collection__head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(20px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(24px, 4vw, 48px);
}
.collection__head .mono { margin-bottom: clamp(14px, 2vw, 20px); }

.collection__head h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 7.4vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.042em;
  text-wrap: balance;
}

.collection__intro { margin: 0; max-width: 42ch; font-size: 16px; line-height: 1.62; color: var(--muted); text-wrap: pretty; }
.on-band .collection__intro { color: var(--bandMuted); }

/* Masonry: CSS columns, figures never split across a column */
.gallery {
  border-top: 1px solid var(--line);
  padding-top: clamp(20px, 3vw, 34px);
  columns: 340px;
  column-gap: clamp(16px, 2.4vw, 34px);
}
.on-band .gallery { border-top-color: var(--bandLine); }

.gallery figure { margin: 0 0 clamp(22px, 3.2vw, 44px); break-inside: avoid; }

.gallery__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.gallery__btn:hover { opacity: 0.86; }

.gallery figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 11px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.on-band .gallery figcaption { color: var(--bandMuted); }

.collection__foot {
  margin-top: clamp(24px, 4vw, 48px);
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: space-between;
  align-items: center;
}
.collection__foot .aside { font-size: 18px; }

.collection__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* city view */

.city-view { background: var(--band); color: var(--bandInk); }

.motion {
  margin-top: clamp(30px, 5vw, 72px);
  border-top: 1px solid var(--bandLine);
  padding-top: clamp(22px, 4vw, 40px);
}
.motion .mono { margin-bottom: clamp(16px, 2.4vw, 24px); }

.motion__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(16px, 2.4vw, 34px);
}
.motion__grid figure { margin: 0; }
.motion__grid figcaption {
  margin-top: 11px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bandMuted);
}

/* ---------- studio (about) ---------- */

.bio {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 80px) var(--gutter) clamp(36px, 6vw, 84px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.bio__portrait { width: 100%; max-width: 470px; aspect-ratio: 545/638; object-fit: cover; background: var(--line); }
.bio__copy { max-width: 580px; }
.bio__copy .mono { margin-bottom: clamp(16px, 2vw, 22px); }

.bio__copy h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 5.4vw, 78px);
  line-height: 0.94;
  letter-spacing: -0.042em;
  text-wrap: balance;
}

.bio__copy p.body { margin: 16px 0 0; font-size: 17px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.bio__copy p.body--first { margin: clamp(22px, 3vw, 34px) 0 0; font-size: 18px; line-height: 1.62; color: var(--ink); }

/* Drawn signature, below the biography hairline */
.bio__signature {
  margin-top: clamp(26px, 4vw, 40px);
  border-top: 1px solid var(--line);
  padding-top: clamp(18px, 2.4vw, 26px);
}
.bio__signature img { width: min(100%, 320px); height: auto; margin-top: 14px; }

/* ---------- harbour line, before the footer ---------- */

.harbour { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter) clamp(30px, 5vw, 60px); }
.harbour__inner { border-top: 1px solid var(--line); padding-top: clamp(18px, 2.4vw, 26px); }
.harbour img { width: 100%; height: auto; }

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

.site-footer { border-top: 1px solid var(--line); }

.site-footer__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 52px) var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.site-footer__brand { display: grid; gap: 16px; justify-items: start; }
.site-footer__mark { display: flex; align-items: center; gap: 16px; }
.site-footer__monogram { width: 54px; height: 54px; flex: none; }
.site-footer__name { margin: 0; font-family: var(--display); font-size: 21px; letter-spacing: 0.12em; text-transform: uppercase; }

.site-footer__col { display: grid; gap: 4px; justify-items: start; }
.site-footer__col .mono { margin-bottom: 8px; font-size: 10px; }
.site-footer__col a { display: inline-flex; align-items: center; min-height: 40px; font-size: 16px; }
.site-footer__copy { margin: 10px 0 0; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* KERN studio credit — own row, clear of the wordmark and the index links */

.site-footer__credit {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(20px, 3vw, 32px);
  display: flex;
  justify-content: flex-end;
}

/* Scaled down from the component's stock 220px — at full size the mark
   outweighed the footer's mono labels. Box stays 44px tall for the tap target. */
.kern-credit {
  display: inline-flex;
  width: 132px;
  height: 44px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  vertical-align: middle;
  border-radius: 2px;
  text-decoration: none;
}

.kern-credit img {
  display: block;
  flex: none;
  width: 132px;
  height: auto;
  max-width: none;
  filter: brightness(0);
}

.kern-credit--on-dark { color: #f0ede5; }
.kern-credit--on-dark img { filter: brightness(0) invert(1); }

.kern-credit:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(10, 10, 8, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 5vw, 56px);
  gap: clamp(16px, 2.4vw, 26px);
}
.lightbox[hidden] { display: none; }

.lightbox img { max-width: min(92vw, 720px); max-height: 68vh; object-fit: contain; }

.lightbox__bar {
  width: min(92vw, 720px);
  border-top: 1px solid rgba(251, 247, 239, 0.22);
  padding-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 24px;
  align-items: center;
}

.lightbox__caption {
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #E8E1D3;
}

.lightbox__controls { display: flex; align-items: center; gap: 14px; }
.lightbox__count { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; color: #C4BFB1; }

.lightbox__step {
  min-width: 46px;
  min-height: 46px;
  background: none;
  border: 1px solid rgba(251, 247, 239, 0.3);
  color: #FBF7EF;
  cursor: pointer;
  font-family: var(--display);
  font-size: 18px;
}
.lightbox__step:hover { border-color: #FBF7EF; }

.lightbox__close {
  position: absolute;
  top: clamp(12px, 3vw, 26px);
  right: clamp(12px, 3vw, 26px);
  min-width: 46px;
  min-height: 46px;
  background: none;
  border: 0;
  color: #FBF7EF;
  cursor: pointer;
  font-size: 19px;
}

body.lb-open { overflow: hidden; }

/* ---------- scroll reveal ---------- */

[data-reveal] { opacity: 0; transform: translateY(18px); }
[data-reveal].is-shown { opacity: 1; transform: none; }
html.no-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__stage img { transition: none; }
}

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