/* Jacky Woo — City & Stories
   Tokens and rules taken verbatim from the design handoff. Radius 0, no shadows,
   hairlines only, no media queries: every axis is fluid via clamp() + auto-fit grids. */

:root {
  --paper: #F4EDE1;
  --ink: #171815;
  --muted: #63604F;
  --line: #CFC7B9;
  --accent: #7F8871;
  --band: #171815;
  --bandInk: #F4EDE1;
  --bandMuted: #9C9789;
  --bandLine: #35362F;

  --gutter: clamp(18px, 4vw, 64px);
  --display: 'Bodoni Moda', 'Times New Roman', serif;
  --text: 'Archivo', 'Helvetica Neue', sans-serif;
}

*, *::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: 1440px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

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

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

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

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

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

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

.site-header {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(22px, 3vw, 40px) var(--gutter) clamp(16px, 2vw, 24px);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px clamp(20px, 4vw, 56px);
}

.wordmark {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px clamp(16px, 2.6vw, 40px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 13px 0;
  min-height: 44px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

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

.rule { height: 1px; background: var(--line); }

/* ---------- Instagram icon CTAs (replaces the text enquiry buttons) ---------- */

.ig-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  color: var(--ink);
}
.ig-cta:hover { border-color: var(--accent); color: var(--accent); }
.ig-cta svg { width: 20px; height: 20px; }

.ig-cta--lg { min-width: 52px; min-height: 52px; }
.ig-cta--lg svg { width: 22px; height: 22px; }

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

.on-band .ig-cta { border-color: var(--bandLine); color: var(--bandInk); }
.on-band .ig-cta:hover { border-color: var(--accent); color: var(--accent); }

.ig-inline { display: inline-flex; align-items: center; gap: 10px; }
.ig-inline svg { width: 16px; height: 16px; flex: none; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: clamp(18px, 3vw, 30px);
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

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

.btn--outline {
  background: none;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn--outline:hover { border-color: var(--accent); }

.btn--next { min-height: 48px; padding: 0 20px; gap: 20px; }

/* ---------- home ---------- */

.hero {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 92px) var(--gutter) clamp(28px, 4vw, 52px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
}

.hero__copy { max-width: 660px; }

.hero__aside {
  margin: 0 0 clamp(18px, 3vw, 34px);
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(16px, 1.6vw, 21px);
  color: var(--muted);
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 6.2vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero__lead {
  margin: clamp(22px, 3.4vw, 40px) 0 0;
  max-width: 40ch;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(24px, 4vw, 44px); }
.hero__note { margin: clamp(28px, 5vw, 56px) 0 0; }

.hero__frames {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  align-items: start;
}

.hero__frames figure { margin: 0; }
.hero__frames figure + figure { padding-top: clamp(0px, 10vw, 170px); }

.hero__frames figcaption,
.strip figcaption {
  margin-top: 10px;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.strip {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(44px, 7vw, 100px);
}

.strip__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: clamp(14px, 2vw, 26px);
}
.strip__grid figure { margin: 0; }

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

.band { background: var(--band); color: var(--bandInk); }
.band .kicker, .band .aside, .band .caption { color: var(--bandMuted); }
.band__inner { max-width: 1440px; margin: 0 auto; padding: clamp(44px, 7vw, 104px) var(--gutter); }

.band h2 {
  margin: 0 0 clamp(32px, 5vw, 68px);
  max-width: 16ch;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 6.4vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.collections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(32px, 5vw, 76px);
}

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

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

.collection-card h3 {
  margin: clamp(18px, 2.4vw, 26px) 0 6px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.03em;
}

.collection-card__sub {
  margin: 0 0 18px;
  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 .arrow { font-size: 19px; }

/* ---------- services ---------- */

.services { max-width: 1440px; margin: 0 auto; padding: clamp(44px, 7vw, 104px) var(--gutter); }
.services--about { padding: clamp(44px, 7vw, 100px) var(--gutter); }
.services__kicker { margin: 0 0 clamp(26px, 4vw, 46px); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(22px, 3vw, 44px);
}

.service { border-top: 1px solid var(--line); padding-top: 16px; }
.service__no { margin: 0 0 10px; color: var(--accent); }
.service h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.025em;
}
.service p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

.services__note { margin: clamp(28px, 4vw, 48px) 0 0; }

/* ---------- about teaser ---------- */

.teaser {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(44px, 7vw, 104px);
}

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

.teaser__portrait { width: 100%; max-width: 420px; aspect-ratio: 545/638; object-fit: cover; background: var(--line); }
.teaser__copy { max-width: 540px; }
.teaser__copy .kicker { margin-bottom: 18px; }

.teaser__copy h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 4.6vw, 62px);
  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.6; color: var(--muted); }
.teaser__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: clamp(22px, 3vw, 32px); }

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

.collection { max-width: 1440px; margin: 0 auto; padding: clamp(34px, 5vw, 76px) var(--gutter) clamp(44px, 7vw, 100px); }

.collection__head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(20px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(30px, 5vw, 60px);
}

.collection__head .kicker { margin-bottom: 16px; }

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

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

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(14px, 2vw, 26px);
}

