/* ============================================================
   QuizCore Studio — portfolio
   Style matched to quizcore.es:
   light theme · Instrument Serif + Plus Jakarta Sans · blue #0040C1
   ============================================================ */

:root {
  --bg:         #ffffff;
  --bg-tint:    #f6f8fc;
  --ink:        #0d1117;
  --ink-soft:   #1f2937;
  --ink-mid:    #4b5563;
  --ink-dim:    #6b7280;
  --blue:       #0040c1;
  --blue-deep:  #002f91;
  --blue-tint:  rgba(0, 64, 193, .06);
  --blue-tint2: rgba(0, 64, 193, .10);
  --line:       #e6e8ee;
  --line-soft:  #eef1f6;
  --dark:       #0d1117;
  --dark-2:     #161b22;
  --radius:     18px;
  --maxw:       1180px;
  --ease:       cubic-bezier(.22,.61,.36,1);

  --font-serif: "Instrument Serif", Georgia, serif;
  --font-body:  "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono:  "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--blue); color: #fff; }
a { color: inherit; text-decoration: none; }

/* ---------- Type helpers ---------- */
.serif-accent {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--blue);
  letter-spacing: 0;
}
.serif-accent--light { color: #8fb0ff; }

/* ---------- Layout ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(64px, 10vw, 130px) clamp(20px, 5vw, 48px);
}
.section-head { margin-bottom: clamp(38px, 5vw, 64px); max-width: 760px; }
.section-kicker {
  font-family: var(--font-mono);
  font-size: .78rem; letter-spacing: .12em;
  color: var(--blue); text-transform: uppercase;
  margin-bottom: 18px; font-weight: 500;
}
.section-kicker--light { color: #8fb0ff; }
.section-title {
  font-size: clamp(2.1rem, 5.4vw, 3.7rem);
  line-height: 1.02; letter-spacing: -0.03em; font-weight: 700;
}
.section-title span { display: block; }
.section-title .serif-accent { display: block; font-weight: 400; letter-spacing: -0.01em; }
.section-title--light { color: #fff; }
.section-intro {
  margin-top: 22px; color: var(--ink-mid);
  font-size: 1.1rem; max-width: 580px;
}

/* ---------- Buttons (pill) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600;
  font-size: .98rem; letter-spacing: -0.01em;
  padding: 13px 24px; border-radius: 100px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .3s var(--ease), background .25s, color .25s, box-shadow .35s var(--ease), border-color .25s;
  white-space: nowrap;
}
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 24px -10px rgba(0,64,193,.5); }
.btn-primary:hover { transform: translateY(-2px); background: var(--blue-deep); box-shadow: 0 16px 34px -12px rgba(0,64,193,.6); }
.btn-soft { background: var(--blue-tint); color: var(--blue); }
.btn-soft:hover { background: var(--blue-tint2); transform: translateY(-2px); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-lg { padding: 16px 30px; font-size: 1.04rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px clamp(20px, 5vw, 48px);
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; object-fit: contain; display: block; }
.brand-name { font-weight: 800; font-size: 1.22rem; letter-spacing: -0.03em; }
.brand-studio { color: var(--blue); font-weight: 600; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: .95rem; font-weight: 500; color: var(--ink-mid); position: relative; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px; background: var(--blue); transition: width .3s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  display: flex; align-items: center; gap: 4px;
  background: none; border: 1px solid var(--line); color: var(--ink-dim);
  font-family: var(--font-mono); font-size: .8rem; font-weight: 500;
  padding: 7px 12px; border-radius: 100px; cursor: pointer; transition: border-color .2s;
}
.lang-toggle:hover { border-color: var(--ink-dim); }
.lang-opt.is-active { color: var(--blue); }
.lang-sep { color: var(--line); }

/* ---------- Hero ---------- */
.hero {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(56px, 9vw, 116px) clamp(20px, 5vw, 48px) clamp(34px, 5vw, 60px);
}
.hero::before {
  content: ""; position: absolute; inset: -10% -20% auto -20%; height: 70vh; z-index: -1;
  background:
    radial-gradient(45% 55% at 20% 8%, rgba(0,64,193,.08), transparent 70%),
    radial-gradient(40% 50% at 88% 0%, rgba(0,64,193,.06), transparent 72%);
}
/* Background logo video — full bleed across the hero */
.hero-bg-q {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 100vw; height: 100%; z-index: 0;
  opacity: .16; object-fit: cover;
  pointer-events: none; user-select: none;
}
.hero > *:not(.hero-bg-q) { position: relative; z-index: 1; }
@media (max-width: 680px) {
  .hero-bg-q { opacity: .1; }
}
.eyebrow {
  font-family: var(--font-mono); color: var(--blue);
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 28px; font-weight: 500;
}
.hero-title {
  font-size: clamp(3rem, 9vw, 6.6rem);
  line-height: .98; letter-spacing: -0.04em; font-weight: 700; max-width: 12ch;
}
.hero-title span { display: block; }
.hero-title .serif-accent { letter-spacing: -0.01em; max-width: none; }
.hero-sub {
  margin-top: 30px; max-width: 600px;
  color: var(--ink-mid); font-size: clamp(1.08rem, 2.2vw, 1.32rem); line-height: 1.55;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 64px);
  margin-top: clamp(48px, 7vw, 84px); padding-top: 36px; border-top: 1px solid var(--line);
}
.hero-stats dt { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; color: var(--blue); }
.hero-stats dd { color: var(--ink-dim); font-size: .92rem; margin-top: 6px; max-width: 200px; }

