:root {
  --black: #0a0a0b;
  --ink: #111113;
  --panel: #16161a;
  --line: rgba(222, 226, 232, 0.12);
  --line-strong: rgba(222, 226, 232, 0.22);
  --ivory: #f3f4f6;
  --text: #d3d6db;
  --muted: #8b9098;
  /* AMG-style metallic silver */
  --silver: #b6bac1;
  --silver-hi: #e8eaed;
  --silver-lo: #858a92;
  --serif: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', 'Segoe UI', Roboto, Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', 'Segoe UI', Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--black); color: var(--text);
  font: 400 16px/1.6 var(--sans); letter-spacing: 0;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--silver); color: var(--black); }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.h1, .h2, .h3, .hero__title, .panel__title, .card__title, .pricing__amount {
  font-family: var(--serif); font-weight: 300; color: var(--ivory); letter-spacing: -.025em; margin: 0;
}
.h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; }
.h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; margin-bottom: .4em; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
em { font-style: normal; color: var(--silver); }
.eyebrow {
  font: 500 11px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--silver);
  margin-bottom: 18px; display: flex; align-items: center; gap: 14px;
}
.eyebrow--line::before { content: ''; width: 36px; height: 1px; background: var(--silver); opacity: .7; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border: 1px solid transparent; border-radius: 0; cursor: pointer;
  font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
  white-space: nowrap;
}
.btn--silver { background: linear-gradient(135deg, var(--silver-hi), var(--silver) 45%, var(--silver-lo)); color: #0a0a0b; }
.btn--silver:hover { background: var(--ivory); }
.btn--outline { border-color: var(--line-strong); color: var(--ivory); background: transparent; }
.btn--outline:hover { border-color: var(--silver); color: var(--silver-hi); }
.btn--ghost { background: transparent; color: var(--muted); border-color: transparent; }
.btn--ghost:hover { color: #e48b7a; }
.btn--sm { padding: 11px 18px; font-size: 11px; }
.btn--lg { padding: 20px 30px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; }
.link-arrow {
  font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ivory);
  display: inline-flex; gap: 12px; align-items: center; padding-bottom: 6px; border-bottom: 1px solid var(--line-strong);
  transition: color .3s, border-color .3s;
}
.link-arrow::after { content: '→'; font-family: var(--sans); transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--silver-hi); border-color: var(--silver); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .4s, border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
.nav.is-scrolled, body:not(.page-home) .nav { background: rgba(10, 10, 11, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav__inner { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); height: 96px; display: flex; align-items: center; gap: 40px; }
.brand { display: flex; align-items: center; color: var(--ivory); }
.brand__logo { height: 76px; width: auto; }
.brand--footer .brand__logo { height: 120px; margin-left: -6px; }

.nav__links { display: flex; gap: 36px; margin-left: auto; }
.nav__links a { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--text); position: relative; padding: 6px 0; transition: color .3s; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--silver); transition: right .4s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--ivory); }
.nav__links a:hover::after, .nav__links a.is-active::after { right: 0; }
.nav__toggle { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--ivory); transition: transform .3s; }
.nav__toggle span:first-child { top: 18px; } .nav__toggle span:last-child { top: 26px; }
.menu-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav__mobile { display: none; }
.demo-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; text-align: center; padding: 8px 16px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; background: #17181b; color: var(--silver-hi); border-top: 1px solid rgba(190, 195, 202, .3); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: 140px 0 90px; overflow: hidden; }
.hero__bg { position: absolute; inset: -4%; background-size: cover; background-position: 62% 50%; animation: drift 24s var(--ease) infinite alternate; }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.12) translate(-1%, -1%); } }
.hero__veil { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(10,10,11,.92) 0%, rgba(10,10,11,.62) 45%, rgba(10,10,11,.1) 100%),
  linear-gradient(0deg, var(--black) 0%, rgba(10,10,11,0) 40%); }
.hero__content { position: relative; z-index: 1; }
.hero__title { font-size: clamp(40px, 6.2vw, 88px); line-height: 1.02; max-width: 11.5em; margin-bottom: 28px; animation: rise 1.2s var(--ease) both .1s; }
.hero__lede { max-width: 520px; font-size: 18px; color: var(--text); margin: 0 0 48px; animation: rise 1.2s var(--ease) both .25s; }
.hero .eyebrow { animation: rise 1.2s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero__scroll { position: absolute; left: 50%; bottom: 24px; width: 1px; height: 48px; background: var(--line-strong); overflow: hidden; }
.hero__scroll span { position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--silver); animation: scrolldot 2.4s var(--ease) infinite; }
@keyframes scrolldot { to { top: 110%; } }

