/* ============================================================
   Sumit Kumar — Portfolio
   Light-default · emerald accent · dark toggle · Inter + JetBrains Mono
   Influence: airy, single restrained accent, thin headlines, pill components.
   ============================================================ */

/* ---------- Tokens (LIGHT is the default) ---------- */
:root {
  --bg:        #f8fafc;
  --bg-elev:   #ffffff;
  --bg-elev-2: #f1f5f9;
  --bg-code:   #0b1120;   /* terminal card stays dark for contrast */
  --border:    #e6ebf1;
  --border-2:  #cfd8e3;
  --text:      #020617;
  --text-dim:  #334155;
  --text-mut:  #64748b;
  --accent:    #059669;   /* emerald-600 */
  --accent-2:  #047857;   /* emerald-700 */
  --accent-ink:#ffffff;   /* text on accent */
  --accent-soft: rgba(5, 150, 105, .10);
  --accent-line: rgba(5, 150, 105, .28);
  --green:     #059669;
  --amber:     #d97706;
  --shadow:    0 14px 40px -18px rgba(2, 6, 23, .16);
  --shadow-sm: 0 4px 16px -8px rgba(2, 6, 23, .12);
  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1120px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Fira Code', Menlo, monospace;
}

/* Dark theme — explicit toggle, or OS-dark when the visitor hasn't chosen light */
:root[data-theme="dark"] {
  --bg:        #0a0e14;
  --bg-elev:   #10151f;
  --bg-elev-2: #161d2b;
  --bg-code:   #0b1120;
  --border:    #1e2635;
  --border-2:  #2a3446;
  --text:      #e6edf3;
  --text-dim:  #b9c4d4;
  --text-mut:  #97a3b6;
  --accent:    #10b981;   /* emerald-500 pops on dark */
  --accent-2:  #059669;
  --accent-ink:#04140d;
  --accent-soft: rgba(16, 185, 129, .12);
  --accent-line: rgba(16, 185, 129, .32);
  --green:     #34d399;
  --amber:     #fbbf24;
  --shadow:    0 10px 40px -12px rgba(0, 0, 0, .6);
  --shadow-sm: 0 4px 18px -8px rgba(0, 0, 0, .5);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #0a0e14;
    --bg-elev:   #10151f;
    --bg-elev-2: #161d2b;
    --bg-code:   #0b1120;
    --border:    #1e2635;
    --border-2:  #2a3446;
    --text:      #e6edf3;
    --text-dim:  #b9c4d4;
    --text-mut:  #97a3b6;
    --accent:    #10b981;
    --accent-2:  #059669;
    --accent-ink:#04140d;
    --accent-soft: rgba(16, 185, 129, .12);
    --accent-line: rgba(16, 185, 129, .32);
    --green:     #34d399;
    --amber:     #fbbf24;
    --shadow:    0 10px 40px -12px rgba(0, 0, 0, .6);
    --shadow-sm: 0 4px 18px -8px rgba(0, 0, 0, .5);
  }
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--text); }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1rem; color: var(--text-dim); }
strong { color: var(--text); font-weight: 600; }
code { font-family: var(--font-mono); font-size: .88em; color: var(--accent); background: var(--accent-soft); padding: 1px 5px; border-radius: 5px; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, .oss-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* background grid texture */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .25;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Utility ---------- */
.mono { font-family: var(--font-mono); }
.accent { color: var(--accent); }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.section { position: relative; z-index: 1; padding: 88px 0; }
.section-head { margin-bottom: 44px; }
.eyebrow {
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .04em;
  color: var(--accent); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.eyebrow::before { content: "//"; opacity: .6; }
.section h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.section-head p { max-width: 640px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-sans); font-size: .95rem; font-weight: 500;
  padding: 13px 24px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: all .2s ease; white-space: nowrap;
}
.btn i { font-size: .95em; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 22px -10px var(--accent); }
.btn-primary:hover { color: var(--accent-ink); background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 12px 28px -10px var(--accent); }
.btn-ghost { background: var(--bg-elev); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { font-family: var(--font-mono); font-weight: 700; font-size: 1rem; color: var(--text); letter-spacing: -.01em; }
.brand .accent { color: var(--accent); }
.brand .caret { color: var(--accent); animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--font-mono); font-size: .88rem; color: var(--text-dim);
  padding: 8px 12px; border-radius: 8px;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); background: var(--accent-soft); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-2); border-radius: 9px; background: var(--bg-elev);
  color: var(--text-dim); cursor: pointer; transition: all .18s ease;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent-line); }
