/* WeCanny site styles. Sections follow page order; breakpoints and motion at the end. */

/* ---------- Tokens ---------- */
:root {
  --theme: #384BFF;
  --theme2: #18185E;
  --theme-mid: #2a2f9e;
  --accent: #F98600;
  --ink: #0F0D1D;
  --muted: #5d6280;
  --bg: #F6F7FF;
  --surface: #ffffff;
  --line: #E3E6FA;
  --error: #d93036;
  --success: #12805c;
  --title-font: "Rajdhani", sans-serif;
  --body-font: "Plus Jakarta Sans", sans-serif;
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 30px 60px rgba(24, 24, 94, 0.14);
  --container: 1240px;
  --header-h: 68px;
  --section-pad: 100px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3 { font-family: var(--title-font); line-height: 1.05; font-weight: 700; }
h2 { font-size: clamp(34px, 4.2vw, 52px); margin-bottom: 18px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.no-js [data-js-only] { display: none !important; }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.section { padding-block: var(--section-pad); }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--theme); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 16px; }

/* ---------- Shared components ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--theme); background: rgba(56, 75, 255, 0.08);
  padding: 6px 12px; border-radius: 99px; margin-bottom: 14px;
}
.eyebrow--on-dark { color: #fff; background: rgba(255, 255, 255, 0.12); }
.lead { color: var(--muted); font-size: 17px; line-height: 1.7; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 15px; line-height: 1.2;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--theme); color: #fff; box-shadow: 0 10px 24px rgba(56, 75, 255, 0.35); }
.btn--primary:hover { box-shadow: 0 14px 30px rgba(56, 75, 255, 0.45); }
.btn--ghost { border: 1.5px solid rgba(255, 255, 255, 0.4); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn--whatsapp { background: #25D366; color: #fff; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

.link-arrow { display: inline-flex; gap: 6px; font-weight: 700; font-size: 14px; color: var(--theme); }
.link-arrow span { transition: transform 0.25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

.stars { color: var(--accent); letter-spacing: 2px; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 44px; }
.section-head h2 { margin-bottom: 0; }
.section-head__lead { max-width: 440px; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 16px 0 auto; z-index: 50;
  transition: inset 0.3s var(--ease);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: 24px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: #fff;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.brand { display: block; flex-shrink: 0; }
.brand-logo { width: 140px; }
.brand-logo--on-light { display: none; }
.site-header.is-scrolled { inset-block-start: 8px; }
.site-header.is-scrolled .header-inner {
  background: rgba(255, 255, 255, 0.92); color: var(--ink);
  border-color: var(--line); box-shadow: 0 10px 30px rgba(24, 24, 94, 0.12);
}
.site-header.is-scrolled .brand-logo--on-dark { display: none; }
.site-header.is-scrolled .brand-logo--on-light { display: block; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul { display: flex; gap: 28px; font-weight: 600; font-size: 15px; }
.site-nav ul a { position: relative; padding-block: 6px; }
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.site-nav ul a:hover::after, .site-nav ul a[aria-current="true"]::after { transform: scaleX(1); }
.nav-cta { padding: 10px 18px; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; position: relative; }
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  padding-top: calc(var(--header-h) + 110px);
  background:
    radial-gradient(900px 500px at 80% 15%, rgba(91, 107, 255, 0.9), transparent 60%),
    radial-gradient(700px 500px at 5% 95%, rgba(249, 134, 0, 0.3), transparent 60%),
    linear-gradient(135deg, var(--theme2), var(--theme-mid));
}
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 40px; align-items: center; padding-bottom: 80px; }
.hero h1 { font-size: clamp(44px, 5.4vw, 72px); }
.rotate {
  display: inline-block; color: var(--accent);
  border-right: 4px solid var(--accent); padding-right: 6px;
}
.rotate.is-swapping { animation: word-in 0.5s var(--ease); }
@keyframes word-in { from { opacity: 0; transform: translateY(0.3em); } to { opacity: 1; transform: none; } }
.hero-lead { font-size: 18px; color: #d8dbff; max-width: 560px; margin: 22px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.chips li {
  padding: 8px 14px; border-radius: 99px; font-size: 13px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-visual { position: relative; height: 440px; }
.float-card {
  position: absolute; display: block; border-radius: 20px; padding: 20px;
  background: rgba(255, 255, 255, 0.95); color: var(--ink);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s var(--ease);
  translate: var(--px, 0) var(--py, 0);
}
.float-card--dash { left: 20px; top: 10px; width: 320px; rotate: -4deg; animation: bob 7s ease-in-out infinite; }
.float-card--stat { right: 0; top: 170px; width: 230px; rotate: 5deg; animation: bob 6s ease-in-out -2s infinite; }
.float-card--call { left: 0; bottom: 0; width: 250px; background: var(--accent); color: #fff; animation: bob 8s ease-in-out -4s infinite; }
.float-card small { display: block; font-size: 13px; opacity: 0.8; }
.float-card__big { display: block; font: 700 46px/1 var(--title-font); color: var(--theme); margin: 4px 0; }
.float-card__phone { display: block; font: 700 24px/1.2 var(--title-font); margin-top: 4px; }
.bar { display: block; height: 10px; width: var(--w); border-radius: 6px; background: var(--line); margin-top: 10px; }
.bar--accent { background: var(--theme); }
@keyframes bob { 50% { transform: translateY(-12px); } }

.stats { background: rgba(255, 255, 255, 0.06); border-top: 1px solid rgba(255, 255, 255, 0.14); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 28px; }
.stats-grid div { display: flex; flex-direction: column-reverse; }
.stats dd { font: 700 42px/1 var(--title-font); }
.stats dt { color: #c9ccff; font-size: 14px; margin-top: 6px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; }
.about-badge {
  position: absolute; right: 0; bottom: 40px;
  background: var(--surface); border-radius: 18px; padding: 16px 22px; box-shadow: var(--shadow);
}
.about-badge__big { display: block; font: 700 36px/1 var(--title-font); color: var(--theme); }
.about-badge small { color: var(--muted); }
.tab-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 16px; }
.tab, .filter {
  padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 14px;
  background: var(--surface); border: 1px solid var(--line);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.tab:hover, .filter:hover { border-color: var(--theme); }
.tab[aria-selected="true"], .filter[aria-pressed="true"] { background: var(--theme); color: #fff; border-color: var(--theme); }
.tab-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px 22px; margin-bottom: 12px; color: var(--muted);
}
.tab-panel h3 { font-size: 22px; color: var(--ink); margin-bottom: 6px; }
.js .tab-panel h3 { display: none; }
.tab-panel[hidden] { display: none; }
.tab-panel.is-active { animation: fade-up 0.4s var(--ease); }
.tabs + .link-arrow { margin-top: 10px; }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Services ---------- */
.services { background: var(--surface); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(200px, auto); gap: 18px; }
.svc {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  padding: 24px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.svc:hover { border-color: rgba(56, 75, 255, 0.4); box-shadow: 0 20px 40px rgba(56, 75, 255, 0.14); }
.svc h3 { font-size: 26px; margin-bottom: 6px; }
.svc p { font-size: 14px; color: var(--muted); }
.svc__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--surface); box-shadow: 0 6px 16px rgba(24, 24, 94, 0.08);
}
.svc__icon img { width: 32px; height: 32px; }
.svc--wide { grid-column: span 2; }
.svc--featured {
  grid-column: span 2; grid-row: span 2;
  background: linear-gradient(150deg, var(--theme), var(--theme2)); color: #fff; border: 0;
  box-shadow: 0 30px 60px rgba(56, 75, 255, 0.3);
}
.svc--featured h3 { font-size: 40px; }
.svc--featured p { color: #dfe2ff; font-size: 16px; margin-bottom: 18px; }
.svc--featured .link-arrow { color: var(--accent); }
.svc[hidden] { display: none; }

/* ---------- Portfolio ---------- */
.projects { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.project-card {
  position: relative; display: block; height: 360px; overflow: hidden;
  border-radius: 24px; background: var(--theme2);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.project-card:hover { box-shadow: var(--shadow); }
.project-card:hover img { transform: scale(1.06); }
.project-card__cap {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: flex; flex-direction: column; padding: 16px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.95); transition: background-color 0.3s, color 0.3s;
}
.project-card__cap small { color: var(--theme); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.project-card__cap strong { font: 700 24px/1.1 var(--title-font); }
.project-card:hover .project-card__cap, .project-card:focus-visible .project-card__cap { background: var(--theme2); color: #fff; }
.project-card:hover .project-card__cap small { color: var(--accent); }

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(960px, 92vw); max-height: 90vh; margin: auto;
}
.lightbox::backdrop { background: rgba(15, 13, 29, 0.8); backdrop-filter: blur(4px); }
.lightbox img { max-height: 86vh; width: auto; margin-inline: auto; border-radius: 16px; }
.lightbox__close {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%;
  background: #fff; color: var(--ink); font-size: 22px; line-height: 1;
}

/* ---------- Process ---------- */
.process { background: var(--theme2); color: #fff; }
.process-track { --progress: 0; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 50px; }
.process-track::before, .process-track::after {
  content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 4px; border-radius: 4px;
}
.process-track::before { background: rgba(255, 255, 255, 0.14); }
.process-track::after { background: var(--accent); transform: scaleX(var(--progress)); transform-origin: left; }
.no-js .process-track::after { transform: none; }
.step__dot {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--theme-mid); border: 3px solid rgba(255, 255, 255, 0.3);
  font: 700 22px var(--title-font);
  transition: background-color 0.4s, border-color 0.4s, transform 0.4s var(--ease);
}
.step.is-reached .step__dot, .no-js .step__dot { background: var(--accent); border-color: var(--accent); transform: scale(1.06); }
.step h3 { font-size: 26px; margin: 22px 0 8px; }
.step p { color: #c9ccff; font-size: 14px; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--surface); }
.carousel-viewport { overflow: hidden; padding-block: 20px; touch-action: pan-y; } /* horizontal swipes reach JS instead of being cancelled */
.no-js .carousel-viewport { overflow-x: auto; scroll-snap-type: x mandatory; }
.carousel-track { display: flex; gap: 24px; transition: transform 0.6s var(--ease); }
.testimonial {
  flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: center;
  padding: 32px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line);
  opacity: 0.55; transform: scale(0.94);
  transition: opacity 0.4s, transform 0.4s var(--ease), box-shadow 0.4s, background-color 0.4s;
}
.no-js .testimonial, .testimonial.is-active { opacity: 1; transform: none; background: var(--surface); box-shadow: var(--shadow); }
.testimonial blockquote { margin: 14px 0 22px; color: var(--ink); font-size: 16px; line-height: 1.7; }
.testimonial figcaption { display: flex; gap: 12px; align-items: center; }
.testimonial figcaption span:last-child { display: flex; flex-direction: column; }
.testimonial small { color: var(--muted); }
.avatar {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--theme); color: #fff; font-weight: 700;
}
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 20px; }
.carousel-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); font-size: 18px;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.carousel-btn--pause { font-size: 13px; letter-spacing: -1px; }
.carousel-btn:hover { background: var(--theme); border-color: var(--theme); color: #fff; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button {
  width: 10px; height: 10px; border-radius: 99px; background: var(--line);
  transition: width 0.3s var(--ease), background-color 0.3s;
}
.carousel-dots button[aria-current="true"] { width: 30px; background: var(--theme); }