.search { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; max-width: 1120px; background: rgba(17, 17, 19, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line-strong); animation: rise 1.2s var(--ease) both .4s; }
.search__field { display: flex; flex-direction: column; gap: 4px; padding: 16px 22px; border-right: 1px solid var(--line); cursor: pointer; }
.search__field span { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--silver); }
.search__field select { background: none; border: 0; padding: 0; font-size: 15px; color: var(--ivory); appearance: none; cursor: pointer; outline: none; }
.search__field select option { background: var(--ink); }
.search__go { margin: 0; padding: 0 34px; }

/* ---------- Pillars ---------- */
.pillars { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink); }
.pillars__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.pillars__grid > div { padding: 34px 28px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.pillars__grid > div:first-child { border-left: 0; padding-left: 0; }
.pillars strong { font: 300 28px/1.1 var(--serif); color: var(--ivory); }
.pillars span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section--tight { padding: 40px 0 120px; }
.section--dark { background: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; flex-wrap: wrap; }
.section__head .h2 { margin: 0; }
.section__head--center { justify-content: center; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.page-head { padding: 170px 0 50px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 80% 0%, rgba(190, 195, 202, .08), transparent 60%); }
.page-head__sub { color: var(--muted); margin: 20px 0 0; font-size: 17px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.card { display: flex; flex-direction: column; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--panel); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter 1s; filter: saturate(.92); }
.card:hover .card__media img { transform: scale(1.06); filter: saturate(1.05); }
.card__count { position: absolute; right: 14px; bottom: 14px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; padding: 6px 10px; background: rgba(10,10,11,.7); color: var(--ivory); backdrop-filter: blur(6px); }
.card__body { padding: 24px 0 0; border-bottom: 1px solid var(--line); padding-bottom: 22px; transition: border-color .4s; }
.card:hover .card__body { border-color: var(--silver); }
.card__body .eyebrow { margin-bottom: 10px; }
.card__title { font-size: 24px; font-weight: 400; line-height: 1.1; margin-bottom: 12px; }
.card__title em { color: var(--text); font-size: .72em; }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 13px; color: var(--muted); }
.card__meta span + span::before { content: '·'; margin: 0 10px; color: var(--silver-lo); }
.card__foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; gap: 12px; }
.price { font: 400 26px/1 var(--serif); color: var(--silver-hi); letter-spacing: .01em; }
.card__loc { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card--sold .card__media img { filter: grayscale(.8) brightness(.6); }
.tag { position: absolute; left: 14px; top: 14px; padding: 7px 12px; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; }
.tag--sold { background: var(--ivory); color: var(--black); }
.tag--lg { left: 24px; top: 24px; font-size: 12px; padding: 10px 16px; }
.empty { text-align: center; padding: 80px 24px; border: 1px solid var(--line); }
.empty p { color: var(--muted); margin: 10px 0 28px; }
.empty .h3 { color: var(--ivory); }

/* ---------- Feature ---------- */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 640px; background: var(--ink); border-top: 1px solid var(--line); }
.feature__media { overflow: hidden; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__copy { padding: clamp(48px, 7vw, 110px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.feature__copy p { max-width: 460px; margin: 0 0 28px; }
.ticks { list-style: none; padding: 0; margin: 0 0 40px; }
.ticks li { padding: 13px 0 13px 30px; border-bottom: 1px solid var(--line); position: relative; font-size: 15px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 50%; width: 14px; height: 1px; background: var(--silver); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.step { padding: 48px 40px 20px 0; border-right: 1px solid var(--line); }
.step + .step { padding-left: 40px; }
.step:last-child { border-right: 0; }
.step__n { display: block; font: 200 64px/1 var(--serif); color: var(--silver); margin-bottom: 26px; }
.step p { color: var(--muted); margin: 14px 0 0; max-width: 340px; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: 1fr 440px; gap: 80px; align-items: center; }
.pricing__copy p { max-width: 480px; color: var(--text); }
.pricing__card { border: 1px solid var(--line-strong); padding: 52px 44px; background: linear-gradient(160deg, rgba(190, 195, 202, .08), transparent 50%), var(--ink); position: relative; }
.pricing__card::before { content: ''; position: absolute; inset: 8px; border: 1px solid var(--line); pointer-events: none; }
.pricing__label { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--silver); }
.pricing__amount { font-size: 104px; font-weight: 200; line-height: 1; margin: 24px 0 18px; color: var(--ivory); display: flex; align-items: flex-start; }
.pricing__amount span { font-size: .36em; margin: .2em 6px 0 0; color: var(--silver); }
.pricing__note { color: var(--muted); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 30px; }
.pricing .ticks { margin-bottom: 36px; }

/* ---------- Filters ---------- */
.filters { display: grid; grid-template-columns: 2fr repeat(5, 1fr) auto; gap: 0; border: 1px solid var(--line-strong); margin-bottom: 56px; }
.filters input, .filters select { background: transparent; border: 0; border-right: 1px solid var(--line); padding: 18px 20px; font-size: 14px; color: var(--ivory); outline: none; min-width: 0; appearance: none; }
.filters select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--silver) 50%), linear-gradient(135deg, var(--silver) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.filters select option { background: var(--ink); }
.filters input::placeholder { color: var(--muted); }
.filters .btn { border: 0; }

/* ---------- Detail ---------- */
.detail { padding: 120px 0 100px; }
.back { display: inline-flex; gap: 10px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; transition: color .3s; }
.back::before { content: '←'; }
.back:hover { color: var(--silver-hi); }
.detail__grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: start; }
.gallery__main { position: relative; aspect-ratio: 3 / 2; background: var(--panel); overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; animation: fadein .6s var(--ease); }
@keyframes fadein { from { opacity: .3; } }
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 1px solid var(--line-strong); background: rgba(10,10,11,.55); color: var(--ivory); font-size: 28px; line-height: 1; cursor: pointer; backdrop-filter: blur(6px); transition: background .3s, border-color .3s; }
.gallery__nav:hover { background: rgba(10,10,11,.85); border-color: var(--silver); }
.gallery__nav--prev { left: 20px; } .gallery__nav--next { right: 20px; }
.gallery__pos { position: absolute; right: 20px; bottom: 20px; font-size: 11px; letter-spacing: .2em; padding: 7px 12px; background: rgba(10,10,11,.7); color: var(--ivory); }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; scrollbar-width: thin; }
.thumb { flex: 0 0 112px; aspect-ratio: 3 / 2; padding: 0; border: 1px solid transparent; background: none; cursor: pointer; opacity: .5; transition: opacity .3s, border-color .3s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: .85; }
.thumb.is-active { opacity: 1; border-color: var(--silver); }

