/* ==========================================================================
   Ponders — site styles
   Light, editorial look: warm ivory, deep ink, and pastel tints of the logo's
   three colors — sage (teal), peach (amber) and blush (crimson).
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin-variable.woff2") format("woff2");
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: light;

  --bg: #f8f5ef;
  --bg-alt: #f1ece3;
  --surface: #fffdf9;
  --ink: #1d2321;
  --ink-soft: #4a524f;
  --muted: #6b716e;
  --line: #e4ddd1;
  --line-strong: #d2c9ba;

  /* Pastel tints of the logo colors, a mid tone for shapes, and a deep tone for text */
  --sage: #dce9e1;
  --sage-mid: #b3d0c2;
  --sage-ink: #2e6656;
  --peach: #f7e3cf;
  --peach-mid: #edc6a1;
  --peach-ink: #94571f;
  --blush: #f3dde0;
  --blush-mid: #e5bcc3;
  --blush-ink: #8a3445;

  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-lg: 32px;
  --radius: 24px;
  --radius-sm: 14px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 1px 2px rgba(29, 35, 33, 0.04), 0 12px 32px -16px rgba(29, 35, 33, 0.14);
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

h1 em,
h2 em {
  font-style: italic;
  color: var(--sage-ink);
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--sage-mid);
  color: var(--ink);
}

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--ink);
  color: var(--surface);
  font-weight: 500;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Type helpers ---------- */

