/* ============================================
   3D BUILDING SURVEY — Design System v2
   Mobile-first | Performance-optimized
   ============================================ */

/* --- Tokens --- */
:root {
  --ink-950: #0b0e13;
  --ink-900: #10141b;
  --ink-800: #171c25;
  --ink-700: #232a36;

  --red: #c82021;
  --red-dark: #a51718;
  --red-bright: #e5393a;
  --red-tint: #fbeaea;

  --paper: #ffffff;
  --paper-dim: #f5f6f8;
  --line: #e5e8ed;
  --line-strong: #d4d9e0;

  --text: #1f242c;
  --text-2: #565f6d;
  --text-3: #7e8898;

  --d-text: #eef1f5;
  --d-text-2: #9aa5b4;
  --d-line: rgba(255,255,255,0.09);

  --color-whatsapp: #25D366;

  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Code', 'JetBrains Mono', Menlo, monospace;

  --fs-hero: clamp(2.5rem, 6.5vw, 4.5rem);
  --fs-h1: clamp(2.1rem, 4.5vw, 3.25rem);
  --fs-h2: clamp(1.75rem, 3.2vw, 2.5rem);
  --fs-h3: clamp(1.2rem, 2vw, 1.45rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-tiny: 0.8125rem;

  --lh-body: 1.7;
  --lh-heading: 1.08;

  --max-width: 1200px;
  --gutter: 1.25rem;
  --section-pad: clamp(4rem, 9vw, 7rem);
  --radius: 16px;
  --radius-sm: 10px;

  --shadow-sm: 0 1px 3px rgba(15,20,30,0.07);
  --shadow-md: 0 6px 24px rgba(15,20,30,0.09);
  --shadow-lg: 0 16px 48px rgba(15,20,30,0.14);
  --shadow-red: 0 8px 24px rgba(200,32,33,0.28);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.25s var(--ease);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea, select { font: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }

/* --- Utilities --- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding: var(--section-pad) 0; }
.section--alt { background: var(--paper-dim); }
.section--dark { background: var(--ink-950); color: var(--d-text); }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 1000;
  background: var(--ink-950); color: #fff; padding: 0.6rem 1rem;
  border-radius: var(--radius-sm); transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading); line-height: var(--lh-heading);
  font-weight: 800; color: var(--ink-950); letter-spacing: -0.02em;
  text-wrap: balance;
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--d-text); }
h1 { font-size: var(--fs-h1); margin-bottom: 1.25rem; }
h2 { font-size: var(--fs-h2); margin-bottom: 1rem; }
h3 { font-size: var(--fs-h3); margin-bottom: 0.75rem; font-weight: 700; }
h4 { font-weight: 700; }
p { margin-bottom: 1rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-2); line-height: 1.75; text-wrap: pretty; }
.section--dark .lead, .section--dark p { color: var(--d-text-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--red); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--red); }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ''; width: 26px; height: 2px; background: var(--red); }
.section-head p { margin-bottom: 0; color: var(--text-2); }
.section--dark .section-head p { color: var(--d-text-2); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.95rem 1.9rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: var(--fs-body); line-height: 1.2;
  transition: all var(--transition); white-space: nowrap;
}
.btn svg { flex-shrink: 0; }
.btn--primary { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn--primary:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost-dark { background: var(--paper); color: var(--ink-950); border: 1px solid var(--line-strong); }
.btn--ghost-dark:hover { border-color: var(--ink-950); color: var(--ink-950); }
.btn--outline { background: transparent; color: var(--ink-950); border: 1px solid var(--line-strong); }
.btn--outline:hover { border-color: var(--ink-950); color: var(--ink-950); }
.btn--sm { padding: 0.6rem 1.2rem; font-size: var(--fs-small); }

/* --- Header --- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.header--scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 24px rgba(15,20,30,0.06); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; gap: 1rem;
}
.header__logo { flex-shrink: 0; }
.header__logo img { height: 46px; width: auto; display: block; }
.header__nav { display: none; }
.header__phone { display: none; }
.header__cta { display: none; }
.header__actions { display: flex; align-items: center; gap: 0.9rem; }

/* Mobile menu toggle */
.menu-toggle { display: flex; flex-direction: column; gap: 5px; width: 28px; padding: 4px 0; }
.menu-toggle span {
  display: block; height: 2px; background: var(--ink-950);
  border-radius: 2px; transition: all var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed; inset: 80px 0 0 0;
  background: var(--paper); padding: 1.5rem var(--gutter) 3rem;
  overflow-y: auto; z-index: 99;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 0.95rem 0; color: var(--ink-950);
  font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid var(--line);
}
.mobile-nav a:hover { color: var(--red); }
.mobile-nav__sub { padding-left: 1rem; }
.mobile-nav__sub a { font-weight: 500; font-size: var(--fs-small); color: var(--text-2); }
.mobile-nav .btn { display: flex; justify-content: center; margin-top: 1.25rem; width: 100%; border-bottom: none; }
.mobile-nav__phone { text-align: center; margin-top: 0.75rem; border-bottom: none !important; }

/* Desktop dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown__menu {
  visibility: hidden; opacity: 0; transform: translateY(6px);
  position: absolute; top: calc(100% + 10px); left: 50%; margin-left: -140px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  min-width: 280px; padding: 0.5rem; z-index: 101;
  transition: all 0.2s var(--ease);
}
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu { visibility: visible; opacity: 1; transform: translateY(0); }
.nav-dropdown__menu a {
  display: block; padding: 0.7rem 0.9rem; border-radius: 8px;
  color: var(--text); font-size: var(--fs-small); font-weight: 500;
}
.nav-dropdown__menu a:hover { background: var(--paper-dim); color: var(--red); }

/* --- Hero (light, canvas point cloud) --- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-dim) 100%);
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
.hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block;
}
/* legibility scrim over canvas */
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 62%, rgba(255,255,255,0.88) 88%),
    linear-gradient(90deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.55) 44%, rgba(255,255,255,0.02) 78%);
}
.hero__inner { position: relative; z-index: 2; padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(2.5rem, 6vw, 4rem); }
.hero__content { max-width: 640px; }
.hero h1 {
  font-size: var(--fs-hero); color: var(--ink-950); letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead { color: var(--text-2); max-width: 560px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.1rem; }

/* Spec strip inside hero */
.hero__specs {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2rem;
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.5rem; margin-top: clamp(2.5rem, 6vw, 4.5rem);
}
.hero__spec dt {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-2); margin-bottom: 0.3rem;
}
.hero__spec dd {
  font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--ink-950);
}
.hero__spec dd span { color: var(--red); }

