:root {
  --bg: #020615;
  --bg-2: #071029;
  --line: rgba(170, 219, 252, 0.11);
  --line-2: rgba(170, 219, 252, 0.24);
  --fg: #ebe8e3;
  --muted: rgba(214, 224, 240, 0.58);
  --accent: #2f8bff;
  --accent-2: #aadbfc;
  --accent-deep: #0040b8;
  --on-accent: #ffffff;
  --bg-alt: #081331;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(20px, 4vw, 56px);
  --sans: "Inter Tight", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
::selection { background: var(--accent); color: var(--on-accent); }

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

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between; padding: var(--pad);
  transition: transform 1.1s var(--ease);
}
.loader__top { display: flex; justify-content: space-between; color: var(--muted); }
.loader__count { font-size: clamp(80px, 18vw, 260px); font-weight: 300; letter-spacing: -0.05em; line-height: 0.8; font-variant-numeric: tabular-nums; }
.loader__bar { height: 1px; background: var(--line); position: relative; }
.loader__bar span { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }
body.loaded .loader { transform: translateY(-100%); }


/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px;
  background: var(--fg); color: var(--bg); border-radius: 999px; font-size: 14px; font-weight: 500;
  position: relative; overflow: hidden; isolation: isolate; border: 1px solid var(--fg); cursor: pointer; font-family: inherit;
  transition: color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--accent); z-index: -1;
  transform: translateY(101%); transition: transform .5s var(--ease); border-radius: inherit;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { border-color: var(--accent); color: var(--on-accent); }
.btn .arrow { transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--small { padding: 11px 18px; font-size: 13px; }
.btn--large { padding: 20px 34px; font-size: 15px; }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn--ghost:hover { color: var(--on-accent); }

.link-underline { font-size: 14px; position: relative; padding-bottom: 4px; }
.link-underline::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform-origin: right; transition: transform .6s var(--ease); }
.link-underline:hover::after { transform: scaleX(0); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px var(--pad);
  transition: transform .6s var(--ease), background .4s, backdrop-filter .4s;
}
.nav.is-scrolled { background: rgba(2, 6, 21, 0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-2);
  border-radius: 50%; font-weight: 600; font-size: 13px; letter-spacing: 0.04em;
}
.logo-text { white-space: nowrap; font-size: 12px; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.nav__links { display: flex; gap: 36px; font-size: 14px; }
.nav__links a { color: var(--muted); transition: color .3s; position: relative; }
.nav__links a:hover { color: var(--fg); }
.nav__burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--fg); transition: transform .4s var(--ease); }
.nav__burger span:first-child { top: 16px; } .nav__burger span:last-child { top: 23px; }
body.menu-open .nav__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .nav__burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bg); display: flex; flex-direction: column;
  justify-content: center; gap: 8px; padding: var(--pad);
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease);
}
.mobile-menu a { font-size: 44px; letter-spacing: -0.03em; font-weight: 300; }
body.menu-open .mobile-menu { clip-path: inset(0 0 0 0); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--pad) calc(48px + var(--mq-h, 104px)); overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 60% 40%, transparent 35%, rgba(2,6,21,.85) 95%), linear-gradient(to bottom, rgba(2,6,21,.5), transparent 25%); }
.hero > *:not(canvas):not(.hero__vignette):not(.hero__media):not(.hero__glow) { position: relative; z-index: 2; }
.hero__meta { position: absolute !important; top: 110px; left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 10px; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(47,139,255,.6); } 80%,100% { box-shadow: 0 0 0 10px rgba(47,139,255,0); } }

