/* ==========================================================================
   Germani Jewellery — site styles
   ========================================================================== */

:root {
  /* Germani colours: brochure blue + gold for header/footer, ivory inside, all text navy */
  --ink: #0a1c6b;          /* brochure blue: header, footer, buttons */
  --ink-soft: #24346e;     /* navy: lead text */
  --night: #010e4f;        /* deep brochure blue */
  --wine: #0a1c6b;         /* headings: navy */
  --gold: #b8862f;         /* gold: logo and thin rules only */
  --gold-soft: #f0c867;    /* gold on lapis */
  --gold-metal: linear-gradient(180deg, #fdeaa8 0%, #f1c45e 30%, #c98a22 55%, #e8b34b 78%, #fde39b 100%);
  --paper: #f6efe4;        /* ivory satin: main page background */
  --ivory: #f6efe4;        /* inside is all ivory */
  --text: #13235e;         /* navy */
  --muted: #45558a;        /* soft navy */
  --line: #e0d2bc;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --logo: "Times New Roman", "Tinos", Times, serif;   /* the Germani logo is set in Times Roman */
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 132px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--wine);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }

p { margin: 0 0 1.2em; }

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

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.4em;
}

.rule {
  width: 56px; height: 1px; border: 0;
  background: var(--gold);
  margin: 1.8em auto;
}

.lead {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

.center { text-align: center; }

.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;
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .6em;
  min-height: 50px;
  padding: 0 2.2em;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 400;
  letter-spacing: .26em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background .35s ease, color .35s ease, border-color .35s ease;
}
.btn:hover { background: transparent; color: var(--ink); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.btn--light { background: transparent; color: var(--gold-soft); border-color: var(--gold-soft); }
.btn--light:hover { background: var(--gold-soft); color: var(--ink); border-color: var(--gold-soft); }

.link-arrow {
  display: inline-block;
  font-size: .74rem;
  font-weight: 400;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--text);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gold);
  transition: color .3s, border-color .3s;
}
.link-arrow:hover { color: var(--ink-soft); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, #0a1c6b 0%, #010e4f 100%);
  border-bottom: 1px solid rgba(240,200,103,.35);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(1,14,79,.3); }

.hdr-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px var(--gutter) 10px;
  max-width: var(--wrap); margin: 0 auto;
  transition: padding .3s ease;
}

.hdr-side { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(246,239,228,.7); }
.hdr-side--right { justify-self: end; }
.hdr-side a:hover { color: var(--gold-soft); }

.brand {
  display: flex; flex-direction: column; align-items: center;
  color: var(--gold-soft);
  line-height: 1;
}

.brand__mark {
  width: 60px; aspect-ratio: 2245 / 1483;
  background: var(--gold-metal);
  -webkit-mask: url("../logo-mark.svg") center / contain no-repeat;
          mask: url("../logo-mark.svg") center / contain no-repeat;
  margin-bottom: 9px;
  transition: width .3s ease, margin .3s ease, opacity .3s ease;
}

.brand__name {
  font-family: var(--logo);
  font-weight: 700;
  font-size: 1.95rem;
  letter-spacing: .12em;
  margin-right: -.12em;  /* balance tracking */
  background: var(--gold-metal);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  transition: font-size .3s ease;
}

.brand__sub {
  font-family: var(--sans);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .34em;
  margin-right: -.34em;
  white-space: nowrap;
  margin-top: 6px;
  color: var(--gold-soft);
}

