/* ═══════════════════════════════════════════════════════════════
   KALI — Built for the unhurried.

   One typeface, Commissioner, in exactly two forms:
   · the display form — weight 250 — for titles and subtitles;
   · the text form    — weight 380 — for everything that is read or
     pressed: body, labels, links, figures.
   Nothing else is set in any other weight.

   The ground is a warm bone taken from the photographs' own studio
   walls, so the pictures sit in the page instead of on it. Every
   section follows the same rhythm — label, title, subtitle, text —
   and the pictures carry the colour.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bone:  #F7F2EB;
  --sand:  #EEE5DA;
  --line:  #E0D5C8;
  --ink:   #231E1A;
  --ink-2: #6B6158;
  --ink-3: #9A8F85;

  --font: "Commissioner", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: 250;
  --text: 380;

  --pad:  clamp(20px, 5vw, 88px);
  --max:  1360px;
  --head: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--head);
  background: var(--bone);
}
body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font);
  font-weight: var(--text);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--bone); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 5px; }

/* ══════════  THE TWO FORMS  ══════════ */
.title, .subtitle, .hero-brand, .hero-line, .chapter-title,
.creed-line, .foot-brand, .menu-nav a {
  font-weight: var(--display);
  text-wrap: balance;
}
.title {
  font-size: clamp(36px, 4.6vw, 68px);
  line-height: 1.06;
  letter-spacing: -.025em;
}
.subtitle {
  font-size: clamp(19px, 1.7vw, 25px);
  line-height: 1.4;
  letter-spacing: -.01em;
  color: var(--ink-2);
}

/* Labels, links and captions are the text form, small and tracked. */
.label, .link, .caption, .nav a, .lang, .specs dt, .hours dt, .foot-links a, .foot-base {
  font-weight: var(--text);
}
.label {
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.caption {
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--ink-3);
}

.link {
  position: relative;
  display: inline-block;
  padding: 10px 0 9px;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink);
}
.link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform .7s var(--ease);
}
.link:hover::after { transform: scaleX(.35); }

/* ══════════  PICTURES  ══════════ */
.pic { position: relative; overflow: hidden; background: var(--sand); }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pic .caption {
  position: absolute;
  left: 0; bottom: 0;
  padding: 14px 16px;
  color: var(--ink);
}
.chapter-aside, .about-craft { overflow: visible; background: none; }
.chapter-aside img, .about-craft img { background: var(--sand); }
.chapter-aside .caption, .about-craft .caption { position: static; display: block; padding: 12px 0 0; color: var(--ink-3); }

/* ══════════  QUIET ARRIVAL  ══════════
   Text rises a little; photographs settle from a slight zoom. Both are
   switched on from the scroll event and gated on `.js`, so a page
   without script simply shows everything. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.3s var(--ease), transform 1.3s var(--ease);
}
.js .pic[data-reveal] { transform: none; transition: opacity 1.6s var(--ease); }
.js .pic[data-reveal] img { transform: scale(1.06); transition: transform 2.4s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* These two show their caption outside the picture, so they cannot clip;
   they fade in without the zoom rather than spill past their edges. */
.js .chapter-aside[data-reveal] img, .js .about-craft[data-reveal] img { transform: none; }
.js .pic[data-reveal].is-in img { transform: none; }

.hero [data-reveal]:nth-child(2) { transition-delay: .12s; }
.hero [data-reveal]:nth-child(3) { transition-delay: .24s; }
.hero [data-reveal]:nth-child(4) { transition-delay: .36s; }
.chapter .chapter-text { transition-delay: .15s; }
.chapter .chapter-aside { transition-delay: .3s; }

/* ══════════  HEADER  ══════════ */
.head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--head);
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  background: rgba(247, 242, 235, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .5s var(--ease);
}
.head.is-scrolled { border-bottom-color: var(--line); }

.brand {
  margin-right: auto;
  padding: 12px 0;
  font-weight: var(--text);
  font-size: 15px;
  letter-spacing: .42em;
  line-height: 1;
}
.nav { display: flex; gap: clamp(22px, 2.6vw, 40px); }
.nav a {
  position: relative;
  padding: 10px 0;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color .4s;
}
.nav a:hover { color: var(--ink); }

.lang { display: flex; gap: 14px; font-size: 11px; letter-spacing: .16em; }
.lang button { padding: 10px 0; color: var(--ink-3); transition: color .3s; }
.lang button[aria-pressed="true"], .lang button:hover { color: var(--ink); }
.lang--head { padding-left: clamp(20px, 2.4vw, 36px); border-left: 1px solid var(--line); }

