:root {
  --bone: #f4efe6;
  --bone-dim: #e7dfd2;
  --lamp: #12100e;
  --lamp-2: #1c1916;
  --iron: #8c2f1b;
  --iron-bright: #b03c24;
  --gold: #c4a574;
  --gold-dim: #9a7d52;
  --indigo: #1c2740;
  --linen: #d9d0c1;
  --ink: #1a1613;
  --mute: #6b6258;
  --rule: rgba(196, 165, 116, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header: 4.5rem;
  --gutter: clamp(1rem, 4vw, 1.5rem);
  --page: 1180px;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Source Serif 4", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  max-width: 100%;
  min-height: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--bone);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

#main {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
}

body.theme-dark {
  color: var(--bone);
  background: var(--lamp);
}

img,
video,
iframe,
svg {
  max-width: 100%;
  display: block;
}

iframe { border: 0; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  overflow-wrap: break-word;
}

a:hover { color: var(--iron-bright); }

.theme-dark a:hover { color: var(--gold); }

::selection {
  background: var(--iron);
  color: var(--bone);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--lamp);
  color: var(--bone);
  padding: 0.6rem 1rem;
  z-index: 80;
}

.skip:focus { top: 1rem; }

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  height: var(--header);
  width: 100%;
  max-width: 100%;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  background: linear-gradient(to bottom, rgba(18, 16, 14, 0.72), rgba(18, 16, 14, 0.28) 70%, transparent);
  color: var(--bone);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

.site-header.is-solid {
  background: rgba(18, 16, 14, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(196, 165, 116, 0.18);
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  gap: 0.28rem;
  min-width: 0;
  flex: 0 1 auto;
}

.brand:hover { color: var(--bone); }

.brand-mark {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.brand-sub {
  font-family: var(--serif);
  font-size: 0.62rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
  padding-left: 0.08rem;
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  background: none;
  border: 1px solid var(--gold);
  color: var(--bone);
  font-family: var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 0.4rem 0.7rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.6rem;
  min-width: 0;
}

.site-nav a {
  font-family: var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone);
  opacity: 0.82;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  opacity: 1;
  color: var(--gold);
}

/* Hero */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: end start;
  overflow: hidden;
  background: var(--lamp);
  color: var(--bone);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: ken 28s var(--ease) alternate infinite;
}

@keyframes ken {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.4%, -1%, 0); }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(18, 16, 14, 0.78) 0%, rgba(18, 16, 14, 0.2) 42%, rgba(18, 16, 14, 0.35) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(calc(var(--page) + 2 * var(--gutter)), 100%);
  max-width: 100%;
  margin-inline: auto;
  padding: 0 var(--gutter) 5.5rem;
  box-sizing: border-box;
}

.eyebrow {
  font-family: var(--sans);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold);
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 6.2rem);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 0.88;
  margin: 0 0 1rem;
}

.lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  max-width: 28ch;
  margin: 0 0 2rem;
  color: var(--linen);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--bone);
  border: 1px solid var(--gold);
  padding: 0.85rem 1.3rem;
  background: transparent;
  cursor: pointer;
}

.btn:hover {
  background: var(--iron);
  border-color: var(--iron);
  color: var(--bone);
}

.btn-solid {
  background: var(--iron);
  border-color: var(--iron);
  color: var(--bone);
}

.btn-solid:hover {
  background: var(--iron-bright);
  border-color: var(--iron-bright);
  color: var(--bone);
}

/* Layout */

.wrap {
  width: min(calc(var(--page) + 2 * var(--gutter)), 100%);
  max-width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: border-box;
}

.section {
  padding: 5.5rem 0;
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem 1.4rem;
  align-items: baseline;
  margin-bottom: 2.4rem;
}

.section-num {
  font-family: var(--sans);
  letter-spacing: 0.2em;
  color: var(--gold);
  font-size: 0.78rem;
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin: 0;
  line-height: 1.1;
}

.section-head p {
  grid-column: 2;
  margin: 0;
  color: var(--mute);
  max-width: 48ch;
}

.theme-dark .section-head p { color: var(--linen); }

.rule {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 0;
}

/* Manifesto */

.manifesto {
  background: var(--lamp);
  color: var(--bone);
  padding: 5rem 0;
  text-align: center;
}

.manifesto blockquote {
  margin: 0 auto;
  max-width: 28ch;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.25;
  font-weight: 500;
}

.manifesto cite {
  display: block;
  margin-top: 1.4rem;
  font-family: var(--sans);
  font-style: normal;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--gold);
}

/* Rooms */

.rooms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.room-tile {
  position: relative;
  display: block;
  min-height: 16rem;
  overflow: hidden;
  color: var(--bone);
  text-decoration: none;
}

