/* =========================================================
   Grazio Digital Marketing — main stylesheet
   Layout concept: cinematic black chapters with oversized condensed
   statements, alternating with crisp white working sections (after Delta Cafés).
   ========================================================= */
:root {
  /* Brand colours (only black, electric blue, white and their shades) */
  --black: #050505;
  --black-2: #0b0c10;          /* raised surface on black */
  --black-3: #121419;          /* device bezels */
  --white: #ffffff;
  --paper: #f4f6fa;            /* white shade for light sections */
  --blue: #1677ff;             /* brand electric blue */
  --blue-btn: #0f66e6;         /* blue shade for filled buttons (AA with white text) */
  --blue-ink: #0e62de;         /* blue shade for small text on white (AA) */
  --blue-soft: rgba(22, 119, 255, 0.14);
  --blue-glow: rgba(22, 119, 255, 0.45);
  --ink: #050505;
  --ink-2: #4a5263;            /* muted text on white */
  --line-light: #e1e6ee;
  --on-dark: #ffffff;
  --on-dark-2: rgba(255, 255, 255, 0.68);
  --on-dark-3: rgba(255, 255, 255, 0.5);
  --line-dark: rgba(255, 255, 255, 0.12);

  /* Type */
  --font-sans: "Sofia Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-cond: "Sofia Sans Extra Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;

  /* Layout */
  --maxw: 1360px;
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(88px, 11vw, 168px);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--black);
  color: var(--on-dark);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
