/* =========================================================
   AWDTECH — site styles
   Plain CSS, no build step. Tokens live in :root.
   ========================================================= */

:root {
  /* Palette */
  --paper: #f3f7f7;        /* page background, faint teal tint */
  --surface: #ffffff;      /* panels */
  --ink: #142629;          /* headings, body text */
  --slate: #4f6467;        /* secondary text */
  --line: #d5e2e2;         /* borders, rules */
  --brand: #0f7479;        /* logo teal, darkened for readable text and buttons */
  --brand-deep: #1a565a;
  --brand-wash: #e0f4f4;
  --brand-bright: #12e5ec; /* logo cyan: small accents only, never text on white */
  --ok: #2c8a57;           /* status: healthy */
  --ok-wash: #e3f2e9;
  --warn: #b7791f;

  /* Type */
  --font-display: "Schibsted Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.15rem;
  --step-4: clamp(2.4rem, 5.5vw, 3.6rem);

  /* Layout */
  --wrap: 72rem;
  --gutter: 1rem;
  --radius-sm: 6px;
  --radius-lg: 14px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0c1a1c;
    --surface: #132628;
    --ink: #e6f0f0;
    --slate: #9db4b6;
    --line: #24393c;
    --brand: #3fd9dd;
    --brand-deep: #8ceef0;
    --brand-wash: #10302f;
    --ok: #5cc28a;
    --ok-wash: #16302a;
  }
}
:root[data-theme="dark"] {
  --paper: #0c1a1c;
  --surface: #132628;
  --ink: #e6f0f0;
  --slate: #9db4b6;
  --line: #24393c;
  --brand: #3fd9dd;
  --brand-deep: #8ceef0;
  --brand-wash: #10302f;
  --ok: #5cc28a;
  --ok-wash: #16302a;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
}
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 750; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0 0 1em; max-width: 64ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 48rem) { :root { --gutter: 2rem; } }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 0.5rem 1rem;
}
.skip-link:focus { left: 1rem; z-index: 100; }

.lede { font-size: var(--step-1); color: var(--slate); max-width: 56ch; }
.muted { color: var(--slate); }
.small { font-size: var(--step--1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 1rem;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.wordmark .dot {
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: var(--brand);
}
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; min-height: 48px;
  background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink); font: inherit; cursor: pointer;
}
.site-nav { display: none; }
.site-nav.open {
  display: block;
  position: absolute; left: 0; right: 0; top: 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem var(--gutter) 1rem;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 0.75rem 0;
  color: var(--ink); text-decoration: none; font-weight: 500;
}
.site-nav a[aria-current="page"] { color: var(--brand); font-weight: 700; }
.site-nav .btn { margin-top: 0.5rem; width: 100%; }

@media (min-width: 56rem) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open {
    display: flex; position: static; padding: 0; border: 0; background: none;
    align-items: center; gap: 1.75rem;
  }
  .site-nav ul { display: flex; gap: 1.5rem; }
  .site-nav a { padding: 0.25rem 0; }
  .site-nav .btn { margin-top: 0; width: auto; }
}

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-tight { padding: 2.5rem 0; }
.section-head { margin-bottom: 2rem; }
.section-head p { color: var(--slate); }

.page-head { padding: 3.5rem 0 2rem; }
.page-head h1 { font-size: var(--step-3); }
@media (min-width: 48rem) { .page-head h1 { font-size: var(--step-4); } }

/* ---------- Hero ---------- */
.hero { padding: 3rem 0 4rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 60rem) {
  .hero { padding: 5rem 0 5.5rem; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
}
.hero h1 { max-width: 15ch; }

/* The memorable element: a plain-language status board of a client's office */
.office-board {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 18px 40px -24px rgba(22, 35, 46, 0.35);
}
.office-board header {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem; margin-bottom: 0.25rem;
}
.office-board header strong { font-family: var(--font-display); font-size: 1.05rem; }
.office-board header span { color: var(--slate); font-size: var(--step--1); }
.board-list { list-style: none; margin: 0; padding: 0; }
.board-list li {
  display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px dashed var(--line);
}
.board-list li:last-child { border-bottom: 0; }
.board-list .device { font-weight: 600; }
.board-list .detail { grid-column: 1 / -1; color: var(--slate); font-size: var(--step--1); }
.status {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: var(--step--1); font-weight: 600;
  color: var(--ok); background: var(--ok-wash);
  padding: 0.15rem 0.6rem; border-radius: 999px; white-space: nowrap;
}
.status::before {
  content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor;
}
.status.working { color: var(--brand); background: var(--brand-wash); }
.board-foot {
  margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--line);
  font-size: var(--step--1); color: var(--slate);
}
@media (prefers-reduced-motion: no-preference) {
  .status.working::before { animation: pulse 1.6s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: 0.25; } }
}

