/* ============================================================
   OTTO® — AI Automation Studio
   ============================================================ */

:root {
  --bg: #0b0b0e;
  --bg-2: #101014;
  --bg-rgb: 11, 11, 14;
  --ink: #edede6;
  --ink-rgb: 237, 237, 230;
  --muted: #8a8a93;
  --accent: #d7ff3f;
  --accent-rgb: 215, 255, 63;
  --line: rgba(var(--ink-rgb), 0.12);
  --accent-dim: rgba(var(--accent-rgb), 0.14);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.65, 0.05, 0, 1);
}

/* ---------- Theme variations (toggled via the panel, bottom right) ---------- */
[data-theme="ember"] {
  --bg: #0e0a09;
  --bg-2: #161110;
  --bg-rgb: 14, 10, 9;
  --ink: #f3ede7;
  --ink-rgb: 243, 237, 231;
  --muted: #968b85;
  --accent: #ff6b35;
  --accent-rgb: 255, 107, 53;
}
[data-theme="orchid"] {
  --bg: #0a0a13;
  --bg-2: #111120;
  --bg-rgb: 10, 10, 19;
  --ink: #eceaf4;
  --ink-rgb: 236, 234, 244;
  --muted: #8d8c9e;
  --accent: #a78bfa;
  --accent-rgb: 167, 139, 250;
}
[data-theme="paper"] {
  --bg: #f2f1ea;
  --bg-2: #e9e7dd;
  --bg-rgb: 242, 241, 234;
  --ink: #16161a;
  --ink-rgb: 22, 22, 26;
  --muted: #6e6e66;
  --accent: #4d7c0f;
  --accent-rgb: 77, 124, 15;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--bg); }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.container {
  width: min(1280px, 100% - 3rem);
  margin-inline: auto;
}

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(2) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
}
.preloader__inner {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.preloader__logo {
  font-family: var(--font-display);
  font-weight: 700; font-size: 2rem; letter-spacing: -0.03em;
}
.preloader__logo sup { color: var(--accent); font-size: 0.8rem; }
.preloader__count {
  font-family: var(--font-display);
  font-size: 0.95rem; color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- Cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 9500; pointer-events: none; }
.cursor__dot, .cursor__ring {
  position: fixed; top: 0; left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor__dot { width: 6px; height: 6px; background: var(--accent); }
.cursor__ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s;
}
.cursor.is-hover .cursor__ring {
  width: 64px; height: 64px;
  background: rgba(var(--accent-rgb), 0.08);
}
@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 1rem 2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.3s var(--ease);
  white-space: nowrap;
}
.btn span { position: relative; z-index: 1; }
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--accent);
  border-radius: inherit;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s var(--ease);
}
.btn:hover::before { transform: scaleY(1); }
.btn:hover { color: var(--bg); border-color: var(--accent); }
.btn--primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn--primary::before { background: var(--ink); transform-origin: top; }
.btn--primary:hover { color: var(--bg); }
.btn--ghost { color: var(--ink); }
.btn--small { padding: 0.65rem 1.4rem; font-size: 0.85rem; }
.btn--big { padding: 1.3rem 3rem; font-size: 1.1rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; /* must stay above the .menu overlay so the burger can close it */
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem clamp(1.5rem, 4vw, 3rem);
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s, transform 0.45s var(--ease);
}
.nav.is-scrolled {
  background: rgba(var(--bg-rgb), 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.35rem; letter-spacing: -0.03em;
  z-index: 1001;
}
.nav__logo sup { color: var(--accent); font-size: 0.65rem; }
.nav__links { display: flex; gap: 2.25rem; }
.nav__links a {
  font-size: 0.9rem; font-weight: 500; color: var(--muted);
  position: relative;
  transition: color 0.3s;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__right { display: flex; align-items: center; gap: 1rem; z-index: 1001; }
.lang {
  display: flex; align-items: center; gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.04em;
}
.lang__sep { color: var(--line); }
.lang__btn {
  color: var(--muted);
  padding: 0.25rem 0.15rem;
  transition: color 0.3s;
}
.lang__btn:hover { color: var(--ink); }
.lang__btn.is-active { color: var(--accent); }
.nav__burger {
  display: none;
  flex-direction: column; gap: 6px;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.nav__burger span {
  display: block; width: 18px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease);
}
.nav__burger.is-open span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__burger.is-open span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed; inset: 0;
  background: var(--bg-2);
  z-index: 950;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(1.5rem, 6vw, 4rem);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
}
.menu__links { display: flex; flex-direction: column; gap: 0.25rem; }
.menu__link {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 9vw, 3.5rem);
  font-weight: 600; letter-spacing: -0.03em;
  line-height: 1.25;
  display: flex; align-items: baseline; gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}