/* ---------- Contact ---------- */
.contact-box {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); background: var(--surface);
}
.contact-info { background: linear-gradient(160deg, var(--theme), var(--theme2)); color: #fff; padding: 50px; }
.contact-info h2 { font-size: clamp(34px, 3.6vw, 46px); }
.contact-info p { color: #dfe2ff; }
.contact-list { margin: 28px 0 34px; display: grid; gap: 16px; font-weight: 600; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.14); }
.contact-form { padding: 50px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 6px; }
.field label, .field legend { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--theme); background: var(--surface); box-shadow: 0 0 0 4px rgba(56, 75, 255, 0.12);
}
.field [aria-invalid="true"] { border-color: var(--error); }
/* Error slot always reserves its line, so showing an error never shifts the layout under the pointer. */
.field-error { display: block; min-height: 18px; margin-top: 4px; font-size: 12px; line-height: 18px; color: var(--error); }
fieldset.field { border: 0; padding: 0; margin-bottom: 22px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span {
  display: inline-block; padding: 9px 14px; border-radius: 99px; cursor: pointer;
  border: 1.5px solid var(--line); font-size: 13px; font-weight: 600;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.pill input:checked + span { border-color: var(--theme); background: rgba(56, 75, 255, 0.08); color: var(--theme); }
.pill input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 8px; }
.form-actions small { color: var(--muted); }
.form-status { margin-top: 16px; font-weight: 600; }
/* Stays rendered when empty so the role=status live region is in the accessibility tree before text arrives. */
.form-status:empty { margin: 0; }
.form-status[data-state="success"] { color: var(--success); }
.form-status[data-state="error"] { color: var(--error); }
.honeypot { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c3c6dd; padding: 60px 0 30px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.footer-inner .brand img { width: 150px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; font-weight: 600; font-size: 15px; }
.footer-nav a:hover { color: #fff; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08); color: #fff; transition: background-color 0.2s, transform 0.2s;
}
.socials a:hover { background: var(--theme); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 34px; padding-top: 22px; font-size: 13px; }

/* ---------- Simple pages (privacy, 404, thank you) ---------- */
.page-hero {
  padding: calc(var(--header-h) + 90px) 0 70px; color: #fff; text-align: center;
  background: linear-gradient(135deg, var(--theme2), var(--theme-mid));
}
.page-hero h1 { font-size: clamp(40px, 5vw, 64px); }
.page-hero p { color: #d8dbff; margin-top: 12px; }
.prose { max-width: 820px; margin-inline: auto; }
.prose h2 { font-size: 30px; margin: 36px 0 12px; }
.prose p, .prose li { color: var(--muted); margin-bottom: 12px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose a:not(.btn) { color: var(--theme); text-decoration: underline; }
.prose .btn { margin: 4px; }

/* ---------- Scroll reveal (only when JS adds .reveal) ---------- */
/* Uses `translate`, not `transform`, so it never overrides the card tilt (which owns `transform`). */
.reveal { opacity: 0; translate: 0 28px; transition: opacity 0.8s var(--ease), translate 0.8s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.reveal.is-visible { opacity: 1; translate: none; }

/* ---------- Tablet ---------- */
@media (max-width: 991px) {
  :root { --section-pad: 80px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 20px; border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }
  .site-header .container { position: relative; }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .no-js .site-nav { position: static; opacity: 1; visibility: visible; transform: none; display: none; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav ul a { display: block; padding: 10px 6px; }
  .hero-grid, .about-grid, .contact-box { grid-template-columns: 1fr; }
  .hero-visual { height: 360px; max-width: 480px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .svc--featured { grid-row: span 1; }
  .projects { grid-template-columns: 1fr 1fr; }
  .projects .project-card:first-child { grid-column: span 2; }
  .process-track { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .process-track::before, .process-track::after { display: none; }
  .testimonial { flex-basis: calc((100% - 24px) / 2); }
  .section-head { flex-direction: column; align-items: flex-start; }
}

/* ---------- Phone ---------- */
@media (max-width: 575px) {
  :root { --section-pad: 64px; --header-h: 60px; }
  .site-header { inset-block-start: 10px; }
  .header-inner { padding-inline: 14px; }
  .brand-logo { width: 120px; }
  .hero { padding-top: calc(var(--header-h) + 70px); }
  .hero-visual { height: 300px; }
  .float-card--dash { width: 240px; left: 0; }
  .float-card--stat { width: 180px; top: 130px; }
  .float-card--call { width: 220px; }
  .stats dd { font-size: 34px; }
  .bento, .projects, .form-row, .process-track { grid-template-columns: 1fr; }
  .svc--wide, .svc--featured, .projects .project-card:first-child { grid-column: auto; }
  .svc--featured h3 { font-size: 32px; }
  .project-card { height: 300px; }
  .testimonial { flex-basis: 100%; padding: 24px; }
  .contact-info, .contact-form { padding: 28px 22px; }
  .about-badge { right: 8px; bottom: 16px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; translate: none; }
}
