/* Components — VAYA LABS PREMIUM
   Double-Bezel Architecture | Magnetic Interactions | Fluid Motion
   Soft Structuralism Vibe + Asymmetrical Bento Layout */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-up-lg {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes edge-flow { to { stroke-dashoffset: -12; } }
@keyframes ping { 0% { opacity: .85; transform: scale(.55); } 70% { opacity: 0; transform: scale(1.15); } 100% { opacity: 0; } }
@keyframes draw-in { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ── Scroll Reveal Utility ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--duration-glacial) var(--ease-out-expo), transform var(--duration-glacial) var(--ease-out-expo); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }
.reveal-delay-5 { transition-delay: 500ms; }
.reveal-delay-6 { transition-delay: 600ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ═══════════════════════════════════════════════════════
   HEADER — Floating Glass Pill
   ══════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: var(--space-5);
  z-index: var(--z-sticky);
  pointer-events: none; /* allow clicks through to nav-bar */
}
.nav-bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-3) var(--space-5);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid var(--line-hairline);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--duration-base) var(--ease-spring), transform var(--duration-base) var(--ease-spring), background var(--duration-base) var(--ease-spring), border-color var(--duration-base) var(--ease-spring);
}
.nav-bar:hover { box-shadow: var(--shadow-card-hover); }
.nav-bar:has(.nav-links.open) { border-radius: var(--r-pill) var(--r-pill) 0 0; }

/* Scrolled state — elevated */
.site-header.scrolled .nav-bar {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--line-soft);
  box-shadow: var(--shadow-card-hover);
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--r-control);
  transition: background var(--duration-fast) var(--ease-spring);
}
.logo-link:hover { background: var(--surface-2); }
.logo-icon { height: 36px; width: 36px; display: block; flex-shrink: 0; }
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-left: 4px;
  vertical-align: 1px;
}

/* Desktop Nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.nav-links a {
  color: var(--ink-muted);
  font-size: 14.5px;
  font-weight: 500;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--r-control);
  transition: color var(--duration-fast) var(--ease-spring), background-color var(--duration-fast) var(--ease-spring);
}
.nav-links a:not(.btn):hover { color: var(--ink); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav-links a.btn { color: var(--white); }
.nav-links a.btn:hover { color: var(--white); }

/* Nav Primary CTA — single, clean */
.nav-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 44px;
  padding: var(--space-2) var(--space-5);
  background: var(--brand-blue);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-spring), transform var(--duration-fast) var(--ease-spring), box-shadow var(--duration-base) var(--ease-spring);
  position: relative;
  overflow: hidden;
}
.nav-cta-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 50%);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-spring);
}
.nav-cta-primary:hover { background: var(--brand-blue-bright); box-shadow: 0 8px 24px rgba(30, 95, 216, 0.35), 0 2px 8px rgba(30, 95, 216, 0.2); }
.nav-cta-primary:hover::before { opacity: 1; }
.nav-cta-primary:active { transform: scale(0.97); box-shadow: 0 2px 8px rgba(30, 95, 216, 0.3); }
.nav-cta-primary:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }

/* Mobile-only CTA in drawer */
.nav-cta-mobile { display: none; }

/* Mobile Menu Button — Hamburger Morph */
.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line-hairline);
  border-radius: var(--r-control);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-spring), border-color var(--duration-fast) var(--ease-spring);
}
.menu-btn:hover { background: var(--surface-2); border-color: var(--line-soft); }
.menu-btn:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.menu-btn svg { width: 22px; height: 22px; stroke-width: 2; transition: transform var(--duration-base) var(--ease-spring), opacity var(--duration-base) var(--ease-spring); }
.menu-btn[aria-expanded="true"] .hamburger-line-1 { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .hamburger-line-2 { opacity: 0; }
.menu-btn[aria-expanded="true"] .hamburger-line-3 { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: calc(100% + var(--space-2));
    left: var(--space-5);
    right: var(--space-5);
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border: 1px solid var(--line-hairline);
    border-radius: 0 0 var(--r-card-lg) var(--r-card-lg);
    padding: var(--space-4) var(--space-5);
    box-shadow: var(--shadow-float);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
    transition: opacity var(--duration-base) var(--ease-spring), transform var(--duration-base) var(--ease-spring), visibility 0s var(--duration-base);
  }
  .nav-links.open { visibility: visible; opacity: 1; transform: translateY(0) scale(1); transition: opacity var(--duration-base) var(--ease-spring), transform var(--duration-base) var(--ease-spring); }
  .nav-links a { padding: var(--space-4) var(--space-3); border-top: 1px solid var(--line-hairline); text-align: left; }
  .nav-links a:first-child { border-top: none; }
  .nav-links .btn-small { margin-top: var(--space-3); width: 100%; text-align: center; }
  .nav-cta-primary { display: none; } /* Hidden on mobile — in drawer instead */
  .nav-cta-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: var(--space-3);
    border-top: 1px solid var(--line-hairline);
    padding-top: var(--space-3);
  }
  .site-header .nav-bar { position: relative; }
}