/* ---------- Ticker ---------- */
.ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-tint); overflow: hidden; padding: 16px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: inline-flex; align-items: center; gap: 26px; white-space: nowrap; animation: tick 40s linear infinite; }
.ticker-track span { font-weight: 600; font-size: 1.02rem; color: var(--ink-soft); letter-spacing: -0.02em; }
.ticker-track .dot { color: var(--blue); font-size: .6rem; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Services ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative; overflow: hidden;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(26px, 3vw, 38px);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: #c9d3ec; box-shadow: 0 22px 50px -28px rgba(13,17,23,.22); }
.card-icon { display: inline-flex; font-size: 1.4rem; color: var(--blue); background: var(--blue-tint); width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 14px; }
.card h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin: 18px 0 12px; font-weight: 700; letter-spacing: -0.02em; }
.card p { color: var(--ink-mid); font-size: .98rem; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; list-style: none; }
.card-tags li { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-dim); border: 1px solid var(--line); padding: 5px 10px; border-radius: 100px; }
.card-accent { background: linear-gradient(160deg, var(--blue-tint), var(--bg)); border-color: #cdd9f3; }
.card-accent .card-icon { background: var(--blue); color: #fff; }

/* ---------- Work section ---------- */
.section-work { background: var(--bg-tint); max-width: none; }
.section-work > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

.case {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 60px);
  align-items: center;
  background: var(--bg); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(28px, 4vw, 56px); margin-bottom: 20px;
}
.case-rev .case-body { order: 2; }
.case-tag { font-family: var(--font-mono); font-size: .74rem; color: var(--blue); letter-spacing: .08em; margin-bottom: 16px; font-weight: 500; }
.case-title { font-size: clamp(1.9rem, 4.2vw, 3.1rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.case-title span { color: var(--ink-dim); font-weight: 500; }
.case-lede { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.2rem, 2.4vw, 1.55rem); color: var(--ink-soft); margin: 14px 0 16px; }
.case-desc { color: var(--ink-mid); margin-bottom: 22px; max-width: 540px; }
.case-points { list-style: none; display: grid; gap: 11px; margin-bottom: 24px; }
.case-points li { position: relative; padding-left: 28px; color: var(--ink-soft); font-size: .96rem; }
.case-points li::before { content: "✓"; position: absolute; left: 0; top: -1px; color: var(--blue); font-weight: 800; }
.case-stack { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-bottom: 22px; }
.case-stack li { font-family: var(--font-mono); font-size: .73rem; color: var(--ink-soft); background: var(--bg-tint); border: 1px solid var(--line); padding: 6px 12px; border-radius: 100px; }
.case-link { display: inline-block; font-weight: 700; color: var(--blue); font-size: 1rem; transition: gap .2s; }
.case-link:hover { text-decoration: underline; }
.store-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.store-badge { display: inline-flex; align-items: center; gap: 7px; background: var(--dark); color: #fff; font-weight: 600; font-size: .9rem; padding: 11px 18px; border-radius: 12px; transition: transform .25s var(--ease), opacity .25s; }
.store-badge:hover { transform: translateY(-2px); opacity: .9; }

/* case media: browser mockup */
.case-media { display: flex; justify-content: center; align-items: center; min-height: 320px; }
.browser { width: 100%; max-width: 460px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(13,17,23,.4); margin: 0; }
.browser img, .case-shot img { display: block; width: 100%; height: auto; }
.case-phone { display: block; width: auto; max-width: 100%; max-height: 510px; filter: drop-shadow(0 32px 60px rgba(13,17,23,.34)); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--bg-tint); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d7dbe3; }
.browser-bar i:nth-child(1){ background:#ff5f57 } .browser-bar i:nth-child(2){ background:#febc2e } .browser-bar i:nth-child(3){ background:#28c840 }
.browser-url { margin-left: 10px; font-family: var(--font-mono); font-size: .74rem; color: var(--ink-dim); background: var(--bg); border: 1px solid var(--line); padding: 4px 12px; border-radius: 100px; }
.browser-screen { padding: 30px 26px 34px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; background: radial-gradient(80% 60% at 0% 0%, var(--blue-tint), transparent 70%); }
.bw-eyebrow { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; color: var(--blue); }
.bw-h1 { font-family: var(--font-serif); font-weight: 400; font-size: 2.4rem; line-height: .95; color: var(--ink); }
.bw-h1 em { color: var(--blue); }
.bw-btn { background: var(--blue); color: #fff; font-size: .82rem; font-weight: 600; padding: 9px 18px; border-radius: 100px; }
.bw-cards { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.bw-cards span { font-size: .7rem; color: var(--ink-mid); background: var(--bg); border: 1px solid var(--line); padding: 7px 11px; border-radius: 10px; }

/* phone mockup */
.phone { position: relative; width: 224px; height: 452px; background: #fff; border: 9px solid var(--dark); border-radius: 40px; padding: 16px 13px; box-shadow: 0 40px 80px -38px rgba(13,17,23,.5); }
.phone-screen { display: flex; flex-direction: column; gap: 11px; height: 100%; }
.phone-bar { display: flex; justify-content: center; }
.phone-bar span { width: 56px; height: 5px; border-radius: 100px; background: #e2e6ee; }
.phone-card { background: var(--bg-tint); border: 1px solid var(--line); border-radius: 14px; padding: 13px; display: flex; flex-direction: column; gap: 9px; }
.phone-card strong { font-size: .82rem; }
.phone-progress { height: 6px; background: #e2e6ee; border-radius: 100px; overflow: hidden; }
.phone-progress i { display: block; width: 30%; height: 100%; background: var(--blue); border-radius: 100px; }
.phone-opt { font-size: .78rem; color: var(--ink-soft); background: var(--bg); border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; }
.phone-opt--ok { color: #fff; background: var(--blue); border-color: var(--blue); font-weight: 700; }
.phone-score { margin-top: auto; text-align: center; font-family: var(--font-mono); font-size: .74rem; color: var(--blue); border: 1px dashed var(--blue); border-radius: 11px; padding: 9px; }

/* brand board mockup */
.brandboard {
  width: 100%; max-width: 380px;
  background: #0f1f27; color: #f4efe3;
  border-radius: 22px; padding: 30px 28px;
  box-shadow: 0 40px 80px -40px rgba(13,17,23,.5);
  display: flex; flex-direction: column; gap: 24px;
}
.bb-logo-tile { background: #fff; border-radius: 16px; padding: 22px 26px; display: flex; align-items: center; justify-content: center; }
.bb-logo-tile img { display: block; width: 100%; max-width: 250px; height: auto; }
.bb-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.bb-swatches span { aspect-ratio: 1; border-radius: 12px; background: var(--c); border: 1px solid rgba(255,255,255,.14); }
.bb-foot { display: flex; align-items: center; gap: 16px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; }
.bb-type { font-family: var(--font-serif); font-size: 2.4rem; line-height: .8; color: #ff6b35; }
.bb-mascot { font-family: var(--font-mono); font-size: .76rem; color: rgba(244,239,227,.7); letter-spacing: .04em; }

/* work grid (3 cards) */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.work-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .35s var(--ease), border-color .3s, box-shadow .35s var(--ease); display: flex; flex-direction: column; }
.work-card:hover { transform: translateY(-4px); border-color: #c9d3ec; box-shadow: 0 22px 50px -30px rgba(13,17,23,.22); }
.work-type { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; color: var(--blue); background: var(--blue-tint); padding: 5px 10px; border-radius: 100px; align-self: flex-start; }
.work-card h4 { font-size: 1.32rem; font-weight: 700; letter-spacing: -0.02em; margin: 16px 0 10px; }
.work-card h4 span { color: var(--ink-dim); font-weight: 500; font-size: .9em; }
.work-card p { color: var(--ink-mid); font-size: .92rem; flex-grow: 1; }
.work-card .card-tags { margin: 18px 0; }
.work-link { font-weight: 700; color: var(--blue); font-size: .92rem; }
.work-link:hover { text-decoration: underline; }

/* ---------- Gallery: brands & visuals ---------- */
.gallery-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink); margin: 6px 0 18px;
}
.gallery-subtitle:not(:first-of-type) { margin-top: 44px; }
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.logo-tile {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 16px; display: flex; flex-direction: column; align-items: center; gap: 14px;
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s var(--ease);
}
.logo-tile:hover { transform: translateY(-4px); border-color: #c9d3ec; box-shadow: 0 22px 50px -30px rgba(13,17,23,.2); }
.logo-tile img { width: 100%; max-width: 200px; height: 92px; object-fit: contain; }
.logo-tile figcaption { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-dim); letter-spacing: .03em; }

.art-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.art-tile {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, #eef2f9, var(--bg-tint));
  border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; padding: 18px;
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s var(--ease);
}
.art-tile:hover { transform: translateY(-4px); border-color: #c9d3ec; box-shadow: 0 22px 50px -30px rgba(13,17,23,.22); }
.art-tile img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 14px 24px rgba(13,17,23,.16)); transition: transform .4s var(--ease); }
.art-tile:hover img { transform: scale(1.05); }
.art-tile--wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.art-tile--scene { padding: 0; }
.art-tile--scene img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; filter: none; }

/* ---------- Stack (dark) ---------- */
.section-stack { background: var(--dark); color: #fff; }
.stack-inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 48px); }
.stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stack-grid span {
  font-family: var(--font-mono); font-size: .9rem; text-align: center;
  color: #c3cad6; border: 1px solid #232a34; border-radius: 12px;
  padding: 18px 10px; background: var(--dark-2);
  transition: color .25s, border-color .25s, transform .3s var(--ease);
}
.stack-grid span:hover { color: #fff; border-color: var(--blue); transform: translateY(-3px); }

/* ---------- Process ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.step-n { font-family: var(--font-serif); font-size: 2.8rem; color: var(--blue); display: block; margin-bottom: 10px; line-height: 1; }
.step h3 { font-size: 1.28rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.02em; }
.step p { color: var(--ink-mid); font-size: .93rem; }

/* ---------- CTA (dark) ---------- */
.cta-box {
  position: relative; overflow: hidden;
  background: var(--dark); color: #fff; border-radius: 28px;
  padding: clamp(44px, 7vw, 92px) clamp(24px, 5vw, 64px); text-align: center;
}
.cta-box::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 90% at 50% -10%, rgba(0,64,193,.45), transparent 60%); }
.cta-box > * { position: relative; }
.cta-kicker { font-family: var(--font-mono); color: #8fb0ff; font-size: .78rem; letter-spacing: .12em; margin-bottom: 18px; }
.cta-title { font-size: clamp(2rem, 5.5vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; max-width: 720px; margin: 0 auto; }
.cta-title span { display: block; }
.cta-sub { color: #aeb6c4; margin: 22px auto 34px; max-width: 540px; font-size: 1.06rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-box .btn-line { color: #fff; border-color: #2b323d; }
.cta-box .btn-line:hover { border-color: #fff; }
.cta-note { color: #717a89; font-family: var(--font-mono); font-size: .8rem; margin-top: 26px; }

/* ---------- Footer ---------- */
.footer {
  max-width: var(--maxw); margin: 0 auto;
  padding: 36px clamp(20px, 5vw, 48px) 60px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px; justify-content: space-between;
  border-top: 1px solid var(--line);
}
.footer-left { display: flex; flex-direction: column; gap: 6px; }
.footer-brandrow { display: flex; align-items: center; gap: 9px; }
.footer-logo { width: 28px; height: 28px; object-fit: contain; display: block; }
.footer-brand { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em; }
.footer-meta { color: var(--ink-dim); font-size: .88rem; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.footer-links a { color: var(--ink-mid); font-size: .9rem; font-weight: 500; transition: color .2s; }
.footer-links a:hover { color: var(--blue); }
.footer-top { color: var(--ink-dim) !important; font-family: var(--font-mono); font-size: .82rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-reveal-delay="1"] { transition-delay: .08s; }
.reveal[data-reveal-delay="2"] { transition-delay: .16s; }
.reveal[data-reveal-delay="3"] { transition-delay: .24s; }
.reveal[data-reveal-delay="4"] { transition-delay: .32s; }

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .art-grid { grid-template-columns: repeat(3, 1fr); }
  .case, .case-rev { grid-template-columns: 1fr; }
  .case-rev .case-body { order: 0; }
  .case-media { order: -1; min-height: 0; margin-bottom: 8px; }
  .work-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stack-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .cards { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .hero-stats dd { max-width: none; }
  .nav-actions .btn-sm { display: none; }
}
