/* ==========================================================================
   Theme — Sky & Cream Editorial
   Reference: blue sky, cream paper card, red serif display, inline media
   ========================================================================== */

:root {
  --sky:        #87c4ec;          /* blue sky background */
  --sky-2:      #a8d4ee;
  --paper:      #f4f1e8;          /* cream paper card */
  --paper-2:    #ebe7d9;
  --paper-3:    #e1dccb;
  --hair:       rgba(232, 68, 42, 0.18);
  --hair-2:     rgba(232, 68, 42, 0.35);

  --red:        #e8442a;          /* signature red */
  --red-2:      #d33a22;
  --red-soft:   rgba(232, 68, 42, 0.08);

  --yellow:     #f5e57c;
  --green:      #c9e4c4;

  --ink:        #2a2520;
  --ink-2:      #4a4138;
  --ink-3:      #7a7068;

  --font-display: 'Fraunces', 'Times New Roman', Georgia, serif;
  --font-body:    'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', Consolas, monospace;

  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.85rem);
  --step-0:  clamp(0.95rem, 0.9rem  + 0.2vw, 1.05rem);
  --step-1:  clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --step-2:  clamp(1.55rem, 1.3rem  + 1vw, 2rem);
  --step-3:  clamp(2.2rem,  1.6rem  + 3vw, 3.6rem);
  --step-4:  clamp(3rem,    2rem    + 6vw, 6.5rem);
  --step-5:  clamp(4.5rem,  3rem    + 11vw, 13rem);

  --gutter-x: clamp(1.5rem, 3vw, 2.75rem);
  --max-w: 1280px;

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }

html, body { background: var(--sky); }

html {
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(255,255,255,0.35), transparent 60%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(255,255,255,0.25), transparent 60%),
    linear-gradient(180deg, var(--sky) 0%, var(--sky-2) 100%);
  position: relative;
}

/* Drifting clouds */
body::before {
  content: '';
  position: fixed;
  top: 8%; left: -20%;
  width: 50vmin; height: 8vmin;
  background: rgba(255,255,255,0.55);
  border-radius: 100px;
  filter: blur(20px);
  pointer-events: none;
  animation: drift 90s linear infinite;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  top: 65%; right: -15%;
  width: 60vmin; height: 10vmin;
  background: rgba(255,255,255,0.45);
  border-radius: 100px;
  filter: blur(22px);
  pointer-events: none;
  animation: drift 120s linear infinite reverse;
  z-index: 0;
}
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(120vw); } }

::selection { background: var(--red); color: var(--paper); }

/* ---------- The big paper card that holds everything ---------- */
.paper-card {
  position: relative;
  margin: 1.5rem clamp(0.5rem, 2vw, 2rem);
  background: var(--paper);
  border-radius: 18px;
  padding: clamp(1.5rem, 3vw, 3rem) clamp(1.5rem, 3.5vw, 3.5rem);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 30px 80px -20px rgba(20,30,60,0.25),
    0 10px 30px -10px rgba(20,30,60,0.15);
  overflow: hidden;
}

/* Grid texture on the paper card */
.paper-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(232,68,42,0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(232,68,42,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}
.paper-card > * { position: relative; z-index: 1; }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), background 0.25s;
}
.cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 38px; height: 38px;
  border: 1.5px solid var(--red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out);
  opacity: 0.6;
}
.cursor-ring.is-hover { width: 64px; height: 64px; opacity: 1; }
@media (pointer: coarse) { body { cursor: auto; } .cursor, .cursor-ring { display: none; } }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  font-variation-settings: "SOFT" 30, "WONK" 0;
  color: var(--red);
}
h1 { font-size: var(--step-5); font-weight: 500; letter-spacing: -0.035em; line-height: 0.95; font-variation-settings: "SOFT" 30, "WONK" 1; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-3); }
h4 { font-size: var(--step-2); }

p { margin: 0 0 1em; color: var(--ink-2); max-width: 60ch; font-size: var(--step-0); }
p.lede { font-size: var(--step-1); color: var(--ink); max-width: 56ch; }