/* ═══════════════════════════════════════════════════════
   BUTTONS — Magnetic Island Architecture
   ══════════════════════════════════════════════════════ */
.btn {
  --btn-bg: var(--brand-blue);
  --btn-text: var(--white);
  --btn-icon-bg: rgba(0,0,0,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 52px;
  padding: var(--space-3) var(--space-7);
  background: var(--btn-bg);
  color: var(--btn-text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-spring), transform var(--duration-fast) var(--ease-spring), box-shadow var(--duration-base) var(--ease-spring);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 50%);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-spring);
}
.btn:hover { background: var(--brand-blue-bright); box-shadow: 0 8px 24px rgba(30, 95, 216, 0.35), 0 2px 8px rgba(30, 95, 216, 0.2); }
.btn:hover::before { opacity: 1; }
.btn:active { transform: scale(0.97); box-shadow: 0 2px 8px rgba(30, 95, 216, 0.3); }
.btn:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* Trailing Icon Wrapper — Button-in-Button */
.btn .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--btn-icon-bg);
  flex-shrink: 0;
  margin-left: var(--space-1);
  margin-right: calc(var(--space-1) * -1);
  transition: transform var(--duration-base) var(--ease-spring), background var(--duration-base) var(--ease-spring);
}
.btn:hover .btn-icon { transform: translateX(3px) scale(1.05); background: rgba(0,0,0,0.18); }
.btn svg { width: 18px; height: 18px; stroke-width: 2.5; }

/* Secondary Button */
.btn-secondary {
  --btn-bg: transparent;
  --btn-text: var(--ink);
  --btn-icon-bg: var(--surface-3);
  border: 1.5px solid var(--line-soft);
  background: var(--surface-4);
  box-shadow: var(--shadow-ambient);
}
.btn-secondary:hover {
  --btn-bg: var(--surface-2);
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: var(--shadow-card);
  background: var(--surface-2);
}
.btn-secondary:active { transform: scale(0.97); }
.btn-secondary .btn-icon { background: var(--surface-3); }
.btn-secondary:hover .btn-icon { background: var(--line-soft); }

/* Ghost / Text Link Button */
.btn-ghost {
  --btn-bg: transparent;
  --btn-text: var(--brand-blue);
  padding: var(--space-2) var(--space-4);
  min-height: 44px;
  font-weight: 500;
}
.btn-ghost:hover { --btn-text: var(--brand-blue-bright); background: transparent; box-shadow: none; }
.btn-ghost:active { transform: scale(0.98); }

/* Size Variants */
.btn-sm { min-height: 44px; padding: var(--space-2) var(--space-5); font-size: 14px; }
.btn-sm .btn-icon { width: 30px; height: 30px; }
.btn-lg { min-height: 60px; padding: var(--space-4) var(--space-8); font-size: 16px; }
.btn-lg .btn-icon { width: 40px; height: 40px; }
.btn-full { width: 100%; }

/* Link More — Underline Accent */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: var(--space-2) 0;
  position: relative;
}
.link-more::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-base) var(--ease-spring);
}
.link-more:hover::after { transform: scaleX(1); transform-origin: left; }
.link-more svg { width: 16px; height: 16px; stroke-width: 2.5; transition: transform var(--duration-base) var(--ease-spring); }
.link-more:hover svg { transform: translateX(3px); }