.display {
  font-size: clamp(3rem, 1.5rem + 5.2vw, 5.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.h2 {
  font-size: clamp(2.4rem, 1.6rem + 2.8vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
}

.lead {
  max-width: 36rem;
  font-size: clamp(1.075rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Small rotated square: the logo's motif */
.eyebrow::before,
.diamond {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--d, var(--peach-mid));
}

.diamond {
  display: inline-block;
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.btn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.25s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn:focus-visible {
  border-radius: 999px;
}

.btn-primary {
  background: var(--ink);
  color: var(--surface);
}

.btn-primary:hover {
  background: #34403c;
}

.btn-secondary {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--ink-soft);
  background: var(--surface);
}

.btn-sm {
  min-height: 42px;
  padding: 0.6rem 1.15rem;
  font-size: 0.92rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.2s;
}

.text-link:hover {
  border-color: var(--ink);
}

.text-link svg {
  width: 15px;
  height: 15px;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.3s,
    border-color 0.3s;
}

.site-header.is-scrolled,
.nav-open .site-header {
  background: rgba(248, 245, 239, 0.9);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
}

.brand img {
  width: 46px;
  height: auto;
}

.brand-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  line-height: 1;
  letter-spacing: -0.01em;
}

.brand-tag {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-menu a:not(.btn) {
  display: inline-flex;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition:
    color 0.2s,
    background-color 0.2s;
}

.nav-menu a:not(.btn):hover {
  color: var(--ink);
  background: rgba(29, 35, 33, 0.05);
}

.nav-menu a[aria-current="page"] {
  color: var(--ink);
  background: rgba(29, 35, 33, 0.07);
}

.nav-cta {
  margin-left: 0.75rem;
}

.nav-toggle {
  display: none;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }

  .nav-toggle-lines {
    position: relative;
    width: 18px;
    height: 12px;
  }

  .nav-toggle-lines span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.6px;
    border-radius: 2px;
    background: currentColor;
    transition:
      transform 0.3s var(--ease),
      opacity 0.2s;
  }

  .nav-toggle-lines span:nth-child(1) { top: 0; }
  .nav-toggle-lines span:nth-child(2) { top: 5.2px; }
  .nav-toggle-lines span:nth-child(3) { top: 10.4px; }

  .nav-open .nav-toggle-lines span:nth-child(1) { transform: translateY(5.2px) rotate(45deg); }
  .nav-open .nav-toggle-lines span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle-lines span:nth-child(3) { transform: translateY(-5.2px) rotate(-45deg); }

  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem var(--gutter) 1.5rem;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    box-shadow: 0 30px 50px -30px rgba(29, 35, 33, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.25s,
      transform 0.3s var(--ease),
      visibility 0s linear 0.3s;
  }

  .nav-open .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity 0.25s,
      transform 0.3s var(--ease);
  }

  .nav-menu a:not(.btn) {
    display: flex;
    padding: 0.9rem 1rem;
    font-size: 1.05rem;
  }

  .nav-cta {
    margin: 0.5rem 0 0;
  }

  .nav-cta .btn {
    width: 100%;
  }

  /* Without JavaScript the menu can't open, so show it inline instead */
  html:not(.js) .site-header {
    position: absolute;
    height: auto;
  }

  html:not(.js) .header-inner {
    flex-wrap: wrap;
    padding-block: 1rem;
  }

  html:not(.js) .nav-toggle {
    display: none;
  }

  html:not(.js) .nav-menu {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

@media (max-width: 420px) {
  .brand-tag {
    display: none;
  }
}

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

.hero,
.page-hero {
  position: relative;
}

.hero {
  padding: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem)) 0 clamp(3.5rem, 7vw, 6rem);
}

.page-hero {
  padding: calc(var(--header-h) + clamp(3.5rem, 8vw, 6rem)) 0 clamp(2.5rem, 5vw, 4rem);
}

.hero-grid,
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.hero .display,
.page-hero .display {
  margin-top: 1.5rem;
}

.page-hero .display {
  max-width: 14ch;
}

.hero .lead,
.page-hero .lead {
  margin-top: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hero-art {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
}

.hero-art svg {
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .hero-grid,
  .page-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-art {
    max-width: 440px;
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.section-flush-top {
  padding-top: 0;
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.section-head .h2 {
  margin-top: 1rem;
}

.section-sub {
  max-width: 36rem;
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: var(--ink-soft);
}

/* ---------- Tiles (pastel cards) ---------- */

.tile {
  --tile-ink: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.tile-sage { --tile-ink: var(--sage-ink); background: var(--sage); border-color: transparent; }
.tile-peach { --tile-ink: var(--peach-ink); background: var(--peach); border-color: transparent; }
.tile-blush { --tile-ink: var(--blush-ink); background: var(--blush); border-color: transparent; }

.tile-num {
  margin-bottom: 1.25rem;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1;
  color: var(--tile-ink);
}

.tile h3 {
  font-size: clamp(1.65rem, 1.35rem + 0.8vw, 2.05rem);
  line-height: 1.1;
}

.tile p {
  font-size: 1rem;
  color: var(--ink-soft);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.tags li {
  padding: 0.36rem 0.8rem;
  border: 1px solid rgba(29, 35, 33, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
}

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

.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }

.tile-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: end;
  gap: 1rem 3rem;
}

/* Line chart inside the monitoring tile */
.mini-chart {
  margin-top: auto;
  padding: 1.1rem 1.1rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.mini-chart svg {
  width: 100%;
  height: 84px;
}

.mini-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.mini-chart-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.mini-chart-legend li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot, var(--sage-ink));
}

@media (max-width: 960px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid > * {
    grid-column: span 1;
  }

  .service-grid > .span-2,
  .service-grid > .span-3 {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .service-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-grid > *,
  .service-grid > .span-2,
  .service-grid > .span-3 {
    grid-column: auto;
  }

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

/* ---------- Impact (home) ---------- */

.impact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
}

.impact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}

.impact-item {
  padding: 2rem 2rem 2.1rem 0;
  border-bottom: 1px solid var(--line);
}

.impact-item:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.impact-item:nth-child(even) {
  padding-left: 2rem;
  padding-right: 0;
}

.impact-item h3 {
  margin-top: 1.1rem;
  font-size: 1.8rem;
}

.impact-item p {
  margin-top: 0.6rem;
  font-size: 1rem;
  color: var(--ink-soft);
}

.impact-item .text-link {
  margin-top: 1.1rem;
}

@media (max-width: 900px) {
  .impact {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .impact-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .impact-item,
  .impact-item:nth-child(odd),
  .impact-item:nth-child(even) {
    padding: 1.75rem 0;
    border-right: 0;
  }
}

/* ---------- Expertise (home) ---------- */

.expertise {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1rem;
}

.stat-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-height: 380px;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--peach);
}

.stat-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--peach-ink);
}

.stat {
  font-family: var(--font-serif);
  font-size: clamp(6rem, 3.5rem + 9vw, 11rem);
  line-height: 0.82;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.stat em {
  font-style: italic;
  color: var(--sage-ink);
}

.expertise-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.25rem;
  padding: clamp(2rem, 4vw, 3.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.expertise-text {
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.expertise-copy .btn {
  margin-top: 0.5rem;
}

@media (max-width: 860px) {
  .expertise {
    grid-template-columns: minmax(0, 1fr);
  }

  .stat-panel {
    min-height: 260px;
  }
}

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

.cta-section {
  padding-block: clamp(1rem, 3vw, 2rem) clamp(4.5rem, 9vw, 7rem);
}

.cta-card {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: var(--radius-lg);
  background: var(--sage);
  text-align: center;
}

.cta-card > :not(.cta-shapes) {
  position: relative;
}

.cta-card .h2 {
  max-width: 16ch;
  margin-inline: auto;
}

.cta-text {
  max-width: 34rem;
  margin: 1.25rem auto 0;
  font-size: 1.125rem;
  color: var(--ink-soft);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.cta-shapes {
  position: absolute;
  width: clamp(140px, 22vw, 260px);
  height: auto;
  pointer-events: none;
}

.cta-shapes-left {
  left: -3%;
  bottom: -18%;
}

.cta-shapes-right {
  right: -3%;
  top: -16%;
  transform: rotate(180deg);
}

@media (max-width: 640px) {
  .cta-shapes {
    width: 120px;
    opacity: 0.6;
  }
}

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

.site-footer {
  padding-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-blurb {
  max-width: 24rem;
  margin-top: 1.25rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.footer-title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-links {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.footer-links a {
  color: var(--ink-soft);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--ink);
}

.socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-soft);
  transition:
    color 0.2s,
    border-color 0.2s,
    background-color 0.2s;
}

.socials a:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}

.socials svg {
  width: 17px;
  height: 17px;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.footer-email:hover {
  color: var(--ink);
}

.footer-email svg {
  width: 16px;
  height: 16px;
}

.footer-wordmark {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  font-family: var(--font-serif);
  font-size: clamp(5rem, 23vw, 20rem);
  line-height: 0.78;
  letter-spacing: -0.02em;
  text-align: center;
  white-space: nowrap;
  color: #e7dfd2;
  user-select: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

/* ---------- Google Cloud page ---------- */

/* Layered GCP stack in the hero */
.stack-visual {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 0.92;
  margin-inline: auto;
  perspective: 1600px;
}

.stack-scene {
  position: relative;
  width: 64%;
  aspect-ratio: 1;
  transform-style: preserve-3d;
  transform: translateY(18%) rotateX(56deg) rotateZ(-40deg);
}

.stack-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 8px;
  padding: 10%;
  border: 1px solid rgba(29, 35, 33, 0.12);
  border-radius: 24px;
  background: var(--layer);
  box-shadow: 0 34px 40px -34px rgba(29, 35, 33, 0.45);
  transform: translateZ(var(--z));
}

.stack-layer span {
  padding: 6px 11px;
  border: 1px solid rgba(29, 35, 33, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink);
}

/* What We Offer */
.offer-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
}

.offer-head {
  position: sticky;
  top: calc(var(--header-h) + 2.5rem);
}

.offer-head .h2 {
  margin-top: 1rem;
}

.offer-list {
  border-top: 1px solid var(--line-strong);
}

.offer {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--line);
}

.offer-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-style: italic;
  line-height: 1;
  color: var(--n, var(--sage-ink));
}

.offer h3 {
  font-size: clamp(1.75rem, 1.4rem + 0.9vw, 2.2rem);
  line-height: 1.1;
}

.offer p {
  margin-top: 0.75rem;
  color: var(--ink-soft);
}

.agent-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 0.5rem;
  margin-top: 1.35rem;
}

.agent-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.95rem;
  font-weight: 500;
}

@media (max-width: 900px) {
  .offer-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .offer-head {
    position: static;
  }
}

@media (max-width: 520px) {
  .offer {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
  }
}

/* Seamless Ecosystem Integration */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.split-copy .h2 {
  margin-top: 1rem;
}

.split-text {
  margin-top: 1.4rem;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.orbit {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  margin-inline: auto;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
}

.orbit-ring.r1 {
  inset: 4%;
  border: 1px dashed var(--line-strong);
}

.orbit-ring.r2 {
  inset: 20%;
  background: var(--sage);
}

.orbit-ring.r3 {
  inset: 30%;
  background: var(--peach);
}

.orbit-core {
  position: absolute;
  inset: 38%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.orbit-core img {
  width: 60%;
  height: auto;
}

.orbit-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .split-visual {
    order: 2;
  }
}

/* ---------- Cost page ---------- */

.cost-panel {
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
  padding: 1.75rem 1.75rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.cost-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.cost-trend {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: var(--sage);
  color: var(--sage-ink);
}

.cost-trend svg {
  width: 14px;
  height: 14px;
}

.cost-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 220px;
  margin-top: 1.5rem;
  border-bottom: 1px solid var(--line-strong);
}

.cost-bars span {
  flex: 1;
  height: var(--h);
  border-radius: 8px 8px 2px 2px;
  background: var(--c);
  transform-origin: bottom;
  animation: grow 0.9s var(--ease) both;
  animation-delay: calc(var(--i) * 60ms + 150ms);
}

.cost-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  font-size: 0.76rem;
  color: var(--muted);
}

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

.step-num {
  font-family: var(--font-serif);
  font-size: 3.6rem;
  line-height: 0.9;
  color: var(--tile-ink);
}

.step h3 {
  margin-top: 1.75rem;
}

.related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-block: 1px solid var(--line-strong);
}

