/* Ambika Auto Agency — static site. Dark automotive theme, no external dependencies. */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-500-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-700-latin.woff2") format("woff2"); }
/* Size-matched fallbacks so text keeps its shape while the web fonts load (no layout shift on swap). */
@font-face { font-family: "Barlow Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 96.2%; ascent-override: 104%; descent-override: 20.8%; line-gap-override: 0%; }
@font-face { font-family: "Barlow Condensed Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial"); size-adjust: 67.7%; ascent-override: 147.7%; descent-override: 29.5%; line-gap-override: 0%; }

:root {
  --bg: #0b0b0d; --bg-2: #111115; --panel: #17171c; --panel-2: #1d1d23;
  --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .16);
  --text: #eceef1; --muted: #a9adb5; --dim: #7d828b;
  --red: #c8161f; --red-hi: #e3262f; --red-text: #ff5560; --red-deep: #8f0b12;
  --chrome: #c9ccd1;
  --radius: 14px; --radius-lg: 22px;
  --shadow: 0 30px 60px -28px rgba(0, 0, 0, .8);
  --maxw: 1200px; --gutter: clamp(16px, 4vw, 32px);
  --font: "Barlow", "Barlow Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Barlow Condensed", "Barlow Condensed Fallback", "Barlow", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .75, .2, 1);
  --header-h: 84px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; scrollbar-gutter: stable; }