/* ═══════════════════════════════════════════════════════
   HERO — Light Surface with Soft Glow
   ══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  background: var(--white);
  overflow: hidden;
  padding: var(--space-9) 0 var(--space-8);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 800px 400px at 85% 15%, rgba(30, 95, 216, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-8);
  align-items: start;
}
.hero-content { position: relative; z-index: 2; }
.hero .eyebrow { margin-bottom: var(--space-5); }
.hero h1 { margin-bottom: var(--space-5); }
.hero .lead { margin-top: 0; margin-bottom: var(--space-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.hero .cap-tags { margin-top: var(--space-7); font-size: 11px; font-weight: 600; letter-spacing: 0.15em; color: var(--text-muted); }

/* Hero Flow Diagram */
.hero-flow { margin: 0; align-self: start; }
.hero-flow svg { width: 100%; height: auto; display: block; }
.hero-flow .flow-node { fill: var(--surface-2); stroke: var(--line-hairline); stroke-width: 1; }
.hero-flow .flow-accent { fill: var(--brand-blue); }
.hero-flow .flow-label { fill: var(--text-secondary); font: 600 12px var(--font-body); }
.hero-flow .flow-accent-text { fill: var(--white); font: 600 12px var(--font-body); }
.hero-flow .flow-edge { stroke: var(--brand-blue); stroke-width: 2; fill: none; stroke-dasharray: 3 9; animation: edge-flow .9s linear infinite; }
.hero-flow .flow-ping { stroke: var(--brand-blue); stroke-width: 2; fill: none; transform-box: fill-box; transform-origin: center; animation: ping 1.9s ease-out infinite; }
.hero-flow .flow-ping.p2 { animation-delay: .95s; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-6); padding-top: var(--space-6); }
  .hero-flow { order: -1; max-width: 560px; margin: 0 auto; }
}

/* ═══════════════════════════════════════════════════════
   SUBPAGE HERO
   ══════════════════════════════════════════════════════ */
.page-hero {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-hairline);
  padding: var(--space-8) 0 var(--space-7);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .eyebrow { margin-bottom: var(--space-4); }
.page-hero h1 { margin-bottom: var(--space-4); max-width: 18ch; }
.page-hero .lead { margin-top: 0; max-width: 50ch; }
.page-hero .hero-actions { margin-top: var(--space-6); }

/* ═══════════════════════════════════════════════════════
   PRODUCT MARQUEE — Premium
   ══════════════════════════════════════════════════════ */
.prod-marquee {
  overflow: hidden;
  border-top: 1px solid var(--line-hairline);
  border-bottom: 1px solid var(--line-hairline);
  background: var(--surface-1);
  padding: var(--space-3) 0;
}
.prod-marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
  will-change: transform;
}
.prod-marquee span {
  font: 600 13px/1 var(--font-body);
  color: var(--ink-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0 var(--space-6);
  white-space: nowrap;
}
.prod-marquee span + span::before { content: "·"; margin-right: var(--space-6); color: var(--brand-blue); opacity: 0.5; }

/* ═══════════════════════════════════════════════════════
   STATS — Proof Strip (Asymmetrical Bento)
   ══════════════════════════════════════════════════════ */
.stats { padding-bottom: var(--space-7); }
.stats .wrap { border-top: 1px solid var(--line-hairline); padding-top: var(--space-7); }
.stats .eyebrow { margin-bottom: var(--space-6); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line-hairline);
  border-radius: var(--r-card-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--white);
}
.stat {
  padding: var(--space-7) var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-right: 1px solid var(--line-hairline);
  transition: background var(--duration-base) var(--ease-spring);
}
.stat:last-child { border-right: none; }
.stat:hover { background: var(--surface-1); }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--space-3);
  font-variant-numeric: tabular-nums;
}
.stat span { font: 500 15px/1.5 var(--font-body); color: var(--text-secondary); max-width: 220px; }

@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3) { border-right: 1px solid var(--line-hairline); }
}
@media (max-width: 600px) {
  .stat-grid { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line-hairline); }
  .stat:last-child { border-bottom: none; }
}

/* ═══════════════════════════════════════════════════════
   METHOD STEPS — Horizontal Strip
   ══════════════════════════════════════════════════════ */