.related > div {
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 3rem) clamp(1.75rem, 4vw, 2.75rem) 0;
}

.related > div + div {
  padding-left: clamp(1.5rem, 4vw, 3rem);
  padding-right: 0;
  border-left: 1px solid var(--line);
}

.related h3 {
  margin-top: 1rem;
  font-size: 1.9rem;
}

.related p {
  margin-top: 0.7rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .related {
    grid-template-columns: minmax(0, 1fr);
  }

  .related > div,
  .related > div + div {
    padding: 1.75rem 0;
    border-left: 0;
  }

  .related > div + div {
    border-top: 1px solid var(--line);
  }
}

/* ---------- 404 ---------- */

.not-found {
  display: grid;
  place-items: center;
  min-height: 80vh;
  padding-block: calc(var(--header-h) + 3rem) 4rem;
  text-align: center;
}

.not-found .stat {
  font-size: clamp(7rem, 5rem + 10vw, 12rem);
}

.not-found h1 {
  margin-top: 1rem;
}

.not-found p {
  margin-top: 1rem;
  color: var(--ink-soft);
}

.not-found .hero-actions {
  justify-content: center;
}

/* ---------- Motion ---------- */

.js .reveal {
  opacity: 0;
}

.js .reveal.is-visible {
  opacity: 1;
  animation: reveal-up 0.8s var(--ease) var(--delay, 0ms) backwards;
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes grow {
  from { transform: scaleY(0.05); }
  to { transform: scaleY(1); }
}

@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;
  }

  .js .reveal {
    opacity: 1;
  }
}
