@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("../Assets/fonts/Montserrat-var.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../Assets/fonts/Inter-var.woff2") format("woff2");
}

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

/* Scrollbar tokens: neutral thumb, accent on hover/drag, tinted track */
html {
  --scroll-track: var(--surface, #f4f4f4);
  --scroll-thumb: var(--control-border, #9a9a9a);
  --scroll-thumb-hover: var(--text-muted, #6b6b6b);
  --scroll-thumb-active: var(--accent, var(--gold-500, #c9a227));
}

html {
  color-scheme: light;
  scrollbar-gutter: stable;
  scroll-padding-top: calc(var(--header-h) + var(--sp-4));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--line-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[data-theme="dark"] {
  color-scheme: dark;
}

body.menu-open,
body.dialog-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--sp-3);
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: var(--line-heading);
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: var(--text-h3);
  font-weight: 700;
  line-height: 1.25;
}

p {
  margin: 0 0 var(--sp-4);
  max-width: 70ch;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

li {
  margin: 0;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

[data-underline="on"] a {
  text-decoration: underline;
}

strong,
b {
  font-weight: 600;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

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

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

[data-contrast="high"] :focus-visible {
  outline-color: var(--text);
}

[hidden] {
  display: none !important;
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

.section--surface {
  background: var(--surface);
}

.section--tight {
  padding-block: var(--sp-12);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--sp-3) var(--sp-6);
  margin-bottom: var(--sp-8);
}

.section-head h2 {
  margin-bottom: var(--sp-2);
}

.section-head p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.eyebrow {
  display: block;
  margin-bottom: var(--sp-2);
  color: var(--highlight-text);
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: var(--text-muted);
}

.muted {
  color: var(--text-muted);
}

.text-small {
  font-size: var(--text-small);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: var(--sp-3);
  left: var(--sp-3);
  z-index: 200;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: currentColor;
  stroke: none;
}

.icon--filled {
  fill: currentColor;
  stroke: none;
}

.icon--sm {
  width: 1em;
  height: 1em;
}

.icon--lg {
  width: 1.5em;
  height: 1.5em;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(12px);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--dur-slow) var(--ease),
    transform var(--dur-slow) var(--ease);
}

[data-motion="off"] *,
[data-motion="off"] *::before,
[data-motion="off"] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

[data-motion="off"] html,
[data-motion="off"] {
  scroll-behavior: auto;
}

[data-motion="off"] .reveal,
[data-motion="reduce"] .reveal {
  opacity: 1;
  transform: none;
}

[data-motion="reduce"] html.js .reveal {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur-mid) var(--ease);
}

[data-motion="reduce"] * {
  scroll-behavior: auto !important;
}

[data-motion="reduce"] .carousel__track {
  scroll-behavior: smooth;
}

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

.anchor-target {
  scroll-margin-top: calc(var(--header-h) + var(--sp-6));
}

/* ---------- Custom scrollbars ---------- */

/* Standard properties: Firefox, Chrome 121+, Safari 18.2+ */
@supports (scrollbar-color: auto) {
  * {
    scrollbar-width: thin;
    scrollbar-color: var(--scroll-thumb) transparent;
  }

  html {
    scrollbar-width: auto;
    scrollbar-color: var(--scroll-thumb) var(--scroll-track);
  }

  [data-contrast="high"] * {
    scrollbar-color: var(--text) transparent;
  }

  [data-contrast="high"] html,
  html[data-contrast="high"] {
    scrollbar-color: var(--text) var(--scroll-track);
  }
}

/* Older WebKit/Blink fall back to pseudo-elements for the same look */
@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }

  html::-webkit-scrollbar {
    width: 14px;
    height: 14px;
  }

  ::-webkit-scrollbar-track {
    background: transparent;
  }

  html::-webkit-scrollbar-track {
    background: var(--scroll-track);
    border-left: 1px solid var(--border);
  }

  ::-webkit-scrollbar-thumb {
    border: 3px solid transparent;
    border-radius: var(--radius-pill);
    background-color: var(--scroll-thumb);
    background-clip: content-box;
  }

  ::-webkit-scrollbar-thumb:hover {
    background-color: var(--scroll-thumb-hover);
  }

  ::-webkit-scrollbar-thumb:active {
    background-color: var(--scroll-thumb-active);
  }

  ::-webkit-scrollbar-corner {
    background: transparent;
  }
}

/* Horizontal carousels keep their scrollbar hidden */
.carousel__track {
  scrollbar-width: none;
}