.method { padding-top: var(--space-7); }
.method-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-6);
}
.method-steps li {
  padding-top: var(--space-5);
  border-top: 3px solid var(--brand-blue);
  border-radius: var(--r-card) var(--r-card) 0 0;
  background: var(--white);
  box-shadow: var(--shadow-ambient);
  transition: transform var(--duration-base) var(--ease-spring), box-shadow var(--duration-base) var(--ease-spring);
}
.method-steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.method-steps strong { display: block; font-family: var(--font-display); font-size: 16px; color: var(--ink); margin-bottom: var(--space-2); }
.method-steps span { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

@media (max-width: 1000px) { .method-steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .method-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .method-steps { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════
   SYSTEMS DIAGRAM — Premium
   ══════════════════════════════════════════════════════ */
.sys-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-9); align-items: start; }
.sys-figure { margin: 0; max-width: 520px; }
.sys-figure svg { width: 100%; height: auto; }
.sys-node rect { fill: var(--surface-2); stroke: var(--line-hairline); stroke-width: 1; rx: 16; }
.sys-node text { fill: var(--ink); font-family: var(--font-body); font-size: 15px; font-weight: 600; text-anchor: middle; }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-in 0.9s var(--ease-out-expo) forwards; }
.draw-link { animation-delay: 0.6s; }
.draw-link.l2 { animation-delay: 0.9s; }
.draw-link.l3 { animation-delay: 1.2s; }
.node-in { opacity: 0; animation: fade-in 0.6s var(--ease-out-expo) forwards; animation-delay: 1.4s; }
.node-in.n2 { animation-delay: 1.6s; }
.node-in.n3 { animation-delay: 1.8s; }
.node-in.n4 { animation-delay: 2.0s; }
.node-in.n5 { animation-delay: 2.2s; }

@media (max-width: 900px) { .sys-grid { grid-template-columns: 1fr; gap: var(--space-7); } }

/* ═══════════════════════════════════════════════════════
   SERVICE CARDS — Double Bezel
   ══════════════════════════════════════════════════════ */
.svc-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-7);
}
.svc-card {
  position: relative;
  text-decoration: none;
  /* Outer Shell */
  background: var(--surface-3);
  border-radius: var(--r-shell);
  padding: var(--space-1.5); /* 6px shell */
  box-shadow: var(--shadow-ambient);
  transition: transform var(--duration-base) var(--ease-spring), box-shadow var(--duration-base) var(--ease-spring);
}
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}
.svc-card:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }

/* Inner Core */
.svc-card > div {
  background: var(--surface-4);
  border-radius: var(--r-core);
  padding: var(--space-6);
  border: 1px solid var(--line-hairline);
  box-shadow: var(--shadow-inner);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color var(--duration-base) var(--ease-spring);
}
.svc-card:hover > div { border-color: var(--brand-blue); }
.svc-card h3 { font-size: 18px; margin-bottom: var(--space-3); color: var(--ink); }
.svc-card p { font-size: 15px; color: var(--text-secondary); margin-bottom: var(--space-4); flex: 1; }
.svc-card .go {
  margin-top: auto;
  padding-top: var(--space-4);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.svc-card .go svg { width: 16px; height: 16px; stroke-width: 2.5; transition: transform var(--duration-base) var(--ease-spring); }
.svc-card:hover .go svg { transform: translateX(4px); }

@media (max-width: 1000px) { .svc-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .svc-cards { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════
   STUDIO LIST — Capabilities Grid
   ══════════════════════════════════════════════════════ */
.studio-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-6);
}
.studio-list li {
  background: var(--white);
  border: 1px solid var(--line-hairline);
  border-radius: var(--r-card);
  padding: var(--space-6);
  box-shadow: var(--shadow-ambient);
  transition: transform var(--duration-base) var(--ease-spring), box-shadow var(--duration-base) var(--ease-spring), border-color var(--duration-base) var(--ease-spring);
}
.studio-list li:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--line-soft); }
.studio-list h3 { font-size: 17px; margin-bottom: var(--space-2); color: var(--ink); }
.studio-list p { font-size: 15px; color: var(--text-secondary); margin: 0; }