address { font-style: normal; }
::selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.light :focus-visible { outline-color: var(--blue-ink); }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.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; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--white); color: var(--black); padding: 12px 18px; border-radius: 999px; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 16px; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type helpers ---------- */
.h-light {
  font-weight: 300;
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.statement {
  font-family: var(--font-cond);
  font-weight: 800;
  text-transform: uppercase;
  font-size: min(11.2vw, 164px);
  line-height: 0.86;
  letter-spacing: -0.004em;
  display: grid;
  gap: 0.04em;
}
.statement__row { display: flex; justify-content: center; align-items: flex-start; flex-wrap: wrap; gap: 0 0.14em; overflow: clip; padding-block: 0.02em; }
.statement__sm { font-size: 0.24em; line-height: 1; padding-top: 0.42em; letter-spacing: 0.04em; font-weight: 700; color: var(--on-dark-3); }
.statement__lg { display: block; }
.statement__lg--blue { color: var(--blue); }
.pill-label {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid rgba(22, 119, 255, 0.55);
  background: rgba(22, 119, 255, 0.08);
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #cfe1ff;
}
.pill-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 12px var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px; line-height: 1.2; letter-spacing: 0.005em;
  border: 1px solid transparent; cursor: pointer; text-align: center;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.btn--blue { background: var(--blue-btn); color: var(--white); box-shadow: 0 8px 30px -10px var(--blue-glow); }
.btn--blue:hover { background: #0d5fd8; box-shadow: 0 10px 40px -8px rgba(22, 119, 255, 0.75); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.28); color: var(--white); background: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.light .btn--ghost { border-color: rgba(5, 5, 5, 0.25); color: var(--ink); }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: #1b1d22; }
.btn--block { width: 100%; }
.btn-pair { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; }
.btn-pair .btn { pointer-events: none; }
.btn-circle {
  width: 52px; height: 52px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  transition: transform .4s var(--ease), background-color .25s var(--ease);
}
.btn-circle .icon { width: 20px; height: 20px; transition: transform .4s var(--ease); }
.btn-circle--blue { background: var(--blue-btn); color: var(--white); }
.btn-circle--dark { background: var(--black); color: var(--white); }
.btn-pair:hover .btn--blue, .btn-pair:hover .btn-circle--blue { background: #0d5fd8; }
.btn-pair:hover .btn--dark, .btn-pair:hover .btn-circle--dark { background: #1b1d22; }
.btn-pair:hover .btn-circle { transform: translateX(4px); }
.btn-pair:hover .btn-circle .icon { transform: rotate(-45deg); }
.btn-pair:focus-visible { outline-offset: 4px; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--white);
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 6px;
  transition: color .2s, text-underline-offset .2s;
}
.text-link:hover { color: #8fbaff; text-underline-offset: 8px; }
.light .text-link { color: var(--ink); text-decoration-color: var(--blue-ink); }
.light .text-link:hover { color: var(--blue-ink); }

/* ---------- Navigation (floating pills, after Delta) ---------- */
.site-nav { position: fixed; inset: 0 0 auto 0; z-index: 50; padding-top: calc(env(safe-area-inset-top, 0px) + 14px); pointer-events: none; }
.site-nav__bar {
  max-width: calc(var(--maxw) - 2 * var(--gutter) + 48px); margin-inline: auto; padding-inline: clamp(12px, 2vw, 24px);
  height: 62px; display: flex; align-items: center; gap: 16px;
}
.site-nav__bar > * { pointer-events: auto; }
.site-nav__brand { display: flex; align-items: center; height: 54px; padding: 6px 14px 6px 6px; border-radius: 999px; transition: background-color .3s, backdrop-filter .3s; }
.site-nav__brand img { width: 158px; height: auto; }
.site-nav__links {
  margin-inline: auto; display: flex; gap: 2px; padding: 6px; border-radius: 999px;
  background: rgba(10, 11, 14, 0.62); border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
}
.site-nav__links a { padding: 10px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, 0.78); transition: color .2s, background-color .2s; white-space: nowrap; }
.site-nav__links a:hover { color: var(--white); background: rgba(255, 255, 255, 0.07); }
.site-nav__links a.is-active { color: var(--white); background: rgba(22, 119, 255, 0.22); }
.site-nav__cta { min-height: 50px; padding-inline: 22px; font-size: 15px; white-space: nowrap; }
.site-nav__menu-btn {
  display: none; margin-left: auto; align-items: center; gap: 12px; height: 50px; padding: 0 8px 0 20px; border-radius: 999px;
  background: rgba(10, 11, 14, 0.72); border: 1px solid rgba(255, 255, 255, 0.14); cursor: pointer; font-weight: 600; font-size: 15px;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.burger { width: 36px; height: 36px; border-radius: 50%; background: var(--blue-btn); display: grid; place-content: center; gap: 5px; }
.burger i { display: block; width: 14px; height: 1.6px; background: var(--white); border-radius: 2px; }
.site-nav.is-scrolled .site-nav__brand { background: rgba(10, 11, 14, 0.62); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
@media (max-width: 1120px) {
  .site-nav__links, .site-nav__cta { display: none; }
  .site-nav__menu-btn { display: inline-flex; }
}
@media (max-width: 480px) { .site-nav__brand img { width: 136px; } }

/* Mobile menu (glass card, after Delta's menu) */
.menu { position: fixed; inset: 0; z-index: 60; background: rgba(5, 5, 5, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: calc(env(safe-area-inset-top, 0px) + 12px) 12px calc(env(safe-area-inset-bottom, 0px) + 12px); overflow-y: auto; }
.menu__card {
  max-width: 520px; margin-left: auto; border-radius: 26px; padding: 18px 20px 22px;
  background: rgba(14, 15, 19, 0.92); border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); display: grid; gap: 18px;
  animation: menu-in .35s var(--ease);
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.menu__top { display: flex; align-items: center; justify-content: space-between; }
.menu__top img { width: 140px; height: auto; }
.menu__close { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.16); background: none; display: grid; place-items: center; cursor: pointer; }
.menu__links { display: grid; }
.menu__links a { font-family: var(--font-cond); font-weight: 800; text-transform: uppercase; font-size: 34px; line-height: 1; letter-spacing: 0.01em; padding: 14px 4px; border-bottom: 1px solid var(--line-dark); display: flex; justify-content: space-between; align-items: center; }
.menu__links a::after { content: ""; width: 10px; height: 10px; border-top: 2px solid var(--blue); border-right: 2px solid var(--blue); transform: rotate(45deg); }
.menu__contact { display: grid; gap: 6px; font-size: 15px; color: var(--on-dark-2); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: clamp(720px, 96svh, 1000px); display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; overflow: hidden; background: radial-gradient(60% 70% at 72% 42%, rgba(22, 119, 255, 0.2), transparent 70%), var(--black); }
.hero__stage { position: absolute; inset: 0; z-index: -1; }
.hero__poster, .hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__poster { object-fit: cover; object-position: 70% 50%; transition: opacity .8s var(--ease); }
.hero__canvas { opacity: 0; transition: opacity 1s var(--ease); }
.hero.is-3d .hero__canvas { opacity: 1; }
.hero.is-3d .hero__poster { opacity: 0; }
.hero__stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.72) 30%, rgba(5, 5, 5, 0.15) 52%, rgba(5, 5, 5, 0) 64%), linear-gradient(0deg, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0) 24%); }
.hero__inner { position: relative; padding-top: calc(var(--nav-h) + 56px); padding-bottom: 40px; }
.hero__copy { max-width: 610px; }
.hero__welcome { font-size: 15px; font-weight: 500; color: var(--on-dark-2); display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.hero__welcome::before { content: ""; width: 28px; height: 1px; background: var(--blue); }
.hero__title { font-weight: 300; font-size: clamp(40px, 5.3vw, 80px); line-height: 0.97; letter-spacing: -0.045em; text-wrap: balance; }
.hero__title-2 { display: block; color: var(--blue); }
.hero__sub { margin-top: 26px; font-size: clamp(19px, 1.6vw, 23px); font-weight: 600; letter-spacing: -0.01em; }
.hero__desc { margin-top: 12px; max-width: 54ch; color: var(--on-dark-2); font-size: 17px; }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }
.hero__trust { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; font-weight: 500; color: var(--on-dark-3); letter-spacing: 0.01em; }
.hero__trust span { display: inline-flex; align-items: center; gap: 18px; }
.hero__trust span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); }
.hero__reel { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding-bottom: 26px; }
.hero__reel-label { font-size: 13px; color: var(--on-dark-3); max-width: 9em; line-height: 1.35; }
.hero__reel-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.reel-item { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 0 0; background: none; border: 0; cursor: pointer; text-align: left; color: var(--on-dark-2); transition: color .25s; }
.reel-item:hover, .reel-item.is-active { color: var(--white); }
.reel-item__thumb { width: 74px; height: 46px; border-radius: 9px; overflow: hidden; flex: none; border: 1px solid rgba(255, 255, 255, 0.14); background: var(--black-2); }
.reel-item__thumb img { width: 100%; height: auto; }
.reel-item__text { display: grid; font-size: 15px; font-weight: 600; line-height: 1.3; }
.reel-item__num { font-size: 12px; font-weight: 600; color: var(--blue); letter-spacing: 0.06em; }
.reel-item__bar { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(255, 255, 255, 0.14); border-radius: 2px; overflow: hidden; }
.reel-item__bar i { position: absolute; inset: 0; background: var(--blue); transform-origin: left; transform: scaleX(0); }
.reel-item.is-active .reel-item__bar i { transform: scaleX(var(--p, 1)); }

