:root {
  --bg: #faf8f4;
  --bg-soft: #f3f0e9;
  --bg-card: #ffffff;
  --border: rgba(22, 21, 28, 0.09);
  --border-strong: rgba(22, 21, 28, 0.16);
  --text-primary: #16151c;
  --text-secondary: rgba(22, 21, 28, 0.64);
  --text-muted: rgba(22, 21, 28, 0.42);
  /* Sampled directly from the uploaded header logo (navy -> vivid blue) —
     see ax12-private/site-settings.php's upload pipeline. If the logo
     changes again, re-sample and update these four by hand. */
  --accent: #348ef0;
  --accent-ink: #081c46;
  --accent-soft: rgba(52, 142, 240, 0.08);
  --accent-2: #0ea5e9;
  --radius: 16px;
  --max-width: 1140px;
  --journey-accent: #348ef0;
  --journey-tint: rgba(52, 142, 240, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  /* Root-level only (not on .journey) — keeps decorative blobs from causing
     horizontal scroll without constraining position:sticky inside the page.
     `clip`, not `hidden`: when <html> has no explicit overflow, the UA
     propagates <body>'s overflow-x to the viewport itself — so `hidden`
     here would also clip position:fixed descendants (the pricing page's
     cart drawer) anywhere on the site. `clip` suppresses the same
     decorative overflow on body's own box without that propagation. */
  overflow-x: clip;
  background: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 0.9rem;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
/* .btn's explicit `display` otherwise beats the UA [hidden] rule at equal
   specificity — any button toggled via the hidden attribute needs this. */
.btn[hidden] { display: none !important; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-primary { background: var(--text-primary); color: var(--bg); }
.btn-primary:hover { transform: translateY(-1px); background: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }

/* ---------- Progressive-enhancement reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in-view { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.7,.2,1); }
.js .reveal-stagger.in-view > * { opacity: 1; transform: none; }
.js .reveal-stagger.in-view > *:nth-child(2) { transition-delay: 0.08s; }
.js .reveal-stagger.in-view > *:nth-child(3) { transition-delay: 0.16s; }
.js .reveal-stagger.in-view > *:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  [data-parallax] { transform: none !important; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.1rem; text-decoration: none; letter-spacing: -0.01em; }
.logo-mark {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800; color: #fff;
}

/* An admin-uploaded logo (see site-settings.js) replaces .logo-mark
   entirely — sized to roughly fill the 72px-tall header regardless of the
   uploaded image's native dimensions. */
.logo-img { height: 48px; max-width: 280px; width: auto; display: block; object-fit: contain; }

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a { font-size: 0.92rem; font-weight: 500; text-decoration: none; color: var(--text-secondary); transition: color 0.15s ease; }
.main-nav a:hover { color: var(--text-primary); }

.nav-actions { display: flex; align-items: center; gap: 1.5rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border-strong); border-radius: 8px; width: 40px; height: 40px; color: var(--text-primary); cursor: pointer; }

/* Admin profile chip — only ever shown to a browser with a live admin
   session (see admin-nav.js); every other visitor never sees this exist.
   Just the avatar circle, like any app's account menu — the dropdown (not
   a visible text label) is what says what it's for. */
.admin-chip { position: relative; }
.admin-chip[hidden] { display: none !important; }
.admin-chip-btn {
  display: flex; align-items: center; justify-content: center; background: none; border: none;
  padding: 0; cursor: pointer; border-radius: 50%;
}
.admin-chip-btn:hover .admin-chip-avatar { box-shadow: 0 0 0 2px var(--accent); }
/* Kept for screen readers — this button's accessible name — not shown visually. */
.admin-chip-label {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.admin-chip-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 0.92rem; font-weight: 800;
  transition: box-shadow 0.15s ease;
}
/* A Google account picture fills the circle; the text initial is the
   fallback when there isn't one. */
.admin-chip-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.admin-chip-who {
  padding: 0.45rem 0.7rem 0.5rem; font-size: 0.76rem; color: var(--text-muted);
  border-bottom: 1px solid var(--border); margin-bottom: 0.2rem;
  max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.admin-chip-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; min-width: 170px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(22, 21, 28, 0.14); padding: 0.4rem; display: flex; flex-direction: column; gap: 0.15rem;
}
.admin-chip-menu[hidden] { display: none !important; }
.admin-chip-menu a, .admin-chip-menu button {
  display: block; width: 100%; text-align: left; padding: 0.55rem 0.7rem; border-radius: 8px; border: none;
  background: none; font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); text-decoration: none; cursor: pointer;
}
.admin-chip-menu a:hover, .admin-chip-menu button:hover { background: var(--bg-soft); color: var(--text-primary); }

/* ---------- Hero ---------- */
.hero { padding: 6.5rem 0 5rem; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -220px; right: -220px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(52, 142, 240, 0.14), transparent 70%); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; bottom: -240px; left: -180px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.12), transparent 70%); pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); line-height: 1.07; letter-spacing: -0.02em; margin: 0 0 1.3rem; max-width: 840px; }
.hero h1 span { color: var(--accent); }
.hero p.lead { font-size: 1.15rem; color: var(--text-secondary); max-width: 620px; margin: 0 0 2.2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 2.5rem; }
.hero-stat-num { font-size: 1.6rem; font-weight: 800; }
.hero-stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ---------- Section shells ---------- */
section { padding: 5.5rem 0; border-top: 1px solid var(--border); }
.hero { border-top: none; }
.section-head { max-width: 640px; margin: 0 0 3rem; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.015em; margin: 0 0 0.9rem; }
.section-head p { color: var(--text-secondary); font-size: 1.02rem; margin: 0; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem 1.75rem; transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(22,21,28,0.06); }
.service-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem;
}
.service-card h3 { font-size: 1.15rem; margin: 0 0 0.6rem; }
.service-card p { color: var(--text-secondary); font-size: 0.92rem; margin: 0 0 1rem; }
.service-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.service-list li { font-size: 0.85rem; color: var(--text-muted); padding-left: 1.1rem; position: relative; }
.service-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.why-card .num { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); margin-bottom: 0.6rem; }
.why-card h3 { font-size: 1.05rem; margin: 0 0 0.5rem; }
.why-card p { font-size: 0.88rem; color: var(--text-secondary); margin: 0; }

