:root {
  --bg: #f2f6f4;
  --bg-deep: #e3ece8;
  --bg-spot: #d7ebe4;
  --ink: #0b1411;
  --ink-soft: #2a3833;
  --muted: #53635d;
  --line: rgba(11, 20, 17, 0.11);
  --line-strong: rgba(11, 20, 17, 0.18);
  --accent: #00856f;
  --accent-bright: #00a58a;
  --accent-deep: #006554;
  --accent-soft: rgba(0, 133, 111, 0.12);
  --signal: #1a5f8a;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-solid: #ffffff;
  --header-bg: rgba(242, 246, 244, 0.78);
  --header-bg-scrolled: rgba(242, 246, 244, 0.92);
  --shadow-soft: 0 10px 30px rgba(11, 20, 17, 0.06);
  --focus-ring: 0 0 0 3px rgba(0, 133, 111, 0.35);
  --radius-sm: 0.55rem;
  --radius-md: 0.85rem;
  --radius-pill: 999px;
  --max: 68rem;
  --max-wide: 88rem;
  --font-display: "Syne", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  background:
    radial-gradient(1100px 560px at 6% -10%, rgba(0, 165, 138, 0.32), transparent 58%),
    radial-gradient(920px 500px at 98% 2%, rgba(26, 95, 138, 0.2), transparent 54%),
    radial-gradient(720px 440px at 72% 38%, rgba(0, 133, 111, 0.1), transparent 62%),
    linear-gradient(168deg, #f6faf8 0%, var(--bg) 38%, var(--bg-deep) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  z-index: 0;
}

::selection {
  background: rgba(0, 133, 111, 0.22);
  color: var(--ink);
}

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--signal);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.btn:focus-visible,
.nav a:focus-visible,
.logo:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 0.25rem;
}

.btn:focus-visible,
.nav .cta:focus-visible {
  border-radius: var(--radius-pill);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 100;
  padding: 0.55rem 0.9rem;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0.75rem;
  color: #fff;
  box-shadow: var(--focus-ring);
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.wrap-wide {
  width: min(100% - 2.5rem, var(--max-wide));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: var(--header-bg-scrolled);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(11, 20, 17, 0.05);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  transition: padding 0.25s ease;
}

.site-header.is-scrolled .wrap {
  padding: 0.65rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.logo:hover {
  color: var(--ink);
  opacity: 0.88;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
}

.nav a {
  position: relative;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.15rem 0;
  transition: color 0.18s ease;
}

.nav a:not(.cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.15rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease-out);
}

.nav a:not(.cta):hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a:not(.cta):hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav .cta {
  color: #fff;
  background: var(--accent-deep);
  padding: 0.48rem 0.95rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.nav .cta:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 101, 84, 0.22);
}

.nav .cta::after {
  display: none;
}

.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  min-height: min(74vh, 44rem);
  display: grid;
  align-content: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 6% auto auto -6%;
  width: min(46vw, 24rem);
  height: min(46vw, 24rem);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 165, 138, 0.28), rgba(26, 95, 138, 0.08) 55%, transparent 72%);
  pointer-events: none;
  z-index: -1;
  animation: pulse-soft 7s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  right: -4%;
  top: 28%;
  width: min(38vw, 18rem);
  height: min(38vw, 18rem);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 95, 138, 0.16), transparent 70%);
  pointer-events: none;
  z-index: -1;
  animation: pulse-soft 9s ease-in-out 1.2s infinite;
}

.hero-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.35rem;
  animation: rise 0.9s var(--ease-out) both;
  font-family: var(--font-body);
  font-size: clamp(1.4rem, 2.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink);
  font-stretch: normal;
  transform: none;
}

.hero h1 {
  margin: 0;
  max-width: 26ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  animation: rise 0.9s var(--ease-out) 0.08s both;
}

.hero p {
  margin: 1.1rem 0 0;
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  animation: rise 0.9s var(--ease-out) 0.16s both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0.34rem 0.8rem;
  width: fit-content;
  border: 1px solid rgba(0, 133, 111, 0.3);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.6);
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  animation: rise 0.9s var(--ease-out) 0.04s both;
}

.hero-badge::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  animation: rise 0.9s var(--ease-out) 0.24s both;
}

.hero-note {
  margin: 0.9rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
  animation: rise 0.9s var(--ease-out) 0.3s both;
}

.hero-note a {
  font-weight: 700;
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(0, 101, 84, 0.28);
}

.hero-note a:hover {
  color: var(--signal);
  border-bottom-color: rgba(26, 95, 138, 0.45);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1px;
  margin: 2.5rem 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--line);
  overflow: hidden;
  animation: rise 0.9s var(--ease-out) 0.36s both;
}

.hero-stats > div {
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.62);
  transition: background 0.2s ease;
}

.hero-stats > div:hover {
  background: rgba(255, 255, 255, 0.9);
}

.hero-stats dt {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-stats dd {
  margin: 0.3rem 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease-out),
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent-deep);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.btn-primary:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 101, 84, 0.24);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.75);
}

.section {
  padding: clamp(2.9rem, 6.5vw, 4.75rem) 0;
  border-top: 1px solid var(--line);
}

.section.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

.section.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 18ch;
}

.section .lead {
  margin: 0.85rem 0 0;
  max-width: 40rem;
  color: var(--ink-soft);
}