/* --- Page header (inner pages) --- */
.page-header {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-dim) 100%);
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
}
.page-header::before {
  content: ''; position: absolute; inset: 0; opacity: 0.55;
  background-image:
    radial-gradient(1.5px 1.5px at 18% 32%, rgba(200,32,33,0.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 62% 68%, rgba(90,110,140,0.35) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 81% 22%, rgba(90,110,140,0.3) 50%, transparent 51%),
    radial-gradient(1px 1px at 38% 82%, rgba(200,32,33,0.3) 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 55%, rgba(90,110,140,0.28) 50%, transparent 51%);
  background-size: 210px 210px, 160px 160px, 240px 240px, 190px 190px, 170px 170px;
}
.page-header__content { position: relative; z-index: 2; max-width: 760px; }
.page-header h1 { color: var(--ink-950); }
.page-header .lead { color: var(--text-2); }
.page-header__buttons { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.9rem; }

/* --- Steps / How It Works --- */
.steps { display: grid; gap: 1.25rem; counter-reset: hiw; }
.step {
  position: relative; counter-increment: hiw;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.9rem;
  transition: all var(--transition);
}
.step:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.step__number {
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
  color: var(--red); letter-spacing: 0.12em; margin-bottom: 1.1rem;
}
.step__number::before { content: '0' counter(hiw); font-size: 1.6rem; letter-spacing: 0; display: block; line-height: 1; margin-bottom: 0.4rem; }
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--text-2); margin-bottom: 0; font-size: 0.95rem; }

