:root {
  --ink: #070706;
  --ink-2: #0e0d0b;
  --ink-3: #171512;
  --line: rgba(208, 178, 116, 0.18);
  --gold: #d0b274;
  --gold-soft: #b79a63;
  --gold-dim: #6e5d3d;
  --ivory: #ece5d5;
  --ivory-2: #bcb4a4;
  --mute: #7f776a;
  --serif: "Cormorant Garamond", "Cormorant", "Times New Roman", Georgia, serif;
  --sans: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 96px);
  --measure: 62ch;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7.5vw, 6.4rem); letter-spacing: -0.005em; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
em { font-style: italic; color: var(--gold); }
p { margin: 0; max-width: var(--measure); }
p + p { margin-top: 1.1em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 14px;
  opacity: 0.8;
}

.lede { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.45; color: var(--ivory); }
.muted { color: var(--ivory-2); }
.section { padding-block: clamp(84px, 11vw, 168px); padding-inline: var(--gutter); }
.section + .section { border-top: 1px solid var(--line); }
.wrap { max-width: 1440px; margin-inline: auto; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  mix-blend-mode: difference;
  color: #fff;
}
.nav .mark { display: flex; align-items: center; gap: 14px; }
.nav .mark svg { width: 30px; height: 35px; }
.nav .mark span { font-size: 0.72rem; letter-spacing: 0.34em; text-transform: uppercase; font-weight: 400; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(18px, 3vw, 40px); }
.nav li a { font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 400; position: relative; padding-bottom: 4px; }
.nav li a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.nav li a:hover::after { right: 0; }
@media (max-width: 760px) { .nav ul { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(92svh, 1100px);
  display: grid;
  align-items: end;
  padding: clamp(120px, 18vh, 200px) var(--gutter) clamp(48px, 7vw, 88px);
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 7, 6, 0.55) 0%, rgba(7, 7, 6, 0.1) 30%, rgba(7, 7, 6, 0.25) 60%, rgba(7, 7, 6, 0.96) 100%),
    linear-gradient(90deg, rgba(7, 7, 6, 0.55) 0%, rgba(7, 7, 6, 0) 55%);
}
.hero-inner { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
.hero-mono { width: clamp(96px, 12vw, 150px); color: var(--gold); margin-bottom: clamp(20px, 3vw, 36px); filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.6)); }
.hero h1 { max-width: 12ch; }
.hero .tag { margin-top: 22px; display: flex; align-items: center; gap: 18px; font-size: 0.72rem; letter-spacing: 0.36em; text-transform: uppercase; color: var(--ivory-2); font-weight: 400; }
.hero .tag i { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--gold); font-style: normal; }
.hero .side { text-align: right; font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ivory-2); font-weight: 400; line-height: 2.2; }
.hero .side b { display: block; color: var(--gold); font-weight: 400; }
@media (max-width: 760px) {
  .hero { min-height: min(88svh, 860px); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero .side { text-align: left; }
}

/* ---------- statement ---------- */
.statement { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.statement h2 { font-size: clamp(2rem, 4.4vw, 4.1rem); line-height: 1.08; max-width: 14ch; }
.statement .body { padding-top: 0.6em; }
.statement .body p { font-size: 1.05rem; color: var(--ivory-2); }
.statement .body strong { font-weight: 400; color: var(--ivory); }
@media (max-width: 860px) { .statement { grid-template-columns: 1fr; } }

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(40px, 6vw, 88px); }
.pillar { display: grid; gap: 22px; }
.pillar figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-3); }
.pillar figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1); }
.pillar:hover figure img { transform: scale(1.04); }
.pillar .n { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.1rem; }
.pillar h3 { margin-top: 4px; }
.pillar p { color: var(--ivory-2); font-size: 0.98rem; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; gap: 56px; } .pillar figure { aspect-ratio: 3 / 2; } }

