/* The Frame Theory: warm charcoal with terracotta and copper.
   Names kept from the first design: --brass is now the terracotta accent. */
:root {
  --bg: #141211;
  --panel: #1c1917;
  --panel-2: #221e1b;
  --text: #ece8e4;
  --muted: #a39a92;
  --brass: #c8643b;        /* terracotta accent: buttons, highlights */
  --brass-hi: #e07c52;     /* lighter terracotta: hover, small accent text */
  --copper: #b87333;       /* subtle metallic hairlines and gradients */
  --copper-grad: linear-gradient(90deg, #8f5524, #c98a4b 50%, #8f5524);
  --ink: #141211;          /* dark text used on terracotta buttons */
  --line: #3a322c;
  --sage: #7d6a5c;
  --focus: #f0a27f;
  --head: "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gut: clamp(18px, 4vw, 40px);
  --r: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--body);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--brass); text-underline-offset: 3px; }
a { transition: color .2s var(--ease); }
a:hover { color: var(--brass-hi); }
h1, h2, h3, .h3 { font-family: var(--head); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 4rem); font-weight: 500; line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.75rem); }
h3, .h3 { font-size: 1.25rem; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.note { color: var(--muted); font-size: 0.95rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 1px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--panel { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rule-top { border-top: 1px solid var(--line); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brass); color: var(--bg); padding: 8px 14px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  font: 600 1rem/1.1 var(--body); text-decoration: none; text-align: center;
  border: 1px solid var(--brass); border-radius: var(--r);
  cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--brass { background: var(--brass); color: var(--ink); }
.btn--brass:hover { background: var(--brass-hi); border-color: var(--brass-hi); color: var(--ink); box-shadow: 0 8px 24px -10px rgba(224, 124, 82, .55); }
.btn--line { background: transparent; color: var(--text); border-color: var(--copper); }
.btn--line:hover { background: rgba(200, 100, 59, .12); color: var(--text); border-color: var(--brass-hi); }
.btn--sm { min-height: 40px; padding: 9px 16px; font-size: .95rem; }
.btn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 480px; }
.btn-pair .btn { width: 100%; }

/* ---------- logo ---------- */
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--text); }
.brand__img { height: 52px; width: auto; max-width: none; }
.site-footer .brand__img { height: 84px; }
@media (max-width: 560px) { .brand__img { height: 44px; } }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 30; border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header::after, .site-footer::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--copper-grad); opacity: .55; pointer-events: none; }
.site-footer::before { top: -1px; bottom: auto; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 24px; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s var(--ease), border-color .2s var(--ease); letter-spacing: .01em; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--brass); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); font: 600 .95rem var(--body); padding: 9px 14px; border-radius: var(--r); cursor: pointer; }

@media (max-width: 860px) {
  .menu-btn { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gut) 20px; }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 16px; }
}

