/* ==========================================================================
   BASE — reset, typography, silver script headings, buttons, utilities
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.7;
  font-weight: 400;
  color: var(--ink-soft);
  background: var(--night-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
main { display: block; background: var(--ivory); }
main:focus { outline: none; }
img, video, svg { max-width: 100%; height: auto; display: block; }
svg { flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(199, 164, 102, 0.35); color: var(--ink); }

h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; }
h3, h4 { font-family: var(--font-serif); line-height: 1.2; letter-spacing: 0.005em; }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

/* --------------------------------------------------------------------------
   Silver 3D calligraphy
   A metallic gradient is clipped to the glyphs; stacked drop-shadows extrude
   the letters for depth. A highlight band sweeps across while the heading is
   visible. Padding keeps the swashes of the script inside the painted area.
   -------------------------------------------------------------------------- */
.silver {
  font-family: var(--font-script);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.12;
  padding: 0.08em 0.22em 0.18em;
  margin: -0.08em -0.22em -0.18em;
  color: var(--silver-300);
  background-image: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.95) 48%, rgba(255, 255, 255, 0.2) 54%, transparent 62%), var(--silver-on-dark);
  background-size: 260% 100%, 100% 100%;
  background-position: 160% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 #9298a0) drop-shadow(0 1px 0 #6a7078) drop-shadow(0 1px 0 #454a51) drop-shadow(0 2px 0 #2f3338) drop-shadow(0 10px 16px rgba(0, 0, 0, 0.55));
  overflow-wrap: break-word;
  text-wrap: balance;
}
.silver--dark-ink {
  color: var(--silver-700);
  background-image: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.75) 48%, rgba(255, 255, 255, 0.1) 54%, transparent 62%), var(--silver-on-light);
  filter: drop-shadow(0 1px 0 #2b2f34) drop-shadow(0 1px 0 #202327) drop-shadow(0 6px 10px rgba(17, 19, 24, 0.22));
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .silver { -webkit-text-fill-color: currentColor; background: none; }
}
h1.silver { font-size: var(--fs-h1); line-height: 1.04; }
h2.silver { font-size: var(--fs-h2); }
@media (forced-colors: active) {
  .silver { -webkit-text-fill-color: CanvasText; background: none; filter: none; }
}

/* Eyebrows */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1.1rem;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before { content: ""; width: 2.2rem; height: 1px; background: currentColor; opacity: 0.7; }
.section-head--center .eyebrow::after { content: ""; width: 2.2rem; height: 1px; background: currentColor; opacity: 0.7; }
.eyebrow--light { color: var(--gold-soft); }
.eyebrow a { color: inherit; }

/* Buttons */
.btn {
  --btn-bg: var(--night-900);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.85rem 1.7rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.55) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform 900ms var(--ease-out);
}
.btn:hover::after, .btn:focus-visible::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--primary { --btn-bg: var(--night-900); --btn-fg: #fff; border-color: rgba(195, 200, 207, 0.25); box-shadow: 0 12px 26px rgba(17, 19, 24, 0.25); }
.btn--primary:hover { --btn-bg: var(--night-800); box-shadow: 0 16px 34px rgba(17, 19, 24, 0.32); }
.btn--silver {
  --btn-fg: #14161b;
  background: var(--silver-button);
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 -2px 0 rgba(100, 106, 114, 0.35) inset, 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 24px rgba(223, 226, 230, 0.18);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}
.btn--silver:hover { box-shadow: 0 1px 0 #fff inset, 0 -2px 0 rgba(100, 106, 114, 0.35) inset, 0 18px 40px rgba(0, 0, 0, 0.4), 0 0 38px rgba(223, 226, 230, 0.35); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: rgba(24, 25, 29, 0.25); }
.btn--ghost:hover { --btn-bg: rgba(24, 25, 29, 0.05); border-color: var(--ink); }
.btn--glass { --btn-bg: rgba(255, 255, 255, 0.07); --btn-fg: #fff; border-color: rgba(255, 255, 255, 0.28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--glass:hover { --btn-bg: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.55); }
.btn--sm { min-height: 42px; padding: 0.55rem 1.15rem; font-size: 0.88rem; }
.btn--block { width: 100%; }
.section--dark .btn--ghost, .page-hero .btn--ghost { --btn-fg: #fff; border-color: rgba(255, 255, 255, 0.35); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
  color: var(--ink);
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size var(--dur-med) var(--ease-out), gap var(--dur-fast);
  padding-bottom: 2px;
}
.link-arrow svg { width: 17px; height: 17px; transition: transform var(--dur-fast) var(--ease-out); }
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow--back svg { transform: rotate(180deg); }
.link-arrow--back:hover svg { transform: rotate(180deg) translateX(4px); }

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--mist);
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.9rem;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}
.chip:hover { border-color: var(--silver-500); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--night-900); border-color: var(--night-900); color: #fff; }

.round-btn {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--mist);
  background: var(--paper);
  color: var(--ink);
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast), box-shadow var(--dur-fast);
}
.round-btn:hover { transform: scale(1.06); box-shadow: var(--shadow-md); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 1000;
  padding: 0.75rem 1.2rem;
  border-radius: var(--r-pill);
  background: var(--silver-100);
  color: var(--ink);
  font-weight: 500;
  transform: translateY(-160%);
  transition: transform var(--dur-fast);
}
.skip-link:focus { transform: translateY(0); }

.ap-admin-only {
  margin: 1rem 0;
  padding: 0.9rem 1.1rem;
  border: 1px dashed var(--red);
  border-radius: var(--r-sm);
  background: rgba(181, 18, 27, 0.06);
  color: #7d0d13;
  font-size: 0.92rem;
}
