:root {
  --gold: #d9ab4a;
  --gold-ink: #7a5714;
  --gold-deep: #a27a26;
  --paper: #fbfaf7;
  --sand: #f2eee6;
  --card: #ffffff;
  --ink: #14120e;
  --ink-soft: #5f5a51;
  --ink-on-gold: rgba(20, 18, 14, .72);
  --rule-on-gold: rgba(20, 18, 14, .28);
  --line: #e3ddd2;
  --up: #2f6b3f;
  --down: #9a3b2b;
  --gold-fill: linear-gradient(90deg, #9c6f1f, #d9ab4a 55%, #f4dc9c);

  --sans: "Bricolage Grotesque", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 6px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }

h1, h2 {
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}
h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h3 { font-weight: 600; letter-spacing: -0.015em; }

.mono {
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.muted { color: var(--ink-soft); }
.label { margin: 0 0 18px; color: var(--ink-soft); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--radius);
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 22px;
  border-radius: var(--radius);
  border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--paper);
  font: 600 1rem/1 var(--sans);
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { background: #2e2a23; }
.btn:active { transform: translateY(1px); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: .94rem; }
.btn-block { width: 100%; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Gold-content bar, used on the price board and under the hero */
.bar { display: block; height: 6px; border-radius: 3px; background: var(--sand); overflow: hidden; }
.bar i {
  display: block; width: 100%; height: 100%;
  border-radius: inherit;
  background: var(--gold-fill);
  transform-origin: left center;
  transform: scaleX(var(--p, 1));
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1);
}
.js .rise:not(.in) .bar i { transform: scaleX(0); }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.top.scrolled { border-bottom-color: var(--line); }
.top-inner { display: flex; align-items: center; gap: 28px; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-dot {
  display: inline-block; width: 15px; height: 15px; flex: none;
  border-radius: 50%; border: 3.5px solid var(--gold);
}
.brand-name { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }

.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-size: .96rem; font-weight: 500; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }

/* Hero: one full screen. The price in molten gold, over a photo that fades in
   through a transparent gradient. */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  min-height: calc(100svh - 64px);
  display: flex; align-items: center;
  padding: clamp(28px, 4vw, 56px) 0;
}
.hero-photo {
  position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: 56%;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 22%, rgba(0, 0, 0, .85) 50%, #000 70%),
    linear-gradient(180deg, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 22%, rgba(0, 0, 0, .85) 50%, #000 70%),
    linear-gradient(180deg, #000 72%, transparent 100%);
  mask-composite: intersect;
}
.hero-photo picture, .hero-photo img { display: block; width: 100%; height: 100%; }
.hero-photo img { object-fit: cover; object-position: 60% 50%; }
.hero-content > * { max-width: 680px; }

.hero-head { margin-bottom: clamp(28px, 4vw, 48px); }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); max-width: 11ch; margin-bottom: 20px; }
.hero-lead { margin: 0; max-width: 30em; font-size: 1.1rem; color: var(--ink-soft); }

.hero-meta { display: flex; align-items: center; gap: 16px; margin: 0; color: var(--ink-soft); }
.hero-meta-rule { flex: 1; height: 1px; background: var(--line); }

.big {
  display: block; position: relative;
  margin: clamp(14px, 2.4vw, 28px) 0 clamp(22px, 3.4vw, 40px);
  text-decoration: none; color: var(--ink);
}
.big-amount {
  display: block;
  font-size: clamp(3.8rem, 7vw, 6.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: .85;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--gold-deep); /* matte gold: no shine, no animation */
}
.big:hover .big-amount { color: var(--gold-ink); }

.hero-foot { display: grid; gap: 28px; }
.hero-karats {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px;
}
.hero-karats li { display: grid; gap: 8px; padding-top: 14px; border-top: 2px solid var(--ink); }
.hero-karats .k { font-family: var(--mono); font-size: .8rem; color: var(--ink-soft); }
.hero-karats .v { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.hero-karats .bar { height: 4px; margin-top: 4px; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; }
.trend { display: inline-flex; align-items: center; gap: 12px; margin: 0; color: var(--ink-soft); }
.trend[hidden] { display: none; }
.trend .up { color: var(--up); }
.trend .down { color: var(--down); }
.spark { width: 96px; height: 24px; overflow: visible; }
.spark path { fill: none; stroke: var(--gold-ink); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* Section heads */
.section-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 32px;
  margin-bottom: 40px;
}
.section-head .label { grid-column: 1 / -1; }

/* Prices */
.prices { padding: clamp(64px, 9vw, 120px) 0; }
.prices-date { margin: 0; text-align: right; color: var(--ink-soft); line-height: 1.6; }
.prices-date strong { display: block; color: var(--ink); font-weight: 500; }

.board-head, .board-row {
  display: grid;
  grid-template-columns: 6rem minmax(10rem, 15rem) 1fr auto;
  gap: 0 32px;
  align-items: center;
}
.board-head { padding: 0 0 12px; color: var(--ink-soft); font-size: .72rem; }
.board-head span:last-child { text-align: right; }
.board { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.board-row { padding: 22px 0; border-bottom: 1px solid var(--line); }
.karat { font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.purity { display: grid; gap: 7px; }
.pct { font-family: var(--mono); font-size: .76rem; color: var(--gold-ink); text-transform: uppercase; letter-spacing: .02em; }
.note { color: var(--ink-soft); }
.price {
  font-size: 2rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1;
  text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.is-loading .price { color: var(--line); }

.board-note { margin: 22px 0 0; max-width: 46em; font-size: .95rem; color: var(--ink-soft); }

.stale {
  margin: 0 0 28px; padding: 14px 18px;
  border-radius: var(--radius);
  background: #fbeadb; color: #6d3a10; border: 1px solid #efcfac;
}

/* Estimate */
.value { padding: clamp(64px, 9vw, 120px) 0; background: var(--sand); }
.value-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.value h2 { margin-bottom: 22px; }
.value-intro p:not(.label) { max-width: 30em; }
.value-intro .muted { font-size: .96rem; }

.calc {
  display: grid; gap: 28px;
  padding: clamp(20px, 3.5vw, 36px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 30px 60px -40px rgba(60, 45, 15, .35);
}
.calc fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc legend, .calc-weight > .mono, .calc-result > .mono {
  display: block; padding: 0; margin-bottom: 12px; color: var(--ink-soft);
}

.seg {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
  border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden;
}
.seg label { position: relative; }
.seg label + label { border-left: 1px solid var(--ink); }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span {
  display: grid; place-items: center; height: 46px;
  font-family: var(--mono); font-size: .9rem;
  transition: background-color .15s ease, color .15s ease;
}
.seg label:hover span { background: var(--sand); }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: -4px; }

.input-wrap {
  display: flex; align-items: baseline; gap: 10px;
  border-bottom: 2px solid var(--ink);
}
.calc input[type="text"] {
  flex: 1; min-width: 0; width: 100%;
  background: transparent; border: 0; outline: 0; padding: 0 0 8px;
  color: var(--ink);
  font: 500 clamp(2.6rem, 6vw, 3.4rem)/1.1 var(--sans);
  letter-spacing: -0.03em;
}
.calc input::placeholder { color: #cfc8bb; }
.input-unit { font-size: 1.4rem; font-weight: 500; color: var(--ink-soft); }

.calc-result {
  display: grid; gap: 2px;
  padding: 18px 20px 20px;
  background: var(--gold);
  border-radius: var(--radius);
}
.calc-result > .mono { margin-bottom: 6px; color: var(--ink); }
.calc-amount {
  font-size: clamp(2.8rem, 7vw, 4rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.calc-hint { font-size: .92rem; color: var(--ink-on-gold); }

/* Send photos */
.photos { padding: clamp(64px, 9vw, 120px) 0; }
.photos-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.photos h2 { margin-bottom: 22px; }
.photos-intro p:not(.label) { max-width: 30em; }
.photos-intro a { text-underline-offset: 3px; white-space: nowrap; }

.photo-form {
  display: grid; gap: 18px;
  padding: clamp(20px, 3.5vw, 36px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 30px 60px -40px rgba(60, 45, 15, .35);
}
.photo-drop {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  padding: 18px;
  border: 1.5px dashed #cdbfa6; border-radius: 10px;
  background: var(--paper);
}
.photo-drop .mono { color: var(--ink-soft); }
.photo-add { position: relative; overflow: hidden; cursor: pointer; }
.photo-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.photo-add:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }

.thumbs {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px;
}
.thumbs[hidden] { display: none; }
.thumbs li { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--sand); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button {
  position: absolute; top: 4px; right: 4px;
  width: 26px; height: 26px; border-radius: 50%; border: 0;
  background: rgba(20, 18, 14, .74); color: #fff; font-size: 16px; line-height: 1; cursor: pointer;
}

.field { display: block; }
.field > span { display: block; margin-bottom: 8px; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--card); color: var(--ink);
  font: 400 1rem/1.4 var(--sans);
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.photo-status { margin: 0; font-size: .95rem; }
.photo-status.is-ok { color: var(--up); }
.photo-status.is-error { color: var(--down); }
.photo-status a { color: inherit; text-underline-offset: 3px; }
.photo-form button[disabled] { opacity: .6; cursor: progress; }

/* Steps */
.how { padding: clamp(64px, 9vw, 120px) 0 clamp(32px, 5vw, 64px); }
.how h2 { max-width: 14ch; }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.steps li { padding-top: 20px; border-top: 2px solid var(--ink); }
.step-n { display: block; margin-bottom: 36px; color: var(--gold-ink); }
.steps h3 { font-size: 1.5rem; line-height: 1.1; margin-bottom: 10px; }
.steps p { margin: 0; color: var(--ink-soft); max-width: 26em; }

/* FAQ */
.faq { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 9vw, 120px); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px clamp(32px, 6vw, 96px); }
.faq-list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0;
  cursor: pointer; list-style: none;
  font-size: 1.12rem; font-weight: 500; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  font-family: var(--mono); font-size: 1.2rem; line-height: 1; color: var(--gold-ink);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; padding-right: 32px; color: var(--ink-soft); max-width: 40em; }

/* Visit */
.visit { padding: clamp(64px, 9vw, 120px) 0; background: var(--gold); }
.visit .label { color: var(--ink); }
.visit-grid {
  display: grid; grid-template-columns: 1fr minmax(200px, 300px) 1fr; gap: 40px clamp(24px, 4vw, 64px); align-items: end;
  padding-top: 28px; border-top: 2px solid var(--ink);
}
/* The necklace in the middle of the gold, its edges fading into it. */
.visit-photo {
  align-self: center; justify-self: center;
  width: 100%; aspect-ratio: 1;
  -webkit-mask-image: radial-gradient(closest-side, #000 52%, rgba(0, 0, 0, .55) 76%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 52%, rgba(0, 0, 0, .55) 76%, transparent 100%);
}
.visit-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.visit h2 { max-width: 12ch; margin-bottom: 18px; }
.visit-lead { color: var(--ink-on-gold); font-size: 1.1rem; }
.visit-phone {
  display: inline-block; margin: 8px 0 28px;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem); font-weight: 500; letter-spacing: -0.035em;
  text-decoration: none; border-bottom: 2px solid var(--ink);
  font-variant-numeric: tabular-nums;
}
.details { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.details > div { padding-top: 12px; border-top: 1px solid var(--rule-on-gold); }
.details dt { margin-bottom: 6px; color: var(--ink); }
.details dd { margin: 0; font-size: 1.08rem; color: var(--ink); }
.details a { text-underline-offset: 3px; }

/* Footer */
/* Footer: a short strip on the same gold */
.foot {
  padding: 0 0 36px;
  background: var(--gold); color: var(--ink); font-size: .92rem;
}
.foot-inner {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 32px;
  padding-top: 24px; border-top: 1px solid var(--rule-on-gold);
}
.foot p { margin: 0; }
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 4px !important; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.04em; }
.foot .brand-dot { width: 15px; height: 15px; border-color: var(--ink); }
.foot-line, .foot-note { color: var(--ink-on-gold); }
.foot-note { max-width: 28em; }
.visit { padding-bottom: clamp(40px, 5vw, 64px); }

/* Gentle entrance */
.js .rise { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.js .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rise { opacity: 1; transform: none; transition: none; }
  .bar i { transition: none; }
  .js .rise:not(.in) .bar i { transform: scaleX(var(--p, 1)); }
}

/* Narrower screens */
.hero-head > *, .hero-foot > *, .value-grid > *, .photos-grid > *, .faq-grid > *, .visit-grid > * { min-width: 0; }

@media (max-width: 960px) {
  .nav { display: none; }
}

@media (max-width: 1100px) {
  .visit-grid { grid-template-columns: 1fr minmax(180px, 240px); }
  .details { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .value-grid, .photos-grid, .faq-grid, .visit-grid { grid-template-columns: 1fr; }
  .visit-photo { width: min(72vw, 300px); }
  .hero { align-items: flex-end; padding-top: max(33svh, 260px); }
  .hero-photo {
    left: 0; width: auto; bottom: auto; height: min(62%, 560px);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 30%, rgba(0, 0, 0, .45) 60%, transparent 92%);
    mask-image: linear-gradient(180deg, #000 0%, #000 30%, rgba(0, 0, 0, .45) 60%, transparent 92%);
  }
  .hero-photo img { object-position: 50% 30%; }
  .hero-content > * { max-width: none; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step-n { margin-bottom: 14px; }
  .board-head, .board-row { grid-template-columns: 5rem minmax(8rem, 12rem) 1fr auto; gap: 0 20px; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .hero-meta { font-size: .72rem; gap: 10px; }
  .hero-actions .cta { width: 100%; }
  .hero-karats { gap: 0 14px; }
  .hero-karats .k { font-size: .7rem; }
  .hero-actions .btn { flex: 1 1 0; padding: 0 12px; }
  .section-head { grid-template-columns: 1fr; gap: 14px; }
  .prices-date { text-align: left; }
  .board-head { display: none; }
  .board-row {
    grid-template-columns: auto 1fr;
    grid-template-areas: "karat price" "purity purity" "note note";
    gap: 12px 14px;
    padding: 20px 0;
  }
  .karat { grid-area: karat; font-size: 1.8rem; }
  .purity { grid-area: purity; }
  .price { grid-area: price; font-size: 1.8rem; }
  .note { grid-area: note; font-size: .92rem; margin-top: -4px; }
  .details { grid-template-columns: 1fr; gap: 18px; }
  .visit .cta .btn { flex: 1 1 0; }
  .foot-note { font-size: .84rem; }
}