body { font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.04; letter-spacing: .01em; text-transform: uppercase; }
:focus-visible { outline: 3px solid var(--red-text); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: #fff; color: #000; padding: .7rem 1rem; border-radius: 8px; font-weight: 500; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 600; font-size: .95rem; letter-spacing: .22em; text-transform: uppercase; color: var(--red-text); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red-hi); }
.h2 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); margin-top: .8rem; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.head { max-width: 760px; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.head.center { margin-inline: auto; text-align: center; }
.head.center .eyebrow { justify-content: center; }
.head .lead { margin-top: 1rem; }
.head .lead.sub { margin-top: .6rem; color: var(--chrome); font-family: var(--font-head); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- buttons (magnetic + light sweep) ---------- */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px;
  padding: .85rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent; overflow: hidden; isolation: isolate;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
  transform: translate(var(--mx), var(--my)); transition: transform .35s var(--ease);
}
.btn:active { transform: translate(var(--mx), var(--my)) scale(.96); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.38) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn:hover::after { transform: translateX(120%); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 16px 34px -16px rgba(227, 38, 47, .9); }
.btn-red:hover { background: var(--red-hi); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--chrome); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- header (condenses on scroll) ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(11, 11, 13, .88); backdrop-filter: blur(12px) saturate(140%); border-bottom: 1px solid var(--line); box-shadow: 0 12px 30px -20px #000; opacity: 0; transition: opacity .35s ease; }
.site-header.condensed::before { opacity: 1; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }
.plate { display: inline-flex; align-items: center; background: #fff; border-radius: 10px; padding: 4px 10px; box-shadow: 0 10px 24px -14px rgba(0,0,0,.9), inset 0 0 0 1px rgba(0,0,0,.06); transform-origin: left center; transition: transform .35s var(--ease); }
.plate img { width: 92px; height: auto; }
.site-header.condensed .plate { transform: scale(.84); }
.menu { display: flex; align-items: center; gap: .3rem; }
.menu a:not(.btn) { position: relative; padding: .7rem .8rem; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.menu a:not(.btn)::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .45rem; height: 2px; background: var(--red-hi); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.menu a:not(.btn):hover, .menu a[aria-current="true"] { color: #fff; }
.menu a:not(.btn):hover::after, .menu a[aria-current="true"]::after { transform: scaleX(1); }
.menu .btn { margin-left: .6rem; min-height: 44px; padding: .6rem 1.2rem; font-size: .98rem; }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: max(640px, 100svh); display: flex; align-items: center; overflow: hidden; isolation: isolate; padding-top: var(--header-h); background: #050506; }
.hero-bg { position: absolute; inset: -6% -4%; z-index: -3; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 20% 50%; transform: translate3d(calc(var(--px, 0) * -24px), calc(var(--py, 0) * -16px + var(--sy, 0px)), 0) scale(1.06); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(900px 520px at 78% 55%, rgba(200, 22, 31, .22), transparent 62%),
  linear-gradient(90deg, rgba(5,5,6,.92) 0%, rgba(5,5,6,.74) 46%, rgba(5,5,6,.35) 100%),
  linear-gradient(0deg, var(--bg) 0%, transparent 28%); }
.speed { position: absolute; inset: 14% -6% 22% -6%; z-index: 0; overflow: hidden; pointer-events: none; }
.speed i { position: absolute; left: 0; height: 2px; width: 38%; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(255, 85, 96, .85) 70%, #fff); opacity: 0; animation: speed 3.6s linear infinite; }
.speed i:nth-child(1) { top: 8%; animation-delay: 0s; }
.speed i:nth-child(2) { top: 30%; width: 26%; animation-delay: 1.1s; animation-duration: 2.8s; }
.speed i:nth-child(3) { top: 55%; width: 44%; animation-delay: .6s; animation-duration: 4.2s; }
.speed i:nth-child(4) { top: 74%; width: 22%; animation-delay: 2.2s; animation-duration: 3.1s; }
.speed i:nth-child(5) { top: 92%; width: 32%; animation-delay: 1.7s; animation-duration: 3.8s; }
@keyframes speed { 0% { transform: translateX(-110%); opacity: 0; } 12% { opacity: .9; } 70% { opacity: .5; } 100% { transform: translateX(300%); opacity: 0; } }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; width: 100%; padding-block: 3rem 5rem; }
.hero-copy { transform: translate3d(calc(var(--px, 0) * 10px), calc(var(--py, 0) * 6px), 0); }
.hero h1 { font-size: clamp(2.6rem, 8.4vw, 4rem); line-height: .95; margin-top: 1rem; }
@media (min-width: 1024px) { .hero h1 { font-size: clamp(3.4rem, 4.9vw, 4.9rem); } .hero h1 .l1, .hero h1 .l2, .hero h1 .l3 { display: block; } }
.hero h1 .red { color: var(--red-hi); display: block; }
.sweep { position: relative; display: inline-block; overflow: hidden; }
.sweep::after { content: ""; position: absolute; inset: -10% auto -10% 0; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); mix-blend-mode: soft-light; transform: translateX(-130%) skewX(-18deg); animation: sweep 7s var(--ease) 1.2s infinite; pointer-events: none; }
@keyframes sweep { 0% { transform: translateX(-130%) skewX(-18deg); } 22%, 100% { transform: translateX(330%) skewX(-18deg); } }
.hero .tagline { margin-top: 1.4rem; font-family: var(--font-head); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 1.85rem); letter-spacing: .06em; text-transform: uppercase; color: var(--chrome); }
.hero .tagline b { color: #fff; font-weight: 700; }
.hero .btn-row { margin-top: 2.2rem; }
.hero-badge { display: inline-flex; align-items: center; gap: .9rem; margin-top: 2.6rem; padding: .8rem 1.1rem .8rem .8rem; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(255,255,255,.04); backdrop-filter: blur(6px); }
.hero-badge b { font-family: var(--font-head); font-size: 2.1rem; line-height: 1; color: #fff; }
.hero-badge span { font-size: .95rem; color: var(--muted); max-width: 22ch; line-height: 1.35; }

/* 3D showcase prism built from the five category photos (continuous turntable) */
.prism-stage { --w: clamp(220px, 26vw, 300px); --r: calc(var(--w) * .688); position: relative; height: calc(var(--w) * 1.32); -webkit-perspective: 1500px; perspective: 1500px; perspective-origin: 50% 40%;
  transform: translate3d(calc(var(--px, 0) * -18px), calc(var(--py, 0) * -10px), 0); }
@media (min-width: 1280px) { .prism-stage { --w: 420px; } }
.prism-tilt { position: absolute; left: 50%; top: 44%; width: var(--w); height: calc(var(--w) * .78); margin: calc(var(--w) * -.39) 0 0 calc(var(--w) * -.5);
  -webkit-transform-style: preserve-3d; transform-style: preserve-3d; z-index: 1;
  transform: translateZ(calc(var(--r) * -1)) rotateX(calc(-9deg + var(--py, 0) * -10deg)) rotateY(calc(var(--px, 0) * 24deg)); transition: transform .7s var(--ease); }
.prism { position: absolute; inset: 0; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; animation: prism-spin 34s linear infinite; }
@keyframes prism-spin { from { transform: rotateY(0deg); } to { transform: rotateY(-360deg); } }
.prism-stage:hover .prism, .hero:focus-within .prism, .prism-stage.paused .prism { animation-play-state: paused; }
.face { position: absolute; inset: 0; border-radius: 18px; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; transform: rotateY(calc(var(--i) * 72deg)) translateZ(var(--r));
  background: radial-gradient(120% 90% at 50% 0%, #2a2a31, #101013 70%); border: 1px solid var(--line-2); box-shadow: 0 40px 70px -34px #000, inset 0 1px 0 rgba(255,255,255,.14); }
.face:nth-child(1) { --i: 0; } .face:nth-child(2) { --i: 1; } .face:nth-child(3) { --i: 2; } .face:nth-child(4) { --i: 3; } .face:nth-child(5) { --i: 4; }
.face img { width: 100%; height: 100%; object-fit: cover; opacity: .94; }
/* Safari: children with their own layers (the glare, the caption) don't inherit the face's backface culling */
.face img, .face figcaption, .face::after { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.face figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 1.1rem .9rem; background: linear-gradient(transparent, rgba(0,0,0,.9)); font-family: var(--font-head); font-weight: 700; font-size: clamp(1.05rem, 1.4vw, 1.4rem); letter-spacing: .14em; text-transform: uppercase; }
.face figcaption::before { content: ""; display: block; width: 26px; height: 3px; margin-bottom: .45rem; background: var(--red-hi); }
.face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.16) 50%, transparent 62%); transform: translateX(-60%); transition: transform 1.2s var(--ease); }
.prism-stage:hover .face::after { transform: translateX(60%); }
.floor { position: absolute; left: 4%; right: 4%; bottom: 2%; height: 26%; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(227,38,47,.42), rgba(227,38,47,.12) 55%, transparent 72%), radial-gradient(closest-side, rgba(0,0,0,.9), transparent);
  transform: perspective(600px) rotateX(72deg); filter: blur(6px); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.frame { position: relative; -webkit-perspective: 1100px; perspective: 1100px; }
.frame-in { position: relative; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; transform: rotateY(calc(10deg + var(--tx, 0) * 1deg)) rotateX(calc(4deg + var(--ty, 0) * 1deg)); transition: transform .6s var(--ease); }
.frame-in { -webkit-transform-style: preserve-3d; transform-style: preserve-3d; }
.layer-back { position: absolute; inset: 8% -6% -6% 8%; border: 2px solid var(--red-hi); border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(227,38,47,.14), transparent 60%);
  transform: translate3d(0, calc(var(--ay, 0) * -40px), -80px); }
.frame-in img { position: relative; width: 100%; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); transform: translateZ(0); }
.layer-chip { position: absolute; left: -4%; bottom: 8%; display: inline-flex; align-items: baseline; gap: .45rem; padding: .8rem 1.1rem; border-radius: 16px; background: var(--red); color: #fff;
  font-family: var(--font-head); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 24px 40px -18px rgba(0,0,0,.9);
  transform: translate3d(0, calc(var(--ay, 0) * 34px), 90px); }
.layer-chip b { font-size: 2.2rem; line-height: 1; }
.about-copy p { color: var(--muted); margin-top: 1.1rem; }
.about-copy .lead { color: var(--chrome); }

/* ---------- success formula ---------- */
.formula { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.4rem); }
.card { position: relative; padding: clamp(1.5rem, 3vw, 2rem); border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); -webkit-transform-style: preserve-3d; transform-style: preserve-3d; }
.card .num { position: absolute; top: 1rem; right: 1.3rem; font-family: var(--font-head); font-weight: 700; font-size: 3.4rem; line-height: 1; color: rgba(255,255,255,.08); transform: translateZ(0); transition: transform .5s var(--ease); }
.card:hover .num { color: var(--red-hi); transform: translateZ(60px) scale(1.08); }
.card .ico, .card h3 { transform: translateZ(0); transition: transform .5s var(--ease); }
.card:hover .ico { transform: translateZ(34px); }
.card:hover h3 { transform: translateZ(18px); }
.card .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(227, 38, 47, .12); border: 1px solid rgba(227, 38, 47, .35); margin-bottom: 1.2rem; }
.card .ico svg { width: 28px; height: 28px; stroke: var(--red-text); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.6rem; }
.card p { color: var(--muted); margin-top: .6rem; }

