:root {
  --page-bg: #08121c;
  --page-bg-soft: #0f1c2a;
  --surface: rgb(9, 19, 31, 0.72);
  --surface-strong: #101f31;
  --surface-bright: #15283f;
  --text: #f3f7fb;
  --muted: #9fb1c3;
  --line: rgb(255, 255, 255, 0.1);
  --warm: #ff8d5c;
  --gold: #ffd36a;
  --cool: #58d7d2;
  --lime: #b4ef77;
  --shadow: 0 30px 80px rgb(0, 0, 0, 0.35);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1200px;
}

body[data-theme="light"] {
  --page-bg: #f3efe7;
  --page-bg-soft: #f8f4ec;
  --surface: rgb(255, 255, 255, 0.82);
  --surface-strong: #fffdf9;
  --surface-bright: #fff7ed;
  --text: #1a2230;
  --muted: #5f6c7d;
  --line: rgb(26, 34, 48, 0.1);
  --warm: #d96f3e;
  --gold: #d9a62c;
  --cool: #238e9a;
  --lime: #7db339;
  --shadow: 0 24px 70px rgb(42, 34, 26, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.seo-page {
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgb(255, 141, 92, 0.22), transparent 25%),
    radial-gradient(circle at 88% 18%, rgb(88, 215, 210, 0.16), transparent 20%),
    radial-gradient(circle at 70% 78%, rgb(180, 239, 119, 0.14), transparent 18%),
    linear-gradient(180deg, #07111b 0%, #0b1824 52%, #08121c 100%);
}

body.seo-page[data-theme="light"] {
  background:
    radial-gradient(circle at 10% 10%, rgb(217, 111, 62, 0.16), transparent 25%),
    radial-gradient(circle at 88% 18%, rgb(35, 142, 154, 0.14), transparent 20%),
    radial-gradient(circle at 70% 78%, rgb(125, 179, 57, 0.12), transparent 18%),
    linear-gradient(180deg, #fffaf3 0%, #f6f1e8 52%, #f0ebe3 100%);
}

body.seo-page::before,
body.seo-page::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  filter: blur(70px);
}

body.seo-page::before {
  top: 120px;
  right: 4%;
  width: 220px;
  height: 220px;
  background: rgb(255, 211, 106, 0.14);
}

body.seo-page[data-theme="light"]::before {
  background: rgb(217, 166, 44, 0.16);
}

body.seo-page::after {
  bottom: 8%;
  left: 4%;
  width: 260px;
  height: 260px;
  background: rgb(88, 215, 210, 0.12);
}

body.seo-page[data-theme="light"]::after {
  background: rgb(35, 142, 154, 0.12);
}

a {
  color: inherit;
}

.seo-shell {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px;
}

.seo-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0 28px;
  position: relative;
}

.seo-brand {
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.seo-brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.seo-nav {
  flex: 1;
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
}

.seo-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 8px 14px;
  border-radius: 99px;
  border: 1px solid transparent;
  transition:
    color 200ms ease,
    background 200ms ease,
    border-color 200ms ease,
    transform 200ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 200ms ease;
  white-space: nowrap;
}

.seo-nav a:hover,
.seo-nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.seo-nav a[aria-current="page"] {
  color: var(--cool);
  background: rgba(88, 215, 210, 0.1);
  border-color: rgba(88, 215, 210, 0.3);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(88, 215, 210, 0.08);
}

body[data-theme="light"] .seo-nav a:hover,
body[data-theme="light"] .seo-nav a:focus-visible {
  background: rgba(26, 34, 48, 0.06);
}

body[data-theme="light"] .seo-nav a[aria-current="page"] {
  color: var(--cool);
  background: rgba(35, 142, 154, 0.1);
  border-color: rgba(35, 142, 154, 0.25);
  box-shadow: 0 4px 12px rgba(35, 142, 154, 0.06);
}

.seo-header-end {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Header CTA button ───────────────────────────────────── */
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--gold), var(--warm));
  color: #08121c;
  box-shadow: 0 4px 16px rgb(255, 141, 92, 0.22);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
  flex-shrink: 0;
}

.header-cta:hover,
.header-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgb(255, 141, 92, 0.32);
  outline: none;
}

