/* ==========================================================================
   TX4Tech — design tokens
   Palette: Ink navy base, Cobalt signal, Mint highlight (dark surfaces only),
   Sand for warm neutral sections, Paper for the page.
   Type: Sora (display) + IBM Plex Sans (text).
   ========================================================================== */
:root {
  --paper: #f6f7f9;
  --paper-2: #ffffff;
  --sand: #ece8de;
  --ink: #0e1b3a;
  --ink-2: #16254a;
  --ink-3: #243562;
  --text: #1c2540;
  --muted: #5b6482;
  --line: #d9dde6;
  --line-dark: rgba(255, 255, 255, 0.12);
  --cobalt: #2446f5;
  --cobalt-deep: #1a35c9;
  --mint: #4fe3c1;
  --mint-ink: #0f6e58;
  --danger: #c93b3b;

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-text: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.1rem;
  --step-4: 2.85rem;
  --step-5: clamp(2.5rem, 5.4vw, 4rem);

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
  --radius-lg: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 1em; max-width: 62ch; }
a { color: var(--cobalt-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cobalt); }

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: #fff;
  padding: 10px 14px; border-radius: 6px; z-index: 100;
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 0.98rem;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.on-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.on-dark .btn-ghost:hover { border-color: #fff; color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.brand svg { width: 34px; height: 34px; }
.brand span b { color: var(--mint); font-weight: 700; }
.nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: rgba(255,255,255,.82); text-decoration: none; font-weight: 500; font-size: .97rem;
}
.nav-links a:hover { color: #fff; }
.nav-links .btn { padding: 10px 18px; }
.nav-toggle {
  display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
    padding: 8px var(--gutter) 16px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { border-top: 1px solid var(--line-dark); }
  .nav-links a:not(.btn) { display: block; padding: 14px 0; }
  .nav-links li:last-child { border-top: 0; padding-top: 12px; }
  .nav-links .btn { justify-content: center; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-art {
  position: absolute; inset: 0; z-index: -1;
}
.hero-art img {
  width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 48px;
  align-items: center;
  padding: 56px 0 72px;
}
.hero h1 { color: #fff; margin-bottom: 22px; max-width: 14ch; }
.hero p.lead {
  font-size: var(--step-1); color: rgba(255,255,255,.8);
  max-width: 46ch; margin-bottom: 32px; line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note {
  margin-top: 36px; display: flex; gap: 22px; flex-wrap: wrap;
  color: rgba(255,255,255,.65); font-size: .95rem;
}
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note svg { width: 16px; height: 16px; color: var(--mint); }

/* Hero visual: a real photo with two product cards overlapping its edges */
.hero-visual {
  position: relative; max-width: 440px; margin-left: auto;
}
.hero-photo {
  width: 100%; height: auto; aspect-ratio: 5 / 6; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -30px rgba(4, 10, 30, .8), 0 0 0 1px rgba(255,255,255,.12);
}
.card-ui {
  position: absolute;
  background: rgba(255,255,255,.96);
  color: var(--text);
  border-radius: 14px;
  box-shadow: 0 30px 60px -20px rgba(4, 10, 30, .55), 0 0 0 1px rgba(255,255,255,.5) inset;
  padding: 18px 20px;
  font-size: .9rem;
}
.card-ui h4 { font-size: .95rem; margin: 0 0 10px; }
.card-ui .k { color: var(--muted); font-size: .8rem; }
.card-ui .v { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--ink); letter-spacing: -0.02em; }

.card-agent {
  left: -30%; bottom: 10%; width: 60%;
}
.card-agent .chat { display: grid; gap: 8px; }
.card-agent .msg {
  padding: 9px 12px; border-radius: 10px; max-width: 86%;
  background: var(--paper); line-height: 1.4;
}
.card-agent .msg.me { background: var(--cobalt); color: #fff; margin-left: auto; }
.card-agent .msg .tag {
  display: block; font-size: .72rem; color: rgba(255,255,255,.78); margin-top: 6px;
}

.card-metrics {
  right: -10%; top: 8%; width: 54%;
}
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.spark { height: 40px; margin-top: 10px; }
.spark path { fill: none; stroke: var(--cobalt); stroke-width: 2; }
.spark .area { fill: rgba(36,70,245,.12); stroke: none; }

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lead, .hero-actions, .hero-note {
    animation: rise .8s var(--ease) both;
  }
  .hero .lead { animation-delay: .1s; }
  .hero-actions { animation-delay: .2s; }
  .hero-note { animation-delay: .3s; }
  .card-ui { animation: settle 1s var(--ease) both; animation-delay: .35s; }
  .card-metrics { animation-delay: .55s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(26px); } }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0 64px; min-height: 0; }
  .hero-art img { object-position: 60% 50%; }
  /* Photo first, then the cards in flow — no overlaps on small screens. */
  .hero-visual { margin-left: 0; max-width: 560px; display: grid; gap: 14px; }
  .hero-photo { aspect-ratio: 16 / 11; }
  .card-ui { position: static; width: auto; }
}

/* --------------------------------------------------------------------------
   Generic sections
   -------------------------------------------------------------------------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head p { color: var(--muted); font-size: var(--step-1); margin: 0; line-height: 1.5; }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; } }

/* Capabilities strip */
.strip {
  background: var(--ink-2); color: #fff;
  border-top: 1px solid var(--line-dark);
}
.strip-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.strip-item {
  padding: 26px 24px 26px 0; display: grid; gap: 6px;
  border-right: 1px solid var(--line-dark);
}
.strip-item + .strip-item { padding-left: 24px; }
.strip-item:last-child { border-right: 0; }
.strip-item strong { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.strip-item span { color: rgba(255,255,255,.65); font-size: .92rem; }
@media (max-width: 900px) {
  .strip-inner { grid-template-columns: 1fr 1fr; }
  .strip-item:nth-child(2) { border-right: 0; }
  .strip-item:nth-child(3) { padding-left: 0; border-top: 1px solid var(--line-dark); }
  .strip-item:nth-child(4) { border-top: 1px solid var(--line-dark); }
}
@media (max-width: 520px) {
  .strip-inner { grid-template-columns: 1fr; }
  .strip-item { border-right: 0; padding-left: 0 !important; border-top: 1px solid var(--line-dark); }
  .strip-item:first-child { border-top: 0; }
}

/* --------------------------------------------------------------------------
   Who we work with — photo strip
   -------------------------------------------------------------------------- */
.clients { padding-bottom: 0; }
.photo-strip {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.photo-strip li { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 4; background: var(--ink); }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; }
.photo-strip span {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  background: rgba(255,255,255,.94); color: var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  padding: 8px 12px; border-radius: 8px;
}
.strip-foot { margin: 20px 0 0; color: var(--muted); font-size: .98rem; max-width: 72ch; }
@media (max-width: 900px) { .photo-strip { grid-template-columns: 1fr 1fr; } }

.services-section { padding-top: clamp(48px, 6vw, 80px); }

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.pricing { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px;
  background: var(--paper);
}
.plan.featured { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan.featured h3, .plan.featured .price { color: #fff; }
.plan.featured p, .plan.featured li { color: rgba(255,255,255,.78); }
.plan .flag {
  position: absolute; top: -13px; left: 28px;
  background: var(--mint); color: var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: .8rem;
  padding: 5px 12px; border-radius: 999px;
}
.plan h3 { font-size: 1.25rem; margin-bottom: 10px; }
.plan .price {
  font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; letter-spacing: -0.03em;
  color: var(--ink); line-height: 1; margin-bottom: 16px; display: flex; align-items: baseline; gap: 8px;
}
.plan .price .from { font-family: var(--font-text); font-weight: 400; font-size: 1rem; color: var(--muted); letter-spacing: 0; }
.plan.featured .price .from { color: rgba(255,255,255,.6); }
.plan .price .per { font-family: var(--font-text); font-weight: 500; font-size: 1.05rem; color: var(--muted); letter-spacing: 0; margin-left: -6px; }
.plan .setup { margin: -4px 0 12px; font-size: .92rem; font-weight: 500; color: var(--text); }
.plan p { color: var(--muted); font-size: .98rem; }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 8px; font-size: .95rem; color: var(--text); }
.plan li { padding-left: 20px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--cobalt); }
.plan.featured li::before { background: var(--mint); }
.plan .btn { margin-top: auto; justify-content: center; }
.care {
  margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.care h3 { font-size: 1.15rem; margin-bottom: 6px; }
.care p { margin: 0; color: var(--muted); max-width: 70ch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } .plan.featured { order: -1; } }

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */
.services { display: grid; gap: 28px; }
.service {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service:nth-child(even) .service-media { order: 2; }
.service-media {
  position: relative; min-height: 340px; background: var(--ink);
}
.service-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-media .mock {
  position: absolute; inset: auto 8% 8% 8%;
  background: rgba(255,255,255,.95); border-radius: 12px; padding: 16px 18px;
  box-shadow: 0 24px 50px -24px rgba(4,10,30,.6);
  font-size: .85rem; color: var(--text);
}
.mock .bar { height: 8px; border-radius: 4px; background: var(--line); margin: 8px 0; }
.mock .bar.w1 { width: 72%; } .mock .bar.w2 { width: 48%; } .mock .bar.w3 { width: 86%; background: var(--cobalt); }
.mock .row { display: flex; gap: 10px; align-items: center; }
.mock .chip { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: .78rem; }
.mock .chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.mock code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; color: var(--ink-3); }

.service-body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; }
.service-body h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 14px; }
.service-body p { color: var(--muted); }
.service-body ul {
  margin: 10px 0 24px; padding: 0; list-style: none; display: grid; gap: 10px;
}
.service-body li {
  display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; line-height: 1.5;
}
.service-body li svg { width: 20px; height: 20px; color: var(--cobalt); margin-top: 3px; }
.service-body .cta { margin-top: auto; }
.service-body .cta a { font-family: var(--font-display); font-weight: 600; text-decoration: none; }
.service-body .cta a::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 8px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg) translateY(-1px); }
@media (max-width: 860px) {
  .service { grid-template-columns: 1fr; }
  .service:nth-child(even) .service-media { order: 0; }
  .service-media { min-height: 260px; }
}