.burger { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; }
.burger span {
  position: absolute; left: 11px; right: 11px; height: 1px;
  background: var(--ink);
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.burger span:first-child { top: 19px; }
.burger span:last-child  { top: 25px; }
.burger[aria-expanded="true"] span { top: 22px; }
.burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: calc(var(--head) + 24px) var(--pad) 28px;
  background: var(--bone);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s var(--ease), visibility 0s linear .5s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .5s var(--ease), visibility 0s; }
.menu:focus { outline: none; }
.menu-nav { margin: auto 0; display: flex; flex-direction: column; }
.menu-nav a {
  font-size: clamp(38px, 11vw, 56px);
  line-height: 1.15;
  letter-spacing: -.025em;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.menu-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 26px;
  font-size: 12px;
  color: var(--ink-2);
}
.menu-foot > a { padding: 10px 0; }

/* ══════════  HERO  ══════════ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100svh;
  max-height: 1040px;
  padding-top: var(--head);
}
.hero-text {
  align-self: center;
  padding: 60px var(--pad);
  max-width: 660px;
  justify-self: end;
  width: 100%;
}
.hero-place { margin-bottom: clamp(26px, 3vw, 40px); }
.hero-title { display: flex; flex-direction: column; }
.hero-brand {
  font-size: clamp(84px, 11.5vw, 184px);
  line-height: .86;
  letter-spacing: .06em;
  margin-left: -.06em;
}
.hero-line {
  margin-top: clamp(20px, 2.4vw, 34px);
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -.02em;
}
.hero-sub {
  margin: 26px 0 30px;
  max-width: 34ch;
  color: var(--ink-2);
}
.hero-media { min-height: 520px; }
/* Laid over its box so the photograph's own height never sets the hero's. */
.hero-media img { position: absolute; inset: 0; object-position: 50% 34%; }

/* ══════════  COLLECTIONS  ══════════ */
.collections { padding: clamp(110px, 14vw, 210px) var(--pad) 0; }

.intro { max-width: 780px; margin: 0 auto clamp(90px, 11vw, 170px); text-align: center; }
.intro .label { margin-bottom: 22px; }
.intro .subtitle { margin: 22px auto 0; max-width: 30em; }

.chapter {
  max-width: var(--max);
  margin: 0 auto clamp(120px, 15vw, 230px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr;
  column-gap: clamp(16px, 2vw, 30px);
}
.chapter-main  { grid-column: 1 / 8; grid-row: 1 / 3; aspect-ratio: 4 / 5; }
.chapter-text  { grid-column: 9 / 13; grid-row: 1; padding-top: clamp(24px, 5vw, 90px); }
.chapter-aside { grid-column: 9 / 12; grid-row: 2; align-self: end; }
.chapter-aside img { aspect-ratio: 4 / 5; height: auto; }

.chapter--flip .chapter-main  { grid-column: 6 / 13; }
.chapter--flip .chapter-text  { grid-column: 1 / 5; }
.chapter--flip .chapter-aside { grid-column: 2 / 5; }

.chapter-title {
  margin: 16px 0 22px;
  font-size: clamp(34px, 3.6vw, 54px);
  line-height: 1.05;
  letter-spacing: -.025em;
}
.chapter-text > p:not(.label) { color: var(--ink-2); max-width: 38ch; }

.specs { margin: 28px 0 22px; max-width: 38ch; border-top: 1px solid var(--line); }
.specs div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.specs dt { color: var(--ink-3); }
.specs dd { text-align: right; }

/* ══════════  ABOUT  ══════════ */
.about { background: var(--sand); padding: clamp(110px, 14vw, 200px) var(--pad); }
.about .creed-media, .about-craft img { background: var(--line); }

.about-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 30px);
  align-items: center;
}
.about-text  { grid-column: 1 / 6; }
.about-text .label { margin-bottom: 22px; }
.about-text .title { margin-bottom: 30px; }
.about-text p:not(.label) { color: var(--ink-2); max-width: 40ch; }
.about-text p + p { margin-top: 1em; }
.about-craft { grid-column: 7 / 13; }
.about-craft img { aspect-ratio: 3 / 2; height: auto; }

