/* ==========================================================================
   3TZ’S — Public website styles
   Colour, radius and font tokens are generated from Admin › Branding
   (see App\Theme::css()). This file only consumes the tokens.
   ========================================================================== */

/* ---------- Derived tokens ---------- */
:root,
.inverse {
  --surface-2: color-mix(in srgb, var(--surface) 94%, var(--text));
  --line: var(--border);
  --line-strong: color-mix(in srgb, var(--border) 55%, var(--text));
  --text-2: color-mix(in srgb, var(--text) 80%, var(--bg));
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 45%, transparent);
  --glass: color-mix(in srgb, var(--bg) 74%, transparent);
  --grid-line: color-mix(in srgb, var(--text) 5.5%, transparent);
  --hl: linear-gradient(115deg, var(--text) 5%, color-mix(in srgb, var(--text) 45%, var(--accent)) 55%, var(--accent) 110%);
  --shadow-card: 0 1px 2px rgb(10 12 16 / .04), 0 10px 30px -16px rgb(10 12 16 / .14);
  --shadow-lift: 0 30px 60px -28px rgb(10 12 16 / .30), 0 12px 24px -16px rgb(10 12 16 / .12);
  --danger: #D93A3F;
  --success: #15944F;
}
[data-theme="dark"],
.inverse {
  --hl: linear-gradient(180deg, #FFFFFF 0%, #DADDE2 40%, #8E949D 72%, #E7E9EC 100%);
  --shadow-card: 0 1px 0 rgb(255 255 255 / .03) inset, 0 20px 50px -30px rgb(0 0 0 / .8);
  --shadow-lift: 0 40px 80px -30px rgb(0 0 0 / .85), 0 0 0 1px rgb(255 255 255 / .03) inset;
  --danger: #FF6B6F;
  --success: #3DD68C;
}
:root {
  --maxw: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 9vw, 128px);
  --header-h: 76px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --r-sm: calc(var(--radius) * .6);
  --r-lg: calc(var(--radius) + 6px);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: var(--fs-base);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: clip;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: var(--hw); line-height: 1.1; letter-spacing: -.025em; color: var(--text); text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(820px + var(--gutter) * 2); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: middle; }
.icon-img { object-fit: contain; }

/* ---------- Typography helpers ---------- */
.hl { background: var(--hl); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
  font-size: .76rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); flex: none; }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px;
  border-radius: var(--btn-radius);
  border: 1px solid transparent;
  font: 600 .95rem/1 var(--font-body); letter-spacing: -.005em;
  white-space: nowrap; cursor: pointer; user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, box-shadow .3s var(--ease), color .25s, opacity .2s;
}
.btn .icon { width: 18px; height: 18px; }
.btn-arrow { transition: transform .3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--button-bg); color: var(--button-text); box-shadow: 0 10px 28px -14px color-mix(in srgb, var(--button-bg) 70%, transparent); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--accent) 70%, transparent), 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.btn-ghost { background: color-mix(in srgb, var(--surface) 55%, transparent); color: var(--text); border-color: var(--line); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--line-strong); background: var(--surface); }
.btn-light { background: #fff; color: #0B0C0E; }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 16px 40px -16px rgb(255 255 255 / .45); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / .22); }
.btn-outline-light:hover { border-color: rgb(255 255 255 / .5); background: rgb(255 255 255 / .06); }
.btn-sm { --h: 40px; padding: 0 16px; font-size: .88rem; }
.btn-lg { --h: 56px; padding: 0 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { pointer-events: none; opacity: .7; }
.btn.is-loading .btn-arrow { animation: spin .8s linear infinite; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; flex: none;
  border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--text); cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--line-strong); }
.icon-btn .icon { width: 19px; height: 19px; }

/* ---------- Announcement ---------- */
.announcement { position: relative; z-index: 60; font-size: .9rem; }
.announcement-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 16px; min-height: 44px; padding-block: 8px; padding-right: 48px; text-align: center; }
.announcement p { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.announcement-accent { background: var(--accent); color: #fff; }
.announcement-dark { background: #0B0C0E; color: #fff; }
.announcement-light { background: var(--surface-2); color: var(--text); border-bottom: 1px solid var(--line); }
.announcement-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.announcement-link .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.announcement-link:hover .icon { transform: translateX(3px); }
.announcement-close { position: absolute; right: max(8px, calc(var(--gutter) - 8px)); top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; opacity: .8; }
.announcement-close:hover { opacity: 1; background: rgb(255 255 255 / .14); }
.announcement-close .icon { width: 16px; height: 16px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: currentColor; position: relative; flex: none; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid currentColor; animation: pulse 2s ease-out infinite; }
.announcement-bottom { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(760px, calc(100% - 32px)); border-radius: 16px; box-shadow: var(--shadow-lift); }
.announcement-bottom .announcement-inner { padding-inline: 16px 48px; }
.preview-bar { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 16px; background: #F5B83D; color: #1a1305; font-weight: 600; font-size: .88rem; text-align: center; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 50; height: var(--header-h); transition: background-color .3s, border-color .3s, box-shadow .3s; border-bottom: 1px solid transparent; }
.site-header.is-sticky { position: sticky; top: 0; }
.header-glass, .header-transparent.is-scrolled { background: var(--glass); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); }
.header-solid { background: var(--surface); border-bottom-color: var(--line); }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.logo { height: var(--logo-h); width: auto; }
.logo-on-dark { display: none; }
[data-theme="dark"] .logo-on-light, .inverse .logo-on-light { display: none; }
[data-theme="dark"] .logo-on-dark, .inverse .logo-on-dark { display: block; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; padding: 0; }
.main-nav a { position: relative; display: block; padding: 10px 14px; border-radius: 999px; font-size: .94rem; font-weight: 500; color: var(--muted); transition: color .2s, background-color .2s; }
.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.main-nav a[aria-current="page"] { color: var(--text); }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: 12px; }
.nav-toggle { display: none; }
.burger { display: grid; gap: 4px; width: 18px; }
.burger span { height: 1.75px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(2) { width: 70%; justify-self: end; }

/* Theme switcher */
.theme-switch { position: relative; }
.t-icon { display: none; }
.t-system { display: inline-flex; }
[data-theme-pref] .t-system { display: none; }
[data-theme-pref="light"] .t-light, [data-theme-pref="dark"] .t-dark, [data-theme-pref="system"] .t-system { display: inline-flex; }
.theme-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 70;
  min-width: 176px; padding: 6px;
  border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow-lift);
  animation: pop .18s var(--ease);
}
.theme-menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; font-size: .92rem; font-weight: 500; cursor: pointer; text-align: left; color: var(--text-2); }
.theme-menu button:hover, .theme-menu button:focus-visible { background: var(--surface-2); color: var(--text); outline: none; }
.theme-menu button[aria-checked="true"] { color: var(--accent); }
.theme-menu button[aria-checked="true"]::after { content: ""; margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.theme-menu .icon { width: 17px; height: 17px; }

/* Mobile navigation */
.mobile-nav { position: fixed; inset: 0; z-index: 120; }
.mobile-nav-backdrop { position: absolute; inset: 0; background: rgb(5 6 8 / .5); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.mobile-nav-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  display: flex; flex-direction: column; gap: 24px;
  padding: 16px var(--gutter) max(24px, env(safe-area-inset-bottom));
  background: var(--bg); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .45s var(--ease);
  overflow-y: auto; overscroll-behavior: contain;
}
.mobile-nav.is-open .mobile-nav-backdrop { opacity: 1; }
.mobile-nav.is-open .mobile-nav-panel { transform: none; }
.mobile-nav-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.mobile-nav-top .logo { height: 30px; }
.mobile-links { list-style: none; padding: 0; }
.mobile-links li { opacity: 0; transform: translateX(24px); transition: opacity .4s var(--ease), transform .45s var(--ease); transition-delay: calc(80ms + var(--i) * 45ms); }
.mobile-nav.is-open .mobile-links li { opacity: 1; transform: none; }
.mobile-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 2px; border-bottom: 1px solid var(--line); font: var(--hw) clamp(1.5rem, 1.2rem + 1.5vw, 1.9rem)/1.15 var(--font-head); letter-spacing: -.03em; }
.mobile-links a .icon { width: 22px; height: 22px; color: var(--muted); transition: transform .25s var(--ease), color .2s; }
.mobile-links a:hover .icon, .mobile-links a[aria-current="page"] .icon { color: var(--accent); transform: translate(2px, -2px); }
.mobile-links a[aria-current="page"] { color: var(--text); }
.mobile-nav-bottom { margin-top: auto; display: grid; gap: 16px; }
.mobile-contact { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .95rem; }
.no-scroll { overflow: hidden; }