/* Light default → offer the moon; dark → offer the sun */
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 1; padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.hero-status {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: .82rem;
  color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 22px;
}
.hero-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 60%, transparent);} 70%{ box-shadow: 0 0 0 8px transparent;} 100%{box-shadow:0 0 0 0 transparent;} }
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 4rem); font-weight: 300; letter-spacing: -.03em; margin-bottom: 10px; }
.hero h1 .grad { font-style: italic; font-weight: 400; color: var(--accent); }
.hero-role { font-family: var(--font-mono); font-size: clamp(.95rem, 2.2vw, 1.15rem); color: var(--accent); margin-bottom: 20px; }
.hero-lead { font-size: 1.06rem; max-width: 540px; }
.hero-lead strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.social-row { display: flex; gap: 8px; }
.social-row a {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-2); border-radius: 10px; color: var(--text-dim); background: var(--bg-elev);
  transition: all .18s ease;
}
.social-row a:hover { color: var(--accent); border-color: var(--accent-line); transform: translateY(-2px); }

/* terminal window */
.terminal {
  background: var(--bg-code); border: 1px solid var(--border-2); border-radius: 12px;
  box-shadow: var(--shadow); overflow: hidden; font-family: var(--font-mono);
}
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 12px 15px; background: rgba(255,255,255,.03); border-bottom: 1px solid var(--border); }
.tdot { width: 12px; height: 12px; border-radius: 50%; }
.tdot.r { background: #ff5f56; } .tdot.y { background: #ffbd2e; } .tdot.g { background: #27c93f; }
.terminal-title { margin-left: 8px; font-size: .78rem; color: #64748b; }
.terminal-body { padding: 20px 20px 24px; font-size: .88rem; line-height: 1.9; color: #cdd6e4; }
.terminal-body .cmd { color: #e6edf3; }
.terminal-body .prompt { color: var(--accent); }
.terminal-body .out { color: #8b98a9; }
.terminal-body .str { color: #34d399; }
.terminal-body .key { color: #fbbf24; }
.terminal-body .cursor { display: inline-block; width: 9px; height: 1.05em; background: var(--accent); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }

/* ---------- Scale ---------- */
.stats { position: relative; z-index: 1; }
.capability {
  margin: 0; padding: 30px 34px;
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: var(--radius); background: var(--bg-elev); box-shadow: var(--shadow);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem); line-height: 1.6; color: var(--text-dim);
}
.capability strong { color: var(--text); font-weight: 600; }

/* ---------- What I do ---------- */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pill-card {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; transition: all .2s ease; position: relative; overflow: hidden;
}
.pill-card::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.pill-card:hover { border-color: var(--border-2); transform: translateY(-4px); }
.pill-card:hover::after { transform: scaleX(1); }
.pill-icon {
  width: 46px; height: 46px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); font-size: 1.2rem; margin-bottom: 16px;
}
.pill-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.pill-card p { font-size: .92rem; margin: 0; color: var(--text-mut); }

/* ---------- Skills ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.skill-row {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 18px 20px; display: grid; grid-template-columns: 190px 1fr; gap: 16px; align-items: center;
}
.skill-row .cat { font-family: var(--font-mono); font-size: .82rem; color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--font-mono); font-size: .8rem; color: var(--text-dim);
  background: var(--bg-elev-2); border: 1px solid var(--border-2); padding: 5px 11px; border-radius: 7px;
}
.tag.exp { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }

/* ---------- Experience timeline ---------- */
.timeline { position: relative; margin-left: 8px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border-2); }
.tl-item { position: relative; padding: 0 0 34px 40px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.tl-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 4px; }
.tl-role { font-size: 1.15rem; font-weight: 700; }
.tl-date { font-family: var(--font-mono); font-size: .8rem; color: var(--accent); margin-left: auto; }
.tl-org { font-family: var(--font-mono); font-size: .86rem; color: var(--text-mut); margin-bottom: 12px; }
.tl-item ul { margin: 0; padding-left: 18px; }
.tl-item li { color: var(--text-dim); margin-bottom: 6px; font-size: .95rem; }
.tl-item li::marker { color: var(--accent); }

/* ---------- Projects ---------- */
.subhead { font-family: var(--font-mono); font-size: .9rem; color: var(--text-mut); margin: 6px 0 20px; display: flex; align-items: center; gap: 10px; }
.subhead::before { content: ""; width: 22px; height: 1px; background: var(--accent-line); }

/* Professional work — primary cards */
.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 40px; }
.proj-card {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.proj-card:hover { border-color: var(--border-2); transform: translateY(-4px); box-shadow: var(--shadow); }
.proj-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.proj-head h4 { margin: 0; font-size: 1.12rem; }
.proj-when { font-size: .76rem; color: var(--text-mut); white-space: nowrap; }
.proj-card p { font-size: .93rem; color: var(--text-mut); margin: 0 0 14px; }
.proj-metric {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-size: .82rem; color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--accent-line); padding: 6px 11px; border-radius: 8px; margin-bottom: 14px;
}
.proj-card .tags { margin-top: auto; }
.badge {
  font-family: var(--font-mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .05em;
  padding: 2px 7px; border-radius: 5px; white-space: nowrap; vertical-align: middle;
}
.badge.merged { color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.badge.npm { color: var(--amber); background: color-mix(in srgb, var(--amber) 12%, transparent); border: 1px solid color-mix(in srgb, var(--amber) 30%, transparent); }

/* Open source — compact strip */
.oss-strip { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.oss-row {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 16px;
  padding: 16px 20px; background: var(--bg-elev); border-bottom: 1px solid var(--border);
  color: var(--text); transition: background .18s ease;
}
.oss-row:last-child { border-bottom: 0; }
.oss-row:hover { background: var(--bg-elev-2); }
.oss-row:hover .oss-go { color: var(--accent); transform: translateX(2px); }
.oss-ico { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
.oss-body { min-width: 0; }
.oss-name { display: block; font-weight: 600; font-size: .98rem; }
.oss-name .badge { margin-left: 6px; }
.oss-desc { display: block; font-size: .86rem; color: var(--text-mut); margin-top: 2px; }
.oss-lang { font-size: .76rem; color: var(--text-dim); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.oss-lang .swatch { width: 9px; height: 9px; border-radius: 50%; }
.oss-go { color: var(--text-mut); transition: color .18s ease, transform .18s ease; }

/* About layout */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.fact-list { list-style: none; padding: 0; margin: 0; }
.fact-list li { display: flex; align-items: center; gap: 13px; padding: 11px 0; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: .92rem; color: var(--text-dim); }
.fact-list li i { width: 20px; color: var(--accent); }

/* Résumé quick links */
.resume-links { margin-top: 20px; font-size: .88rem; color: var(--text-mut); display: flex; align-items: center; gap: 8px; }
.resume-links i { color: var(--accent); }

/* ---------- Education / honors ---------- */
.edu-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; }
.panel { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.panel h3 { font-family: var(--font-mono); font-size: .92rem; color: var(--accent); margin-bottom: 16px; }
.edu-item .deg { font-weight: 600; }
.edu-item .school { color: var(--text-mut); font-size: .92rem; }
.edu-item .yr { font-family: var(--font-mono); font-size: .8rem; color: var(--text-mut); }
.honor { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.honor:last-child { border-bottom: 0; }
.honor i { color: var(--amber); margin-top: 3px; }
.honor .h-t { font-weight: 600; font-size: .95rem; }
.honor .h-s { font-size: .86rem; color: var(--text-mut); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-copy h3 { font-size: 1.5rem; }
.contact-list { list-style: none; padding: 0; margin: 22px 0 0; }
.contact-list li { display: flex; align-items: center; gap: 13px; padding: 11px 0; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: .92rem; }
.contact-list li i { width: 20px; color: var(--accent); }
.contact-list li a { color: var(--text-dim); }
.contact-list li a:hover { color: var(--accent); }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-family: var(--font-mono); font-size: .82rem; color: var(--text-dim); margin-bottom: 7px; }
.form-field label .req { color: var(--accent); }
.form-field input, .form-field textarea {
  width: 100%; padding: 12px 14px; background: var(--bg-elev); color: var(--text);
  border: 1px solid var(--border-2); border-radius: 10px; font-family: var(--font-sans); font-size: .95rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .82rem; color: var(--text-mut); margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--border); padding: 40px 0; text-align: center; }
.site-footer .brand { display: inline-block; margin-bottom: 10px; }
.site-footer p { font-size: .9rem; color: var(--text-mut); margin: 0 0 14px; }
.site-footer .foot-social { display: flex; justify-content: center; gap: 8px; margin-bottom: 18px; }
.site-footer .copy { font-family: var(--font-mono); font-size: .8rem; color: var(--text-mut); }

/* ---------- Scroll-top ---------- */
#scrolltop {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease; transform: translateY(10px);
}
#scrolltop.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
#scrolltop a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-ink); border-radius: 11px; box-shadow: var(--shadow); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .terminal { max-width: 520px; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 20px 10px; }
}
@media (max-width: 720px) {
  .nav-links { position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-elev); border-bottom: 1px solid var(--border); padding: 12px 16px 18px;
    transform: translateY(-120%); transition: transform .25s ease; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px; }
  .nav-toggle { display: inline-flex; }
  .proj-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .tl-date { margin-left: 0; }
  .oss-row { grid-template-columns: auto 1fr auto; }
  .oss-row .oss-lang { display: none; }
}
@media (max-width: 480px) {
  .cards-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .skill-row { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- Scroll reveal (progressive enhancement) ----------
   Content is fully visible by default. Only when JS confirms support and the
   visitor allows motion does <html> get .reveal-on, which arms the animation. */
html.reveal-on [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
  will-change: opacity, transform;
}
html.reveal-on [data-reveal].in { opacity: 1; transform: none; }

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