/* ATELIER AURUM — forge charcoal, 22k gold, ecru linen, one garnet */

:root {
  --charcoal: #181410;
  --charcoal-2: #221c14;
  --charcoal-3: #2c2418;
  --gold: #c69a3e;
  --gold-hi: #f1d68c;
  --gold-lo: #7a5b1e;
  --linen: #ece4d2;
  --linen-2: #e2d8c2;
  --ink: #241e12;
  --ink-soft: #57503f;
  --garnet: #7e2431;
  --garnet-hi: #a33544;

  --serif: "Cinzel", "Times New Roman", serif;
  --grot: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

  --measure: 34rem;
  --pad: clamp(1.25rem, 4vw, 4rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--charcoal);
  color: var(--linen);
  font-family: var(--grot);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--charcoal); }

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

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------- type utilities ---------- */

.marks {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- header ---------- */

.site-head {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem var(--pad);
}

.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--linen);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.wordmark .lozenge { flex: none; }

.site-nav { display: flex; gap: 1.8rem; }

.site-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: color-mix(in srgb, var(--linen) 72%, transparent);
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}

.site-nav a:hover { color: var(--gold-hi); border-bottom-color: var(--gold); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 44rem) 1fr;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% 42%, #2b2213 0%, var(--charcoal) 55%);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* a whisper of forge soot over the hero */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 7rem var(--pad) 5rem;
}

.hero-copy .eyebrow { display: block; margin-bottom: 1.6rem; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--linen);
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-hi);
}

.hero-sub {
  max-width: var(--measure);
  margin-top: 1.6rem;
  color: color-mix(in srgb, var(--linen) 78%, transparent);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
}

.btn {
  display: inline-block;
  font-family: var(--serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.7rem;
  border: 1px solid var(--gold);
  color: var(--charcoal);
  background: linear-gradient(160deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo));
  transition: filter 0.25s, transform 0.25s;
  cursor: pointer;
}

.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }

.btn-ghost {
  background: none;
  color: var(--gold-hi);
  border-color: color-mix(in srgb, var(--gold) 55%, transparent);
}

.btn-ghost:hover { border-color: var(--gold-hi); }

.hero-hint {
  margin-top: 3.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--linen) 42%, transparent);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-hint::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: var(--gold-lo);
}

/* no pointer, no promise — the light drifts on its own on touch screens */
@media (hover: none) {
  .hero-hint { visibility: hidden; }
}

/* hallmark strip under hero */

.hallmark-strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid #33291a;
  border-bottom: 1px solid #33291a;
  background: var(--charcoal-2);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.hallmark-strip .mark-cell {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem var(--pad);
}

.hallmark-strip .mark-cell + .mark-cell { border-left: 1px solid #33291a; }

.mark-cell svg {
  flex: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), color 0.35s;
}

/* inspect a mark: it turns to the light */
.mark-cell:hover svg { color: var(--gold-hi) !important; transform: rotate(-7deg) scale(1.1); }

.mark-cell b {
  display: block;
  font-family: var(--serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.mark-cell span {
  font-size: 0.84rem;
  color: color-mix(in srgb, var(--linen) 62%, transparent);
}

/* ---------- making sequence (linen) ---------- */

.making {
  background: var(--linen);
  color: var(--ink);
  padding: clamp(4rem, 9vw, 7.5rem) var(--pad);
}

.section-head {
  max-width: 72rem;
  margin: 0 auto clamp(3rem, 6vw, 5rem);
}

.section-head .eyebrow { color: var(--garnet); }

.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 1rem;
  color: var(--ink);
}

.section-head p {
  max-width: var(--measure);
  margin-top: 1.1rem;
  color: var(--ink-soft);
}

.steps { max-width: 72rem; margin: 0 auto; }

.step {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.2rem, 3vw, 3rem);
  padding: clamp(2rem, 4vw, 3.2rem) 0;
  border-top: 1px solid #cbbfa2;
  align-items: start;
}

.step:last-child { border-bottom: 1px solid #cbbfa2; }

.step-no {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--garnet);
  padding-top: 0.35rem;
}

.step-no small {
  display: block;
  font-family: var(--grot);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.45rem;
}