@media (width <= 768px) {
  .header-cta {
    display: none;
  }
}

/* ── Theme toggle — icon only ────────────────────────────── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition:
    background 150ms ease,
    border-color 150ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: var(--surface-bright);
  outline: none;
}

.theme-toggle svg {
  pointer-events: none;
}

.icon-moon {
  display: block;
}
.icon-sun {
  display: none;
}

.theme-toggle[data-theme-state="dark"] .icon-moon {
  display: none;
}
.theme-toggle[data-theme-state="dark"] .icon-sun {
  display: block;
}

/* ── Hamburger toggle ────────────────────────────────────── */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 150ms ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: var(--surface-bright);
  outline: none;
}

.nav-bar {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentcolor;
  border-radius: 2px;
  transition:
    transform 200ms ease,
    opacity 200ms ease,
    width 200ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-bar:nth-child(2) {
  opacity: 0;
  width: 0;
}

.nav-toggle[aria-expanded="true"] .nav-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Mobile navigation ───────────────────────────────────── */
@media (width <= 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .seo-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 16px);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    z-index: 100;
    box-shadow: var(--shadow);
  }

  .seo-nav.is-open {
    display: flex;
  }

  .seo-nav a {
    padding: 11px 14px;
    font-size: 0.95rem;
    border-radius: 8px;
    white-space: normal;
  }
}

.seo-main {
  display: grid;
  gap: 28px;
}

.portfolio-main {
  gap: 20px;
}

.seo-panel,
.seo-strip article,
.seo-card,
.seo-price-card,
.process-card,
.seo-cta {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

body[data-theme="light"] .seo-panel,
body[data-theme="light"] .seo-strip article,
body[data-theme="light"] .seo-card,
body[data-theme="light"] .seo-price-card,
body[data-theme="light"] .process-card,
body[data-theme="light"] .seo-cta,
body[data-theme="light"] .metrics article,
body[data-theme="light"] .template-card,
body[data-theme="light"] .service-list article,
body[data-theme="light"] .price-card,
body[data-theme="light"] .contact-banner {
  backdrop-filter: blur(10px);
}

.metrics article,
.template-card,
.service-list article,
.price-card,
.contact-banner {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.seo-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}

.hero-copy-panel {
  padding: 42px;
  background:
    linear-gradient(145deg, rgb(18, 35, 54, 0.92), rgb(9, 19, 31, 0.88)),
    linear-gradient(120deg, rgb(255, 141, 92, 0.08), rgb(88, 215, 210, 0.08));
}

body[data-theme="light"] .hero-copy-panel {
  background:
    linear-gradient(145deg, rgb(255, 255, 255, 0.92), rgb(248, 244, 236, 0.88)),
    linear-gradient(120deg, rgb(217, 111, 62, 0.06), rgb(35, 142, 154, 0.06));
}

.hero-sidebar {
  padding: 28px;
  background: linear-gradient(180deg, rgb(17, 34, 53, 0.96), rgb(9, 19, 31, 0.92));
}

body[data-theme="light"] .hero-sidebar {
  background: linear-gradient(180deg, rgb(255, 247, 237, 0.98), rgb(247, 240, 230, 0.94));
}

.portfolio-hero .hero-copy-panel {
  min-height: 100%;
}

.hero-badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-badge-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgb(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
}

.eyebrow,
.panel-label {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.92;
  max-width: 9ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 0.98;
}

h3 {
  font-size: 1.45rem;
  line-height: 1.1;
}

p,
li,
span {
  line-height: 1.7;
}

p,
li {
  color: var(--muted);
}

.hero-text {
  max-width: 58ch;
  font-size: 1.05rem;
}

.seo-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #08121c;
  background: linear-gradient(135deg, var(--gold), var(--warm));
  box-shadow: 0 16px 30px rgb(255, 141, 92, 0.28);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgb(255, 255, 255, 0.04);
  color: var(--text);
}

body[data-theme="light"] .button-secondary {
  background: rgb(26, 34, 48, 0.03);
}

.check-list {
  margin: 0;
  padding-left: 20px;
}

.check-list li + li {
  margin-top: 10px;
}

.seo-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.seo-strip article {
  padding: 20px 22px;
}