/* ---------- Signature (Web Design & Development) ---------- */
.signature { position: relative; padding-block: var(--section); background: radial-gradient(50% 40% at 50% 12%, rgba(22, 119, 255, 0.16), transparent 70%), var(--black); overflow: clip; }
.signature__intro { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.signature__intro .statement { margin-top: 34px; position: relative; z-index: 2; }
.signature__lead { position: relative; z-index: 2; margin-top: 52px; max-width: 62ch; font-size: clamp(18px, 1.55vw, 22px); line-height: 1.55; color: var(--on-dark-2); text-wrap: pretty; }
.signature__lead strong { color: var(--white); font-weight: 600; background: linear-gradient(transparent 62%, rgba(22, 119, 255, 0.55) 62%, rgba(22, 119, 255, 0.55) 92%, transparent 92%); }
.signature__actions { position: relative; z-index: 2; margin-top: 38px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 28px; }

/* Floating UI fragments around the statement (after Delta's floating photos) */
.floaters { position: absolute; inset: 0 var(--gutter); pointer-events: none; z-index: 1; }
.floater {
  position: absolute; border-radius: 16px; background: rgba(16, 18, 24, 0.82); border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--white); text-align: left; will-change: transform; transform: translate3d(0, var(--py, 0px), 0) rotate(var(--rot, 0deg));
}
.floater__label { font-size: 12px; line-height: 1.35; color: var(--on-dark-3); }
.floater--palette { left: 1%; top: 3%; width: 190px; padding: 14px; --rot: -5deg; }
.swatches { display: grid; gap: 6px; margin-top: 10px; }
.swatches span { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; }
.swatches span::before { content: ""; width: 26px; height: 26px; border-radius: 8px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.floater--type { right: 3%; top: 5%; padding: 14px 18px; display: flex; align-items: center; gap: 14px; --rot: 4deg; }
.floater__aa { font-size: 46px; font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
.floater--phone { right: 8%; top: 17%; width: 96px; aspect-ratio: 9 / 19; padding: 5px; border-radius: 20px; background: var(--black-3); overflow: hidden; --rot: 7deg; }
.floater--phone img { width: 100%; border-radius: 17px; }
.floater--wire { left: 7%; top: 27%; width: 170px; height: 120px; padding: 10px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 10px 1fr 26px; gap: 6px; --rot: 3deg; background: rgba(8, 12, 22, 0.85); border-color: rgba(22, 119, 255, 0.45); }
.floater--wire i { border: 1.5px solid rgba(22, 119, 255, 0.85); border-radius: 4px; }
.floater--wire .w-nav { grid-column: 1 / -1; border-radius: 6px; }
.floater--wire .w-hero { grid-column: 1 / 3; }
.floater--wire .w-img { background: repeating-linear-gradient(45deg, rgba(22, 119, 255, 0.25) 0 2px, transparent 2px 7px); }
.floater--cta { left: 6%; bottom: 3%; padding: 10px; display: flex; align-items: center; --rot: -3deg; background: rgba(255, 255, 255, 0.96); border-color: transparent; }
.mini-btn { background: var(--blue-btn); color: var(--white); font-size: 13px; font-weight: 600; padding: 9px 16px; border-radius: 999px; }
.floater__cursor { width: 26px; height: 26px; margin: 22px 0 0 -10px; fill: var(--white); stroke: var(--black); stroke-width: 1.4; }
.floater--chip { right: 8%; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 9px; border-radius: 999px; font-size: 14px; font-weight: 600; --rot: -2deg; }
.floater--chip2 { display: none; }
.chip-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-btn); }
.chip-ic .icon { width: 16px; height: 16px; stroke-width: 2.2; }