/* --- Service Cards --- */
.services-grid { display: grid; gap: 1.25rem; }
.service-card {
  display: flex; flex-direction: column;
  background: var(--paper); border-radius: var(--radius);
  padding: 2rem; border: 1px solid var(--line);
  transition: all var(--transition); position: relative;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--line-strong); }
.service-card__icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 1.25rem;
  background: var(--red-tint); color: var(--red);
  display: flex; align-items: center; justify-content: center;
}
.service-card__badge {
  display: inline-block; align-self: flex-start; padding: 0.3rem 0.8rem; border-radius: 99px;
  background: var(--red); color: #fff; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.1rem;
}
.service-card h3 { font-size: 1.3rem; }
.service-card p { color: var(--text-2); font-size: 0.95rem; }
.service-card__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.25rem 0 1.25rem; }
.service-card__tag {
  padding: 0.28rem 0.7rem; background: var(--paper-dim); border: 1px solid var(--line);
  border-radius: 99px; font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-2); font-weight: 500; letter-spacing: 0.03em;
}
.service-card .btn { margin-top: auto; align-self: flex-start; }

.service-card--featured {
  border: 2px solid var(--red); box-shadow: var(--shadow-md);
  background-image: radial-gradient(ellipse 60% 50% at 85% 15%, rgba(200,32,33,0.06), transparent);
}
.service-card--featured h3 { font-size: 1.5rem; }

/* --- Portfolio / Deliverables --- */
.portfolio-grid { display: grid; gap: 1.25rem; }
.portfolio-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--ink-900); min-height: 300px; display: flex; align-items: flex-end;
}
.portfolio-item img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.6s var(--ease);
}
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-item__content {
  position: relative; z-index: 2; padding: 1.5rem; width: 100%;
  background: linear-gradient(180deg, rgba(11,14,19,0) 0%, rgba(11,14,19,0.62) 30%, rgba(11,14,19,0.95) 100%);
  padding-top: 5rem;
}
.portfolio-item h3 { color: #fff; font-size: 1.15rem; margin-bottom: 0.35rem; }
.portfolio-item p { color: #d5dbe4; font-size: var(--fs-small); margin-bottom: 0; }
.portfolio-item__tag {
  position: absolute; top: 1.1rem; left: 1.1rem; z-index: 2;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: #fff; background: rgba(11,14,19,0.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 0.3rem 0.7rem; border-radius: 99px;
}

/* --- Software Table --- */
.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper);
}
.software-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.software-table th {
  text-align: left; padding: 1rem 1.4rem; background: var(--ink-950);
  color: #fff; font-family: var(--font-heading); font-size: var(--fs-small);
  font-weight: 700; letter-spacing: 0.02em;
}
.software-table td { padding: 1rem 1.4rem; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--text-2); }
.software-table td:first-child { color: var(--ink-950); font-weight: 600; }
.software-table code {
  font-family: var(--font-mono); font-size: 0.8rem; background: var(--paper-dim);
  border: 1px solid var(--line); padding: 0.15rem 0.5rem; border-radius: 6px; color: var(--red);
}
.software-table tr:hover td { background: var(--paper-dim); }
.software-table__note { margin: 1.1rem 0.25rem 0; font-size: var(--fs-small); color: var(--text-3); }

