/* =========================================================
   Ekballo — atmospheric pads & Christian lofi
   ========================================================= */

:root {
  color-scheme: light;

  --ink: #0b1322;
  --navy: #111d33;
  --navy-2: #1a2a45;
  --gold: #d6b06e;
  --gold-2: #ead6ab;
  --gold-deep: #9a7636;
  --cream: #f5f1ea;
  --paper: #ece6da;
  --sage: #e1e4d6;
  --text: #121826;
  --muted: #5d6474;
  --line: rgb(18 24 38 / 0.12);
  --on-dark: #f4efe6;
  --on-dark-muted: rgb(244 239 230 / 0.7);

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 1.5rem;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --max: 80rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  @media (prefers-reduced-motion: reduce) { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-size-adjust: from-font;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg, picture, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p, h1, h2, h3 { margin: 0; }
:where(ul[role="list"]) { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  inset-block-start: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: var(--ink);
  border-radius: 999px;
  font-weight: 600;
  &:focus { inset-block-start: 1rem; }
}

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

.label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.accent { color: var(--gold-deep); }
.break { overflow-wrap: anywhere; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-block-size: 3rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
  & .arrow { transition: translate 0.35s var(--ease); }
  &:hover .arrow { translate: 3px 0; }
}
.btn-sm { min-block-size: 2.5rem; padding: 0.5rem 1.1rem; font-size: 0.875rem; }
.btn-light { background: var(--on-dark); color: var(--ink); &:hover { background: var(--gold-2); } }
.btn-ghost {
  color: var(--on-dark);
  border-color: rgb(244 239 230 / 0.35);
  background: rgb(11 19 34 / 0.2);
  backdrop-filter: blur(8px);
  &:hover { border-color: var(--on-dark); }
}
.btn-dark { background: var(--ink); color: var(--on-dark); &:hover { background: var(--navy-2); } }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 0.75rem var(--gutter);
  @media (prefers-reduced-motion: no-preference) {
    animation: rv-fade 1s 0.1s var(--ease) backwards;
  }
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-inline-size: var(--max);
  margin-inline: auto;
  padding: 0.45rem 0.45rem 0.45rem 0.75rem;
  border-radius: 999px;
  color: var(--on-dark);
  border: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.site-header[data-scrolled] .nav {
  background: rgb(11 19 34 / 0.8);
  border-color: rgb(244 239 230 / 0.1);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 10px 30px -12px rgb(0 0 0 / 0.45);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  margin-inline-end: auto;
  & img { inline-size: 2.1rem; block-size: 2.1rem; border-radius: 50%; }
}
.brand-word {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 0.25rem;
  & a {
    display: block;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--on-dark-muted);
    transition: color 0.2s, background-color 0.2s;
    &:hover { color: var(--on-dark); background: rgb(244 239 230 / 0.08); }
  }
  @media (width < 760px) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-block-size: 100svh;
  display: grid;
  align-content: end;
  color: var(--on-dark);
  background: var(--ink);
  overflow: clip;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  @media (prefers-reduced-motion: no-preference) {
    animation: hero-zoom 2.4s var(--ease) both;
  }
}
@keyframes hero-zoom {
  from { scale: 1.1; }
}
.hero-img, .hero-canvas {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}
.hero-canvas {
  opacity: 0;
  transition: opacity 1.2s ease;
  &[data-ready] { opacity: 1; }
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgb(11 19 34 / 0.85) 0%, rgb(11 19 34 / 0.25) 40%, rgb(11 19 34 / 0) 60%, rgb(11 19 34 / 0.45) 100%);
}
.hero-inner {
  inline-size: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
  padding-block: 8rem 5.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.5rem 3rem;
  & .eyebrow { grid-column: 1 / -1; }
  @media (width < 900px) { grid-template-columns: 1fr; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  justify-self: start;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark);
}
.dot {
  position: relative;
  inline-size: 0.5rem;
  block-size: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
  &::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--gold);
    @media (prefers-reduced-motion: no-preference) {
      animation: pulse 2s ease-out 3;
    }
  }
}
@keyframes pulse {
  to { scale: 3; opacity: 0; }
}
.hero-title {
  font-weight: 300;
  font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
  & > span { display: block; }
  & .accent { color: var(--gold-2); }
  @media (width < 600px) { & > span { display: inline; } }
}
.hero-side {
  display: grid;
  gap: 1.5rem;
  max-inline-size: 22rem;
  padding-block-end: 0.5rem;
}
.hero-lede {
  color: var(--on-dark-muted);
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.hero-foot {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem var(--gutter);
  color: rgb(244 239 230 / 0.62);
  font-size: 0.66rem;
  & > :last-child { justify-self: end; }
  @media (width < 700px) {
    grid-template-columns: 1fr 1fr;
    & > :first-child { display: none; }
    & .scroll-cue { justify-self: start; }
  }
}
.motion-toggle {
  border: 0;
  background: none;
  padding: 0.4rem 0;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.3em;
  &:hover { color: var(--on-dark); }
}

/* Intro reveal (Olea-style): rise, scale and un-blur, staggered by --d */
@media (prefers-reduced-motion: no-preference) {
  .rv {
    animation: rv 1.1s var(--ease) backwards;
    animation-delay: var(--d, 0s);
  }
}
@keyframes rv {
  from { opacity: 0; translate: 0 64px; scale: 0.96; filter: blur(12px); }
}
@keyframes rv-fade {
  from { opacity: 0; translate: 0 -12px; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 3rem + 6vw, 8rem); }
.section-meta {
  display: flex;
  justify-content: space-between;
  padding-block-end: 1rem;
  margin-block-end: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  border-block-end: 1px solid var(--line);
  color: var(--muted);
}
.statement {
  font-weight: 300;
  font-size: clamp(1.7rem, 1.1rem + 2.4vw, 3.1rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  max-inline-size: 28ch;
  margin-inline: auto;
  text-align: center;
  text-wrap: balance;
}
.h2 {
  font-weight: 300;
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
  max-inline-size: 16ch;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-block-end: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}
.section-intro {
  max-inline-size: 26rem;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- About cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-block-start: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  @media (width < 900px) { grid-template-columns: 1fr 1fr; & .card-logo { grid-column: 1 / -1; } }
  @media (width < 600px) { grid-template-columns: 1fr; }
}
.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-block-size: 22rem;
  padding: 1.75rem;
  @media (width < 600px) { min-block-size: 0; gap: 1.5rem; }
  border-radius: var(--radius);
  background: #fff;
}
.card-sage { background: var(--sage); }
.card-navy { background: var(--navy); color: var(--on-dark); & .card-text { color: var(--on-dark-muted); } & .big-num { color: var(--gold-2); } }
.card-title { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; margin-block-end: 0.4rem; }
.card-text { color: var(--muted); text-wrap: pretty; }
.big-num {
  font-weight: 300;
  font-size: clamp(4rem, 3rem + 3vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}
.card-logo {
  background: radial-gradient(120% 90% at 50% 20%, var(--navy-2), var(--ink) 70%);
  color: var(--on-dark-muted);
  align-items: center;
  justify-content: center;
  text-align: center;
  & img { inline-size: min(100%, 15rem); border-radius: 50%; box-shadow: 0 30px 80px -30px rgb(214 176 110 / 0.5); }
}
.card-note { font-size: 0.9rem; text-wrap: balance; }

/* ---------- Releases ---------- */
.releases { background: var(--paper); }
.release-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: 1rem;
}
.release {
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: var(--radius);
  background: var(--cream);
  overflow: hidden;
}
.release-cover {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  & img { inline-size: 100%; block-size: 100%; object-fit: cover; transition: scale 0.9s var(--ease); }
}
.release:hover .release-cover img { scale: 1.035; }
.release-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  & > p:not(.label) { color: var(--muted); text-wrap: pretty; max-inline-size: 36rem; }
  & .btn { margin-block-start: auto; }
}
.release-title {
  font-weight: 400;
  font-size: clamp(1.8rem, 1.5rem + 1.2vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-block-end: 0.25rem;
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  @media (width < 900px) { grid-template-columns: 1fr; }
}
.faq-side {
  display: grid;
  gap: 2rem;
  align-content: start;
  justify-items: start;
  & .section-meta { justify-self: stretch; margin-block-end: 0; }
}
.faq-list {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  & details {
    border-radius: 1rem;
    background: #fff;
    border: 1px solid var(--line);
    transition: background-color 0.25s;
    &[open] { background: var(--paper); }
  }
  & summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.1rem 1.25rem;
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    &::-webkit-details-marker { display: none; }
    &::before {
      content: "";
      flex-shrink: 0;
      inline-size: 1.75rem;
      block-size: 1.75rem;
      border-radius: 50%;
      background:
        linear-gradient(currentColor, currentColor) center / 0.7rem 1.5px no-repeat,
        linear-gradient(currentColor, currentColor) center / 1.5px 0.7rem no-repeat,
        var(--gold-2);
      @media (prefers-reduced-motion: no-preference) { transition: rotate 0.3s var(--ease); }
    }
  }
  & details[open] > summary::before { rotate: 45deg; }
  & details p {
    padding: 0 1.25rem 1.35rem calc(1.25rem + 1.75rem + 0.9rem);
    color: var(--muted);
    max-inline-size: 65ch;
    text-wrap: pretty;
  }
  & details::details-content {
    interpolate-size: allow-keywords;
    overflow: clip;
    contain: layout;
  }
  & details:not([open])::details-content { block-size: 0; }
  @media (prefers-reduced-motion: no-preference) {
    & details::details-content {
      transition: block-size, content-visibility;
      transition-duration: 0.35s;
      transition-timing-function: var(--ease);
      transition-behavior: allow-discrete;
    }
  }
}

