:root {
  --ink: #241911;
  --charcoal: #302219;
  --ivory: #f2e9dc;
  --ash: #c4b19b;
  --fire: #a63b2d;
  --fire-hover: #b84a3b;
  --soft: #faf5ec;
  --error: #e58a7b;
  --line: rgba(242, 233, 220, 0.16);
  --line-strong: rgba(242, 233, 220, 0.4);

  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1200px;
  --pad: 20px;
  --gutter: 16px;
  --section: 56px;
  --nav-h: 64px;

  --dur: 180ms;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

@media (min-width: 768px) {
  :root { --pad: 32px; --gutter: 24px; --section: 88px; --nav-h: 72px; }
}
@media (min-width: 1100px) {
  :root { --gutter: 32px; --section: 112px; }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 768px) { body { font-size: 17px; } }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: var(--pad); top: -100px; z-index: 100;
  background: var(--ivory); color: var(--ink);
  padding: 12px 16px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 8px; }

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

.tbd {
  color: var(--ash);
  font-style: italic;
}

/* ---------- Draft banner ---------- */

.draft-banner {
  background: var(--charcoal);
  border-bottom: 1px solid var(--line);
  color: var(--ash);
  font-size: 13px;
  line-height: 1.5;
  padding: 8px 0;
  text-align: center;
}

/* ---------- Type ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.12;
  margin: 0;
}

h1.display { font-size: clamp(40px, 6.2vw, 80px); }
h2.display { font-size: clamp(28px, 3.4vw, 40px); }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 16px;
  color: var(--ash);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 24px; height: 2px; background: var(--fire);
}

.lede, .prose p { max-width: 60ch; }
.lede { color: var(--ash); font-size: 17px; margin: 24px 0 0; }
@media (min-width: 768px) { .lede { font-size: 18px; } }
.prose p { margin: 0 0 16px; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 16px; font-weight: 600; line-height: 1.2;
  text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn-primary { background: var(--fire); color: var(--soft); }
.btn-primary:hover { background: var(--fire-hover); }
.btn-secondary { border-color: var(--ivory); color: var(--ivory); background: transparent; }
.btn-secondary:hover { background: rgba(242, 238, 230, 0.08); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

.link-arrow {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600;
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px;
}
.link-arrow:hover { text-decoration-thickness: 2px; }

/* ---------- Nav ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 16px;
  min-height: var(--nav-h);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; min-height: 44px;
  margin-right: auto;
}
.brand-mark { width: 40px; height: 40px; object-fit: contain; flex: none; }
.brand-name {
  font-family: var(--font-display); font-weight: 600;
  font-size: 26px; letter-spacing: 0.08em; line-height: 1.1;
}
.brand-sub {
  display: none;
  color: var(--ash); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  border-left: 1px solid var(--line-strong); padding-left: 10px; margin-left: 2px;
}
@media (min-width: 420px) { .brand-sub { display: inline; } }

.nav-menu { display: flex; align-items: center; }
.nav-menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav-menu a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px;
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ash);
  transition: color var(--dur) var(--ease);
}
.nav-menu a:hover, .nav-menu a[aria-current="page"] { color: var(--ivory); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 2px;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--ivory); position: relative;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; order: 3; }
  .nav-cta { order: 2; }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 16px;
    display: none;
  }
  .nav-menu.is-open { display: block; }
  .nav-menu ul { flex-direction: column; gap: 0; }
  .nav-menu a { font-size: 17px; padding: 0; min-height: 48px; border-bottom: 1px solid var(--line); }
  .nav-menu li:last-child a { border-bottom: 0; }
}
@media (max-width: 379px) {
  .nav-cta { padding: 0 12px; font-size: 14px; }
  .brand-name { font-size: 22px; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--line); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px;
  margin-bottom: 40px;
}
.section-head .lede { margin-top: 16px; }

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

.hero { padding-block: 32px 8px; }
.hero .grid { row-gap: 32px; align-items: center; }

.hero-copy { grid-column: 1 / -1; }
.hero-photo { grid-column: 1 / -1; }
.hero-photo figcaption { margin-top: 12px; color: var(--ash); font-size: 14px; }
.hero-name { margin: 0 0 12px; color: var(--ash); font-weight: 500; }

@media (min-width: 768px) {
  .hero { padding-top: 64px; }
  .hero-copy { grid-column: 1 / 6; }
  .hero-photo { grid-column: 7 / -1; }
  .hero-photo .ph, .hero-photo img { aspect-ratio: 4 / 5; }
}

/* ---------- Photo placeholder ---------- */

.ph {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--charcoal);
  border: 1px solid var(--line);
  color: var(--ash);
  font-size: 13px; line-height: 1.4; text-align: center;
  padding: 16px;
}
.ph-wide { aspect-ratio: 3 / 2; }