/* --- Stats --- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; text-align: center; }
.stat__number {
  font-family: var(--font-heading); font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800; color: var(--ink-950); letter-spacing: -0.02em; line-height: 1;
}
.stat__number em { font-style: normal; color: var(--red); }
.stat__label {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-2); margin-top: 0.7rem;
}
.section--dark .stat__number { color: #fff; }
.section--dark .stat__number em { color: var(--red-bright); }
.section--dark .stat__label { color: var(--d-text-2); }

/* --- Audience --- */
.audience-grid { display: grid; gap: 1rem; }
.audience-item {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.4rem; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
  transition: all var(--transition);
}
.audience-item:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.audience-item__icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px;
  background: var(--red-tint); color: var(--red);
  display: flex; align-items: center; justify-content: center;
}
.audience-item h4 { font-size: 1rem; margin-bottom: 0.3rem; }
.audience-item p { font-size: var(--fs-small); color: var(--text-2); margin-bottom: 0; }

/* --- CTA Panel --- */
.cta-section { background: var(--paper); padding: clamp(2rem, 4vw, 3rem) 0 var(--section-pad); }
.cta-panel {
  position: relative; overflow: hidden; text-align: center;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow-md);
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem);
}
.cta-panel::before {
  content: ''; position: absolute; inset: -40% -20%; pointer-events: none;
  background: radial-gradient(ellipse 45% 40% at 50% 0%, rgba(200,32,33,0.07), transparent 70%);
}
.cta-panel > * { position: relative; }
.cta-panel h2 { color: var(--ink-950); }
.cta-panel p { color: var(--text-2); max-width: 520px; margin: 0 auto 2rem; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }

/* --- Footer --- */
.footer { background: var(--paper-dim); color: var(--text-2); padding: clamp(3.5rem, 7vw, 5rem) 0 2rem; border-top: 1px solid var(--line); }
.footer__grid { display: grid; gap: 2.5rem; }
.footer h4 {
  color: var(--ink-950); font-size: 0.8rem; font-family: var(--font-mono); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1.1rem;
}
.footer a { color: var(--text-2); font-size: var(--fs-small); }
.footer a:hover { color: var(--red); }
.footer__links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__brand { font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem; color: var(--ink-950); margin-bottom: 0.9rem; }
.footer__brand span { color: var(--red); }
.footer__contact p { font-size: var(--fs-small); margin-bottom: 0.4rem; }
.footer__social { display: flex; gap: 0.7rem; margin-top: 1.25rem; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--paper); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); color: var(--text-2);
}
.footer__social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer__bottom {
  margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid var(--line);
  font-size: var(--fs-tiny); display: flex; flex-wrap: wrap; gap: 0.75rem;
  justify-content: space-between; color: var(--text-3);
}

/* --- FAQ Accordion --- */
.faq-group { margin-bottom: 2.5rem; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item__q {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 1.3rem 0; text-align: left;
  font-weight: 600; color: var(--ink-950); font-size: 1.02rem; gap: 1rem;
  font-family: var(--font-heading);
}
.faq-item__q:hover { color: var(--red); }
.faq-item__q::after {
  content: ''; flex-shrink: 0; width: 12px; height: 12px;
  background:
    linear-gradient(var(--red), var(--red)) center/12px 2px no-repeat,
    linear-gradient(var(--red), var(--red)) center/2px 12px no-repeat;
  transition: transform var(--transition);
}
.faq-item.open .faq-item__q::after { transform: rotate(45deg); }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-item.open .faq-item__a { max-height: 600px; }
.faq-item__a p { padding-bottom: 1.3rem; color: var(--text-2); margin-bottom: 0; }

/* --- Forms --- */
.form-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; gap: 1.15rem; }
.form-group label {
  display: block; margin-bottom: 0.45rem; font-weight: 600;
  font-size: var(--fs-small); color: var(--ink-950);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); background: var(--paper);
  transition: border-color var(--transition), box-shadow var(--transition);
  color: var(--text);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200,32,33,0.12);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: var(--fs-tiny); color: var(--text-3); margin: 0.5rem 0 0; }