.step h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.step p {
  margin-top: 0.9rem;
  max-width: var(--measure);
  color: var(--ink-soft);
}

.step figure { position: relative; }

.step img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(0.94);
}

.step figcaption {
  margin-top: 0.6rem;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.step .temp {
  font-family: var(--serif);
  letter-spacing: 0.1em;
  color: var(--garnet);
  white-space: nowrap;
}

/* ---------- season list (charcoal) ---------- */

.season {
  background: var(--charcoal);
  padding: clamp(4rem, 9vw, 7.5rem) var(--pad);
}

.season .section-head h2 { color: var(--linen); }
.season .section-head .eyebrow { color: var(--gold); }
.season .section-head p { color: color-mix(in srgb, var(--linen) 65%, transparent); }

.slots { max-width: 72rem; margin: 0 auto; }

.slot {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr) auto;
  gap: clamp(1.2rem, 3vw, 3rem);
  align-items: baseline;
  padding: 1.8rem 0;
  border-top: 1px solid #33291a;
  position: relative;
}

.slot:last-child { border-bottom: 1px solid #33291a; }

.slot::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.slot:hover::before { width: 7rem; }

.slot-no {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.24em;
  color: var(--gold);
}

.slot h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--linen);
}

.slot p {
  margin-top: 0.45rem;
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--linen) 58%, transparent);
  max-width: var(--measure);
}

.slot-state {
  font-family: var(--serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border: 1px solid;
  white-space: nowrap;
}

.slot-state.taken { color: var(--garnet-hi); border-color: color-mix(in srgb, var(--garnet-hi) 55%, transparent); }
.slot-state.open  { color: var(--gold-hi); border-color: color-mix(in srgb, var(--gold) 65%, transparent); }

/* ---------- commission (form + stamp) ---------- */

.commission {
  position: relative;
  background:
    radial-gradient(90% 70% at 50% 0%, #241c10 0%, var(--charcoal-2) 60%);
  border-top: 1px solid #33291a;
  padding: clamp(4rem, 9vw, 7.5rem) var(--pad) clamp(5rem, 10vw, 8rem);
}

.commission-grid {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.commission-intro h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 1rem;
  color: var(--linen);
}

.commission-intro > p {
  margin-top: 1.2rem;
  color: color-mix(in srgb, var(--linen) 68%, transparent);
  max-width: var(--measure);
}

.stamp-stage {
  margin-top: 3rem;
  position: relative;
  width: min(15rem, 60%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.stamp-impression {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,0.5), transparent 72%);
  opacity: 0;
  transform: scale(0.6);
}

.stamp-mark {
  width: 72%;
  opacity: 0;
  transform: translateY(-70px) scale(1.5);
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.55));
}

.stamped .stamp-mark {
  animation: stampPress 0.7s cubic-bezier(0.5, 0, 0.15, 1) forwards;
}

.stamped .stamp-impression {
  animation: stampSink 0.7s 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes stampPress {
  0%   { opacity: 0; transform: translateY(-70px) scale(1.5); filter: drop-shadow(0 18px 22px rgba(0,0,0,0.55)); }
  45%  { opacity: 1; transform: translateY(0) scale(0.96); filter: drop-shadow(0 2px 3px rgba(0,0,0,0.7)); }
  62%  { transform: translateY(0) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5)); }
}

@keyframes stampSink {
  to { opacity: 1; transform: scale(1); }
}

.stamp-caption {
  position: absolute;
  bottom: -1.8rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--linen) 40%, transparent);
  opacity: 0;
  transition: opacity 0.6s 0.9s;
}

.stamped .stamp-caption { opacity: 1; }

/* form */

.commission-form {
  border: 1px solid #3a2f1c;
  background: color-mix(in srgb, var(--charcoal) 72%, transparent);
  padding: clamp(1.6rem, 3vw, 2.6rem);
}

.field { margin-bottom: 1.4rem; }

.field label {
  display: block;
  font-family: var(--serif);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
}

.field label small {
  font-family: var(--grot);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: color-mix(in srgb, var(--linen) 42%, transparent);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--linen);
  background: var(--charcoal);
  border: 1px solid #3a2f1c;
  border-radius: 0;
  padding: 0.8rem 0.95rem;
  transition: border-color 0.25s;
}