.panel { position: sticky; top: 108px; border: 1px solid var(--line-strong); padding: 36px 32px; background: var(--ink); }
.panel .eyebrow { margin-bottom: 10px; }
.panel__title { font-size: 40px; line-height: 1.02; }
.panel__variant { font: 300 20px/1.3 var(--serif); color: var(--text); margin-top: 6px; }
.panel__price { font: 400 40px/1 var(--serif); color: var(--silver-hi); margin: 24px 0 26px; }
.keyspecs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 28px; border-top: 1px solid var(--line); }
.keyspecs > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.keyspecs > div:nth-child(odd) { padding-right: 12px; border-right: 1px solid var(--line); }
.keyspecs > div:nth-child(even) { padding-left: 16px; }
.keyspecs dt { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.keyspecs dd { margin: 4px 0 0; color: var(--ivory); font-size: 15px; }
.seller { margin-top: 26px; }
.seller__row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.seller__row span { color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; flex: none; }
.seller__row strong { font-weight: 400; color: var(--ivory); text-align: right; }
.seller__row a { color: var(--silver-hi); word-break: break-all; text-align: right; }
.panel__note { font-size: 12px; color: var(--muted); margin: 20px 0 0; line-height: 1.6; }
.sold-note { font: 300 22px/1.3 var(--serif); color: var(--ivory); padding: 20px 0 24px; }

.detail__body { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; margin-top: 90px; }
.prose p { margin: 0 0 1.2em; font-size: 17px; line-height: 1.8; white-space: pre-line; }
.prose h3 { font: 300 26px/1.2 var(--serif); color: var(--ivory); margin: 1.6em 0 .5em; }
.prose--narrow { max-width: 760px; }
.spec { margin: 0; }
.spec > div { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.spec dd { margin: 0; color: var(--ivory); text-align: right; }

/* ---------- Sell form ---------- */
.sell { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
.fs { border: 0; border-top: 1px solid var(--line-strong); padding: 36px 0 44px; margin: 0; min-width: 0; }
.fs legend { font: 300 26px/1 var(--serif); color: var(--ivory); padding: 0 20px 0 0; display: flex; align-items: center; gap: 16px; }
.fs__n { font: 500 11px/1 var(--sans); letter-spacing: .2em; color: var(--silver); }
.fs__hint { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.row { display: grid; gap: 20px; margin-top: 22px; }
.row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 8px; position: relative; min-width: 0; }
.field > span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.field i { color: var(--silver); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--ink); border: 1px solid var(--line); padding: 15px 16px; color: var(--ivory); font-size: 15px;
  outline: none; transition: border-color .3s, background .3s; border-radius: 0; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--silver) 50%), linear-gradient(135deg, var(--silver) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--ink); }