.hero__title {
  font-size: clamp(56px, 11.5vw, 200px); font-weight: 300; letter-spacing: -0.055em; line-height: 0.88;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.hero__title em { letter-spacing: -0.03em; }
.line { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.1em; }
.line > span { display: block; transform: translateY(110%); transition: transform 1.4s var(--ease); }
body.loaded .line > span { transform: translateY(0); }
body.loaded .line:nth-child(2) > span { transition-delay: .12s; }

.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.hero__lede { max-width: 440px; font-size: 17px; color: var(--muted); }
.hero__cta { display: flex; align-items: center; gap: 28px; }
.reveal-up { opacity: 0; transform: translateY(24px); transition: opacity 1.2s var(--ease) .5s, transform 1.2s var(--ease) .5s; }
body.loaded .reveal-up { opacity: 1; transform: none; }
.hero__scroll { position: absolute !important; right: var(--pad); bottom: 50%; display: flex; flex-direction: column; align-items: center; gap: 12px; writing-mode: vertical-rl; color: var(--muted); }
.hero__scroll i { width: 1px; height: 60px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: var(--fg); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* ---------- Marquee ---------- */
.marquee { --band: rgba(255, 255, 255, 0); background: var(--band); color: var(--fg); position: relative; z-index: 3; margin-top: calc(-1 * var(--mq-h, 104px)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; display: flex; align-items: center; }
.marquee__label { flex-shrink: 0; align-self: stretch; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 var(--pad); color: rgba(255, 255, 255, 0.82); font-size: 12px; border-right: 1px solid rgba(255, 255, 255, 0.22); position: relative; z-index: 1; }
.marquee__viewport { flex: 1; overflow: hidden; padding: 18px 0; -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; gap: 0; width: max-content; animation: marquee 50s linear infinite; align-items: center; }
.marquee__track span { font-size: clamp(22px, 3vw, 40px); font-weight: 300; letter-spacing: -0.02em; white-space: nowrap; }
.marquee__track b { color: var(--accent); font-weight: 400; font-size: 16px; }
.marquee__track .client { display: block; width: auto; flex-shrink: 0; margin-right: clamp(56px, 7vw, 110px); }
.client--daihatsu { height: 19px; }
.client--iwk { height: 29px; }
.client--linde { height: 44px; border-radius: 3px; }
.client--prudential { height: 26px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 120px) var(--pad); position: relative; }
.section__label { display: flex; gap: 14px; align-items: center; color: var(--muted); margin-bottom: 40px; font-size: 13px; letter-spacing: 0.1em; }
.section__label span { color: var(--accent); }
.section__label::after { content: ""; width: 40px; height: 1px; background: var(--line-2); }
.section__head { display: grid; grid-template-columns: 1fr 2fr; column-gap: 40px; margin-bottom: clamp(40px, 5vw, 72px); align-items: baseline; }
.section__head .section__label { margin-bottom: 0; }
.h2 { font-size: clamp(40px, 6vw, 96px); font-weight: 300; letter-spacing: -0.045em; line-height: 0.95; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* About */
.about__statement { font-size: clamp(28px, 4.2vw, 64px); font-weight: 300; letter-spacing: -0.035em; line-height: 1.12; max-width: 1300px; }
.about__statement .w { opacity: 0.14; transition: opacity .3s; }
.about__statement .w.on { opacity: 1; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 6vw, 96px); border-top: 1px solid var(--line); }
.stat { padding: 40px 24px 0 0; border-right: 1px solid var(--line); padding-left: 24px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat:nth-child(2) { transition-delay: .1s; } .stat:nth-child(3) { transition-delay: .2s; } .stat:nth-child(4) { transition-delay: .3s; }
.stat__num { font-size: clamp(56px, 7vw, 112px); font-weight: 300; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__num .slash { color: var(--accent); }
.stat__label { color: var(--muted); margin-top: 16px; }

/* Capabilities */
.caps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cap { background: var(--bg); padding: 40px 36px 48px; min-height: 480px; display: flex; flex-direction: column; position: relative; overflow: hidden; transition: background .6s var(--ease); }
.cap::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(47,139,255,.08), transparent 50%); opacity: 0; transition: opacity .5s; }
.cap:hover::before { opacity: 1; }
.cap:nth-child(2) { transition-delay: .1s; } .cap:nth-child(3) { transition-delay: .2s; }
.cap__top { display: flex; justify-content: space-between; color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.6); opacity: .4; } }
.cap h3 { font-size: 26px; font-weight: 400; letter-spacing: -0.025em; margin-bottom: 12px; }
.cap p { color: var(--muted); font-size: 15px; max-width: 340px; }