/* Interactive showcase */
.showcase { margin-top: clamp(88px, 10vw, 150px); }
.showcase__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.showcase__note { font-size: 14px; color: var(--on-dark-3); }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.tabs__btn { min-height: 42px; padding: 0 18px; border-radius: 999px; border: 0; background: none; color: var(--on-dark-2); font-weight: 600; font-size: 15px; cursor: pointer; transition: background-color .25s, color .25s; }
.tabs__btn:hover { color: var(--white); }
.tabs__btn.is-active { background: var(--white); color: var(--black); }
.showcase__stage {
  position: relative; margin-top: 24px; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 32px; overflow: hidden; perspective: 1800px;
  background: radial-gradient(60% 70% at 52% 38%, rgba(22, 119, 255, 0.34), rgba(22, 119, 255, 0) 70%), linear-gradient(180deg, #0a0c11, #050505);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.showcase__stage::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); }
.showcase__tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); }
.device { position: absolute; overflow: hidden; background: var(--black-3); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1); transition: opacity .35s var(--ease), transform .6s var(--ease); }
.device__screen { position: relative; overflow: hidden; background: var(--white); }
.device__screen img { width: 100%; height: auto; transition: transform 7s cubic-bezier(.45, .05, .35, 1); }
.device__bar { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #15171c; }
.device__bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3f49; }
.device__bar span { margin-inline: auto; transform: translateX(-24px); font-size: 11px; color: var(--on-dark-3); background: #0b0c10; border-radius: 6px; padding: 3px 14px; }
.device--desktop { left: 17%; top: 8%; width: 66%; aspect-ratio: 16 / 10.4; border-radius: 14px; transform: translateZ(40px); }
.device--desktop .device__screen { height: calc(100% - 30px); }
.device--tablet { left: 4%; top: 30%; width: 24%; aspect-ratio: 3 / 4; border-radius: 20px; padding: 9px; transform: translateZ(10px) rotate(-4deg); }
.device--tablet .device__screen, .device--phone .device__screen { height: 100%; border-radius: 12px; }
.device--phone { right: 5%; top: 33%; width: 14.5%; aspect-ratio: 9 / 19; border-radius: 26px; padding: 7px; transform: translateZ(80px) rotate(5deg); }
.device--phone .device__screen { border-radius: 19px; }
.showcase.is-switching .device { opacity: 0.25; }

/* Capabilities */
.capabilities { margin-top: clamp(88px, 10vw, 150px); }
.capabilities__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; margin-bottom: 36px; }
.capabilities__head .h-light { max-width: 20ch; }
.cap-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 80px); }
.cap-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--line-dark); align-items: start; transition: border-color .3s; }
.cap-list li .icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: rgba(22, 119, 255, 0.1); color: var(--blue); stroke-width: 1.5; transition: background-color .3s, color .3s; }
.cap-list li:hover { border-top-color: rgba(22, 119, 255, 0.6); }
.cap-list li:hover .icon { background: var(--blue-btn); color: var(--white); }
.cap-list h4 { font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; }
.cap-list p { margin-top: 4px; font-size: 15.5px; color: var(--on-dark-2); line-height: 1.55; }
.mini-process { margin-top: clamp(56px, 6vw, 88px); }
.mini-process ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line-dark); border-radius: 999px; padding: 8px; background: rgba(255, 255, 255, 0.02); }
.mini-process li { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 12px; border-radius: 999px; font-family: var(--font-cond); font-weight: 800; text-transform: uppercase; font-size: clamp(22px, 2.2vw, 32px); letter-spacing: 0.01em; line-height: 1; }
.mini-process li span { font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: var(--blue); letter-spacing: 0.04em; }
.mini-process li:not(:last-child)::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; border-top: 1.5px solid var(--on-dark-3); border-right: 1.5px solid var(--on-dark-3); transform: translateY(-50%) rotate(45deg); }
.mini-process li:last-child { background: var(--blue-btn); }
.mini-process li:last-child span { color: var(--white); }

/* ---------- Light sections ---------- */
.light { background: var(--white); color: var(--ink); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head .h-light { max-width: 16ch; }
.sec-head p { max-width: 48ch; font-size: 18px; color: var(--ink-2); justify-self: end; }
.light .sec-head p { color: var(--ink-2); }

/* About */
.about { padding-block: var(--section); }
.about__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(40px, 6vw, 104px); align-items: center; }
.about__copy .h-light { max-width: 13ch; }
.about__lead { margin-top: 30px; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.55; color: var(--ink); }
.about__copy > p:not(.about__lead) { margin-top: 18px; color: var(--ink-2); max-width: 60ch; }
.about__facts { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--line-light); padding-top: 24px; }
.about__facts dt { font-size: 13px; color: var(--ink-2); }
.about__facts dd { margin-top: 6px; font-size: 16px; font-weight: 600; line-height: 1.35; }
.about__art { position: relative; }
.about__art img { width: 100%; height: auto; border-radius: var(--radius-lg); background: var(--black); box-shadow: 0 40px 80px -30px rgba(5, 5, 5, 0.45); }
.about__art figcaption { margin-top: 16px; font-size: 14px; color: var(--ink-2); max-width: 44ch; }

/* Services */
.services { padding-block: 0 var(--section); }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.svc {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 30px; border-radius: 24px;
  background: var(--paper); border: 1px solid transparent; transition: transform .45s var(--ease), border-color .3s, background-color .3s, box-shadow .45s var(--ease);
}
.svc:hover { transform: translateY(-4px); background: var(--white); border-color: rgba(14, 98, 222, 0.35); box-shadow: 0 30px 60px -32px rgba(14, 98, 222, 0.45); }
.svc__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--white); color: var(--blue-ink); box-shadow: inset 0 0 0 1px var(--line-light); margin-bottom: 14px; }
.svc__icon .icon { width: 28px; height: 28px; stroke-width: 1.5; }
.svc h3 { font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.svc__tag { font-size: 17px; font-weight: 500; line-height: 1.4; }
.svc p:not(.svc__tag) { font-size: 15.5px; color: var(--ink-2); line-height: 1.6; }
.svc__link { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue-ink); }
.svc__link .icon { transition: transform .3s var(--ease); }
.svc__link:hover .icon { transform: translateX(4px); }
.svc--feature {
  grid-column: span 2; grid-row: span 2; padding: clamp(28px, 3.4vw, 48px); color: var(--white); overflow: hidden;
  background: radial-gradient(70% 80% at 85% 85%, rgba(22, 119, 255, 0.45), transparent 70%), var(--black);
}
.svc--feature:hover { background: radial-gradient(70% 80% at 85% 85%, rgba(22, 119, 255, 0.55), transparent 70%), var(--black); border-color: rgba(22, 119, 255, 0.6); }
.svc__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.svc--feature .svc__icon { background: var(--blue-btn); color: var(--white); box-shadow: none; margin-bottom: 0; }
.svc__flag { font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.2); color: var(--on-dark-2); }
.svc--feature h3 { margin-top: 18px; font-size: clamp(30px, 3vw, 44px); font-weight: 300; letter-spacing: -0.035em; line-height: 1.04; }
.svc--feature .svc__tag { font-size: 19px; color: var(--white); }
.svc--feature p:not(.svc__tag) { color: var(--on-dark-2); max-width: 54ch; font-size: 16px; }
.svc__visual { position: relative; flex: 1; min-height: 210px; margin: 18px 0 22px; }
.mini-browser { position: absolute; left: 0; top: 0; width: 76%; height: 100%; border-radius: 14px 14px 0 0; overflow: hidden; background: var(--white); border-top: 22px solid #15171c; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
.mini-browser img { width: 100%; transition: transform 6s cubic-bezier(.45, .05, .35, 1); }
.mini-phone { position: absolute; right: 6%; bottom: -8%; width: 22%; aspect-ratio: 9 / 18; border-radius: 22px; border: 6px solid var(--black-3); overflow: hidden; background: var(--white); box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.8); }
.mini-phone img { width: 100%; transition: transform 6s cubic-bezier(.45, .05, .35, 1); }
.svc--feature:hover .mini-browser img { transform: translateY(-38%); }
.svc--feature:hover .mini-phone img { transform: translateY(-30%); }
.svc--feature .btn-pair { align-self: flex-start; }

