/* Thrive Trade Automation — minimal dark theme */
:root {
  --bg: #070a12;
  --bg-alt: #0b1020;
  --surface: #0f1626;
  --line: #1e2a40;
  --text: #e8eef8;
  --muted: #a6b1c6;
  --accent: #4cc9ff;
  --accent-2: #8fb4ff;
  --accent-ink: #03111e;
  --radius: 14px;
  --wrap: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 650; }
p { margin: 0; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

.eyebrow {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.muted { color: var(--muted); }
.fine { font-size: .875rem; color: var(--muted); }
.accent { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid var(--accent); border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: #86dcff; border-color: #86dcff; color: var(--accent-ink); }
.btn-ghost { background: rgba(7, 10, 18, .78); color: var(--text); border-color: rgba(232, 238, 248, .8); }
.btn-ghost:hover { background: rgba(7, 10, 18, .88); border-color: var(--accent); color: var(--accent); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 10, 18, .92);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(7, 10, 18, .8); backdrop-filter: blur(8px); }
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .01em; margin-right: auto; }
.brand img { width: 40px; height: auto; }
.brand em { font-style: normal; font-weight: 400; color: var(--muted); }
.nav { display: none; gap: 28px; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 48px 0 72px; }
.hero-grid { display: grid; gap: 40px; }
.hero h1 { font-size: clamp(1.9rem, 7.8vw, 4rem); max-width: 20ch; text-wrap: balance; }
.lede { margin-top: 20px; font-size: 1.125rem; color: var(--muted); max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .fine { margin-top: 20px; }
.hero-media { margin: 0; position: relative; }

/* Sections */
.section { padding: 80px 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: clamp(1.75rem, 4.4vw, 2.6rem); max-width: 22ch; }
.section-head { margin-bottom: 40px; }
.section-head .muted { margin-top: 14px; }

/* Services */
.services { display: grid; gap: 16px; }
.service {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.service-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.service h3 { font-size: 1.2rem; }
.price { font-size: 1.6rem; font-weight: 700; color: var(--accent); white-space: nowrap; letter-spacing: -0.02em; }
.price .from { font-size: .8rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-right: 2px; }
.price .unit { font-size: .95rem; font-weight: 500; color: var(--muted); }
.price-text { font-size: 1rem; font-weight: 600; color: var(--accent-2); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .55em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.tag { display: inline-block; margin-left: 6px; font-size: .8rem; color: var(--accent-2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; white-space: nowrap; }
.service-main { display: flex; flex-direction: column; }
.service-foot {
  margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: .95rem;
}
.service-main .ticks { margin-bottom: 28px; }
.service-foot a { font-weight: 600; text-decoration: none; }
.rates { margin: 0; display: grid; }
.rates div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rates div:first-child { padding-top: 0; }
.rates div:last-child { border-bottom: 0; padding-bottom: 0; }
.rates dt { color: var(--muted); }
.rates dd { margin: 0; font-weight: 700; color: var(--text); }

/* Care */
.care { display: grid; gap: 24px; }
.care-copy { display: grid; gap: 16px; font-size: 1.075rem; max-width: 60ch; }
.care-copy strong { color: var(--text); font-weight: 600; }

/* Contact */
.contact { display: grid; gap: 48px; }
.steps { list-style: none; counter-reset: s; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; color: var(--muted); }
.steps li strong { color: var(--text); font-weight: 600; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -1px;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--accent); font-size: .85rem; font-weight: 700;
}
.direct { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.direct a {
  display: flex; gap: 16px; align-items: baseline; padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text); text-decoration: none; word-break: break-word;
}
.direct a:hover { color: var(--accent); }
.direct span { width: 48px; flex: none; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.area { margin-top: 32px; color: var(--muted); max-width: 52ch; }
.area .eyebrow { margin-bottom: 8px; }

/* Form */
.form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: grid; gap: 16px; align-self: start;
}
.field-row { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .875rem; font-weight: 500; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  background: var(--bg); color: var(--text);
  border: 1px solid #2b3a55; border-radius: 10px;
  font: inherit; font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px;
}
.field input::placeholder, .field textarea::placeholder { color: #7f8aa3; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(76, 201, 255, .2); }
.form-note { text-align: center; }
.form-note.is-success, .form-note.is-error { font-size: 1rem; padding: 14px 16px; border-radius: 12px; color: var(--text); }
.form-note.is-success { background: rgba(140,199,159,.14); border: 1px solid var(--accent); }
.form-note.is-error { background: rgba(230,120,110,.12); border: 1px solid #e6786e; }
.form-note a { color: var(--accent); }
.btn.is-sent { opacity: .7; pointer-events: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; }
.footer-inner { display: grid; gap: 20px; justify-items: center; text-align: center; }
.footer-logo { width: 140px; }
.footer-links { display: flex; gap: 10px; }
.footer-links a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; color: var(--muted);
}
.footer-links a:hover { color: var(--accent); border-color: var(--accent); }
.site-footer .fine a { color: var(--muted); }

/* Larger screens */
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .form { padding: 32px; }
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .section { padding: 112px 0; }
  .services { grid-template-columns: 1.25fr 1fr; }
  .service-main { grid-row: span 2; }
  .care { grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
  .contact { grid-template-columns: 1fr 1.1fr; gap: 72px; }
}
@media (max-width: 420px) {
  .actions .btn { flex: 1 1 100%; }
  .brand { font-size: .95rem; }
}
@media (max-width: 359px) {
  .brand em { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Hero subheading */
.hero-sub { margin-top: 18px; font-size: clamp(1.15rem, 2.6vw, 1.4rem); font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.hero-sub + .lede { margin-top: 10px; }

/* Reviews */
.stars { color: var(--accent-2); letter-spacing: .12em; line-height: 1; }
.reviews-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; }
.rating { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.rating strong { font-weight: 700; color: var(--text); }
.reviews { display: grid; gap: 16px; }
.review {
  margin: 0; display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.review .stars { font-size: .95rem; }
.review blockquote { margin: 0; color: var(--text); font-size: .975rem; line-height: 1.6; }
.review figcaption { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.review figcaption strong { font-weight: 600; }
.review figcaption span { color: var(--muted); font-size: .8rem; }
.reviews-actions { margin-top: 28px; }

/* Service areas */
.areas { margin: 0 0 10px; display: grid; }
.areas div { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.areas div:first-child { border-top: 1px solid var(--line); }
.areas dt { width: 104px; flex: none; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding-top: 2px; }
.areas dd { margin: 0; color: var(--text); }
.area { max-width: none; }
.area h3.eyebrow { font-size: .78rem; line-height: 1.65; letter-spacing: .14em; margin-bottom: 10px; }

@media (min-width: 900px) {
  .reviews { grid-template-columns: repeat(3, 1fr); }
}
.area-line { margin: 0 0 6px; color: var(--text); font-size: 1.05rem; }
.footer-trust { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: .85rem; color: var(--muted); }
.footer-trust span { display: inline-flex; align-items: center; gap: 6px; }
.footer-trust svg { color: var(--accent); }

/* ==========================================================================
   v10 motion & polish. Existing colour variables only (rgba = --bg/--accent).
   Hidden reveal states apply only to .rv, which js/main.js adds below the fold.
   ========================================================================== */
:root { --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.45, .64, 1); --glow: rgba(76, 201, 255, .3); }

/* Frosted header (solid fallback first) */
.site-header {
  background: rgba(7, 10, 18, .95); border-bottom-color: rgba(30, 42, 64, .6);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.site-header.is-scrolled { background: rgba(7, 10, 18, .98); border-bottom-color: var(--line); box-shadow: 0 8px 24px -14px rgba(0, 0, 0, .7); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header, .site-header.is-scrolled { background: rgba(7, 10, 18, .55); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); }
  .site-header.is-far { background: rgba(7, 10, 18, .75); }
}
.brand img { transform-origin: left center; transition: transform .5s var(--ease); }
.site-header.is-scrolled .brand img { transform: scale(.9); }

/* Nav scrollspy: active colour + sliding underline (.nav-ink added by JS) */
.nav { position: relative; }
.nav a { transition: color .3s var(--ease); }
.nav a.is-active { color: var(--accent); }
.nav-ink {
  position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; border-radius: 2px;
  background: var(--accent); opacity: 0; pointer-events: none;
  transition: transform .55s var(--spring), width .55s var(--spring), opacity .3s var(--ease);
}
.nav.has-active .nav-ink { opacity: 1; }

/* Springy buttons */
.btn {
  position: relative; -webkit-tap-highlight-color: transparent;
  transition: background-color .15s, color .15s, border-color .15s, transform .5s var(--spring), box-shadow .35s var(--ease);
}
@media (hover: hover) {
  .btn:hover { box-shadow: 0 8px 22px -8px var(--glow), 0 0 0 4px rgba(76, 201, 255, .07); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
}
@media (prefers-reduced-motion: no-preference) {
  .btn:active { transform: scale(.96); transition: transform .12s var(--ease), box-shadow .2s var(--ease), background-color .15s; }
  .js .site-header .btn-sm { animation: callPulse 1.8s var(--ease) 1.2s 1; }
}
@keyframes callPulse { 0% { box-shadow: 0 0 0 0 rgba(76, 201, 255, .5); } 70%, 100% { box-shadow: 0 0 0 12px rgba(76, 201, 255, 0); } }

/* Submit states: spinner while sending (width kept), pop on success */
.btn.is-loading { color: transparent !important; pointer-events: none; cursor: progress; }
.btn.is-loading::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border: 2px solid rgba(3, 17, 30, .25); border-top-color: var(--accent-ink); border-radius: 50%;
  animation: btnSpin .7s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }
.btn.is-sent { opacity: 1; box-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  .btn.is-sent { animation: btnPop .75s var(--ease); }
  .form-note.is-success, .form-note.is-error { animation: noteIn .5s var(--ease); }
}
@keyframes btnPop {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(76, 201, 255, .6); }
  30% { transform: scale(1.08); }
  55% { transform: scale(.98); }
  75% { transform: scale(1.01); }
  100% { transform: scale(1); box-shadow: 0 0 0 20px rgba(76, 201, 255, 0); }
}
@keyframes noteIn { from { opacity: 0; transform: translateY(6px); } }

/* Lift-up cards */
.service, .review { transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s var(--ease); }
@media (hover: hover) {
  .service:hover, .review:hover { border-color: rgba(76, 201, 255, .32); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .75); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .service:hover, .review:hover { transform: translateY(-3px); }
}
@media (hover: none) and (prefers-reduced-motion: no-preference) {
  .service:active, .review:active { transform: scale(.99); border-color: rgba(76, 201, 255, .32); }
}
.rates dt, .rates dd { transition: color .3s var(--ease); }
.rates div:hover dt { color: var(--text); }
.rates div:hover dd { color: var(--accent); }

/* Animated underline on text links */
.service-foot a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease), color .15s; }
.service-foot a:hover { background-size: 100% 1px; }

/* Live form fields */
.field { position: relative; }
.field input, .field select, .field textarea { transition: border-color .3s var(--ease), box-shadow .3s var(--ease), color .45s var(--ease); }
.field input::placeholder, .field textarea::placeholder { transition: color .45s var(--ease); }
/* soft reset after success (class set by JS): values fade out before the form clears */
.form.is-clearing .field input, .form.is-clearing .field select, .form.is-clearing .field textarea,
.form.is-clearing .field ::placeholder { color: transparent; }
.form.is-clearing .field.is-valid input { border-color: #2b3a55; }
.form.is-clearing .field::after { opacity: 0; }
.field.is-valid input { border-color: rgba(76, 201, 255, .7); padding-right: 42px; }
.field.is-invalid input, .field.is-invalid input:focus { border-color: #e6786e; padding-right: 42px; }
.field.is-invalid input:focus { box-shadow: 0 0 0 3px rgba(230, 120, 110, .2); }
.field::after {
  content: ""; position: absolute; right: 14px; bottom: 15px; width: 16px; height: 16px;
  background: var(--accent); pointer-events: none; opacity: 0; transform: scale(.4);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: opacity .25s var(--ease), transform .45s var(--spring);
}
.field.is-valid::after { opacity: 1; transform: none; }

/* Scroll reveal (JS-set classes only) */
.js .rv { opacity: 0; translate: 0 24px; }
.js .rv.rv-in { opacity: 1; translate: none; transition: opacity .7s var(--ease) var(--rv-d, 0ms), translate .7s var(--ease) var(--rv-d, 0ms); }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; translate: none; }
}
@media print { .js .rv { opacity: 1 !important; translate: none !important; } }

/* ==========================================================================
   v12 Variant B: living background. One photo layer is fixed behind the whole
   page under a dark --bg scrim; the sections scroll over it as transparent or
   frosted panels, and the photos dissolve with overall page scroll (js/main.js).
   Opacity only, no zoom. No JS / reduced motion: the first photo sits behind
   the hero only and every section keeps its solid background.
   ========================================================================== */
.hero { position: relative; padding: 0; margin-top: -65px; } /* photo runs up under the frosted header */
.hero-grid { display: block; }
.hero-copy {
  position: relative; z-index: 1;
  min-height: 88vh; min-height: 88svh; padding: 120px 20px 88px;
  display: flex; flex-direction: column; justify-content: center;
  text-align: center; text-shadow: 0 1px 2px rgba(7, 10, 18, .6), 0 1px 24px rgba(7, 10, 18, .7);
}
.hero h1, .hero .lede { margin-inline: auto; }
.hero .actions { justify-content: center; }
@media (min-width: 900px) {
  .hero h1 { font-size: clamp(2.6rem, 4.2vw, 3.4rem); max-width: 24ch; }
  .hero .lede { max-width: 58ch; }
}

/* Photo layer (default: behind the hero only) */
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--bg); }
.hero-media .slides { position: absolute; inset: 0; }
.hero-media .slide { position: absolute; inset: 0; opacity: 0; }
.hero-media .slide:first-child { opacity: 1; }
.hero-media .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::before, .hero-media::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-media::before { /* base scrim: lighter in the middle, --bg at the edges (v13: a little darker) */
  background:
    radial-gradient(ellipse 75% 60% at 50% 50%, rgba(7, 10, 18, .72), rgba(7, 10, 18, .34) 75%),
    linear-gradient(to bottom, rgba(7, 10, 18, .6) 0, rgba(7, 10, 18, .2) 25%, rgba(7, 10, 18, .2) 65%, rgba(7, 10, 18, .78) 100%);
}

/* Living background: fixed full-viewport layer behind the whole page */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-media { position: fixed; inset: 0 0 auto; height: 100vh; height: 100lvh; z-index: -1; }
  .js .hero-media::after { background: rgba(7, 10, 18, .64); opacity: var(--dim, 1); } /* darker further down (JS sets --dim) */
  .js .section { background: transparent; }
  .js .section-alt { background: rgba(11, 16, 32, .52); }
  .js .site-footer { background: rgba(7, 10, 18, .82); }
  .js .service, .js .review, .js .form { background: rgba(15, 22, 38, .92); }
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    @media (min-width: 640px) { /* frosted glass on larger screens; phones get a near-solid panel (cheaper) */
      .js .service, .js .review, .js .form {
        background: rgba(15, 22, 38, .74);
        -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
      }
    }
  }
}

/* ==========================================================================
   v13: sharper, less-zoomed photos; smooth first paint; more contrast.
   ========================================================================== */
/* Phones (portrait, narrower than 3:5): instead of a 9:16 crop blown up to cover the whole tall screen
   (v12 showed ~57% of the photo width), show the whole 3:5 crop (full photo height, ~80% of its width)
   at full width, centred vertically, with its top and bottom edges fading into the page colour.
   The layer itself stays full-screen. Portrait tablets (3:5 to 3:4) use the same 3:5 photo with cover. */
@media (max-aspect-ratio: 3/5) {
  .hero-media .slide img { object-fit: contain; }
  .hero-media .slides::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(to bottom, var(--bg) calc(50% - 83.333vw), rgba(7, 10, 18, 0) calc(50% - 62vw),
      rgba(7, 10, 18, 0) calc(50% + 50vw), var(--bg) calc(50% + 83.333vw));
  }
}
/* First photo: a tiny blurred placeholder of it (inline <style> in index.html) is shown at once and sits
   on top until the real photo has loaded and decoded, then dissolves away (~0.5 s), so the photo never
   pops in or paints in stripes. Instant under reduced motion; without JS there is no overlay. */
.js .hero-media .slides::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: inherit;
  transition: opacity .5s var(--ease), visibility 0s linear .5s;
}
.hero-media .slides.is-in::before, .bg-in .hero-media .slides::before { opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  .js .hero-media .slides::before { transition: none; }
}
/* the hero text shadow is for text on the photo, not for text on the solid accent button */
.hero .btn { text-shadow: none; }
.hero .lede { color: #cfd8e8; } /* --muted, lifted a step for text that sits on the photo */
/* Contrast over the photo (v12 -> v13): scrim .6/.25/.15 -> .72/.34/.2, scroll dim .58 -> .64,
   alt panel .45 -> .52, hero text shadow tightened, ghost buttons get a dark fill + light border. */

/* ==========================================================================
   v14: social links (Instagram, Facebook). Footer icon buttons get the same
   springy hover/press as .btn; a quiet "Follow along" row in the contact
   section. Existing colours only; icons are --muted on --bg (~8:1), borders lifted from --line.
   ========================================================================== */
.footer-links a, .social a {
  position: relative; -webkit-tap-highlight-color: transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease),
    box-shadow .35s var(--ease), transform .5s var(--spring);
}
.footer-links a { border-color: #2b3a55; }
.footer-links a:focus-visible, .social a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 50%; }
.follow { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.follow-label { margin: 0; font-size: .95rem; color: var(--text); }
.social { display: flex; gap: 10px; }
.social a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid #2b3a55; border-radius: 50%; color: var(--muted); background: var(--bg);
}
.social svg, .footer-links svg { display: block; }
@media (hover: hover) {
  .footer-links a:hover, .social a:hover {
    color: var(--accent); border-color: var(--accent);
    box-shadow: 0 8px 22px -8px var(--glow), 0 0 0 4px rgba(76, 201, 255, .07);
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .footer-links a:hover, .social a:hover { transform: translateY(-1px); }
}
@media (prefers-reduced-motion: no-preference) {
  .footer-links a:active, .social a:active {
    transform: scale(.92); color: var(--accent); border-color: var(--accent);
    transition: transform .12s var(--ease), color .15s, border-color .15s;
  }
}

/* ==========================================================================
   TTA v1: electric-blue tech accent + new components (cards grid, steps, case study, placeholders)
   ========================================================================== */
:root { --accent-deep: #3b82f6; }
.btn { background: linear-gradient(180deg, #5fd2ff, #3b9dff); border-color: #5fd2ff; }
.btn:hover { background: linear-gradient(180deg, #86dcff, #5aaeff); border-color: #86dcff; }
.btn-ghost, .btn-ghost:hover { background: rgba(7, 10, 18, .8); }
.hero h1 .accent { background: linear-gradient(90deg, #4cc9ff, #6f9dff); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.brand-mark { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(140deg, #4cc9ff, #3b82f6); color: #03111e; box-shadow: 0 0 18px -4px rgba(76, 201, 255, .6); }
.site-header.is-scrolled .brand-mark { transform: scale(.92); }
.brand-mark { transition: transform .5s var(--ease); }
.grid3 { display: grid; gap: 16px; }
.service .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  color: var(--accent); background: rgba(76, 201, 255, .1); border: 1px solid rgba(76, 201, 255, .28); }
.service h3 + p { margin-top: 10px; color: #cfd8e8; }
.how { counter-reset: h; }
.how .service { position: relative; }
.how .service::before { counter-increment: h; content: "0" counter(h); display: block; font-size: .85rem; font-weight: 700; letter-spacing: .14em; color: var(--accent); margin-bottom: 14px; }
.case { display: grid; gap: 16px; }
.case-copy { display: grid; gap: 16px; font-size: 1.075rem; color: #cfd8e8; }
.case-copy strong { color: var(--text); }
.ph { color: #ffd479; font-weight: 600; background: rgba(255, 212, 121, .1); border: 1px dashed rgba(255, 212, 121, .6); border-radius: 6px; padding: 0 6px; white-space: nowrap; }
.ph-block { display: block; white-space: normal; padding: 14px 16px; border-radius: 12px; font-weight: 500; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; list-style: none; padding: 0; }
.pill-row li { font-size: .9rem; padding: 5px 13px; border-radius: 999px; border: 1px solid #2b3a55; color: var(--text); }
@media (min-width: 900px) {
  .grid3 { grid-template-columns: repeat(3, 1fr); }
  .grid3.g2 { grid-template-columns: 1fr 1fr; }
  .case { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
}
@media (max-width: 440px) { .brand em { display: none; } .brand { white-space: nowrap; } }
/* phones: soft dark fades at the very top and bottom of the screen over the living background */
@media (max-width: 899px) and (prefers-reduced-motion: no-preference) {
  .js body::before, .js body::after { content: ""; position: fixed; left: 0; right: 0; height: 90px; z-index: 40; pointer-events: none; }
  .js body::before { top: 0; background: linear-gradient(to bottom, rgba(7, 10, 18, .85), rgba(7, 10, 18, 0)); }
  .js body::after { bottom: 0; height: 70px; background: linear-gradient(to top, rgba(7, 10, 18, .85), rgba(7, 10, 18, 0)); }
}

/* ==========================================================================
   TTA v2: deeper button blue (white text, >=5:1), richer frosted glass cards
   ========================================================================== */
.btn { background: linear-gradient(180deg, #2f6ff0, #1d4ed8); border-color: #3b7bf6; color: #fff; }
.btn:hover { background: linear-gradient(180deg, #3b7bf6, #2257e6); border-color: #5b93ff; color: #fff; }
.btn-ghost, .btn-ghost:hover { background: rgba(7, 10, 18, .8); }
.btn.is-loading::after { border-color: rgba(255, 255, 255, .3); border-top-color: #fff; }
.skip { background: #1d4ed8; color: #fff; }
:root { --glow: rgba(37, 99, 235, .45); }
.js .service, .js .form {
  border-color: rgba(148, 178, 230, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 0 0 1px rgba(255, 255, 255, .02), 0 20px 44px -26px rgba(0, 0, 0, .85);
  transition: transform .6s var(--spring), box-shadow .5s var(--ease), border-color .4s var(--ease), background-color .4s var(--ease);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  @media (min-width: 640px) {
    .js .service, .js .form {
      background: linear-gradient(160deg, rgba(24, 34, 58, .62), rgba(12, 18, 32, .58));
      -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
    }
  }
}
@media (hover: hover) {
  .js .service:hover {
    border-color: rgba(76, 201, 255, .38);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 1px rgba(76, 201, 255, .08), 0 28px 56px -26px rgba(0, 0, 0, .9), 0 0 40px -18px rgba(76, 201, 255, .35);
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .js .service:hover { transform: translateY(-4px); } }
.service:hover .ico { background: rgba(76, 201, 255, .16); border-color: rgba(76, 201, 255, .5); }
.service .ico { transition: background-color .4s var(--ease), border-color .4s var(--ease); }

/* ==========================================================================
   TTA v4: Apple-like minimal pass. Near-black + greys, deep blue used sparingly,
   big tight headlines, generous whitespace, hairlines instead of cards.
   ========================================================================== */
:root { --font: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bg: #000; --text: #f5f5f7; --muted: #a1a1a6; --line: rgba(255, 255, 255, .12); --accent: #2f7bff; --wrap: 1040px; --hair: rgba(255, 255, 255, .12); }
body { background: #000; font-size: 1.0625rem; letter-spacing: -0.003em; }
a { color: #4a90ff; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; }
.eyebrow { color: var(--muted); font-size: .8rem; letter-spacing: .08em; font-weight: 600; margin-bottom: 18px; }
.accent { color: #4a90ff; }
.hero h1 .accent { background: none; color: #4a90ff; -webkit-text-fill-color: currentColor; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.04; letter-spacing: -0.045em; max-width: none; }
@media (min-width: 900px) { .hero h1 { font-size: clamp(3.6rem, 5.6vw, 5.2rem); } }
.hero .lede { font-size: clamp(1.1rem, 2vw, 1.35rem); color: #d2d2d7; max-width: 34ch; margin-top: 24px; line-height: 1.45; }
.hero-copy { text-shadow: 0 1px 30px rgba(0, 0, 0, .6); }
.actions { margin-top: 40px; gap: 14px; }
/* buttons: deep blue pills, ghost = hairline */
.btn { background: #0a5cff; border: 0; color: #fff; min-height: 46px; padding: 0 24px; font-weight: 500; font-size: 1rem; letter-spacing: -0.01em;
  transition: background-color .25s var(--ease), transform .4s var(--spring), box-shadow .3s var(--ease); }
.btn:hover { background: #2a72ff; color: #fff; border: 0; }
@media (hover: hover) { .btn:hover { box-shadow: 0 6px 20px -8px rgba(10, 92, 255, .6); } }
.btn-ghost, .btn-ghost:hover { background: rgba(255, 255, 255, .08); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-sm { min-height: 34px; padding: 0 16px; font-size: .875rem; }
.js .site-header .btn-sm { animation: none; }
/* frosted nav */
.site-header, .site-header.is-scrolled, .site-header.is-far { background: rgba(0, 0, 0, .62); border-bottom: 1px solid var(--hair); box-shadow: none; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header, .site-header.is-scrolled, .site-header.is-far { background: rgba(10, 10, 12, .6); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
}
.header-inner { height: 52px; }
.hero { margin-top: -53px; }
.brand { font-size: .95rem; font-weight: 600; letter-spacing: -0.01em; }
.brand-mark { width: 24px; height: 24px; border-radius: 7px; background: #0a5cff; color: #fff; box-shadow: none; }
.nav { gap: 32px; }
.nav a { font-size: .85rem; color: #d2d2d7; }
.nav a.is-active { color: #fff; }
.nav-ink { background: #fff; height: 1px; bottom: -4px; }
/* background: darker, calmer */
.js .hero-media::after { background: rgba(0, 0, 0, .74); }
.hero-media::before { background: radial-gradient(ellipse 80% 65% at 50% 50%, rgba(0, 0, 0, .55), rgba(0, 0, 0, .3) 75%), linear-gradient(to bottom, rgba(0, 0, 0, .55), rgba(0, 0, 0, .15) 30%, rgba(0, 0, 0, .15) 65%, rgba(0, 0, 0, .8)); }
.js .section, .js .section-alt { background: transparent; }
/* sections */
.section { padding: 112px 0; border-top: 1px solid var(--hair); }
@media (min-width: 900px) { .section { padding: 168px 0; } }
.section h2 { font-size: clamp(2.2rem, 5.6vw, 3.75rem); line-height: 1.06; letter-spacing: -0.04em; max-width: 18ch; }
.section-head { margin-bottom: 64px; }
.intro { margin-top: 22px; font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 40ch; }
.narrow .intro, .statement .intro { max-width: 46ch; }
/* hairline rows */
.rows { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--hair); }
.rows li { display: grid; gap: 6px; padding: 26px 0; border-bottom: 1px solid var(--hair); }
.rows h3 { font-size: 1.3rem; letter-spacing: -0.02em; }
.rows p { color: var(--muted); }
@media (min-width: 900px) {
  .rows { grid-template-columns: 1fr 1fr; column-gap: 64px; }
  .rows li { grid-template-columns: 200px 1fr; align-items: baseline; gap: 24px; padding: 30px 0; }
  /* an odd last item would sit alone in the left column; let it close the list full width */
  .rows li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* statement */
.statement { text-align: center; }
.statement h2, .statement .intro { margin-inline: auto; }
.statement h2 { font-size: clamp(2.6rem, 7vw, 4.75rem); max-width: none; }
.statement h2 { background: linear-gradient(180deg, #fff 30%, #9fc2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* steps */
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; gap: 48px; }
.steps3 span { display: block; font-size: .85rem; font-weight: 600; color: #4a90ff; margin-bottom: 14px; letter-spacing: .04em; }
.steps3 li { border-top: 1px solid var(--hair); padding-top: 28px; }
.steps3 h3 { font-size: 1.4rem; margin-bottom: 10px; }
.steps3 p { color: var(--muted); max-width: 30ch; }
@media (min-width: 900px) { .steps3 { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
/* contact */
.contact h2 { font-size: clamp(2.6rem, 6vw, 4.25rem); }
.direct { margin-top: 40px; border-top-color: var(--hair); }
.direct a { border-bottom-color: var(--hair); padding: 18px 0; font-size: 1.15rem; }
.direct a:hover { color: #4a90ff; }
.area-note { margin-top: 22px; }
.js .form, .form { background: rgba(28, 28, 32, .72); border: 1px solid var(--hair); border-radius: 22px; padding: 32px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 60px -30px rgba(0, 0, 0, .9); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  @media (min-width: 640px) { .js .form { background: rgba(28, 28, 32, .55); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); } }
}
.field label { color: #d2d2d7; font-weight: 500; font-size: .85rem; }
.field input, .field select, .field textarea { background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #2f7bff; box-shadow: 0 0 0 4px rgba(47, 123, 255, .22); }
.field.is-valid input { border-color: rgba(47, 123, 255, .6); }
.field::after { background: #4a90ff; }
.field input::placeholder, .field textarea::placeholder { color: #86868b; }
/* footer */
.js .site-footer, .site-footer { background: rgba(0, 0, 0, .85); border-top: 1px solid var(--hair); padding: 32px 0; }
.site-footer .fine { font-size: .8rem; color: #86868b; }
.site-footer .fine a { color: #a1a1a6; }
/* reveal: subtler, smoother */
.js .rv { translate: 0 16px; }
.js .rv.rv-in { transition: opacity 1s cubic-bezier(.25, .1, .25, 1) var(--rv-d, 0ms), translate 1s cubic-bezier(.25, .1, .25, 1) var(--rv-d, 0ms); }
@media (max-width: 899px) and (prefers-reduced-motion: no-preference) {
  .js body::before { top: 52px; height: 60px; background: linear-gradient(to bottom, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0)); }
  .js body::after { background: linear-gradient(to top, rgba(0, 0, 0, .8), rgba(0, 0, 0, 0)); }
}
.skip { background: #0a5cff; color: #fff; }
/* Node Leaf mark: same scale as the old 24px tile, no blue plate, aligned to the wordmark */
.brand img.brand-mark {
  width: auto;
  height: 26px;
  flex: none;
  display: block;
  background: none;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}
.site-footer .footer-mark {
  height: 18px;
  width: auto;
  display: block;
  opacity: .5;
}
.footer-inner { gap: 12px; }
.sister-wrap { display: flex; justify-content: center; padding: 8px 20px 40px; }
.sister-pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border: 1px solid rgba(232,236,230,.16); border-radius: 999px; background: rgba(14,20,17,.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--muted); font-size: .88rem; text-decoration: none; letter-spacing: .01em; transition: color .25s ease, border-color .25s ease, transform .25s cubic-bezier(.2,.8,.2,1), background .25s ease; }
.sister-pill:hover, .sister-pill:focus-visible { color: #e8ece6; border-color: rgba(166,214,181,.55); background: rgba(14,20,17,.75); transform: translateY(-1px); }
.sister-pill:active { transform: translateY(0) scale(.98); }
.sister-icon { flex: none; }
.sister-arrow { display: inline-block; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.sister-pill:hover .sister-arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .sister-pill, .sister-arrow { transition: none; } .sister-pill:hover { transform: none; } }