.main-nav { border-top: 1px solid transparent; }
.main-nav ul {
  list-style: none; margin: 0; padding: 6px 0 16px;
  display: flex; justify-content: center; gap: clamp(18px, 3.4vw, 46px);
}
.main-nav a {
  position: relative;
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--paper);
  padding: 6px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transition: transform .35s ease;
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.site-header.is-scrolled .hdr-top { padding-top: 10px; padding-bottom: 4px; }
.site-header.is-scrolled .brand__mark { width: 0; margin-bottom: 0; opacity: 0; }
.site-header.is-scrolled .brand__name { font-size: 1.5rem; }
.site-header.is-scrolled .main-nav ul { padding-bottom: 10px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--gold-soft);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 24px; height: 1px; background: currentColor;
  position: relative; transition: transform .3s ease, background .3s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  /* backdrop-filter would make the header the containing block of the fixed menu */
  .site-header { background: var(--ink); }
  .hdr-top { grid-template-columns: 44px 1fr 44px; padding-top: 12px; padding-bottom: 12px; }
  .hdr-side { display: none; }
  .nav-toggle { display: block; }
  .brand__mark { width: 42px; margin-bottom: 6px; }
  .brand__name { font-size: 1.5rem; }
  .brand__sub { font-size: .52rem; margin-top: 5px; }
  .site-header.is-scrolled .brand__name { font-size: 1.25rem; }

  .main-nav {
    position: fixed; inset: var(--nav-top, 96px) 0 0 0;
    background: var(--ink);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
    overflow-y: auto;
  }
  .nav-open .main-nav { opacity: 1; transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: center; gap: 6px; padding: 40px 0; }
  .main-nav a { font-size: .85rem; display: inline-block; padding: 14px 0; }
}

/* ---------- Starfield (from the Germani brochure) ---------- */

.starfield {
  position: relative;
  background-color: var(--night);
  background-image:
    linear-gradient(180deg, rgba(1,14,79,.55), rgba(1,10,56,.7)),
    url("../img/lapis-band.webp");
  background-size: auto, cover;
  background-position: center, center;
  color: var(--paper);
}
.starfield h1, .starfield h2, .starfield h3, .starfield blockquote { color: var(--paper); }
.starfield .eyebrow { color: var(--gold-soft); }
.starfield p { color: rgba(246,239,228,.86); }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: min(86vh, 860px);
}
.hero__media { position: relative; overflow: hidden; background: #2b2b2b; }
.hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 30%;
  animation: heroZoom 14s ease-out both;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.hero__panel.starfield {
  background-image: radial-gradient(ellipse 80% 58% at 50% 46%, rgba(1,10,56,.9) 0%, rgba(1,10,56,.78) 45%, rgba(1,10,56,.35) 85%, rgba(1,10,56,.2)), url("../img/lapis-panel.webp");
  overflow: hidden;
}
.hero__panel::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 17%;
  background: url("../img/gold-leaf.webp") center / cover;
  clip-path: ellipse(75% 100% at 70% 100%);
  border-top: 2px solid #fde39b;
  pointer-events: none;
}
.hero__panel > * { position: relative; z-index: 1; }
.hero__panel {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: clamp(56px, 8vw, 120px) clamp(24px, 6vw, 96px);
}
.hero__mark {
  width: 74px; aspect-ratio: 2245 / 1483;
  background: var(--gold-metal);
  -webkit-mask: url("../logo-mark.svg") center / contain no-repeat;
          mask: url("../logo-mark.svg") center / contain no-repeat;
  margin-bottom: 28px;
}
.hero__panel h1 { margin-bottom: .35em; }
.hero__panel p { max-width: 30em; font-size: 1.02rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 1.4em; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { aspect-ratio: 4 / 5; }
}

/* Ivory banner with a featured piece */
.hero--ivory {
  grid-template-columns: 1fr 1fr; align-items: center;
  min-height: min(78vh, 760px);
  max-width: var(--wrap); margin: 0 auto; padding: clamp(32px, 5vw, 64px) var(--gutter);
}
.hero__copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__copy h1 { margin-bottom: .35em; }
.hero__copy p { max-width: 26em; color: var(--muted); font-size: 1.05rem; }
.hero--ivory .hero__mark { margin-bottom: 24px; }
.hero__piece { display: flex; justify-content: center; }
.hero__piece img { width: 100%; max-width: 560px; mix-blend-mode: multiply; animation: heroZoom 14s ease-out both; }
@media (max-width: 860px) {
  .hero--ivory { grid-template-columns: 1fr; min-height: 0; }
  .hero__piece { order: -1; }
  .hero__piece img { max-width: 420px; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(72px, 10vw, 140px) 0; }
.section--ivory { background: var(--ivory); border-top: 1px solid var(--line); }
.section--tight { padding: clamp(48px, 6vw, 88px) 0; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 5vw, 72px); }
.section-head p { color: var(--muted); }
.starfield .section-head p { color: rgba(246,239,228,.82); }