/* Process */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 1px; background: var(--line-2); }
.steps::after { content: ""; position: absolute; top: 6px; left: 0; height: 1px; background: var(--accent); width: var(--progress, 0%); transition: width .2s linear; }
.step { padding-top: 40px; padding-right: 32px; position: relative; }
.step::before { content: ""; position: absolute; top: 2px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--fg); }
.step:nth-child(2) { transition-delay: .1s; } .step:nth-child(3) { transition-delay: .2s; } .step:nth-child(4) { transition-delay: .3s; }
.step span { color: var(--accent); }
.step h4 { font-size: 32px; font-weight: 300; letter-spacing: -0.03em; margin: 12px 0 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* Packages */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pkg {
  border: 1px solid var(--line); border-radius: 20px; padding: 40px 36px; display: flex; flex-direction: column; gap: 32px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg)); position: relative;
  transition: border-color .5s, transform .8s var(--ease), opacity 1.2s var(--ease);
}
.pkg:hover { border-color: var(--line-2); transform: translateY(-6px); }
.pkg:nth-child(2) { transition-delay: .1s; } .pkg:nth-child(3) { transition-delay: .2s; }
.pkg--featured { border-color: rgba(47,139,255,.4); }
.pkg__badge { position: absolute; top: -12px; left: 36px; background: var(--accent); color: var(--on-accent); padding: 5px 12px; border-radius: 999px; }
.pkg__tier { color: var(--muted); }
.pkg__price { font-size: 72px; font-weight: 300; letter-spacing: -0.05em; line-height: 1; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pkg__price small { font-size: 13px; letter-spacing: 0; color: var(--muted); font-family: var(--mono); }
.pkg ul { list-style: none; flex: 1; border-top: 1px solid var(--line); }
.pkg li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; display: flex; gap: 12px; color: var(--muted); }
.pkg li::before { content: "+"; color: var(--accent); }
.pkg .btn { justify-content: center; }

/* FAQ */
.faq__wrap { display: grid; grid-template-columns: 1fr 2fr; column-gap: 40px; }
.faq .section__head { display: block; margin: 0; }
.faq .section__head .section__label { margin-bottom: 40px; }
.faq .section__head .h2 { margin-top: 0; }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; padding: 30px 0; font-size: clamp(18px, 1.8vw, 24px); letter-spacing: -0.015em; display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { width: 14px; height: 14px; position: relative; flex-shrink: 0; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: var(--fg); transition: transform .5s var(--ease); }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i::after { transform: rotate(0); }
.qa p { color: var(--muted); padding: 0 60px 30px 0; max-width: 640px; animation: fadeIn .6s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-8px); } }

/* Contact */

.contact__inner { display: grid; grid-template-columns: 1fr 2fr; column-gap: 40px; align-items: baseline; }
.contact__inner > * { grid-column: 2; }
.contact__inner > .section__label { grid-column: 1; grid-row: 1; margin-bottom: 0; }
.contact__title { font-size: clamp(52px, 7.6vw, 128px); font-weight: 300; letter-spacing: -0.055em; line-height: 0.9; }
.contact__lede { color: var(--muted); font-size: 18px; max-width: 520px; margin: 32px 0 40px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); color: var(--fg);
  font: inherit; font-size: 18px; padding: 30px 0 14px; outline: none; resize: none; transition: border-color .4s;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field label { position: absolute; left: 0; top: 30px; color: var(--muted); pointer-events: none; transition: transform .4s var(--ease), font-size .4s var(--ease); transform-origin: left; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-24px) scale(0.75); }
.form .btn { margin-top: 32px; justify-self: start; }
.form__ok { grid-column: 1 / -1; color: var(--accent); opacity: 0; height: 0; transition: opacity .6s; }
.form.sent .form__ok { opacity: 1; height: auto; }