/* ---------- Gallery ---------- */

.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 40px var(--gutter);
  grid-template-columns: 1fr;
}
@media (min-width: 480px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px var(--gutter); } }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.work-btn {
  display: block; width: 100%;
  padding: 0; border: 0; background: none;
  cursor: zoom-in;
  overflow: hidden;
}
.work-media {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}
.work-btn:hover .work-media { transform: scale(1.015); opacity: 0.92; }
.work-cap h3 {
  margin: 14px 0 2px;
  font-size: 17px; font-weight: 600; line-height: 1.4;
}
.work-cap p { margin: 0; color: var(--ash); font-size: 14px; }
.badge-state {
  display: inline-block;
  margin-left: 2px;
  padding: 0 6px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 12px; line-height: 20px;
  color: var(--ivory);
}

.gallery-foot { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }

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

.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(17, 17, 17, 0.97);
  color: var(--ivory);
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.6); }
.lightbox[open] { animation: lb-in 200ms var(--ease); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }

.lb-inner {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-width: 1200px; margin: 0 auto;
  padding: 12px var(--pad) 24px;
}
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lb-count { color: var(--ash); font-size: 14px; margin: 0; }
.lb-body {
  display: grid; gap: 24px;
  min-height: 0;
  overflow-y: auto;
  padding-block: 12px;
}
.lb-media { display: flex; justify-content: center; min-height: 0; }
.lb-media img, .lb-media .ph {
  max-height: min(70vh, 900px); width: auto; max-width: 100%;
  aspect-ratio: 4 / 5; object-fit: contain;
  animation: lb-in 180ms var(--ease);
}
.lb-media .ph { height: min(60vh, 900px); }
.lb-info h2 { margin: 0 0 8px; }
.lb-meta { color: var(--ash); margin: 0 0 16px; font-size: 15px; }
.lb-desc { margin: 0 0 16px; max-width: 60ch; }
.lb-artist { margin: 0 0 24px; font-size: 15px; color: var(--ash); }
.lb-artist strong { color: var(--ivory); font-weight: 600; }

.lb-nav { display: flex; gap: 8px; justify-content: center; padding-top: 8px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; height: 48px; padding: 0 14px; gap: 8px;
  background: transparent; color: var(--ivory);
  border: 1px solid var(--line-strong); border-radius: 2px;
  cursor: pointer; font-size: 15px;
  transition: background-color var(--dur) var(--ease);
}
.icon-btn:hover { background: rgba(242, 238, 230, 0.08); }
.icon-btn svg { width: 20px; height: 20px; }

@media (min-width: 900px) {
  .lb-body { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: center; gap: 48px; overflow: hidden; }
  .lb-media img, .lb-media .ph { max-height: calc(100vh - 200px); }
  .lb-media .ph { height: calc(100vh - 200px); }
}

/* ---------- Artist ---------- */

.artist .grid { row-gap: 40px; }
.artist-photo { grid-column: 1 / -1; }
.artist-text { grid-column: 1 / -1; }
.artist-text h2 { margin-bottom: 24px; }
.artist-name { margin: 0 0 20px; font-size: 20px; font-weight: 500; line-height: 1.4; }
.artist-text .link-arrow { margin-top: 24px; }
@media (min-width: 768px) {
  .artist-photo { grid-column: 1 / 6; }
  .artist-text { grid-column: 7 / -1; align-self: center; }
}

.steps {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid; gap: 0 var(--gutter);
  grid-template-columns: 1fr;
  counter-reset: step;
  border-top: 1px solid var(--line);
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li {
  counter-increment: step;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 1100px) { .steps li { border-bottom: 0; } }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.1;
  color: var(--fire-hover);
}
.steps h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.steps p { margin: 0; color: var(--ash); font-size: 15px; }

/* ---------- Studio (light band) ---------- */