/* ---------- Social ---------- */
.social-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.social-links a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); transition: color .2s, border-color .2s, background-color .2s, transform .2s var(--ease); }
.social-links a:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-2px); }
.social-links .icon { width: 17px; height: 17px; }
.social-sm a { width: 34px; height: 34px; }
.social-sm .icon { width: 15px; height: 15px; }

/* ---------- Background FX (shared) ---------- */
.hero-bg, .page-hero-bg, .thanks-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 64px 64px; background-position: -1px -1px; -webkit-mask-image: radial-gradient(ellipse 70% 65% at 65% 30%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse 70% 65% at 65% 30%, #000 25%, transparent 75%); }
.hero-glow { position: absolute; width: 1000px; height: 1000px; right: -260px; top: -420px; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 24%, transparent), transparent 72%); opacity: .95; }
[data-theme="light"] .hero-glow { opacity: .7; }
.hero-ring { position: absolute; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--text) 9%, transparent); }
.hero-ring-1 { width: 780px; height: 780px; right: -140px; top: -170px; }
.hero-ring-1::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid transparent; border-top-color: color-mix(in srgb, var(--accent) 75%, transparent); border-right-color: color-mix(in srgb, var(--accent) 18%, transparent); animation: spin 24s linear infinite; }
.hero-ring-2 { width: 1140px; height: 1140px; right: -320px; top: -350px; opacity: .55; }
.hero-bg-image { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .22; }
.hero-fx-none .hero-grid, .hero-fx-none .hero-glow, .hero-fx-glow .hero-grid { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 104px); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-centered .hero-inner { grid-template-columns: minmax(0, 1fr); text-align: center; max-width: 960px; }
.hero-centered .hero-subtitle { margin-inline: auto; }
.hero-centered .hero-actions, .hero-centered .hero-trust { justify-content: center; }
.hero-eyebrow { padding: 7px 14px 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 60%, transparent); letter-spacing: .14em; font-size: .72rem; backdrop-filter: blur(6px); }
.hero-title { font-size: clamp(2.45rem, 1.1rem + 4.7vw, 5.2rem); line-height: 1.01; letter-spacing: -.045em; }
.hero-subtitle { margin-top: 24px; max-width: 42ch; font-size: clamp(1.05rem, .98rem + .35vw, 1.22rem); line-height: 1.65; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-actions-center { justify-content: center; }
.hero-trust { display: flex; align-items: center; gap: 10px; margin-top: 30px; font-size: .92rem; color: var(--muted); }
.hero-trust .icon { color: var(--accent); width: 20px; height: 20px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 36px 0 0; }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dd { margin: 0; font: 600 1.9rem/1 var(--font-head); letter-spacing: -.04em; }
.hero-stats dt { margin-top: 6px; font-size: .84rem; color: var(--muted); }

/* Device scene */
.hero-visual { position: relative; perspective: 1800px; }
.device-stage {
  position: relative; width: 100%; max-width: 640px; margin-left: auto;
  padding: 44px 11% 64px 0;
  transform-style: preserve-3d;
  transform: rotateY(calc(-11deg + var(--ry, 0deg))) rotateX(calc(5deg + var(--rx, 0deg)));
  transition: transform .8s var(--ease);
}
.device-laptop { position: relative; animation: floatA 9s ease-in-out infinite; transform-style: preserve-3d; }
.laptop-screen {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: #0A0B0E; border: 10px solid #17191E; border-bottom-width: 14px; border-radius: 18px 18px 6px 6px;
  box-shadow: 0 60px 120px -40px rgb(0 0 0 / .55), 0 0 0 1px rgb(255 255 255 / .07) inset, 0 0 0 1px rgb(0 0 0 / .4);
}
.laptop-cam { position: absolute; top: -7px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #2B2E35; z-index: 2; }
.laptop-base { position: relative; height: 16px; margin: 0 -9%; border-radius: 0 0 20px 20px; background: linear-gradient(180deg, #E7E9EC, #A9AEB5 70%, #8B9098); box-shadow: 0 30px 50px -20px rgb(0 0 0 / .45); }
.laptop-base::after { content: ""; position: absolute; left: 50%; top: 0; width: 18%; height: 6px; margin-left: -9%; border-radius: 0 0 8px 8px; background: rgb(0 0 0 / .18); }
[data-theme="dark"] .laptop-base { background: linear-gradient(180deg, #34373E, #1A1C21 70%, #111215); }
.device-phone {
  position: absolute; right: 0; bottom: 14px; width: 25%; aspect-ratio: 9 / 19.2; overflow: hidden;
  background: #0A0B0E; border: 7px solid #1A1C21; border-radius: 34px;
  box-shadow: 0 50px 90px -30px rgb(0 0 0 / .6), 0 0 0 1px rgb(255 255 255 / .08) inset, 0 0 0 1px rgb(0 0 0 / .45);
  transform: translateZ(70px); animation: floatB 7.5s ease-in-out infinite;
}
.device-phone::before { content: ""; position: absolute; top: 7px; left: 50%; width: 32%; height: 14px; margin-left: -16%; border-radius: 10px; background: #000; z-index: 3; }
.phone-screen { position: absolute; inset: 0; }
.screen-img { width: 100%; height: 100%; object-fit: cover; }

/* Mock website UI inside the laptop */
.mock-site { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 7%; padding: 5% 6%; background: radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 60%), linear-gradient(180deg, #0D0F13, #090A0D); }
.mock-site b, .mock-site i { display: block; border-radius: 4px; }
.ms-nav { display: flex; align-items: center; gap: 6%; }
.ms-logo { width: 11%; height: 9px; border-radius: 3px; background: #EEF0F3; }
.ms-links { display: flex; gap: 5%; flex: 1; }
.ms-links i { width: 11%; height: 5px; background: rgb(255 255 255 / .22); }
.ms-btn { width: 13%; height: 14px; border-radius: 999px; background: var(--accent); }
.ms-hero { flex: 1; display: flex; align-items: center; gap: 6%; }
.ms-copy { flex: 1.15; display: flex; flex-direction: column; gap: 9px; }
.ms-kicker { width: 34%; height: 6px; background: color-mix(in srgb, var(--accent) 70%, #fff); opacity: .8; }
.ms-h1 { width: 92%; height: 13px; background: #F2F3F5; }
.ms-p { width: 88%; height: 5px; background: rgb(255 255 255 / .22); }
.mock-site .ms-short { width: 62%; }
.ms-ctas { display: flex; gap: 8px; margin-top: 6px; }
.ms-ctas i { width: 26%; height: 15px; border-radius: 999px; background: #fff; }
.ms-ctas i + i { background: transparent; border: 1px solid rgb(255 255 255 / .28); }
.ms-art { position: relative; flex: .85; aspect-ratio: 1; display: grid; place-items: center; }
.ms-ring { position: absolute; inset: 4%; border-radius: 50%; border: 1px solid rgb(255 255 255 / .12); box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 32%, transparent) inset; }
.ms-ring::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid transparent; border-top-color: var(--accent); animation: spin 10s linear infinite; }
.ms-art img { width: 76%; height: auto; position: relative; }
.ms-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; }
.ms-cards > div { display: flex; flex-direction: column; gap: 6px; padding: 8% 9%; border-radius: 8px; border: 1px solid rgb(255 255 255 / .08); background: rgb(255 255 255 / .04); }
.ms-cards i { width: 16px; height: 16px; border-radius: 5px; background: color-mix(in srgb, var(--accent) 65%, #ffffff 0%); }
.ms-cards b { width: 80%; height: 5px; background: rgb(255 255 255 / .24); }

/* Mock app UI inside the phone */
.mock-app { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 5%; padding: 20% 8% 6%; background: linear-gradient(180deg, #101217, #0A0B0E); color: #fff; }
.mock-app b, .mock-app small, .mock-app strong, .mock-app i { display: block; border-radius: 3px; }
.ma-status { position: absolute; top: 3.2%; left: 10%; right: 10%; display: flex; justify-content: space-between; align-items: center; font-size: 7px; font-weight: 600; letter-spacing: .02em; }
.ma-dots { display: flex; gap: 2px; }
.ma-dots i { width: 4px; height: 4px; border-radius: 50%; background: #fff; }
.ma-head { display: flex; align-items: center; justify-content: space-between; }
.ma-head b { width: 45%; height: 8px; background: #EEF0F3; }
.ma-avatar { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #8B5CF6); }
.ma-card { padding: 9% 9% 8%; border-radius: 12px; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 45%, #6D28D9)); display: flex; flex-direction: column; gap: 6px; }
.ma-card small { width: 40%; height: 4px; background: rgb(255 255 255 / .6); }
.ma-card strong { width: 62%; height: 10px; background: #fff; }
.ma-chart { display: flex; align-items: flex-end; gap: 5%; height: 34px; margin-top: 4px; }
.ma-chart i { flex: 1; height: var(--h); background: rgb(255 255 255 / .5); border-radius: 2px; }
.ma-row { display: flex; align-items: center; gap: 8%; padding: 6% 6%; border-radius: 10px; background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .06); }
.ma-ic { width: 18px; height: 18px; border-radius: 6px; background: rgb(255 255 255 / .16); flex: none; }
.ma-row div { flex: 1; display: grid; gap: 4px; }
.ma-row b { width: 80%; height: 5px; background: rgb(255 255 255 / .55); }
.ma-row small { width: 50%; height: 4px; background: rgb(255 255 255 / .22); }
.ma-tabbar { margin-top: auto; display: flex; justify-content: space-around; padding-top: 6%; border-top: 1px solid rgb(255 255 255 / .06); }
.ma-tabbar i { width: 14px; height: 14px; border-radius: 5px; background: rgb(255 255 255 / .2); }
.ma-tabbar i.on { background: var(--accent); }

/* Floating glass cards */
.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: var(--shadow-lift);
  transform: translateZ(120px);
  white-space: nowrap; font-size: .8rem;
  animation: floatC 8s ease-in-out infinite;
}
.fc-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--accent-soft); color: var(--accent); }
.fc-icon .icon { width: 18px; height: 18px; }
.fc-copy strong { display: block; font-size: .84rem; font-weight: 600; letter-spacing: -.01em; }
.fc-copy small { display: block; color: var(--muted); font-size: .74rem; margin-top: 1px; }
.fc-1 { left: -7%; top: 16%; animation-delay: -2s; }
.fc-2 { right: 2%; top: 0; animation-delay: -4s; }
.fc-3 { left: 6%; bottom: 8%; animation-delay: -1s; }
.hero-image-frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lift); }
.hero-image-frame img, .hero-video { width: 100%; height: auto; }

/* ---------- Statistics band ---------- */
.section-stats { position: relative; padding: 0 0 clamp(24px, 4vw, 48px); margin-top: calc(clamp(56px, 7vw, 104px) * -.45); z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); background: color-mix(in srgb, var(--surface) 72%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow-card); overflow: hidden; }
.stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats-1 { grid-template-columns: minmax(0, 1fr); }
.stat { position: relative; padding: clamp(22px, 3vw, 34px) clamp(20px, 3vw, 32px); }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.stat-icon { display: inline-grid; margin-bottom: 14px; color: var(--accent); }
.stat-value { font: var(--hw) clamp(2rem, 1.3rem + 2.2vw, 3.1rem)/1 var(--font-head); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.stat-label { margin-top: 10px; font-size: .93rem; color: var(--muted); }
.stat-desc { margin-top: 6px; font-size: .85rem; color: var(--muted); }

/* ---------- Sections & headings ---------- */
.section { position: relative; padding-block: calc(var(--section-y) / 2); }
main > .section:first-child { padding-top: var(--section-y); }
main > .section:last-child { padding-bottom: var(--section-y); }
.section-head { display: flex; flex-direction: column; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head-center { align-items: center; text-align: center; max-width: 800px; margin-inline: auto; }
.section-head-center .section-subtitle { margin-inline: auto; }
.section-head-split { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.section-head-copy { max-width: 760px; }
.section-title { font-size: clamp(2rem, 1.15rem + 2.7vw, 3.4rem); line-height: 1.05; letter-spacing: -.04em; }
.section-subtitle { margin-top: 18px; max-width: 58ch; font-size: clamp(1rem, .96rem + .2vw, 1.1rem); color: var(--muted); line-height: 1.7; }
.section-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 44px; }
.section-actions-left { justify-content: flex-start; margin-top: 32px; }
.group-head { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.group-title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); letter-spacing: -.03em; }
.group-head .section-subtitle { margin-top: 6px; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Cards ---------- */
.card {
  position: relative; isolation: isolate;
  padding: clamp(22px, 2.4vw, 30px);
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface);
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease), background-color .3s;
}
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), color-mix(in srgb, var(--accent) 9%, transparent), transparent 45%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.card:hover::before { opacity: 1; }
.service-card:hover, .build-card:hover, .highlight-card:hover, .post-card:hover, .process-card:hover, .tech-item:hover, .team-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-lift); }
.card-link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.card-icon {
  width: 48px; height: 48px; flex: none; display: grid; place-items: center;
  border-radius: 14px; border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  color: var(--text); box-shadow: 0 1px 0 rgb(255 255 255 / .06) inset;
  transition: color .3s, border-color .3s, transform .4s var(--ease);
}
.card-icon .icon, .card-icon .icon-img { width: 22px; height: 22px; }
.card:hover .card-icon { color: var(--accent); border-color: var(--accent-line); }
.card-title { margin-top: 22px; font-size: 1.16rem; letter-spacing: -.02em; line-height: 1.25; }
.card-title a:hover { color: var(--accent); }
.card-text { margin-top: 10px; font-size: .96rem; line-height: 1.65; color: var(--muted); }
.card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-size: .92rem; font-weight: 600; color: var(--text); }
.card-more .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.card:hover .card-more .icon, .project-card:hover .card-more .icon, .card-more:hover .icon { transform: translateX(4px); color: var(--accent); }
.service-card { display: flex; flex-direction: column; }
.service-card .card-more { margin-top: auto; padding-top: 20px; }

/* What we build */
.build-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.build-card { display: flex; flex-direction: column; min-height: 300px; padding-top: 26px; }
.build-top { display: flex; align-items: center; justify-content: space-between; }
.build-num { font: 500 .85rem/1 var(--font-head); letter-spacing: .08em; color: var(--muted); }
.build-card .card-title { margin-top: auto; padding-top: 48px; font-size: 1.4rem; }
.build-card .card-more { margin-top: 18px; }
.build-image { margin-top: 20px; border-radius: var(--r-sm); overflow: hidden; }
.build-card:hover .card-icon { transform: rotate(-8deg) scale(1.05); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .86rem; font-weight: 500; white-space: nowrap; }
.chip .icon, .chip .icon-img { width: 16px; height: 16px; }
.chip-link { transition: color .2s, border-color .2s, background-color .2s; }
.chip-link:hover { color: var(--text); border-color: var(--line-strong); }
.chip.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip-count { font-size: .74rem; opacity: .65; font-variant-numeric: tabular-nums; }
.chip-glass { position: absolute; left: 16px; top: 16px; z-index: 1; background: rgb(10 11 14 / .5); color: #fff; border-color: rgb(255 255 255 / .16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.filter-bar { margin-bottom: clamp(28px, 4vw, 44px); }
.subnav { padding-top: 32px; }

/* Projects */
.project-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.project-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.project-card:hover .project-media img { transform: scale(1.045); }
.project-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.project-placeholder .icon { width: 42px; height: 42px; }
.project-body { flex: 1; display: flex; flex-direction: column; padding: clamp(20px, 2.4vw, 28px); }
.project-title { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); letter-spacing: -.03em; }
.project-title a { transition: color .2s; }
.project-title a:hover { color: var(--accent); }
.project-text { margin-top: 10px; color: var(--muted); font-size: .97rem; }
.project-body .card-more { margin-top: auto; padding-top: 20px; }
.tech-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding: 0; list-style: none; }
.tech-chips li { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: .75rem; font-weight: 500; }

/* Process */
.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); list-style: none; padding: 0; }
.process-card { display: flex; flex-direction: column; }
.process-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.process-num { font: 600 2.6rem/1 var(--font-head); letter-spacing: -.05em; background: linear-gradient(180deg, var(--text), color-mix(in srgb, var(--text) 10%, transparent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.process-icon { color: var(--muted); }
.process-icon .icon { width: 24px; height: 24px; }
.process-card:hover .process-icon { color: var(--accent); }
.process-card .card-title { margin-top: 26px; }
.process-cta { padding: 0; overflow: hidden; border-radius: var(--radius); background: radial-gradient(120% 100% at 100% 0%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 60%), var(--bg); border: 1px solid var(--line); }
.process-cta a { display: flex; flex-direction: column; justify-content: space-between; height: 100%; min-height: 220px; padding: clamp(22px, 2.4vw, 30px); color: var(--text); font: 600 1.35rem/1.2 var(--font-head); letter-spacing: -.02em; }
.process-cta .icon { width: 44px; height: 44px; align-self: flex-end; transition: transform .35s var(--ease); }
.process-cta:hover .icon { transform: translate(4px, -4px); }

/* Highlights */
.highlights-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.highlights-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.highlights-intro .section-head { margin-bottom: 28px; }
.highlights-mark { margin-top: 48px; opacity: .14; max-width: 260px; }
[data-theme="light"] .highlights-mark { opacity: .08; filter: invert(1); }
.highlights-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }

/* Technologies */
.tech-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; list-style: none; padding: 0; }
.tech-item { position: relative; flex: 0 1 calc(25% - 11px); min-width: 210px; display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease); }
.tech-logo { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 12px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); transition: color .3s; }
.tech-logo .tech-svg, .tech-logo img { width: 24px; height: 24px; object-fit: contain; }
.tech-item:hover .tech-logo { color: var(--accent); }
.tech-name { font: 600 1.02rem/1.3 var(--font-head); letter-spacing: -.015em; }
.tech-cat { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tech-desc { margin-top: 6px; font-size: .88rem; color: var(--muted); line-height: 1.55; }
.tech-list { display: grid; gap: 10px; list-style: none; padding: 0; }
.tech-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.tech-list .tech-logo { margin: 0; width: 36px; height: 36px; border-radius: 10px; }
.tech-list .tech-svg { width: 18px; height: 18px; }

/* Testimonials */
.testimonial-card { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.quote-mark { width: 30px; height: 30px; color: var(--accent); opacity: .8; }
.stars { display: flex; gap: 3px; color: var(--line-strong); }
.stars .icon { width: 16px; height: 16px; }
.stars .on { color: #F5B83D; }
.testimonial-card blockquote { margin: 0; font-size: 1.04rem; line-height: 1.7; color: var(--text-2); }
.person { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 6px; }
.person strong { display: block; font-size: .95rem; }
.person small { display: block; color: var(--muted); font-size: .84rem; }
.avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-initials { display: grid; place-items: center; background: linear-gradient(135deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); font: 600 .9rem var(--font-head); color: var(--text); }
.masonry { columns: 3 300px; column-gap: 24px; }
.masonry > * { break-inside: avoid; margin-bottom: 24px; }

/* Clients */
.client-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 56px; list-style: none; padding: 0; }
.client-logos img { max-height: 44px; width: auto; filter: grayscale(1); opacity: .65; transition: filter .3s, opacity .3s; }
[data-theme="dark"] .client-logos img { filter: grayscale(1) invert(1) brightness(1.2); }
.client-logos a:hover img, .client-logos li:hover img { filter: none; opacity: 1; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-intro .section-head { margin-bottom: 28px; }
.faq-help { display: grid; gap: 16px; }
.faq-help p { color: var(--muted); }
.faq-help strong { color: var(--text); }
.faq-help-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-heading { font-size: inherit; }
.accordion-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 2px; border: 0; background: transparent; cursor: pointer; text-align: left; font: 600 clamp(1.02rem, .98rem + .2vw, 1.12rem)/1.4 var(--font-head); letter-spacing: -.015em; color: var(--text); }
.accordion-trigger:hover { color: var(--accent); }
.accordion-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); transition: transform .35s var(--ease), background-color .3s, color .3s, border-color .3s; }
.accordion-icon .icon { width: 16px; height: 16px; }
.accordion-item.is-open .accordion-icon { transform: rotate(45deg); background: var(--text); color: var(--bg); border-color: var(--text); }
.accordion-body { padding: 0 48px 24px 2px; color: var(--muted); line-height: 1.75; }
.accordion-body p + p { margin-top: .8em; }
.js .accordion-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.js .accordion-panel > .accordion-body { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility 0s .4s; padding-bottom: 0; }
.js .accordion-item.is-open .accordion-panel { grid-template-rows: 1fr; }
.js .accordion-item.is-open .accordion-panel > .accordion-body { visibility: visible; transition-delay: 0s; padding-bottom: 24px; }
.faq-page { max-width: 880px; }
.faq-search { position: relative; margin-bottom: 40px; }
.faq-search .icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.faq-search input { padding-left: 50px; min-height: 56px; border-radius: 999px; }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group .group-title { margin-bottom: 16px; font-size: 1.3rem; }
.faq-empty { color: var(--muted); text-align: center; padding: 24px; }
.faq-empty a { color: var(--accent); text-decoration: underline; }

/* CTA band */
.cta-panel {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.5fr) auto; gap: 32px 48px; align-items: end;
  padding: clamp(36px, 6vw, 88px);
  border-radius: calc(var(--radius) * 1.6);
  background: radial-gradient(70% 120% at 100% 0%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 60%), radial-gradient(60% 90% at 0% 100%, rgb(195 200 207 / .10), transparent 60%), var(--bg);
  background-color: var(--bg);
  color: var(--text); border: 1px solid var(--line);
}
.cta-panel[style*="--cta-bg"] { background: linear-gradient(120deg, rgb(7 8 10 / .92), rgb(7 8 10 / .72)), var(--cta-bg) center / cover; }
.cta-fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cta-ring { position: absolute; border-radius: 50%; border: 1px solid rgb(255 255 255 / .09); }
.cta-ring-1 { width: 520px; height: 520px; right: -140px; top: -220px; }
.cta-ring-1::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid transparent; border-left-color: var(--accent); animation: spin 18s linear infinite; }
.cta-ring-2 { width: 820px; height: 820px; right: -300px; top: -380px; opacity: .6; }
.cta-grid { position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / .04) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .04) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000, transparent 65%); mask-image: radial-gradient(ellipse at 80% 20%, #000, transparent 65%); }
.cta-title { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.4rem); letter-spacing: -.04em; line-height: 1.05; max-width: 20ch; }
.cta-subtitle { margin-top: 18px; max-width: 54ch; color: var(--muted); font-size: 1.08rem; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }

/* Rich text sections */
.rich-layout { max-width: 860px; }
.rich-layout.has-image { max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 88px); align-items: center; }
.image-left .rich-media { order: -1; }
.rich-media img { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.rich-copy .prose { margin-top: 24px; }
.rich-centered .rich-layout { margin-inline: auto; text-align: center; }
.rich-centered .prose { margin-inline: auto; }
.rich-centered .section-actions-left { justify-content: center; }

/* Mission / vision */
.mv-card { padding: clamp(28px, 4vw, 48px); overflow: hidden; }
.mv-card::after { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; border: 1px solid var(--line); z-index: -1; }
.mv-title { margin-top: 24px; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); letter-spacing: -.03em; }
.mv-text { margin-top: 14px; font-size: 1.1rem; line-height: 1.7; color: var(--text-2); }

/* Team */
.team-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.team-photo { aspect-ratio: 4 / 4.4; background: linear-gradient(160deg, var(--surface-2), var(--surface)); display: grid; place-items: center; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-photo .avatar-initials { width: 96px; height: 96px; border-radius: 50%; font-size: 1.8rem; }
.team-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.team-body .card-title { margin-top: 0; }
.team-role { margin-top: 4px; font-size: .9rem; color: var(--accent); font-weight: 500; }
.team-body .social-links { margin-top: auto; padding-top: 18px; }

/* Posts */
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-media { display: block; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.04); }
.post-placeholder { display: grid; place-items: center; height: 100%; color: var(--muted); }
.post-placeholder .icon { width: 36px; height: 36px; }
.post-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: .84rem; color: var(--muted); }
.post-meta .chip { padding: 3px 10px; font-size: .76rem; }
.post-body .card-title { margin-top: 14px; }
.post-body .card-more { margin-top: auto; padding-top: 18px; }
.post-byline { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; color: var(--muted); font-size: .92rem; }
.post-byline span { display: inline-flex; align-items: center; gap: 8px; }
.post-byline .icon { width: 17px; height: 17px; }
.post-image { max-width: 1000px; margin: 0 auto 48px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.post-footer { max-width: 760px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.share { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
.share a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); }
.share a:hover { color: var(--text); border-color: var(--line-strong); }
.share .icon { width: 16px; height: 16px; }
.share .icon-btn { width: 38px; height: 38px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(48px, 7vw, 104px) 0 clamp(44px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.page-hero .hero-ring-1 { width: 620px; height: 620px; right: -160px; top: -240px; }
.page-hero .hero-glow { width: 800px; height: 800px; right: -240px; top: -420px; }
.breadcrumb { margin-bottom: 28px; font-size: .86rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .45; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb [aria-current] { color: var(--text); }
.page-title { font-size: clamp(2.2rem, 1.3rem + 3.4vw, 4.4rem); line-height: 1.03; letter-spacing: -.045em; max-width: 20ch; }
.page-intro { margin-top: 22px; max-width: 62ch; font-size: clamp(1.02rem, .96rem + .3vw, 1.18rem); color: var(--muted); line-height: 1.7; }
.page-hero .hero-actions { margin-top: 32px; }

/* ---------- Detail pages ---------- */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 4vw, 56px); align-items: start; }
.detail-main > * + * { margin-top: clamp(36px, 4vw, 52px); }
.detail-image, .project-hero-image { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.project-hero-image { margin-bottom: clamp(40px, 5vw, 64px); }
.detail-image img, .project-hero-image img { width: 100%; }
.block-title { font-size: 1.5rem; letter-spacing: -.03em; margin-bottom: 22px; }
.detail-aside { display: grid; gap: 16px; }
.sticky-card { position: sticky; top: calc(var(--header-h) + 24px); }
.aside-card .card-icon { margin-bottom: 18px; }
.aside-title { font-size: 1.35rem; letter-spacing: -.02em; }
.aside-subtitle { font-size: 1.1rem; letter-spacing: -.02em; margin-bottom: 16px; }
.aside-text { margin: 12px 0 20px; color: var(--muted); font-size: .95rem; }
.aside-block { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.aside-block h3 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-family: var(--font-body); margin-bottom: 12px; }
.aside-link { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-weight: 500; word-break: break-word; }
.aside-link:hover { color: var(--accent); }
.aside-secure { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: .84rem; color: var(--muted); }
.aside-cta { background: radial-gradient(120% 90% at 100% 0%, var(--accent-soft), transparent 60%), var(--surface); }
.price { margin: 16px 0 20px; display: grid; gap: 2px; }
.price small { color: var(--muted); font-size: .84rem; }
.price strong { font: 600 2rem/1.1 var(--font-head); letter-spacing: -.04em; }
.price span { font-size: .85rem; color: var(--muted); }
.link-list { list-style: none; padding: 0; display: grid; }
.link-list a { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); font-weight: 500; font-size: .95rem; transition: color .2s, padding .3s var(--ease); }
.link-list li:last-child a { border-bottom: 0; }
.link-list a:hover { color: var(--accent); padding-left: 8px; }
.link-list a > .icon:last-child { margin-left: auto; width: 16px; height: 16px; color: var(--muted); }
.check-list { display: grid; gap: 14px; list-style: none; padding: 0; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; }
.check-list li > .icon { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.check-list small { display: block; color: var(--muted); font-size: .88rem; margin-top: 2px; }
.check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.benefit-card { padding: 24px; }
.benefit-num { font: 500 .82rem var(--font-head); color: var(--accent); letter-spacing: .08em; }
.benefit-card .card-title { margin-top: 14px; font-size: 1.05rem; }
.mini-steps { list-style: none; padding: 0; display: grid; gap: 0; }
.mini-steps li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding-bottom: 24px; }
.mini-steps li:not(:last-child)::before { content: ""; position: absolute; left: 19.5px; top: 40px; bottom: 0; width: 1px; background: var(--line); }
.mini-num { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); font: 600 .95rem var(--font-head); }
.mini-steps strong { display: block; padding-top: 8px; }
.mini-steps p { margin-top: 4px; color: var(--muted); font-size: .95rem; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery-item { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.project-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-bottom: 32px; }
.project-meta dl { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 0; }
.project-meta dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.project-meta dd { margin: 4px 0 0; font-weight: 600; }
.project-links { display: flex; flex-wrap: wrap; gap: 8px; }
.project-logo img { max-height: 56px; width: auto; }
.story-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.story-card p { margin-top: 10px; color: var(--muted); font-size: .95rem; }
.adjacent-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(48px, 6vw, 80px); padding-top: 32px; border-top: 1px solid var(--line); }
.adjacent-nav a { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font: 600 1.1rem var(--font-head); letter-spacing: -.02em; transition: border-color .3s, transform .4s var(--ease); }
.adjacent-nav a:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.adjacent-nav a[rel="next"] { justify-content: flex-end; text-align: right; }
.adjacent-nav small { display: block; font: 500 .78rem var(--font-body); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }

/* Timeline (process page) */
.timeline { list-style: none; padding: 0; max-width: 980px; margin-inline: auto; position: relative; }
.timeline::before { content: ""; position: absolute; left: 31.5px; top: 12px; bottom: 12px; width: 1px; background: linear-gradient(var(--line-strong), var(--line) 85%, transparent); }
.timeline-item { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); padding-bottom: 24px; }
.timeline-marker span { position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); font: 600 1.05rem var(--font-head); box-shadow: 0 0 0 8px var(--bg); }
.timeline-card { display: grid; gap: 24px; }
.timeline-card.has-image { grid-template-columns: minmax(0, 1fr) 260px; align-items: center; }
.timeline-title { margin-top: 18px; font-size: clamp(1.3rem, 1.1rem + .7vw, 1.65rem); letter-spacing: -.03em; }
.timeline-image img { border-radius: var(--r-sm); width: 100%; }
.timeline-item:hover .timeline-marker span { border-color: var(--accent); color: var(--accent); }