.gallery figure { margin: 0; }

.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: 10px;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.on-band .gallery figcaption { color: var(--bandMuted); }

.collection__foot {
  margin-top: clamp(34px, 5vw, 68px);
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: space-between;
  align-items: center;
}

/* city view */

.city-view { background: var(--band); color: var(--bandInk); }
.city-view .kicker, .city-view .aside, .city-view .caption { color: var(--bandMuted); }

.motion {
  margin-top: clamp(40px, 6vw, 84px);
  border-top: 1px solid var(--bandLine);
  padding-top: clamp(24px, 4vw, 42px);
}
.motion .kicker { margin-bottom: 18px; }

.motion__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(14px, 2vw, 26px);
}
.motion__grid figure { margin: 0; }
.motion__grid figcaption {
  margin-top: 10px;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bandMuted);
}
.motion__note { margin: 16px 0 0; font-size: 16px; }

/* ---------- about ---------- */

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

.bio__portrait { width: 100%; max-width: 440px; aspect-ratio: 545/638; object-fit: cover; background: var(--line); }
.bio__copy { max-width: 560px; }
.bio__copy .kicker { margin-bottom: 18px; }

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

.bio__copy p.body { margin: 14px 0 0; font-size: 17px; line-height: 1.65; color: var(--muted); }
.bio__copy p.body--first { margin: clamp(22px, 3vw, 32px) 0 0; color: var(--ink); }

.enquiry__inner { max-width: 1440px; margin: 0 auto; padding: clamp(44px, 7vw, 100px) var(--gutter); }

.enquiry h2 {
  margin: 0 0 clamp(28px, 5vw, 56px);
  max-width: 22ch;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 6.4vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.enquiry__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(20px, 3vw, 44px);
}

.enquiry-card {
  display: block;
  border: 1px solid var(--bandLine);
  padding: clamp(20px, 3vw, 34px);
}
.enquiry-card:hover { border-color: var(--accent); color: inherit; }

.enquiry-card__kicker { margin: 0 0 14px; color: var(--accent); }

.enquiry-card__handle {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.02em;
}
.enquiry-card__handle svg { width: 22px; height: 22px; }

.enquiry-card p.body { margin: 0; font-size: 15px; line-height: 1.6; color: var(--bandMuted); }
.enquiry__note { margin: clamp(24px, 4vw, 38px) 0 0; font-size: 16px; }

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

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

.site-footer__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 44px) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 16px clamp(24px, 4vw, 48px);
  align-items: baseline;
  justify-content: space-between;
}

.site-footer__mark { margin: 0; font-family: var(--display); font-size: 20px; letter-spacing: 0.06em; text-transform: uppercase; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.site-footer__links svg { width: 16px; height: 16px; flex: none; }

/* KERN studio credit — own row, hairline-separated, away from the wordmark */

.site-footer__credit {
  max-width: 1440px;
  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 11.5px footer links. 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(16, 16, 13, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 5vw, 64px);
  gap: 16px;
}
.lightbox[hidden] { display: none; }

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

.lightbox__controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
  align-items: center;
  color: var(--paper);
}

.lightbox__step {
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: 1px solid #4A4B42;
  color: #F4EDE1;
  cursor: pointer;
  font-family: var(--display);
  font-size: 18px;
}

.lightbox__caption {
  margin: 0;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C4BFB1;
  text-align: center;
}

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

body.lb-open { overflow: hidden; }

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

[data-reveal] { opacity: 0; transform: translateY(14px); }
[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; }
}

.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;
}