/* =====================================================================
   Journey — scrollytelling: ideation -> ux -> coding -> delivery -> devops
   ===================================================================== */
/* No overflow:hidden here — it would clip the scroll container and break
   position:sticky on .journey-sticky below. The blurred blobs are soft
   enough that a little bleed past this section's edges is not visible. */
.journey { position: relative; padding-top: 5.5rem; }
.journey-head { margin-bottom: 3.5rem; }

.journey-bg-blob {
  position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; z-index: 0;
  transition: background 0.6s ease;
}
.journey-bg-blob-a { top: 10%; right: -10%; width: 480px; height: 480px; background: var(--journey-tint); }
.journey-bg-blob-b { top: 60%; left: -14%; width: 420px; height: 420px; background: var(--journey-tint); }

.journey-rail { position: relative; z-index: 1; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4rem; }

.journey-sticky { position: sticky; top: 110px; height: fit-content; }
.journey-sticky-kicker {
  display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--journey-accent); margin-bottom: 1.25rem; transition: color 0.5s ease;
}

.journey-visual {
  position: relative; aspect-ratio: 1 / 1; max-width: 360px;
  border-radius: 24px; border: 1px solid var(--border); background: var(--bg-card);
  box-shadow: 0 30px 70px rgba(22, 21, 28, 0.07);
  margin-bottom: 2rem;
}
.journey-visual-panel {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.6s ease; border-radius: 24px;
}
.journey-visual-panel.is-active { opacity: 1; }
.journey-visual-panel svg { width: 62%; height: 62%; }

.journey-progress { display: flex; flex-direction: row; align-items: center; gap: 0.6rem; }
.journey-progress-track {
  position: relative; width: 100%; height: 4px; border-radius: 999px; background: var(--border);
  overflow: hidden;
}
.journey-progress-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--journey-accent); border-radius: 999px; transition: width 0.4s ease, background 0.5s ease;
}
.journey-dots { display: flex; gap: 0.45rem; }
.journey-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); transition: background 0.4s ease, transform 0.4s ease; }
.journey-dot.is-active { background: var(--journey-accent); transform: scale(1.2); }

.journey-steps { display: flex; flex-direction: column; gap: 10rem; padding: 2rem 0 6rem; }
.journey-step {
  padding-top: 1rem; opacity: 0.35; transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.journey-step.is-active { opacity: 1; transform: none; }

.journey-step-num {
  font-size: 0.85rem; font-weight: 800; color: var(--journey-accent); transition: color 0.5s ease;
  margin-bottom: 0.9rem; display: block;
}
.journey-step h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.015em; margin: 0 0 1rem; }
.journey-step p { font-size: 1.02rem; color: var(--text-secondary); max-width: 480px; margin: 0 0 1.5rem; }

.journey-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.journey-tags li {
  font-size: 0.88rem; color: var(--text-secondary); padding-left: 1.3rem; position: relative;
}
.journey-tags li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 50%;
  background: var(--journey-accent); transition: background 0.5s ease;
}