.room-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.8s var(--ease);
}

.room-tile:hover img { transform: scale(1.07); }

.room-tile > span:not(.ph-badge) {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  min-height: 16rem;
  padding: 1.1rem;
  background: linear-gradient(to top, rgba(18, 16, 14, 0.78), transparent 55%);
  font-family: var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.room-tile:hover { color: var(--gold); }

/* Featured masonry */

.feature-grid {
  columns: 3;
  column-gap: 1.1rem;
}

.feature-card,
.work-card {
  position: relative;
  break-inside: avoid;
  margin-bottom: 1.1rem;
  display: block;
  text-decoration: none;
  color: inherit;
}

.notice {
  margin: 0 auto 1.6rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gold-dim);
  background: rgba(196, 165, 116, 0.12);
  color: var(--ink);
  font-size: 0.98rem;
}

.theme-dark .notice,
.hero .notice {
  color: var(--linen);
  background: rgba(18, 16, 14, 0.45);
}

.ph-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 3;
  font-family: var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
  background: rgba(18, 16, 14, 0.86);
  color: var(--gold);
  border: 1px solid rgba(196, 165, 116, 0.65);
  padding: 0.28rem 0.5rem;
  pointer-events: none;
}

.hero > .ph-badge {
  top: calc(var(--header) + 0.55rem);
  left: var(--gutter);
}

.ph-frame {
  position: relative;
  min-width: 0;
  height: 100%;
}

.portrait-wrap {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  position: relative;
}

.portrait-wrap .ph-cap {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  color: var(--mute);
}

.feature-card figure,
.work-card figure {
  margin: 0;
}

.feature-card img,
.work-card img {
  width: 100%;
  height: auto;
  background: var(--linen);
}

.cap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.1rem 0;
  font-family: var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.cap strong {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  font-family: var(--serif);
  font-size: 1.05rem;
}

.cap span { color: var(--mute); }

/* Studio band */

.studio-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  width: 100%;
  min-height: min(70vh, 70dvh);
  background: var(--lamp);
  color: var(--bone);
}

.studio-band > * { min-width: 0; }

.studio-band img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 22rem;
}

.studio-copy {
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.studio-copy h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  margin: 0 0 1rem;
}

.studio-copy p { color: var(--linen); max-width: 38ch; }

/* CTA */

.cta {
  text-align: center;
  width: 100%;
  padding: 5.5rem var(--gutter);
  background: var(--bone);
  color: var(--ink);
}

.cta h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.8rem;
}

.cta p { color: var(--mute); margin: 0 0 1.8rem; }

/* Gallery filters */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2.2rem;
}

.filter {
  font-family: var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

.filter:hover,
.filter.is-on {
  border-color: var(--iron);
  color: var(--iron);
}

.work-grid {
  columns: 3;
  column-gap: 1.1rem;
}

.work-card:hover .cap strong { color: var(--iron); }

.empty-note {
  display: none;
  text-align: center;
  color: var(--mute);
  padding: 3rem 0 5rem;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(18, 16, 14, 0.96);
  color: var(--bone);
  display: none;
  grid-template-columns: 4.2rem minmax(0, 1fr) 4.2rem;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  padding: 3.8rem 0.4rem max(1rem, env(safe-area-inset-bottom));
  gap: 0.5rem 0.15rem;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.lightbox.is-open { display: grid; }

.lightbox .ph-badge {
  grid-column: 2;
  grid-row: 2;
  position: relative;
  top: auto;
  left: auto;
  z-index: 4;
  align-self: start;
  justify-self: start;
  margin: 0.4rem;
}

.lightbox img {
  grid-column: 2;
  grid-row: 2;
  max-height: min(72dvh, 860px);
  width: auto;
  max-width: 100%;
  min-width: 0;
  height: auto;
  margin: 0;
  object-fit: contain;
}

.lightbox-meta {
  grid-column: 1 / -1;
  grid-row: 3;
  text-align: center;
  max-width: 36rem;
  padding-inline: 1rem;
  box-sizing: border-box;
}

.lightbox-meta h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.7rem;
  margin: 0 0 0.35rem;
}

.lightbox-meta p {
  margin: 0.1rem 0;
  color: var(--linen);
  font-size: 0.95rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: 0;
  color: var(--gold);
  font-family: var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  font-size: 0.78rem;
  padding: 0.6rem;
  z-index: 2;
}

.lightbox-close { top: 1.2rem; right: max(1.2rem, env(safe-area-inset-right)); }
.lightbox-prev {
  grid-column: 1;
  grid-row: 2;
  position: static;
  transform: none;
}
.lightbox-next {
  grid-column: 3;
  grid-row: 2;
  position: static;
  transform: none;
}

/* Page hero (inner) */

.page-hero {
  padding: calc(var(--header) + 4.5rem) 0 2.6rem;
}

.page-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin: 0.4rem 0 0.8rem;
  line-height: 1;
}