.statement { max-width: 860px; margin: 0 auto; text-align: center; }
.statement .mini-mark {
  width: 40px; aspect-ratio: 2245 / 1483; margin: 0 auto 28px;
  background: var(--gold);
  -webkit-mask: url("../logo-mark.svg") center / contain no-repeat;
          mask: url("../logo-mark.svg") center / contain no-repeat;
}

/* Collection tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 28px);
}
.tile { display: block; text-align: center; }
.tile__img {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--ivory);
}
.tile__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.tile__img--studio { background: transparent; }
.tile__img--studio img, .piece__img--studio img, .split__media--studio img, .split__thumbs img, .pillars img, .lightbox__media.is-studio img { mix-blend-mode: multiply; }
.tile__img--studio img { object-fit: contain; padding: 8%; }
.tile:hover .tile__img img { transform: scale(1.05); }
.tile__label {
  display: block; margin-top: 20px;
  font-family: var(--serif); font-size: 1.45rem; color: var(--text);
}
.tile__cta {
  display: inline-block; margin-top: 6px;
  font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted);
  transition: color .3s;
}
.tile:hover .tile__cta { color: var(--ink); }

@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, 1fr); } .tile__label { font-size: 1.2rem; } }

/* Split feature */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: clamp(32px, 6vw, 96px);
}
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; }
.split__media--studio { background: transparent; }
.split__body { max-width: 520px; }
.split__body .rule { margin-left: 0; }
.split__thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0 36px; }
.split__thumbs img { aspect-ratio: 1; object-fit: cover; width: 100%; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* Campaign duo */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.4vw, 20px); }
.duo figure { margin: 0; overflow: hidden; background: #222; }
.duo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; transition: transform 1.4s ease; }
.duo figure:hover img { transform: scale(1.03); }
.duo-caption { text-align: center; margin-top: clamp(32px, 4vw, 56px); }
@media (max-width: 640px) { .duo { grid-template-columns: 1fr; } }

/* Founder */
.founder__img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0; }
.founder blockquote {
  margin: 0 0 1.4em;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.45; color: var(--wine);
}

/* Steps */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 48px);
  counter-reset: step;
}
.steps li { counter-increment: step; text-align: center; }
.steps li::before {
  content: counter(step, upper-roman);
  display: block; margin-bottom: 14px;
  font-family: var(--serif); font-size: 1.6rem; color: var(--gold-soft);
}
.steps h3 { font-size: 1.35rem; margin-bottom: .4em; }
.steps p { font-size: .95rem; }
.section:not(.starfield) .steps li::before { color: var(--ink); }
.section:not(.starfield) .steps p { color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Visit / contact strip */
.visit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.visit h3 { font-size: 1.25rem; }
.visit p, .visit a { color: var(--muted); }
.visit a:hover { color: var(--ink); }
@media (max-width: 760px) { .visit { grid-template-columns: 1fr; } }

/* ---------- Page banner (inner pages) ---------- */

.page-banner { padding: clamp(64px, 9vw, 130px) 0 clamp(56px, 7vw, 100px); text-align: center; }
.page-banner p { max-width: 640px; margin: 0 auto; }

/* ---------- Collections ---------- */

.filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px;
  padding: 0 0 clamp(36px, 4vw, 56px);
}
.filters button {
  border: 0; background: none; cursor: pointer;
  font-family: var(--sans); font-size: .72rem; font-weight: 400;
  letter-spacing: .26em; text-transform: uppercase; color: var(--muted);
  padding: 10px 0; border-bottom: 1px solid transparent;
  transition: color .3s, border-color .3s;
}
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--ink); border-color: var(--gold); }

