/* =========================================================
   COURTVILLE ACADEMY — Version 2
   An auction-house catalogue on antique paper.
   ---------------------------------------------------------
   Colours, fonts and spacing are set in :root below.
   ========================================================= */

:root {
  /* Paper & ink */
  --paper:    #ffffff;   /* white page */
  --paper-2:  #f6f5f2;   /* very light panels */
  --paper-3:  #ebe9e4;   /* slightly deeper panels */
  --ink:      #111111;   /* near-black ink */
  --ink-2:    #3d3d3d;   /* body text */
  --muted:    #767676;   /* captions */
  --rule:     #dedbd5;   /* hairlines */
  --velvet:   #0a0a0a;   /* dark sections: black, same as the footer */
  --gold:     #a58142;   /* antique gold accents, used sparingly */
  --oxblood:  #6c1f22;   /* leather-box red, for hover & small details */

  /* Type */
  --display: 'Bodoni Moda', 'Didot', Georgia, serif;
  --serif:   'EB Garamond', Garamond, Georgia, serif;
  --sans:    'Jost', 'Futura', 'Helvetica Neue', sans-serif;

  /* Layout */
  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 116px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
[hidden] { display: none !important; }

body {
  background-color: var(--paper);
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Page fades in once scripts are ready (failsafe in each page's <head>) */
html.js body { opacity: 0; }
html.js.is-ready body { opacity: 1; transition: opacity 0.7s ease; }
html.is-leaving body { opacity: 0; transition: opacity 0.38s ease; }

::selection { background: var(--ink); color: var(--paper); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; color: var(--ink); line-height: 1.08; letter-spacing: -0.005em; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--gold { color: var(--muted); }

.h-hero { font-size: clamp(2rem, 3.2vw, 2.9rem); }
.h-1    { font-size: clamp(2.4rem, 4.6vw, 4rem); }
.h-2    { font-size: clamp(2rem, 3.4vw, 3rem); }
.h-3    { font-size: clamp(1.45rem, 2vw, 1.8rem); }

.italic { font-family: var(--serif); font-style: italic; font-weight: 400; }
em { font-style: italic; }

.lede { font-size: clamp(1.1rem, 1.45vw, 1.3rem); line-height: 1.6; color: var(--ink-2); }
.muted { color: var(--muted); }

.small-caps {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Drop cap for editorial paragraphs */
.dropcap::first-letter {
  float: left;
  font-family: var(--display);
  font-size: 4.6em;
  line-height: 0.82;
  padding: 0.06em 0.1em 0 0;
  color: var(--ink);
}

/* ---------- Ornament (hairline · diamond · hairline) ---------- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--gold);
}
.ornament::before, .ornament::after {
  content: "";
  height: 1px;
  width: 64px;
  background: currentColor;
  opacity: 0.6;
}
.ornament svg { width: 22px; height: 10px; flex: none; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 11vw, 150px) 0; }
.rule { height: 1px; background: var(--rule); border: 0; }

.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-bottom: 26px;
  margin-bottom: clamp(36px, 5vw, 60px);
  border-bottom: 1px solid var(--rule);
}
.sec-head .eyebrow { margin-bottom: 14px; }

/* ---------- Buttons & links ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 32px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid var(--ink);
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #3a3a3a; border-color: #3a3a3a; }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: transparent; color: var(--paper); }
.btn--ghost-light { background: transparent; color: var(--paper); border-color: rgba(255,255,255,0.5); }
.btn--ghost-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1px;
  transition: background-size 0.6s var(--ease), color 0.3s ease;
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }
.link .arr { transition: transform 0.5s var(--ease); }
.link:hover .arr { transform: translateX(5px); }
.link--light { color: var(--paper); }

/* =========================================================
   Header
   ========================================================= */
.topbar {
  background: #0a0a0a;
  color: #f2f2f2;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.topbar a { transition: color 0.3s ease; }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; align-items: center; gap: 28px; }
.topbar-links > * + * { padding-left: 28px; border-left: 1px solid rgba(255,255,255,0.22); }
.topbar .wrap > *, .topbar-links > * { white-space: nowrap; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  transition: transform 0.6s var(--ease), box-shadow 0.5s ease;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-scrolled { box-shadow: 0 10px 30px -24px rgba(0,0,0,0.4); }

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 80px;
  transition: height 0.5s var(--ease);
}
.site-header.is-scrolled .header-inner { height: 64px; }

.brand img { height: 46px; width: auto; transition: height 0.5s var(--ease); }
.site-header.is-scrolled .brand img { height: 36px; }

.nav { display: flex; gap: 34px; }
.nav--right { justify-content: flex-end; align-items: center; }
.nav a, .nav button {
  position: relative;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.bag-btn { display: inline-flex; align-items: center; gap: 8px; }
.bag-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0;
  transition: background-color 0.4s ease, color 0.4s ease;
}
.bag-count.has-items { background: var(--ink); color: var(--paper); }
.bag-count.bump { animation: bump 0.6s var(--ease); }
@keyframes bump { 40% { transform: scale(1.25); } }

.menu-btn { display: none; }

/* Mobile menu overlay */
.menu {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  padding: 24px var(--gutter) 40px;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease-in-out), visibility 0s 0.8s;
}
.menu.is-open { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path 0.8s var(--ease-in-out), visibility 0s; }
.menu-top { display: flex; justify-content: space-between; align-items: center; }
.menu-top img { height: 34px; }
.menu-links { margin-top: 9vh; display: flex; flex-direction: column; gap: 6px; }
.menu-links a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--display);
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  color: var(--ink);
  line-height: 1.25;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.8s var(--ease);
}
.menu-links a span { flex: none; width: 30px; font-family: var(--sans); font-size: 11px; letter-spacing: 0.2em; color: var(--muted); }
.menu.is-open .menu-links a { opacity: 1; transform: none; }
.menu.is-open .menu-links a:nth-child(1) { transition-delay: 0.25s; }
.menu.is-open .menu-links a:nth-child(2) { transition-delay: 0.32s; }
.menu.is-open .menu-links a:nth-child(3) { transition-delay: 0.39s; }
.menu.is-open .menu-links a:nth-child(4) { transition-delay: 0.46s; }
.menu.is-open .menu-links a:nth-child(5) { transition-delay: 0.53s; }
.menu-foot { margin-top: auto; font-family: var(--sans); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); line-height: 2; }

/* =========================================================
   Hero (home)
   ========================================================= */
.hero { position: relative; }

.hero-stage {
  position: relative;
  height: min(86vh, 880px);
  min-height: 520px;
  overflow: hidden;
  background: var(--velvet);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 9s linear;
}
.hero-slide.is-active img { transform: scale(1); }
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21,18,15,0) 55%, rgba(21,18,15,0.35) 100%);
}