.contact__details { display: grid; grid-template-columns: 1.5fr 0.9fr 1.2fr; gap: 24px 40px; margin: 0 0 56px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail { display: flex; flex-direction: column; gap: 10px; }
.detail .mono { color: var(--accent); }
.detail a { font-size: clamp(18px, 1.6vw, 22px); font-weight: 300; letter-spacing: -0.01em; line-height: 1.4; transition: color .3s; }
.detail a:hover { color: var(--accent-2); }
.footer__contact { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; margin-top: 24px; color: var(--muted); font-size: 14px; text-align: center; }
.footer__contact a:hover { color: var(--fg); }
@media (max-width: 600px) { .contact__details { grid-template-columns: 1fr; } }
/* Footer */
.footer { padding: 56px var(--pad) 32px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__brand { display: flex; width: fit-content; margin: 0 auto; align-items: center; gap: clamp(16px, 2vw, 28px); }
.footer__brand img { width: clamp(52px, 6vw, 84px); height: auto; display: block; }
.footer__brand span { white-space: nowrap; font-size: clamp(18px, 3vw, 42px); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); line-height: 1; }
.footer__row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer__row a:hover { color: var(--fg); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav__links, .nav > .btn { display: none; }
  .nav__burger { display: block; }
  .section__head, .faq__wrap { grid-template-columns: 1fr; gap: 0; }
  .caps__grid, .pkg-grid { grid-template-columns: 1fr; }
  .cap { min-height: 380px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat { padding-bottom: 32px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps::before, .steps::after { display: none; }
  .hero__scroll { display: none !important; }
}
@media (max-width: 600px) {
  .hero__meta { flex-direction: column; gap: 6px; top: 96px; }
  .hero__cta { flex-wrap: wrap; gap: 20px; }
  .marquee { flex-direction: column; align-items: stretch; }
  .marquee__label { padding: 14px var(--pad) 0; border-right: 0; font-size: 11px; justify-content: center; }
  .marquee__viewport { padding: 14px 0 22px; }
  .client--daihatsu { height: 16px; } .client--iwk { height: 26px; } .client--linde { height: 38px; } .client--prudential { height: 22px; }
  .form { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stat__num { font-size: 52px; }
  .qa p { padding-right: 0; }
}

/* ---------- Imagery ---------- */
.logo-mark { width: 34px; height: auto; border: 0; border-radius: 0; display: block; }
[data-speed] { transform: translateY(var(--py, 0px)); will-change: transform; }

.img-reveal { overflow: hidden; clip-path: inset(100% 0 0 0); transition: clip-path 1.5s var(--ease); background: var(--bg-2); }
.img-reveal.in { clip-path: inset(0 0 0 0); }
.img-reveal img {
  width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.25);
  filter: grayscale(0.85) brightness(0.82) contrast(1.06);
  transition: transform 2s var(--ease), filter 1s var(--ease);
}
.img-reveal.in img { transform: scale(1); }
.img-reveal img.img--bright { filter: grayscale(0.85) brightness(1) contrast(1.04); }
figure:hover .img-reveal img, .cap:hover .img-reveal img, .person:hover .img-reveal img { filter: grayscale(0) brightness(0.95) contrast(1.02); transform: scale(1.03); }
figcaption.mono { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }

/* Hero image */
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img {
  position: absolute; left: -55vw; top: -36vw; width: 155vw; height: auto; max-width: none;
  filter: grayscale(0.85) brightness(0.55) contrast(1.15);
  opacity: 0; transform: translateY(var(--py, 0px)) scale(var(--s, 1.18));
  transition: opacity 1.6s var(--ease), transform 2.6s var(--ease);
}
body.loaded .hero__media img { opacity: 1; --s: 1; }
.hero__canvas { mix-blend-mode: screen; }

/* About imagery */
.about__media { display: grid; grid-template-columns: 1fr 2fr; column-gap: 40px; margin-top: clamp(48px, 6vw, 88px); align-items: start; }
.frame--tall { grid-column: 1; grid-row: 1 / span 2; }
.frame--tall .img-reveal { aspect-ratio: 3 / 4; }
.frame--wide { grid-column: 2; }
.frame--wide .img-reveal { aspect-ratio: 3 / 2; }
.frame--tall .img-reveal, .frame--wide .img-reveal { height: auto; }
.about__note { grid-column: 2; color: var(--muted); font-size: 18px; line-height: 1.6; margin-top: 40px; max-width: 620px; }
.about__note em { color: var(--fg); font-size: 1.15em; }

/* Capability cards with imagery */
.cap { min-height: 0; padding: 28px 28px 40px; }
.cap__media { position: relative; aspect-ratio: 4 / 3.3; margin: 24px 0 32px; }
.cap__glyph {
  position: absolute; left: 14px; bottom: 14px; width: 54px; height: 54px; padding: 10px; border-radius: 50%;
  background: rgba(2, 6, 21, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-2); display: grid; place-items: center;
}
.cap__glyph svg { width: 100%; height: 100%; stroke: var(--fg); stroke-width: 3; fill: none; overflow: visible; }
.cap__glyph .fill { fill: var(--accent); stroke: none; }
.cap__glyph .sweep { stroke: var(--accent); transform-origin: 40px 40px; animation: spin 4s linear infinite; }
.cap__glyph .pulse { stroke: var(--accent); transform-origin: 40px 40px; animation: pulse 2.4s var(--ease) infinite; }
.cap__glyph .draw { stroke: var(--accent); stroke-dasharray: 40; stroke-dashoffset: 40; transition: stroke-dashoffset 1s var(--ease) .6s; }
.cap.in .cap__glyph .draw { stroke-dashoffset: 0; }

/* Blue tint for selected card photos */
.tint-blue::after { content: ""; position: absolute; inset: 0; background: #2f8bff; mix-blend-mode: color; opacity: 0; pointer-events: none; z-index: 1; transition: opacity .8s var(--ease); }
.cap:hover .tint-blue::after { opacity: .62; }
.cap:hover .tint-blue--soft::after { opacity: .28; }
.cap__glyph { z-index: 2; }

/* Full-bleed band */
.band { position: relative; min-height: 92vh; overflow: hidden; display: flex; align-items: flex-end; padding: var(--pad); }
.band__media { position: absolute; inset: -15% 0; }
.band__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.75) brightness(0.42) contrast(1.1); }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--bg) 0%, transparent 30%, transparent 55%, var(--bg) 100%); pointer-events: none; }
.band__content { position: relative; z-index: 2; padding-bottom: 4vh; max-width: 1200px; }
.band__tag { color: var(--fg); }
.band__title { font-size: clamp(44px, 8vw, 140px); font-weight: 300; letter-spacing: -0.05em; line-height: 0.92; margin: 28px 0; }
.band__text { color: rgba(214, 224, 240, 0.78); max-width: 460px; font-size: 18px; transition-delay: .15s; }