.pieces {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(28px, 3vw, 48px) clamp(14px, 2vw, 28px);
}
.piece { margin: 0; cursor: zoom-in; }
.piece[hidden] { display: none; }
.piece__img { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ivory); }
.piece__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.7,.2,1), opacity .5s; }
.piece__img--studio { background: transparent; }
.piece__img--studio img { object-fit: contain; padding: 6%; }
.piece:hover .piece__img img { transform: scale(1.05); }
.piece figcaption { text-align: center; padding-top: 18px; }
.piece__name { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--text); line-height: 1.3; }
.piece__desc { display: block; font-size: .85rem; color: var(--muted); margin-top: 4px; }

.collection-note { text-align: center; margin-top: clamp(56px, 7vw, 96px); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  background: var(--paper);
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__media { display: flex; align-items: center; justify-content: center; background: var(--ivory); padding: 4vw; min-height: 0; }
.lightbox__media.is-studio { background: var(--paper); }
.lightbox__media img { max-height: 86vh; width: auto; max-width: 100%; object-fit: contain; }
.lightbox__info { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(24px, 4vw, 64px); border-left: 1px solid var(--line); }
.lightbox__info h2 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); }
.lightbox__info p { color: var(--muted); }
.lightbox__info .btn { align-self: flex-start; margin-top: 12px; }
.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 2; width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 0; background: rgba(246,239,228,.92); color: var(--ink); cursor: pointer;
  font-size: 1.6rem; line-height: 1; font-family: var(--serif);
}
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { left: calc(65% - 64px); top: 50%; transform: translateY(-50%); }

@media (max-width: 860px) {
  .lightbox { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: start; overflow-y: auto; }
  .lightbox__media { height: 58vh; padding: 16px; }
  .lightbox__media img { max-height: 100%; }
  .lightbox__info { border-left: 0; border-top: 1px solid var(--line); padding: 24px; }
  .lightbox__nav--next { left: auto; right: 16px; top: 30%; }
  .lightbox__nav--prev { top: 30%; }
}

/* ---------- House page ---------- */