@media (max-width: 700px) { .studio-list { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════
   TOOLS STRIP
   ══════════════════════════════════════════════════════ */
.tools {
  border-top: 1px solid var(--line-hairline);
  padding: var(--space-5) 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════
   PROBLEM / BEFORE-AFTER PAIRS
   ══════════════════════════════════════════════════════ */
.on-soft { background: var(--surface-2); }
.section-intro { margin-top: var(--space-4); font-size: 18px; color: var(--text-secondary); max-width: 65ch; }
.pairs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin-top: var(--space-7); }
.pairs-h { font-size: 13px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: var(--space-3); }
.pair-before p, .pair-after p { margin-top: var(--space-3); font-size: 16px; line-height: 1.7; }
.pair-before p { color: var(--text-secondary); }
.pair-after { border-left: 3px solid var(--brand-blue); padding-left: var(--space-5); }
.pair-after p { color: var(--ink); }

@media (max-width: 700px) {
  .pairs { grid-template-columns: 1fr; }
  .pairs-h { display: none; }
  .pair-before::before, .pair-after::before {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--space-2);
  }
  .pair-before::before { content: "Before"; }
  .pair-after::before { content: "After"; }
  .pair-after { border-left: none; padding-left: 0; border-top: 3px solid var(--brand-blue); padding-top: var(--space-4); margin-top: var(--space-4); }
}

/* ═══════════════════════════════════════════════════════
   SERVICE PILLARS (Services Page)
   ══════════════════════════════════════════════════════ */
.pillar { padding: var(--space-8) 0; border-bottom: 1px solid var(--line-hairline); }
.pillar:last-child { border-bottom: none; }
.pillar h2 { font-size: clamp(28px, 3.5vw, 36px); margin-bottom: var(--space-3); }
.pillar-lead { font-size: 18px; color: var(--text-secondary); margin-top: var(--space-3); max-width: 55ch; }
.pillar-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: var(--space-7); align-items: start; margin-top: var(--space-6); }
.pillar-list { margin: 0; padding-left: var(--space-6); font-size: 16px; line-height: 1.85; color: var(--ink); }
.pillar-list li { position: relative; padding-left: var(--space-3); margin-bottom: var(--space-3); }
.pillar-list li::before { content: ""; position: absolute; left: -12px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-blue); opacity: 0.5; }
.pillar-cta {
  background: var(--surface-2);
  border: 1px solid var(--line-hairline);
  border-radius: var(--r-card-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-ambient);
}
.pillar-cta p { font-size: 15px; color: var(--text-secondary); margin-bottom: var(--space-4); }
.pillar-cta .btn { width: 100%; }

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

/* ═══════════════════════════════════════════════════════
   AUTOMATION FLOW DIAGRAM
   ══════════════════════════════════════════════════════ */
.flow {
  margin-top: var(--space-6);
  background: var(--white);
  border: 1px solid var(--line-hairline);
  border-radius: var(--r-card-lg);
  padding: var(--space-6);
  overflow-x: auto;
  box-shadow: var(--shadow-card);
}
.flow figcaption { margin-top: var(--space-4); font-size: 13px; color: var(--text-muted); }
.flow svg { width: 100%; min-width: 600px; height: auto; }
.flow .flow-node { fill: var(--surface-2); stroke: var(--line-hairline); stroke-width: 1; }
.flow .flow-label { fill: var(--text-secondary); font: 600 12px var(--font-body); }
.flow .flow-edge { stroke: var(--brand-blue); stroke-width: 2; fill: none; }
.flow .flow-accent { fill: var(--brand-blue); }
.flow .flow-accent-text { fill: var(--white); font: 600 12px var(--font-body); }

/* ═══════════════════════════════════════════════════════
   PRODUCTS BENTO GRID — Asymmetrical Layout
   ══════════════════════════════════════════════════════ */
.on-band { background: var(--surface-2); }
.on-band h2 { color: var(--ink); }
.on-band .section-intro { color: var(--text-secondary); }
.prod-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-5); margin-top: var(--space-7); }

/* Double-Bezel Product Card */
.prod-card {
  grid-column: span 3;
  /* Outer Shell */
  background: var(--surface-3);
  border-radius: var(--r-shell);
  padding: var(--space-1.5);
  box-shadow: var(--shadow-ambient);
  transition: transform var(--duration-base) var(--ease-spring), box-shadow var(--duration-base) var(--ease-spring);
  display: flex;
  flex-direction: column;
}
.prod-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card-hover); }

.prod-card-inner {
  background: var(--surface-4);
  border-radius: var(--r-core);
  border: 1px solid var(--line-hairline);
  box-shadow: var(--shadow-inner);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color var(--duration-base) var(--ease-spring);
}
.prod-card:hover .prod-card-inner { border-color: var(--brand-blue); }