/* ---------- Prose ---------- */
.prose { color: var(--text-2); font-size: 1.05rem; line-height: 1.78; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 1.9em; font-size: clamp(1.4rem, 1.2rem + .7vw, 1.75rem); letter-spacing: -.03em; }
.prose h3 { margin-top: 1.6em; font-size: 1.25rem; }
.prose h4 { margin-top: 1.4em; font-size: 1.08rem; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--text); font-size: 1.12rem; font-style: italic; }
.prose img { border-radius: var(--r-sm); }
.prose figure { margin: 1.6em 0; }
.prose figcaption { margin-top: 8px; font-size: .88rem; color: var(--muted); text-align: center; }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--surface-2); font-size: .9em; }
.prose pre { padding: 18px 20px; border-radius: 12px; background: #0B0C0E; color: #E5E7EB; overflow-x: auto; font-size: .9rem; }
.prose pre code { background: none; padding: 0; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose-article { max-width: 760px; margin-inline: auto; }
.prose-sm { font-size: .95rem; }
.next-steps ol, .next-steps ul { padding-left: 1.2em; }

/* ---------- Forms ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact-info { display: grid; gap: 12px; }
.info-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.info-card .card-icon { width: 44px; height: 44px; border-radius: 12px; }
.info-card small { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.info-card strong { display: block; font-weight: 600; word-break: break-word; }
a.info-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.contact-social { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 8px 4px; color: var(--muted); font-size: .9rem; }
.info-cta { background: radial-gradient(120% 90% at 100% 0%, var(--accent-soft), transparent 60%), var(--surface); }
.info-cta h2 { font-size: 1.2rem; }
.info-cta p { margin: 8px 0 16px; color: var(--muted); font-size: .94rem; }
.map-frame { margin-top: clamp(32px, 4vw, 56px); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 21 / 8; min-height: 280px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.request-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.form-card { padding: clamp(22px, 3.4vw, 44px); }
.form-title { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); letter-spacing: -.03em; margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field-wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 8px; font-size: .9rem; font-weight: 600; color: var(--text); }
.req { color: var(--accent); }
.opt { color: var(--muted); font-weight: 400; font-size: .8rem; }
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea) {
  width: 100%; min-height: 50px; padding: 12px 16px;
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  appearance: none; -webkit-appearance: none;
}
textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
:where(input, textarea)::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
:where(input, select, textarea):hover { border-color: var(--line-strong); }
:where(input, select, textarea):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.has-error :where(input, select, textarea) { border-color: var(--danger); }
.field-error { margin-top: 6px; font-size: .85rem; color: var(--danger); }
.field-hint { margin-top: 6px; font-size: .84rem; color: var(--muted); }
.select-wrap { position: relative; }
.select-wrap select { padding-right: 44px; cursor: pointer; }
.select-wrap .icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: .92rem; color: var(--muted); font-weight: 400 !important; cursor: pointer; line-height: 1.55; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; border: 1px solid var(--line-strong); background: var(--bg); color: transparent; transition: background-color .2s, border-color .2s, color .2s; }
.check-box .icon { width: 14px; height: 14px; }
.check input:checked + .check-box { background: var(--accent); border-color: var(--accent); color: #fff; }
.check input:focus-visible + .check-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.check a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.has-error .check-box { border-color: var(--danger); }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.form-status { font-size: .92rem; color: var(--muted); }
.form-status.is-ok { color: var(--success); }
.form-status.is-error { color: var(--danger); }
.form-section { border: 0; padding: 0; margin: 0 0 32px; min-width: 0; }
.form-section legend { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 0; font: 600 1.15rem var(--font-head); letter-spacing: -.02em; }
.step-badge { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--text); color: var(--bg); font-size: .85rem; }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 20px; border: 1.5px dashed var(--line-strong); border-radius: 16px; background: var(--surface-2); text-align: center; cursor: pointer; font-weight: 400 !important; transition: border-color .2s, background-color .2s; }
.dropzone .icon { width: 26px; height: 26px; color: var(--accent); margin-bottom: 4px; }
.dropzone small { color: var(--muted); font-size: .82rem; }
.dropzone.is-over, .dropzone:hover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.dropzone input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-list { list-style: none; padding: 0; display: grid; gap: 8px; margin-top: 12px; }
.file-list:empty { display: none; }
.file-list li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; }
.file-list li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list small { color: var(--muted); }
.alert { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; padding: 14px 16px; border-radius: 12px; border: 1px solid; font-size: .95rem; }
.alert .icon { width: 20px; height: 20px; margin-top: 1px; }
.alert-success { background: color-mix(in srgb, var(--success) 10%, transparent); border-color: color-mix(in srgb, var(--success) 35%, transparent); color: var(--text); }
.alert-success .icon { color: var(--success); }
.alert-error, .alert-warning { background: color-mix(in srgb, var(--danger) 9%, transparent); border-color: color-mix(in srgb, var(--danger) 35%, transparent); color: var(--text); }
.alert-error .icon, .alert-warning .icon { color: var(--danger); }
.request-aside .next-steps { color: var(--muted); }

/* Newsletter + footer */
.site-footer { position: relative; overflow: hidden; isolation: isolate; padding-top: clamp(56px, 8vw, 96px); background: var(--bg); color: var(--text); border-top: 1px solid var(--line); }
.footer-glow { position: absolute; z-index: -1; left: 50%; top: -420px; width: 1100px; height: 700px; margin-left: -550px; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); pointer-events: none; }
.footer-newsletter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: center; margin-bottom: clamp(48px, 6vw, 80px); padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface) 30%, transparent)); }
.footer-newsletter-title { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); letter-spacing: -.03em; }
.footer-newsletter p { margin-top: 8px; color: var(--muted); }
.newsletter-field { display: flex; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: var(--btn-radius); background: var(--bg); transition: border-color .2s, box-shadow .2s; }
.newsletter-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.newsletter-field input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; box-shadow: none; border-radius: var(--btn-radius); padding: 0 14px; }
.newsletter-field .btn { --h: 44px; }
.newsletter-form .form-status { margin-top: 10px; min-height: 1.2em; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; padding-bottom: clamp(40px, 5vw, 64px); }
.footer-logo img { height: 46px; width: auto; }
.footer-tagline { margin-top: 20px; font: 600 1.05rem/1.4 var(--font-head); letter-spacing: -.02em; background: var(--hl); -webkit-background-clip: text; background-clip: text; color: transparent; max-width: 30ch; }
.footer-about { margin-top: 12px; color: var(--muted); font-size: .94rem; max-width: 42ch; }
.footer-brand .social-links { margin-top: 24px; }
.footer-col h3 { margin-bottom: 18px; font: 600 .76rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 11px; }
.footer-col a, .footer-addr { display: inline-flex; align-items: flex-start; gap: 10px; color: var(--text-2); font-size: .95rem; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-col .icon { width: 17px; height: 17px; margin-top: 3px; color: var(--muted); }
.footer-contact span { word-break: break-word; }
.footer-more { color: var(--accent) !important; font-weight: 500; }
.footer-more .icon { color: var(--accent) !important; margin-top: 4px; width: 15px; height: 15px; }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 24px 32px; color: var(--muted); font-size: .86rem; }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; padding: 0; }
.footer-legal a:hover { color: var(--text); }

