/* Components — IMPLEMENTATION_SPEC §5–§6. Tiles differ by fill or 1px line.
   No box-shadows. No hover lift or scale. Left-aligned. */

/* ---------- Header (§5.1, midnight, sticky) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--midnight);
  border-bottom: 1px solid var(--line-dark);
}
.nav-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 12px;
  padding-bottom: 12px;
}
/* LOGO: processed PNG set (spec §3). Desktop horizontal, mobile icon. */
.logo-link {
  display: flex;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
  min-height: 44px;
}
/* LOGO SWAP: replace .wordmark with assets/brand/logo-horizontal-white.svg
   (on midnight) when official SVGs arrive. Minimum 120px wide. */
.logo-icon {
  height: 40px;
  width: 40px;
  display: block;
}
.wordmark {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--white);
  text-decoration: none;
  margin-left: 10px;
}
.wordmark small {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-left: 6px;
  vertical-align: 2px;
}
.logo-tagline {
  margin-top: 28px;
  max-width: 280px;
  height: auto;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 14px;
  border-radius: var(--r-control);
  transition: color .2s cubic-bezier(.32,.72,0,1), background-color .2s cubic-bezier(.32,.72,0,1);
}
.nav-links a:not(.btn):hover { color: var(--electric); }
/* Current page (spec §5.1): raised navy surface, not just a colour shift. */
.nav-links a[aria-current="page"] { background: var(--midnight-2); color: var(--white); }
.nav-links a[aria-current="page"]:hover { color: var(--white); }
.menu-btn { display: none; }

/* ---------- Buttons (§6) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  background: var(--blue);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  border-radius: var(--r-control);
  cursor: pointer;
  font-family: var(--font-body);
  transition: background-color .15s cubic-bezier(.32,.72,0,1), transform .15s cubic-bezier(.32,.72,0,1);
}
.btn:hover { background: var(--blue-press); color: var(--white); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.btn-small { min-height: 44px; padding: 10px 20px; font-size: 14px; }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--line-dark);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.06); color: var(--white); border-color: var(--muted-on-dark); }
.btn-secondary.on-light {
  color: var(--midnight);
  border-color: var(--field-border);
}
.btn-secondary.on-light:hover { background: var(--soft); color: var(--midnight); border-color: var(--midnight); }
.nav-cta { display: flex; align-items: center; gap: 8px; flex: none; }
.nav-cta .text-link {
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 10px;
  white-space: nowrap;
}
.nav-cta .text-link:hover { color: var(--electric); }
.link-more {
  color: var(--electric);
  font-weight: 600;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.on-light .link-more, a.link-more.on-light { color: var(--blue); }

/* ---------- Subpage hero ---------- */
.page-hero {
  background: var(--midnight);
  color: var(--white);
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--line-dark);
}
.page-hero h1 { color: var(--white); max-width: 16ch; }
.page-hero .lead {
  margin-top: 20px;
  font-size: 17px;
  color: var(--muted-on-dark);
  max-width: 40em;
}
/* ---------- Hero (§5.2, midnight + one radial glow) ---------- */
.hero {
  background: var(--midnight);
  color: var(--white);
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(640px at 74% 28%, rgba(59, 130, 246, 0.28), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 96px;
}
.hero h1 { color: var(--white); }
.hero .lead {
  margin-top: 24px;
  font-size: 17px;
  color: var(--muted-on-dark);
  max-width: 34em;
}
.hero-actions { margin-top: 32px; display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
/* Hero flow: animated lead->CRM->notify (Direction A, replaces the V diagram) */
.hero-flow { margin: 0; align-self: center; }
.hero-flow svg { width: 100%; min-width: 0; height: auto; display: block; }
.hero-flow .flow-node { fill: var(--midnight-2); stroke: var(--line-dark); }
.hero-flow .flow-accent { fill: var(--blue); }
.hero-flow .flow-label { fill: var(--muted-on-dark); font: 600 13px Inter, sans-serif; }
.hero-flow .flow-accent-text { fill: var(--white); color: var(--white); font: 600 13px Inter, sans-serif; }
.hero-flow .flow-edge {
  stroke: var(--electric); stroke-width: 2; fill: none;
  stroke-dasharray: 3 9; animation: edge-flow .9s linear infinite;
}
.hero-flow .flow-ping {
  stroke: var(--electric); 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; }
@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; } }