/* soft shading in the lower left so the white lettering reads on any photo */
.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.22) 38%, rgba(0,0,0,0) 62%),
    linear-gradient(0deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 55%);
}
.hero-card {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  bottom: clamp(36px, 6vw, 80px);
  width: min(560px, calc(100% - var(--gutter) * 2));
}
.hero-card h1 { color: #fff; font-size: clamp(2.4rem, 4.6vw, 4.2rem); line-height: 1.04; margin-bottom: 22px; }
.hero-card h1::after { content: ""; display: block; width: 48px; height: 1px; background: rgba(255,255,255,0.7); margin-top: 26px; }
.hero-card p { font-size: 17px; line-height: 1.65; color: rgba(255,255,255,0.88); margin-bottom: 26px; max-width: 460px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }

.hero-meta {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: clamp(28px, 5vw, 64px);
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero-count { display: flex; align-items: center; gap: 12px; }
.hero-bar { position: relative; width: 70px; height: 1px; background: rgba(255,255,255,0.35); overflow: hidden; }
.hero-bar i { position: absolute; inset: 0; background: var(--paper); transform: scaleX(0); transform-origin: left; }
.hero-bar i.run { animation: heroBar var(--slide-ms, 7000ms) linear forwards; }
@keyframes heroBar { to { transform: scaleX(1); } }
.hero-arrows { display: flex; gap: 6px; }
.hero-arrows button {
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,0.45);
  color: var(--paper);
  display: grid; place-items: center;
  transition: background-color 0.4s ease, color 0.4s ease;
}
.hero-arrows button:hover { background: var(--paper); color: var(--ink); }

/* =========================================================
   Centred section heading (like version 1)
   ========================================================= */
.center-head { text-align: center; margin-bottom: clamp(44px, 6vw, 72px); }
.center-head .eyebrow { margin-bottom: 14px; }
.center-cta { text-align: center; margin-top: clamp(50px, 6vw, 76px); }

/* =========================================================
   Course cards — round image, number, title, subtitle
   ========================================================= */
.course-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 56px clamp(24px, 3vw, 44px);
}
.course-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 980px; margin: 0 auto; }

.card { display: flex; flex-direction: column; }

.card-link { position: relative; display: block; margin-bottom: 26px; -webkit-tap-highlight-color: transparent; }
.card-circle {
  display: block;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--velvet);
  box-shadow: 0 24px 40px -28px rgba(0,0,0,0.55);
  transition: transform 0.8s var(--ease), box-shadow 0.8s var(--ease);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.card-circle img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }

.card-hint {
  position: absolute;
  left: 50%;
  bottom: 13%;
  transform: translate(-50%, 8px);
  padding: 7px 14px;
  background: rgba(255,255,255,0.94);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.9s var(--ease);
}
.card-link.hint-on .card-hint { opacity: 1; transform: translate(-50%, 0); }
@media (hover: hover) {
  .card-link:hover .card-circle { transform: translateY(-6px); box-shadow: 0 34px 50px -28px rgba(0,0,0,0.6); }
  .card-link:hover .card-circle img { transform: scale(1.06); }
  .card-link:hover .card-hint { opacity: 1; transform: translate(-50%, 0); }
}