.creed {
  max-width: var(--max);
  margin: clamp(110px, 14vw, 200px) auto 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 30px);
  align-items: center;
}
.creed-media { grid-column: 2 / 6; aspect-ratio: 2 / 3; }
.creed-text  { grid-column: 7 / 13; }
.creed-line {
  font-size: clamp(38px, 5vw, 76px);
  line-height: 1.06;
  letter-spacing: -.03em;
  margin-bottom: 26px;
}

/* ══════════  VISIT  ══════════ */
.visit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
}
.visit-media { aspect-ratio: 1 / 1; }
.visit-media img { position: absolute; inset: 0; }
.visit-media img { object-position: 60% 50%; }
.visit-text {
  align-self: center;
  padding: clamp(70px, 8vw, 120px) var(--pad);
  max-width: 640px;
}
.visit-text .label { margin-bottom: 22px; }
.visit-text .subtitle { margin: 14px 0 26px; }
.visit-text > p:not(.label):not(.subtitle) { color: var(--ink-2); max-width: 40ch; }

.hours { margin: 34px 0 26px; max-width: 380px; border-top: 1px solid var(--line); }
.hours div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.hours dt { color: var(--ink-2); }
.hours dd { font-variant-numeric: tabular-nums; }
.visit-links { display: flex; gap: 34px; flex-wrap: wrap; }

/* ══════════  FOOTER  ══════════ */
.foot {
  padding: clamp(80px, 10vw, 140px) var(--pad) 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
}
.foot-brand {
  font-size: clamp(72px, 12vw, 190px);
  line-height: .82;
  letter-spacing: .06em;
  margin-left: -.06em;
}
.foot-tag { margin-top: 22px; }
.foot-links { display: flex; gap: 32px; }
.foot-links a {
  padding: 10px 0;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color .3s;
}
.foot-links a:hover { color: var(--ink); }
.foot-base {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px 24px; flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
}
.foot-base a { padding: 8px 0; transition: color .3s; }
.foot-base a:hover { color: var(--ink); }

/* ══════════  RESPONSIVE  ══════════ */
@media (max-width: 1100px) {
  .chapter-text  { grid-column: 8 / 13; padding-left: 8px; }
  .chapter-aside { grid-column: 8 / 12; padding-left: 8px; }
  .chapter--flip .chapter-text  { grid-column: 1 / 6; padding: clamp(24px, 5vw, 90px) 8px 0 0; }
  .chapter--flip .chapter-aside { grid-column: 2 / 6; padding: 0 8px 0 0; }
  .creed-media { grid-column: 1 / 6; }
}

@media (max-width: 860px) {
  :root { --head: 64px; }
  .nav, .lang--head { display: none; }
  .burger { display: block; }

  .hero { grid-template-columns: 1fr; min-height: 0; max-height: none; }
  .hero-text { padding: 48px var(--pad) 44px; max-width: none; justify-self: stretch; }
  .hero-brand { font-size: clamp(78px, 25vw, 150px); }
  .hero-media { min-height: 0; aspect-ratio: 4 / 5; }

  .chapter { display: block; margin-bottom: clamp(96px, 20vw, 140px); }
  .chapter-main { margin: 0 calc(-1 * var(--pad)); }
  .chapter-text, .chapter--flip .chapter-text { padding: 34px 0 0; }
  .chapter-aside, .chapter--flip .chapter-aside { width: 62%; margin: 48px 0 0 auto; padding: 0; }
  .chapter--flip .chapter-aside { margin: 48px auto 0 0; }

  .about-grid, .creed { display: block; }
  .about-craft { margin: 56px calc(-1 * var(--pad)) 0; }
  .about-craft .caption { padding: 12px var(--pad) 0; }
  .creed { margin-top: 96px; }
  .creed-media { width: 72%; margin: 0 auto 48px; }
  .creed-text { text-align: center; }

  .visit { grid-template-columns: 1fr; }
  .visit-media { aspect-ratio: 4 / 5; }
  .visit-text { padding: 56px var(--pad) 96px; max-width: none; }

  .foot { grid-template-columns: 1fr; gap: 34px; }
  .foot-brand { font-size: clamp(70px, 26vw, 150px); }
}

@media (max-width: 420px) {
  body { font-size: 15.5px; }
  .foot-base { flex-direction: column; align-items: flex-start; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .menu { padding-top: calc(var(--head) + 8px); }
  .menu-nav a { font-size: 30px; padding: 4px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .pic[data-reveal] img { opacity: 1; transform: none; }
}