/* ---------- Why choose us ---------- */
.why { position: relative; padding-block: var(--section); overflow: clip; text-align: center; }
.why__glow { position: absolute; left: 50%; top: 46%; width: min(1100px, 120vw); aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(22, 119, 255, 0.22), rgba(22, 119, 255, 0) 62%); pointer-events: none; }
.why .wrap { position: relative; }
.why__lead { margin: 34px auto 0; max-width: 56ch; color: var(--on-dark-2); font-size: clamp(18px, 1.45vw, 21px); }
.why-grid { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; }
.why-item h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin-top: 28px; }
.why-item p { margin: 10px auto 0; max-width: 32ch; color: var(--on-dark-2); font-size: 15.5px; line-height: 1.6; }
.orbit { position: relative; width: 136px; height: 136px; margin-inline: auto; display: grid; place-items: center; color: var(--blue); }
.orbit .icon { width: 40px; height: 40px; stroke-width: 1.4; position: relative; }
.orbit__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit__ring circle { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 1; }
.orbit__ring .orbit__arc { stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 46 318; transform-origin: 60px 60px; filter: drop-shadow(0 0 6px rgba(22, 119, 255, 0.9)); }
.orbit::before { content: ""; position: absolute; inset: 22px; border-radius: 50%; background: radial-gradient(circle, rgba(22, 119, 255, 0.18), rgba(22, 119, 255, 0) 70%); }
@media (prefers-reduced-motion: no-preference) {
  .orbit__arc { animation: orbit 9s linear infinite; }
  .why-item:nth-child(2) .orbit__arc { animation-duration: 11s; animation-delay: -3s; }
  .why-item:nth-child(3) .orbit__arc { animation-duration: 10s; animation-delay: -6s; }
  .why-item:nth-child(4) .orbit__arc { animation-duration: 12s; animation-delay: -2s; }
}
@keyframes orbit { to { transform: rotate(360deg); } }

/* ---------- Process ---------- */
.process { padding-block: var(--section); }
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.timeline__track { position: absolute; left: 28px; right: 28px; top: 27px; height: 2px; background: var(--line-light); border-radius: 2px; overflow: hidden; }
.timeline__track i { position: absolute; inset: 0; background: var(--blue); transform-origin: left; transform: scaleX(var(--p, 1)); }
.timeline__step { position: relative; z-index: 1; padding-right: 12px; }
.timeline__dot { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line-light); color: var(--ink); transition: background-color .5s var(--ease), color .5s, border-color .5s, box-shadow .5s; }
.timeline__dot .icon { width: 24px; height: 24px; }
.timeline__step.is-on .timeline__dot { background: var(--blue-btn); border-color: var(--blue-btn); color: var(--white); box-shadow: 0 0 0 8px rgba(22, 119, 255, 0.12); }
.timeline__num { display: block; margin-top: 34px; font-family: var(--font-cond); font-weight: 800; font-size: clamp(56px, 5.4vw, 84px); line-height: 0.8; color: var(--line-light); transition: color .6s var(--ease); }
.timeline__step.is-on .timeline__num { color: var(--ink); }
.timeline__step h3 { margin-top: 18px; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.timeline__step p { margin-top: 10px; color: var(--ink-2); font-size: 16px; max-width: 28ch; }
.process__cta { margin-top: clamp(48px, 5vw, 72px); }

/* ---------- Portfolio ---------- */
.work { padding-block: var(--section); background: radial-gradient(50% 35% at 20% 8%, rgba(22, 119, 255, 0.14), transparent 70%), var(--black); }
.work__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.statement--work .statement__row { justify-content: flex-start; }
.statement--work { font-size: min(10vw, 150px); }
.work__head p { color: var(--on-dark-2); max-width: 52ch; font-size: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: clamp(36px, 4vw, 56px) 0 28px; }
.filters__btn { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); background: none; color: var(--on-dark-2); font-weight: 600; font-size: 15px; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.filters__btn:hover { border-color: var(--white); color: var(--white); }
.filters__btn.is-active { background: var(--white); border-color: var(--white); color: var(--black); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 28px; }
.wcard--wide { grid-column: 1 / -1; }
.wcard__btn { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; border-radius: var(--radius-lg); }
.wcard__media {
  position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 10px;
  background: radial-gradient(60% 70% at 60% 30%, rgba(22, 119, 255, 0.4), transparent 70%), linear-gradient(160deg, #0d1018, #050505);
  border: 1px solid rgba(255, 255, 255, 0.08); transition: border-color .4s;
}
.wcard--wide .wcard__media { aspect-ratio: 16 / 7.2; }
.browser { position: absolute; left: 7%; top: 9%; width: 72%; bottom: -12%; border-radius: 12px; overflow: hidden; background: var(--white); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9); transition: transform .7s var(--ease); }
.wcard--wide .browser { left: 6%; width: 64%; top: 12%; }
.browser__bar { height: 24px; display: flex; align-items: center; gap: 5px; padding: 0 10px; background: #15171c; }
.browser__bar i { width: 7px; height: 7px; border-radius: 50%; background: #3a3f49; }
.browser__screen { display: block; height: calc(100% - 24px); overflow: hidden; }
.browser__screen img { width: 100%; height: auto; transition: transform 6s cubic-bezier(.45, .05, .35, 1); }
.phone { position: absolute; right: 6%; top: 22%; width: 19%; aspect-ratio: 9 / 19; border-radius: 22px; border: 5px solid var(--black-3); overflow: hidden; background: var(--white); box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.9); transition: transform .7s var(--ease); }
.wcard--wide .phone { right: 9%; width: 14%; top: 16%; }
.phone__screen { display: block; height: 100%; overflow: hidden; }
.phone__screen img { width: 100%; transition: transform 6s cubic-bezier(.45, .05, .35, 1); }
.wcard__btn:hover .wcard__media, .wcard__btn:focus-visible .wcard__media { border-color: rgba(22, 119, 255, 0.7); }
.wcard__btn:hover .browser { transform: translateY(-6px); }
.wcard__btn:hover .phone { transform: translateY(-14px) rotate(2deg); }
.wcard__btn:hover .browser__screen img { transform: translateY(-42%); }
.wcard__btn:hover .phone__screen img { transform: translateY(-36%); }
.wcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--on-dark-3); }
.tag { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; border: 1px solid rgba(22, 119, 255, 0.6); color: #9cc3ff; font-size: 12px; font-weight: 600; letter-spacing: 0.03em; }
.wcard__title { font-size: clamp(24px, 2.2vw, 32px); font-weight: 400; letter-spacing: -0.025em; line-height: 1.1; color: var(--white); }
.wcard__desc { color: var(--on-dark-2); font-size: 16px; }
.wcard__more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--white); font-size: 15px; text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.work__empty { margin-top: 20px; color: var(--on-dark-2); }
.work__cta { margin-top: clamp(48px, 5vw, 72px); display: flex; justify-content: center; }

