/* ==========================================================================
   Base — reset, document defaults, typography primitives
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--type-body-size);
  line-height: var(--type-body-lh);
  color: var(--color-black);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

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

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

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

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

/* Skip link ------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 24px;
  color: var(--color-white);
  background: var(--color-primary);
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

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

/* ==========================================================================
   Layout primitives
   ========================================================================== */

/* Full-bleed section band. */
.section {
  position: relative;
  width: 100%;
}

/* Centred content column: a 1320px content box inside a 60px gutter each
   side, so the band measures 1440px at desktop — exactly like the source. */
.container {
  width: 100%;
  max-width: calc(var(--container-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* The FAQ column: a 1140px content box inside a 150px gutter. */
.container--narrow {
  max-width: calc(var(--container-narrow) + 2 * var(--gutter-narrow));
  padding-inline: var(--gutter-narrow);
}

/* The site's recurring 1/3 + 2/3 split. */
.split {
  display: flex;
  align-items: stretch;
}
.split__narrow { flex: 0 0 var(--col-narrow); max-width: var(--col-narrow); }
.split__wide   { flex: 1 1 var(--col-wide); min-width: 0; }

/* Reserves the narrow rail on desktop where a section has no content in it. */
.split__spacer { flex: 0 0 var(--col-narrow); max-width: var(--col-narrow); }

@media (max-width: 1024px) {
  .split { flex-direction: column; }
  .split__narrow,
  .split__wide { flex: 1 1 auto; max-width: none; }
  .split__spacer { display: none; }
}

/* ==========================================================================
   Type utilities — one class per design-system token
   ========================================================================== */

.t-display-xl {
  font-family: var(--font-display);
  font-size: var(--type-display-xl-size);
  line-height: var(--type-display-xl-lh);
  font-weight: 900;
}
.t-display-l {
  font-family: var(--font-display);
  font-size: var(--type-display-l-size);
  line-height: var(--type-display-l-lh);
  font-weight: 400;
}
.t-display-m {
  font-family: var(--font-display);
  font-size: var(--type-display-m-size);
  line-height: var(--type-display-m-lh);
  font-weight: 400;
}
.t-heading {
  font-family: var(--font-display);
  font-size: var(--type-heading-size);
  line-height: var(--type-heading-lh);
  font-weight: 900;
}
.t-body-xl {
  font-family: var(--font-body);
  font-size: var(--type-body-xl-size);
  line-height: var(--type-body-xl-lh);
}
.t-body-l {
  font-family: var(--font-body);
  font-size: var(--type-body-l-size);
  line-height: var(--type-body-l-lh);
}
.t-body-m {
  font-family: var(--font-body);
  font-size: var(--type-body-m-size);
  line-height: var(--type-body-m-lh);
}
.t-body {
  font-family: var(--font-body);
  font-size: var(--type-body-size);
  line-height: var(--type-body-lh);
}
.t-body-s {
  font-family: var(--font-body);
  font-size: var(--type-body-s-size);
  line-height: var(--type-body-s-lh);
}
.t-body-xs {
  font-family: var(--font-body);
  font-size: var(--type-body-xs-size);
  line-height: var(--type-body-xs-lh);
  font-weight: 800;
  text-transform: uppercase;
}

/* Long-form paragraph copy: 24px on a 36.8px leading, 1px tracking. */
.prose {
  font-family: var(--font-body);
  font-size: var(--type-body-l-size);
  line-height: var(--type-prose-lh);
  letter-spacing: 1px;
}
.prose p + p { margin-top: var(--type-body-l-size); }
/* "Il Programma" and the Key Benefit intro set a tighter 32px leading. */
.prose--tight { line-height: var(--type-body-l-lh); }
.prose b, .prose strong { font-weight: 700; }
.prose a { text-decoration: underline; }

/* ==========================================================================
   Entrance animation (mirrors Elementor's fadeInUp)
   ========================================================================== */

/* Scoped to .js so the copy is never hidden if the script fails to run. */
.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out);
  will-change: opacity, transform;
}
.js .reveal--fast { transition-duration: var(--duration-fast); }
.js .reveal--slow { transition-duration: var(--duration-slow); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
