:root {
  --bg: #120d0a;
  --bg2: #18110d;
  --panel: #1f1712;
  --panel2: #281d16;
  --line: #3b2b20;
  --text: #ecdcc6;
  --muted: #b29a80;
  --wood: #dcae78;
  --ember: #e4732a;
  --ember2: #ffb35c;
  --char: #0a0705;
  --radius: 14px;
  --head: "Cinzel", Georgia, serif;
  --body: "Lora", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1200px 600px at 50% -200px, rgba(228,115,42,.10), transparent 70%),
    repeating-linear-gradient(92deg, rgba(255,255,255,.012) 0 2px, transparent 2px 9px);
}
img { max-width: 100%; display: block; }
a { color: var(--ember2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px clamp(16px, 4vw, 40px);
  padding-top: max(10px, env(safe-area-inset-top));
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled { background: rgba(14,10,8,.88); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 700 17px var(--head); letter-spacing: .06em; opacity: 0; transition: opacity .3s; }
.nav.scrolled .nav-brand { opacity: 1; }
.nav-brand img { border-radius: 50%; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a { color: var(--text); text-decoration: none; font: 500 14px var(--head); letter-spacing: .12em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; }
.nav-links a:hover { color: var(--ember2); }
.nav-links .nav-cta { border: 1px solid rgba(228,115,42,.6); color: var(--ember2); }
.nav-links .nav-cta:hover { background: rgba(228,115,42,.12); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-brand { opacity: 1; font-size: 15px; }
  .nav { background: rgba(14,10,8,.88); backdrop-filter: blur(10px); }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(14,10,8,.97); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .nav-links.open { max-height: 260px; }
  .nav-links a { padding: 16px; width: 100%; text-align: center; border-radius: 0; }
  .nav-links .nav-cta { border: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  padding: 90px 16px 70px; overflow: hidden; text-align: center;
  background: radial-gradient(ellipse at 50% 110%, #2a1409 0%, transparent 60%);
}
#embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-glow {
  position: absolute; left: 50%; top: 46%; width: min(1100px, 130vw); aspect-ratio: 2/1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255,150,60,.22), rgba(228,115,42,.07) 55%, transparent);
  filter: blur(10px); pointer-events: none;
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .65; transform: translate(-50%, -50%) scale(1.04); } }
.hero-inner { position: relative; max-width: 940px; }
.hero-logo { width: min(880px, 94vw); height: auto; margin: 0 auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,.6)); animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.tagline { font-size: clamp(17px, 2.2vw, 21px); color: var(--wood); max-width: 640px; margin: 18px auto 30px; font-style: italic; animation: rise 1.1s .25s both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; animation: rise 1.1s .4s both; }
.scroll-cue { position: absolute; bottom: 22px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(236,220,198,.35); border-radius: 14px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ember2); animation: cue 1.8s infinite; }
@keyframes cue { 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 14px var(--head); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn-ember { background: linear-gradient(180deg, var(--ember2), var(--ember)); color: #1c0d04; box-shadow: 0 6px 24px rgba(228,115,42,.35), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-ember:hover { box-shadow: 0 8px 34px rgba(255,140,50,.55), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-ghost { color: var(--text); border-color: rgba(236,220,198,.3); background: rgba(0,0,0,.25); }
.btn-ghost:hover { border-color: var(--ember2); color: var(--ember2); }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- sections ---------- */
.section { max-width: 1240px; margin: 0 auto; padding: clamp(60px, 9vw, 110px) clamp(16px, 4vw, 40px); }
.section-head { text-align: center; margin-bottom: 34px; }
h2 { font: 700 clamp(30px, 4.4vw, 46px)/1.15 var(--head); letter-spacing: .06em; margin: 0; color: var(--wood); text-shadow: 0 2px 0 rgba(0,0,0,.5); }
.divider { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 16px auto 0; max-width: 260px; }
.divider span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--ember) 60%, var(--ember2)); }
.divider span:last-child { transform: scaleX(-1); }
.divider i { width: 9px; height: 9px; background: var(--ember2); transform: rotate(45deg); box-shadow: 0 0 12px var(--ember); }
.divider.left { margin-left: 0; }
.lead { max-width: 640px; margin: 18px auto 0; color: var(--muted); }