.seo-strip span {
  display: block;
  margin-bottom: 8px;
  color: var(--cool);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 700;
}

.seo-strip strong {
  display: block;
  max-width: 24ch;
  font-size: 1.05rem;
}

.section {
  padding: 18px 0 8px;
}

.section-grid-layout,
.process-layout {
  display: grid;
  gap: 24px;
}

.section-heading {
  max-width: 760px;
}

.section-heading p {
  max-width: 66ch;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.metrics article {
  padding: 20px 22px;
}

.metrics strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1.35rem;
}

.template-grid,
.service-list,
.seo-card-grid,
.seo-pricing-grid,
.seo-process-grid,
.seo-performance-grid,
.process-grid {
  display: grid;
  gap: 20px;
}

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

.template-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
}

.template-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  opacity: 0.14;
  filter: blur(4px);
}

.accent-sun::after {
  background: var(--warm);
}
.accent-tide::after {
  background: var(--cool);
}
.accent-fern::after {
  background: var(--lime);
}

.card-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.template-card ul,
.service-list article ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.template-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: start;
}

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

.service-list article {
  padding: 24px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.price-card {
  padding: 24px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgb(18, 32, 49, 0.9), rgb(10, 21, 33, 0.92));
}

body[data-theme="light"] .price-card {
  background: linear-gradient(180deg, rgb(255, 255, 255, 0.92), rgb(245, 239, 230, 0.94));
}

.price-card p {
  margin: 0;
  color: var(--cool);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
}

body[data-theme="light"] .price-card p {
  color: var(--cool);
}

.price-card h3 {
  margin: 14px 0 10px;
  font-size: 2rem;
}

.price-card span {
  color: var(--muted);
}

.price-card.featured {
  background: linear-gradient(145deg, #ff8d5c 0%, #ffd36a 100%);
  color: #08121c;
}

.price-card.featured p,
.price-card.featured span {
  color: rgb(8, 18, 28, 0.76);
}

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

.process-grid article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgb(17, 33, 50, 0.88), rgb(10, 21, 33, 0.96));
  box-shadow: var(--shadow);
}

body[data-theme="light"] .process-grid article,
body[data-theme="light"] .process-card {
  background: linear-gradient(180deg, rgb(255, 255, 255, 0.92), rgb(245, 239, 230, 0.94));
}

.process-grid article span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgb(255, 211, 106, 0.18), rgb(88, 215, 210, 0.14));
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
}

.contact-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 34px;
  background: linear-gradient(135deg, rgb(255, 141, 92, 0.16), rgb(88, 215, 210, 0.14)), rgb(10, 21, 33, 0.9);
}

body[data-theme="light"] .contact-banner,
body[data-theme="light"] .seo-cta {
  background: linear-gradient(135deg, rgb(217, 111, 62, 0.12), rgb(35, 142, 154, 0.1)), rgb(255, 250, 243, 0.92);
}

.seo-card-grid,
.seo-pricing-grid,
.seo-process-grid {
  display: grid;
  gap: 20px;
}

.seo-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.seo-performance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.performance-card p {
  margin-top: 14px;
}

.seo-card {
  padding: 28px;
  overflow: hidden;
  position: relative;
}

.seo-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  opacity: 0.14;
  filter: blur(4px);
}

.spotlight-warm::after {
  background: var(--warm);
}
.spotlight-cool::after {
  background: var(--cool);
}
.spotlight-lime::after {
  background: var(--lime);
}

.seo-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.seo-card li + li {
  margin-top: 8px;
}

.seo-pricing-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.seo-price-card {
  padding: 24px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgb(18, 32, 49, 0.9), rgb(10, 21, 33, 0.92));
}

.seo-price-card p {
  margin: 0;
  color: var(--cool);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
}

.seo-price-card h3 {
  margin: 14px 0 10px;
  font-size: 2rem;
}

.seo-price-card span {
  color: var(--muted);
}