/* ---------- footer ---------- */
.site-footer { position: relative; border-top: 1px solid var(--line); padding-top: 56px; background: var(--panel-2); }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr .7fr 1fr; gap: 40px; }
.site-footer address { font-style: normal; color: var(--muted); }
.site-footer address p { margin-bottom: .8em; }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; }
.site-footer__nav li { margin-bottom: 8px; }
.site-footer__nav a { color: var(--muted); text-decoration: none; }
.site-footer__nav a:hover { color: var(--text); }
.site-footer__actions { display: flex; flex-direction: column; gap: 12px; }
.site-footer__brand p { margin-top: 14px; max-width: 26ch; }
.site-footer__base { border-top: 1px solid var(--line); margin-top: 48px; padding-block: 20px; color: var(--muted); font-size: .9rem; }
.site-footer__base p { margin: 0; }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- ruled lists ---------- */
.ruled { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ruled li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 8px 32px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ruled__title { font-family: var(--head); font-weight: 500; font-size: 1.2rem; line-height: 1.25; margin: 0; }
.ruled__text { color: var(--muted); }
@media (max-width: 640px) { .ruled li { grid-template-columns: 1fr; } }

/* ---------- section layouts ---------- */
.split { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.split--rev { grid-template-columns: 7fr 4fr; }
.split__aside { position: sticky; top: 32px; }
.split__aside p { color: var(--muted); max-width: 34ch; }
@media (max-width: 860px) { .split, .split--rev { grid-template-columns: 1fr; } .split__aside { position: static; } }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 56ch; }
.text-link { font-weight: 600; color: var(--brass-hi); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-link:hover { color: var(--brass-hi); }

/* ---------- prices ---------- */
.prices { margin: 0; border-top: 1px solid var(--line); }
.prices__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.prices dt { font-family: var(--head); font-weight: 500; font-size: 1.15rem; }
.prices dt .muted { font-family: var(--body); font-weight: 400; font-size: .95rem; }
.prices dd { margin: 0; font-family: var(--head); font-size: 1.35rem; font-weight: 500; color: var(--brass-hi); font-variant-numeric: lining-nums tabular-nums; }
.prices dd.prices__per { font-size: 1.05rem; color: var(--text); font-weight: 500; }
.prices + .note { margin-top: 16px; }

/* ---------- estimator ---------- */
.estimator { background: var(--panel); border: 1px solid var(--line); padding: clamp(20px, 3vw, 32px); position: relative; }
.estimator::before, .estimator::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--brass); }
.estimator::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.estimator::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.seg { border: 0; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.seg legend { font-weight: 600; margin-bottom: 12px; padding: 0; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 8px 10px; border: 1px solid var(--line); margin-left: -1px; font-weight: 500; color: var(--muted); line-height: 1.2; font-size: .95rem; }
.seg label:first-of-type span { margin-left: 0; }
.seg input:checked + span { background: var(--brass); color: var(--ink); border-color: var(--brass); font-weight: 600; position: relative; }
.seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; position: relative; z-index: 1; }
@media (max-width: 560px) { .seg { grid-template-columns: 1fr 1fr; } .seg label:nth-of-type(3) span { margin-left: 0; } .seg label:nth-of-type(n+3) span { margin-top: -1px; } }
.estimator__label { margin: 0; color: var(--muted); font-size: .95rem; }
.estimator__value { font-family: var(--head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 500; color: var(--brass-hi); margin: 2px 0 8px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.estimator__note { color: var(--muted); font-size: .95rem; max-width: 48ch; }
.estimator__wa { margin-top: 8px; }

/* ---------- picture frames ---------- */
.frame { position: relative; padding: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.frame::before, .frame::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--brass); pointer-events: none; z-index: 2; }
.frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.frame::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.frame > img, .frame > video, .frame > .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ph {
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(184, 115, 51, .08) 14px 15px),
    #1f1b18;
  color: var(--muted); font-size: .95rem; text-align: center; padding: 16px;
  border: 1px dashed var(--line);
}
.ph--alt { background: repeating-linear-gradient(45deg, transparent 0 14px, rgba(184, 115, 51, .1) 14px 15px), #26211d; }

/* ---------- projects ---------- */
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.project-entry a { text-decoration: none; display: block; }
.project-entry--offset { margin-top: 56px; }
.project-entry__title { margin: 18px 0 4px; font-size: 1.2rem; }
.project-entry__meta { color: var(--muted); font-size: .95rem; margin: 0; }
.project-entry a:hover .project-entry__title { color: var(--brass-hi); }
.project-entry a:hover .frame { border-color: var(--sage); }
@media (max-width: 860px) { .project-grid { grid-template-columns: 1fr 1fr; } .project-entry--offset { margin-top: 0; } }
@media (max-width: 560px) { .project-grid { grid-template-columns: 1fr; } }

.project-head__grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; margin-top: 24px; }
@media (max-width: 760px) { .project-head__grid { grid-template-columns: 1fr; gap: 28px; } }
.crumbs { color: var(--muted); font-size: .95rem; }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tags li { border: 1px solid var(--line); padding: 4px 12px; font-size: .95rem; color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 0; }
.filters button { background: none; color: var(--muted); border: 1px solid var(--line); margin-left: -1px; padding: 10px 16px; min-height: 44px; font: 500 .95rem var(--body); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--brass); color: var(--ink); border-color: var(--brass); font-weight: 600; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.gallery figure { margin: 0; }
.gallery figcaption { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.gallery__item[hidden] { display: none; }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }

/* before / after */
.ba-list { display: grid; gap: 32px; max-width: 900px; }
.ba { --pos: 50%; overflow: hidden; }
.ba__layer { position: relative; }
.ba__layer > img, .ba__layer > .ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ba__before { position: absolute; inset: 10px; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__before > img, .ba__before > .ph { height: 100%; }
.ba__handle { position: absolute; top: 10px; bottom: 10px; left: calc(10px + (100% - 20px) * var(--pos) / 100%); width: 2px; background: var(--brass); transform: translateX(-1px); pointer-events: none; z-index: 3; }
.ba__handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; transform: translate(-50%, -50%); border: 2px solid var(--brass); background: var(--bg); border-radius: 50%; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 4; }
.ba__range:focus-visible ~ .ba__handle::after, .ba:focus-within .ba__handle::after { box-shadow: 0 0 0 3px var(--focus); }
.ba__tag { position: absolute; top: 20px; z-index: 3; background: rgba(20, 18, 17, .85); padding: 4px 10px; font-size: .85rem; font-weight: 600; }
.ba__tag--l { left: 20px; } .ba__tag--r { right: 20px; }

/* ---------- reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.review { margin: 0; padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.review + .review { padding-left: 28px; border-left: 1px solid var(--line); }
.review blockquote { margin: 0 0 16px; font-family: var(--head); font-size: 1.2rem; line-height: 1.35; }
.review blockquote p { margin: 0; }
.review figcaption { color: var(--muted); font-size: .95rem; }
.review--ph blockquote { color: var(--muted); font-style: italic; font-family: var(--body); font-size: 1.05rem; }
@media (max-width: 860px) {
  .reviews { grid-template-columns: 1fr; }
  .review, .review + .review { padding: 22px 0; border-left: 0; }
}

/* ---------- process list ---------- */
.process-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: none; }
.process-list li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.process-list__n { font-family: var(--head); font-size: 1.4rem; color: var(--brass-hi); font-variant-numeric: tabular-nums; line-height: 1.1; }
.process-list h3 { margin-bottom: 6px; }
.process-list p { color: var(--muted); margin: 0; max-width: 62ch; }

/* ---------- CTA band ---------- */
.cta { border-top: 1px solid var(--line); }
.cta__grid { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: end; }
.cta h2 { max-width: 16ch; margin-bottom: .3em; }
.cta p { color: var(--muted); max-width: 46ch; }
@media (max-width: 860px) { .cta__grid { grid-template-columns: 1fr; } }

/* ---------- page intro ---------- */
.page-intro { padding-block: clamp(56px, 8vw, 104px) clamp(32px, 5vw, 56px); }
.page-intro h1 { max-width: 18ch; }
.page-intro .lede { margin-top: 12px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { margin: 0; border-top: 1px solid var(--line); }
.contact-list div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--muted); font-size: .9rem; margin-bottom: 4px; }
.contact-list dd { margin: 0; font-size: 1.1rem; }
.contact-list address { font-style: normal; }

.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: var(--r);
  font: 400 1rem/1.4 var(--body);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brass); outline: 2px solid var(--focus); outline-offset: 1px; }
.field input[type="date"] { color-scheme: dark; }
.form__send { padding-top: 4px; }
.form__hint { color: var(--muted); font-size: .92rem; margin: 0; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 .78rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--brass-hi); margin: 0 0 14px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--copper-grad); }