.journey-outro { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; text-align: center; padding-top: 1rem; }
.journey-outro p { font-size: 1.1rem; color: var(--text-secondary); }
.journey-outro strong { color: var(--text-primary); }

/* ---------- Featured work ---------- */
.work-card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 2.75rem;
  box-shadow: 0 30px 70px rgba(22, 21, 28, 0.05);
}
.work-card .tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--accent-2); background: rgba(14, 165, 233, 0.1); border-radius: 999px; padding: 0.3rem 0.75rem; margin-bottom: 1rem;
}
.work-card h3 { font-size: 1.6rem; margin: 0 0 0.8rem; letter-spacing: -0.01em; }
.work-card p { color: var(--text-secondary); margin: 0 0 1.5rem; }
.work-stats { display: flex; gap: 2rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.work-stats div { min-width: 90px; }
.work-stats .n { font-size: 1.3rem; font-weight: 800; }
.work-stats .l { font-size: 0.78rem; color: var(--text-muted); }

.work-visual {
  background: linear-gradient(160deg, rgba(52, 142, 240, 0.12), rgba(14, 165, 233, 0.08));
  border: 1px solid var(--border); border-radius: 16px; min-height: 260px;
  display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.work-visual-inner { text-align: center; }
.work-visual-inner .wv-logo { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.01em; }
.work-visual-inner .wv-sub { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.4rem; }

/* ---------- Contact ---------- */
.contact-card {
  background: linear-gradient(135deg, rgba(52, 142, 240, 0.08), rgba(14, 165, 233, 0.06));
  border: 1px solid var(--border); border-radius: 20px; padding: 3.5rem; text-align: center;
}
.contact-card h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 1rem; letter-spacing: -0.015em; }
.contact-card p { color: var(--text-secondary); max-width: 520px; margin: 0 auto 2rem; }
.contact-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.contact-detail { margin-top: 2rem; font-size: 0.88rem; color: var(--text-muted); }
.contact-detail a { color: var(--text-secondary); text-decoration: none; }
.contact-detail a:hover { color: var(--accent-ink); }
.contact-sep { margin: 0 0.6rem; color: var(--text-muted); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 2.5rem 0; }
footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-legal { font-size: 0.82rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.82rem; color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--text-primary); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .work-card { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, auto); gap: 1.5rem; }

  .journey-rail { grid-template-columns: 1fr; gap: 0; }
  .journey-sticky { position: static; display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1rem; }
  .journey-visual { width: 110px; max-width: 110px; margin-bottom: 0; flex-shrink: 0; }
  .journey-progress { flex-direction: column; align-items: flex-start; gap: 0.75rem; flex: 1; }
  .journey-steps { gap: 4rem; padding: 1rem 0 3rem; }
  .journey-step { opacity: 1; transform: none; }
}

@media (max-width: 680px) {
  .main-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    align-items: flex-start; gap: 1rem; background: var(--bg); padding: 1.25rem 24px;
    border-bottom: 1px solid var(--border);
  }
  .main-nav.is-open { display: flex; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-actions .btn-primary { display: none; }
  /* An admin-uploaded logo can be up to 280px wide (see .logo-img) — too
     wide for a phone header alongside the hamburger. Shrink it; width
     scales with height since .logo-img sets width:auto. */
  .logo-img { height: 32px; max-width: 150px; }
  .admin-chip-menu { right: -8px; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .hero { padding: 4.5rem 0 3.5rem; }
  .contact-card { padding: 2.25rem 1.5rem; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
  .journey-sticky { flex-direction: column; align-items: flex-start; }
  .journey-visual { width: 90px; max-width: 90px; }
}

/* ---------- Policy pages (Privacy Policy, Terms & Conditions) ---------- */
.policy-hero { padding: 5.5rem 0 2.5rem; border-top: none; }
.policy-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.02em; margin: 0 0 0.6rem; }
.policy-hero .lead { font-size: 0.95rem; color: var(--text-muted); margin: 0; }

.policy-section { padding-top: 0; }
.policy-content { max-width: 760px; }
.policy-content > p { font-size: 0.98rem; line-height: 1.7; color: var(--text-secondary); margin: 0 0 1.5rem; }
.policy-content h2 {
  font-size: 1.2rem; letter-spacing: -0.01em; margin: 2.5rem 0 1rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.policy-content h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.policy-content ul { margin: 0 0 1.5rem; padding-left: 1.3rem; display: flex; flex-direction: column; gap: 0.6rem; }
.policy-content li { font-size: 0.94rem; line-height: 1.65; color: var(--text-secondary); }
.policy-content li strong { color: var(--text-primary); }
.policy-content a { color: var(--accent-ink); text-decoration: underline; }