/* ---------- Pagination ---------- */
.pagination { margin-top: 48px; }
.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; padding: 0; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: .9rem; font-weight: 500; }
.pagination a:hover { border-color: var(--line-strong); background: var(--surface); }
.pagination .current { background: var(--text); color: var(--bg); border-color: var(--text); }
.pagination .disabled { opacity: .4; }
.pagination .gap { border: 0; }

/* ---------- Empty / message / thanks ---------- */
.empty-state { display: grid; justify-items: center; gap: 14px; max-width: 560px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) 16px; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface)); color: var(--accent); box-shadow: var(--shadow-card); }
.empty-icon .icon { width: 30px; height: 30px; }
.empty-state h2 { font-size: 1.6rem; letter-spacing: -.03em; margin-top: 8px; }
.empty-state p { color: var(--muted); }
.empty-state .btn { margin-top: 10px; }
.section-thanks { position: relative; isolation: isolate; overflow: hidden; padding: clamp(56px, 8vw, 112px) 0; }
.thanks-card { text-align: center; padding: clamp(28px, 5vw, 64px); }
.thanks-card .page-title { margin-inline: auto; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
.thanks-card .page-intro { margin-inline: auto; }
.thanks-card .next-steps { text-align: left; max-width: 520px; margin: 32px auto 0; padding: 24px 28px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.thanks-card .next-steps h2 { font-size: 1.1rem; margin-bottom: 8px; }
.success-mark { width: 84px; height: 84px; margin: 0 auto 24px; }
.success-mark svg { width: 100%; height: 100%; fill: none; stroke: var(--success); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.success-mark circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .9s var(--ease) .1s forwards; opacity: .9; }
.success-mark path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s var(--ease) .8s forwards; }
.reference { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; padding: 8px 8px 8px 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.reference span { font-size: .82rem; color: var(--muted); }
.reference strong { font: 600 1.1rem var(--font-head); letter-spacing: .04em; }
.reference .icon-btn { width: 36px; height: 36px; }

/* Error pages */
.error-page { min-height: 100vh; }
.error-main { position: relative; isolation: isolate; min-height: 100vh; display: grid; place-items: center; padding: 48px var(--gutter); overflow: hidden; }
.error-card { position: relative; max-width: 620px; display: grid; justify-items: center; gap: 14px; text-align: center; }
.error-logo { margin-bottom: 24px; }
.error-logo .logo { height: 44px; }
.error-code { font: 700 clamp(4.5rem, 3rem + 8vw, 9rem)/1 var(--font-head); letter-spacing: -.06em; background: var(--hl); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; }
.error-card .empty-icon { margin-top: -8px; }
.error-title { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); letter-spacing: -.035em; margin-top: 8px; }
.error-text { color: var(--muted); font-size: 1.08rem; max-width: 48ch; }
.error-card .hero-actions { margin-top: 20px; }
.maintenance-return { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-weight: 500; }
.maintenance-return .icon { color: var(--accent); }
.maintenance-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; color: var(--muted); }
.maintenance-contact a { display: inline-flex; align-items: center; gap: 8px; }
.maintenance-contact a:hover { color: var(--text); }

