/* =========================================================
   Eugine Weks — Portfolio
   Plain CSS design system. Dark mode is the default theme.
   Accent palette: Dodger Blue #1E90FF, Deep Sky Blue #00BFFF,
   Light Blue #87CEFA.
   ========================================================= */

:root {
  --dodger: #1e90ff;
  --sky: #00bfff;
  --light-blue: #87cefa;

  --bg: #0b1220;
  --bg-2: #0f1a2e;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-solid: #111c30;
  --text: #eaf2ff;
  --muted: #9bb0cd;
  --border: rgba(255, 255, 255, 0.09);
  --glass: rgba(255, 255, 255, 0.055);

  --gradient: linear-gradient(120deg, var(--dodger), var(--sky) 55%, var(--light-blue));
  --shadow: 0 18px 45px -22px rgba(3, 8, 20, 0.85);
  --shadow-glow: 0 24px 70px -28px rgba(0, 191, 255, 0.45);

  --radius: 18px;
  --radius-lg: 26px;
  --container: 1180px;
  --nav-h: 72px;

  --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html[data-theme="light"] {
  --bg: #f7f9fc;
  --bg-2: #ffffff;
  --surface: rgba(15, 26, 46, 0.03);
  --surface-solid: #ffffff;
  --text: #10203a;
  --muted: #55677f;
  --border: rgba(16, 32, 58, 0.1);
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 45px -26px rgba(30, 60, 110, 0.28);
  --shadow-glow: 0 24px 60px -30px rgba(0, 140, 210, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  padding: 0;
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(0, 191, 255, 0.32);
}

/* ---------- Layout helpers ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding-block: 72px;
  position: relative;
}

@media (min-width: 768px) {
  .section {
    padding-block: 104px;
  }
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--sky);
  color: #04101f;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  margin-top: 10px;
}

.section-head p {
  color: var(--muted);
  margin-top: 14px;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background-image: var(--gradient);
  color: #041226;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 60px -24px rgba(0, 191, 255, 0.6);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--sky);
  color: var(--sky);
}

.btn-block {
  width: 100%;
}

/* ---------- Cards / glass ---------- */

.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  padding: 28px;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 191, 255, 0.45);
  box-shadow: var(--shadow-glow);
}

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(0, 191, 255, 0.14);
  color: var(--sky);
  border: 1px solid rgba(0, 191, 255, 0.28);
  margin-bottom: 18px;
}

.icon-badge svg {
  width: 24px;
  height: 24px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(0, 191, 255, 0.12);
  color: var(--light-blue);
  border: 1px solid rgba(0, 191, 255, 0.22);
}

html[data-theme="light"] .chip {
  color: #0b6ea8;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Decorative glow ---------- */

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.glow-a {
  width: 380px;
  height: 380px;
  background: rgba(30, 144, 255, 0.5);
  top: -120px;
  left: -100px;
}

.glow-b {
  width: 320px;
  height: 320px;
  background: rgba(0, 191, 255, 0.4);
  right: -110px;
  bottom: -120px;
}

html[data-theme="light"] .glow {
  opacity: 0.28;
}

/* ---------- Navigation ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
}

.site-nav.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px -24px rgba(0, 0, 0, 0.8);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background-image: var(--gradient);
  color: #04121f;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: var(--shadow-glow);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  position: relative;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--muted);
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-links a[aria-current="page"] {
  color: var(--sky);
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background-image: var(--gradient);
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.icon-btn:hover {
  color: var(--sky);
  border-color: rgba(0, 191, 255, 0.4);
  transform: translateY(-2px);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.nav-toggle {
  display: grid;
}

.theme-icon-light {
  display: none;
}

html[data-theme="light"] .theme-icon-light {
  display: block;
}

html[data-theme="light"] .theme-icon-dark {
  display: none;
}

.mobile-menu {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  border-top: 1px solid transparent;
}

.mobile-menu.is-open {
  max-height: 420px;
  border-top-color: var(--border);
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0 22px;
}

.mobile-menu a {
  display: block;
  padding: 13px 16px;
  border-radius: 14px;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  transform: translateY(-8px);
  opacity: 0;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.mobile-menu.is-open a {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu a:hover,
.mobile-menu a[aria-current="page"] {
  background: var(--surface);
  color: var(--sky);
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .mobile-menu {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 56px 72px;
  min-height: min(880px, calc(100svh - var(--nav-h)));
  display: flex;
  align-items: center;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 44px;
  align-items: center;
}

.hero-copy {
  text-align: center;
  order: 2;
}

.hero-visual {
  order: 1;
  display: grid;
  place-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 10vw, 4.4rem);
  margin-top: 10px;
  text-transform: uppercase;
}

.hero-role {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600;
  color: var(--light-blue);
  min-height: 42px;
}

html[data-theme="light"] .hero-role {
  color: #0b6ea8;
}

.typed-caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--sky);
  margin-left: 2px;
  animation: caret 1s steps(1) infinite;
  vertical-align: -0.15em;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

.hero p.hero-intro {
  color: var(--muted);
  font-size: clamp(1rem, 3.6vw, 1.2rem);
  margin-top: 22px;
  max-width: 34rem;
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  transition:
    transform 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.social-link:hover {
  transform: translateY(-4px);
  color: var(--sky);
  border-color: rgba(0, 191, 255, 0.45);
  box-shadow: var(--shadow-glow);
}

.portrait-wrap {
  position: relative;
  width: min(78vw, 380px);
  aspect-ratio: 1;
}

.portrait-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--dodger), var(--sky), var(--light-blue), var(--dodger));
  animation: spin 14s linear infinite;
  opacity: 0.85;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.portrait-blob {
  position: absolute;
  inset: -34px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 191, 255, 0.45), transparent 68%);
  filter: blur(26px);
}

.portrait {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--bg);
  background: var(--surface-solid);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-badge {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow);
}

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 46px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-cue svg {
  width: 20px;
  height: 20px;
  animation: bob 1.8s ease-in-out infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(7px);
    opacity: 1;
  }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }
  .hero-copy {
    order: 1;
    text-align: left;
  }
  .hero-visual {
    order: 2;
  }
  .hero p.hero-intro {
    margin-inline: 0;
  }
  .hero-actions {
    flex-direction: row;
  }
  .socials {
    justify-content: flex-start;
  }
  .scroll-cue {
    align-items: flex-start;
  }
  .portrait-wrap {
    width: min(38vw, 420px);
  }
}

/* ---------- Grids ---------- */

.grid {
  display: grid;
  gap: 22px;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.grid-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 700px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Stats / counters ---------- */

.stat {
  text-align: center;
  padding: 24px 14px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 6vw, 2.8rem);
  font-weight: 800;
}

.stat-label {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 6px;
}

/* ---------- Skill bars ---------- */

.meter {
  height: 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-top: 18px;
}

.meter span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background-image: var(--gradient);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.meter-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 10px;
}