.prod-card h3 { font-size: 22px; margin-bottom: var(--space-3); color: var(--ink); }
.shot {
  width: 100%; height: auto; aspect-ratio: 16/10;
  border-radius: var(--r-control);
  border: 1px solid var(--line-hairline);
  background: var(--surface-2);
  margin-bottom: var(--space-5);
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-spring), border-color var(--duration-base) var(--ease-spring);
}
.prod-card:hover .shot { transform: scale(1.01); border-color: var(--brand-blue); }
.prod-card .outcome { color: var(--text-secondary); font-size: 15px; line-height: 1.6; margin-bottom: var(--space-3); }
.prod-tag { margin-top: var(--space-3); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.prod-card .proves { margin-top: var(--space-4); font-size: 14.5px; color: var(--text-secondary); line-height: 1.6; }
.prod-card .proves strong { color: var(--ink); font-weight: 600; }
.prod-card .domain {
  margin-top: auto;
  padding-top: var(--space-4);
  color: var(--brand-blue);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  transition: color var(--duration-fast) var(--ease-spring);
}
.prod-card:hover .domain { color: var(--brand-blue-bright); }

/* Bento Asymmetry — Homepage only */
.prod-bento .prod-card { grid-column: span 6; }
.prod-bento .prod-card:first-child { grid-column: span 8; }
.prod-bento .prod-card:nth-child(2) { grid-column: span 4; }
.prod-bento .prod-card:nth-child(2) .shot { object-fit: cover; height: 100%; min-height: 320px; }

@media (max-width: 1100px) {
  .prod-card { grid-column: span 6; }
  .prod-bento .prod-card, .prod-bento .prod-card:first-child, .prod-bento .prod-card:nth-child(2) { grid-column: span 6; }
}
@media (max-width: 700px) {
  .prod-card { grid-column: span 12; }
  .prod-bento .prod-card:nth-child(2) .shot { min-height: 200px; }
}

/* ═══════════════════════════════════════════════════════
   WORK CASE STUDIES
   ══════════════════════════════════════════════════════ */
.work-case {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-9);
  align-items: center;
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--line-hairline);
}
.work-case:last-child { border-bottom: none; }
.work-case.reverse { direction: rtl; }
.work-case.reverse > * { direction: ltr; }
.work-case figure { margin: 0; border-radius: var(--r-card-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.work-case .shot { width: 100%; height: auto; border: none; background: var(--surface-2); transition: transform var(--duration-slow) var(--ease-spring); }
.work-case:hover .shot { transform: scale(1.015); }
.work-case .prod-tag { color: var(--text-muted); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0; margin-bottom: var(--space-2); }
.work-case h2 { font-size: clamp(28px, 3.5vw, 36px); margin-bottom: var(--space-3); }
.work-case .outcome { font-size: 16px; color: var(--text-secondary); line-height: 1.7; margin-bottom: var(--space-4); }
.work-case .proves { margin-top: var(--space-5); font-size: 17px; color: var(--ink); border-left: 3px solid var(--brand-blue); padding-left: var(--space-5); line-height: 1.6; }
.work-case .proves strong { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--space-2); }
.work-case .domain {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  font-weight: 600;
  font-size: 15px;
  color: var(--brand-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.work-case .domain svg { width: 16px; height: 16px; stroke-width: 2.5; transition: transform var(--duration-base) var(--ease-spring); }
.work-case:hover .domain svg { transform: translateX(4px); }

/* Order Box — Premium Card */
.order-box {
  margin-top: var(--space-5);
  background: var(--surface-2);
  border: 1px solid var(--line-hairline);
  border-radius: var(--r-card);
  padding: var(--space-5);
  box-shadow: var(--shadow-ambient);
}
.order-box p { margin: 0 0 var(--space-3); color: var(--text-secondary); line-height: 1.7; }
.order-box p:last-of-type { margin-bottom: var(--space-4); }
.order-box .btn { width: 100%; }

/* Proof Slot */
.proof-slot { display: none; }

@media (max-width: 900px) {
  .work-case, .work-case.reverse { grid-template-columns: 1fr; direction: ltr; }
  .work-case figure { max-width: 560px; margin: 0 auto; }
}

/* ═══════════════════════════════════════════════════════
   ABOUT GRID
   ══════════════════════════════════════════════════════ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-9); align-items: start; }
.about-grid > * { min-width: 0; }
.about-grid .logo-tagline { margin-top: 0; max-width: min(420px, 100%); border-radius: var(--r-card-lg); box-shadow: var(--shadow-card); }
.principle-list { display: grid; gap: var(--space-5); margin-top: var(--space-6); }
.principle-list > div { background: var(--white); border: 1px solid var(--line-hairline); border-radius: var(--r-card); padding: var(--space-6); box-shadow: var(--shadow-ambient); transition: transform var(--duration-base) var(--ease-spring), box-shadow var(--duration-base) var(--ease-spring); }
.principle-list > div:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.principle-list h3 { font-size: 18px; margin-bottom: var(--space-2); color: var(--ink); }
.principle-list p { font-size: 15px; color: var(--text-secondary); margin: 0; }

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

/* ═══════════════════════════════════════════════════════
   PROCESS STEPS — Flow Line
   ══════════════════════════════════════════════════════ */
.process {
  margin: var(--space-8) 0 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  position: relative;
}
.process::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--line-hairline) 20%, var(--line-hairline) 80%, transparent);
  z-index: 0;
}
.process li { position: relative; padding-top: var(--space-9); z-index: 1; }
.process li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px var(--white), var(--shadow-card);
  z-index: 2;
}
.process { counter-reset: step; }
.process h3 { font-size: 19px; margin-bottom: var(--space-2); color: var(--ink); text-align: center; }
.process p { font-size: 15px; color: var(--text-secondary); text-align: center; line-height: 1.7; }