/* ---------- Pillars (three service groups) ---------- */
.pillars { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.pillar { padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.pillar h3 { font-size: var(--step-2); }
.pillar ul { margin: 0.75rem 0 1rem; padding-left: 1.1rem; color: var(--ink); }
.pillar li { margin-bottom: 0.35rem; }
@media (min-width: 56rem) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .pillar { padding: 2rem 2rem 2rem 0; border-bottom: 0; }
  .pillar + .pillar { padding-left: 2rem; border-left: 1px solid var(--line); }
}

/* ---------- Steps (a real sequence) ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1.5rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3.25rem; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-wash); color: var(--brand);
  font-family: var(--font-display); font-weight: 800;
}
.steps h3 { margin-bottom: 0.25rem; }
.steps p { color: var(--slate); margin: 0; }
@media (min-width: 56rem) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Service detail blocks ---------- */
.service-block { display: grid; gap: 1rem 3rem; padding: 2.5rem 0; border-top: 1px solid var(--line); }
.service-block:first-of-type { border-top: 2px solid var(--ink); }
.service-block ul { margin: 0; padding-left: 1.1rem; }
.service-block li { margin-bottom: 0.5rem; }
.service-block .from { font-family: var(--font-display); font-weight: 700; margin-top: 1rem; }
@media (min-width: 56rem) { .service-block { grid-template-columns: 1fr 1.2fr; } }

.group-title {
  font-size: var(--step-1); color: var(--brand);
  margin: 3.5rem 0 0.5rem;
}
.group-title:first-child { margin-top: 0; }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plans.two { }
@media (min-width: 48rem) { .plans.two { grid-template-columns: repeat(2, 1fr); max-width: 48rem; } }
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  display: flex; flex-direction: column;
}
.plan.featured { border: 2px solid var(--brand); }
.plan h3 { margin-bottom: 0.25rem; }
.plan .price {
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--step-3); line-height: 1.1; margin: 0.5rem 0 0;
}
.plan .per { color: var(--slate); font-size: var(--step--1); margin-bottom: 1rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1; }
.plan li { padding: 0.45rem 0; border-top: 1px solid var(--line); font-size: 0.975rem; }
.plan .btn { width: 100%; }
.plan .tag { color: var(--brand); font-weight: 700; font-size: var(--step--1); }

.price-group { margin-bottom: 4rem; }
.price-group:last-child { margin-bottom: 0; }
.price-group > h2 { font-size: var(--step-2); }

/* Comparison table for managed IT plans */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare {
  width: 100%; border-collapse: collapse; min-width: 34rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.compare th, .compare td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--font-display); font-size: 1.05rem; }
.compare td.yes { color: var(--ok); font-weight: 700; }
.compare td.no { color: var(--slate); }
.compare tbody th { font-weight: 500; }

/* ---------- Clients ---------- */
.clients { display: flex; flex-wrap: wrap; gap: 2rem 3rem; align-items: center; }
.clients img { height: 48px; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.8; }
:root[data-theme="dark"] .clients img { filter: grayscale(1) invert(1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .clients img { filter: grayscale(1) invert(1); }
}

/* ---------- Callout ---------- */
.callout {
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
}
.callout h2 { color: var(--paper); }
.callout p { color: var(--paper); opacity: 0.85; }
.callout .btn-ghost { color: var(--paper); border-color: rgba(255,255,255,0.35); }
.callout .btn-ghost:hover { border-color: var(--paper); color: var(--paper); }
@media (min-width: 48rem) { .callout { padding: 3.5rem; } }
:root[data-theme="dark"] .callout { background: var(--brand-wash); color: var(--ink); }
:root[data-theme="dark"] .callout h2, :root[data-theme="dark"] .callout p { color: var(--ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .callout { background: var(--brand-wash); }
  :root:not([data-theme="light"]) .callout h2,
  :root:not([data-theme="light"]) .callout p { color: var(--ink); }
  :root:not([data-theme="light"]) .callout .btn-ghost { color: var(--ink); border-color: var(--line); }
}

/* ---------- Two-column prose ---------- */
.split { display: grid; gap: 2rem 4rem; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; } }

.facts { list-style: none; padding: 0; margin: 0; }
.facts li { padding: 1rem 0; border-top: 1px solid var(--line); }
.facts strong { display: block; font-family: var(--font-display); }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 1rem 0; border-top: 1px solid var(--line); }
.contact-list .label { display: block; color: var(--slate); font-size: var(--step--1); }
.contact-list a { font-weight: 600; font-size: var(--step-1); text-decoration: none; }