.field textarea { resize: vertical; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--silver); background: #151517; }
.field input::placeholder, .field textarea::placeholder { color: #5b5750; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #b8655a; }
.counter { position: absolute; right: 12px; bottom: 10px; font-size: 11px; color: var(--muted); }

.drop { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 50px 20px; border: 1px dashed var(--line-strong); text-align: center; cursor: pointer; color: var(--silver); transition: border-color .3s, background .3s; }
.drop strong { font: 300 24px/1.2 var(--serif); color: var(--ivory); }
.drop span { font-size: 13px; color: var(--muted); }
.drop:hover, .drop.is-over { border-color: var(--silver); background: rgba(190, 195, 202, .05); }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 16px; }
.preview { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); }
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview.is-cover { border-color: var(--silver); }
.preview__badge { position: absolute; left: 6px; top: 6px; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; background: var(--silver); color: var(--black); padding: 4px 7px; }
.preview__x, .preview__star { position: absolute; top: 6px; width: 26px; height: 26px; border: 0; background: rgba(10,10,11,.75); color: var(--ivory); cursor: pointer; font-size: 15px; line-height: 1; opacity: 0; transition: opacity .2s; }
.preview__x { right: 6px; } .preview__star { left: 6px; color: var(--silver); font-size: 13px; }
.preview:hover .preview__x, .preview:hover .preview__star { opacity: 1; }
@media (hover: none) { .preview__x, .preview__star { opacity: 1; } }