/* Hero draw-in (§8: feeds, then V, then stem + pill; final state under reduced motion) */
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-in 0.9s ease forwards; }
.draw-feeds { animation-delay: 0.35s; }
.draw-feeds.d2 { animation-delay: 0.5s; }
.draw-feeds.d3 { animation-delay: 0.7s; }
.draw-v { animation-delay: 1.5s; animation-duration: 1.5s; }
.draw-stem { animation-delay: 2.2s; animation-duration: 0.5s; }
.fade-pill { opacity: 0; animation: fade-in 0.5s ease forwards; animation-delay: 2.2s; }
@keyframes draw-in { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .draw { stroke-dashoffset: 0; }
  .fade-pill { opacity: 1; }
  .node-in { opacity: 1; }
  .hero-flow .flow-edge, .hero-flow .flow-ping, .prod-marquee-track { animation: none; }
  .hero-flow .flow-edge { stroke-dasharray: none; }
}

/* ---------- Live product marquee (real product names) ---------- */
.prod-marquee {
  overflow: hidden;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  background: var(--soft);
  padding: 14px 0;
}
.prod-marquee-track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.prod-marquee span {
  font: 600 14px/1 var(--font-body); color: var(--graphite);
  letter-spacing: .12em; text-transform: uppercase;
  padding: 0 22px; white-space: nowrap;
}
.prod-marquee span + span::before { content: "·"; margin-right: 44px; color: var(--blue); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Proof strip: real facts as large numerals ---------- */
.stats { padding: 0 0 72px; }
.stats .wrap { border-top: 1px solid var(--line-light); padding-top: 48px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line-light); }
.stat { padding: 40px 28px; }
.stat + .stat { border-left: 1px solid var(--line-light); }
.stat b {
  display: block;
  font: 800 52px/1 var(--font-heading); color: var(--midnight);
  letter-spacing: -.02em; margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.stat span { font: 500 14px/1.5 var(--font-body); color: var(--graphite); display: block; max-width: 200px; }

/* ---------- Products bento (first card leads 8+4, then 6+6) ---------- */
.prod-bento .prod-card { grid-column: span 6; margin: 0; }
.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%; }

@media (max-width: 960px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 28px 24px; }
  .stat:nth-child(even) { border-left: 1px solid var(--line-light); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-light); }
  .prod-bento .prod-card, .prod-bento .prod-card:first-child, .prod-bento .prod-card:nth-child(2) { grid-column: span 12; }
}
@media (max-width: 700px) {
  .stat-grid { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line-light); }
  .stat { padding: 24px 0; }
}

/* ---------- Phase 2: eyebrows (typography-as-system, homepage only) ---------- */
.eyebrow {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 16px;
}
.on-navy .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--electric); }
.cap-tags {
  margin-top: 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted-on-dark);
}

/* ---------- Phase 2: hero V-node motion (Build → Connect → Resolve) ---------- */
.draw-core { animation-delay: 0.2s; animation-duration: 1.2s; }
.draw-link { animation-delay: 0.9s; }
.draw-link.l2 { animation-delay: 1.1s; }
.draw-link.l3 { animation-delay: 1.3s; }
.node-in { opacity: 0; animation: fade-in 0.6s ease forwards; animation-delay: 1.6s; }
.node-in.n2 { animation-delay: 1.8s; }
.node-in.n3 { animation-delay: 2s; }
.node-in.n4 { animation-delay: 2.2s; }
.node-in.n5 { animation-delay: 2.4s; }

/* ---------- Phase 2: method strip (02 How we think) ---------- */
.method-steps { margin: 40px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.method-steps li { border-top: 2px solid var(--blue); padding-top: 12px; }
.method-steps strong { display: block; font-family: var(--font-heading); font-size: 16px; }
.method-steps span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--graphite); line-height: 1.5; }