.section-note {
  margin: 1rem 0 0;
  max-width: 42rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.feature-points {
  margin: 1rem 0 0;
  padding: 0 0 0 1.1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.feature-points li {
  margin: 0.35rem 0;
}

.feature-points li::marker {
  color: var(--accent-deep);
}

.section-portfolio h2 {
  max-width: 28ch;
}

.section-portfolio .lead,
.section-portfolio .section-note {
  max-width: 52rem;
}

.work-grid {
  display: grid;
  gap: 1px;
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--line);
  width: 100%;
}

@media (min-width: 720px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1280px) {
  .work-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.work-card {
  margin: 0;
  padding: 1.5rem 1.6rem;
  min-height: 100%;
  background: var(--panel-solid);
  transition: background 0.2s ease;
  display: flex;
  flex-direction: column;
}

.work-card:hover {
  background: linear-gradient(145deg, #fff, var(--bg-spot));
}

.work-meta {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.work-card h3 {
  margin: 0.35rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.28rem;
  letter-spacing: -0.02em;
}

.work-card p {
  margin: 0;
  flex: 1;
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.55;
}

.work-card a {
  display: inline-block;
  margin-top: auto;
  padding-top: 0.85rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(0, 101, 84, 0.28);
}

.work-card a:hover {
  color: var(--signal);
  border-bottom-color: rgba(26, 95, 138, 0.45);
}

.service-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.service-list li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  transition: background 0.2s ease;
}

.service-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.service-list li:hover {
  background: linear-gradient(90deg, var(--accent-soft), transparent 70%);
}

.service-list .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--signal);
  transition: color 0.2s ease, transform 0.2s ease;
}

.service-list li:hover .num {
  color: var(--accent);
  transform: translateX(2px);
}

.service-list h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-family: var(--font-display);
}

.service-list p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.feature-band {
  margin-top: 2rem;
  padding: clamp(1.5rem, 3vw, 2.15rem);
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(215, 235, 228, 0.45));
  border-radius: 1.25rem;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 800px) {
  .feature-band {
    grid-template-columns: 1.3fr 1fr;
    align-items: end;
  }
}

.feature-band h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.feature-band p {
  margin: 0;
  color: var(--ink-soft);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.metrics div {
  padding: 0.9rem 0.75rem;
  border-top: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.metrics div:hover {
  border-top-color: var(--signal);
  background: rgba(255, 255, 255, 0.85);
}

.metrics strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.metrics span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.points {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.points li {
  padding-left: 1.15rem;
  position: relative;
  color: var(--ink-soft);
}

.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.contact-grid {
  margin-top: 1.75rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.contact-meta {
  color: var(--ink-soft);
}

.contact-meta a {
  font-weight: 700;
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(0, 101, 84, 0.28);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.contact-meta a:hover {
  color: var(--signal);
  border-bottom-color: rgba(26, 95, 138, 0.45);
}

form {
  display: grid;
  gap: 0.9rem;
  padding: 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  box-shadow: var(--shadow-soft);
}

label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--ink-soft);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--panel-solid);
  border-radius: var(--radius-sm);
  padding: 0.78rem 0.9rem;
  font: inherit;
  color: var(--ink);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

input::placeholder,
textarea::placeholder {
  color: #7a8a84;
}

input:hover,
textarea:hover,
select:hover {
  border-color: rgba(0, 133, 111, 0.35);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
  background: #fff;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.contact-note {
  font-size: 0.88rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  background: linear-gradient(180deg, transparent, rgba(215, 235, 228, 0.35));
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 650;
}

.site-footer a:hover {
  color: var(--accent-deep);
}

/* Portfolio */
.page-hero {
  padding: clamp(2.5rem, 7vw, 4rem) 0 1.5rem;
}

.page-hero h1 {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.page-hero p,
.page-hero .hero-note {
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
}

.project {
  padding: 1.7rem 0;
  border-top: 1px solid var(--line);
  transition: background 0.2s ease;
}

.project:last-of-type {
  border-bottom: 1px solid var(--line);
}

.project:hover {
  background: linear-gradient(90deg, var(--accent-soft), transparent 65%);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-meta span:first-child {
  color: var(--accent-deep);
}

.project h2 {
  margin: 0;
  max-width: none;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.project p {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
}

.project-facts {
  margin: 1.1rem 0 0;
  display: grid;
  gap: 0.55rem;
}

.project-facts > div {
  display: grid;
  gap: 0.15rem 1rem;
}

@media (min-width: 720px) {
  .project-facts > div {
    grid-template-columns: 9.5rem 1fr;
  }
}

.project-facts dt {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  padding-top: 0.15rem;
}

.project-facts dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.tags span {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.28rem 0.65rem;
  background: rgba(255, 255, 255, 0.65);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.project:hover .tags span {
  border-color: rgba(0, 133, 111, 0.28);
}

.project-links {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  font-weight: 700;
}

.project-links a {
  text-decoration: none;
  color: var(--accent-deep);
  border-bottom: 1.5px solid rgba(0, 101, 84, 0.28);
}

.project-links a:hover {
  color: var(--signal);
  border-bottom-color: rgba(26, 95, 138, 0.45);
}

.project-list {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.project-list li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.project-list strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
}

.legacy-list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.legacy-list li {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  transition: background 0.2s ease;
}

.legacy-list li:hover {
  background: linear-gradient(90deg, var(--accent-soft), transparent 70%);
}

.legacy-list strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  margin-bottom: 0.45rem;
}

.legacy-list p {
  margin: 0 0 0.75rem;
}

.legacy-list p:last-child {
  margin-bottom: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-soft {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

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

@media (max-width: 640px) {
  .service-list li {
    grid-template-columns: 2.5rem 1fr;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .nav {
    gap: 0.65rem 0.95rem;
  }
  form {
    padding: 1rem;
  }
}
