/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --bg: #141210;
  --bg-elevated: #1c1916;
  --bg-card: #221e1a;
  --text: #f0ebe3;
  --text-muted: #9a9188;
  --accent: #c4785a;
  --accent-soft: rgba(196, 120, 90, 0.15);
  --accent-glow: rgba(196, 120, 90, 0.35);
  --border: rgba(240, 235, 227, 0.08);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 2px;
}

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100dvh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

a { color: inherit; text-decoration: none; }

/* Film grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(to bottom, var(--bg) 60%, transparent);
  backdrop-filter: blur(8px);
}

.logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: color 0.3s var(--ease);
}

.logo:hover { color: var(--accent); }

.main-nav {
  display: flex;
  gap: 0.25rem;
}

.nav-tab {
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s var(--ease);
  position: relative;
}

.nav-tab::after {
  content: "";
  position: absolute;
  bottom: 0.15rem;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.nav-tab:hover,
.nav-tab.active { color: var(--text); }

.nav-tab.active::after { transform: scaleX(1); }

.nav-tab--commissions {
  color: var(--accent);
}

.nav-tab--commissions.active { color: var(--accent); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s var(--ease);
}

/* ── Panels (tab views) ─────────────────────────────────────── */
main {
  padding-top: var(--header-h);
}

.panel {
  display: none;
  min-height: calc(100dvh - var(--header-h));
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  animation: fadeIn 0.5s var(--ease);
}

.panel.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.panel-header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.panel-header--left { text-align: left; }

.panel-header h2 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.panel-subtitle {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 36ch;
  margin-inline: auto;
}

/* ── Landing feed (home) ──────────────────────────────────────── */
.panel--landing {
  display: none;
  min-height: auto;
  padding: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 4vw, 2.5rem) clamp(4rem, 8vw, 6rem);
  max-width: 960px;
  margin-inline: auto;
}

.panel--landing.active { display: block; }

.landing-intro {
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--border);
}