.menu__link em {
  font-style: normal; font-size: 0.85rem; color: var(--accent);
  font-family: var(--font-body);
}
.menu__foot {
  margin-top: 3rem;
  display: flex; flex-direction: column; gap: 0.4rem;
  color: var(--muted); font-size: 0.9rem;
}
.menu__foot a { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  padding-bottom: 2rem;
}
.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero__fade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% 110%, rgba(var(--accent-rgb), 0.07), transparent 60%),
    linear-gradient(to bottom, rgba(var(--bg-rgb),0.55) 0%, rgba(var(--bg-rgb),0.1) 35%, rgba(var(--bg-rgb),0.55) 80%, var(--bg) 100%);
  pointer-events: none;
}
.hero__content {
  position: relative; z-index: 2;
  padding-top: 22vh;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.85rem; font-weight: 500;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 1.75rem;
}
.dot-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 9.2vw, 8.2rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
  margin-bottom: 1.75rem;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > .line-inner { display: block; }
.hero__title em {
  font-style: normal;
  color: var(--accent);
}
.hero__sub {
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  margin-bottom: 2.25rem;
}
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__stats {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; gap: clamp(1.5rem, 5vw, 4.5rem);
  margin-top: clamp(3rem, 7vh, 6rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.hero__stat { display: flex; flex-direction: column; gap: 0.15rem; }
.hero__stat strong {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 700; letter-spacing: -0.02em;
}
.hero__stat span { font-size: 0.8rem; color: var(--muted); }
.hero__scroll {
  margin-left: auto;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--muted); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.15em;
}
.hero__scroll-line {
  width: 1px; height: 44px;
  background: var(--line);
  position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute; top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--accent);
  animation: scrollLine 1.8s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; }
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  padding: 1.4rem 0;
  overflow: hidden;
  background: var(--bg-2);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group {
  display: flex; align-items: center; gap: 2.5rem;
  padding-right: 2.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.marquee__group i { color: var(--accent); font-style: normal; font-size: 0.8rem; }

/* ---------- Statement ---------- */
.statement { padding: clamp(6rem, 14vh, 11rem) 0; }
.statement__text {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  max-width: 60rem;
}
.statement__text em { font-style: normal; color: var(--accent); }
.statement__text .word { opacity: 0.15; display: inline; }

/* ---------- Section head ---------- */
.section-head { margin-bottom: clamp(3rem, 7vh, 5rem); }
.section-head__label {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.section-head__label span { color: var(--accent); }
.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 700; line-height: 1.04; letter-spacing: -0.035em;
}

/* ---------- Services ---------- */
.services { padding-bottom: clamp(5rem, 12vh, 9rem); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.service-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: linear-gradient(160deg, rgba(255,255,255,0.025), rgba(255,255,255,0) 45%);
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.service-card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--accent-dim), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.service-card:hover { border-color: rgba(var(--accent-rgb), 0.35); transform: translateY(-4px); }
.service-card:hover::after { opacity: 1; }
.service-card__top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.service-card__index {
  font-family: var(--font-display);
  font-size: 0.9rem; color: var(--muted);
}
.service-card__icon { width: 30px; height: 30px; color: var(--accent); }
.service-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600; letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
}
.service-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.4rem; max-width: 30rem; }
.service-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.service-card li {
  font-size: 0.88rem; color: var(--ink);
  display: flex; align-items: center; gap: 0.6rem;
}
.service-card li::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ---------- Process ---------- */
.process { position: relative; }
.process__pin { padding: clamp(4rem, 10vh, 7rem) 0; }
.process__steps { position: relative; padding-left: clamp(1.5rem, 3vw, 2.5rem); }
.process__progress {
  position: absolute; left: 0; top: 0.5rem; bottom: 0.5rem;
  width: 2px; background: var(--line);
  border-radius: 2px; overflow: hidden;
}
.process__progress-bar {
  width: 100%; height: 100%;
  background: var(--accent);
  transform-origin: top;
  transform: scaleY(0);
}
.process-step {
  display: flex; gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 3.5vh, 2.5rem) 0;
  border-bottom: 1px solid var(--line);
  opacity: 0.3;
  transition: opacity 0.5s var(--ease);
}
.process-step:last-child { border-bottom: 0; }
.process-step.is-active { opacity: 1; }
.process-step__num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  min-width: 2ch;
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 600; letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}
.process-step p { color: var(--muted); max-width: 36rem; margin-bottom: 0.8rem; }
.process-step__meta {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent);
}

