/* PixelFloat — one page site */
@property --g { syntax: "<length>"; inherits: true; initial-value: 0px; }

:root {
  --brand: #00aeef;
  --brand-deep: #0090c8;
  --brand-soft: #4fd0ff;
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Light theme */
  --bg: #ffffff;
  --bg-2: #f5f7f9;
  --surface: #ffffff;
  --ink: #0c1116;
  --ink-2: #4b5662;
  --ink-3: #8a949e;
  --line: #e7eaee;
  --line-hover: rgba(0, 174, 239, .35);
  --kicker: var(--brand-deep);
  --nav-bg: rgba(255, 255, 255, .78);
  --dots: rgba(12, 17, 22, .13);
  --glow: rgba(0, 174, 239, .16);
  --chev: #c7c8ca;
  --floor: rgba(12, 17, 22, .2);
  --btn-bg: #0c1116;
  --btn-fg: #ffffff;
  --btn-hover-bg: var(--brand);
  --btn-hover-fg: #ffffff;
  --ghost-hover: #f5f7f9;
  --panel: #0b1117;
  --panel-line: rgba(255, 255, 255, .12);
  --input-bg: #f5f7f9;
  --input-focus-bg: #ffffff;
  --card-shadow: 0 30px 60px -30px rgba(12, 17, 22, .28);
  --form-shadow: 0 40px 80px -50px rgba(12, 17, 22, .25);
  --cube-a: #0c2350;
  --cube-gray: #d9dadc;
  --cube-gray-side: #c7c8ca;
  --ok: #138a52;
  --err: #c4352f;
}

[data-theme="dark"] {
  --bg: #0a1631;
  --bg-2: #0c1b3b;
  --surface: rgba(255, 255, 255, .035);
  --ink: #ffffff;
  --ink-2: #b8c6de;
  --ink-3: #7c90b3;
  --line: rgba(160, 190, 255, .13);
  --line-hover: rgba(0, 174, 239, .55);
  --kicker: var(--brand);
  --nav-bg: rgba(10, 22, 49, .72);
  --dots: rgba(150, 200, 255, .1);
  --glow: rgba(0, 174, 239, .2);
  --chev: #d3d9e4;
  --floor: rgba(0, 174, 239, .35);
  --btn-bg: var(--brand);
  --btn-fg: #04122b;
  --btn-hover-bg: #ffffff;
  --btn-hover-fg: #04122b;
  --ghost-hover: rgba(255, 255, 255, .06);
  --panel: #071029;
  --panel-line: rgba(160, 190, 255, .14);
  --input-bg: rgba(255, 255, 255, .04);
  --input-focus-bg: rgba(255, 255, 255, .07);
  --card-shadow: 0 30px 60px -30px rgba(0, 174, 239, .35);
  --form-shadow: 0 40px 80px -50px rgba(0, 0, 0, .7);
  --cube-a: #ffffff;
  --cube-gray: #e3e8f0;
  --cube-gray-side: #b8c2d2;
  --ok: #3ddc97;
  --err: #ff7b72;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.03em; margin: 0; }
p { margin: 0; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 500 15px/1 var(--body);
  border: 1px solid var(--btn-bg);
  cursor: pointer;
  transition: transform .35s var(--ease), background .35s var(--ease), border-color .35s, box-shadow .35s var(--ease), color .35s;
}
.btn:hover { background: var(--btn-hover-bg); border-color: var(--btn-hover-bg); color: var(--btn-hover-fg); transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(0, 174, 239, .6); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--ghost-hover); color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .4s, box-shadow .4s, backdrop-filter .4s;
}
.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 34px; font-size: 15px; color: var(--ink-2); }
.nav-links a { position: relative; transition: color .3s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px;
  background: var(--brand); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Theme toggle */
.theme-toggle {
  position: relative; width: 64px; height: 34px; padding: 0; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: border-color .3s, background .3s;
}
.theme-toggle:hover { border-color: var(--line-hover); }
.theme-toggle .knob {
  position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand); color: #04122b; display: grid; place-items: center;
  transition: transform .5s var(--ease), background .4s;
  box-shadow: 0 4px 12px -4px rgba(0, 174, 239, .7);
}
[data-theme="light"] .theme-toggle .knob { transform: translateX(30px); background: #0c1116; color: #fff; box-shadow: none; }
.theme-toggle svg { width: 15px; height: 15px; }
.theme-toggle .ico-sun { display: none; }
[data-theme="light"] .theme-toggle .ico-sun { display: block; }
[data-theme="light"] .theme-toggle .ico-moon { display: none; }
.theme-toggle .track-ico { position: absolute; top: 50%; width: 13px; height: 13px; margin-top: -6.5px; color: var(--ink-3); }
.theme-toggle .track-ico.l { left: 10px; }
.theme-toggle .track-ico.r { right: 10px; }
[data-theme="dark"] .theme-toggle .track-ico.r, [data-theme="light"] .theme-toggle .track-ico.l { opacity: 1; }
[data-theme="dark"] .theme-toggle .track-ico.l, [data-theme="light"] .theme-toggle .track-ico.r { opacity: 0; }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--dots) 1px, transparent 1.3px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; width: 680px; height: 680px; right: -140px; top: 6%;
  background: radial-gradient(circle, var(--glow), transparent 65%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 40px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13.5px; color: var(--ink-2); background: var(--surface);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(0, 174, 239, .18); flex: none; }
