/* ==========================================================================
   BASE + TYPE + LAYOUT
   ========================================================================== */

/* Fonts --------------------------------------------------------------- */
@font-face {
  font-family: "Open Runde";
  src: url("../assets/fonts/open-runde-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Open Runde";
  src: url("../assets/fonts/open-runde-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Open Runde";
  src: url("../assets/fonts/open-runde-semibold.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
}

/* Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body {
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
  font-feature-settings: "ss01", "cv11";
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }

/* Type scale ---------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono, var(--font-body));
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
}
.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 54ch;
  margin: 0;
  text-wrap: pretty;
}
.body { color: var(--ink-2); margin: 0; }

/* Layout --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section { padding: var(--section-y) 0; position: relative; }
.section-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: clamp(40px, 5vw, 72px);
  max-width: 720px;
}
.section-header.center { align-items: center; margin-left: auto; margin-right: auto; text-align: center; }
.section-header.center .lede { text-align: center; }

/* Utility -------------------------------------------------------------- */
.row { display: flex; align-items: center; gap: 12px; }
.stack { display: flex; flex-direction: column; }
.grow { flex: 1; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-2);
  background: var(--bg);
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 20%, transparent);
}

/* Buttons -------------------------------------------------------------- */
/*
  Dual-label slide-up hover (matches mimnu.com reference).
  Markup:
    <a class="btn btn--primary">
      <span class="btn__labels">
        <span>Label</span>
        <span>Label</span>
      </span>
    </a>
  On hover, the labels container justifies to flex-end, pushing the top
  label up and revealing the bottom one — the two stacked labels slide as
  one fixed-height strip.
*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition:
    background-color 260ms var(--ease-out),
    border-color 260ms var(--ease-out),
    box-shadow 260ms var(--ease-out),
    color 220ms var(--ease-out);
  will-change: background-color;
}
.btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* The sliding labels stack ------------------------------------------- */
.btn__labels {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: 19px;
  line-height: 19px;
  overflow: hidden;
  transition: justify-content 0s; /* justify-content can't animate; we use transform */
}
.btn__labels > span {
  user-select: none;
  white-space: pre;
  display: block;
  transform: translateY(0);
  transition: transform 420ms var(--ease-emph);
}
.btn:hover .btn__labels > span {
  transform: translateY(-19px);
}

/* Variants ------------------------------------------------------------- */
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--primary:hover {
  background: color-mix(in oklab, var(--accent) 85%, white);
}

.btn--ghost {
  background: rgba(255,255,255,0.1);
  color: var(--ink);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.4);
  border-color: var(--line-2);
}

.btn--ink {
  background: var(--ink);
  color: var(--bg);
}
.btn--ink:hover {
  background: var(--ink-2);
}

/* Arrow accent (optional) -------------------------------------------- */
.btn .arrow {
  display: inline-block;
  transition: transform 260ms var(--ease-emph);
}
.btn:hover .arrow { transform: translateX(4px); }

/* Reveal animation entry state ---------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 900ms var(--ease-emph),
    transform 900ms var(--ease-emph);
  will-change: transform, opacity;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
[data-reveal-delay="1"] { transition-delay: 80ms; }
[data-reveal-delay="2"] { transition-delay: 160ms; }
[data-reveal-delay="3"] { transition-delay: 240ms; }
[data-reveal-delay="4"] { transition-delay: 320ms; }
[data-reveal-delay="5"] { transition-delay: 400ms; }

/* Word-by-word reveal (hero) ------------------------------------------ */
.word-reveal { display: inline-block; overflow: visible; }
.word-reveal .word {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(18px);
  transition:
    opacity 900ms var(--ease-emph),
    filter 900ms var(--ease-emph),
    transform 900ms var(--ease-emph);
  will-change: transform, opacity, filter;
}
.word-reveal.ready .word {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal], .word-reveal .word {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  html { scroll-behavior: auto !important; }
}