/* --- Content pages --- */
.content-section h2 { margin-top: clamp(2rem, 5vw, 3rem); }
.content-section h3 { margin-top: 1.75rem; }
.content-section p { color: var(--text-2); }
.content-section ul { padding-left: 0; margin: 0.75rem 0 1.25rem; }
.content-section li {
  position: relative; padding-left: 1.7rem; margin-bottom: 0.6rem; color: var(--text-2);
}
.content-section li::before {
  content: ''; position: absolute; left: 0; top: 0.48em;
  width: 0.95rem; height: 0.95rem; border-radius: 50%;
  background: var(--red-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c82021' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/60% no-repeat;
}

/* Spec table (definition grid) */
.spec-grid {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin: 1.75rem 0;
}
.spec-row { display: grid; grid-template-columns: 1fr; background: var(--paper); }
.spec-row dt {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-2);
  padding: 0.9rem 1.25rem 0;
}
.spec-row dd { padding: 0.15rem 1.25rem 0.9rem; font-weight: 600; color: var(--ink-950); }

/* Deliverables list */
.deliverables { display: grid; gap: 0.7rem; margin: 1.5rem 0; }
.deliverable-item {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.95rem 1.15rem; background: var(--paper-dim);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-weight: 500; font-size: 0.95rem;
}
.deliverable-item::before {
  content: ''; flex-shrink: 0; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--red-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c82021' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/60% no-repeat;
}

/* Process steps (numbered timeline) */
.process-steps { counter-reset: step; margin: 2rem 0; position: relative; }
.process-step {
  counter-increment: step; position: relative;
  padding: 0 0 1.9rem 3.4rem;
}
.process-step::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink-950); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 600; font-size: var(--fs-small);
}
.process-step::after {
  content: ''; position: absolute; left: 17px; top: 40px; bottom: 4px;
  width: 2px; background: var(--line);
}
.process-step:last-child { padding-bottom: 0; }
.process-step:last-child::after { display: none; }
.process-step h3 { margin: 0.3rem 0 0.4rem; font-size: 1.1rem; }
.process-step p { margin-bottom: 0; color: var(--text-2); font-size: 0.95rem; }

/* --- Drawing cards (line-art: full drawing on white, caption below) --- */
.drawing-grid { display: grid; gap: 1.25rem; margin: 1.5rem 0; }
.drawing-card {
  display: block; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--paper); transition: all var(--transition);
}
.drawing-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.drawing-card__frame {
  position: relative; aspect-ratio: 4 / 3; background: #fff;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.drawing-card__frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform 0.5s var(--ease);
}
.drawing-card:hover .drawing-card__frame img { transform: scale(1.03); }
.drawing-card__tag {
  position: absolute; top: 0.85rem; left: 0.85rem;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-950); background: rgba(255,255,255,0.9);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border: 1px solid var(--line); padding: 0.28rem 0.65rem; border-radius: 99px;
}
.drawing-card__zoom {
  position: absolute; bottom: 0.85rem; right: 0.85rem;
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,0.92); border: 1px solid var(--line); color: var(--ink-950);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
}
.drawing-card:hover .drawing-card__zoom { opacity: 1; }
.drawing-card__body { display: block; padding: 1.35rem 1.4rem; }
.drawing-card__body h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.drawing-card__body p { font-size: var(--fs-small); color: var(--text-2); margin-bottom: 0; }

/* --- Video player (playlist left, big player right on desktop) --- */
.video-player { display: grid; gap: 1rem; margin: 1.5rem 0; }
.video-player__main {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #000; border: 1px solid var(--line); aspect-ratio: 16 / 9;
}
.video-player__main iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-facade {
  position: relative; display: block; width: 100%; height: 100%;
  overflow: hidden; background: #000; cursor: pointer; padding: 0;
}
.video-facade img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.92;
  transition: opacity var(--transition), transform 0.5s var(--ease);
}
.video-facade:hover img { opacity: 1; transform: scale(1.03); }
.video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 62px; height: 62px; border-radius: 50%;
  background: rgba(200,32,33,0.92); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform var(--transition), background var(--transition);
}
.video-facade:hover .video-play { transform: translate(-50%, -50%) scale(1.1); background: var(--red); }
.video-player__list { display: grid; gap: 0.75rem; align-content: start; }
.video-thumb {
  display: grid; grid-template-columns: 118px 1fr; gap: 0.8rem; align-items: center;
  padding: 0.5rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); text-align: left; cursor: pointer;
  font-size: var(--fs-tiny); font-weight: 600; color: var(--ink-950); line-height: 1.4;
  transition: all var(--transition);
}
.video-thumb:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.video-thumb.is-active { border-color: var(--red); background: var(--red-tint); }
.video-thumb img {
  width: 118px; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 6px; background: #000;
}