h1 { font-size: clamp(2.8rem, 6.6vw, 6.1rem); line-height: .98; letter-spacing: -.045em; margin: 26px 0 26px; font-weight: 600; }
.accent { color: var(--brand); position: relative; white-space: nowrap; }
[data-theme="dark"] .accent { text-shadow: 0 0 40px rgba(0, 174, 239, .35); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

/* 3D scene */
.scene { position: relative; height: 520px; perspective: 1100px; display: grid; place-items: center; }
.float { transform-style: preserve-3d; animation: bob 7s ease-in-out infinite; }
.rig { position: relative; width: 300px; height: 264px; transform-style: preserve-3d; will-change: transform; }
.hex { position: absolute; inset: 0; transform-style: preserve-3d; }
.hex-layer { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: visible; }
[data-theme="dark"] .hex-front { filter: drop-shadow(0 0 26px rgba(0, 174, 239, .45)); }
.chev { position: absolute; top: 14px; width: 82px; height: 236px; fill: var(--chev); transform-style: preserve-3d; transition: fill .5s; }
.chev-l { left: -96px; transform: translateZ(46px); }
.chev-r { right: -96px; transform: translateZ(46px); }
.floor-shadow {
  position: absolute; left: 50%; bottom: 34px; width: 280px; height: 34px; margin-left: -140px;
  background: radial-gradient(ellipse at center, var(--floor), transparent 70%);
  filter: blur(4px); animation: shadow 7s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(-12px); } 50% { transform: translateY(12px); } }
@keyframes shadow { 0%, 100% { transform: scale(.85); opacity: .55; } 50% { transform: scale(1); opacity: .9; } }

/* Cubes */
.cube { position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  transform: translate3d(var(--x), var(--y), var(--z)); transform-style: preserve-3d; }
.cube-in { position: absolute; inset: 0; transform-style: preserve-3d; animation: spin var(--t) linear infinite; }
.cube i { position: absolute; inset: 0; border-radius: 3px; }
.cube i:nth-child(1) { transform: translateZ(calc(var(--s) / 2 + var(--g))); }
.cube i:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--s) / 2 + var(--g))); }
.cube i:nth-child(3) { transform: rotateY(90deg) translateZ(calc(var(--s) / 2 + var(--g))); }
.cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2 + var(--g))); }
.cube i:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--s) / 2 + var(--g))); }
.cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2 + var(--g))); }
.cube-brand i { background: var(--brand); }
.cube-brand i:nth-child(3), .cube-brand i:nth-child(4) { background: var(--brand-deep); }
.cube-brand i:nth-child(5) { background: var(--brand-soft); }
.cube-gray i { background: var(--cube-gray); }
.cube-gray i:nth-child(3), .cube-gray i:nth-child(4) { background: var(--cube-gray-side); }
.cube-wire i { border: 1.5px solid var(--brand); background: rgba(0, 174, 239, .06); }