.page-hero p {
  max-width: 46ch;
  color: var(--mute);
  margin: 0;
}

.theme-dark .page-hero p { color: var(--linen); }

/* About */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 3rem;
  align-items: start;
}

.split > * { min-width: 0; max-width: 100%; }

.split img {
  width: 100%;
  max-width: 100%;
  height: min(36rem, 70vh);
  object-fit: cover;
}

.split img.artist-portrait {
  height: auto;
  max-height: none;
  max-width: min(22rem, 100%);
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 18%;
  box-shadow: 0 0 0 1px var(--gold);
  background: var(--linen);
}

.prose h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2rem;
  margin: 0 0 1rem;
}

.prose p { margin: 0 0 1rem; }

.quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.55rem;
  line-height: 1.3;
  margin: 1.6rem 0;
  padding-left: 1rem;
  border-left: 1px solid var(--gold);
}

.timeline {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.timeline li {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1.2rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}

.timeline strong {
  font-family: var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold-dim);
  font-weight: 600;
}

/* Commission cards */

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.card {
  padding: 1.6rem 1.5rem 1.5rem;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.25);
}

.card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
}

.card p { margin: 0; color: var(--mute); }

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2.5rem;
  padding-bottom: 4rem;
}

.contact-grid > * { min-width: 0; }

.facts {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.facts li { margin: 0 0 1rem; }

.facts span {
  display: block;
  font-family: var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold-dim);
}

.form {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
  max-width: 100%;
}

.form label {
  display: grid;
  gap: 0.3rem;
  font-family: var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.form input,
.form select,
.form textarea {
  font-family: var(--body);
  font-size: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--rule);
  background: #fffdf8;
  color: var(--ink);
  box-sizing: border-box;
}

.form textarea { min-height: 8rem; resize: vertical; }

.map {
  display: block;
  margin: 0;
  border: 0;
  width: 100%;
  max-width: 100%;
  height: min(22rem, 50dvh);
  min-height: 16rem;
  filter: grayscale(0.35) contrast(1.05);
}

.form-note {
  font-size: 0.95rem;
  color: var(--mute);
  margin: 0;
}

/* Footer */

.site-footer {
  background: var(--lamp);
  color: var(--bone);
  padding: 2.4rem 0 2.2rem;
  font-size: 0.95rem;
  width: 100%;
  margin-top: auto;
  flex-shrink: 0;
}

.footer-grid {
  width: min(calc(var(--page) + 2 * var(--gutter)), 100%);
  max-width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
}

.footer-grid > * { min-width: 0; }

.site-footer .brand-mark { font-size: 1.05rem; }

.site-footer a { color: var(--linen); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

.tiny {
  font-family: var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.legal {
  width: min(calc(var(--page) + 2 * var(--gutter)), 100%);
  max-width: 100%;
  margin: 1.4rem auto 0;
  padding: 1.2rem var(--gutter) 0;
  box-sizing: border-box;
  border-top: 1px solid rgba(196, 165, 116, 0.18);
  color: var(--mute);
  font-size: 0.85rem;
}

/* Grain */

body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 25;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

@media (max-width: 980px) {
  .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid,
  .work-grid { columns: 2; }
  .studio-band { grid-template-columns: 1fr; }
  .lightbox { grid-template-columns: 3.2rem minmax(0, 1fr) 3.2rem; }
  .lightbox img { max-height: 58dvh; }
  .lightbox-prev,
  .lightbox-next { letter-spacing: 0.08em; padding: 0.5rem 0.15rem; }
  .studio-copy { padding: 2.4rem var(--gutter) 3rem; }
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    max-width: 100%;
    background: rgba(18, 16, 14, 0.97);
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 1rem max(var(--gutter), env(safe-area-inset-right)) calc(1.4rem + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
    gap: 0.9rem;
  }
  .site-nav.is-open { display: flex; }
  .split,
  .contact-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .split img.artist-portrait { max-width: min(28rem, 100%); width: 100%; }
  .brand-mark { font-size: 1.02rem; }
  .hero h1 { font-size: clamp(2.4rem, 12vw, 3.8rem); }
  .section-head p { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .feature-grid,
  .work-grid { columns: 1; }
  .timeline li { grid-template-columns: 1fr; gap: 0.25rem; }
  .hero h1 { font-size: clamp(2.3rem, 14vw, 3.4rem); }
}

@media (max-height: 560px) {
  .hero-copy { padding-bottom: 2.4rem; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3.2rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero img { animation: none; transform: none; }
  .room-tile img { transition: none; }
}