/* ---------- Phase 2: systems diagram (04, navy) ---------- */
.sys-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.sys-figure { margin: 0; max-width: 480px; }
.sys-figure svg { width: 100%; height: auto; }
.sys-node rect { fill: var(--midnight-2); stroke: rgba(255,255,255,.14); }
.sys-node text { fill: var(--white); font-family: Inter, sans-serif; font-size: 16px; font-weight: 600; text-anchor: middle; }

/* ---------- Phase 2: condensed service link-cards (homepage → /services/) ---------- */
.svc-cards { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-light);
  border-radius: var(--r-tile);
  padding: 24px;
  text-decoration: none;
  transition: border-color .2s cubic-bezier(.32,.72,0,1);
}
.svc-card:hover { border-color: var(--blue); }
.svc-card h3 { font-size: 18px; margin-bottom: 8px; color: var(--midnight); }
.svc-card p { font-size: 14.5px; color: var(--graphite); margin-bottom: 12px; }
/* CTA pinned to the card floor so the four links line up across the row. */
.svc-card .go { margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 600; color: var(--blue); }

/* ---------- Phase 2: studio capabilities (05, faceless) ---------- */
.studio-list { margin: 32px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 32px; }
.studio-list h3 { font-size: 17px; margin-bottom: 6px; }
.studio-list p { font-size: 15px; color: var(--graphite); }

/* ---------- Tools strip (§5.3, thin, plain text) ---------- */
.tools {
  position: relative;
  border-top: 1px solid var(--line-dark);
  padding: 18px 0;
  font-size: 14px;
  color: var(--muted-on-dark);
}

/* ---------- Problem (§5.4, soft grey, before/after pairs) ---------- */
.on-soft { background: var(--soft); }
.section-intro { margin-top: 16px; font-size: 17px; color: var(--graphite); }
.pairs { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; }
.pairs-h { font-size: 14px; font-weight: 600; color: var(--graphite); }
.pair-before p, .pair-after p { margin-top: 8px; font-size: 16px; }
.pair-before p { color: var(--graphite); }
.pair-after { border-left: 3px solid var(--blue); padding-left: 16px; }
.pair-after p { color: var(--midnight); }

/* ---------- Services bento (§5.4) + progressive disclosure (spec §6.1) ---------- */
.svc-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.span7 { grid-column: span 7; }
.span5 { grid-column: span 5; }
.tile { border-radius: var(--r-tile); padding: 32px; }
.tile h3 { margin-bottom: 12px; }
.tile ul { margin: 16px 0 0 20px; font-size: 15px; line-height: 1.7; }
.tile details { margin-top: 0; }
.tile details summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
}
.tile details summary::-webkit-details-marker { display: none; }
.tile details summary::after {
  content: "+";
  float: right;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  opacity: 0.7;
}
.tile details[open] summary::after { content: "–"; }
.tile details summary h3 { margin-bottom: 8px; }
.tile details summary p { margin-bottom: 0; }
.tile details .tile-body { margin-top: 16px; }
.tile details .tile-body .btn,
.tile details .tile-body .link-more { margin-top: 20px; }
.tile-blue { background: var(--blue-50); }
.tile-blue h3, .tile-blue p { color: var(--midnight); }
.tile-blue li { color: var(--midnight); }
.tile-navy { background: var(--midnight); }
.tile-navy h3, .tile-navy p { color: var(--white); }
.tile-navy li { color: var(--muted-on-dark); }
.tile-navy summary h3, .tile-navy summary p { color: var(--white); }
.tile-navy details summary::after { color: var(--white); }
.tile-line { background: var(--white); border: 1px solid var(--line-light); }
.tile-line h3 { color: var(--midnight); }
.tile-line p, .tile-line li { color: var(--graphite); }
.tile-soft { background: var(--soft); }
.tile-soft h3 { color: var(--midnight); }
.tile-soft p, .tile-soft li { color: var(--graphite); }
.grid-foot { margin-top: 32px; font-size: 17px; color: var(--graphite); }
.section-foot { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }

/* ---------- Services page pillar blocks ---------- */
.pillar { padding: 48px 0; border-bottom: 1px solid var(--line-light); }
.pillar:last-child { border-bottom: 0; }
.pillar h2 { margin-bottom: 12px; }
.pillar .pillar-lead { font-size: 17px; color: var(--graphite); margin-top: 8px; }
.pillar-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}
.pillar-list {
  margin: 0;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--midnight);
}
.pillar-cta { background: var(--soft); border-radius: var(--r-tile); padding: 24px; }
.pillar-cta p { font-size: 15px; color: var(--graphite); margin-bottom: 16px; }

/* ---------- Automation flow diagram (spec §6.5) ---------- */
.flow {
  margin-top: 36px;
  background: var(--midnight);
  color: var(--muted-on-dark);
  border-radius: var(--r-tile);
  padding: 28px 24px;
  overflow-x: auto;
}
.flow figcaption {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted-on-dark);
}
.flow svg { width: 100%; min-width: 520px; height: auto; }
.flow .flow-node { fill: var(--midnight-2); stroke: var(--line-dark); }
.flow .flow-label { fill: var(--muted-on-dark); font: 600 13px Inter, sans-serif; }
.flow .flow-edge { stroke: var(--electric); stroke-width: 2; fill: none; }
.flow .flow-accent { fill: var(--blue); }
.flow .flow-accent-text { fill: var(--white); color: var(--white); font: 600 13px Inter, sans-serif; }