/* ---------- gallery ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.filters:empty { display: none; }
.chip { font: 500 13px var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--panel); border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.chip[aria-selected="true"] { color: #1c0d04; background: var(--ember2); border-color: var(--ember2); }
.grid { columns: 3 300px; column-gap: 18px; }
.card {
  break-inside: avoid; margin: 0 0 18px; position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  background: var(--panel); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  animation: fadeUp .6s both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
.card:hover, .card:focus-visible { transform: translateY(-4px); border-color: rgba(228,115,42,.6); box-shadow: 0 18px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(255,150,60,.15), 0 0 40px rgba(228,115,42,.18); outline: none; }
.card img { width: 100%; height: auto; background: var(--panel2); }
.card .cap { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(8,5,3,.92)); }
.card .cap h3 { margin: 0; font: 700 16px var(--head); letter-spacing: .05em; color: var(--text); }
.card .cap p { margin: 2px 0 0; font-size: 13px; color: var(--wood); }
.card .star { position: absolute; top: 10px; right: 10px; font: 700 11px var(--head); letter-spacing: .1em; text-transform: uppercase; background: rgba(10,7,5,.75); color: var(--ember2); border: 1px solid rgba(255,179,92,.4); padding: 4px 10px; border-radius: 999px; }
.card.placeholder { cursor: default; }
.empty-note { text-align: center; color: var(--muted); font-style: italic; margin-top: 10px; }

/* ---------- about ---------- */
.about-card {
  display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: clamp(24px, 5vw, 60px); align-items: center;
  background: linear-gradient(135deg, var(--panel), var(--bg2)); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(24px, 5vw, 56px); box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.about-art img { width: 100%; border-radius: 50%; filter: drop-shadow(0 12px 30px rgba(228,115,42,.25)); }
.about-text h2 { text-align: left; }
.prose p { margin: 1em 0 0; }
.location { color: var(--ember2); font: 500 14px var(--head); letter-spacing: .14em; text-transform: uppercase; margin-top: 22px; }
.location:empty { display: none; }
.location::before { content: "◆ "; }
@media (max-width: 760px) {
  .about-card { grid-template-columns: 1fr; text-align: center; }
  .about-art { max-width: 200px; margin: 0 auto; }
  .about-text h2 { text-align: center; }
  .divider.left { margin-left: auto; }
}

/* ---------- commissions ---------- */
.status-pill { display: inline-block; margin: 18px 0 0; padding: 6px 16px; border-radius: 999px; font: 700 12px var(--head); letter-spacing: .14em; text-transform: uppercase; }
.status-pill:empty { display: none; }
.status-pill.open { color: #a6f0b0; background: rgba(60,160,80,.14); border: 1px solid rgba(110,210,130,.4); }
.status-pill.closed { color: #ffc2a6; background: rgba(200,80,40,.14); border: 1px solid rgba(240,130,90,.4); }
.steps { list-style: none; padding: 0; margin: 0 auto 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: s; max-width: 1100px; }
.steps li { counter-increment: s; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 20px; position: relative; }
.steps li::before { content: counter(s); position: absolute; top: -14px; left: 18px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 14px var(--head); color: #1c0d04; background: linear-gradient(180deg, var(--ember2), var(--ember)); box-shadow: 0 0 16px rgba(228,115,42,.5); }
.steps b { display: block; font: 700 16px var(--head); letter-spacing: .05em; color: var(--wood); margin: 6px 0 6px; }
.steps span { color: var(--muted); font-size: 15px; }

.comm-form { max-width: 820px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 4vw, 40px); display: grid; gap: 16px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.comm-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.comm-form .row.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 640px) { .comm-form .row, .comm-form .row.three { grid-template-columns: 1fr; } }
.comm-form label { display: grid; gap: 6px; font: 500 13px var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--wood); }
.comm-form label em { color: var(--ember2); font-style: normal; }
.comm-form small { text-transform: none; letter-spacing: 0; color: var(--muted); font-family: var(--body); }
input, select, textarea {
  font: 16px var(--body); color: var(--text); background: var(--char); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder, textarea::placeholder { color: #6f5c4b; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(228,115,42,.2); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--wood) 50%), linear-gradient(135deg, var(--wood) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
textarea { resize: vertical; min-height: 120px; }
.refs { display: grid; gap: 10px; }
.refs-label { font: 500 13px var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--wood); }
.file-btn { justify-self: start; cursor: pointer; display: inline-block !important; padding: 10px 18px; border: 1px dashed rgba(255,179,92,.5); border-radius: 10px; color: var(--ember2) !important; }
.file-btn input { display: none; }
.ref-previews { display: flex; gap: 10px; flex-wrap: wrap; }
.ref-previews figure { margin: 0; position: relative; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.ref-previews img { width: 100%; height: 100%; object-fit: cover; }
.ref-previews button { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.75); color: #fff; cursor: pointer; line-height: 1; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin: 0; text-align: center; min-height: 1.4em; }
.form-msg.ok { color: #a6f0b0; }
.form-msg.bad { color: #ffb39a; }

/* ---------- footer ---------- */
.footer { text-align: center; padding: 60px 16px calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(0,0,0,.35)); }
.footer-logo { width: min(320px, 70vw); height: auto; margin: 0 auto 18px; opacity: .92; }
.socials { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.socials a { color: var(--wood); text-decoration: none; font: 500 13px var(--head); letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; }
.socials a:hover { color: var(--ember2); border-color: var(--ember); }
.copy { color: #7d6855; font-size: 14px; margin: 0; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6,4,3,.96); display: grid; grid-template-columns: auto 1fr auto; align-items: center; animation: fadeIn .2s; }
.lightbox[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 14px; padding: 60px 8px 20px; max-height: 100svh; overflow: auto; }
.lightbox img { max-width: 100%; max-height: 72svh; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox figcaption { text-align: center; max-width: 640px; padding: 0 12px; }
.lightbox h3 { margin: 0; font: 700 22px var(--head); color: var(--wood); letter-spacing: .05em; }
.lb-details { color: var(--ember2); font-size: 14px; margin: 4px 0 0; }
.lightbox figcaption p:last-child { color: var(--muted); margin: 8px 0 0; white-space: pre-line; }
.lb-close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 14px; z-index: 2; width: 46px; height: 46px; font-size: 32px; line-height: 1; color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.lb-nav { width: 54px; height: 90px; font-size: 44px; color: var(--text); background: none; border: 0; cursor: pointer; opacity: .7; }
.lb-nav:hover { opacity: 1; color: var(--ember2); }
@media (max-width: 640px) { .lb-nav { position: absolute; bottom: 10px; height: 54px; } .lb-prev { left: 10px; } .lb-next { right: 10px; } .lightbox { grid-template-columns: 1fr; } .lightbox figure { padding-bottom: 80px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
.about-art img { height: auto; aspect-ratio: 1; }