/* --------------------------------------------------------------------------
   Approach — a real sequence, so it is numbered.
   -------------------------------------------------------------------------- */
.approach { background: var(--sand); }
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 2px solid var(--ink);
}
.step { padding: 28px 28px 8px 0; position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid rgba(14,27,58,.18); }
.step .n {
  font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1;
  color: var(--ink); letter-spacing: -0.04em; margin-bottom: 14px;
}
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .98rem; margin: 0; }
.step .dur { display: block; margin-top: 14px; font-size: .86rem; color: var(--ink); font-weight: 500; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid rgba(14,27,58,.18); }
  .step:nth-child(4) { border-top: 1px solid rgba(14,27,58,.18); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .step { padding-left: 0 !important; border-left: 0 !important; border-top: 1px solid rgba(14,27,58,.18); }
  .step:first-child { border-top: 0; }
}

/* --------------------------------------------------------------------------
   Work — representative engagements
   -------------------------------------------------------------------------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
}
.work > img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; }
.work-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.work .sector { font-size: .9rem; color: var(--muted); }
.work h3 { font-size: 1.3rem; margin: 0; }
.work p { color: var(--muted); margin: 0; font-size: .98rem; }
.work .outcome {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line);
  display: grid; gap: 4px;
}
.work .outcome strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); letter-spacing: -0.02em; }
.work .outcome span { color: var(--muted); font-size: .9rem; }
.work-demo { display: grid; gap: 8px; padding-top: 4px; }
.work-demo .btn { justify-content: center; }
.work-demo small { color: var(--muted); font-size: .85rem; line-height: 1.45; }
.work-foot { margin-top: 22px; color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) { .work-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Standards — how we build (non-negotiables)
   -------------------------------------------------------------------------- */