.seo-price-card-featured {
  background: linear-gradient(145deg, #ff8d5c 0%, #ffd36a 100%);
  color: #08121c;
}

.seo-price-card-featured p,
.seo-price-card-featured span {
  color: rgb(8, 18, 28, 0.76);
}

.pricing-note {
  margin: 18px 0 0;
  max-width: 70ch;
  color: var(--muted);
}

.seo-process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-card {
  padding: 26px;
  background: linear-gradient(180deg, rgb(17, 33, 50, 0.88), rgb(10, 21, 33, 0.96));
}

.process-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgb(255, 211, 106, 0.18), rgb(88, 215, 210, 0.14));
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
}

.seo-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 34px;
  background: linear-gradient(135deg, rgb(255, 141, 92, 0.16), rgb(88, 215, 210, 0.14)), rgb(10, 21, 33, 0.9);
}

.seo-cta-copy {
  max-width: 760px;
}

.seo-cta-copy p:last-child {
  margin-bottom: 0;
}

/* ── Inline contact form ───────────────────────────────────── */
.inline-contact-form {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 520px;
}

.inline-contact-form h3 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.inline-contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.inline-contact-form input,
.inline-contact-form textarea {
  background: var(--surface-bright);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.65rem 0.9rem;
  width: 100%;
  transition: border-color 180ms ease;
}

.inline-contact-form input:focus,
.inline-contact-form textarea:focus {
  outline: none;
  border-color: var(--cool);
}

.inline-contact-form textarea {
  min-height: 110px;
  resize: vertical;
}

.inline-contact-form button[type="submit"] {
  align-self: flex-start;
}

.inline-contact-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* contact section layout: copy left, form right */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (width <= 1040px) {
  .seo-hero,
  .metrics,
  .template-grid,
  .service-list,
  .pricing-grid,
  .split-section,
  .seo-card-grid,
  .seo-performance-grid,
  .seo-pricing-grid,
  .seo-process-grid,
  .seo-strip,
  .process-grid,
  .contact-split {
    grid-template-columns: 1fr;
  }

  .inline-contact-form {
    max-width: 100%;
  }
}

/* ── Contact form status messages ───────────────────────── */
.form-status {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  min-height: 1.25em;
}

.form-status--success {
  color: var(--lime);
}
.form-status--error {
  color: var(--warm);
}

@media (width <= 700px) {
  .seo-shell {
    padding: 18px;
  }

  .seo-header,
  .seo-header-group,
  .seo-cta,
  .contact-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy-panel,
  .hero-sidebar,
  .seo-cta {
    padding: 26px;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.6rem, 13vw, 4.2rem);
  }
}

/* ═══════════════════════════════════════════════════════════
   VISUAL REFRESH — added 2026
   ═══════════════════════════════════════════════════════════ */

/* ── Scroll-reveal ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ── Hero stat blocks (replace sidebar checklist) ─────────── */
.hero-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  height: 100%;
}
.hero-stat-block {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
}
.hero-stat-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgb(88, 215, 210, 0.14);
}
.hero-stat-num {
  font-family: Fraunces, Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--cool);
}
.hero-stat-num.warm {
  color: var(--warm);
}
.hero-stat-num.gold {
  color: var(--gold);
}
.hero-stat-num.lime {
  color: var(--lime);
}
.hero-stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Animated metrics strip ───────────────────────────────── */
.metrics-band {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}
.metrics-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgb(255, 141, 92, 0.06) 0%, rgb(88, 215, 210, 0.08) 100%);
  pointer-events: none;
}
.metrics-band article {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  position: relative;
}
.metrics-band article + article {
  border-left: 1px solid var(--line);
}
.metrics-band .metric-num {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}
.metrics-band .metric-suffix {
  color: var(--cool);
}
.metrics-band .metric-label {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

@media (width <= 700px) {
  .metrics-band {
    grid-template-columns: 1fr 1fr;
  }
  .metrics-band article + article {
    border-left: none;
  }
}

/* ── Service cards — numbered accent + pill tags ──────────── */
.service-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgb(255, 211, 106, 0.18), rgb(88, 215, 210, 0.16));
  border: 1px solid var(--line);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cool);
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.service-card {
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgb(88, 215, 210, 0.12);
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}
.service-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.2em 0.65em;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgb(88, 215, 210, 0.08);
  color: var(--cool);
}