.card-title { display: flex; align-items: baseline; gap: 12px; font-size: clamp(1.3rem, 1.6vw, 1.5rem); line-height: 1.25; margin-bottom: 8px; }
.card-no { flex: none; font-family: var(--sans); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
.card-title a { background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; transition: background-size 0.6s var(--ease); }
.card-title a:hover { background-size: 100% 1px; }
.card-sub { font-style: italic; font-size: 16.5px; line-height: 1.5; color: var(--muted); }

/* =========================================================
   About — short text over the Drawing Room photograph
   ========================================================= */
.about-band {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(78vh, 720px);
  overflow: hidden;
  background: var(--velvet);
}
.about-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.about-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(21,18,15,0.74) 0%, rgba(21,18,15,0.62) 55%, rgba(21,18,15,0.42) 100%); }
.about-band-inner { position: relative; z-index: 1; max-width: 680px; padding: 90px var(--gutter); text-align: center; }
.about-band h2 { color: var(--paper); margin-bottom: 26px; }
.about-band p { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.7; color: #f2f2f2; margin-bottom: 1em; text-wrap: balance; }
.about-band .link { margin-top: 16px; }

/* =========================================================
   Dark sections & experts
   ========================================================= */
.velvet { background: var(--velvet); color: #b5b5b5; }
.velvet h2, .velvet h3 { color: var(--paper); }
.velvet .eyebrow { color: #8a8a8a; }
.velvet .sec-head { border-color: rgba(255,255,255,0.16); }

.expert-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(30px, 4vw, 60px); }
.expert-card { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* An oval frame, like a portrait miniature */
.portrait {
  position: relative;
  width: 62%;
  aspect-ratio: 4 / 5;
  border-radius: 50%;
  outline: 1px solid rgba(165,129,66,0.6);
  outline-offset: 9px;
  margin: 10px 0 34px;
  overflow: hidden;
  background: #241f19;
  display: grid;
  place-items: center;
  transition: outline-offset 0.8s var(--ease);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.portrait .initial { font-family: var(--display); font-size: clamp(3.4rem, 6vw, 5rem); color: var(--muted); line-height: 1; }
.expert-card:hover .portrait { outline-offset: 14px; }
.expert-card:hover .portrait img { transform: scale(1.05); }
.expert-role { font-family: var(--sans); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.expert-name { font-size: 1.6rem; margin-bottom: 18px; }
.expert-card .link { font-size: 11px; }

/* Expert page */
.expert-page { display: grid; grid-template-columns: 0.8fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; padding-bottom: clamp(80px, 10vw, 130px); }
.expert-page .portrait { width: 100%; max-width: 420px; margin: 10px auto 0; background: var(--velvet); }
.expert-page .portrait .initial { font-size: clamp(5rem, 10vw, 8rem); }
.expert-info .eyebrow { margin-bottom: 16px; }
.expert-info h1 { margin-bottom: 14px; }
.expert-info .subtitle { font-style: italic; font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: var(--ink-2); margin-bottom: 30px; }
.expert-info .bio p { margin-bottom: 1.1em; }
.expert-info .bio .muted { font-style: italic; }
.teaches { margin: 36px 0 30px; border-top: 1px solid var(--ink); }
.teaches h2 { font-family: var(--sans); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); padding: 14px 0 4px; }
.teaches a, .teaches p { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); color: var(--ink); }
.teaches a span { font-family: var(--sans); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.teaches a:hover { color: var(--muted); }
.teaches p { font-style: italic; color: var(--muted); }

/* =========================================================
   Gift voucher (band + certificate)
   ========================================================= */
.voucher-band { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.voucher-band .eyebrow { margin-bottom: 18px; }
.voucher-band h2 { margin-bottom: 22px; }
.voucher-band p { margin-bottom: 34px; max-width: 460px; }

/* The certificate — an engraved-style voucher card */
.certificate {
  position: relative;
  aspect-ratio: 1.6 / 1;
  background: #fbf8f1;
  color: var(--ink);
  padding: 7%;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  container-type: inline-size;
}
.certificate::before, .certificate::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.certificate::before { inset: 14px; border: 1px solid var(--gold); }
.certificate::after  { inset: 20px; border: 1px solid rgba(165,129,66,0.4); }
.certificate .corner { position: absolute; width: 22px; height: 22px; color: var(--gold); }
.certificate .corner--tl { top: 26px; left: 26px; }
.certificate .corner--tr { top: 26px; right: 26px; transform: scaleX(-1); }
.certificate .corner--bl { bottom: 26px; left: 26px; transform: scaleY(-1); }
.certificate .corner--br { bottom: 26px; right: 26px; transform: scale(-1, -1); }
.cert-logo { height: 9cqw; width: auto; margin-bottom: 3.2cqw; }
.cert-kicker { font-family: var(--sans); font-size: 1.9cqw; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.6cqw; }
.cert-title { font-family: var(--display); font-size: 6cqw; line-height: 1; margin-bottom: 2.4cqw; }
.cert-line { font-style: italic; font-size: 2.7cqw; line-height: 1.4; color: var(--ink-2); max-width: 80%; }
.cert-line strong { font-style: normal; font-weight: 500; color: var(--ink); }
.cert-msg { font-style: italic; font-size: 2.4cqw; color: var(--muted); margin-top: 1.4cqw; max-width: 75%; min-height: 1em; }
.cert-no { position: absolute; bottom: 7.5%; right: 9%; font-family: var(--sans); font-size: 1.5cqw; letter-spacing: 0.2em; color: var(--muted); }
.certificate--tilt { transform: rotate(-2.5deg); transition: transform 1.2s var(--ease); }
.voucher-band:hover .certificate--tilt { transform: rotate(-0.5deg) translateY(-6px); }

/* Home: the voucher card with the voucher graphic set inside it */
.certificate--photo { flex-direction: row; align-items: center; gap: 4cqw; padding: 8% 7.5%; }
.cert-text { flex: 1; display: flex; flex-direction: column; align-items: center; }
.certificate--photo .cert-logo { height: 9cqw; margin-bottom: 3cqw; }
.certificate--photo .cert-kicker { font-size: max(2.1cqw, 9px); margin-bottom: 1.6cqw; }
.certificate--photo .cert-title { font-size: 6.6cqw; margin-bottom: 0; }
/* the gift card itself: rounded corners, turned slightly */
.cert-card {
  flex: 0 0 47%;
  display: block;
  border-radius: 2.4cqw;
  overflow: hidden;
  transform: rotate(3deg);
  box-shadow: 0 1.4cqw 2.6cqw -1cqw rgba(0,0,0,0.45), 0 0 0 1px rgba(0,0,0,0.06);
}
.cert-card img { display: block; width: 100%; aspect-ratio: 1600 / 1062; object-fit: cover; }

/* The scarab brooch lies across the corner of the voucher card, as if set down on it */
.voucher-still { position: relative; }
.still-brooch {
  position: absolute;
  z-index: 2;
  width: 44%;
  right: -6%;
  bottom: -12%;
  transform: rotate(-16deg);
  filter: drop-shadow(0 14px 14px rgba(0,0,0,0.28)) drop-shadow(0 2px 3px rgba(0,0,0,0.25));
  transition: transform 1.2s var(--ease);
  pointer-events: none;
}
.voucher-band:hover .still-brooch { transform: rotate(-11deg) translate(-4px, -6px); }

/* The hardstone necklace laid out on the page beside the Gift Vouchers heading */
.page-head--still { display: grid; grid-template-columns: 1fr minmax(260px, 420px); gap: 40px; align-items: center; }
.still-necklace {
  width: 100%;
  transform: rotate(-7deg);
  filter: drop-shadow(0 16px 18px rgba(0,0,0,0.22)) drop-shadow(0 2px 3px rgba(0,0,0,0.2));
}
.js .still-necklace[data-reveal] { transform: rotate(-12deg) translateY(30px); }
.js .still-necklace[data-reveal].is-in { transform: rotate(-7deg); }

/* =========================================================
   Mailing list (last section, above the footer)
   ========================================================= */
/* Sign-up inside the About photo band */
.about-signup { margin: 44px auto 0; max-width: 460px; padding-top: 34px; border-top: 1px solid rgba(255,255,255,0.25); }
.about-band .about-signup-label { font-family: var(--sans); font-size: 11px; line-height: 1.4; letter-spacing: 0.24em; text-transform: uppercase; color: #d9cfbf; margin-bottom: 10px !important; }
.signup-form { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid rgba(255,255,255,0.7); }
.signup-form input[type="email"] { flex: 1; min-width: 0; height: 50px; border: 0; outline: none; background: transparent; font-size: 18px; color: var(--paper); }
.signup-form input::placeholder { color: rgba(255,255,255,0.6); }
.signup-form button { flex: none; font-family: var(--sans); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper); padding: 10px 0; transition: opacity 0.3s ease; }
.signup-form button:hover { opacity: 0.7; }
.signup-form button[disabled] { opacity: 0.5; }
.about-band .form-msg { color: #f2f2f2; margin-top: 12px; }
.signup.is-sent .signup-form { display: none; }

/* used on the Courses page ("Can't decide?") */
.newsletter { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.newsletter .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-top: 70px; padding-bottom: 70px; }
.newsletter h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.newsletter p { margin-top: 10px; }
.form-msg { font-size: 15px; font-style: italic; margin-top: 12px; min-height: 1.2em; color: var(--ink-2); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: #0a0a0a; color: #f2f2f2; padding: 90px 0 40px; border-top: 1px solid rgba(255,255,255,0.12); }
/* spread across the width like before, but with the same gap between every column */
.footer-grid { display: flex; justify-content: space-between; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand { flex: 0 1 300px; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 22px; }
.footer-brand p { font-style: italic; max-width: 280px; }
.footer-col h4 { font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: #8a8a8a; margin-bottom: 18px; font-weight: 400; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { transition: color 0.3s ease, opacity 0.3s ease; }
.footer-col a:hover { color: #fff; opacity: 0.65; }
.footer-address { display: block; }
.footer-address li { transition: color 0.3s ease; }
.footer-address:hover { opacity: 1; }
.footer-address:hover li { opacity: 0.65; }
.footer-map-link { display: inline-block; margin-top: 6px; font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: #8a8a8a; transition: color 0.3s ease; }
.footer-address:hover .footer-map-link { color: #fff; }
.menu-address { display: block; transition: color 0.3s ease; }
.menu-address:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 28px; font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: #777; }

/* =========================================================
   Inner pages: heading + breadcrumbs
   ========================================================= */
.page-head { padding-top: clamp(50px, 7vw, 90px); padding-bottom: clamp(36px, 5vw, 60px); }
.crumbs { display: flex; gap: 10px; font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: 0.6; }
.page-head h1 { margin-bottom: 18px; }
.page-head .lede { max-width: 640px; }

/* =========================================================
   Course detail
   ========================================================= */
.lot { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; padding-bottom: clamp(70px, 9vw, 120px); }

.gallery { position: sticky; top: 100px; }
.gallery-main {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--velvet);
  overflow: hidden;
  cursor: zoom-in;
}
.gallery-main .g-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.9s ease, transform 1.4s var(--ease);
}
.gallery-main .g-img.is-active { opacity: 1; transform: none; }
/* course cameo shown on velvet */
.gallery-main .g-img.is-cameo { inset: 13%; width: 74%; height: 74%; border-radius: 50%; box-shadow: 0 40px 70px -30px rgba(0,0,0,0.9); }
.gallery-main .cameo-ring {
  position: absolute;
  inset: calc(13% - 12px);
  border-radius: 50%;
  border: 1px solid rgba(165,129,66,0.6);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.gallery-main.show-ring .cameo-ring { opacity: 1; }

/* The loupe: a round magnifier that follows the pointer */
.loupe {
  position: absolute;
  z-index: 5;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 0 0 6px rgba(21,18,15,0.35), 0 20px 40px rgba(0,0,0,0.5);
  background-repeat: no-repeat;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  transition: opacity 0.35s ease, transform 0.45s var(--ease);
}
.loupe.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.gallery-hint {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 4;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: opacity 0.4s ease;
}
.gallery-main:hover .gallery-hint { opacity: 0; }

.thumbs { display: flex; gap: 12px; margin-top: 14px; }
.thumbs button {
  width: 84px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid transparent;
  padding: 3px;
  opacity: 0.6;
  transition: opacity 0.4s ease, border-color 0.4s ease;
}
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button[aria-pressed="true"], .thumbs button:hover { opacity: 1; border-color: var(--ink); }

.lot-info .eyebrow { margin-bottom: 18px; }
.lot-info h1 { margin-bottom: 14px; }
.lot-info .subtitle { font-style: italic; font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.45; color: var(--ink-2); margin-bottom: 30px; }

.lot-rows { border-top: 1px solid var(--ink); margin-bottom: 30px; }
.lot-row { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.lot-row dt { font-family: var(--sans); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.lot-row dd { text-align: right; color: var(--ink); }

.opt-label { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); margin-bottom: 26px; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: block;
  text-align: center;
  padding: 14px 10px;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease);
}
.segmented input:checked + span { background: var(--ink); color: var(--paper); }
.segmented input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 3px; }

.dates { margin-bottom: 26px; }
.date-opt { display: block; cursor: pointer; }
.date-opt input { position: absolute; opacity: 0; pointer-events: none; }
.date-opt span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  margin-bottom: -1px;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.date-opt small { font-family: var(--sans); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.date-opt input:checked + span { border-color: var(--ink); background: var(--paper-2); position: relative; z-index: 1; }
.date-opt input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 2px; }

.tba {
  padding: 18px 20px;
  background: var(--paper-2);
  border-left: 2px solid var(--gold);
  margin-bottom: 26px;
}
.tba strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.2rem; color: var(--ink); margin-bottom: 4px; }
.tba p { font-size: 16px; line-height: 1.5; }

.buy-row { display: flex; gap: 12px; margin-bottom: 18px; }
.qty { display: flex; align-items: center; border: 1px solid var(--ink); }
.qty button { width: 44px; height: 50px; font-size: 18px; transition: background-color 0.3s ease; }
.qty button:hover { background: var(--paper-2); }
.qty output { min-width: 34px; text-align: center; font-family: var(--sans); font-size: 14px; }
.buy-row .btn { flex: 1; }

.lot-inquire { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--rule); margin-top: 8px; }
.lot-inquire p { font-size: 16px; font-style: italic; }

/* Accordion */
.accordion { margin-top: 40px; border-top: 1px solid var(--ink); }
.acc-item { border-bottom: 1px solid var(--rule); }
.acc-item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--ink);
  text-align: left;
}
.acc-icon { position: relative; width: 14px; height: 14px; flex: none; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ink); transition: transform 0.5s var(--ease); }
.acc-icon::after { transform: rotate(90deg); }
.acc-item.is-open .acc-icon::after { transform: rotate(0deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel .inner { padding: 0 0 24px; font-size: 17px; }
.acc-panel ul { padding-left: 0; }
.acc-panel li { position: relative; padding-left: 22px; margin-bottom: 6px; }
.acc-panel li::before { content: ""; position: absolute; left: 2px; top: 0.7em; width: 6px; height: 6px; border: 1px solid var(--gold); transform: rotate(45deg); }

/* Mobile sticky reserve bar */
.sticky-buy {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.97);
  border-top: 1px solid var(--rule);
  transform: translateY(100%);
  transition: transform 0.6s var(--ease);
}
.sticky-buy.is-on { transform: none; }
.sticky-buy strong { font-family: var(--display); font-weight: 400; color: var(--ink); font-size: 1.05rem; line-height: 1.2; }
.sticky-buy .btn { min-height: 46px; padding: 0 22px; }

/* =========================================================
   Course page: coming soon
   ========================================================= */
.soon { padding: clamp(56px, 8vw, 110px) var(--gutter) clamp(64px, 8vw, 110px); }
.soon-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
/* same plain circle as the course cards on the home page, just larger */
.soon-circle { width: min(100%, 300px); justify-self: end; } /* the photos are 436px wide, so they stay sharp at this size */
.soon-text { display: flex; flex-direction: column; align-items: flex-start; }
.soon .eyebrow { margin-bottom: 18px; }
.soon h1 { margin-bottom: 14px; text-wrap: balance; }
.soon-sub { font-style: italic; font-size: clamp(1.15rem, 1.6vw, 1.4rem); color: var(--ink-2); margin-bottom: 30px; }
.soon-rule { display: block; width: 44px; height: 1px; background: var(--gold); margin-bottom: 26px; }
.soon-note { font-size: clamp(1.2rem, 1.6vw, 1.4rem); line-height: 1.5; color: var(--ink); margin-bottom: 34px; }
.soon-others { border-top: 1px solid var(--rule); }
.soon-others .course-grid--3 { max-width: 780px; }
.soon-others .card-title { font-size: clamp(1.2rem, 1.4vw, 1.35rem); }

@media (max-width: 900px) {
  .soon-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; text-align: center; }
  .soon-circle { width: clamp(200px, 62vw, 260px); justify-self: center; }
  .soon-text { align-items: center; }
  .soon .hero-actions { justify-content: center; }
}

/* =========================================================
   Selection drawer (basket)
   ========================================================= */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(21,18,15,0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0s 0.6s;
}
.scrim.is-on { opacity: 1; visibility: visible; transition: opacity 0.6s ease, visibility 0s; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 401;
  width: min(460px, 100%);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.75s var(--ease-in-out), visibility 0s linear 0.75s;
  box-shadow: -30px 0 60px -40px rgba(0,0,0,0.6);
}
.drawer.is-open { transform: none; visibility: visible; transition: transform 0.75s var(--ease-in-out), visibility 0s; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 26px 30px; border-bottom: 1px solid var(--rule); }
.drawer-head h2 { font-size: 1.6rem; }
.close-btn { font-family: var(--sans); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; }
.close-btn i { position: relative; width: 14px; height: 14px; }
.close-btn i::before, .close-btn i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transform: rotate(45deg); }
.close-btn i::after { transform: rotate(-45deg); }

.drawer-body { flex: 1; overflow-y: auto; padding: 8px 30px; overscroll-behavior: contain; }
.drawer-empty { padding: 60px 0; text-align: center; }
.drawer-empty .ornament { margin-bottom: 22px; }
.drawer-empty p { font-style: italic; margin-bottom: 26px; }

.line-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.line-item .thumb { width: 76px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--paper-2); }
.line-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.line-item h3 { font-size: 1.15rem; margin-bottom: 4px; }
.line-item .kind { font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); line-height: 1.6; }
.line-item .note { font-style: italic; font-size: 15px; margin-top: 4px; }
.line-item .controls { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.line-item .qty button { width: 32px; height: 34px; font-size: 15px; }
.line-item .qty output { min-width: 26px; font-size: 13px; }
.remove { font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid currentColor; }
.remove:hover { color: var(--ink); }
.line-price { font-family: var(--sans); font-size: 13px; color: var(--ink); white-space: nowrap; }

.drawer-foot { padding: 24px 30px 30px; border-top: 1px solid var(--rule); background: var(--paper-2); }
.total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.total-row span { font-family: var(--sans); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.total-row strong { font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: var(--ink); }
.drawer-foot .fine { font-size: 14.5px; font-style: italic; margin-bottom: 18px; }
.drawer-foot .btn + .btn { margin-top: 10px; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 500;
  transform: translate(-50%, 30px);
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px 14px 22px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.6s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }

/* =========================================================
   Forms (shared)
   ========================================================= */
.field { position: relative; margin-bottom: 30px; }
.field label, .field .label {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.field label em { font-style: normal; text-transform: none; letter-spacing: 0.04em; opacity: 0.8; }
.field input, .field select, .field textarea {
  display: block;
  width: 100%;
  padding: 12px 0;
  background: transparent linear-gradient(var(--ink), var(--ink)) no-repeat 0 100% / 0 1px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  outline: none;
  font-size: 19px;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
  transition: background-size 0.7s var(--ease), border-color 0.3s ease;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.field select { cursor: pointer; padding-right: 28px; }
.field .select-wrap { position: relative; }
.field .select-wrap::after { content: ""; position: absolute; right: 4px; top: 50%; width: 7px; height: 7px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: translateY(-75%) rotate(45deg); pointer-events: none; }
.field input:focus, .field select:focus, .field textarea:focus { background-size: 100% 1px; }
.field input::placeholder, .field textarea::placeholder { color: #a99f90; font-style: italic; }
.field .err { display: block; font-size: 14px; font-style: italic; color: var(--oxblood); margin-top: 6px; min-height: 0; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-bottom-color: var(--oxblood); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.field .count { position: absolute; right: 0; bottom: -22px; font-family: var(--sans); font-size: 10.5px; color: var(--muted); letter-spacing: 0.08em; }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 16px; margin-bottom: 26px; }
.check input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border: 1px solid var(--ink); flex: none; margin-top: 3px; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--ink); }
.check input:checked::after { content: ""; width: 5px; height: 9px; border-right: 1.5px solid var(--paper); border-bottom: 1.5px solid var(--paper); transform: translateY(-1px) rotate(45deg); }

.radio-cards { display: grid; gap: 10px; margin-bottom: 30px; }
.radio-card { position: relative; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card span { display: block; padding: 14px 16px 14px 44px; border: 1px solid var(--rule); font-size: 17px; transition: border-color 0.3s ease, background-color 0.3s ease; }
.radio-card span::before { content: ""; position: absolute; left: 16px; top: 50%; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--ink); transform: translateY(-50%); }
.radio-card input:checked + span { border-color: var(--ink); background: var(--paper-2); }
.radio-card input:checked + span::after { content: ""; position: absolute; left: 20px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); transform: translateY(-50%); }
.radio-card input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; }

.btn.is-busy { color: transparent !important; }
.btn.is-busy::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border: 1px solid rgba(255,255,255,0.35);
  border-top-color: var(--paper);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   Gift voucher page
   ========================================================= */
.voucher-page { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: start; padding-bottom: clamp(80px, 10vw, 130px); }
.voucher-preview { position: sticky; top: 110px; }
.voucher-preview .certificate { transform: rotate(-1.2deg); }
.voucher-preview .note { margin-top: 30px; text-align: center; font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.voucher-form h2 { margin-bottom: 8px; }
.voucher-form > .muted { margin-bottom: 36px; }
.voucher-total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; margin-bottom: 22px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.voucher-total span { font-family: var(--sans); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.voucher-total strong { font-family: var(--display); font-weight: 400; font-size: 1.4rem; color: var(--ink); }

.steps-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.steps-3 .num { font-family: var(--display); font-size: 2.4rem; color: var(--muted); line-height: 1; margin-bottom: 14px; display: block; }
.velvet .steps-3 .num { color: #8a8a8a; }
.steps-3 h3 { font-size: 1.4rem; margin-bottom: 8px; }

/* =========================================================
   Inquire page
   ========================================================= */
.inquire { display: grid; grid-template-columns: 0.9fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; padding-bottom: clamp(80px, 10vw, 130px); }
.inquire-figure { position: sticky; top: 110px; }
.inquire-figure .frame { aspect-ratio: 4 / 5; overflow: hidden; }
.inquire-figure img { width: 100%; height: 100%; object-fit: cover; }
.inquire-figure figcaption { margin-top: 14px; font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.address-card { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; line-height: 2; color: var(--ink-2); }

.done { display: none; text-align: center; padding: 40px 0; }
.done.is-on { display: block; animation: rise 1s var(--ease) both; }
.done .seal { width: 88px; height: 88px; margin: 0 auto 26px; color: var(--gold); }
.done .seal circle, .done .seal path { fill: none; stroke: currentColor; stroke-width: 1; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1.6s var(--ease) 0.3s forwards; }
.done .seal path { stroke-dasharray: 60; stroke-dashoffset: 60; animation-delay: 1.2s; stroke: var(--ink); stroke-width: 1.3; }
.done h2 { margin-bottom: 14px; }
.done p { max-width: 460px; margin: 0 auto 26px; }
.done .ref { display: inline-block; font-family: var(--sans); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; padding: 10px 18px; border: 1px solid var(--rule); margin-bottom: 30px; color: var(--ink); }
.form-hidden { display: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* =========================================================
   Instagram link
   ========================================================= */
.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}
.ig-icon { width: 16px; height: 16px; flex: none; }
.footer-ig { margin-top: 24px; color: #f2f2f2; }
.footer-ig:hover { opacity: 0.65; }
.menu-foot .ig-link { display: flex; margin-top: 14px; color: var(--ink); }
.ib-ig { display: flex; width: max-content; margin: 18px auto 0; color: rgba(255,255,255,0.88); }
.ib-ig:hover { color: #fff; }

/* =========================================================
   Inquire page: photo on the left, form on the right
   ========================================================= */
.ib { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 116px); }
.ib-photo { position: sticky; top: 0; align-self: start; height: calc(100vh - 116px); min-height: 560px; overflow: hidden; background: #000; display: flex; align-items: center; justify-content: center; }
.ib-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.ib-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 65% at 50% 50%, rgba(0,0,0,0.74) 0%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.45) 100%);
}
.ib-photo-text { position: relative; z-index: 1; max-width: 520px; padding: clamp(32px, 5vw, 64px); text-align: center; }
.ib-photo-text h1 { color: #fff; font-size: clamp(3rem, 6vw, 5rem); line-height: 1; margin-bottom: 18px; }
.ib-photo-text p { color: rgba(255,255,255,0.88); max-width: 420px; margin: 0 auto 30px; }
.ib-addr {
  display: inline-block;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.35);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 2;
  color: rgba(255,255,255,0.88);
  transition: color 0.3s ease;
}
.ib-addr:hover { color: #fff; }
.ib-form { display: flex; align-items: center; padding: clamp(48px, 6vw, 96px) clamp(24px, 6vw, 96px); }
.ib-form-inner { width: 100%; max-width: 520px; }
.ib-title { font-size: 1.8rem; margin-bottom: 30px; }

@media (max-width: 900px) {
  .ib { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .ib-photo { position: relative; height: auto; min-height: 440px; }
}

/* =========================================================
   Checkout
   ========================================================= */
.progress { display: flex; gap: 0; margin-bottom: 50px; border-top: 1px solid var(--ink); }
.progress li { flex: 1; padding: 14px 0; font-family: var(--sans); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--rule); }
.progress li.is-current { color: var(--ink); border-bottom-color: var(--ink); }
.progress li b { font-family: var(--display); font-weight: 400; margin-right: 10px; color: var(--muted); letter-spacing: 0; }

.checkout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(40px, 6vw, 96px); align-items: start; padding-bottom: clamp(80px, 10vw, 130px); }
.checkout h2 { font-size: 1.7rem; margin-bottom: 26px; }
.checkout fieldset { border: 0; margin-bottom: 30px; }
.summary { position: sticky; top: 110px; background: var(--paper-2); border: 1px solid var(--rule); padding: 30px; }
.summary h2 { font-size: 1.5rem; margin-bottom: 6px; }
.summary .line-item { grid-template-columns: 60px 1fr auto; }
.summary .line-item .thumb { width: 60px; }
.summary .total-row { padding-top: 18px; }
.summary .fine { font-size: 15px; font-style: italic; margin-top: 10px; }
.pay-note { font-size: 15px; font-style: italic; color: var(--muted); margin-top: 14px; }

/* =========================================================
   Scroll reveal
   ========================================================= */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s ease, transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Image reveal: a paper curtain lifts off the picture */
.js [data-reveal-img] { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease-in-out); transition-delay: var(--d, 0s); }
.js [data-reveal-img] img { transform: scale(1.14); transition: transform 2s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal-img].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal-img].is-in img { transform: scale(1); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; margin: 0 auto; }
  .course-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
  .footer-grid { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  body { font-size: 17px; }

  .topbar { display: none; }
  .header-inner { grid-template-columns: 1fr auto 1fr; height: 64px; }
  .site-header.is-scrolled .header-inner { height: 58px; }
  .brand img { height: 34px; }
  .site-header.is-scrolled .brand img { height: 30px; }
  .nav--left a { display: none; }
  .nav--right a { display: none; }
  .menu-btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }
  .menu-btn i { display: flex; flex-direction: column; gap: 5px; width: 20px; }
  .menu-btn i::before, .menu-btn i::after { content: ""; height: 1px; background: currentColor; }
  .bag-btn .bag-word { display: none; }

  .hero-stage { height: 72vh; min-height: 460px; }
  .hero-card { left: var(--gutter); right: var(--gutter); bottom: 30px; width: auto; }
  .hero-card p { font-size: 16px; }
  .hero-stage::before { background: linear-gradient(0deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0) 80%); }
  .hero-meta { bottom: auto; top: 20px; right: var(--gutter); }

  .sec-head { flex-direction: column; align-items: flex-start; }
  .voucher-band, .lot, .voucher-page, .inquire, .checkout, .expert-page { grid-template-columns: minmax(0, 1fr); }
  .expert-grid { grid-template-columns: 1fr; gap: 70px; max-width: 360px; margin: 0 auto; }
  .expert-page .portrait { max-width: 300px; }
  .newsletter .wrap { grid-template-columns: 1fr; }
  .course-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-3 { grid-template-columns: 1fr; gap: 30px; }

  .gallery, .voucher-preview, .inquire-figure, .summary { position: relative; top: 0; }
  .page-head--still { grid-template-columns: 1fr; gap: 10px; }
  .still-necklace { max-width: 230px; justify-self: center; margin-top: 4px; }
  .still-brooch { width: 40%; right: 0; bottom: -10%; }
  .inquire-figure .frame { aspect-ratio: 4 / 3; }
  .sticky-buy { display: flex; }
  .page-course { padding-bottom: 80px; }
  .summary { order: -1; }
}

@media (max-width: 600px) {
  .course-grid, .course-grid--3 { grid-template-columns: 1fr; gap: 56px; max-width: 300px; }
  .soon-others .course-grid--3 { max-width: 240px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .field-row { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .progress li { font-size: 9.5px; letter-spacing: 0.12em; }
  .certificate::before { inset: 8px; }
  .certificate::after { inset: 12px; }
  .certificate .corner { width: 14px; height: 14px; }
  .certificate .corner--tl { top: 16px; left: 16px; }
  .certificate .corner--tr { top: 16px; right: 16px; }
  .certificate .corner--bl { bottom: 16px; left: 16px; }
  .certificate .corner--br { bottom: 16px; right: 16px; }
  .thumbs button { width: 68px; }
  .buy-row .btn { padding: 0 16px; letter-spacing: 0.16em; white-space: normal; text-align: center; line-height: 1.3; }
  .qty button { width: 38px; }
  .segmented span { letter-spacing: 0.12em; padding: 14px 6px; }
  .drawer-head, .drawer-body, .drawer-foot { padding-left: 22px; padding-right: 22px; }
}

/* =========================================================
   Smooth scrolling (Lenis) & reduced motion
   ========================================================= */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal], .js [data-reveal-img] { opacity: 1; transform: none; clip-path: none; }
  .js [data-reveal-img] img { transform: none; }
}

/* Netlify badge */
netlify-badge, netlify-drawer, #netlify-badge, #netlify-drawer, [id^="netlify"] { display: none !important; }