.standards { background: var(--ink); color: #fff; }
.standards h2, .standards h3 { color: #fff; }
.standards .section-head p { color: rgba(255,255,255,.72); }
.std-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 40px; }
.std { padding-top: 18px; border-top: 1px solid var(--line-dark); }
.std h3 { font-size: 1.15rem; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.std h3 svg { width: 20px; height: 20px; color: var(--mint); flex: none; }
.std p { color: rgba(255,255,255,.72); font-size: .97rem; margin: 0; }
@media (max-width: 900px) { .std-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .std-grid { grid-template-columns: 1fr; } }

/* Stack strip */
.stack { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.stack p { color: rgba(255,255,255,.6); font-size: .9rem; margin-bottom: 14px; }
.stack ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.stack li {
  border: 1px solid var(--line-dark); border-radius: 999px; padding: 7px 14px;
  font-size: .9rem; color: rgba(255,255,255,.85);
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center;
}
.about-media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 420px; background: var(--ink);
}
.about-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-media .quote {
  position: absolute; left: 24px; right: 24px; bottom: 24px;
  background: rgba(255,255,255,.95); border-radius: 12px; padding: 18px 20px;
  font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; line-height: 1.4; color: var(--ink);
}
.about-media .quote small { display: block; margin-top: 8px; font-family: var(--font-text); font-weight: 400; color: var(--muted); font-size: .88rem; }
.about-body p { color: var(--muted); }
.about-body p:first-of-type { color: var(--text); font-size: var(--step-1); line-height: 1.5; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin-top: 28px; }
.fact { border-top: 1px solid var(--line); padding-top: 12px; }
.fact strong { display: block; font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.fact span { color: var(--muted); font-size: .94rem; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-media { min-height: 340px; } }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact { background: var(--sand); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; }
.contact-side p { color: var(--muted); }
.contact-side .alt { margin-top: 28px; display: grid; gap: 14px; }
.contact-side .alt a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; color: var(--ink); }
.contact-side .alt svg { width: 20px; height: 20px; color: var(--cobalt); }
.form {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 40px); display: grid; gap: 18px;
}
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: .95rem; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; width: 100%;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(36,70,245,.18);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: .86rem; color: var(--muted); }
.form .consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: .92rem; color: var(--muted); }
.form .consent input { margin: 4px 0 0; width: 18px; height: 18px; }
.form-status { font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: var(--mint-ink); }
.form-status.err { color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Templates teaser (home) — gallery lives at /templates/
   -------------------------------------------------------------------------- */
.tpl-teaser { background: var(--paper-2); border-top: 1px solid var(--line); }
.tpl-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tpl-thumb { display: block; text-decoration: none; color: inherit; }
.tpl-thumb .photo { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--sand) center/cover no-repeat; margin-bottom: 10px; transition: transform .25s var(--ease); }
.tpl-thumb:hover .photo { transform: translateY(-3px); }
.tpl-thumb strong { display: block; font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: .98rem; }
.tpl-thumb span:last-child { color: var(--muted); font-size: .88rem; }
.tpl-thumb.more { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; justify-content: center; background: var(--paper); }
.tpl-thumb.more strong { font-size: 1.4rem; margin-bottom: 6px; }
.tpl-teaser-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
@media (max-width: 1000px) { .tpl-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .tpl-strip { grid-template-columns: 1fr 1fr; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: .98rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { margin-bottom: 14px; }
.site-footer .tagline { max-width: 34ch; font-size: .95rem; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-dark);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Secondary pages (privacy, 404)
   -------------------------------------------------------------------------- */
.page { padding: clamp(56px, 8vw, 96px) 0; }
.page .prose { max-width: 70ch; }
.page .prose h2 { font-size: var(--step-2); margin-top: 1.6em; }
.page .prose p, .page .prose li { color: var(--text); }
.page .meta { color: var(--muted); font-size: .92rem; }
.legal .prose { max-width: 78ch; }
.legal .prose h2 { scroll-margin-top: 96px; }
.legal .callout { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--cobalt); border-radius: 12px; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.legal .callout p:first-child { margin-top: 0; }
.legal .callout ul { margin-bottom: 0; }
.legal .toc { border: 1px solid var(--line); border-radius: 12px; padding: .75rem 1.25rem; margin: 1.5rem 0 2rem; }
.legal .toc ol { columns: 2; column-gap: 2rem; margin: .25rem 0; padding-left: 1.2rem; font-size: .95rem; }
.legal .toc li { break-inside: avoid; margin: .2rem 0; }
@media (max-width: 640px) { .legal .toc ol { columns: 1; } }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: .55rem .6rem; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 600; background: var(--paper); }
@media (max-width: 640px) { .legal table { display: block; overflow-x: auto; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .site-header, .hero-art, .cluster, .site-footer, .form { display: none !important; }
  body { background: #fff; color: #000; }
}

/* --------------------------------------------------------------------------
   Contact options + project estimator (/estimate)
   -------------------------------------------------------------------------- */
.contact-options { margin-top: 24px; display: grid; gap: 12px; }
.contact-option { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-2); color: var(--text); text-decoration: none; }
.contact-option strong { font-family: var(--font-display); color: var(--ink); }
.contact-option span { color: var(--muted); font-size: .95rem; }
.contact-option-cta { border-color: var(--cobalt); box-shadow: 0 0 0 1px var(--cobalt) inset; }
.contact-option-cta:hover { background: #eef1ff; }
.est-teaser { margin-top: 18px; text-align: center; color: var(--muted); }
.est-teaser a { font-weight: 600; color: var(--cobalt); }

.estimate-page .est-intro { max-width: 760px; }
.estimate-page .lead { color: var(--muted); font-size: var(--step-1); }
.est-points { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 18px 0 0; list-style: none; color: var(--text); font-size: .95rem; }
.est-points li::before { content: "✓"; color: var(--mint-ink); font-weight: 700; margin-right: 6px; }
.estimator { margin-top: 40px; }
.est-loading, .est-offline p { color: var(--muted); }
.est-offline { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-2); display: grid; gap: 14px; justify-items: start; }
.est-h { font-size: var(--step-2); margin: 0 0 14px; }
.est-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.est-product { text-align: left; display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-2); cursor: pointer; font: inherit; color: var(--text); }
.est-product strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }
.est-product span { color: var(--muted); font-size: .92rem; }
.est-product[aria-checked="true"] { border-color: var(--cobalt); box-shadow: 0 0 0 2px var(--cobalt) inset; }
.est-layout { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 32px; align-items: start; }
.est-questions { display: grid; gap: 18px; }
.est-q { margin: 0; min-width: 0; padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-2); }
/* Floated legend = rendered inside the card like a heading (a default legend cuts a notch into the border). */
.est-q legend { float: left; width: 100%; padding: 0; margin: 0; font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.05rem; line-height: 1.35; }
.est-q legend + * { clear: both; }
.est-q legend .est-num { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; border-radius: 999px; background: #eef1ff; color: var(--cobalt); font-size: .85rem; vertical-align: 1px; }
.est-help { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }
.est-q.is-answered legend .est-num { background: var(--cobalt); color: #fff; }
.est-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.est-opt { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--paper); font-size: .95rem; }
.est-opt input { accent-color: var(--cobalt); width: 18px; height: 18px; margin: 0; }
.est-opt:has(input:checked) { border-color: var(--cobalt); background: #eef1ff; color: var(--ink); font-weight: 600; }
.est-opt:has(input:focus-visible) { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.est-unknown { border-style: dashed; color: var(--muted); }
.est-panel { position: sticky; top: 88px; padding: 22px; border-radius: var(--radius-lg); background: var(--ink); color: #fff; display: grid; gap: 8px; }
.est-panel .est-label { color: rgba(255,255,255,.7); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.est-range { margin: 0; font-family: var(--font-display); }
.est-mini { display: none; }
.est-amount { font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.est-monthly { display: block; color: var(--mint); font-weight: 600; }
.est-pct { color: rgba(255,255,255,.75); font-size: .95rem; }
.est-precision { display: grid; gap: 6px; margin-top: 6px; }
.est-bar { display: block; height: 8px; border-radius: 999px; background: rgba(255,255,255,.15); overflow: hidden; }
.est-bar-fill { display: block; height: 100%; width: 4%; background: var(--mint); transition: width .3s var(--ease); }
.est-count, .est-tip { color: rgba(255,255,255,.75); font-size: .88rem; margin: 0; }
.est-disclaimer { margin: 6px 0 0; font-size: .8rem; color: rgba(255,255,255,.6); }
.est-contact { margin-top: 12px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); display: grid; gap: 10px; }
.est-contact h3 { margin: 0; color: #fff; font-size: 1.15rem; }
.est-contact .est-help { color: rgba(255,255,255,.7); margin: 0; }
.est-contact .field { display: grid; gap: 4px; }
.est-contact label { font-size: .88rem; font-weight: 600; color: #fff; }
.est-contact input:not([type="checkbox"]), .est-contact textarea { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font: inherit; }
.est-contact input:focus, .est-contact textarea:focus { outline: 2px solid var(--mint); outline-offset: 1px; }
.est-contact .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: rgba(255,255,255,.8); font-size: .85rem; }
.est-contact .consent a { color: var(--mint); }
.est-contact .consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--mint); }
.est-contact .form-status { margin: 0; font-size: .9rem; }
.est-contact .form-status.err { color: #ffb4b4; }
.est-sent { padding: 14px; border-radius: var(--radius); background: rgba(79,227,193,.15); color: #fff; }
.est-sent p { margin: 0; }
@media (max-width: 960px) {
  .est-layout { grid-template-columns: 1fr; }
  .est-panel { position: static; scroll-margin-top: 80px; }
  /* Mobile: the range follows the visitor while answering; tap jumps to the full panel + contact form. */
  .est-mini { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; padding: 12px 16px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; box-shadow: 0 10px 30px rgba(10, 20, 50, .25); }
  .est-mini strong { font-family: var(--font-display); font-size: 1.05rem; color: #fff; }
  .est-mini span { color: var(--mint); font-weight: 600; font-size: .9rem; white-space: nowrap; }
  .est-products { grid-template-columns: 1fr; }
}