/* Morphing pixel cubes: solid white → wireframe → solid cyan → wireframe */
.cube-morph .cube-in { animation: spin var(--t) linear infinite, explode var(--m, 8s) var(--ease) infinite; animation-delay: 0s, var(--md, 0s); }
.cube-morph i { border: 1.5px solid; animation: morph var(--m, 8s) var(--ease) infinite; animation-delay: var(--md, 0s); }
.cube-morph i:nth-child(3), .cube-morph i:nth-child(4) { filter: brightness(.8); }
.cube-morph i:nth-child(5) { filter: brightness(1.12); }
@keyframes morph {
  0%, 18%   { background-color: var(--cube-a); border-color: var(--cube-a); box-shadow: none; }
  26%, 44%  { background-color: transparent; border-color: var(--cube-a); box-shadow: 0 0 10px rgba(255, 255, 255, .25); }
  52%, 68%  { background-color: var(--brand); border-color: var(--brand); box-shadow: none; }
  76%, 94%  { background-color: transparent; border-color: var(--brand); box-shadow: 0 0 12px rgba(0, 174, 239, .55); }
  100%      { background-color: var(--cube-a); border-color: var(--cube-a); box-shadow: none; }
}
@keyframes explode {
  0%, 18%   { --g: 0px; }
  26%, 44%  { --g: calc(var(--s) * .22); }
  52%, 68%  { --g: 0px; }
  76%, 94%  { --g: calc(var(--s) * .22); }
  100%      { --g: 0px; }
}
@keyframes spin { from { transform: rotateX(0) rotateY(0); } to { transform: rotateX(360deg) rotateY(720deg); } }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid var(--line); border-radius: 14px; z-index: 2; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--brand); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--bg); }
.marquee-track { display: flex; width: max-content; gap: 34px; align-items: center; animation: marquee 32s linear infinite;
  font: 500 clamp(1.2rem, 2.2vw, 1.7rem)/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.marquee-track b { color: var(--brand); font-size: .7em; font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(90px, 12vw, 150px) 0; }
.section-head { max-width: 760px; margin-bottom: 64px; }
.kicker { font: 500 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--kicker); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.kicker-light { color: var(--brand); }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.04; letter-spacing: -.04em; }
.muted { color: var(--ink-2); }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; perspective: 1200px; }
.card { --rx: 0deg; --ry: 0deg; transform-style: preserve-3d; }
.card-in {
  position: relative; height: 100%; padding: 30px 26px 32px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s, background .5s;
}
.card:hover .card-in { border-color: var(--line-hover); box-shadow: var(--card-shadow); }
.card-in::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 174, 239, .12), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.card:hover .card-in::before { opacity: 1; }
.card-num { font: 500 13px/1 var(--display); color: var(--ink-3); display: block; transform: translateZ(20px); }
.card-icon { width: 46px; height: 46px; color: var(--brand); margin: 48px 0 28px; transform: translateZ(40px); }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; transform: translateZ(30px); }
.card p { color: var(--ink-2); font-size: 15.5px; transform: translateZ(18px); }