a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, color 0.3s;
}
a:hover { border-bottom-color: var(--red); }
a.muted { color: var(--ink-3); border-bottom-color: var(--hair); }

/* Inline media inside headlines — like the reference */
.headline-media {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin: 0 0.1em;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  top: -0.05em;
  width: 1.3em;
  height: 0.85em;
  background: var(--paper-2);
}
.headline-media.lg { width: 1.8em; height: 1.1em; }
.headline-media.sm { width: 1em; height: 0.7em; }
.headline-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.headline-emoji {
  display: inline-block;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif;
  vertical-align: middle;
  font-size: 0.95em;
  margin: 0 0.05em;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--hair);
  position: relative;
  z-index: 5;
}
.brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--red);
  letter-spacing: -0.02em;
  border: 0;
  font-variation-settings: "SOFT" 30, "WONK" 1;
}
nav.primary {
  display: flex;
  gap: 0.5rem;
}
nav.primary a {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.15rem;
  border: 1.5px solid var(--red);
  border-radius: 999px;
  color: var(--red);
  font-size: var(--step--1);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
nav.primary a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s var(--ease-out);
  z-index: -1;
}
nav.primary a:hover { color: var(--paper); }
nav.primary a:hover::before { transform: scaleY(1); }
nav.primary a.is-active { background: var(--red); color: var(--paper); }
nav.primary a.is-active::before { transform: scaleY(1); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(2rem, 6vw, 5rem) 0 clamp(3rem, 8vw, 6rem);
  position: relative;
}

.hero h1 {
  text-align: center;
  font-size: clamp(2.6rem, 7.5vw, 7rem);
  margin: 0 auto;
  max-width: 18ch;
  font-weight: 500;
  letter-spacing: -0.035em;
  font-variation-settings: "SOFT" 30, "WONK" 1;
}
.hero h1 .line {
  display: block;
  overflow: hidden;
}
.hero h1 .line span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 0.95s var(--ease-out) forwards;
}
.hero h1 .line:nth-child(2) span { animation-delay: 0.1s; }
.hero h1 .line:nth-child(3) span { animation-delay: 0.2s; }
.hero h1 .line:nth-child(4) span { animation-delay: 0.3s; }
.hero h1 .line:nth-child(5) span { animation-delay: 0.4s; }
@keyframes rise { to { transform: translateY(0); } }

/* ---------- Sections ---------- */
section { padding-block: clamp(4rem, 7vw, 7rem); position: relative; }

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}
.section-head h2 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-variation-settings: "SOFT" 30, "WONK" 1;
}

/* ---------- About / statement ---------- */
.statement {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
  padding-block: clamp(3rem, 6vw, 6rem);
}
.statement .portrait {
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
  background:
    repeating-linear-gradient(45deg, var(--paper-2) 0 8px, var(--paper-3) 8px 9px);
  position: relative;
}
.statement .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-out);
}
.statement .portrait:hover img { transform: scale(1.03); }
.statement .portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(20,30,60,0.15));
  pointer-events: none;
}
.statement p {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  color: var(--red);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 50, "WONK" 1;
  font-weight: 400;
  margin: 0;
}
@media (max-width: 720px) { .statement { grid-template-columns: 1fr; gap: 2rem; } .statement .portrait { max-width: 220px; } }