/* ---------- work ---------- */
.work-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.work-head p { color: var(--ivory-2); max-width: 44ch; }
.grid {
  margin-top: clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(10px, 1.6vw, 24px);
}
.tile { margin: 0; position: relative; overflow: hidden; background: var(--ink-3); cursor: zoom-in; grid-column: span 4; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease; }
.tile:hover img { transform: scale(1.035); }
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 20px;
  font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 400;
  color: var(--ivory);
  background: linear-gradient(180deg, rgba(7, 7, 6, 0) 0%, rgba(7, 7, 6, 0.75) 100%);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.tile:hover figcaption, .tile:focus-visible figcaption { opacity: 1; transform: none; }
.tile.p { aspect-ratio: 4 / 5; }
.tile.l { aspect-ratio: 8 / 5; grid-column: span 8; }
.tile.tall { aspect-ratio: 3 / 4; grid-column: span 4; grid-row: span 2; }
.tile.wide { grid-column: span 6; aspect-ratio: 6 / 5; }
@media (max-width: 1100px) {
  .tile, .tile.l, .tile.wide, .tile.tall { grid-column: span 6; grid-row: auto; aspect-ratio: 4 / 5; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .tile, .tile.l, .tile.wide, .tile.tall { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
  .tile.l, .tile.wide { aspect-ratio: 3 / 2; }
}

/* ---------- studio ---------- */
.studio { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 96px); align-items: center; }
.studio .imgs { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; align-items: end; }
.studio .imgs figure { margin: 0; overflow: hidden; background: var(--ink-3); }
.studio .imgs figure:first-child { aspect-ratio: 16 / 10; }
.studio .imgs figure:last-child { aspect-ratio: 3 / 4; margin-bottom: 12%; }
.studio .imgs img { width: 100%; height: 100%; object-fit: cover; }
.studio .copy p { color: var(--ivory-2); }
.studio dl { margin: 36px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 28px; font-size: 0.8rem; letter-spacing: 0.12em; }
.studio dt { color: var(--gold); text-transform: uppercase; font-size: 0.66rem; letter-spacing: 0.3em; padding-top: 3px; font-weight: 400; }
.studio dd { margin: 0; color: var(--ivory); font-weight: 300; }
@media (max-width: 860px) { .studio { grid-template-columns: 1fr; } }

/* ---------- experiences ---------- */
.exp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: clamp(40px, 6vw, 80px); border: 1px solid var(--line); }
.exp article { padding: clamp(30px, 4vw, 64px); display: grid; gap: 22px; align-content: start; }
.exp article + article { border-left: 1px solid var(--line); }
.exp .n { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.1rem; }
.exp p { color: var(--ivory-2); }
.exp ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.exp li { padding-left: 22px; position: relative; font-size: 0.95rem; color: var(--ivory); }
.exp li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 10px; height: 1px; background: var(--gold); }
.exp .note { font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); font-weight: 400; margin-top: 12px; }
@media (max-width: 860px) { .exp { grid-template-columns: 1fr; } .exp article + article { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- contact ---------- */
.contact { text-align: center; display: grid; justify-items: center; gap: 28px; }
.contact h2 { font-size: clamp(2.2rem, 5.6vw, 5rem); max-width: 16ch; }
.contact .mail {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3.4vw, 2.6rem);
  color: var(--gold);
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 6px;
  transition: border-color 0.4s ease;
  word-break: break-all;
}
.contact .mail:hover { border-color: var(--gold); }
.contact p { color: var(--ivory-2); }
.contact .mono { width: 64px; color: var(--gold-soft); margin-bottom: 8px; }

/* ---------- footer ---------- */
footer {
  padding: 40px var(--gutter) 48px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--mute); font-weight: 400;
}
footer span b { color: var(--gold-soft); font-weight: 400; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 60; background: rgba(7, 7, 6, 0.96); display: none; align-items: center; justify-content: center; padding: 24px; }
.lb[data-open="true"] { display: flex; }
.lb img { max-width: min(100%, 1400px); max-height: 90vh; width: auto; height: auto; object-fit: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); }
.lb button { position: absolute; background: none; border: 0; color: var(--ivory); cursor: pointer; font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; padding: 16px; }
.lb .x { top: 18px; right: 18px; }
.lb .prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb .next { right: 6px; top: 50%; transform: translateY(-50%); }
.lb .cap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ivory-2); }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } .tile img, .pillar figure img { transition: none; } }