/* ── Portfolio / Work preview cards ───────────────────────── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.work-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
  background: var(--surface-strong);
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgb(0, 0, 0, 0.3);
}
.work-card-visual {
  height: 160px;
  position: relative;
  overflow: hidden;
}
.work-card-overlay {
  position: absolute;
  inset: 0;
  background: rgb(8, 18, 28, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 220ms ease;
}
.work-card:hover .work-card-overlay {
  opacity: 1;
}
.work-card-overlay a {
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1.5px solid rgb(255, 255, 255, 0.6);
  padding: 0.45em 1.1em;
  border-radius: 99px;
  backdrop-filter: blur(4px);
  transition: background 180ms ease;
}
.work-card-overlay a:hover {
  background: rgb(255, 255, 255, 0.15);
}
.work-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.work-card-type {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.work-card-title {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.work-card-result {
  font-size: 0.82rem;
  color: var(--lime);
  font-weight: 600;
}

@media (width <= 860px) {
  .work-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (width <= 500px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Process — visual timeline ────────────────────────────── */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 28px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--warm), var(--cool));
  opacity: 0.35;
  z-index: 0;
}
.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1rem 1.5rem;
  position: relative;
  z-index: 1;
}
.timeline-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--surface-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.1rem;
  flex-shrink: 0;
  transition:
    background 250ms ease,
    border-color 250ms ease,
    color 250ms ease;
}
.timeline-step:nth-child(1) .timeline-circle {
  border-color: var(--warm);
  color: var(--warm);
}
.timeline-step:nth-child(2) .timeline-circle {
  border-color: var(--gold);
  color: var(--gold);
}
.timeline-step:nth-child(3) .timeline-circle {
  border-color: var(--cool);
  color: var(--cool);
}
.timeline-step:nth-child(4) .timeline-circle {
  border-color: var(--lime);
  color: var(--lime);
}
.timeline-step:hover .timeline-circle {
  background: var(--surface-bright);
}
.timeline-step h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.timeline-step p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

@media (width <= 860px) {
  .timeline {
    grid-template-columns: 1fr 1fr;
  }
  .timeline::before {
    display: none;
  }
}

@media (width <= 500px) {
  .timeline {
    grid-template-columns: 1fr;
  }
}

/* ── Testimonials — stars + avatar ───────────────────────── */
.testimonial-stars {
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}
.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #08121c;
  flex-shrink: 0;
}
.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-card blockquote {
  font-size: 0.92rem;
}

/* ── Industry card — hover fill effect ───────────────────── */
.industry-card {
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
  cursor: default;
}
.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgb(0, 0, 0, 0.22);
}
.industry-card:hover .industry-icon {
  transform: scale(1.18);
  display: inline-block;
  transition: transform 220ms ease;
}
.industry-card .industry-icon {
  transition: transform 220ms ease;
}
.industry-card.accent-warm:hover {
  background: rgb(255, 141, 92, 0.1);
}
.industry-card.accent-cool:hover {
  background: rgb(88, 215, 210, 0.08);
}
.industry-card.accent-gold:hover {
  background: rgb(255, 211, 106, 0.1);
}
.industry-card.accent-lime:hover {
  background: rgb(180, 239, 119, 0.09);
}

/* ── Full-width CTA band ──────────────────────────────────── */
.cta-band {
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  text-align: center;
  background:
    linear-gradient(135deg, rgb(255, 141, 92, 0.18) 0%, rgb(88, 215, 210, 0.16) 50%, rgb(255, 211, 106, 0.14) 100%),
    var(--surface-strong);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgb(88, 215, 210, 0.15), transparent 70%);
  top: -80px;
  right: -80px;
  pointer-events: none;
}
.cta-band h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 0.75rem;
}
.cta-band p {
  max-width: 52ch;
  margin: 0 auto 2rem;
  font-size: 1rem;
  color: var(--muted);
}
.cta-band .seo-actions {
  justify-content: center;
  margin-top: 0;
}

/* ── Hero subline as pill badge ───────────────────────────── */
.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgb(88, 215, 210, 0.1);
  border: 1px solid rgb(88, 215, 210, 0.25);
  color: var(--cool);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.3em 0.85em;
  border-radius: 99px;
  margin-bottom: 1.25rem;
}
.hero-badge-pill::before {
  content: "✓";
  font-weight: 800;
}
