@font-face {
  font-family: "Asmara Grotesk";
  src: url("/assets/fonts/AsmaraGrotesk-latin.woff2") format("woff2-variations"),
       url("/assets/fonts/AsmaraGrotesk-latin.woff2") format("woff2");
  font-weight: 400 600; /* the design range: heavier requests (e.g. default bold headings) render at 600, as with the previous font */
  font-style: normal;
  font-display: swap;
}
/* ==========================================================================
   Asmara — Portfolio · Base styles (shared by every page)
   Design source: Figma "website Azryl" · Desktop 1440 · Dark
   Sizing: on desktop every Figma pixel is expressed as `calc(N * var(--px))`
   so the 1440 layout scales fluidly with the viewport. Mobile overrides
   switch to flow layouts.
   ========================================================================== */

:root {
  /* Colors (Figma variables) */
  --ink: #0e0e0e;
  --ink2: #1a1a1a;
  --card: #171717;
  --card-2: #1e1e1e;
  --paper: #ede8dc;
  --lime: #d6f24b;
  --white: #ffffff;
  --paper-70: rgba(237, 232, 220, 0.7);
  --paper-60: rgba(237, 232, 220, 0.6);
  --paper-55: rgba(237, 232, 220, 0.55);
  --paper-50: rgba(237, 232, 220, 0.5);
  --paper-45: rgba(237, 232, 220, 0.45);
  --paper-40: rgba(237, 232, 220, 0.4);
  --paper-30: rgba(237, 232, 220, 0.3);
  --paper-20: rgba(237, 232, 220, 0.2);
  --line: rgba(255, 255, 255, 0.12);
  --line-16: rgba(255, 255, 255, 0.16);

  --font: "Asmara Grotesk", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);

  /* 1 Figma px */
}

/* Breakpoints
   ≥1440  monitor : design at its real 1440 size, centred (full-bleed backgrounds)
   1200–1439 desktop: the 1440 layout scales down with the viewport
   768–1199 tablet  : stacked layout (the "max-width: 1199px" blocks) + tablet refinements
   <768     mobile  : stacked layout, phone sizes
   --px (1 Figma px) is also set from the real client width by the inline script in <head>. */
:root { --px: min(calc(100vw / 1440), 1px); }
@media (max-width: 1199px) {
  :root { --px: calc(100vw / 1440); }
}

/* -------------------------------------------------------------------------- */
/* Reset                                                                       */
/* -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

/* Page wrapper: centred on ultra-wide screens */
.site { max-width: calc(1440 * var(--px)); margin-inline: auto; background: var(--ink); }
html { overflow-x: clip; }
/* Distance from the centred 1440 column to the viewport edge (0 below 1440) */
:root { --gutter: max(0px, (100vw - 1440px) / 2); }

/* -------------------------------------------------------------------------- */
/* Typography helpers                                                          */
/* -------------------------------------------------------------------------- */
.micro {
  font-size: calc(12 * var(--px));
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: normal;
}
.micro--dim { color: var(--paper-60); }
.pre { white-space: pre; }

@media (max-width: 1199px) {
  .micro { font-size: 12px; }
}