/* Industries — horizontal scroller */
.ind-scroller { margin-right: calc(-1 * var(--pad)); }
.ind-track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 0;
  padding-right: var(--pad); scrollbar-width: none; cursor: grab; outline: none; overscroll-behavior-x: contain;
}
.ind-track::-webkit-scrollbar { display: none; }
.ind-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.ind-track.is-dragging * { pointer-events: none; }
.ind-card { flex: 0 0 clamp(260px, 26vw, 380px); scroll-snap-align: start; user-select: none; }
.ind-card:nth-child(2) { transition-delay: .08s; } .ind-card:nth-child(3) { transition-delay: .16s; } .ind-card:nth-child(4) { transition-delay: .24s; }
.ind-card__img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--bg-2); }
.ind-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(0.85) brightness(0.82) contrast(1.06); transition: transform 1.2s var(--ease), filter .8s var(--ease); }
.ind-card:hover .ind-card__img img { filter: grayscale(0) brightness(0.95); transform: scale(1.04); }
.ind-card__meta { display: flex; gap: 14px; align-items: baseline; padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }
.ind-card__meta .mono { color: var(--accent); }
.ind-card h3 { font-size: clamp(18px, 1.5vw, 22px); font-weight: 400; letter-spacing: -0.015em; line-height: 1.3; }
.ind-controls { display: flex; align-items: center; gap: 32px; margin-top: 40px; padding-right: var(--pad); }
.ind-progress { flex: 1; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.ind-progress span { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0.2); transition: transform .3s var(--ease); }
.ind-btns { display: flex; gap: 10px; }
.ind-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--fg); font-size: 18px; cursor: pointer; transition: background .4s var(--ease), border-color .4s, color .4s, opacity .3s; }
.ind-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ind-btn:disabled { opacity: .3; pointer-events: none; }
@media (max-width: 600px) {
  .ind-card { flex-basis: 76vw; }
  .ind-track { gap: 16px; }
  .ind-controls { margin-top: 28px; }
  .ind-btn { width: 44px; height: 44px; }
}