.house-intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.house-portrait { position: sticky; top: calc(var(--header-h) + 24px); width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 0; }
.prose { max-width: 620px; }
.prose p { font-size: 1.05rem; }
.prose p:first-of-type::first-letter {
  float: left; font-family: var(--serif); font-size: 4.6rem; line-height: .82;
  padding: 6px 12px 0 0; color: var(--ink);
}
@media (max-width: 860px) { .house-intro { grid-template-columns: 1fr; } .house-portrait { position: static; } }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); }
.pillars h3 { font-size: 1.5rem; }
.pillars p { color: var(--muted); }
.pillars img { aspect-ratio: 1; object-fit: cover; width: 100%; margin-bottom: 24px; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

.gallery-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.gallery-strip img { aspect-ratio: 1; object-fit: cover; width: 100%; }
@media (max-width: 760px) { .gallery-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 96px); }
.contact-card h3 { font-size: 1.3rem; margin-top: 1.6em; }
.map { display: block; width: 100%; aspect-ratio: 4 / 3; min-height: 320px; border: 1px solid var(--line); background: var(--ivory); }
.contact-card h3:first-child { margin-top: 0; }
.contact-card p, .contact-card a { color: var(--muted); }
.contact-card a:hover { color: var(--ink); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  font: inherit; font-weight: 300; color: var(--text);
  border: 0; border-bottom: 1px solid #c9c3b6; border-radius: 0;
  background: transparent; padding: 10px 0; outline: none;
  transition: border-color .3s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.form .btn { justify-self: start; }
.form-note { grid-column: 1 / -1; font-size: .82rem; color: var(--muted); margin: 0; }
.form-success { display: none; padding: 32px; border: 1px solid var(--gold-soft); background: var(--ivory); }
.form-success.is-visible { display: block; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer { padding: clamp(64px, 8vw, 110px) 0 36px; border-top: 4px solid transparent; border-image: linear-gradient(90deg, #974400, #f1c45e 30%, #fde39b 50%, #c98a22 75%, #974400) 1; }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.14);
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; color: var(--gold-soft); }
.footer-brand .brand__mark { width: 60px; margin-bottom: 12px; }
.footer-brand .brand__name { font-size: 1.95rem; }
.footer-brand .brand__sub { color: var(--gold-soft); }
.footer-brand p { margin-top: 24px; font-size: .9rem; max-width: 22em; }
.site-footer h4 {
  font-family: var(--sans); font-size: .7rem; font-weight: 400;
  letter-spacing: .28em; text-transform: uppercase; color: var(--gold-soft);
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer li a, .site-footer address { color: rgba(246,239,228,.8); font-style: normal; font-size: .92rem; }
.site-footer li a:hover { color: var(--gold-soft); }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 28px; font-size: .74rem; letter-spacing: .12em; color: rgba(255,255,255,.55);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Academy (prospectus) ---------- */
.ahero { padding: clamp(80px, 11vw, 150px) 0; text-align: center; background-image: linear-gradient(rgba(1,14,79,.55), rgba(1,10,56,.72)), url("../img/lapis-band.webp"); background-size: cover; }
.ahero__in { display: flex; flex-direction: column; align-items: center; }
.ahero h1 { font-family: var(--logo); font-weight: 700; letter-spacing: .04em; background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ahero .lead { color: var(--paper); }
.ahero__tag { font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-soft) !important; }
.aprose { max-width: 900px; }
.aprose > p { font-size: 1.05rem; }
.asub { font-size: 1.55rem; margin-top: 1.6em; }
.agrid { display: grid; gap: clamp(12px, 1.6vw, 20px); margin: 1.6em 0; }
.agrid--2 { grid-template-columns: repeat(2, 1fr); }
.agrid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .agrid--2, .agrid--3 { grid-template-columns: 1fr; } }
.acard { display: block; background: #fbf7f0; border: 1px solid #e3cfa3; border-radius: 6px; padding: 22px 24px; color: var(--text); }
.acard h3 { font-size: 1.3rem; margin-bottom: .35em; }
.acard p { margin: 0; color: var(--muted); font-size: .97rem; }
.acard--city h3 { font-family: var(--sans); font-size: .82rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.acard--list ul { margin: 0; padding-left: 1.1em; }
.acard--list li { margin-bottom: .35em; font-size: .97rem; }
.astats .acard { text-align: center; }
.astats .acard h3 { font-family: var(--sans); font-size: .9rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.ajourney .acard em { font-style: normal; font-size: .8rem; letter-spacing: .2em; color: var(--gold); }
.ajourney .acard { transition: border-color .3s, transform .3s; }
.ajourney .acard:hover { border-color: var(--ink); transform: translateY(-2px); }
.abig { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.45; color: var(--ink); text-align: center; margin: 1.4em 0; }
.anote { text-align: center; font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; color: var(--ink); max-width: 820px; margin: 1.6em auto 0; }
.aquote-box { border-left: 3px solid var(--gold); background: #fbf7f0; padding: 26px 30px; margin: 1.8em 0; }
.aquote-box h3 { font-size: 1.45rem; }
.aquote-box p:last-child { margin-bottom: 0; }
.aband { background: var(--ink); color: var(--paper); border-radius: 6px; padding: 28px 32px; margin: 1.8em 0; text-align: center; }
.aband h3 { color: var(--gold-soft); font-size: 1.45rem; }
.aband p { margin: 0; color: var(--paper); }
.abandbig { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.45; }
.apills { list-style: none; padding: 0; margin: 1.2em 0; display: flex; flex-wrap: wrap; gap: 10px; }
.apills li { border: 1px solid #e3cfa3; background: #fbf7f0; border-radius: 999px; padding: 8px 18px; font-size: .92rem; }
.apills--wide li { border-radius: 6px; }
.amodule { background: #fbf7f0; border: 1px solid #e3cfa3; border-radius: 6px; padding: clamp(22px, 3vw, 36px); margin-bottom: clamp(18px, 2.4vw, 28px); scroll-margin-top: 130px; }
.amodule header { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid #e3cfa3; padding-bottom: 12px; margin-bottom: 14px; }
.amodule header h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0; }
.amodule header h3 span { color: var(--gold); }
.amodule header em { font-style: normal; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.amodule .acard { background: var(--paper); }
.amodule .anote { font-size: 1.15rem; }
.atable-wrap { overflow-x: auto; }
.atable { width: 100%; border-collapse: collapse; min-width: 520px; }
.atable th, .atable td { text-align: left; padding: 16px 18px; border-bottom: 1px solid #e3cfa3; vertical-align: top; }
.atable thead th { background: var(--ink); color: var(--paper); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; }
.atable tbody th { font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; }
.atable tbody td:nth-child(2) { font-weight: 500; white-space: nowrap; }
.atable tbody tr { background: #fbf7f0; }
#enrol a { color: var(--gold-soft); }
#enrol .btn--light { color: var(--gold-soft); }
#enrol .btn--light:hover { color: var(--ink); }
.amodule header h3 { text-transform: uppercase; letter-spacing: .04em; }

/* ===================== v4: lapis lazuli with gold, larger logo, three doors ===================== */
:root { --lapis: url("../img/lapis-band.webp"); --lapis-strip: url("../img/lapis-gold-strip.webp"); }

/* Lapis lazuli with gold specks for every blue background (light veil only, so the gold shows) */
.site-header {
  background: linear-gradient(180deg, rgba(1,12,60,.42), rgba(1,10,52,.55)), var(--lapis-strip) center 35% / cover, #0a1c6b;
}
@media (max-width: 860px) { .site-header, .main-nav { background: linear-gradient(rgba(1,12,60,.5), rgba(1,10,52,.6)), var(--lapis-strip) center / cover, #0a1c6b; } }
.starfield, .site-footer {
  background: linear-gradient(180deg, rgba(1,12,60,.30), rgba(1,10,52,.45)), var(--lapis) center / cover, #0a1c6b;
}
.btn { background: var(--ink); }

/* Larger logo in the header */
.brand__mark { width: 78px; margin-bottom: 10px; }
.brand__name { font-size: 2.45rem; }
.brand__sub { font-size: .82rem; }
.site-header.is-scrolled .brand__name { font-size: 1.7rem; }
.site-header.is-scrolled .brand__sub { font-size: .66rem; }
@media (max-width: 860px) {
  .brand__mark { width: 50px; margin-bottom: 7px; }
  .brand__name { font-size: 1.75rem; }
  .brand__sub { font-size: .6rem; }
  .site-header.is-scrolled .brand__name { font-size: 1.35rem; }
}

/* Homepage landing: big logo on lapis */
.lhero { position: relative; overflow: hidden; text-align: center; color: var(--paper);
  background: radial-gradient(ellipse 60% 70% at 50% 45%, rgba(1,10,56,.55), rgba(1,10,56,.15) 70%), url("../img/lapis-panel.webp") center / cover, #0a1c6b;
  padding: clamp(70px, 10vw, 130px) 20px clamp(110px, 14vw, 170px); }
.lhero__in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.lhero__mark, .ahero__mark { width: clamp(120px, 16vw, 190px); aspect-ratio: 2245 / 1483; background: var(--gold-metal);
  -webkit-mask: url("../logo-mark.svg") center / contain no-repeat; mask: url("../logo-mark.svg") center / contain no-repeat; margin-bottom: 18px; }
.lhero__name, .ahero__name { font-family: var(--logo); font-weight: 700; font-size: clamp(3.2rem, 9vw, 6.4rem); letter-spacing: .1em; margin-right: -.1em; line-height: 1;
  background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.lhero__sub, .ahero__sub { font-family: var(--sans); font-weight: 500; font-size: clamp(.95rem, 2.2vw, 1.55rem); letter-spacing: .3em; margin-right: -.3em; color: #f0c867; margin-top: .45em; white-space: nowrap; }
.lhero__tag { margin-top: 1.6em; font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; color: rgba(246,239,228,.9); }
.sweep { position: absolute; left: -10%; right: -10%; bottom: 0; height: clamp(46px, 7vw, 90px);
  background: url("../img/gold-leaf.webp") center / cover; clip-path: ellipse(70% 100% at 60% 100%); border-top: 2px solid #fde39b; pointer-events: none; }

/* Three equal doors: Foundation, Collection, Academy */
.doors { padding: clamp(48px, 6vw, 80px) 0; }
.doors__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.door { display: flex; flex-direction: column; align-items: center; text-align: center; background: #fbf7f0; border: 1px solid #e3cfa3; border-radius: 6px; padding: 0 0 28px; overflow: hidden; transition: transform .35s ease, box-shadow .35s ease; }
.door:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(10,28,107,.12); }
.door__img { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ivory); }
.door__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform 1.2s ease; }
.door:hover .door__img img { transform: scale(1.04); }
.door__no { font-family: var(--serif); color: var(--gold); font-size: 1.3rem; margin-top: 22px; }
.door h2 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); margin: .2em 0 .4em; }
.door p { color: var(--muted); padding: 0 24px; margin-bottom: 1.2em; flex: 1; }
@media (max-width: 860px) { .doors__grid { grid-template-columns: 1fr; } }

.tiles--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .tiles--4 { grid-template-columns: repeat(2, 1fr); } }

/* Foundation facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 860px; margin: 2.2em auto 0; }
.facts div { border: 1px solid #e3cfa3; background: #fbf7f0; border-radius: 6px; padding: 18px; }
.facts strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.9rem; color: var(--ink); }
.facts span { font-size: .9rem; color: var(--muted); }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }

/* Collection chapters */
.cgroup { margin-bottom: clamp(56px, 7vw, 96px); scroll-margin-top: 140px; }
.cgroup[hidden] { display: none; }
.cgroup__head { text-align: center; max-width: 720px; margin: 0 auto clamp(28px, 3vw, 44px); }
.cgroup__head h2 { margin-bottom: .3em; }
.cgroup__head p { color: var(--muted); margin: 0; }

/* Academy introduction hero: larger logo, smaller title */
.ahero { position: relative; overflow: hidden; padding: clamp(70px, 9vw, 120px) 0 clamp(110px, 13vw, 160px);
  background: radial-gradient(ellipse 60% 70% at 50% 45%, rgba(1,10,56,.55), rgba(1,10,56,.15) 70%), url("../img/lapis-panel.webp") center / cover, #0a1c6b; }
.ahero__in { position: relative; z-index: 1; }
.ahero h1 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); letter-spacing: .08em; text-transform: uppercase; margin: 1.4em 0 .4em; }
.ahero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
/* readability over the gold veins */
.hdr-side { color: #f6efe4; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.main-nav a, .lhero__tag, .ahero .lead, .ahero__tag, .lhero__sub, .ahero__sub { text-shadow: 0 1px 4px rgba(0,0,0,.85); }
.ahero h1 { filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
.lhero__tag, .ahero__tag { background: rgba(1,10,56,.45); padding: 6px 14px; border-radius: 3px; }
.piece__badge { position: absolute; left: 12px; top: 12px; background: rgba(10,28,107,.88); color: #f0c867; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; padding: 6px 10px; border-radius: 2px; }
.commissions { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); max-width: 1200px; margin: 0 auto; }
.commissions figure { margin: 0; background: #fbf7f0; border: 1px solid #e3cfa3; border-radius: 6px; overflow: hidden; }
.commissions img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #222; }
.commissions figcaption { padding: 22px 24px 26px; text-align: center; }
.commissions h3 { font-size: 1.5rem; margin-bottom: .3em; }
.commissions p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .commissions { grid-template-columns: 1fr; } }
.store { margin: 0 auto clamp(36px, 4vw, 56px); max-width: 560px; border: 1px solid #e3cfa3; border-radius: 6px; overflow: hidden; }
.store img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.store--contact { max-width: none; margin: 0 0 20px; }
.store--contact img { aspect-ratio: 16 / 11; object-position: 50% 25%; }
.store--wide { max-width: 1100px; }
.store--wide img, .store--contact img { aspect-ratio: 3 / 2; object-position: 50% 50%; }
.store figcaption { text-align: center; padding: 14px; font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); background: #fbf7f0; }
.store-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 28px); max-width: 1200px; margin: 0 auto; }
.store-pair .store { max-width: none; margin: 0; }
.store-pair .store img { aspect-ratio: 4 / 3; object-position: 50% 50%; }
@media (max-width: 760px) { .store-pair { grid-template-columns: 1fr; } }
.store-trio { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .store-trio { grid-template-columns: 1fr; } }
.cbanner { margin: 0 auto clamp(28px, 3vw, 44px); max-width: 1100px; border-radius: 6px; overflow: hidden; }
.cbanner img { width: 100%; }
.store--display { margin-top: clamp(14px, 2vw, 28px); max-width: 480px; }
.commissions--pair { grid-template-columns: repeat(2, 1fr); max-width: 860px; }
@media (max-width: 760px) { .commissions--pair { grid-template-columns: 1fr; } }
.commissions--four { grid-template-columns: repeat(4, 1fr); max-width: 1280px; }
@media (max-width: 1080px) { .commissions--four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .commissions--four { grid-template-columns: 1fr; } }
.store-pair:not(.store-trio) > .store:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 760px; width: 100%; justify-self: center; }
.collection-budget { max-width: 640px; margin: 14px auto 0; color: var(--text); font-style: italic; }
.prospectus-langs { margin: 1.2em auto 0; font-size: .92rem; }
.prospectus-langs a { border-bottom: 1px solid var(--gold); white-space: nowrap; }

/* Homepage: the three doors fit on the first screen */
.lhero { padding: clamp(22px, 3vw, 34px) 20px clamp(54px, 6vw, 70px); }
.lhero__mark { width: clamp(70px, 7vw, 96px); margin-bottom: 10px; }
.lhero__name { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.lhero__sub { font-size: clamp(.8rem, 1.3vw, 1.05rem); }
.lhero .sweep { height: clamp(30px, 4vw, 52px); }
.doors { padding: clamp(18px, 2.4vw, 30px) 0 clamp(40px, 5vw, 64px); }
.door { padding-bottom: 18px; }
.door__img { aspect-ratio: 2 / 1; }
.door__img img { object-position: 50% 45%; }
.door__no { margin-top: 12px; font-size: 1.05rem; }
.door h2 { margin: .1em 0 .25em; }
.door p { margin-bottom: .8em; }
@media (max-width: 860px) {
  .doors__grid { gap: 12px; }
  .door { flex-direction: row; align-items: stretch; text-align: left; padding: 0; }
  .door__img { width: 36%; flex: none; aspect-ratio: auto; min-height: 120px; }
  .door__body { display: flex; flex-direction: column; justify-content: center; padding: 12px 14px; }
  .door__no { display: none; }
  .door h2 { font-size: 1.3rem; }
  .door p { padding: 0; font-size: .86rem; margin-bottom: .4em; flex: none; }
}
.door__body { display: flex; flex-direction: column; align-items: center; flex: 1; width: 100%; }
@media (max-width: 860px) { .door__body { align-items: flex-start; } }
.lhero { padding: clamp(14px, 2vw, 22px) 20px clamp(44px, 5vw, 56px); }
.lhero__mark { width: clamp(56px, 5.5vw, 76px); margin-bottom: 6px; }
.doors { padding-top: clamp(14px, 1.8vw, 22px); }
.door__img { aspect-ratio: 5 / 2; }
.door__no { display: none; }
.door h2 { margin-top: .45em; }
@media (max-width: 860px) { .door__img { min-height: 104px; } .door__body { padding: 10px 14px; } }
.door__img--studio { background: #fff; }
.door__img--studio img { object-fit: contain; object-position: 50% 50%; padding: 6px 0; mix-blend-mode: multiply; }
.door__img--studio img { object-fit: cover; object-position: 50% 62%; padding: 0; }