/* ---------- Results ---------- */
.results {
  background: var(--accent);
  color: var(--bg);
  padding: clamp(5rem, 12vh, 9rem) 0;
  border-radius: clamp(24px, 4vw, 48px);
  margin: 0 clamp(0.5rem, 1.5vw, 1.5rem);
}
.results .section-head__label { color: rgba(var(--bg-rgb), 0.55); }
.results .section-head__label span { color: var(--bg); }
.results__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-block: 2rem;
  border-block: 1px solid rgba(var(--bg-rgb), 0.18);
}
.result { display: flex; flex-direction: column; gap: 0.5rem; }
.result strong {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  font-weight: 700; line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.result > span { font-size: 0.9rem; color: rgba(var(--bg-rgb), 0.65); max-width: 16rem; }
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.quote {
  background: rgba(var(--bg-rgb), 0.06);
  border: 1px solid rgba(var(--bg-rgb), 0.14);
  border-radius: 18px;
  padding: 1.75rem;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
  transition: transform 0.4s var(--ease), background 0.4s;
}
.quote:hover { transform: translateY(-4px); background: rgba(var(--bg-rgb), 0.1); }
.quote blockquote {
  font-family: var(--font-display);
  font-size: 1.08rem; font-weight: 500; line-height: 1.45;
}
.quote figcaption { display: flex; flex-direction: column; font-size: 0.85rem; }
.quote figcaption strong { font-weight: 600; }
.quote figcaption span { color: rgba(var(--bg-rgb), 0.6); }

/* ---------- FAQ ---------- */
.faq { padding: clamp(5rem, 12vh, 9rem) 0; }
.faq__list { width: 100%; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  padding: 1.6rem 0;
  cursor: pointer;
  transition: color 0.3s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__plus {
  position: relative;
  width: 30px; height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease), border-color 0.3s;
}
.faq__plus::before, .faq__plus::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 10px; height: 1.5px;
  background: var(--accent);
  transform: translate(-50%, -50%);
}
.faq__plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.4s var(--ease); }
.faq__item[open] .faq__plus { transform: rotate(45deg); border-color: var(--accent); }
.faq__item p {
  color: var(--muted);
  max-width: 44rem;
  padding-bottom: 1.6rem;
}

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  padding: clamp(6rem, 16vh, 12rem) 0;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(var(--accent-rgb), 0.1), transparent 70%);
  pointer-events: none;
}
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 9rem);
  font-weight: 700; line-height: 0.98; letter-spacing: -0.04em;
  margin-bottom: 1.75rem;
}
.cta__title .line { display: block; overflow: hidden; }
.cta__title em { font-style: normal; color: var(--accent); }
.cta__sub {
  color: var(--muted);
  max-width: 32rem;
  margin: 0 auto 2.5rem;
}
.cta__note { margin-top: 3rem; font-size: 0.85rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-top: clamp(3rem, 7vh, 5rem);
  overflow: hidden;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: clamp(3rem, 7vh, 5rem);
}
.footer__col { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.footer__label {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.footer__col a {
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  transition: color 0.3s;
}
.footer__col a:hover { color: var(--accent); }
.footer__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 21vw, 19rem);
  line-height: 0.78;
  letter-spacing: -0.05em;
  text-align: center;
  color: var(--bg-2);
  -webkit-text-stroke: 1px rgba(var(--ink-rgb), 0.16);
  user-select: none;
  transform: translateY(8%);
}
.footer__wordmark sup { font-size: 0.15em; -webkit-text-stroke: 1px var(--accent); }

/* ---------- Theme panel (removed from UI) ---------- */
.theme-panel { display: none !important; }

/* Soft wash when the palette swaps */
body, .marquee, .results, .menu {
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* ---------- Reveal helpers (initial states set by JS) ---------- */

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .services__grid { grid-template-columns: 1fr; }
  .results__grid { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .hero__content { padding-top: 19vh; }
  .hero__stats { flex-wrap: wrap; gap: 1.25rem 2rem; }
  .hero__scroll { display: none; }
  .hero__cta .btn { width: 100%; }
  .results__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .process-step { flex-direction: column; gap: 0.75rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .nav .btn--small { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .dot-pulse, .hero__scroll-line::after { animation: none !important; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- Contact (form + booking embed) ---------- */
.contact { padding-block: clamp(5rem, 12vh, 9rem); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}
.contact__col {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0) 45%);
}
.contact__colhead {
  font-size: 0.8rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 1.75rem;
}
.contact-form { display: flex; flex-direction: column; gap: 1.15rem; flex: 1; }
.contact-form[hidden] { display: none; }
.form-field--grow { display: flex; flex-direction: column; flex: 1; }
.form-field label {
  display: block;
  font-size: 0.78rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: rgba(var(--ink-rgb), 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--ink);
  font: inherit;
  transition: border-color 0.3s, background 0.3s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.7);
  background: rgba(var(--ink-rgb), 0.06);
}
.form-field--grow textarea { flex: 1; resize: vertical; min-height: 120px; }
.contact-form .btn { align-self: flex-start; margin-top: 0.35rem; }
.contact-form .btn:disabled { opacity: 0.65; cursor: not-allowed; }
.form-error {
  margin: 0;
  font-size: 0.88rem;
  color: #ff6b6b;
  max-width: 28rem;
}
.form-error[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-success {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 0.6rem;
  padding: 2rem 0;
}
.form-success[hidden] { display: none; }
.form-success svg { width: 44px; height: 44px; color: var(--accent); margin-bottom: 0.5rem; }
.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em;
}
.form-success p { color: var(--muted); max-width: 26rem; }
.cal-wrap {
  flex: 1;
  position: relative;
  min-height: 580px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(var(--ink-rgb), 0.03);
}
#cal-embed { position: absolute; inset: 0; overflow: auto; }
#cal-embed iframe { height: 100%; }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
  .cal-wrap { min-height: 560px; }
}