/* Technology */
.tech__grid { display: grid; grid-template-columns: 1fr 2fr; column-gap: 40px; align-items: start; }
.tech__body { grid-column: 2; }
.partners { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: clamp(40px, 5vw, 64px); }
.partner { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg-2); transition: border-color .5s, transform .8s var(--ease), opacity 1.2s var(--ease); }
.partner:nth-child(2) { transition-delay: .1s; }
.partner:hover { border-color: var(--line-2); transform: translateY(-4px); }
.partner__plate { aspect-ratio: 16 / 8; background: #f3f1ed; display: grid; place-items: center; }
.partner__logo { width: auto; transition: transform .8s var(--ease); }
.partner:hover .partner__logo { transform: scale(1.04); }
.partner__logo--tplink { height: 34%; }
.partner__logo--hik { width: 68%; height: auto; }
.partner__logo--tplink { max-width: 60%; }
@media (max-width: 600px) {
  .partners { grid-template-columns: 1fr; gap: 16px; }
}
.partner__meta { padding: 22px 26px 26px; }
.partner__meta h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 300; letter-spacing: -0.02em; margin: 0 0 6px; }
.partner__meta p { color: var(--muted); font-size: 15px; }
.tech__lede { max-width: 760px; font-size: clamp(22px, 2.3vw, 34px); font-weight: 300; letter-spacing: -0.02em; line-height: 1.25; }

/* Team */
.team__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.person__img { aspect-ratio: 5 / 4.4; }
.person__img img { object-position: center 25%; }
.person figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.person h3 { font-size: clamp(22px, 2.2vw, 32px); font-weight: 300; letter-spacing: -0.025em; }
.person .mono { color: var(--muted); }
.person:nth-child(2) { transition-delay: .1s; }

@media (max-width: 960px) {
  .about__media { grid-template-columns: 1fr; }
  .frame--tall, .frame--wide, .about__note { grid-column: auto; grid-row: auto; margin-top: 0; }
  .tech__grid, .team__grid { grid-template-columns: 1fr; }
  .tech__body { grid-column: 1; }
  .contact__inner { grid-template-columns: 1fr; }
  .contact__inner > .section__label { grid-column: 1; margin-bottom: 40px; }
  .contact__inner > * { grid-column: 1; }
    .section__head .section__label { margin-bottom: 40px; }
  .about__note { margin-top: 24px; }
  .frame--tall { margin-bottom: 24px; }
  .person:nth-child(2) { margin-top: 24px; }
  .band { min-height: 85vh; }
}
@media (max-width: 600px) {
  .hero__media img { left: -40vw; top: -6vw; width: 160vw; -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 92%); mask-image: linear-gradient(to bottom, #000 60%, transparent 92%); }
    }

/* Section breaker */
.breaker { position: relative; height: 1px; margin: 0 var(--pad); background: var(--line-2); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); }
.breaker.in { transform: scaleX(1); }
.breaker::before, .breaker::after { content: "+"; position: absolute; top: 50%; transform: translate(-50%, -52%); font-family: var(--mono); font-size: 13px; line-height: 1; color: var(--accent); background: var(--bg); padding: 0 6px; }
.breaker::before { left: 0; }
.breaker::after { left: 100%; }

/* Section separation modes (toggle via <body data-sections>) */
body[data-sections="alt"] .breaker { display: none; }
body[data-sections="alt"][data-page="home"] :is(.eco, .industries, .contact),
body[data-sections="alt"][data-page="command"] :is(.caps, .packages, .faq) { --bg: var(--bg-alt); background: var(--bg); }
body[data-sections="alt"] .pkg { background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- QC Tech additions ---------- */
.logo-mark { width: 32px; }
.logo-sub { color: var(--accent-2); opacity: .8; }
.nav__links .nav__branch { color: var(--accent-2); }
.nav__links .nav__branch:hover { color: var(--fg); }
.hero__eyebrow { color: var(--accent-2); margin-bottom: 20px; font-size: 13px; }

/* Services */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.svc { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg-2); display: flex; flex-direction: column; transition: border-color .5s, transform .8s var(--ease), opacity 1.2s var(--ease); }
.svc:nth-child(2) { transition-delay: .1s; }
.svc:hover { border-color: var(--line-2); }
.svc__media { position: relative; aspect-ratio: 16 / 9; }
.svc:hover .img-reveal img { filter: grayscale(0) brightness(0.95); transform: scale(1.03); }
.svc:hover .tint-blue::after { opacity: .28; }
.svc__body { padding: 28px 32px 34px; display: flex; flex-direction: column; flex: 1; }
.svc__top { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: 18px; }
.svc__badge { color: var(--on-accent); background: var(--accent); padding: 4px 10px; border-radius: 999px; }
.svc h3 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 300; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 12px; }
.svc p { color: var(--muted); font-size: 15px; max-width: 520px; }
.svc ul { list-style: none; margin: 24px 0 32px; border-top: 1px solid var(--line); flex: 1; }
.svc li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); display: flex; gap: 12px; }
.svc li::before { content: "+"; color: var(--accent); }
.svc .btn { align-self: flex-start; }