.field textarea { min-height: 7.5rem; resize: vertical; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
}

.field input::placeholder,
.field textarea::placeholder { color: color-mix(in srgb, var(--linen) 34%, transparent); }

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.form-note {
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--linen) 46%, transparent);
  max-width: 18rem;
}

.form-received {
  display: none;
  text-align: center;
  padding: 2.5rem 1rem;
}

.form-received .marks { color: var(--gold-hi); font-size: 1.1rem; }

.form-received p {
  margin-top: 1rem;
  color: color-mix(in srgb, var(--linen) 66%, transparent);
}

.commission-form.sent form { display: none; }
.commission-form.sent .form-received { display: block; }

/* ---------- footer ---------- */

.site-foot {
  background: var(--charcoal);
  border-top: 1px solid #33291a;
  padding: 2.6rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.foot-marks { display: flex; align-items: center; gap: 0.9rem; }

.site-foot p, .site-foot a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: color-mix(in srgb, var(--linen) 52%, transparent);
}

.site-foot a { text-decoration-color: var(--gold-lo); text-underline-offset: 3px; }
.site-foot a:hover { color: var(--gold-hi); }

/* ---------- guide page ---------- */

.guide-page {
  background: var(--charcoal);
  padding: clamp(5rem, 9vw, 7rem) var(--pad) 4rem;
}

.guide-inner { max-width: 46rem; margin: 0 auto; }

.guide-inner h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.8rem;
}

.guide-inner h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 3.2rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid #33291a;
}

.guide-inner p { color: color-mix(in srgb, var(--linen) 74%, transparent); margin-bottom: 1rem; }
.guide-inner li { color: color-mix(in srgb, var(--linen) 74%, transparent); margin-bottom: 0.55rem; }
.guide-inner ol, .guide-inner ul { padding-left: 1.3rem; }
.guide-inner strong { color: var(--linen); }

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.8rem;
  margin: 1.4rem 0;
}

.swatch { border: 1px solid #3a2f1c; }

.swatch i { display: block; height: 3.6rem; }

.swatch b {
  display: block;
  padding: 0.5rem 0.6rem 0.15rem;
  font-family: var(--serif);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--linen);
}

.swatch span {
  display: block;
  padding: 0 0.6rem 0.5rem;
  font-size: 0.72rem;
  color: color-mix(in srgb, var(--linen) 50%, transparent);
}

.guide-inner pre {
  background: var(--charcoal-2);
  border: 1px solid #33291a;
  padding: 1.1rem 1.2rem;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 1.2rem 0 1.6rem;
  color: #d8cdb4;
}

.guide-inner code { font-family: ui-monospace, "SF Mono", Menlo, monospace; }

.back-link {
  font-family: var(--serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
}

.back-link:hover { color: var(--gold-hi); }

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in { opacity: 1; transform: none; }

/* hero load sequence */

.hero-copy > * {
  opacity: 0;
  transform: translateY(16px);
  animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-copy > *:nth-child(1) { animation-delay: 0.15s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.3s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.5s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.65s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.85s; }

@keyframes riseIn { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero-copy > * { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .stamped .stamp-mark { animation: none; opacity: 1; transform: none; }
  .stamped .stamp-impression { animation: none; opacity: 1; transform: none; }
  .slot::before { transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; align-items: start; }
  .hero-copy { padding-top: 8.5rem; padding-bottom: clamp(16rem, 64vw, 26rem); }
  .commission-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 4.4rem minmax(0, 1fr); }
  .step figure { grid-column: 2; }
  .slot { grid-template-columns: 3.4rem minmax(0, 1fr); }
  .slot-state { grid-column: 2; justify-self: start; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .hallmark-strip { grid-template-columns: 1fr; }
  .hallmark-strip .mark-cell + .mark-cell { border-left: none; border-top: 1px solid #33291a; }
  .step { grid-template-columns: 1fr; gap: 1rem; }
  .step figure { grid-column: 1; }
  .slot { grid-template-columns: 1fr; gap: 0.6rem; }
  .slot-state { grid-column: 1; }
  .stamp-stage { margin-inline: auto; }
}