@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; gap: var(--space-8); }
  .process::before { top: 24px; bottom: 0; left: 24px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, transparent, var(--line-hairline) 15%, var(--line-hairline) 85%, transparent); }
  .process li { padding-top: 0; padding-left: var(--space-9); text-align: left; }
  .process li::before { left: 0; transform: none; top: 0; }
  .process h3, .process p { text-align: left; }
}

/* ═══════════════════════════════════════════════════════
   CONTACT — Dual CTA + Form
   ══════════════════════════════════════════════════════ */
.cta-book {
  background: var(--surface-2);
  border: 1px solid var(--line-hairline);
  border-radius: var(--r-card-lg);
  padding: var(--space-7);
  margin-bottom: var(--space-7);
  box-shadow: var(--shadow-card);
}
.cta-book h2 { font-size: 24px; margin-bottom: var(--space-3); }
.cta-book p { font-size: 16px; color: var(--text-secondary); margin-bottom: var(--space-5); max-width: 50ch; }
.cta-book .hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.cta-book .sla { margin-top: var(--space-4); font-size: 14px; color: var(--text-muted); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-9); align-items: start; margin-top: var(--space-3); }
.contact-copy h2 { margin-bottom: var(--space-4); }
.contact-copy p { margin-top: var(--space-4); font-size: 17px; color: var(--text-secondary); }
.contact-copy .mail { color: var(--brand-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.contact-copy .sla { font-size: 14px; color: var(--text-muted); margin-top: var(--space-3); }

/* Form Panel — Double Bezel */
.form-panel {
  /* Outer Shell */
  background: var(--surface-3);
  border-radius: var(--r-shell);
  padding: var(--space-1.5);
  box-shadow: var(--shadow-card);
}
.form-panel-inner {
  background: var(--surface-4);
  border-radius: var(--r-core);
  border: 1px solid var(--line-hairline);
  box-shadow: var(--shadow-inner);
  padding: var(--space-7);
}

.field { margin-bottom: var(--space-5); }
.field > label, .field > span.label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-2);
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea,
.field select {
  width: 100%;
  min-height: 52px;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line-soft);
  border-radius: var(--r-control);
  transition: border-color var(--duration-fast) var(--ease-spring), box-shadow var(--duration-fast) var(--ease-spring), background var(--duration-fast) var(--ease-spring);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--brand-blue); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(30, 95, 216, 0.12);
  background: var(--white);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(197, 48, 48, 0.12); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--error); }
.err-text { display: block; margin-top: var(--space-2); font-size: 13px; color: var(--error); }
.err-text[hidden] { display: none; }