/* ---------- Featured work — image grid ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 720px) { .featured-grid { grid-template-columns: 1fr; } }

.featured-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--paper-2);
  transition: transform 0.5s var(--ease-out), box-shadow 0.4s;
  display: block;
  border: 0;
}
.featured-card.lg { aspect-ratio: 5/4; }
.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -12px rgba(20,30,60,0.25);
}
.featured-card .thumb {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: var(--step-3);
  color: var(--red);
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s var(--ease-out);
}
.featured-card .thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.featured-card:hover .thumb img { transform: scale(1.05); }
.featured-card .thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232,68,42,0.05) 0%, rgba(20,30,60,0.1) 100%);
  z-index: 1;
}
.featured-card .thumb span { position: relative; z-index: 2; opacity: 0; }

.featured-card .meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: end;
  background: linear-gradient(to top, rgba(244,241,232,0.95), transparent);
  z-index: 2;
}
.featured-card .meta .cat {
  font-size: var(--step--1);
  color: var(--red);
  font-weight: 500;
}
.featured-card .meta h3 {
  font-size: var(--step-1);
  color: var(--red);
  margin: 0.25rem 0 0;
  font-variation-settings: "SOFT" 30, "WONK" 0;
}

/* ---------- Services — table-like rows ---------- */
.services-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hair-2);
}
.service-row {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 2rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--hair-2);
  position: relative;
  transition: padding 0.4s var(--ease-out);
}
.service-row:hover { padding-inline: 1rem; }
.service-row .name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  color: var(--red);
  font-weight: 500;
  letter-spacing: -0.025em;
  font-variation-settings: "SOFT" 30, "WONK" 1;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  line-height: 1;
}
.service-row .name .num {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--red);
  opacity: 0.55;
  font-weight: 400;
  font-variation-settings: normal;
  font-style: normal;
  position: relative;
  top: -0.4em;
}
.service-row .desc {
  font-size: var(--step-0);
  color: var(--red);
  line-height: 1.5;
  max-width: 50ch;
  opacity: 0.85;
  margin: 0;
}
@media (max-width: 720px) {
  .service-row { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* ---------- CTA / contact panel ---------- */
.cta-panel {
  background: var(--yellow);
  border-radius: 16px;
  padding: clamp(2rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}
.cta-panel h3 {
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  color: var(--red);
  margin: 0;
  font-variation-settings: "SOFT" 30, "WONK" 1;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.cta-panel .cta-img {
  aspect-ratio: 4/3;
  border-radius: 12px;
  background: linear-gradient(135deg, #c4dcc4, #88b898);
  position: relative;
  overflow: hidden;
}
.cta-panel .cta-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cta-panel .btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.9rem 1.6rem;
  border: 1.5px solid var(--red);
  background: var(--red);
  color: var(--paper);
  border-radius: 999px;
  font-weight: 500;
  font-size: var(--step--1);
  margin-top: 1rem;
  transition: all 0.3s var(--ease-out);
}
.cta-panel .btn-cta:hover {
  background: transparent;
  color: var(--red);
}
@media (max-width: 720px) { .cta-panel { grid-template-columns: 1fr; } }

/* ---------- Contact form ---------- */
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; max-width: 640px; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-size: var(--step--1);
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
}
.field input, .field textarea, .field select {
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--red);
  padding: 0.75rem 0;
  color: var(--red);
  font: inherit;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  transition: padding 0.3s, border-color 0.3s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0;
  padding-inline: 0.5rem;
}
.field textarea { resize: vertical; min-height: 120px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.9rem 1.6rem;
  border: 1.5px solid var(--red);
  background: var(--red);
  color: var(--paper);
  border-radius: 999px;
  font-weight: 500;
  font-size: var(--step--1);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  align-self: flex-start;
}
.btn:hover { background: transparent; color: var(--red); }

/* ---------- Info blocks ---------- */
.info-block { padding: 1.25rem 0; border-top: 1px solid var(--hair-2); transition: padding 0.3s; }
.info-block:hover { padding-inline: 0.75rem; }
.info-block:last-child { border-bottom: 1px solid var(--hair-2); }
.info-block .k {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red);
  opacity: 0.55;
  margin-bottom: 0.4rem;
  font-weight: 500;
}
.info-block .v {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--red);
  font-weight: 500;
  font-variation-settings: "SOFT" 30, "WONK" 0;
  letter-spacing: -0.02em;
}

/* ---------- Skills as a clean grid ---------- */
.skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 2rem;
  border-top: 1px solid var(--hair-2);
}
@media (max-width: 800px) { .skills { grid-template-columns: repeat(2, 1fr); } }
.skill-row {
  padding: 1rem 0;
  border-bottom: 1px solid var(--hair-2);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.skill-row .name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--red);
  font-weight: 500;
  font-variation-settings: "SOFT" 30, "WONK" 0;
}
.skill-row .lvl {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--red);
  opacity: 0.6;
}