/* ---------- 3D tilt + glare (enabled by JS on fine pointers) ---------- */
.tilt-on [data-tilt] { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); }
.tilt-on [data-tilt].tilting { transition: transform .1s linear; }
.tilt-on [data-tilt]:hover { border-color: var(--line-2); }
.tilt-on [data-tilt]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.14), transparent 50%); opacity: 0; transition: opacity .3s ease; }
.tilt-on [data-tilt]:hover::after { opacity: 1; }

/* ---------- products ---------- */
.products { background: var(--bg-2); }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2.4rem; }
html:not(.js) .tabs { display: none; }
.tab { min-height: 46px; padding: .55rem 1.2rem; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tab:hover { color: #fff; border-color: var(--chrome); }
.tab[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.panel-head { font-size: 1.5rem; margin: 2.4rem 0 1rem; }
.js .panel-head { display: none; }
.grid-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.9rem, 2vw, 1.3rem); -webkit-perspective: 1600px; perspective: 1600px; }
.js .tabpanel[hidden] { display: none; }
.pcard { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: radial-gradient(120% 100% at 50% 0%, #26262c 0%, #111114 70%); border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.pcard img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.pcard:hover img { transform: scale(1.05); }
.pcard figcaption { position: absolute; left: .7rem; bottom: .7rem; z-index: 2; padding: .3rem .7rem; border-radius: 999px; background: rgba(11,11,13,.82); border: 1px solid var(--line-2); font-family: var(--font-head); font-weight: 600; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; }
.pcard::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.12) 50%, transparent 60%); transform: translateX(-70%); transition: transform 1.1s var(--ease); pointer-events: none; }
.pcard:hover::before { transform: translateX(70%); }
.flip-in { animation: flip-in .75s var(--ease) both; animation-delay: calc(var(--k, 0) * 70ms); }
@keyframes flip-in { from { opacity: 0; transform: rotateY(-70deg) translateZ(-120px); } to { opacity: 1; transform: none; } }
.products .btn-row { justify-content: center; margin-top: 2.6rem; }