/* ---------- Products (§5.5, midnight, 4 featured) ---------- */
.on-navy { background: var(--midnight); color: var(--white); }
.on-navy h2 { color: var(--white); }
.on-navy .section-intro { color: var(--muted-on-dark); }
.on-navy .grid-foot { color: var(--muted-on-dark); }
.prod-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.prod-card {
  grid-column: span 3;
  background: var(--midnight-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-tile);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.prod-card h3 { color: var(--white); font-size: 22px; margin-bottom: 10px; }
.shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-control);
  border: 1px solid var(--line-dark);
  margin-bottom: 20px;
  background: var(--midnight-2);
}
.prod-card .outcome { color: var(--muted-on-dark); font-size: 15px; }
.prod-tag { margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--muted-on-dark); }
.prod-card .proves { margin-top: 10px; font-size: 15px; color: var(--muted-on-dark); }
.prod-card .proves strong { color: var(--white); font-weight: 600; }
.prod-card .domain {
  margin-top: auto;
  padding-top: 16px;
  color: var(--link-on-dark);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

/* Home condensed proof strip: inherits .prod-card span, so the responsive
   overrides below apply (a higher-specificity span lock here broke mobile). */

/* /work/ case sections */
.work-case {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--line-light);
}
.work-case:last-child { border-bottom: 0; }
.work-case.reverse { direction: rtl; }
.work-case.reverse > * { direction: ltr; }
.work-case figure { margin: 0; }
.work-case .shot {
  border: 1px solid var(--line-light);
  background: var(--soft);
}
.work-case .prod-tag { color: var(--graphite); font-size: 13px; font-weight: 600; margin-top: 0; }
.work-case .proves {
  margin-top: 16px;
  font-size: 17px;
  color: var(--midnight);
  border-left: 3px solid var(--blue);
  padding-left: 16px;
}
.work-case .proves strong { display: block; font-size: 13px; font-weight: 600; color: var(--graphite); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.work-case .outcome { margin-top: 12px; font-size: 16px; color: var(--graphite); }
.work-case .domain {
  display: inline-block;
  margin-top: 20px;
  font-weight: 600;
  font-size: 15px;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Empty proof slot (spec §4) — stays hidden until real content exists */
.proof-slot { display: none; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-grid > * { min-width: 0; }
.about-grid .logo-tagline { margin-top: 0; max-width: min(360px, 100%); }
.principle-list { margin-top: 24px; display: grid; gap: 20px; }
.principle-list h3 { font-size: 18px; margin-bottom: 6px; }
.principle-list p { font-size: 15px; color: var(--graphite); }

/* Contact dual CTA order */
.cta-book {
  background: var(--soft);
  border-radius: var(--r-tile);
  padding: 28px;
  margin-bottom: 32px;
}
.cta-book h2 { font-size: 22px; margin-bottom: 10px; }
.cta-book p { font-size: 16px; color: var(--graphite); margin-bottom: 20px; }
.cta-book .hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.cta-book .sla { margin-top: 16px; font-size: 15px; }

/* Home contact: promo panel beside the copy column (was inline styles). */
.promo-panel {
  background: var(--soft);
  border-radius: var(--r-tile);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.promo-panel p { margin: 0; font-size: 15px; color: var(--graphite); }
.promo-panel .promo-title { font-size: 17px; font-weight: 600; color: var(--midnight); }
.promo-panel .btn { width: 100%; }

/* Footer logo */
.footer-logo {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.footer-logo img { height: 48px; width: auto; display: block; }
/* ---------- Process (§5.6, real sequence, flow line) ---------- */
.process { margin: 48px 0 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.process li { position: relative; padding-top: 64px; }
.process li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--midnight);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process { counter-reset: step; }
.process li::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 56px;
  right: -16px;
  border-top: 1px solid var(--line-light);
}
.process li:last-child::after { display: none; }
.process h3 { font-size: 19px; margin-bottom: 8px; }
.process p { font-size: 15px; color: var(--graphite); }

/* ---------- Contact (§5.7, white, copy + soft panel form) ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; margin-top: 8px; }
.contact-copy p { margin-top: 16px; font-size: 17px; color: var(--graphite); }
.contact-copy .mail { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.contact-copy .sla { font-size: 15px; }
.form-panel { background: var(--soft); border-radius: var(--r-tile); padding: 32px; }
.field { margin-bottom: 20px; }
.field > label, .field > span.label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--midnight);
  margin-bottom: 8px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--midnight);
  background: var(--white);
  border: 1.5px solid var(--field-border);
  border-radius: var(--r-control);
  transition: border-color .15s cubic-bezier(.32,.72,0,1), box-shadow .15s cubic-bezier(.32,.72,0,1);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.err-text { display: block; margin-top: 6px; font-size: 13px; color: var(--error); }
.err-text[hidden] { display: none; }

/* Service pills (checkboxes) */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-check { position: relative; }
.pill-check input { position: absolute; opacity: 0; width: 44px; height: 44px; margin: 0; }
.pill-check span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1.5px solid var(--line-light);
  border-radius: var(--r-pill);
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
  color: var(--midnight);
  cursor: pointer;
}
.pill-check:has(input:checked) span { background: var(--blue-50); border-color: var(--blue); color: var(--midnight); font-weight: 600; }
.pill-check:has(input:focus-visible) span { outline: 3px solid var(--electric); outline-offset: 2px; }

/* Details disclosure */
.form-panel details { margin-bottom: 20px; border: 1px solid var(--line-light); border-radius: var(--r-control); background: var(--white); }
.form-panel summary { cursor: pointer; padding: 14px 16px; font-size: 14px; font-weight: 600; color: var(--midnight); min-height: 48px; }
.form-panel details .more { padding: 0 16px 16px; }

/* Consent row */
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--graphite); cursor: pointer; }
.consent input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--blue); }
.consent a { color: var(--blue); }

/* Status region */
.form-status { margin-top: 16px; padding: 12px 16px; border-radius: var(--r-control); font-size: 14px; font-weight: 600; }
.form-status[hidden] { display: none; }
.form-status.ok { background: var(--success-bg); color: var(--success-ink); }
.form-status.err { background: rgba(180, 35, 24, 0.08); color: var(--error); }