/* ---------- Timeline (clean rows) ---------- */
.timeline { border-top: 1px solid var(--hair-2); }
.timeline .item {
  display: grid;
  grid-template-columns: 120px 1fr 100px;
  gap: 2rem;
  align-items: baseline;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--hair-2);
  transition: padding 0.3s, background 0.3s;
}
.timeline .item:hover { padding-inline: 0.75rem; background: var(--red-soft); }
.timeline .yr {
  font-family: var(--font-mono);
  color: var(--red);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.12em;
}
.timeline h3 {
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--red);
  margin: 0;
  font-variation-settings: "SOFT" 30, "WONK" 0;
}
.timeline .desc { font-size: var(--step--1); color: var(--ink-3); }
@media (max-width: 720px) {
  .timeline .item { grid-template-columns: 80px 1fr; gap: 1rem; }
  .timeline .desc { grid-column: 1 / -1; }
}

/* ---------- Stack ---------- */
.stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--hair-2);
  border-left: 1px solid var(--hair-2);
}
@media (max-width: 800px) { .stack { grid-template-columns: repeat(2, 1fr); } }
.stack .cell {
  padding: 1.25rem;
  border-right: 1px solid var(--hair-2);
  border-bottom: 1px solid var(--hair-2);
}
.stack .k {
  font-size: var(--step--1);
  color: var(--red);
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.4rem;
  font-weight: 500;
}
.stack .v {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--red);
  font-weight: 500;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-top: 3rem;
  border-top: 1px solid var(--hair-2);
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
}
.site-footer .display {
  font-size: clamp(2rem, 6vw, 5rem);
  color: var(--red);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.9;
  font-variation-settings: "SOFT" 30, "WONK" 1;
}
.site-footer .display a { border: 0; }
.site-footer .colophon {
  font-size: var(--step--1);
  color: var(--red);
  opacity: 0.65;
  text-align: right;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--hair-2);
  padding: 1rem 0;
  margin-block: 2rem;
}
.marquee .track {
  display: flex;
  gap: 3rem;
  animation: slide 30s linear infinite;
  width: max-content;
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--red);
  white-space: nowrap;
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.marquee .track span::after {
  content: '✦';
  margin-left: 3rem;
  color: var(--red);
  opacity: 0.5;
}
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-bar button {
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  font-size: var(--step--1);
  transition: all 0.3s var(--ease-out);
  font-family: var(--font-body);
}
.filter-bar button:hover { background: var(--red-soft); }
.filter-bar button.is-active { background: var(--red); color: var(--paper); }

/* ---------- Reveals ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }

.reveal-left  { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal-right { opacity: 0; transform: translateX(40px);  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal-left.is-visible, .reveal-right.is-visible { opacity: 1; transform: translateX(0); }

.reveal-scale { opacity: 0; transform: scale(0.94); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }

.word-reveal .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  margin-right: 0.18em;
}
.word-reveal.is-visible .word { opacity: 1; transform: translateY(0); }
.word-reveal.is-visible .word:nth-child(2)  { transition-delay: 0.06s; }
.word-reveal.is-visible .word:nth-child(3)  { transition-delay: 0.12s; }
.word-reveal.is-visible .word:nth-child(4)  { transition-delay: 0.18s; }
.word-reveal.is-visible .word:nth-child(5)  { transition-delay: 0.24s; }
.word-reveal.is-visible .word:nth-child(6)  { transition-delay: 0.30s; }
.word-reveal.is-visible .word:nth-child(7)  { transition-delay: 0.36s; }
.word-reveal.is-visible .word:nth-child(8)  { transition-delay: 0.42s; }
.word-reveal.is-visible .word:nth-child(9)  { transition-delay: 0.48s; }
.word-reveal.is-visible .word:nth-child(10) { transition-delay: 0.54s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
  body::before, body::after { display: none; }
  .hero h1 .line span { transform: none; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1; transform: none; }
  .word-reveal .word { opacity: 1; transform: none; }
}