/* Form select */
.field select { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); color: var(--fg); font: inherit; font-size: 18px; padding: 30px 0 14px; outline: none; appearance: none; -webkit-appearance: none; cursor: pointer; border-radius: 0; }
.field select:focus { border-color: var(--accent); }
.field select option { background: var(--bg-2); color: var(--fg); }
.field--select::after { content: "↓"; position: absolute; right: 2px; bottom: 16px; color: var(--muted); pointer-events: none; }
.field select:focus + label, .field select:valid + label { transform: translateY(-24px) scale(0.75); }

/* Footer */
.footer__tagline { text-align: center; color: var(--muted); margin-top: 14px; font-size: 15px; }

@media (max-width: 960px) {
  .svc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .svc__body { padding: 24px 22px 28px; }
}

/* QC Tech hero: tech mesh background */
.hero__glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 70% 35%, rgba(47,139,255,0.18), transparent 70%),
              radial-gradient(40% 40% at 20% 70%, rgba(0,64,184,0.22), transparent 70%); }
.hero__canvas[data-mode="mesh"] { mix-blend-mode: normal; }

/* ================= QC Tech homepage: ecosystem ================= */
.eco-grid { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.eco-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg-2); transition: border-color .5s, transform .8s var(--ease), opacity 1.2s var(--ease); }
.eco-card--live { grid-row: span 2; }
.eco-card:nth-child(2) { transition-delay: .08s; } .eco-card:nth-child(3) { transition-delay: .16s; }
a.eco-card:hover { border-color: rgba(47,139,255,.5); transform: translateY(-4px); }
.eco-card__media { position: relative; aspect-ratio: 16 / 10; }
a.eco-card:hover .img-reveal img { filter: grayscale(0) brightness(0.95); transform: scale(1.03); }
a.eco-card:hover .tint-blue::after { opacity: .28; }
.eco-card__body { padding: 28px 32px 32px; display: flex; flex-direction: column; flex: 1; }
.eco-card__top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); margin-bottom: 16px; }
.eco-status { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.eco-status--live { color: var(--fg); border-color: rgba(47,139,255,.5); }
.eco-status--live i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: ping 2s infinite; }
.eco-card h3 { font-size: clamp(26px, 2.6vw, 40px); font-weight: 300; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 12px; }
.eco-card p { color: var(--muted); font-size: 15px; max-width: 520px; }
.eco-card__cta { margin-top: auto; padding-top: 28px; display: inline-flex; gap: 10px; align-items: center; font-size: 15px; color: var(--fg); }
.eco-card__cta .arrow { transition: transform .5s var(--ease); }
a.eco-card:hover .eco-card__cta .arrow { transform: translateX(5px); }
.eco-card--soon .eco-card__art { height: 150px; display: grid; place-items: center; color: rgba(170,219,252,.55); border-bottom: 1px solid var(--line);
  background: radial-gradient(80% 90% at 50% 100%, rgba(47,139,255,.12), transparent 70%); }
.eco-card--soon .eco-card__art svg { height: 104px; width: auto; }
.eco-card--soon .scan { animation: eco-dash 1.6s linear infinite; }
@keyframes eco-dash { to { stroke-dashoffset: -16; } }
.eco-card--soon .eco-card__body { padding: 22px 28px 26px; }
.eco-card--soon h3 { font-size: clamp(22px, 2vw, 30px); color: rgba(235,232,227,.85); }
.eco-foundation { margin-top: 20px; display: grid; grid-template-columns: 160px 1fr auto; gap: 32px; align-items: center; padding: 28px 32px; border: 1px solid var(--line); border-radius: 16px; }
.eco-foundation__label { color: var(--accent); }
.eco-foundation h3 { font-size: 22px; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 6px; }
.eco-foundation p { color: var(--muted); font-size: 15px; max-width: 640px; }