.form { display: grid; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.5rem; }
.form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.95rem; }
.form input, .form select, .form textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem; min-height: 48px; width: 100%;
}
.form textarea { min-height: 7rem; resize: vertical; }
.form .hint { font-weight: 400; color: var(--slate); font-size: var(--step--1); }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line); padding: 1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; min-height: 32px; }
.faq details p { margin: 0.75rem 0 0; color: var(--slate); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 3rem 0 2rem; margin-top: 4rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-size: 1rem; margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 0.3rem 0; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.footer-base { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--slate); font-size: var(--step--1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; }
.theme-toggle { background: none; border: 0; color: var(--slate); font: inherit; cursor: pointer; text-decoration: underline; padding: 0; min-height: 32px; }

/* Floating WhatsApp button */
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #1f8f4e; color: #fff; text-decoration: none;
  font-weight: 700; font-family: var(--font-display);
  padding: 0.75rem 1.1rem; min-height: 48px; border-radius: 999px;
  box-shadow: 0 10px 24px -12px rgba(0,0,0,0.5);
}
.wa-float:hover { color: #fff; background: #187440; }
.wa-float svg { width: 20px; height: 20px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Header CTA: keep button styling over nav link styles */
.site-nav a.btn { display: inline-flex; padding: 0.6rem 1.1rem; font-weight: 700; }
.site-nav a.btn-primary, .site-nav a.btn-primary:hover { color: #fff; }

/* Fit the managed IT comparison on phones without sideways scrolling */
@media (max-width: 34rem) {
  .compare { min-width: 0; font-size: 0.875rem; }
  .compare th, .compare td { padding: 0.6rem 0.45rem; }
  .compare thead th { font-size: 0.9rem; }
}



/* ---------- Brand adjustments ---------- */
.btn-primary { color: #fff; }
:root[data-theme="dark"] .btn-primary,
:root[data-theme="dark"] .site-nav a.btn-primary { color: #0c1a1c; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-primary,
  :root:not([data-theme="light"]) .site-nav a.btn-primary { color: #0c1a1c; }
}

/* Callout echoes the logo's teal gradient */
.callout, :root[data-theme="dark"] .callout {
  background: linear-gradient(135deg, #1a565a 0%, #138989 70%, #10a0a1 100%);
  color: #fff;
}
.callout h2, .callout p,
:root[data-theme="dark"] .callout h2, :root[data-theme="dark"] .callout p { color: #fff; }
.callout .btn-primary, :root[data-theme="dark"] .callout .btn-primary { background: #fff; color: #1a565a; }
.callout .btn-primary:hover { background: var(--brand-wash); color: #1a565a; }
.callout .btn-ghost, :root[data-theme="dark"] .callout .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .callout { background: linear-gradient(135deg, #1a565a 0%, #138989 70%, #10a0a1 100%); }
  :root:not([data-theme="light"]) .callout h2,
  :root:not([data-theme="light"]) .callout p { color: #fff; }
  :root:not([data-theme="light"]) .callout .btn-primary { background: #fff; color: #1a565a; }
  :root:not([data-theme="light"]) .callout .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
}

/* Logo: light and dark versions, swapped with the theme */
.wordmark .logo { height: 44px; width: auto; }
.wordmark-footer .logo { height: 96px; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
.pillars { border-top-color: var(--brand); }
.service-block:first-of-type { border-top-color: var(--brand); }

/* Client websites */
.client-sites { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.client-sites a {
  display: inline-flex; align-items: center; min-height: 48px;
  padding: 0.6rem 1.1rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 600;
}
.client-sites a:hover { border-color: var(--brand); color: var(--brand); }

/* =========================================================
   Elegance & motion layer
   One idea throughout: the logo's teal circle and its cable.
   Everything here is disabled under prefers-reduced-motion.
   ========================================================= */

:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --glow-a: rgba(18, 229, 236, 0.28);
  --glow-b: rgba(26, 101, 106, 0.22);
}
:root[data-theme="dark"] { --glow-a: rgba(18, 229, 236, 0.16); --glow-b: rgba(16, 160, 161, 0.18); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --glow-a: rgba(18, 229, 236, 0.16); --glow-b: rgba(16, 160, 161, 0.18); }
}

/* Smooth cross-page fades (Chrome, Edge, Safari 18+) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 220ms var(--ease-in-out) both; }
::view-transition-new(root) { animation: vt-in 380ms var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
.site-header { view-transition-name: site-header; }

html { scroll-behavior: smooth; }
::selection { background: var(--brand); color: #fff; }

/* Refined type */
h1 { font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-weight: 700; letter-spacing: -0.025em; }
.section { padding: 5.5rem 0; }
@media (min-width: 60rem) { .section { padding: 7rem 0; } }
.section + .section { border-top: 0; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); }

/* Header: glass on scroll */
.site-header {
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: transparent;
  transition: border-color 300ms ease, box-shadow 300ms ease, background 300ms ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -22px rgba(10, 40, 44, 0.45);
}
.site-nav a:not(.btn) { position: relative; }
@media (min-width: 56rem) {
  .site-nav a:not(.btn)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
    background: var(--brand); border-radius: 2px;
    transform: scaleX(0); transform-origin: right; transition: transform 350ms var(--ease-out);
  }
  .site-nav a:not(.btn):hover::after,
  .site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
}

/* Buttons: soft lift and a light sweep */
.btn { position: relative; overflow: hidden; transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out), background 250ms ease, border-color 250ms ease, color 250ms ease; }
.btn-primary { box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--brand) 80%, transparent); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary:hover { box-shadow: 0 16px 30px -14px color-mix(in srgb, var(--brand) 85%, transparent); }
.btn-primary:hover::after { transform: translateX(120%); transition: transform 700ms var(--ease-out); }
.btn:active { transform: translateY(0); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 4rem 0 5rem; }
@media (min-width: 60rem) { .hero { padding: 7rem 0 4rem; } }
.hero h1 { font-size: clamp(3rem, 8vw, 5.6rem); max-width: 11ch; }
.hero .lede { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }
.hero-copy, .office-board { position: relative; z-index: 1; }

/* Two slow-drifting circles echo the logo mark */
.hero-glow { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-glow span { position: absolute; border-radius: 50%; filter: blur(60px); }
.hero-glow span:first-child {
  width: 46rem; height: 46rem; right: -14rem; top: -18rem;
  background: radial-gradient(circle at 35% 35%, var(--glow-a), transparent 65%);
}
.hero-glow span:last-child {
  width: 30rem; height: 30rem; left: -12rem; bottom: -16rem;
  background: radial-gradient(circle at 50% 50%, var(--glow-b), transparent 65%);
}

/* Headline: words rise from a mask (spans added by main.js) */
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-words .w > span { display: inline-block; }

/* Status board */
.office-board {
  border-radius: 20px;
  padding: 1.5rem;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 40px 80px -40px rgba(12, 60, 64, 0.45), 0 0 0 1px var(--line);
  border: 0;
}
.board-list li { align-items: center; }
.status { transition: background 400ms ease, color 400ms ease; }
.status.checking { color: var(--slate); background: color-mix(in srgb, var(--line) 60%, transparent); }
.board-clock { font-variant-numeric: tabular-nums; }

/* ---------- Pillars ---------- */
.pillar h3 { font-size: clamp(1.4rem, 2.2vw, 1.7rem); }
.pillar ul { list-style: none; padding: 0; }
.pillar li { padding-left: 1.1rem; position: relative; }
.pillar li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}
.pillar-link { font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 400ms var(--ease-out); padding-bottom: 2px; }
.pillar-link:hover { background-size: 100% 2px; }

/* ---------- Cable steps ---------- */
.cable-steps { position: relative; }
.cable, .cable-plug { display: none; }
@media (min-width: 56rem) {
  .cable-steps { padding-top: 3.25rem; }
  .cable { display: block; position: absolute; left: 0; right: 2.5rem; top: 0; width: calc(100% - 2.5rem); height: 40px; overflow: visible; }
  .cable path { fill: none; stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
  .cable-track { stroke: var(--line); }
  .cable-line {
    stroke: var(--brand);
    stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--cable, 1));
  }
  .cable-plug {
    display: block; position: absolute; top: 9px; right: 0;
    width: 2.6rem; height: 22px; border-radius: 6px 11px 11px 6px;
    background: linear-gradient(90deg, #a2dfe0, #d6f3f3);
    box-shadow: inset 0 0 0 1px rgba(15, 116, 121, 0.25);
    opacity: var(--plug, 1); transform: translateX(calc((1 - var(--plug, 1)) * -12px));
  }
  .cable-plug::after { content: ""; position: absolute; right: -8px; top: 5px; width: 9px; height: 12px; border-radius: 2px; background: #b9c6c7; }
  .steps li { padding-left: 0; padding-top: 2.5rem; }
  .steps li::before { top: -3.25rem; left: 0; transform: translateY(1px); box-shadow: 0 0 0 6px var(--paper); background: var(--surface); border: 2px solid var(--line); color: var(--slate); transition: border-color 400ms ease, color 400ms ease, background 400ms ease; }
  .steps li.lit::before { border-color: var(--brand); color: #fff; background: var(--brand); }
}

/* ---------- Clients ---------- */
.client-sites a { transition: border-color 300ms ease, color 300ms ease, transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out); }
.client-sites a:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -18px rgba(12, 60, 64, 0.6); }

/* ---------- Callout: slow-moving logo gradient ---------- */
.callout, :root[data-theme="dark"] .callout {
  position: relative; overflow: hidden; border-radius: 28px;
  background: linear-gradient(120deg, #164f53, #138989, #10a0a1, #1a656a, #164f53);
  background-size: 300% 300%;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .callout { background: linear-gradient(120deg, #164f53, #138989, #10a0a1, #1a656a, #164f53); background-size: 300% 300%; }
}
.callout::before {
  content: ""; position: absolute; width: 28rem; height: 28rem; right: -8rem; top: -10rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 229, 236, 0.35), transparent 65%);
  pointer-events: none;
}
.callout > * { position: relative; }
.callout h2 { font-size: clamp(2rem, 4vw, 3rem); max-width: 16ch; }

/* ---------- Cards elsewhere ---------- */
.plan { border-radius: 16px; transition: transform 350ms var(--ease-out), box-shadow 350ms var(--ease-out), border-color 350ms ease; }
.plan:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -36px rgba(12, 60, 64, 0.55); }
.plan.featured { box-shadow: 0 30px 60px -40px color-mix(in srgb, var(--brand) 90%, transparent); }
.compare { border-radius: 16px; overflow: hidden; }
.form { border-radius: 16px; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.5rem; color: var(--brand); transition: transform 300ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.page-head { position: relative; padding: 5rem 0 2.5rem; }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); max-width: 16ch; }
.service-block { transition: background 400ms ease; }

/* ---------- Motion (only when allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-glow span:first-child { animation: drift-a 22s var(--ease-in-out) infinite alternate; }
  .hero-glow span:last-child { animation: drift-b 26s var(--ease-in-out) infinite alternate; }
  @keyframes drift-a { to { transform: translate(-5rem, 4rem) scale(1.08); } }
  @keyframes drift-b { to { transform: translate(6rem, -3rem) scale(1.12); } }

  .js .split-words .w > span { transform: translateY(105%); }
  .js .split-words.go .w > span { transform: none; transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 90ms + 120ms); }

  .js .hero-fade { opacity: 0; transform: translateY(18px); }
  .js .hero-fade.go { opacity: 1; transform: none; transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--d, 0s); }

  .js .board-list li { opacity: 0; transform: translateX(-10px); }
  .js .board-list li.in { opacity: 1; transform: none; transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
  .status.pop { animation: pop 450ms var(--ease-out); }
  @keyframes pop { 40% { transform: scale(1.12); } }

  .js [data-reveal] { opacity: 0; transform: translateY(28px); }
  .js [data-reveal].in { opacity: 1; transform: none; transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
  .js [data-reveal-group] > * { opacity: 0; transform: translateY(24px); }
  .js [data-reveal-group].in > * { opacity: 1; transform: none; transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); }
  .js [data-reveal-group].in > *:nth-child(2) { transition-delay: 90ms; }
  .js [data-reveal-group].in > *:nth-child(3) { transition-delay: 180ms; }
  .js [data-reveal-group].in > *:nth-child(4) { transition-delay: 270ms; }
  .js [data-reveal-group].in > *:nth-child(5) { transition-delay: 360ms; }
  .js [data-reveal-group].in > *:nth-child(n+6) { transition-delay: 420ms; }

  .callout { animation: gradient-shift 16s ease-in-out infinite alternate; }
  @keyframes gradient-shift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
  .callout::before { animation: drift-a 18s var(--ease-in-out) infinite alternate; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
  .btn-primary::after { display: none; }
}

/* Let the hero glow fade naturally instead of clipping at the section edge */
html, body { overflow-x: clip; }
.hero { overflow: visible; }
:root { --glow-b: rgba(18, 229, 236, 0.12); }
.hero-glow span:last-child { bottom: -22rem; }
@media (min-width: 56rem) { .steps li { padding-top: 1.25rem; } }