/* ---------- Timeline ---------- */

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, var(--sky), rgba(0, 191, 255, 0.05));
}

.timeline-item {
  position: relative;
  padding-bottom: 30px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 26px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-image: var(--gradient);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 4px rgba(0, 191, 255, 0.16);
}

.timeline-item .card {
  padding: 24px;
}

.timeline-year {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--sky);
  font-size: 0.9rem;
}

.timeline-item h3 {
  font-size: 1.15rem;
  margin-top: 6px;
}

.timeline-item p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 0.95rem;
}

.duties {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.duties li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

.duties li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-image: var(--gradient);
}

/* ---------- Projects ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.filter-btn:hover {
  transform: translateY(-2px);
  color: var(--text);
}

.filter-btn.is-active {
  background-image: var(--gradient);
  color: #04121f;
  border-color: transparent;
}

.project-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-media img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  background: linear-gradient(to top, rgba(4, 12, 26, 0.88), rgba(4, 12, 26, 0) 65%);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.project-card:hover .project-overlay,
.project-card:focus-within .project-overlay {
  opacity: 1;
  transform: translateY(0);
}

.project-overlay .btn {
  padding: 10px 18px;
  font-size: 0.85rem;
}

.project-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.project-body h3 {
  font-size: 1.15rem;
}

.project-body p {
  color: var(--muted);
  font-size: 0.94rem;
}

.project-cat {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
  font-weight: 700;
}

.project-card.is-hidden {
  display: none;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  gap: 26px;
}

@media (min-width: 950px) {
  .contact-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(0, 191, 255, 0.14);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 14px;
  min-height: 1.4em;
}

.form-note.is-success {
  color: var(--sky);
}

.info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.info-row:last-child {
  border-bottom: none;
}

.info-row .icon-badge {
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 13px;
  flex-shrink: 0;
}

.info-row a:hover {
  color: var(--sky);
}

.info-row strong {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
  aspect-ratio: 16 / 9;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: saturate(0.9);
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 44px 28px;
  text-align: center;
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.cta-band h2 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  position: relative;
  z-index: 1;
}

.cta-band p {
  color: var(--muted);
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

.cta-band .btn {
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-block: 26px;
  background: color-mix(in srgb, var(--bg-2) 60%, transparent);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--sky);
}

.footer-role {
  font-size: 0.85rem;
  color: var(--muted);
}

.powered {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: right;
}

.powered-text {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.powered-text b {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.92rem;
}

.powered img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px;
  flex-shrink: 0;
}

/* ---------- Reveal animations ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal="zoom"] {
  transform: scale(0.94);
}

[data-reveal="left"] {
  transform: translateX(-32px);
}

[data-reveal="right"] {
  transform: translateX(32px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.page-enter {
  animation: pageIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

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