/* ---------- Contact ---------- */
.contact { position: relative; padding-block: var(--section); overflow: clip; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.contact__glow { position: absolute; left: 50%; top: 0; width: min(1400px, 140vw); height: 70%; transform: translateX(-50%); background: radial-gradient(50% 60% at 50% 0%, rgba(22, 119, 255, 0.32), rgba(22, 119, 255, 0) 70%); pointer-events: none; }
.contact .wrap { position: relative; }
.statement--contact { text-align: center; font-size: min(9.6vw, 150px); }
.contact__lead { margin: 34px auto 0; max-width: 58ch; text-align: center; color: var(--on-dark-2); font-size: clamp(18px, 1.45vw, 21px); }
.contact__actions { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.contact__grid { margin-top: clamp(64px, 7vw, 104px); display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.contact__h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.015em; }
.details { margin-top: 18px; }
.details li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line-dark); }
.details__ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(22, 119, 255, 0.12); color: var(--blue); }
.details__ic .icon { width: 22px; height: 22px; }
.details__label { display: block; font-size: 13px; color: var(--on-dark-3); margin-bottom: 4px; }
.details a, .details address { font-size: 18px; line-height: 1.45; overflow-wrap: anywhere; }
.details a:not(.details__map):hover { color: #8fbaff; }
.details__map { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 15px !important; font-weight: 600; color: var(--white); text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 5px; }
.copy-btn { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); background: none; font-size: 13px; font-weight: 600; color: var(--on-dark-2); cursor: pointer; transition: border-color .2s, color .2s; }
.copy-btn:hover { border-color: var(--white); color: var(--white); }
.form-card { border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 40px); background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)); border: 1px solid rgba(255, 255, 255, 0.1); }
.form { display: grid; gap: 18px; }
.form__intro { margin-top: -8px; font-size: 14px; color: var(--on-dark-3); }
.field { display: grid; gap: 8px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field label { font-size: 14px; font-weight: 600; }
.field__opt { font-weight: 400; color: var(--on-dark-3); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 5, 5, 0.7); color: var(--white); font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, 0.34); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.25); }
.field [aria-invalid="true"] { border-color: var(--white); border-style: dashed; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 1.6px solid var(--white); border-bottom: 1.6px solid var(--white); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select option { background: var(--black-2); color: var(--white); }
.field__hint { font-size: 13px; color: var(--on-dark-3); }
.field__err, .form__status { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; font-weight: 500; color: var(--white); }
.field__err::before, .form__status::before { content: "!"; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--blue-btn); color: var(--white); font-size: 12px; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { margin-top: 6px; min-height: 56px; font-size: 17px; }
.form__submit[disabled] { opacity: .65; cursor: progress; }
.form-done { display: grid; justify-items: start; gap: 14px; }
.form-done:focus { outline: none; }
.form-done__ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-btn); }
.form-done__ic .icon { width: 28px; height: 28px; stroke-width: 2.2; }
.form-done p { color: var(--on-dark-2); }
.form-done__mail { display: grid; gap: 14px; width: 100%; }
.form-done__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-done__small { font-size: 14px; }
.form-done__small strong { color: var(--white); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { position: relative; padding-top: clamp(40px, 6vw, 72px); overflow: clip; }
.footer__card {
  position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr)); gap: 36px 40px;
  padding: clamp(28px, 4vw, 52px); border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)); border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.footer__brand img { width: 150px; height: auto; }