/* ---------- contact form ---------- */
.field .req { color: var(--brass-hi); }
.field input::placeholder, .field textarea::placeholder { color: #7d756e; }
.field input, .field select, .field textarea { transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--sage); }
.field select { color-scheme: dark; }
.field [aria-invalid="true"] { border-color: #e5775f; }
.field__err { color: #f0907a; font-size: .9rem; margin: 6px 0 0; }
.field__err:empty { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card { background: var(--panel); border: 1px solid var(--line); padding: clamp(20px, 3.4vw, 40px); position: relative; }
.form-card::before, .form-card::after { content: ""; position: absolute; width: 20px; height: 20px; border: 2px solid var(--copper); pointer-events: none; }
.form-card::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.form-card::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.form-card h2, .form-card h3 { margin-top: 0; }
.form__status { margin: 0; }
.form__status:empty { display: none; }
.form__alert { border: 1px solid var(--line); padding: 14px 16px; background: var(--panel-2); font-size: .98rem; }
.form__alert--err { border-color: #b4583f; }
.form__alert a { color: var(--brass-hi); font-weight: 600; }
.form__success h3 { font-size: 1.6rem; margin-bottom: .4em; }
.form__success .tick { width: 48px; height: 48px; border: 1px solid var(--copper); border-radius: 50%; display: grid; place-items: center; color: var(--brass-hi); margin-bottom: 16px; }
.btn[disabled] { opacity: .75; cursor: progress; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(20, 18, 17, .3); border-top-color: var(--ink); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.contact-split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 6vw, 88px); align-items: start; }
@media (max-width: 860px) { .contact-split { grid-template-columns: 1fr; } }
.contact-split .btn-pair { margin-top: 20px; }
.contact-split .split__aside p { max-width: 40ch; }

/* ---------- app section ---------- */
.app-promo { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(24px, 4vw, 56px); border: 1px solid var(--line); background: linear-gradient(135deg, var(--panel-2), var(--bg) 70%); overflow: hidden; }
.app-promo::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: var(--copper-grad); }
.app-promo h2 { margin-bottom: .35em; }
.app-promo p { color: var(--muted); max-width: 52ch; }
.app-points { list-style: none; margin: 20px 0 28px; padding: 0; display: grid; gap: 10px; }
.app-points li { display: flex; gap: 12px; align-items: baseline; color: var(--text); }
.app-points li::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--brass); transform: translateY(-1px) rotate(45deg); }
.app-promo__art { display: grid; place-items: center; }
.phone { width: min(220px, 60%); aspect-ratio: 9 / 17; border: 2px solid var(--copper); border-radius: 28px; padding: 14px 12px; background: var(--bg); display: grid; grid-template-rows: auto 1fr auto; gap: 10px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.phone__bar { width: 40%; height: 4px; background: var(--line); margin: 0 auto; border-radius: 2px; }
.phone__room { border: 1px solid var(--line); background:
  linear-gradient(var(--copper), var(--copper)) 12% 40% / 76% 2px no-repeat,
  linear-gradient(var(--brass), var(--brass)) 20% 78% / 3px 30% no-repeat,
  linear-gradient(var(--brass), var(--brass)) 42% 78% / 3px 50% no-repeat,
  linear-gradient(var(--brass-hi), var(--brass-hi)) 64% 78% / 3px 38% no-repeat,
  var(--panel); }
.phone__price { font: 500 1.05rem var(--head); color: var(--brass-hi); text-align: center; padding: 6px 0 2px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .app-promo { grid-template-columns: 1fr; } .app-promo__art { display: none; } }

dialog.app-dialog { border: 1px solid var(--copper); background: var(--panel); color: var(--text); padding: 0; margin: auto; max-width: min(460px, calc(100vw - 32px)); width: 100%; border-radius: 4px; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .8); overflow: visible; }
dialog.app-dialog::backdrop { background: rgba(10, 8, 7, .78); backdrop-filter: blur(3px); }
.app-dialog__body { position: relative; padding: clamp(24px, 4vw, 36px); text-align: center; }
.app-dialog h2 { font-size: 1.6rem; margin-bottom: .4em; }
.app-dialog p { color: var(--muted); }
.app-dialog__qr { width: 190px; height: 190px; margin: 18px auto 10px; padding: 8px; background: #f4f1ee; border-radius: 4px; }
.app-dialog__qr img { width: 100%; height: 100%; }
.app-dialog__url { font-weight: 600; color: var(--text) !important; word-break: break-all; margin: 0 0 20px; user-select: all; }
.app-dialog__x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; background: none; border: 1px solid transparent; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; border-radius: 2px; }
.app-dialog__x:hover { color: var(--text); border-color: var(--line); }

/* ======================================================
   HOME: scroll-driven 3D story
   ====================================================== */
.story { display: grid; grid-template-columns: 5fr 7fr; position: relative; }
.story__steps { padding: 0 clamp(20px, 3vw, 48px) 0 max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))); }
.story__step { min-height: 90vh; display: flex; flex-direction: column; justify-content: center; padding-block: 48px; max-width: 520px; }
.story__step--hero { justify-content: flex-start; padding-top: clamp(40px, 8vh, 96px); min-height: 92vh; }
.story__step--hero h1 { margin-bottom: .45em; }
.story__step--hero p { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 44ch; }
.story__step--hero .btn-pair { margin-top: 12px; }
.story__num { font-family: var(--head); color: var(--brass-hi); font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; margin-bottom: 10px; display: block; }
.story__step h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.story__step p { color: var(--muted); font-size: 1.1rem; max-width: 42ch; }
.story__scroll-hint { margin-top: auto; padding-top: 40px; color: var(--muted); font-size: .9rem; display: flex; align-items: center; gap: 10px; }
.story__scroll-hint::before { content: ""; width: 1px; height: 36px; background: var(--brass); }

