/* ==========================================================================
   SENERGY — design tokens & base layer
   ========================================================================== */

:root {
  /* --- Palette: cold blue / fresh green / soft lilac ---------------------- */
  --ink: #0f2144;
  --ink-2: #33456b;
  /* 5.1:1 on white — keeps 14px muted text above the WCAG AA threshold */
  --ink-3: #5f6e8c;

  --blue-900: #0f2144;
  --blue-700: #1c4a86;
  --blue-500: #3576cf;
  --blue-300: #93b9ea;
  --blue-100: #d7e6fa;
  --blue-050: #eef4fd;

  --green-700: #17705c;
  --green-500: #29a084;
  --green-300: #85d4c1;
  --green-100: #d3efe7;
  --green-050: #ecf8f5;

  --lilac-700: #61489e;
  --lilac-500: #9280d4;
  --lilac-300: #c3b5ec;
  --lilac-100: #e6dffa;
  --lilac-050: #f4f0fd;

  --paper: #ffffff;
  --paper-2: #f7f9fd;
  --paper-3: #f2f6fc;

  --line: rgba(15, 33, 68, 0.1);
  --line-strong: rgba(15, 33, 68, 0.18);

  /* --- Gradients ---------------------------------------------------------- */
  --grad-accent: linear-gradient(115deg, var(--blue-500) 0%, var(--lilac-500) 55%, var(--green-500) 100%);
  --grad-accent-soft: linear-gradient(115deg, var(--blue-050) 0%, var(--lilac-050) 55%, var(--green-050) 100%);
  --grad-cold: linear-gradient(160deg, #f4f8fe 0%, #eef2fd 45%, #f3f0fd 100%);
  --grad-deep: linear-gradient(155deg, #0f2144 0%, #16305f 45%, #2a2a5e 100%);
  --grad-lilac: linear-gradient(150deg, #f7f3fd 0%, #f1e9fb 55%, #efe6f7 100%);

  /* --- Typography --------------------------------------------------------- */
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-display: clamp(2.75rem, 7.2vw, 5.75rem);
  --fs-h1: clamp(2.15rem, 5vw, 4rem);
  --fs-h2: clamp(1.8rem, 3.9vw, 3.15rem);
  --fs-h3: clamp(1.3rem, 2.2vw, 1.9rem);
  --fs-h4: clamp(1.1rem, 1.5vw, 1.35rem);
  --fs-lead: clamp(1.05rem, 1.5vw, 1.3rem);
  --fs-body: clamp(0.98rem, 1.05vw, 1.075rem);
  --fs-small: 0.875rem;
  --fs-micro: 0.75rem;

  /* --- Space & shape ------------------------------------------------------ */
  --container: 1240px;
  --container-narrow: 900px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 8vw, 8.5rem);

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(15, 33, 68, 0.05);
  --shadow-md: 0 12px 36px -14px rgba(15, 33, 68, 0.18);
  --shadow-lg: 0 30px 80px -32px rgba(15, 33, 68, 0.32);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.7s;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ul,
ol {
  margin: 0;
}

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

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

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

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

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

:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ==========================================================================
   Typography primitives
   ========================================================================== */

.display,
.h1,
.h2,
.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

.display {
  font-size: var(--fs-display);
}
.h1 {
  font-size: var(--fs-h1);
}
.h2 {
  font-size: var(--fs-h2);
}
.h3 {
  font-size: var(--fs-h3);
  line-height: 1.18;
}

.h4 {
  font-family: var(--font-body);
  font-size: var(--fs-h4);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

.muted {
  color: var(--ink-3);
}

.small {
  font-size: var(--fs-small);
  line-height: 1.55;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-700);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.eyebrow--center::before {
  display: none;
}

.grad-text {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.serif-em {
  font-style: italic;
  color: var(--lilac-700);
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: var(--container-narrow);
}

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

.section--tight {
  padding-block: clamp(3rem, 5vw, 5rem);
}

.section--cold {
  background: var(--grad-cold);
}

.section--paper {
  background: var(--paper-2);
}

.section--lilac {
  background: var(--grad-lilac);
}

.section--deep {
  background: var(--grad-deep);
  color: rgba(255, 255, 255, 0.78);
}

.section--deep .h1,
.section--deep .h2,
.section--deep .h3,
.section--deep .h4 {
  color: #fff;
}

.section--deep .eyebrow {
  color: var(--lilac-300);
}

.section--deep .lead {
  color: rgba(255, 255, 255, 0.78);
}

.section__head {
  max-width: 760px;
  margin-bottom: clamp(2.25rem, 4vw, 3.75rem);
  display: grid;
  gap: 1.1rem;
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

.stack {
  display: grid;
  gap: 1rem;
}

.stack-sm {
  display: grid;
  gap: 0.5rem;
}

.grid {
  display: grid;
  gap: clamp(1rem, 1.8vw, 1.6rem);
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Decorative blurred aurora blobs */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}

.aurora span:nth-child(1) {
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  top: -14%;
  left: -10%;
  background: var(--blue-100);
}

.aurora span:nth-child(2) {
  width: 38vw;
  height: 38vw;
  max-width: 520px;
  max-height: 520px;
  bottom: -18%;
  right: -8%;
  background: var(--lilac-100);
}

.aurora span:nth-child(3) {
  width: 30vw;
  height: 30vw;
  max-width: 420px;
  max-height: 420px;
  top: 40%;
  right: 28%;
  background: var(--green-100);
  opacity: 0.38;
}

.section > .container,
.section > .container--narrow {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal--left {
  transform: translateX(-32px);
}
.reveal--right {
  transform: translateX(32px);
}
.reveal--zoom {
  transform: scale(0.94);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

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

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 0.8em 1.4em;
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow-md);
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: none;
}