/* ---------- accomplishments ---------- */
.stats-band { position: relative; overflow: hidden; isolation: isolate; }
.stats-bg { position: absolute; inset: -12% 0; z-index: -2; }
.stats-bg img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--sy, 0px), 0); }
.stats-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,11,13,.94), rgba(11,11,13,.82) 50%, rgba(11,11,13,.95)); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2.6rem; }
.stat { text-align: center; padding: 1.6rem 1rem; border-radius: var(--radius-lg); border: 1px solid var(--line); background: rgba(255,255,255,.03); backdrop-filter: blur(4px); }
.stat .n { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; color: #fff; }
.stat .n em { font-style: normal; color: var(--red-hi); }
.stat [data-count] { display: inline-block; font-variant-numeric: tabular-nums; text-align: right; }
.odo.rolling { display: inline-flex; align-items: flex-start; }
.odo .d { display: inline-block; height: 1em; overflow: hidden; }
.odo .strip { display: block; transform: translateY(0); transition: transform 2.2s cubic-bezier(.16,.8,.2,1); transition-delay: calc(var(--k, 0) * 90ms); }
.odo .strip span { display: block; height: 1em; line-height: 1; }
.stat .l { display: block; margin-top: .55rem; font-family: var(--font-head); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.point { display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(0,0,0,.25); }
.point svg { flex: none; width: 30px; height: 30px; stroke: var(--red-text); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.point h3 { font-size: 1.35rem; }
.point p { color: var(--muted); margin-top: .25rem; font-size: 1rem; }

/* ---------- testimonial ---------- */
.quote-wrap { -webkit-perspective: 1400px; perspective: 1400px; max-width: 900px; margin-inline: auto; }
.quote { position: relative; padding: clamp(2rem, 5vw, 3.4rem); border-radius: var(--radius-lg); background: linear-gradient(150deg, var(--panel-2), var(--bg-2)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.quote > svg { width: 54px; height: 54px; fill: var(--red-hi); opacity: .9; }
.quote blockquote { margin-top: 1rem; font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.55; color: var(--text); }
.quote figcaption { display: flex; align-items: center; gap: .9rem; margin-top: 1.8rem; }
.avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: .06em; }
.quote cite { font-style: normal; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- contact ---------- */
.contact { background: var(--bg-2); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.info { display: grid; gap: .9rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 1.3rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.info-item svg { flex: none; width: 26px; height: 26px; margin-top: .15rem; stroke: var(--red-text); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.info-item h3 { font-size: 1.15rem; letter-spacing: .1em; color: var(--muted); }
.info-item p, .info-item a { font-size: 1.05rem; color: var(--text); overflow-wrap: anywhere; }
.info-item a { display: inline-block; padding-block: .25rem; border-bottom: 1px solid transparent; }
.info-item a:hover { color: #fff; border-color: var(--red-hi); }
.form { padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--panel); }
.form h3 { font-size: 1.6rem; margin-bottom: 1.2rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.field { display: grid; gap: .35rem; margin-bottom: .9rem; }
.field label { font-family: var(--font-head); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .95rem; color: var(--muted); }
.field label .req { color: var(--red-text); }
.field input, .field textarea { width: 100%; min-height: 48px; padding: .75rem .95rem; border-radius: 12px; border: 1px solid var(--line-2); background: #0e0e11; color: var(--text); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red-text); box-shadow: 0 0 0 3px rgba(255, 85, 96, .45); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red-text); }
.field .err { font-size: .9rem; color: var(--red-text); min-height: 1.2em; }
.form .btn-row { margin-top: .4rem; }
.form-note { margin-top: .9rem; font-size: .92rem; color: var(--dim); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #070708; padding-block: clamp(3rem, 6vw, 4.5rem) 1.6rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr .7fr; gap: clamp(1.6rem, 4vw, 3rem); }
.site-footer h2 { font-size: 1.25rem; letter-spacing: .14em; margin-bottom: 1rem; }
.site-footer p, .site-footer li { color: var(--muted); font-size: 1rem; }
.site-footer .plate { margin-bottom: 1.2rem; }
.site-footer .plate img { width: 110px; }
.links { list-style: none; padding: 0; display: grid; gap: .2rem; }
.links a { display: inline-block; padding-block: .35rem; color: var(--muted); }
.links a:hover { color: #fff; }
.qr { width: 130px; border-radius: 10px; background: #fff; padding: 6px; }
.qr-link { display: inline-grid; gap: .55rem; justify-items: start; color: var(--muted); font-size: .95rem; }
.qr-link:hover { color: #fff; }
.foot-bottom { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--dim); font-size: .95rem; }

/* WhatsApp chat button (live site had a "Chat With Us!" widget) */
.chat { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: inline-flex; align-items: center; gap: .55rem; min-height: 52px; padding: .7rem 1.1rem .7rem .8rem; border-radius: 999px; background: #1f8f4e; color: #fff; font-weight: 500; box-shadow: 0 16px 34px -16px rgba(0,0,0,.9); transition: transform .3s var(--ease); }
.chat:hover { transform: translateY(-3px); }
.chat { transition: transform .3s var(--ease), opacity .3s ease; }
.chat.away { opacity: 0; transform: translateY(24px); pointer-events: none; visibility: hidden; transition: transform .3s var(--ease), opacity .3s ease, visibility 0s .3s; }
.chat svg { width: 26px; height: 26px; fill: #fff; }

/* ---------- scroll reveal (runs once; JS adds .in) ---------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 34px, 0) rotateX(14deg); transform-origin: 50% 100%; transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-tilt][data-reveal].in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .cards, .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .menu { position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); flex-direction: column; align-items: stretch; gap: .2rem; padding: 6rem 1.4rem 2rem; background: #0d0d10; border-left: 1px solid var(--line); transform: translateX(105%); transition: transform .4s var(--ease), visibility 0s linear .4s; visibility: hidden; }
  .menu.open { transform: none; visibility: visible; transition: transform .4s var(--ease), visibility 0s; }
  .menu a:not(.btn) { padding: .9rem .4rem; font-size: 1.15rem; }
  .menu a:not(.btn)::after { left: .4rem; right: auto; width: 40px; }
  .menu .btn { margin: 1rem 0 0; }
  .menu-toggle { position: relative; z-index: 110; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 2rem 4rem; }
  .prism-stage { --w: clamp(200px, 56vw, 300px); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .layer-chip { left: 3%; bottom: 5%; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .points { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --header-h: 72px; }
  .cards, .grid-products, .row2 { grid-template-columns: 1fr; }
  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .foot-grid { grid-template-columns: 1fr; }
  .plate img { width: 78px; }
  .hero-badge b { font-size: 1.8rem; }
  .stat { padding-inline: .6rem; }
  .stat .n { font-size: clamp(1.7rem, 8vw, 2.4rem); white-space: nowrap; }
  .chat span { display: none; }
  .site-footer { padding-bottom: 6.5rem; }
  .chat { padding: .7rem; }
}
@media (max-width: 360px) {
  .grid-products { grid-template-columns: 1fr; }
  .btn { padding-inline: 1.2rem; letter-spacing: .08em; }
}

/* ---------- 404 / 410 page ---------- */
.nf { min-height: max(560px, 100svh); display: flex; align-items: center; padding-top: var(--header-h); text-align: center; overflow: hidden;
  background: radial-gradient(60% 50% at 50% 60%, rgba(200,22,31,.18), transparent 70%), #050506; }
.nf-inner { display: flex; flex-direction: column; align-items: center; padding-block: 3rem 4rem; perspective: 900px; -webkit-perspective: 900px; }
.nf-code { display: flex; gap: .04em; margin: 0 0 1.4rem; font-family: var(--font-head); font-weight: 700; font-size: clamp(6.5rem, 26vw, 13rem); line-height: .85; color: #fff;
  transform-style: preserve-3d; -webkit-transform-style: preserve-3d; animation: nf-sway 10s ease-in-out infinite; }
.nf-code span { display: block; text-shadow: 0 1px 0 #9c9fa5, 0 2px 0 #8a8d93, 0 3px 0 #787b81, 0 4px 0 #66696f, 0 5px 0 #54575d, 0 14px 24px rgba(0,0,0,.6); }
.nf-code .red { color: var(--red-hi); text-shadow: 0 1px 0 #b3141c, 0 2px 0 #a11219, 0 3px 0 #8f1016, 0 4px 0 #7d0e13, 0 5px 0 #6b0c10, 0 14px 30px rgba(200,22,31,.45); }
@keyframes nf-sway { 0%, 100% { transform: rotateX(8deg) rotateY(-14deg); } 50% { transform: rotateX(8deg) rotateY(14deg); } }
.nf .h2 { margin-top: .6rem; }
.nf .lead { max-width: 560px; margin: 1rem auto 2rem; }
.nf .btn-row { justify-content: center; }
.nf-call { margin-top: 1.8rem; color: var(--muted); }
.nf-call a { color: #fff; }

/* ---------- reduced motion: static and calm ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero-bg img, .hero-copy, .prism-stage, .speed, .stats-bg img { transform: none !important; }
  .nf-code { transform: rotateX(8deg) rotateY(-10deg); }
  .speed { display: none; }
  .prism-tilt { transform: translateZ(calc(var(--r) * -1)) rotateX(-6deg) rotateY(-14deg) !important; }
  .frame-in { transform: rotateY(8deg) rotateX(3deg) !important; }
  .tilt-on [data-tilt], .js [data-tilt][data-reveal].in { transform: none !important; }
}