.studio {
  background: var(--ivory);
  color: var(--ink);
}
.studio .eyebrow { color: #5a554d; }
.studio .grid { row-gap: 40px; align-items: center; }
.studio-text { grid-column: 1 / -1; max-width: 720px; }
.studio-text h2 { margin-bottom: 24px; }
.studio-text .prose p { color: #2a2724; }
.studio-photo { grid-column: 1 / -1; margin-top: 16px; }
.studio .ph { background: #e6e1d7; border-color: rgba(17, 17, 17, 0.12); color: #5a554d; }
.studio-photo figcaption { margin-top: 12px; font-size: 14px; color: #5a554d; }
.elements {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  margin: 24px 0 0; padding: 0; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: 0.04em; text-transform: uppercase;
}
.elements li { display: flex; align-items: center; gap: 24px; }
.elements li + li::before { content: "→"; color: var(--fire); font-family: var(--font-body); font-size: 18px; }

/* ---------- Contact & form ---------- */

.contact .grid { row-gap: 48px; }
.contact-info { grid-column: 1 / -1; }
.contact-form { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .contact-info { grid-column: 1 / 5; }
  .contact-form { grid-column: 6 / -1; }
}

.info-list { margin: 32px 0 0; display: grid; gap: 20px; }
.info-list dt { color: var(--ash); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px; }
.info-list dd { margin: 0; }
.info-list a { text-underline-offset: 4px; }

.form-card {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 24px 20px;
}
@media (min-width: 768px) { .form-card { padding: 40px; } }
.form-card h3 { margin: 0 0 8px; font-size: 22px; font-weight: 600; }
.form-intro { margin: 0 0 32px; color: var(--ash); font-size: 15px; }

.field { margin-bottom: 24px; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }

.field label, .field .label {
  display: block; margin-bottom: 8px;
  font-size: 15px; font-weight: 600; line-height: 1.5;
}
.req { color: var(--error); margin-left: 2px; }
.optional { color: var(--ash); font-weight: 400; }
.hint { margin: -4px 0 8px; color: var(--ash); font-size: 14px; }

.field input:not([type="file"]), .field select, .field textarea {
  display: block; width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--ivory);
  font-size: 16px; line-height: 1.5;
  transition: border-color var(--dur) var(--ease);
}
.field textarea { min-height: 136px; resize: vertical; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ash) 50%), linear-gradient(135deg, var(--ash) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
  padding-right: 40px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ash); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--ivory); outline-offset: 1px; border-color: var(--ivory);
}
.field [aria-invalid="true"] { border-color: var(--error) !important; }
.field-error { margin: 6px 0 0; color: var(--error); font-size: 14px; }
.field-error:empty { display: none; }

.field input[type="file"] {
  display: block; width: 100%;
  padding: 10px;
  border: 1px dashed var(--line-strong); border-radius: 2px;
  color: var(--ash); font-size: 14px;
}
.field input[type="file"]::file-selector-button {
  margin-right: 12px;
  min-height: 40px; padding: 0 14px;
  background: transparent; color: var(--ivory);
  border: 1px solid var(--ivory); border-radius: 2px;
  font-weight: 600; cursor: pointer;
}

.ref-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 0 24px; padding: 10px 12px 10px 14px;
  border: 1px solid var(--line-strong); border-left: 3px solid var(--fire);
  font-size: 15px;
}
.ref-chip button {
  min-height: 36px; padding: 0 10px;
  background: transparent; border: 0; color: var(--ash);
  text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}

.form-note { margin: 0 0 24px; color: var(--ash); font-size: 14px; max-width: 60ch; }

.form-alert {
  margin: 0 0 24px; padding: 14px 16px;
  border: 1px solid var(--error); border-left-width: 3px;
  color: var(--ivory); font-size: 15px;
}
.form-alert strong { color: var(--error); }

.form-fallback { margin: 20px 0 0; color: var(--ash); font-size: 14px; }

.form-success { outline: none; }
.form-success h3 { font-size: 24px; margin-bottom: 12px; }
.form-success p { color: var(--ash); margin: 0 0 24px; max-width: 52ch; }
.success-mark {
  width: 44px; height: 44px; margin-bottom: 20px;
  display: grid; place-items: center;
  border: 1px solid var(--fire); border-radius: 50%;
  color: var(--soft);
}

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Page header (gallery page) ---------- */

.page-head { padding-block: 56px 40px; }
@media (min-width: 768px) { .page-head { padding-block: 88px 56px; } }

.cta-band { text-align: left; }
.cta-band .display { max-width: 18ch; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 40px;
  color: var(--ash); font-size: 14px;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer-inner p { margin: 0; }

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

.intro { display: none; }
.has-intro .intro {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: #111111;
  cursor: pointer;
}
.has-intro body { overflow: hidden; }
.intro-sparks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.intro-stage {
  position: relative;
  width: min(72vmin, 520px);
  aspect-ratio: 1;
  animation: intro-in 450ms ease-out both;
}
@keyframes intro-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
.intro-logo, .intro-burn, .intro-glow {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.intro-glow { filter: blur(10px); mix-blend-mode: screen; opacity: 0.9; }
.intro-skip {
  z-index: 4;
  position: absolute; right: var(--pad); bottom: 24px;
  min-height: 44px; padding: 0 16px;
  background: transparent; color: #b6b0a6;
  border: 1px solid rgba(242, 238, 230, 0.16); border-radius: 2px;
  font-size: 14px; cursor: pointer;
}
.intro-skip:hover { color: #f2eee6; border-color: rgba(242, 238, 230, 0.4); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .work-btn:hover .work-media { transform: none; }
}