/* --- Contact cards --- */
.contact-grid { display: grid; gap: 1rem; margin: 0 0 1rem; }
.contact-card {
  padding: 1.75rem 1.5rem; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); text-align: center; transition: all var(--transition);
}
.contact-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.contact-card__icon {
  width: 46px; height: 46px; margin: 0 auto 1rem; border-radius: 12px;
  background: var(--red-tint); color: var(--red);
  display: flex; align-items: center; justify-content: center;
}
.contact-card h4 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.contact-card a { font-weight: 600; font-size: var(--fs-small); word-break: break-word; }

/* --- Error / utility pages --- */
.error-page { text-align: center; padding: clamp(5rem, 12vw, 9rem) 0; }
.error-page h1 {
  font-size: clamp(5rem, 14vw, 8rem); color: var(--ink-950);
  letter-spacing: -0.04em; margin-bottom: 0.25rem;
}
.error-page h1 span { color: var(--red); }
.error-page h2 { font-size: 1.5rem; }

/* --- WhatsApp float --- */
.whatsapp-btn {
  position: fixed; bottom: 22px; right: 22px; z-index: 998;
  width: 54px; height: 54px; background: var(--color-whatsapp);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.22);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-btn:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,0.28); }
.whatsapp-btn svg { width: 27px; height: 27px; fill: #fff; }

/* --- Scroll reveal --- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================
   TABLET — 768px
   ============================================ */
@media (min-width: 768px) {
  :root { --gutter: 2rem; }

  .steps { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-group--full { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .drawing-grid { grid-template-columns: repeat(3, 1fr); }
  .video-player { grid-template-columns: 280px 1fr; align-items: stretch; }
  .video-player__list { grid-column: 1; grid-row: 1; }
  .video-player__main { grid-column: 2; grid-row: 1; }
  .hero__specs { grid-template-columns: repeat(4, 1fr); }
  .spec-row { grid-template-columns: 220px 1fr; align-items: center; }
  .spec-row dt { padding: 1rem 1.25rem; }
  .spec-row dd { padding: 1rem 1.25rem 1rem 0; }
}

/* ============================================
   DESKTOP — 1024px
   ============================================ */
@media (min-width: 1024px) {
  :root { --gutter: 2.5rem; }

  .header__nav { display: flex; align-items: center; gap: 1.9rem; }
  .header__nav > a, .nav-dropdown > a {
    color: var(--text); font-weight: 500; font-size: var(--fs-small);
    padding: 0.35rem 0;
  }
  .header__nav > a:hover, .nav-dropdown > a:hover { color: var(--red); }
  .header__nav > a[aria-current="page"] { color: var(--red); font-weight: 600; }
  .header__phone {
    display: inline-flex; align-items: center; gap: 0.45rem;
    color: var(--ink-950); font-weight: 600; font-size: var(--fs-small);
  }
  .header__phone:hover { color: var(--red); }
  .header__cta { display: inline-flex; }
  .menu-toggle { display: none; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; }
  .service-card--featured > div:last-child { display: flex; align-items: flex-end; justify-content: flex-end; }
  .audience-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 2fr 1fr 1.4fr 1fr; }
}

/* --- Print --- */
@media print {
  .header, .footer, .whatsapp-btn, .cta-section, .hero__canvas { display: none; }
  body { font-size: 12pt; color: #000; }
}