/* About */
.about { background: var(--panel); color: #fff; border-radius: 32px; margin-inline: 12px; overflow: hidden; position: relative; border: 1px solid var(--panel-line); }
.about::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(150, 200, 255, .08) 1px, transparent 1.3px);
  background-size: 26px 26px;
}
.about::after {
  content: ""; position: absolute; width: 600px; height: 600px; right: -160px; bottom: -220px; pointer-events: none;
  background: radial-gradient(circle, rgba(0, 174, 239, .18), transparent 65%);
}
.about-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }
.statement { font: 500 clamp(1.6rem, 3vw, 2.5rem)/1.22 var(--display); letter-spacing: -.03em; }
.statement .w { color: rgba(255, 255, 255, .18); transition: color .4s var(--ease); }
.statement .w.on { color: #fff; }
.pillars { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--panel-line); }
.pillars li { padding: 22px 18px 0 0; }
.pillars strong { display: block; font: 600 1.05rem/1.2 var(--display); margin-bottom: 6px; color: var(--brand); }
.pillars span { font-size: 14.5px; color: rgba(255, 255, 255, .62); }
.about-visual { perspective: 1200px; }
.code-card {
  --p: 0;
  margin: 0; position: relative; border-radius: 22px; overflow: hidden;
  aspect-ratio: 4 / 3.3;
  transform: rotateX(calc((1 - var(--p)) * 28deg)) rotateY(calc((1 - var(--p)) * -18deg)) rotateZ(calc((1 - var(--p)) * 4deg)) scale(calc(.88 + var(--p) * .12));
  transform-origin: 50% 70%;
  box-shadow: 0 50px 90px -40px rgba(0, 174, 239, .5), 0 0 0 1px rgba(255, 255, 255, .08);
  will-change: transform;
}
.code-card img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15) translateY(calc((var(--p) - .5) * -6%)); }
.code-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7, 16, 41, .88)); }
.code-card figcaption {
  position: absolute; left: 22px; bottom: 20px; z-index: 1;
  display: flex; align-items: center; gap: 12px; font: 500 15px/1 var(--display);
}
.tag { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--brand); color: #04122b; font-size: 14px; }

/* Process */
.process { position: relative; }
.process ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.process-line { position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--line); }
.process-line span { position: absolute; inset: 0; background: var(--brand); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 12px rgba(0, 174, 239, .5); }
.process li { position: relative; padding-right: 10px; }
.step-dot {
  position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line); font: 600 16px/1 var(--display); color: var(--ink-3);
  margin-bottom: 30px; transition: border-color .4s, color .4s, background .4s, transform .5s var(--ease), box-shadow .5s;
}
.process li.on .step-dot { border-color: var(--brand); background: var(--brand); color: #fff; transform: scale(1.06); box-shadow: 0 10px 24px -8px rgba(0, 174, 239, .6); }
[data-theme="dark"] .process li.on .step-dot { color: #04122b; }
.process h3 { font-size: 1.35rem; margin-bottom: 10px; }
.process p { color: var(--ink-2); font-size: 15.5px; }

/* Contact */
.contact { background: var(--bg-2); transition: background .5s; }
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 72px; align-items: start; }
.contact-info h2 { margin-bottom: 18px; }
.mail-link {
  display: inline-block; margin: 34px 0 40px; font: 600 clamp(1.4rem, 2.6vw, 2rem)/1.1 var(--display); letter-spacing: -.03em; color: var(--brand);
  background: linear-gradient(var(--brand), var(--brand)) 0 100% / 0 2px no-repeat; padding-bottom: 6px; transition: background-size .45s var(--ease), color .3s;
}
.mail-link:hover { background-size: 100% 2px; }
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 30px; border-top: 1px solid var(--line); }
.office h3 { font-size: 1.05rem; margin-bottom: 10px; }
.office p { color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.hours { display: flex; align-items: center; gap: 12px; margin-top: 30px; font-size: 15px; color: var(--ink-2); }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 3.4vw, 40px); box-shadow: var(--form-shadow); }
[data-theme="dark"] .form { background: rgba(255, 255, 255, .03); backdrop-filter: blur(8px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 16px; min-width: 0; }
.field > label { display: block; font-size: 13.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 8px; }
.field input, .field textarea, .code-btn {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--input-bg);
  font: 400 16px/1.4 var(--body); color: var(--ink); resize: vertical;
  transition: border-color .3s, background .3s, box-shadow .35s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: .8; }
.field input:focus, .field textarea:focus, .code-btn:focus-visible, .code-btn[aria-expanded="true"] {
  outline: none; border-color: var(--brand); background: var(--input-focus-bg); box-shadow: 0 0 0 4px rgba(0, 174, 239, .14);
}
/* Glow while typing */
.field.typing input:focus, .field.typing textarea:focus {
  box-shadow: 0 0 0 4px rgba(0, 174, 239, .2), 0 0 26px -2px rgba(0, 174, 239, .55);
}
.field.valid input:not(:focus):not(.combo-search), .field.valid textarea:not(:focus) { border-color: rgba(0, 174, 239, .45); }
.field.invalid input:not(.combo-search), .field.invalid textarea, .field.invalid .code-btn { border-color: var(--err); }
.field.invalid input:focus:not(.combo-search), .field.invalid textarea:focus { box-shadow: 0 0 0 4px rgba(229, 72, 77, .16); }
.field-error { display: block; min-height: 0; font-size: 13px; line-height: 1.4; color: var(--err); margin-top: 0; max-height: 0; overflow: hidden; transition: max-height .3s var(--ease), margin .3s; }
.field.invalid .field-error { max-height: 4.5em; margin-top: 7px; }