/* Service Pills */
.pills { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.pill-check { position: relative; }
.pill-check input { position: absolute; opacity: 0; width: 48px; height: 48px; margin: 0; cursor: pointer; }
.pill-check span {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: var(--space-2) var(--space-5);
  border: 1.5px solid var(--line-soft);
  border-radius: var(--r-pill);
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-spring);
}
.pill-check:hover span { border-color: var(--brand-blue); color: var(--ink); }
.pill-check:has(input:checked) span { background: var(--brand-blue); border-color: var(--brand-blue); color: var(--white); font-weight: 600; box-shadow: 0 4px 16px rgba(30, 95, 216, 0.3); }
.pill-check:has(input:focus-visible) span { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

/* Disclosure */
.form-panel-inner details { margin-bottom: var(--space-4); border: 1px solid var(--line-hairline); border-radius: var(--r-control); background: var(--surface-1); }
.form-panel-inner summary { cursor: pointer; padding: var(--space-4) var(--space-5); font-size: 14px; font-weight: 600; color: var(--ink); min-height: 48px; list-style: none; }
.form-panel-inner summary::-webkit-details-marker { display: none; }
.form-panel-inner summary::after { content: "+"; float: right; font-weight: 700; font-size: 22px; line-height: 1; color: var(--brand-blue); transition: transform var(--duration-base) var(--ease-spring); }
.form-panel-inner details[open] summary::after { transform: rotate(45deg); }
.form-panel-inner details .more { padding: 0 var(--space-5) var(--space-5); }

/* Consent */
.consent { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 14px; color: var(--text-secondary); cursor: pointer; }
.consent input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--brand-blue); }
.consent a { color: var(--brand-blue); text-decoration: underline; text-underline-offset: 2px; }

/* Form Status */
.form-status { margin-top: var(--space-4); padding: var(--space-3) var(--space-4); border-radius: var(--r-control); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: var(--space-3); }
.form-status[hidden] { display: none; }
.form-status.ok { background: #ecfdf5; color: var(--success); border: 1px solid #a7f3d0; }
.form-status.err { background: #fef2f2; color: var(--error); border: 1px solid #fecaca; }

/* Honeypot */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Submit Button */
.form-panel .btn { width: 100%; margin-top: var(--space-2); }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .form-panel-inner { padding: var(--space-5); } }

/* ═══════════════════════════════════════════════════════
   FOOTER — Light Band
   ══════════════════════════════════════════════════════ */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--line-hairline); color: var(--ink); padding: var(--space-6) 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-7);
  justify-content: space-between;
}
.footer-logo { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer-logo img { height: 40px; width: auto; display: block; }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.footer-nav a {
  color: var(--ink-muted);
  font-size: 14px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--r-control);
  transition: color var(--duration-fast) var(--ease-spring), background var(--duration-fast) var(--ease-spring);
}
.footer-nav a:hover { color: var(--brand-blue); background: var(--white); }
.footer-nav a[aria-current="page"] { color: var(--brand-blue); font-weight: 600; }
.copyline { flex-basis: 100%; font-size: 13px; color: var(--text-secondary); margin-top: var(--space-2); }

@media (max-width: 600px) { .footer-inner { justify-content: center; text-align: center; } }

/* ═══════════════════════════════════════════════════════
   LEGAL PAGES
   ══════════════════════════════════════════════════════ */
.legal { padding: var(--space-8) 0 var(--space-9); }
.legal-narrow { max-width: 720px; }
.legal h1 { font-size: clamp(28px, 3.5vw, 36px); margin-bottom: var(--space-2); }
.legal .updated { font-size: 13px; color: var(--text-secondary); margin-bottom: var(--space-7); }
.legal h2 { font-size: 16px; margin: var(--space-7) 0 var(--space-3); border-bottom: 1px solid var(--line-hairline); padding-bottom: var(--space-2); }
.legal p, .legal li { font-size: 15px; line-height: 1.75; color: var(--text-secondary); }
.legal ul { padding-left: var(--space-6); margin-top: var(--space-3); }
.legal li { margin-bottom: var(--space-2); }
.legal .note { background: var(--surface-2); border-left: 3px solid var(--brand-blue); padding: var(--space-4) var(--space-5); font-size: 13px; color: var(--text-secondary); margin: var(--space-5) 0; border-radius: 0 var(--r-control) var(--r-control) 0; }
.legal a { color: var(--brand-blue); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--brand-blue-bright); }
.legal footer { margin-top: var(--space-8); font-size: 12px; color: var(--text-secondary); border-top: 1px solid var(--line-hairline); padding-top: var(--space-4); }

/* ═══════════════════════════════════════════════════════
   404 PAGE
   ══════════════════════════════════════════════════════ */
.page-404 { text-align: center; padding: var(--space-10) 0; }
.page-404 .display-1 { font-size: clamp(120px, 20vw, 200px); font-weight: 800; color: var(--surface-3); line-height: 1; margin-bottom: var(--space-4); }
.page-404 h2 { margin-bottom: var(--space-4); }
.page-404 .lead { margin: 0 auto var(--space-7); max-width: 40ch; }
.page-404 .hero-actions { justify-content: center; }