/* ---------- Toasts & lightbox ---------- */
.toast-region { position: fixed; right: 16px; bottom: 16px; z-index: 250; display: grid; gap: 10px; width: min(380px, calc(100% - 32px)); pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lift); font-size: .94rem; pointer-events: auto; animation: toastIn .45s var(--ease); }
.toast .icon { width: 20px; height: 20px; margin-top: 1px; }
.toast-success .icon { color: var(--success); }
.toast-error .icon, .toast-warning .icon { color: var(--danger); }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.lightbox { position: fixed; inset: 0; z-index: 260; display: grid; place-items: center; padding: 56px 16px; background: rgb(5 6 8 / .92); animation: fadeIn .25s; }
.lightbox img { max-width: min(1400px, 100%); max-height: 100%; width: auto; border-radius: 10px; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .2); background: rgb(255 255 255 / .06); color: #fff; cursor: pointer; }
.lightbox button:hover { background: rgb(255 255 255 / .14); }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms), border-color .3s, box-shadow .4s var(--ease), background-color .3s; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .card.reveal.is-visible:hover, .js .project-card.reveal.is-visible:hover { transform: translateY(-4px); transition-delay: 0s; }

/* ---------- Keyframes ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes floatA { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes floatB { 0%, 100% { transform: translateZ(70px) translateY(0); } 50% { transform: translateZ(70px) translateY(-14px); } }
@keyframes floatC { 0%, 100% { transform: translateZ(120px) translateY(0); } 50% { transform: translateZ(120px) translateY(-8px); } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .main-nav a { padding: 10px 11px; font-size: .9rem; }
  .build-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .build-card { min-height: 260px; }
}
@media (max-width: 1080px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 720px; }
  .hero-visual { max-width: 620px; width: 100%; margin-inline: auto; }
  .device-stage { margin-inline: auto; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .highlights-layout, .faq-layout, .detail-layout, .contact-layout, .request-layout { grid-template-columns: minmax(0, 1fr); }
  .highlights-intro, .faq-intro, .sticky-card { position: static; }
  .highlights-mark { display: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .cta-panel { grid-template-columns: minmax(0, 1fr); }
  .cta-actions { justify-content: flex-start; }
  .rich-layout.has-image { grid-template-columns: minmax(0, 1fr); }
  .image-left .rich-media { order: 0; }
  .timeline-card.has-image { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .stats-grid, .stats-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(odd)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats-3 .stat:nth-child(3) { grid-column: 1 / -1; }
  .section-head-split { flex-direction: column; align-items: flex-start; }
  .grid-2, .footer-newsletter { grid-template-columns: minmax(0, 1fr); }
  .check-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adjacent-nav { grid-template-columns: minmax(0, 1fr); }
  .adjacent-nav a[rel="next"] { justify-content: space-between; }
  .filter-bar .chips, .subnav .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: 4px; }
  .filter-bar .chips::-webkit-scrollbar, .subnav .chips::-webkit-scrollbar { display: none; }
  .map-frame { aspect-ratio: 4 / 3; }
  .fc-1 { left: 3%; top: 6%; }
  .device-stage { padding: 36px 9% 48px 2%; }
  .fc-2 { display: none; }
  .float-card { padding: 8px 12px 8px 8px; font-size: .74rem; }
  .fc-icon { width: 28px; height: 28px; border-radius: 9px; }
}
@media (max-width: 640px) {
  .grid-3, .grid-4, .build-grid, .process-grid, .highlights-grid, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .build-card { min-height: 0; }
  .build-card .card-title { padding-top: 32px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .tech-item { flex-basis: calc(50% - 7px); min-width: 0; padding: 18px; }
  .tech-desc { display: none; }
  .cta-actions .btn { flex: 1 1 auto; }
  .reference { flex-wrap: wrap; justify-content: center; border-radius: 16px; padding: 12px 16px; }
  .timeline::before { left: 23.5px; }
  .timeline-item { grid-template-columns: 48px minmax(0, 1fr); }
  .timeline-marker span { width: 48px; height: 48px; font-size: .9rem; }
  .newsletter-field { flex-direction: column; border-radius: 16px; }
  .newsletter-field .btn { width: 100%; }
  .accordion-body { padding-right: 8px; }
  .project-meta dl { gap: 16px 28px; }
}
@media (max-width: 400px) {
  .hero-title { font-size: 2.3rem; }
  .btn-lg { --h: 52px; padding: 0 20px; }
  .fc-3 { display: none; }
  .header-inner { gap: 12px; }
  .header-actions { gap: 8px; }
  .icon-btn { width: 40px; height: 40px; }
}

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .device-stage { transform: rotateY(-11deg) rotateX(5deg) !important; }
}
@media (hover: none) {
  .card::before { display: none; }
}
@media print {
  .site-header, .site-footer, .announcement, .mobile-nav, .toast-region, .hero-bg, .page-hero-bg, .section-cta { display: none !important; }
  body { background: #fff; color: #000; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* Specificity fixes for special labels inside form fields */
.field .check { display: flex; margin-bottom: 0; font-weight: 400; color: var(--muted); }
.field .dropzone { display: flex; margin-bottom: 0; font-weight: 400; color: var(--text); }