/* ================= QC Tech homepage: AI core ================= */
.core__wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.core__diagram svg { width: 100%; height: auto; display: block; overflow: visible; }
.core__diagram text { font-family: var(--mono); font-size: 11px; letter-spacing: 1.6px; fill: var(--muted); }
.core__diagram .lbl-live { fill: var(--fg); }
.core__diagram .lbl-core { fill: var(--accent-2); font-size: 12px; letter-spacing: 3px; }
.core__inputs circle { fill: none; stroke: rgba(170,219,252,.7); stroke-width: 2; }
.flow { stroke: rgba(170,219,252,.35); stroke-width: 2; stroke-dasharray: 6 10; animation: core-flow 1.4s linear infinite; }
.flow--out { stroke: var(--accent); stroke-width: 2.5; }
.flow--out.is-soon { stroke: rgba(170,219,252,.25); animation-duration: 2.8s; }
@keyframes core-flow { to { stroke-dashoffset: -32; } }
.node.is-live { fill: var(--accent); stroke: rgba(47,139,255,.35); stroke-width: 10; }
.node.is-soon { fill: none; stroke: rgba(170,219,252,.4); stroke-width: 2; stroke-dasharray: 4 4; }
.core__ring { stroke: rgba(47,139,255,.45); stroke-width: 1.5; fill: rgba(47,139,255,.06); }
.core__ring--outer { stroke: rgba(170,219,252,.18); stroke-dasharray: 2 8; fill: none; transform-origin: 320px 210px; animation: core-spin 40s linear infinite; }
@keyframes core-spin { to { transform: rotate(360deg); } }
.core__points { list-style: none; border-top: 1px solid var(--line); }
.core__points li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.core__points li:nth-child(2) { transition-delay: .1s; } .core__points li:nth-child(3) { transition-delay: .2s; }
.core__points .mono { color: var(--accent); padding-top: 6px; }
.core__points h4 { font-size: 26px; font-weight: 300; letter-spacing: -0.02em; margin-bottom: 4px; }
.core__points p { color: var(--muted); font-size: 15px; }

/* ================= QC Command: subtle branch page ================= */
body[data-page="command"] .hero { min-height: 82svh; padding-bottom: 64px; }
body[data-page="command"] .hero__title { font-size: clamp(48px, 7.5vw, 124px); }
body[data-page="command"] .h2 { font-size: clamp(34px, 4.6vw, 72px); }
body[data-page="command"] .section__head { margin-bottom: clamp(32px, 4vw, 56px); }
body[data-page="command"] .contact__title { font-size: clamp(40px, 5.2vw, 84px); }
body[data-page="command"] .reveal { transform: translateY(16px); }
body[data-page="command"] .img-reveal { clip-path: none; opacity: 0; transition: opacity 1.2s var(--ease); }
body[data-page="command"] .img-reveal.in { opacity: 1; }
body[data-page="command"] .img-reveal img { transform: none; }

@media (max-width: 960px) {
  .eco-grid { grid-template-columns: 1fr; }
  .eco-card--live { grid-row: auto; }
  .eco-foundation { grid-template-columns: 1fr; gap: 14px; }
  .eco-foundation .btn { justify-self: start; }
  .core__wrap { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .eco-card__body { padding: 22px; }
  .core__diagram text { font-size: 14px; }
}

/* Trusted-by: logo tiles */
.client-chip { flex-shrink: 0; display: flex; align-items: center; justify-content: center; height: 58px; padding: 7px 16px; margin-right: 18px; background: #fff; border-radius: 8px; }
.client-chip img { display: block; height: 100%; width: auto; max-width: 160px; object-fit: contain; }
.marquee__track:has(.client-chip) { animation-duration: 75s; }
@media (max-width: 600px) {
  .client-chip { height: 46px; padding: 6px 12px; margin-right: 12px; }
  .client-chip img { max-width: 120px; }
}

/* Enquiry form: spam trap, consent, status */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; color: var(--muted); font-size: 14px; line-height: 1.55; cursor: pointer; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--accent); cursor: pointer; }
.consent a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.form__status { grid-column: 1 / -1; min-height: 0; margin: 0; }
.form__status:empty { display: none; }
.form__status[data-kind="ok"] { color: var(--accent); }
.form__status[data-kind="error"] { color: #ff8a80; }
.form .btn[disabled] { opacity: .6; pointer-events: none; }