.stage { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--panel-2); border-left: 1px solid var(--line); }
.stage canvas { display: block; width: 100% !important; height: 100% !important; }
.stage__labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lbl { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: 12.5px; line-height: 1.2; will-change: transform, opacity; transition: opacity .15s linear; }
.lbl--dim { color: var(--brass-hi); font-weight: 600; font-variant-numeric: tabular-nums; background: rgba(20, 18, 17, .78); padding: 2px 6px; }
.lbl--zone { color: var(--text); border: 1px dashed var(--sage); padding: 4px 9px; background: rgba(20, 18, 17, .7); }
.lbl--tag { color: var(--text); background: rgba(20, 18, 17, .92); border-left: 2px solid var(--brass); padding: 6px 10px; font-weight: 500; }
.stage__corner { position: absolute; width: 26px; height: 26px; border: 2px solid var(--brass); pointer-events: none; }
.stage__corner--tl { top: 18px; left: 18px; border-right: 0; border-bottom: 0; }
.stage__corner--br { bottom: 18px; right: 18px; border-left: 0; border-top: 0; }
.stage__steps { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 0; list-style: none; margin: 0; padding: 0; background: rgba(20, 18, 17, .88); border: 1px solid var(--line); }
.stage__steps li { padding: 7px 12px; font-size: .82rem; color: var(--muted); border-left: 1px solid var(--line); transition: color .2s, background-color .2s; }
.stage__steps li:first-child { border-left: 0; }
.stage__steps li.is-current { color: var(--ink); background: var(--brass); font-weight: 600; }
.stage__fallback { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; text-align: center; padding: 32px; color: var(--muted); }
.stage.is-fallback .stage__fallback { display: flex; }
.stage.is-fallback canvas, .stage.is-fallback .stage__labels { display: none; }
.stage__fallback .frame { max-width: 360px; padding: 28px; }

@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .stage { order: -1; top: 0; height: 44vh; z-index: 10; border-left: 0; border-bottom: 1px solid var(--line); }
  .story__steps { padding: 0 var(--gut); }
  .story__step { min-height: 62vh; padding-block: 32px; }
  .story__step--hero { min-height: auto; padding-top: 22px; padding-bottom: 48px; }
  .story__step--hero h1 { font-size: clamp(1.75rem, 7.4vw, 2.6rem); }
  .story__step--hero p { font-size: 1rem; margin-bottom: .6em; }
  .story__scroll-hint { display: none; }
  .stage__steps { bottom: 10px; max-width: calc(100% - 20px); }
  .stage__steps li { padding: 5px 7px; font-size: .72rem; }
  .stage__corner--tl { top: 10px; left: 10px; } .stage__corner--br { bottom: 10px; right: 10px; width: 18px; height: 18px; }
  .lbl { font-size: 11px; }
  .lbl--tag { padding: 4px 8px; }
}
@media (max-width: 380px) {
  .btn-pair { grid-template-columns: 1fr 1fr; gap: 8px; }
  .btn-pair .btn { padding: 10px 8px; font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- loading skeletons (projects load from the online database) ---------- */
.skeleton__img, .skeleton__line { background: linear-gradient(100deg, #26211d 30%, #322b26 50%, #26211d 70%); background-size: 220% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton__img { width: 100%; aspect-ratio: 4 / 3; }
.skeleton__line { height: 14px; margin: 10px 0 0; max-width: 60%; border-radius: 1px; }
.skeleton__line--title { height: 20px; max-width: 80%; margin-top: 18px; }
.skeleton__line--crumb { max-width: 220px; }
.skeleton__line--h1 { height: 44px; max-width: 70%; margin: 18px 0 24px; }
.project-head.skeleton .gallery { margin-top: 36px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton__img, .skeleton__line { animation: none; } }