.footer__brand p { margin-top: 20px; color: var(--on-dark-2); max-width: 30ch; font-size: 16px; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 15.5px; min-width: 0; }
.footer__col h3 { font-size: 14px; font-weight: 600; color: var(--on-dark-3); margin-bottom: 6px; }
.footer__col a { color: rgba(255, 255, 255, 0.86); transition: color .2s; overflow-wrap: anywhere; }
.footer__col a:hover { color: #8fbaff; }
.footer__addr { color: var(--on-dark-3); font-size: 14px; }
.footer__bottom { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 28px 0 calc(env(safe-area-inset-bottom, 0px) + 28px); font-size: 14px; color: var(--on-dark-3); }
.footer__top { display: inline-flex; align-items: center; gap: 6px; color: var(--white); font-weight: 600; }
.footer__word { position: absolute; left: 50%; bottom: -0.2em; transform: translateX(-50%); font-family: var(--font-cond); font-weight: 900; text-transform: uppercase; font-size: 34vw; line-height: 0.8; letter-spacing: -0.01em; color: transparent; -webkit-text-stroke: 1px rgba(22, 119, 255, 0.22); white-space: nowrap; pointer-events: none; user-select: none; }

/* ---------- Project dialog ---------- */
.pd { width: min(1180px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 28px; background: #0a0b0e; color: var(--white); overflow: hidden; }
.pd::backdrop { background: rgba(0, 0, 0, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pd[open] { animation: pd-in .4s var(--ease); }
@keyframes pd-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.pd__inner { max-height: calc(100dvh - 26px); overflow-y: auto; overscroll-behavior: contain; }
.pd__head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 22px clamp(18px, 3vw, 32px); background: rgba(10, 11, 14, 0.94); border-bottom: 1px solid var(--line-dark); }
.pd__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--on-dark-3); }
.pd__title { margin-top: 8px; font-size: clamp(28px, 3vw, 40px); font-weight: 300; letter-spacing: -0.03em; line-height: 1.05; }
.pd__close { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18); background: none; display: grid; place-items: center; cursor: pointer; }
.pd__close:hover { border-color: var(--white); }
.pd__body { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); padding: clamp(18px, 3vw, 32px); }
.pd__screens { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.pd__desktop { border-radius: 14px; overflow: hidden; background: var(--white); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); }
.pd__scroll { height: min(60vh, 560px); overflow-y: auto; overscroll-behavior: contain; }
.pd__scroll img { width: 100%; height: auto; }
.pd__phone { width: 190px; border-radius: 28px; border: 6px solid var(--black-3); overflow: hidden; background: var(--white); }
.pd__phone .pd__scroll { height: min(52vh, 400px); scrollbar-width: none; }
.pd__info { display: grid; gap: 22px; align-content: start; }
.pd__desc { font-size: 18px; line-height: 1.55; }
.pd__facts { display: grid; gap: 16px; }
.pd__facts dt { font-size: 13px; color: var(--on-dark-3); }
.pd__facts dd { margin-top: 4px; font-size: 16px; }
.pd__facts ul { display: grid; gap: 6px; }
.pd__facts li { display: flex; gap: 10px; align-items: baseline; }
.pd__facts li::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--blue); transform: translateY(-2px); }
.pd__note { font-size: 13px; color: var(--on-dark-3); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); transform: translateX(-50%); z-index: 80; background: var(--white); color: var(--black); padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }

/* ---------- Scroll reveal (only applied when JS runs and motion is allowed) ---------- */
.reveal-ready .statement__row[data-reveal] > * { transition: transform 1s var(--ease); }
.reveal-ready .statement__row[data-reveal]:not(.is-in) > * { transform: translateY(108%); }
.reveal-ready .statement__row[data-reveal]:nth-child(2) > * { transition-delay: .08s; }
.reveal-ready .statement__row[data-reveal]:nth-child(3) > * { transition-delay: .16s; }
.reveal-ready [data-fade] { transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal-ready [data-fade]:not(.is-in) { opacity: 0; transform: translateY(28px); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .floater--type, .floater--wire, .floater--cta { display: none; }
}
@media (max-width: 1099px) {
  .hero { min-height: 0; justify-content: flex-start; background: var(--black); }
  .hero__stage { position: relative; inset: auto; height: min(58vw, 560px, 58svh); margin-top: calc(env(safe-area-inset-top, 0px) + 80px); }
  .hero__stage::after { background: linear-gradient(0deg, var(--black) 0%, rgba(5, 5, 5, 0) 26%); }
  .hero__inner { padding-top: 0; margin-top: -24px; padding-bottom: 30px; }
  .hero__copy { max-width: 720px; }
}
@media (max-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc--feature { grid-row: auto; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about__grid { grid-template-columns: 1fr; }
  .about__art { max-width: 620px; }
  .footer__card { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .pd__body { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .floaters { display: none; }
  .sec-head, .work__head { grid-template-columns: 1fr; }
  .sec-head p { justify-self: start; }
  .contact__grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline__track { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; }
  .timeline__track i { transform-origin: top; transform: scaleY(var(--p, 1)); }
  .timeline__step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 22px; padding: 0 0 40px; }
  .timeline__dot { grid-row: 1 / span 3; }
  .timeline__num { margin-top: 0; font-size: 44px; }
  .timeline__step h3 { margin-top: 8px; }
  .cap-list { grid-template-columns: 1fr; }
  .mini-process ol { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 26px; gap: 6px; }
  .mini-process li { border-radius: 18px; }
  .mini-process li:nth-child(2)::after { display: none; }
}
@media (max-width: 759px) {
  :root { --nav-h: 70px; }
  body { font-size: 16px; }
  .hero__stage { height: min(92vw, 470px); }
  .hero__poster { object-position: 50% 50%; }
  .hero__welcome { margin-bottom: 16px; font-size: 14px; }
  .hero__title { font-size: clamp(38px, 10.6vw, 52px); }
  .hero__desc { font-size: 16px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn-pair { display: flex; }
  .hero__actions .btn-pair .btn { flex: 1; }
  .hero__reel { grid-template-columns: 1fr; gap: 12px; padding-bottom: 34px; }
  .hero__reel-items { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .hero__reel-items::-webkit-scrollbar { display: none; }
  .reel-item { flex: 0 0 72%; scroll-snap-align: start; }
  .statement, .statement--work, .statement--contact { font-size: 13.4vw; }
  .statement__sm { font-size: 0.3em; }
  .showcase__head { flex-direction: column; align-items: stretch; }
  .tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs__btn { flex: 1 0 auto; padding: 0 14px; font-size: 14px; }
  .showcase__stage { aspect-ratio: 4 / 4.2; border-radius: 22px; }
  .device--desktop { left: 5%; top: 7%; width: 90%; aspect-ratio: 16 / 11; }
  .device--tablet { display: none; }
  .device--phone { right: 7%; top: auto; bottom: 5%; width: 30%; }
  .device__bar span { display: none; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc--feature { grid-column: auto; }
  .svc__visual { min-height: 190px; }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .about__facts { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; gap: 40px; }
  .wcard--wide .wcard__media, .wcard__media { aspect-ratio: 4 / 3.3; }
  .wcard--wide .browser, .browser { left: 6%; width: 74%; top: 10%; }
  .wcard--wide .phone, .phone { right: 5%; width: 26%; top: 26%; }
  .field-row { grid-template-columns: 1fr; }
  .details li { grid-template-columns: 44px minmax(0, 1fr); }
  .details .copy-btn { grid-column: 2; justify-self: start; }
  .footer__card { grid-template-columns: 1fr 1fr; }
  .contact__actions .btn-pair, .contact__actions .btn { width: 100%; }
  .contact__actions .btn-pair .btn { flex: 1; }
  .pd__desktop { display: none; }
  .pd__screens { grid-template-columns: 1fr; justify-items: center; }
  .pd__phone { width: min(250px, 68vw); }
  .pd__phone .pd__scroll { height: min(62vh, 520px); }
  .mini-process li { font-size: 22px; padding: 14px 8px; }
}
@media (max-width: 420px) {
  .footer__card { grid-template-columns: 1fr; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .filters__btn { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .device__screen img, .browser__screen img, .phone__screen img, .mini-browser img, .mini-phone img { transform: none !important; }
}
.work-grid.is-filtered .wcard--wide { grid-column: auto; }
.work-grid.is-filtered .wcard--wide .wcard__media { aspect-ratio: 16 / 10; }
.work-grid.is-filtered .wcard--wide .browser { left: 7%; width: 72%; top: 9%; }
.work-grid.is-filtered .wcard--wide .phone { right: 6%; width: 19%; top: 22%; }

/* ---------- Success stories ---------- */
.stories { padding-block: var(--section); background: var(--paper); }
.stories__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.story {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px;
  padding: clamp(28px, 3.4vw, 48px); border-radius: var(--radius-lg); color: var(--white);
  background: radial-gradient(70% 90% at 100% 0%, rgba(22, 119, 255, 0.42), transparent 65%), var(--black);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.story:hover { transform: translateY(-4px); box-shadow: 0 40px 70px -36px rgba(14, 98, 222, 0.6); }
.story__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(28px, 4vw, 56px); }
.story__mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-btn); font-family: var(--font-cond); font-weight: 800; font-size: 26px; letter-spacing: 0.02em; }
.story__coords { font-size: 13px; color: var(--on-dark-3); font-variant-numeric: tabular-nums; }
.story__kind { font-size: 14px; font-weight: 600; color: #9cc3ff; }
.story__name { font-family: var(--font-cond); font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 4.6vw, 68px); line-height: 0.9; letter-spacing: 0.005em; text-wrap: balance; }
.story__place { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--white); }
.story__place .icon { color: var(--blue); }
.story__text { margin-top: 8px; color: var(--on-dark-2); max-width: 52ch; }
.stories__cta { margin-top: clamp(40px, 5vw, 64px); }
@media (max-width: 759px) { .stories__grid { grid-template-columns: 1fr; } }

.story__service { align-self: flex-start; margin-top: 6px; padding: 7px 14px; border-radius: 999px; background: rgba(22, 119, 255, 0.18); border: 1px solid rgba(22, 119, 255, 0.55); color: #cfe1ff; font-size: 14px; font-weight: 600; }
.story__link { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-weight: 600; color: var(--white); text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.story__link:hover { color: #8fbaff; }
.story__services { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.story__services .story__service { margin-top: 0; }
/* Three stories: three columns on wide screens; on tablets the odd last card spans the row */
@media (min-width: 760px) and (max-width: 1099px) { .story:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 1100px) {
  .stories__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .story { padding: clamp(28px, 2.4vw, 36px); }
  .story__name { font-size: clamp(40px, 3.5vw, 54px); }
}