.landing-intro__name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.landing-intro__tagline {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.landing-intro__tagline em {
  font-style: italic;
  color: var(--accent);
}

.landing-intro__lead {
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 38ch;
}

.landing-feed {
  display: flex;
  flex-direction: column;
  gap: clamp(3.5rem, 10vw, 6rem);
}

.landing-piece__media {
  line-height: 0;
}

.landing-piece__media img,
.landing-piece__media video {
  width: 100%;
  height: auto;
  display: block;
}

.landing-piece__title {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Hero (legacy) ──────────────────────────────────────────── */
.panel--hero {
  display: none;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 1200px;
  margin-inline: auto;
}

.panel--hero.active { display: grid; }

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 32ch;
  margin-bottom: 2rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-frame {
  width: min(100%, 380px);
  aspect-ratio: 3 / 4;
  border: 1px solid var(--border);
  padding: 0.75rem;
  position: relative;
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid var(--accent-glow);
  opacity: 0.5;
  pointer-events: none;
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.btn:hover {
  background: var(--accent);
  color: var(--bg);
}

.btn--full { width: 100%; }

/* ── Portrait placeholders ──────────────────────────────────── */
.portrait-placeholder {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.portrait-placeholder--hero {
  background: linear-gradient(160deg, #2a2218 0%, #1a1510 40%, #3d2e22 100%);
  position: relative;
}

.portrait-placeholder--hero::after {
  content: "";
  position: absolute;
  inset: 20% 25%;
  background: radial-gradient(ellipse at 50% 35%, rgba(196, 120, 90, 0.25) 0%, transparent 70%);
  border-radius: 50%;
}

.portrait-placeholder--oil {
  background: linear-gradient(145deg, #3d2a1e, #1e1610);
}

.portrait-placeholder--oil-2 {
  background: linear-gradient(200deg, #2e2218, #4a3528);
}

.portrait-placeholder--sculpture {
  background: linear-gradient(180deg, #4a443c, #2a2620);
}

.portrait-placeholder--print {
  background: repeating-linear-gradient(
    -45deg,
    #1a1816,
    #1a1816 3px,
    #2a2420 3px,
    #2a2420 6px
  );
}

.portrait-placeholder--scratch {
  background:
    linear-gradient(90deg, transparent 48%, rgba(240, 235, 227, 0.06) 50%, transparent 52%),
    linear-gradient(160deg, #1a1816, #0d0c0a);
  background-size: 8px 100%, 100% 100%;
}

.portrait-placeholder--film {
  background: linear-gradient(90deg, #0a0908 0%, #1a1510 15%, #2a2018 50%, #1a1510 85%, #0a0908 100%);
}

.portrait-placeholder--artist {
  background: linear-gradient(170deg, #2a2420, #1a1614);
  aspect-ratio: 4 / 5;
}

/* ── Gallery ────────────────────────────────────────────────── */
.medium-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: none;
  border: 1px solid var(--border);
  padding: 0.45rem 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 1100px;
  margin-inline: auto;
}

.gallery-item {
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.gallery-item.hidden {
  display: none;
}

.gallery-frame {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  position: relative;
}

.gallery-frame--wide { aspect-ratio: 16 / 9; }

.gallery-frame img,
.gallery-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--bg-card);
}

.gallery-frame .portrait-placeholder,
.gallery-frame img {
  transition: transform 0.6s var(--ease);
}

.gallery-item:hover .portrait-placeholder,
.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-frame video {
  object-fit: contain;
}

.film-badge {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border);
}

.medium-tag {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.gallery-caption h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  margin-top: 0.25rem;
}

/* ── About ──────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 900px;
  margin-inline: auto;
  align-items: start;
}

.about-portrait {
  border: 1px solid var(--border);
  padding: 0.5rem;
}

.about-subheading {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--accent);
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4 / 5;
}

.about-lead {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-text strong {
  color: var(--text);
  font-weight: 400;
}

.medium-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.medium-list li {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ── Commissions ────────────────────────────────────────────── */
.panel--commissions {
  background: radial-gradient(ellipse at 50% 0%, var(--accent-soft) 0%, transparent 55%);
}

.commissions-inner {
  max-width: 960px;
  margin-inline: auto;
}

.commissions-intro-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
  margin-top: 1.25rem;
}

.commissions-intro-text {
  min-width: 0;
}

.commissions-example {
  margin: 0;
  width: 100%;
  border: 1px solid var(--border);
  padding: 0.4rem;
}

.commissions-example img {
  width: 100%;
  display: block;
}

.commissions-example__caption {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.commissions-header {
  text-align: left;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
}

.commissions-header h2 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.commissions-intro {
  margin-top: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.commissions-intro + .commissions-intro {
  margin-top: 1rem;
}

.commission-block {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
}

.commission-block__title {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 1.75rem;
}

.commission-offering {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.commission-offering:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.commission-offering__title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.commission-offering p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.commission-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.commission-list {
  list-style: none;
  margin-bottom: 0.5rem;
}

.commission-list li {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.2rem 0;
  padding-left: 1rem;
  position: relative;
}

.commission-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.commission-list--pricing li::before {
  content: "•";
}

.commission-note {
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 0.75rem;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.price-table th,
.price-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.price-table th {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
}

.price-table td {
  color: var(--text-muted);
}

.price-table td:last-child {
  color: var(--text);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item dt {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}

.faq-item dd {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

.commissions-badge {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.3rem 0.75rem;
  margin-bottom: 1rem;
}

.commission-form h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.process-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.process-steps li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-num {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
  width: 2rem;
}

.process-steps strong {
  display: block;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.process-steps p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.commission-form {
  margin-top: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: clamp(1.5rem, 3vw, 2rem);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-response-note {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.field-error {
  display: block;
  font-size: 0.8rem;
  color: #d4846a;
  margin-top: 0.35rem;
  min-height: 0;
}

.field-error:not(:empty) {
  min-height: 1rem;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--accent);
  min-height: 0;
}

.form-note:not(:empty) {
  min-height: 1.25rem;
}

.form-note--error {
  color: #d4846a;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-cta {
  color: var(--accent);
  letter-spacing: 0.05em;
  transition: opacity 0.3s;
}

.footer-cta:hover { opacity: 0.75; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
    pointer-events: none;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-tab {
    padding: 0.85rem 1rem;
    text-align: left;
  }

  .panel--hero.active {
    grid-template-columns: 1fr;
  }

  .hero-visual { order: -1; }

  .hero-frame { width: min(70%, 280px); }

  .about-grid,
  .commissions-intro-row {
    grid-template-columns: 1fr;
  }


  .site-footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