/* ---------- Footer ---------- */
.footer {
  padding-block: clamp(3.5rem, 2.5rem + 3vw, 5rem) 1.5rem;
  background: var(--ink);
  color: var(--on-dark);
  overflow: clip;
  & .muted { color: var(--on-dark-muted); }
  & a { text-decoration: none; color: var(--on-dark-muted); transition: color 0.2s; &:hover { color: var(--gold-2); } }
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  @media (width < 760px) { grid-template-columns: 1fr; }
}
.footer-brand { display: grid; gap: 0.75rem; align-content: start; max-inline-size: 22rem; }
.footer-word { font-size: 1.1rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; }
.footer-col { display: grid; gap: 0.9rem; align-content: start; & ul { display: grid; gap: 0.5rem; } }
.footer-giant {
  margin-block: 3rem 1rem;
  font-size: min(12rem, 15.5vw);
  font-weight: 300;
  line-height: 0.8;
  letter-spacing: -0.02em;
  text-align: center;
  color: transparent;
  background: linear-gradient(to bottom, rgb(214 176 110 / 0.5), rgb(214 176 110 / 0.03));
  background-clip: text;
  -webkit-background-clip: text;
  white-space: nowrap;
  user-select: none;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-block-start: 1.25rem;
  border-block-start: 1px solid rgb(244 239 230 / 0.12);
  color: var(--on-dark-muted);
  font-size: 0.66rem;
}

/* ---------- Scroll reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}
@keyframes reveal {
  from { opacity: 0; translate: 0 2.5rem; }
}