.check { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; color: var(--text); cursor: pointer; padding: 26px 0; border-top: 1px solid var(--line-strong); }
.check input { appearance: none; flex: none; width: 20px; height: 20px; border: 1px solid var(--line-strong); margin: 2px 0 0; cursor: pointer; display: grid; place-content: center; }
.check input:checked { background: var(--silver); border-color: var(--silver); }
.check input:checked::after { content: '✓'; color: var(--black); font-size: 13px; }
.check a { color: var(--silver-hi); border-bottom: 1px solid currentColor; }
.form-error { border: 1px solid rgba(184,101,90,.5); background: rgba(184,101,90,.08); color: #eab1a6; padding: 16px 20px; font-size: 14px; margin-top: 8px; }

.summary { position: sticky; top: 108px; border: 1px solid var(--line-strong); background: var(--ink); padding: 30px 28px; }
.summary__preview { aspect-ratio: 4 / 3; background: var(--panel); display: grid; place-items: center; margin-bottom: 22px; overflow: hidden; border: 1px solid var(--line); }
.summary__preview span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.summary__preview img { width: 100%; height: 100%; object-fit: cover; }
.summary__title { font: 300 28px/1.1 var(--serif); color: var(--ivory); }
.summary__price { font: 400 26px/1 var(--serif); color: var(--silver-hi); margin: 10px 0 22px; }
.summary__line { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.summary__line span { color: var(--muted); } .summary__line strong { font-weight: 500; color: var(--ivory); }
.summary .btn { margin-top: 22px; }
.summary__secure { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--muted); margin: 16px 0 0; }
.progress { height: 2px; background: var(--line); margin-top: 12px; }
.progress__bar { height: 100%; width: 0; background: var(--silver); transition: width .2s; }

/* ---------- Notices ---------- */
.notice { min-height: 100vh; display: grid; place-items: center; padding: 140px var(--gutter) 100px; background: radial-gradient(ellipse at 50% 0%, rgba(190, 195, 202, .09), transparent 60%); }
.notice__card { max-width: 620px; width: 100%; text-align: center; border: 1px solid var(--line-strong); background: var(--ink); padding: clamp(36px, 6vw, 64px); }
.notice__card--wide, .notice__card--checkout { max-width: 640px; text-align: left; }
.notice__card .eyebrow { justify-content: center; }
.notice__card--wide .eyebrow, .notice__card--checkout .eyebrow { justify-content: flex-start; }
.notice__card .h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 20px; }
.notice__card p { color: var(--text); }
.notice__icon { width: 64px; height: 64px; border: 1px solid var(--silver); border-radius: 50%; display: grid; place-items: center; margin: 0 auto 26px; color: var(--silver); font-size: 26px; }
.notice__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.notice__card--wide .notice__actions { justify-content: flex-start; }
.manage-link { margin-top: 30px; padding: 22px; border: 1px solid var(--line); text-align: left; background: var(--black); }
.manage-link__label { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.manage-link__row { display: flex; gap: 10px; }
.manage-link input { flex: 1; min-width: 0; background: var(--ink); border: 1px solid var(--line); padding: 10px 12px; font-size: 13px; color: var(--silver-hi); }
.checkout-item { display: grid; grid-template-columns: 110px 1fr auto; gap: 20px; align-items: center; padding: 20px 0; margin: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.checkout-item img { width: 110px; aspect-ratio: 4 / 3; object-fit: cover; }
.checkout-item strong { display: block; font: 300 24px/1.1 var(--serif); color: var(--ivory); }
.checkout-item span { font-size: 13px; color: var(--muted); }
.checkout-item__fee { font: 400 28px/1 var(--serif); color: var(--silver-hi); }
.manage-row { display: flex; gap: 14px; align-items: flex-end; margin-top: 10px; }
.manage-row .field { flex: 1; }
.status { font-weight: 500; text-transform: capitalize; }
.status--live { color: #9fd3a5; } .status--sold { color: var(--silver-hi); } .status--pending { color: var(--muted); }

/* ---------- Admin ---------- */
.admin-bar { margin-top: 96px; border-bottom: 1px solid var(--line); background: var(--ink); }
.admin-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 56px; }
.admin-bar__links { display: flex; gap: 28px; flex-wrap: wrap; }
.admin-bar__links a { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 18px 0; border-bottom: 1px solid transparent; }
.admin-bar__links a:hover, .admin-bar__links a.is-active { color: var(--ivory); border-color: var(--silver); }
.section--admin { padding: 48px 0 110px; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.admin-head .h2 { margin: 0; }
.flash { border: 1px solid rgba(159,211,165,.35); background: rgba(159,211,165,.07); color: #bfe3c4; padding: 14px 18px; font-size: 14px; margin-bottom: 28px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-strong); margin-bottom: 36px; }
.stats > div { padding: 24px 26px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.stats > div:first-child { border-left: 0; }
.stats strong { font: 200 38px/1.1 var(--serif); color: var(--ivory); }
.stats span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.admin-tools { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { padding: 10px 16px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); transition: color .3s, border-color .3s; }
.tabs a span { color: var(--silver); margin-left: 6px; font-size: 12px; }
.tabs a:hover { color: var(--ivory); }
.tabs a.is-active { color: var(--ivory); border-color: var(--silver); }
.admin-search input { width: 300px; max-width: 100%; background: var(--ink); border: 1px solid var(--line); padding: 11px 14px; color: var(--ivory); font-size: 14px; outline: none; }
.admin-search input:focus { border-color: var(--silver); }
.table-wrap { overflow-x: auto; }
.admin { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin th { text-align: left; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 12px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.admin td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin tr:hover td { background: rgba(255,255,255,.015); }
.admin tr.is-saved td { background: rgba(190, 195, 202, .07); }
.admin img { width: 96px; aspect-ratio: 4 / 3; object-fit: cover; }
.admin small { color: var(--muted); display: block; margin-top: 2px; }
.admin__car { color: var(--ivory); font-size: 15px; }
.admin__car:hover { color: var(--silver-hi); }
.admin__actions { white-space: nowrap; text-align: right; }
.pill { display: inline-block; padding: 5px 10px; font-size: 11px; letter-spacing: .08em; border: 1px solid currentColor; white-space: nowrap; }
.pill--live { color: #9fd3a5; } .pill--sold { color: var(--silver-hi); } .pill--pending { color: var(--muted); } .pill--removed { color: #d08c80; }
.admin-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 26px; }
.admin-photo { border: 1px solid var(--line); background: var(--ink); transition: opacity .3s; }
.admin-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.admin-photo__opt { display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-size: 12px; color: var(--text); cursor: pointer; border-top: 1px solid var(--line); }
.admin-photo__opt input { accent-color: var(--silver); }
.admin-photo__opt--rm { color: var(--muted); }
.admin-photo:has(input[name="cover"]:checked) { border-color: var(--silver); }
.admin-photo.is-removed { opacity: .35; }
.admin-upload input[type=file] { padding: 14px; cursor: pointer; }
.admin-upload .fs__hint { margin: 6px 0 0; font-size: 12px; }
.admin-status-help { font-size: 12px; margin: 10px 0 0; }
.admin-meta { margin: 26px 0 0; font-size: 13px; }
.admin-meta > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.admin-meta dt { color: var(--muted); } .admin-meta dd { margin: 0; color: var(--ivory); text-align: right; word-break: break-all; }
.danger { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 60px; padding: 22px 24px; border: 1px solid rgba(208,140,128,.35); }
.danger strong { display: block; color: #e3a99e; font-weight: 500; margin-bottom: 4px; }
.danger span { font-size: 13px; color: var(--muted); }
.danger .btn { border-color: rgba(208,140,128,.5); color: #e3a99e; }
.danger .btn:hover { background: #b8655a; color: var(--black); border-color: #b8655a; }
.notice__card--login { max-width: 440px; text-align: left; display: flex; flex-direction: column; gap: 18px; }
.notice__card--login .eyebrow { justify-content: flex-start; margin: 0; }
.notice__card--login .h2 { margin: 0; }
.password-form { max-width: 460px; display: flex; flex-direction: column; gap: 18px; margin-top: 10px; }
.password-form .fs__hint { margin: 0; }
.password-form .btn { align-self: flex-start; }
.login__logo { width: 240px; margin: 0 auto 10px; }
@media (max-width: 860px) {
  .admin-bar { margin-top: 70px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .danger { flex-direction: column; align-items: flex-start; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 90px 0 60px; background: var(--black); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; }
.footer h4 { font: 500 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--silver); margin: 6px 0 22px; }
.footer__grid a:not(.brand), .footer__muted { display: block; font-size: 14px; color: var(--muted); margin-bottom: 12px; transition: color .3s; }
.footer__grid a:not(.brand):hover { color: var(--ivory); }
.footer__line { max-width: 340px; color: var(--muted); font-size: 14px; margin-top: 18px; }

.footer__base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 70px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.footer__base span:last-child { font-family: var(--serif); font-size: 13px; letter-spacing: .1em; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail__grid, .detail__body, .sell { grid-template-columns: 1fr; }
  .panel, .summary { position: static; }
  .pricing { grid-template-columns: 1fr; gap: 40px; }
  .filters { grid-template-columns: 1fr 1fr 1fr; }
  .filters input { grid-column: 1 / -1; border-bottom: 1px solid var(--line); border-right: 0; }
  .filters select { border-bottom: 1px solid var(--line); }
  .filters .btn { grid-column: span 1; }
}
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__inner { height: 70px; }
  .brand__logo { height: 56px; }
  .brand--footer .brand__logo { height: 104px; }
  .menu-open .nav { background: var(--black); }
  .nav__mobile { display: none; flex-direction: column; padding: 10px var(--gutter) 30px; gap: 4px; }
  .menu-open .nav__mobile { display: flex; }
  .nav__mobile a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 24px; color: var(--ivory); }
  .nav__mobile .btn { margin-top: 20px; }
  .search { grid-template-columns: 1fr; }
  .search__field { border-right: 0; border-bottom: 1px solid var(--line); }
  .search__go { padding: 20px; }
  .pillars__grid { grid-template-columns: 1fr 1fr; }
  .pillars__grid > div { padding: 24px 0 24px 20px; border-bottom: 1px solid var(--line); }
  .pillars__grid > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .feature { grid-template-columns: 1fr; }
  .feature__media { aspect-ratio: 16 / 10; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 36px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
  .row--3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding-bottom: 70px; }
  .hero__lede { font-size: 16px; }

      .row--2, .row--3 { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  .filters select { border-right: 0; }
  .panel { padding: 28px 22px; }
  .panel__title { font-size: 38px; }
  .gallery__nav { width: 40px; height: 40px; font-size: 22px; }
  .gallery__nav--prev { left: 10px; } .gallery__nav--next { right: 10px; }
  .thumb { flex-basis: 84px; }
  .pricing__card { padding: 40px 26px; }
  .pricing__amount { font-size: 96px; }
  .checkout-item { grid-template-columns: 80px 1fr; }
  .checkout-item img { width: 80px; }
  .checkout-item__fee { grid-column: 1 / -1; }
  .manage-row { flex-direction: column; align-items: stretch; }
  .footer__base { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