/* Phone with calling code */
.phone-group { display: flex; gap: 8px; }
.phone-group > input { flex: 1; min-width: 0; }
.combo { position: relative; }
.combo-code { flex: none; }
.code-btn { display: flex; align-items: center; gap: 6px; width: auto; height: 100%; padding: 0 12px; cursor: pointer; white-space: nowrap; font-size: 15px; }
.code-btn svg { width: 12px; height: 12px; color: var(--ink-3); transition: transform .3s; }
.code-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.code-flag, .combo-flag, .opt-flag { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; line-height: 1; }
.combo-pop, .combo-drop {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0;
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 174, 239, .08);
}
.combo-pop { width: min(320px, 80vw); padding: 8px; }
.combo-pop .combo-search { padding: 10px 12px; font-size: 15px; border-radius: 10px; margin-bottom: 6px; }
.combo-drop { right: 0; padding: 6px; }
.combo-list { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow-y: auto; overscroll-behavior: contain; }
.combo-list li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; cursor: pointer; font-size: 14.5px; color: var(--ink); }
.combo-list li.active, .combo-list li:hover { background: rgba(0, 174, 239, .12); }
.combo-list li[aria-selected="true"] .opt-name { color: var(--brand); font-weight: 500; }
.opt-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt-code { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.combo-list .combo-empty { color: var(--ink-3); cursor: default; }
.combo-list .combo-empty:hover { background: none; }
.combo-country .combo-flag { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 18px; pointer-events: none; display: none; }
.combo-country.has-flag .combo-flag { display: block; }
.combo-country.has-flag input { padding-left: 44px; }

/* Captcha */
.captcha-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.captcha-row img { width: 150px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--input-bg); image-rendering: pixelated; color: transparent; font-size: 0; }
.captcha-refresh {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: var(--input-bg); color: var(--ink-2); transition: color .3s, border-color .3s, transform .5s var(--ease);
}
.captcha-refresh:hover { color: var(--brand); border-color: var(--brand); }
.captcha-refresh:active { transform: rotate(180deg); }
.captcha-refresh svg { width: 20px; height: 20px; }
.captcha-row input { width: 130px; flex: none; text-align: center; letter-spacing: .1em; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; margin-top: 10px; }
.btn-send { flex: none; padding: 12px 22px; font-size: 14.5px; }
.form-status { flex: 1; min-height: 1.5em; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.form-status:empty { flex: 1; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
.form-status a { color: var(--brand); text-decoration: underline; }

/* Footer */
.footer { padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 14px; color: var(--ink-3); }
.footer-inner img { height: 24px; width: auto; opacity: .9; }
.to-top { color: var(--ink-2); transition: color .3s; }
.to-top:hover { color: var(--brand); }

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
.card[data-reveal] { transform: translateY(40px) rotateX(-14deg); transform-origin: 50% 100%; }
.card[data-reveal].in { transform: none; }

/* Responsive */
@media (max-width: 1060px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-visual { max-width: 620px; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .scene { height: 400px; order: -1; margin-top: -10px; }
  .rig { --rs: .8; }
  .hero { padding-top: 96px; }
  .nav-links { display: none; }
  .process ol { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .process-line { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .scene { height: 320px; }
  .rig { --rs: .62; }
  .cards, .process ol, .offices, .field-row, .pillars { grid-template-columns: 1fr; }
  .pillars li { padding: 18px 0 0; }
  .about { margin-inline: 8px; border-radius: 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero-cta .btn { flex: 1 1 auto; }
  .scroll-cue { display: none; }
  .nav-actions .btn-sm { padding: 10px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .code-card { --p: 1 !important; }
}