/* -------------------------------------------------------------------------- */
/* Buttons (Figma component "Button" 11:33)                                   */
/* -------------------------------------------------------------------------- */
.btn {
  --btn-fs: calc(14 * var(--px));
  display: inline-flex;
  align-items: center;
  gap: calc(8 * var(--px));
  padding: calc(11 * var(--px)) calc(16 * var(--px)) calc(11 * var(--px)) calc(18 * var(--px));
  border-radius: 999px;
  font-size: var(--btn-fs);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: normal;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s var(--ease-out), border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.btn img { width: calc(12 * var(--px)); height: calc(12 * var(--px)); transition: transform 0.4s var(--ease-out); }
.btn:hover img { transform: translate(2px, -2px) rotate(45deg); }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime::before { background: var(--paper); }
.btn--outline { border: 1px solid rgba(255, 255, 255, 0.3); color: var(--paper); }
.btn--outline::before { background: var(--paper); }
.btn--outline:hover { color: var(--ink); border-color: var(--paper); }
.btn--outline:hover img { filter: brightness(0); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink::before { background: var(--lime); }
.btn--ink:hover { color: var(--ink); }
.btn--block { width: 100%; justify-content: space-between; }

@media (max-width: 1199px) {
  .btn { --btn-fs: 14px; gap: 8px; padding: 11px 16px 11px 18px; }
  .btn img { width: 12px; height: 12px; }
}

/* Tag (Figma component "Tag" 11:54) */
.tag {
  display: inline-flex;
  align-items: center;
  padding: calc(6 * var(--px)) calc(11 * var(--px));
  border-radius: 999px;
  font-size: calc(12 * var(--px));
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: normal;
}
.tag--lime { background: var(--lime); color: var(--ink); }
.tag--outline { border: 1px solid rgba(255, 255, 255, 0.28); color: var(--paper); }
@media (max-width: 1199px) {
  .tag { font-size: 12px; padding: 6px 11px; }
}
.tag--grey { background: #444; color: var(--white); }

/* -------------------------------------------------------------------------- */
/* Site nav (inner pages, Figma "Site Nav / Dark" 57:185)                     */
/* -------------------------------------------------------------------------- */
.site-nav {
  height: calc(100 * var(--px));
  padding: 0 calc(32 * var(--px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ink);
  position: relative;
  z-index: 20;
}
.monogram {
  width: calc(44 * var(--px));
  height: calc(44 * var(--px));
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: calc(24 * var(--px));
  line-height: 1;
  transition: transform 0.5s var(--ease-out);
}
.monogram:hover { transform: rotate(-12deg) scale(1.06); }

.nav-pills { display: flex; gap: calc(4 * var(--px)); align-items: center; }
.nav-group {
  display: flex;
  border: 1.2px solid var(--paper);
  background: rgba(237, 232, 220, 0.06);
  border-radius: 999px;
  padding: 1px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: calc(6 * var(--px));
  padding: calc(9 * var(--px)) calc(22 * var(--px));
  border-radius: 999px;
  font-size: calc(12 * var(--px));
  font-weight: 500;
  text-transform: uppercase;
  color: var(--paper);
  line-height: normal;
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.nav-link::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.nav-link:hover { background: rgba(237, 232, 220, 0.12); }
.nav-link.is-active { background: var(--lime); color: var(--ink); }
.nav-link--solo {
  border: 1.2px solid var(--paper);
  background: rgba(237, 232, 220, 0.06);
  padding-inline: calc(26 * var(--px));
}

/* Light variant used on top of the paper hero */
.nav-pills--light .nav-group,
.nav-pills--light .nav-link--solo {
  border-color: var(--ink);
  background: rgba(237, 232, 220, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.nav-pills--light .nav-group { padding: 0 calc(8 * var(--px)); }
.nav-pills--light .nav-link { color: var(--ink); }
.nav-pills--light .nav-link:hover { background: rgba(14, 14, 14, 0.08); }

/* Menu button: only on phones (Figma "Site Nav / Mobile" 110:1100) */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 9px 26px;
  border: 1.2px solid var(--paper);
  background: rgba(237, 232, 220, 0.06);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  line-height: normal;
  color: var(--paper);
  transition: background-color 0.3s var(--ease-out);
}
.nav-toggle::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: currentColor; flex: none; }
.nav-toggle svg { width: 16px; height: 16px; flex: none; }
.nav-toggle:hover { background: rgba(237, 232, 220, 0.14); }
.nav-pills--light .nav-toggle {
  border-color: var(--ink);
  color: var(--ink);
  background: rgba(237, 232, 220, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@media (max-width: 1199px) {
  /* Tablet: the desktop pills at their 1:1 Figma size (Tablet 768 hero nav 121:6166) */
  .site-nav { height: 84px; padding: 0 40px; }
  .monogram { width: 44px; height: 44px; font-size: 24px; }
  .nav-pills { gap: 4px; }
  .nav-link { font-size: 12px; padding: 9px 22px; gap: 6px; }
  .nav-link--solo { padding-inline: 26px; }
  .nav-pills--light .nav-group { padding: 0 8px; }
}
@media (max-width: 767px) {
  /* Phone: monogram + MENU button (110:1097) */
  .site-nav { height: 72px; padding: 0 20px; }
  .nav-pills .nav-group,
  .nav-pills .nav-link--solo { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* -------------------------------------------------------------------------- */
/* Mobile menu overlay (Figma 131:6641)                                       */
/* -------------------------------------------------------------------------- */
.mmenu {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--paper);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 28px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.5s var(--ease-in-out);
}
.mmenu[hidden] { display: none; }
.menu-open .mmenu { clip-path: inset(0 0 0 0); }
.menu-open, .menu-open body { overflow: hidden; }
.mmenu__bar {
  flex: none;
  height: 72px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mmenu .nav-toggle { display: inline-flex; }
.mmenu__body {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 0;
}
.mmenu__head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(237, 232, 220, 0.36);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mmenu__links { display: flex; flex-direction: column; }
.mmenu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(237, 232, 220, 0.36);
  color: var(--paper);
  transition: color 0.3s var(--ease-out);
}
.mmenu__label { display: flex; align-items: flex-start; gap: 14px; font-weight: 500; }
.mmenu__num { font-size: 12px; line-height: normal; }
.mmenu__name { font-size: 40px; line-height: 44px; letter-spacing: -0.03em; }
.mmenu__link svg { width: 20px; height: 20px; flex: none; opacity: 0.5; transition: transform 0.4s var(--ease-out), opacity 0.3s; }
.mmenu__link.is-active, .mmenu__link:hover { color: var(--lime); }
.mmenu__link.is-active svg, .mmenu__link:hover svg { opacity: 1; }
.mmenu__link:hover svg { transform: translate(2px, -2px); }
.mmenu__spacer { flex: 1 0 40px; }
.mmenu__bottom { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.mmenu__socials {
  align-self: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 16px;
  border-top: 1px solid var(--paper);
}
.mmenu__socials a, .mmenu__loc {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: normal;
}
.mmenu__socials a:hover { color: var(--lime); }
/* contents rise in after the panel wipes down */
.mmenu__head, .mmenu__link, .mmenu__bottom {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.menu-open .mmenu__head, .menu-open .mmenu__link, .menu-open .mmenu__bottom {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: calc(0.25s + var(--i, 0) * 0.05s);
}
.menu-open .mmenu__link { transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out), color 0.3s var(--ease-out); transition-delay: calc(0.25s + var(--i, 0) * 0.05s), calc(0.25s + var(--i, 0) * 0.05s), 0s; }
@media (min-width: 768px) {
  .mmenu { display: none !important; }
}

/* -------------------------------------------------------------------------- */
/* Shared section label row ([01]  ABOUT ...)                                 */
/* -------------------------------------------------------------------------- */
.label-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: calc(14 * var(--px));
  border-bottom: 1px solid var(--line-16);
  font-size: calc(12 * var(--px));
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
}
.label-row > :last-child { color: var(--paper-45); }
@media (max-width: 1199px) {
  .label-row { font-size: 12px; padding-bottom: 14px; gap: 16px; }
  .label-row > :last-child { text-align: right; }
}

/* -------------------------------------------------------------------------- */
/* CTA (Figma 82:578)                                                         */
/* -------------------------------------------------------------------------- */
.cta {
  padding: calc(170 * var(--px)) calc(40 * var(--px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(36 * var(--px));
  text-align: center;
}
.cta__title {
  font-size: calc(80 * var(--px));
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: var(--paper);
}
.cta__actions { display: flex; gap: calc(12 * var(--px)); }
@media (max-width: 1199px) {
  /* Tablet 768 CTA 121:6571 */
  .cta { padding: 102px 40px; gap: 25px; }
  .cta__title { font-size: clamp(54px, 7.03vw, 66px); letter-spacing: -0.05em; }
  .cta__actions { gap: 12px; flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 767px) {
  /* Mobile 390 CTA 122:6825 */
  .cta { padding: 77px 20px; gap: 18px; }
  .cta__title { font-size: clamp(30px, 9.23vw, 40px); }
}

/* -------------------------------------------------------------------------- */
/* Footer (Figma 69:739)                                                      */
/* -------------------------------------------------------------------------- */
.footer {
  position: relative;
  background: var(--ink);
  height: calc(1000 * var(--px));
  overflow: hidden;
}
.footer__big {
  position: absolute;
  top: calc(64 * var(--px));
  font-size: calc(54 * var(--px));
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: pre;
  color: var(--paper);
}
.footer__big--left { left: calc(40 * var(--px)); }
.footer__big--right { right: calc(40 * var(--px)); text-align: right; }
.footer__mono {
  position: absolute;
  left: calc(645 * var(--px));
  top: calc(44 * var(--px));
  width: calc(150 * var(--px));
  height: calc(150 * var(--px));
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: calc(92 * var(--px));
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.footer__reg {
  position: absolute;
  left: calc(799 * var(--px));
  top: calc(52 * var(--px));
  font-size: calc(16 * var(--px));
  font-weight: 500;
}
.footer__micro {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(290 * var(--px));
  height: calc(56 * var(--px));
  padding: 0 calc(40 * var(--px));
  border-block: 1px solid var(--line-16);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__star {
  position: absolute;
  top: calc(415 * var(--px));
  width: calc(30 * var(--px));
  height: calc(30 * var(--px));
  animation: spin 14s linear infinite;
}
.footer__star--l { left: calc(300 * var(--px)); }
.footer__star--r { left: calc(1110 * var(--px)); animation-direction: reverse; }
.footer__btn {
  position: absolute;
  top: calc(408 * var(--px));
  left: 0;
  right: 0;
  width: max-content;
  margin-inline: auto;
}
.footer__bar {
  position: absolute;
  left: calc(40 * var(--px));
  right: calc(40 * var(--px));
  top: calc(560 * var(--px));
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__bar .muted { color: var(--paper-50); line-height: 1.5; }
.footer__bar-right { display: flex; gap: calc(80 * var(--px)); color: rgba(237, 232, 220, 0.8); }
.footer__word {
  position: absolute;
  left: calc(37 * var(--px));
  top: calc(608 * var(--px));
  font-size: calc(278 * var(--px));
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: var(--paper);
  display: flex;
}
.footer__links {
  position: absolute;
  left: calc(305 * var(--px));
  top: calc(906 * var(--px));
  display: flex;
  gap: calc(96 * var(--px));
}
.footer__links a {
  display: flex;
  gap: calc(4 * var(--px));
  align-items: flex-start;
  font-size: calc(12 * var(--px));
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
  transition: color 0.25s;
}
.footer__links a span { color: var(--lime); font-size: calc(14 * var(--px)); line-height: 1; transition: transform 0.3s var(--ease-out); }
.footer__links a:hover { color: var(--lime); }
.footer__links a:hover span { transform: rotate(20deg); }
.footer__ruler-nums {
  position: absolute;
  left: calc(44 * var(--px));
  right: calc(40 * var(--px));
  top: calc(940 * var(--px));
  font-size: calc(12 * var(--px));
  color: var(--paper-40);
}
.footer__ruler-nums span { position: absolute; top: 0; left: calc(var(--n) * var(--px)); }
.footer__ruler {
  position: absolute;
  left: calc(40 * var(--px));
  top: calc(962 * var(--px));
  width: calc(1361 * var(--px));
  height: calc(16 * var(--px));
}

/* Tablet (Figma "Footer / Tablet" 121:6830) — flow layout, 768 values made fluid */
@media (max-width: 1199px) {
  .footer { height: auto; padding: 64px 40px 32px; display: flex; flex-direction: column; gap: 48px; }
  .footer__big, .footer__mono, .footer__micro, .footer__star, .footer__btn,
  .footer__bar, .footer__word, .footer__links, .footer__ruler-nums, .footer__ruler { position: static; }
  .footer__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .footer__big { font-size: clamp(34px, 4.43vw, 46px); letter-spacing: -0.03em; white-space: pre-line; }
  .footer__big--right { text-align: right; }
  .footer__mono { flex: none; width: clamp(96px, 12.5vw, 125px); height: clamp(96px, 12.5vw, 125px); font-size: clamp(60px, 7.8vw, 78px); }
  .footer__reg { display: none; }
  .footer__micro { height: auto; padding: 16px 0; flex-wrap: wrap; gap: 12px 28px; justify-content: center; }
  .footer__cta { display: flex; align-items: center; justify-content: space-between; }
  .footer__star { width: 30px; height: 30px; }
  .footer__btn { margin: 0; width: auto; }
  .footer__bar { align-items: flex-end; gap: 24px; }
  .footer__bar .muted { max-width: 330px; }
  .footer__bar-right { gap: 40px; white-space: nowrap; }
  .footer__word { font-size: 18.1vw; letter-spacing: -0.04em; justify-content: center; }
  .footer__links { justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
  .footer__links a { font-size: 12px; gap: 4px; }
  .footer__links a span { font-size: 14px; }
  .footer__rule { position: relative; height: 38px; overflow: hidden; }
  .footer__ruler-nums { position: absolute; inset: 0 0 auto 4px; font-size: 12px; }
  .footer__ruler-nums span { left: calc(var(--n) * 1px); }
  .footer__ruler { position: absolute; left: 0; top: 22px; width: 1361px; height: 16px; max-width: none; }
}
/* Mobile (Figma "Footer / Mobile" 110:867) — centred stack */
@media (max-width: 767px) {
  .footer { padding: 48px 20px 24px; gap: 36px; text-align: center; }
  .footer__top { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 36px 32px; }
  .footer__mono { grid-column: 1 / -1; grid-row: 1; justify-self: center; width: 64px; height: 64px; font-size: 40px; }
  .footer__big { font-size: 26px; text-align: center; }
  .footer__big--left { grid-row: 2; grid-column: 1; }
  .footer__big--right { grid-row: 2; grid-column: 2; text-align: center; }
  .footer__micro { gap: 12px 16px; }
  .footer__star { width: 22px; height: 22px; }
  .footer__bar { flex-direction: column; align-items: center; gap: 16px; }
  .footer__bar .muted { max-width: none; }
  .footer__bar-right { gap: 24px; }
  .footer__word { font-size: 17.95vw; }
  .footer__links { justify-content: center; }
}
@media (min-width: 1200px) {
  .footer__top, .footer__cta, .footer__rule { display: contents; }
}

/* -------------------------------------------------------------------------- */
/* Image placeholder (for assets still placeholder in Figma)                  */
/* -------------------------------------------------------------------------- */
.ph {
  background:
    repeating-linear-gradient(135deg, rgba(237,232,220,0.05) 0 1px, transparent 1px 14px),
    var(--card-2);
  display: grid;
  place-items: center;
  color: var(--paper-40);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------------------- */
/* Motion primitives                                                           */
/* -------------------------------------------------------------------------- */
@keyframes spin { to { transform: rotate(360deg); } }

/* Generic reveal (IntersectionObserver adds .is-in) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(0.94); }
.js [data-reveal="blur"] { filter: blur(10px); transition-property: opacity, transform, filter; }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* Clip reveal for media */
.js [data-reveal="clip"] {
  opacity: 1;
  transform: none;
  clip-path: inset(100% 0 0 0 round 4px);
  transition: clip-path 1.2s var(--ease-in-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="clip"] > img:first-child { transform: scale(1.18); transition: transform 1.6s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round 4px); }
.js [data-reveal="clip"].is-in > img:first-child { transform: scale(1); }

/* Line / letter rise (split text) */
.split-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.split-wordwrap { display: inline-block; white-space: nowrap; }
.split-char, .split-word { display: inline-block; will-change: transform; }
.js [data-split="chars"] .split-char,
.js [data-split="words"] .split-word {
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
  transition-delay: calc(var(--d, 0s) + var(--i, 0) * 0.035s);
}
.js [data-split].is-in .split-char,
.js [data-split].is-in .split-word { transform: none; }

/* Scroll-scrubbed word highlight (progress set by JS through --p per word) */
.scrub-word { transition: color 0.25s linear; }

/* Draw a hairline from left */
.js [data-reveal="line"] { opacity: 1; transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-in-out); transition-delay: var(--d, 0s); }
.js [data-reveal="line"].is-in { transform: scaleX(1); }

/* Page transition curtain */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--lime);
  pointer-events: none;
  transform: translateY(100%);
}
.curtain.is-leaving { transition: transform 0.6s var(--ease-in-out); transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}

/* ==========================================================================
   Motion language from the reference video
   ========================================================================== */
/* Words appear one after another, from blur */
.split-blur { display: inline-block; }
.js [data-split="blur"] .split-blur {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(0.12em);
  transition: opacity 0.7s var(--ease-out), filter 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--d, 0s) + var(--i, 0) * 0.07s);
}
.js [data-split="blur"].is-in .split-blur { opacity: 1; filter: none; transform: none; }

/* Whole block from heavy blur (footer headlines, body copy) */
.js [data-reveal="blur-lg"] { opacity: 0; filter: blur(18px); transform: none; transition: opacity 0.9s var(--ease-out), filter 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="blur-lg"].is-in { opacity: 1; filter: none; }

/* Small UI popping in */
.js [data-reveal="pop"] { opacity: 0; transform: scale(0.6); transition: opacity 0.5s var(--ease-out), transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); transition-delay: var(--d, 0s); }
.js [data-reveal="pop"].is-in { opacity: 1; transform: none; }

/* Panels rising from below as empty cards */
.js [data-reveal="rise"] { opacity: 0; transform: translateY(90px); transition: opacity 0.7s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="rise"].is-in { opacity: 1; transform: none; }

/* Star rows filling one star at a time */
.js [data-reveal="stars"] { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 0.9s steps(5, jump-none); transition-delay: var(--d, 0s); }
.js [data-reveal="stars"].is-in { clip-path: inset(0 var(--cut, 0%) 0 0); }
/* partial ratings (--cut = unlit share of the row) on stars that are not revealed (clones, no JS) */
img[style*="--cut"]:not([data-reveal]) { clip-path: inset(0 var(--cut) 0 0); }

/* Wipe from left (rulers) */
.js [data-reveal="wipe"] { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--ease-in-out); transition-delay: var(--d, 0s); }
.js [data-reveal="wipe"].is-in { clip-path: inset(0 0 0 0); }

/* Media growing upward from its bottom edge (no zoom) */
.js [data-reveal="grow"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1s var(--ease-in-out); transition-delay: var(--d, 0s); }
.js [data-reveal="grow"].is-in { clip-path: inset(0 0 0 0); }