/* Honeypot: off-screen, never filled by humans */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer (§5.8, midnight, 44px targets) ---------- */
.site-footer { background: var(--midnight); border-top: 1px solid var(--line-dark); color: var(--white); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.footer-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  padding: 12px 10px;
  border-radius: var(--r-control);
  transition: color .2s cubic-bezier(.32,.72,0,1);
}
.footer-nav a:hover { color: var(--electric); }
.footer-nav a[aria-current="page"] { color: var(--electric); }
.copyline { flex-basis: 100%; font-size: 13px; color: var(--muted-on-dark); }

/* ---------- Legal pages (§10.5: same tokens, header, footer) ---------- */
.legal { padding: 56px 0 80px; }
.legal-narrow { max-width: 720px; }
.legal h1 { font-size: 28px; margin-bottom: 6px; }
.legal .updated { font-size: 12.5px; color: var(--graphite); margin-bottom: 36px; }
.legal h2 { font-size: 16px; margin: 34px 0 10px; border-bottom: 1px solid var(--line-light); padding-bottom: 8px; }
.legal p, .legal li { font-size: 14.5px; line-height: 1.65; color: var(--midnight); }
.legal ul { padding-left: 20px; }
.legal .note { background: var(--soft); border-left: 3px solid var(--blue); padding: 12px 16px; font-size: 13px; color: var(--graphite); margin: 20px 0; }
.legal a { color: var(--blue); }
.legal footer { margin-top: 50px; font-size: 12px; color: var(--graphite); border-top: 1px solid var(--line-light); padding-top: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 72px; padding-bottom: 64px; }
  .hero-figure { max-width: 560px; }
  .prod-card { grid-column: span 6; }
  .work-case, .work-case.reverse { grid-template-columns: 1fr; direction: ltr; }
  .pillar-grid, .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .span7, .span5 { grid-column: span 12; }
  .contact-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .process li::after { display: none; }
  .method-steps { grid-template-columns: repeat(2, 1fr); }
  .sys-grid { grid-template-columns: 1fr; }
  .svc-cards { grid-template-columns: 1fr 1fr; }
  .studio-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .method-steps { grid-template-columns: 1fr 1fr; }
  .svc-cards { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 10px 14px;
    background: transparent;
    border: 1px solid var(--line-dark);
    border-radius: var(--r-control);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
  }
  .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--midnight);
    border-bottom: 1px solid var(--line-dark);
    padding: 8px 24px 16px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s cubic-bezier(.32,.72,0,1), transform .2s cubic-bezier(.32,.72,0,1), visibility 0s .2s;
  }
  .nav-links.open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s cubic-bezier(.32,.72,0,1), transform .2s cubic-bezier(.32,.72,0,1); }
  .nav-links a { padding: 14px 4px; border-top: 1px solid var(--line-dark); }
  .nav-links .btn-small { margin-top: 12px; text-align: center; }
  .nav-cta { display: contents; }
  .nav-cta .text-link { padding: 14px 4px; border-top: 1px solid var(--line-dark); }
  .site-header .nav-bar { position: static; }
  .site-header { position: sticky; }
  .pairs { grid-template-columns: 1fr; }
  .pairs-h { display: none; }
  .pair-before::before, .pair-after::before {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--graphite);
    margin-bottom: 4px;
  }
  .pair-before::before { content: "Before"; }
  .pair-after::before { content: "After"; }
  .footer-nav { margin-left: 0; }
}
@media (max-width: 700px) {
  .hero-grid { padding-top: 48px; padding-bottom: 40px; }
  .prod-card { grid-column: span 12; }
  .form-panel { padding: 24px 20px; }
  .page-hero { padding: 48px 0 40px; }
}

/* Purchasable-service block inside a work case. Same card grammar as pillars,
   narrower job: price, ownership, and one order link. Nothing here takes an
   order — the link leaves for Vishwakarma, which does. */
.order-box{margin-top:20px;padding:20px 22px;border:1px solid var(--line-light);border-radius:var(--r-control);background:var(--white)}
.order-box p{margin:0 0 10px}
.order-box p:last-of-type{margin-bottom:14px}
