/* ============================================================
   WEBEAUT MEDIA — Premium Glass UI (monochrome)
   ============================================================ */

:root {
  --bg: #050505;
  --bg-soft: #0c0c0c;
  --text: #f5f5f5;
  --text-dim: rgba(245, 245, 245, 0.6);
  --white: #ffffff;
  --gray: #9a9a9a;
  --glass-bg: rgba(255, 255, 255, 0.045);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-highlight: rgba(255, 255, 255, 0.18);
  --radius: 20px;
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body.is-loading { overflow: hidden; }

::selection { background: #fff; color: #000; }

/* custom scrollbar */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 99px;
  border: 2px solid #0a0a0a;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.38); }
html { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.25) #0a0a0a; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.container--narrow { width: min(860px, 92%); }

/* anchor jumps must land BELOW the fixed navbar, not underneath it */
main section[id] { scroll-margin-top: 108px; }

.grad {
  background: linear-gradient(100deg, #7d7d7d 0%, #ffffff 30%, #b5b5b5 55%, #ffffff 80%, #7d7d7d 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
  animation: gradShine 7s linear infinite;
}
@keyframes gradShine {
  from { background-position: 220% center; }
  to   { background-position: -220% center; }
}

/* ============ SCROLL PROGRESS ============ */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 200;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.55));
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ============ CUSTOM CURSOR ============ */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 999;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: #fff;
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  transition: width 0.35s var(--ease), height 0.35s var(--ease),
              background 0.35s var(--ease), border-color 0.35s var(--ease);
}
/* mix-blend difference inverts what's underneath — far cheaper
   than a backdrop-filter on a constantly moving element */
.cursor-ring.is-hovering {
  width: 62px; height: 62px;
  background: #fff;
  border-color: #fff;
  mix-blend-mode: difference;
}
body.has-cursor, body.has-cursor a, body.has-cursor button,
body.has-cursor summary, body.has-cursor .btn,
body.has-cursor input, body.has-cursor textarea,
body.has-cursor .service { cursor: none; }

/* ============ GLASS CORE ============ */
.glass {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 20px 50px -20px rgba(0, 0, 0, 0.7);
  transition: border-color 0.5s var(--ease), background 0.5s var(--ease),
              transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

/* ============ BACKGROUND ============ */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }

/* orbs are pre-softened radial gradients — no filter:blur(), which is
   the single most expensive paint operation on mobile GPUs */
.bg__orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  will-change: transform;
  animation: orbFloat 22s var(--ease) infinite alternate;
}
.bg__orb--1 { width: 55vw; height: 55vw; top: -22vw; left: -12vw; background: radial-gradient(circle, rgba(255,255,255,0.13) 0%, rgba(255,255,255,0.05) 35%, transparent 68%); }
.bg__orb--2 { width: 44vw; height: 44vw; top: 30vh; right: -18vw; background: radial-gradient(circle, rgba(210,210,210,0.11) 0%, rgba(210,210,210,0.04) 35%, transparent 68%); animation-delay: -8s; }
.bg__orb--3 { width: 38vw; height: 38vw; bottom: -14vw; left: 22vw; background: radial-gradient(circle, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.03) 35%, transparent 68%); animation-delay: -15s; }

@keyframes orbFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6vw, 5vh, 0) scale(1.15); }
}

.bg__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 30%, transparent 80%);
}

.bg__noise {
  position: absolute; inset: 0; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ============ PRELOADER ============ */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  transition: opacity 1.1s var(--ease), visibility 1.1s;
}
.preloader__aurora {
  position: absolute; inset: -20%;
  background:
    radial-gradient(38% 38% at 28% 30%, rgba(255, 255, 255, 0.10), transparent 70%),
    radial-gradient(34% 34% at 72% 60%, rgba(210, 210, 210, 0.08), transparent 70%),
    radial-gradient(30% 30% at 45% 85%, rgba(255, 255, 255, 0.06), transparent 70%);
  filter: blur(60px);
  animation: auroraSpin 14s linear infinite;
}
@keyframes auroraSpin {
  from { transform: rotate(0deg) scale(1.05); }
  to   { transform: rotate(360deg) scale(1.05); }
}
.preloader__inner {
  position: relative; display: flex; flex-direction: column;
  align-items: center; gap: 26px;
}
.preloader__logo {
  width: min(280px, 62vw);
  opacity: 0;
  animation: logoIn 1.2s var(--ease) 0.15s forwards;
  filter: drop-shadow(0 0 34px rgba(255, 255, 255, 0.35));
}
@keyframes logoIn {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.preloader__bar {
  width: min(280px, 62vw); height: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px; overflow: hidden;
}
.preloader__fill {
  display: block; width: 0%; height: 100%;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
  transition: width 0.25s ease-out;
}
.preloader__count {
  font-family: var(--font-display);
  font-size: 13px; letter-spacing: 0.25em;
  color: var(--text-dim);
}
/* Loader dissolves INTO the page background — same monochrome glow,
   so the fade reads as the loader melting into the site. */
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader.is-done .preloader__inner { animation: innerOut 0.9s var(--ease) forwards; }
@keyframes innerOut {
  to { opacity: 0; transform: scale(1.12); filter: blur(10px); }
}

/* ============ NAVBAR (island style) ============
   Free-standing logo · compact glass pill around the links · CTA.
   On scroll the whole strip condenses into a slim blurred bar. */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 0;
  /* no bar, no backdrop behind the nav — the pill carries everything */
  pointer-events: none;
  transition: padding 0.5s var(--ease);
}
.nav.is-scrolled { padding: 14px 0; }
.nav__inner {
  width: min(1180px, 94%);
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
}
.nav__inner > * { pointer-events: auto; }

/* logo: springs in at the top, gets "sucked away" on scroll */
.nav__brand img {
  width: 148px; height: auto;
  transform-origin: left center;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6));
  /* spring curve — reappearing overshoots and settles */
  transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.45s var(--ease), filter 0.45s var(--ease);
}
.nav__brand:hover img { transform: scale(1.05); }
.nav.is-scrolled .nav__brand {
  pointer-events: none;
}
.nav.is-scrolled .nav__brand img {
  transform: translate(-38px, -12px) rotate(-14deg) scale(0.4);
  opacity: 0;
  filter: blur(12px) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6));
  transition: transform 0.5s cubic-bezier(0.55, 0, 0.68, 0.19),
              opacity 0.4s ease, filter 0.4s ease;
}

.nav__links {
  display: flex; align-items: center; gap: 2px;
  padding: 7px;
  background: rgba(13, 13, 13, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 14px 34px -18px rgba(0, 0, 0, 0.8);
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease),
              padding 0.5s var(--ease);
}
/* the pill grows slightly and darkens for contrast once you scroll */
.nav.is-scrolled .nav__links {
  padding: 9px 10px;
  background: rgba(9, 9, 9, 0.58);
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(32px) saturate(140%);
  -webkit-backdrop-filter: blur(32px) saturate(140%);
}

/* CTA that lives INSIDE the pill — collapsed at the top,
   slides open as the outer CTA dissolves into it on scroll */
.nav__cta-item {
  display: flex;
  max-width: 0;
  opacity: 0;
  visibility: hidden;
  margin-left: 0;
  overflow: hidden;
  transition: max-width 0.6s var(--ease), opacity 0.45s var(--ease),
              margin-left 0.6s var(--ease), visibility 0.6s;
}
.nav.is-scrolled .nav__cta-item {
  max-width: 240px;
  opacity: 1;
  visibility: visible;
  margin-left: 8px;
}
.nav__cta-in { white-space: nowrap; }

/* outer CTA flies toward the pill and dissolves */
.nav__cta {
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease),
              filter 0.4s var(--ease), visibility 0.5s,
              box-shadow 0.45s var(--ease);
}
.nav.is-scrolled .nav__cta {
  transform: translateX(-18px) scale(0.88);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.nav__link {
  position: relative;
  padding: 10px 19px;
  font-size: 15px; font-weight: 500;
  color: var(--text-dim);
  border-radius: 999px;
  transition: color 0.35s var(--ease), background 0.35s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute; left: 50%; bottom: 3px;
  width: 0; height: 2px; border-radius: 2px;
  background: #fff;
  transition: width 0.35s var(--ease), left 0.35s var(--ease);
}
.nav__link:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav__link:hover::after { width: 55%; left: 22.5%; }

.nav__burger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 10px;
}
.nav__burger span {
  width: 22px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform 0.4s var(--ease), opacity 0.3s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ BUTTONS (circle-fill hover) ============ */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 34px;
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600; letter-spacing: 0.02em;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
              border-color 0.45s var(--ease), color 0.45s var(--ease);
}
.btn--sm { padding: 11px 22px; font-size: 13.5px; }
.btn--lg { padding: 19px 44px; font-size: 16.5px; }

.btn__label { position: relative; z-index: 2; transition: color 0.45s var(--ease); }

/* the translucent circle that appears under the cursor and fills the button */
.btn .btn__circle {
  position: absolute; z-index: 1;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.12);
  /* NOTE: no backdrop-filter here — a filtered child escapes the
     parent's rounded overflow clip in Chromium and pokes out of
     the pill shape */
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  transition: transform 0.55s var(--ease);
}
.btn:hover .btn__circle { transform: translate(-50%, -50%) scale(1); }

.btn--primary {
  background: #ffffff;
  color: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 34px -12px rgba(255, 255, 255, 0.4);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px -14px rgba(255, 255, 255, 0.55);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text);
  backdrop-filter: blur(14px);
}
.btn--ghost .btn__circle { background: rgba(255, 255, 255, 0.14); }
.btn--ghost:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.8);
}

.btn:active { transform: translateY(-1px) scale(0.98); }

/* ============ HERO ============ */
.hero {
  min-height: 100vh; /* fallback for browsers without svh */
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  /* symmetric-ish padding keeps the content block truly centered,
     with a reserved zone at the bottom for the scroll indicator */
  padding: 110px 5% 150px;
  position: relative;
  overflow: hidden;
}
.hero__watermark {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(160px, 26vw, 420px);
  font-weight: 800; letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
  user-select: none; pointer-events: none;
  white-space: nowrap;
  will-change: transform;
  animation: watermarkDrift 26s ease-in-out infinite alternate;
}
@keyframes watermarkDrift {
  from { transform: translate(-52%, -50%) scale(1); }
  to   { transform: translate(-48%, -50%) scale(1.04); }
}
.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero__content, .hero__scroll { position: relative; z-index: 2; }

.hero__rotate {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.6vw, 26px);
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-dim);
}
.type-word { color: #fff; }
.type-caret {
  display: inline-block;
  width: 2px; height: 1.05em;
  margin-left: 4px;
  background: #fff;
  vertical-align: text-bottom;
  animation: caretBlink 1s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--text-dim);
  padding: 10px 20px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  margin-bottom: 34px;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.8); } }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(42px, 7.4vw, 96px);
  font-weight: 700; line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.hero__line { display: block; overflow: hidden; }
/* title entrance is PAUSED while the preloader covers the page,
   so the reveal actually happens in front of the visitor */
.hero__line span {
  display: block;
  transform: translateY(110%);
  animation: lineUp 1.1s var(--ease) forwards;
}
body.is-loading .hero__line span { animation-play-state: paused; }
.hero__line:nth-child(2) span { animation-delay: 0.12s; }
@keyframes lineUp { to { transform: translateY(0); } }

.hero__sub {
  max-width: 560px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-dim);
  /* auto side margins keep the block itself centered, not just its text */
  margin: 0 auto 38px;
}
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.hero__scroll {
  position: absolute; bottom: 34px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--text-dim);
  transition: color 0.4s;
}
.hero__scroll:hover { color: var(--text); }
.hero__scroll-text { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; }
.hero__scroll-line {
  width: 1px; height: 46px;
  background: linear-gradient(180deg, var(--text-dim), transparent);
  overflow: hidden; position: relative;
}
.hero__scroll-line::after {
  content: '';
  position: absolute; top: -100%; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, transparent, #fff);
  animation: scrollDrop 2s var(--ease) infinite;
}
@keyframes scrollDrop { to { top: 100%; } }

/* compact hero for short laptop screens so the block stays centered
   with breathing room instead of crowding the navbar */
@media (max-height: 780px) and (min-width: 761px) {
  .hero { padding: 102px 5% 96px; }
  .hero__eyebrow { margin-bottom: 20px; padding: 8px 16px; font-size: 12px; }
  .hero__title { font-size: clamp(38px, 6.2vw, 76px); margin-bottom: 20px; }
  .hero__rotate { margin-bottom: 14px; font-size: clamp(17px, 2.2vw, 22px); }
  .hero__sub { margin-bottom: 28px; }
  .hero__scroll { bottom: 20px; }
}

/* ============ SECTIONS ============ */
.section { padding: 110px 0; position: relative; }

.section__eyebrow {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 14px;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 700; line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

/* ============ ABOUT ============ */
.about__lead {
  max-width: 720px;
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--text-dim);
  margin-bottom: 56px;
}
.about__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.stat { padding: 38px 32px; }
.stat:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-6px);
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 68px);
  font-weight: 800; line-height: 1;
  background: linear-gradient(120deg, #ffffff 25%, #8f8f8f);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block; margin-bottom: 16px;
}
.stat__label {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 12px;
}
.stat__text { font-size: 14.5px; color: var(--text-dim); }

/* ============ MARQUEE ============ */
.marquee {
  overflow: hidden;
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.015);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex; align-items: center; gap: 34px;
  width: max-content;
  will-change: transform;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 600;
  white-space: nowrap; color: var(--text-dim);
  transition: color 0.3s;
}
.marquee__track span:hover { color: var(--text); }
.marquee__track i { color: rgba(255, 255, 255, 0.45); font-style: normal; font-size: 13px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ SERVICES ============ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.service { padding: 36px 30px; overflow: hidden; }
.service::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
              rgba(255, 255, 255, 0.10), transparent 65%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.service:hover::before { opacity: 1; }
.service:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.25);
}
.service__icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  color: #fff;
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 22px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.service:hover .service__icon {
  transform: rotate(-8deg) scale(1.1);
  box-shadow: 0 10px 28px -8px rgba(255, 255, 255, 0.35);
}
.service__icon svg { width: 24px; height: 24px; }

.service h3 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600;
  margin-bottom: 12px;
}
.service p { font-size: 14.5px; color: var(--text-dim); }

/* content sources for the fullscreen overlay — never shown inside the card */
.service__more, .service__detail { display: none; }
.service { cursor: pointer; }

.service__toggle {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 18px;
  padding: 9px 18px;
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.35s, border-color 0.35s, background 0.35s;
}
.service__toggle:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.09);
}
.service__toggle-icon {
  display: grid; place-items: center;
  width: 20px; height: 20px;
  font-size: 15px; font-weight: 400;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.5s var(--ease), background 0.4s, color 0.4s, border-color 0.4s;
}
.service:hover .service__toggle-icon {
  transform: rotate(90deg);
  background: #fff;
  color: #0a0a0a;
  border-color: transparent;
}

/* ============ SERVICE FULLSCREEN OVERLAY ============ */
body.no-scroll { overflow: hidden; }

.service-overlay {
  position: fixed; inset: 0; z-index: 400;
  display: none;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background 0.6s var(--ease), backdrop-filter 0.6s var(--ease);
}
.service-overlay.is-active { display: block; }
.service-overlay.is-open {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.service-overlay__panel {
  position: fixed;
  background: rgba(14, 14, 14, 0.92);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 40px 90px -30px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  transition: top 0.65s var(--ease), left 0.65s var(--ease),
              width 0.65s var(--ease), height 0.65s var(--ease),
              border-radius 0.65s var(--ease), border-color 0.65s var(--ease);
}
.service-overlay.is-open .service-overlay__panel {
  border-radius: 28px;
  border-color: rgba(255, 255, 255, 0.18);
}

.service-overlay__body {
  height: 100%;
  overflow-y: auto;
  padding: clamp(34px, 5vw, 64px);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.service-overlay.is-open .service-overlay__body {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}

.service-overlay__close {
  position: absolute; top: 18px; right: 18px; z-index: 5;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-size: 22px; line-height: 1;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.45s var(--ease), background 0.35s, border-color 0.35s, color 0.35s;
}
.service-overlay__close:hover {
  transform: rotate(90deg);
  background: #fff;
  color: #0a0a0a;
  border-color: transparent;
}

.service-overlay__icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  color: #fff;
  border-radius: 18px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 24px;
}
.service-overlay__icon svg { width: 30px; height: 30px; }
.service-overlay__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.service-overlay__lead {
  font-size: clamp(16px, 2vw, 18.5px);
  color: var(--text);
  margin-bottom: 18px;
  max-width: 720px;
}
.service-overlay__detail {
  font-size: 15.5px;
  color: var(--text-dim);
  margin-bottom: 34px;
  max-width: 720px;
}
.service-overlay__subtitle {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 18px;
}
.service-overlay__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px 28px;
  margin-bottom: 40px;
  max-width: 760px;
}
.service-overlay__list li {
  position: relative;
  padding: 12px 16px 12px 42px;
  font-size: 14.5px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}
.service-overlay__list li::before {
  content: '✓';
  position: absolute; left: 16px; top: 12px;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.service--featured {
  border-color: rgba(255, 255, 255, 0.35);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02));
}
.service__badge {
  position: absolute; top: 18px; right: 18px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
  background: #fff;
  color: #0a0a0a;
}

/* ============ APPS ============ */
.apps__wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  padding: clamp(34px, 5vw, 70px);
  align-items: center;
  overflow: hidden;
}
.apps__wrap::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(60% 90% at 85% 20%, rgba(255, 255, 255, 0.08), transparent 65%);
  pointer-events: none;
}
.apps__lead { color: var(--text-dim); margin-bottom: 26px; font-size: 16.5px; }
.apps__list { display: grid; gap: 14px; margin-bottom: 36px; }
.apps__list li {
  position: relative;
  padding-left: 30px;
  font-size: 15px; color: var(--text-dim);
}
.apps__list li strong { color: var(--text); }
.apps__list li::before {
  content: '✦';
  position: absolute; left: 0; top: 1px;
  color: #fff; font-size: 14px;
}
.apps__text .section__title { margin-bottom: 22px; }

.apps__visual {
  position: relative;
  min-height: 380px;
}
.apps__card {
  position: absolute;
  display: flex; align-items: center; gap: 12px;
  padding: 18px 24px;
  font-family: var(--font-display);
  font-size: 14.5px; font-weight: 600;
  white-space: nowrap;
  animation: cardFloat 6s ease-in-out infinite;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}
/* while grabbed or springing back, the float animation must yield
   to the inline drag transform */
.apps__card.is-grabbed,
.apps__card.is-springing { animation: none; }
.apps__card.is-grabbed {
  cursor: grabbing;
  z-index: 6;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 26px 60px -18px rgba(0, 0, 0, 0.95);
}
.apps__card svg { width: 20px; height: 20px; flex-shrink: 0; color: #fff; }
.apps__card--1 { top: 6%;  left: 4%;  animation-delay: 0s; }
.apps__card--2 { top: 32%; right: 2%; animation-delay: -1.6s; }
.apps__card--3 { top: 58%; left: 10%; animation-delay: -3.1s; }
.apps__card--4 { top: 84%; right: 8%; animation-delay: -4.5s; }
@keyframes cardFloat { 50% { transform: translateY(-14px); } }

/* ============ PROCESS ============ */
.process__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  counter-reset: step;
}
.step {
  padding: 34px 28px;
  overflow: hidden;
}
.step:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.07);
}
.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: 56px; font-weight: 800; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
  margin-bottom: 18px;
  transition: -webkit-text-stroke-color 0.4s, color 0.5s var(--ease);
}
.step:hover .step__num {
  color: rgba(255, 255, 255, 0.92);
  -webkit-text-stroke-color: transparent;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 600;
  margin-bottom: 10px;
}
.step p { font-size: 14px; color: var(--text-dim); }

/* charging loop: steps 1→2→3→4 light up in sequence, each with a
   progress line filling along the bottom */
.step { position: relative; }
.step::after {
  content: '';
  position: absolute; left: 28px; right: 28px; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.4));
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.55);
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: 0;
}
.step.is-charging {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.07);
}
.step.is-charging::after {
  opacity: 1;
  animation: stepCharge var(--charge-step, 1.8s) linear forwards;
}
@keyframes stepCharge { to { transform: scaleX(1); } }
.step.is-charging .step__num {
  color: rgba(255, 255, 255, 0.94);
  -webkit-text-stroke-color: transparent;
}

/* the section title "charges" with a light sweep, one full sweep
   per 4-step cycle; paused while the section is off screen */
.charge-text {
  background: linear-gradient(90deg,
    #9a9a9a 0%, #9a9a9a 38%, #ffffff 50%, #9a9a9a 62%, #9a9a9a 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: chargeSweep 7.2s linear infinite;
  animation-play-state: paused;
}
.process.in-view .charge-text { animation-play-state: running; }
@keyframes chargeSweep {
  from { background-position: 130% 0; }
  to   { background-position: -130% 0; }
}

/* ============ TESTIMONIALS ============ */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}
.quote {
  padding: 34px 30px;
  display: flex; flex-direction: column; gap: 16px;
}
.quote:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.25);
}
.quote__stars {
  font-size: 15px; letter-spacing: 4px;
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.55);
}
.quote blockquote {
  font-size: 15.5px; line-height: 1.7;
  color: var(--text);
}
.quote figcaption {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim);
}

/* ============ PROJECTS ============ */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.project { display: block; overflow: hidden; }
.project:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.28);
}
.project__thumb {
  height: 250px;
  border-radius: calc(var(--radius) - 6px);
  margin: 12px;
  position: relative; overflow: hidden;
  background: #111;
}
.project__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.8s var(--ease);
  filter: saturate(0.9);
}
.project:hover .project__thumb img {
  transform: scale(1.06);
  filter: saturate(1.05);
}
.project__meta { padding: 12px 24px 24px; }
.project__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-dim);
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  margin-bottom: 10px;
}
.project__meta h3 {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 600; margin-bottom: 5px;
}
.project__meta p { font-size: 13.5px; color: var(--text-dim); }

/* ============ PROJECT CATEGORY CARDS ============ */
.cats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.cat { display: block; overflow: hidden; }
.cat:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.28);
}
.cat__thumb {
  height: 220px;
  margin: 12px;
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  position: relative;
  background: linear-gradient(150deg, #161616, #0c0c0c);
  display: grid; place-items: center;
}
.cat__collage {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  position: absolute; inset: 0;
}
.cat__collage img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.cat:hover .cat__collage img { transform: scale(1.05); filter: saturate(1); }
.cat__big-icon {
  width: 84px; height: 84px;
  display: grid; place-items: center;
  color: #fff;
  border-radius: 24px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.cat__big-icon svg { width: 38px; height: 38px; }
.cat:hover .cat__big-icon {
  transform: rotate(-6deg) scale(1.1);
  box-shadow: 0 14px 34px -10px rgba(255, 255, 255, 0.3);
}
.cat__meta { padding: 12px 24px 26px; }
.cat__meta h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  margin-bottom: 4px;
}
.cat__count { font-size: 13.5px; color: var(--text-dim); display: block; margin-bottom: 14px; }
.cat__link {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim);
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 0.35s, gap 0.35s var(--ease);
}
.cat:hover .cat__link { color: #fff; gap: 13px; }

/* ============ PROJECT SUBPAGES ============ */
.page-hero {
  padding: 180px 0 30px;
  text-align: left;
}
.page-hero__crumb {
  font-size: 13px; color: var(--text-dim);
  letter-spacing: 0.14em; text-transform: uppercase;
  display: inline-block; margin-bottom: 16px;
}
.page-hero__crumb a { transition: color 0.3s; }
.page-hero__crumb a:hover { color: #fff; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.6vw, 64px);
  font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.page-hero__sub { max-width: 640px; color: var(--text-dim); font-size: 17px; }
.page-grid { padding: 50px 0 110px; }

.project__visit {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
  padding: 10px 20px;
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  transition: color 0.35s, border-color 0.35s, background 0.35s;
}
a.project__visit:hover {
  color: #0a0a0a;
  background: #fff;
  border-color: transparent;
}
.project__visit.is-pending { opacity: 0.55; cursor: default; }

.empty-state {
  text-align: center;
  padding: clamp(60px, 9vw, 110px) clamp(24px, 6vw, 80px);
}
.empty-state h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  margin-bottom: 14px;
}
.empty-state p {
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto 34px;
}

/* ============ WHY CHOOSE US ============ */
.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.why__card {
  padding: 30px 28px;
  position: relative;
}
.why__card::before {
  content: '✦';
  display: block;
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}
.why__card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
}
.why__card h3 {
  font-family: var(--font-display);
  font-size: 17.5px; font-weight: 600;
  margin-bottom: 8px;
}
.why__card p { font-size: 14px; color: var(--text-dim); }

/* ============ FAQ (smooth accordion) ============ */
.faq__list { display: grid; gap: 14px; }
.faq__item { padding: 0; }
.faq__q {
  width: 100%;
  background: none; border: 0;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 28px;
  font-family: var(--font-display);
  font-size: 16.5px; font-weight: 600;
  transition: color 0.3s;
}
.faq__q:hover { color: #fff; }
.faq__icon {
  position: relative;
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  transition: transform 0.45s var(--ease), background 0.45s, border-color 0.45s;
}
.faq__icon::before, .faq__icon::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 12px; height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.45s var(--ease), background 0.45s;
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.is-open .faq__icon {
  transform: rotate(135deg);
  background: #fff;
  border-color: transparent;
}
.faq__item.is-open .faq__icon::before,
.faq__item.is-open .faq__icon::after { background: #0a0a0a; }
.faq__item.is-open { border-color: rgba(255, 255, 255, 0.32); }

/* answer slides open/closed with a true height animation */
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.55s var(--ease), opacity 0.45s var(--ease);
}
.faq__item.is-open .faq__a {
  grid-template-rows: 1fr;
  opacity: 1;
}
.faq__a-inner { overflow: hidden; }
.faq__a-inner p {
  padding: 0 28px 24px;
  color: var(--text-dim);
  font-size: 15px;
  max-width: 92%;
  transform: translateY(-6px);
  transition: transform 0.5s var(--ease);
}
.faq__item.is-open .faq__a-inner p { transform: translateY(0); }

/* ============ CONTACT ============ */
.contact__wrap {
  text-align: center;
  padding: clamp(50px, 8vw, 100px) clamp(24px, 6vw, 80px);
  overflow: hidden;
}
.contact__wrap::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(45% 70% at 20% 100%, rgba(255, 255, 255, 0.06), transparent 70%),
    radial-gradient(45% 70% at 80% 0%, rgba(255, 255, 255, 0.08), transparent 70%);
  pointer-events: none;
}
.contact__title {
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 92px);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 18px;
}
.contact__sub { color: var(--text-dim); font-size: 17px; margin-bottom: 14px; }
.contact__email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 16px; font-weight: 600;
  color: var(--text);
  margin-bottom: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 2px;
  transition: border-color 0.35s, text-shadow 0.35s;
}
.contact__email:hover {
  border-color: #fff;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.5);
}

.contact__form {
  position: relative; z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  display: grid; gap: 16px;
  text-align: left;
}
.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact__form input,
.contact__form textarea {
  width: 100%;
  padding: 17px 22px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  outline: none;
  resize: vertical;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.contact__form input::placeholder,
.contact__form textarea::placeholder { color: rgba(245, 245, 245, 0.4); }
.contact__form input:focus,
.contact__form textarea:focus {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06), 0 0 24px -6px rgba(255, 255, 255, 0.25);
}
.contact__form .btn { justify-self: center; margin-top: 10px; border: 0; }
.contact__form .form-note {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-dim);
  margin-top: 4px;
}

@media (max-width: 560px) {
  .contact__row { grid-template-columns: 1fr; }
}
.contact__socials {
  display: flex; gap: 14px; justify-content: center;
  margin-top: 44px;
}
.social {
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
}
.social:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 44px 0;
  background: rgba(0, 0, 0, 0.35);
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.footer__logo { opacity: 0.85; }
.footer__nav { display: flex; gap: 26px; }
.footer__nav a {
  font-size: 14px; color: var(--text-dim);
  transition: color 0.3s;
}
.footer__nav a:hover { color: var(--text); }
.footer__copy { font-size: 13px; color: rgba(245, 245, 245, 0.4); }

/* ============ TOAST ============ */
.toast {
  position: fixed;
  left: 50%; bottom: 34px;
  z-index: 300;
  transform: translate(-50%, 20px);
  padding: 15px 28px;
  font-family: var(--font-display);
  font-size: 14px; font-weight: 600;
  color: var(--text);
  background: rgba(12, 12, 12, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 20px 50px -16px rgba(0, 0, 0, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ============ FOCUS VISIBLE (keyboard a11y) ============ */
a:focus-visible, button:focus-visible,
input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============ BACK TO TOP ============ */
.to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 150;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  font-size: 19px;
  color: var(--text);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease),
              visibility 0.45s, border-color 0.4s, background 0.4s;
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

/* ============ NAV ACTIVE LINK ============ */
.nav__link.is-active { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.nav__link.is-active::after { width: 55%; left: 22.5%; }

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .apps__wrap { grid-template-columns: 1fr; }
  .apps__visual { min-height: 320px; }
}

@media (max-width: 760px) {
  .nav__links {
    position: fixed;
    top: 78px; left: 3%; right: 3%;
    flex-direction: column;
    padding: 18px;
    gap: 4px;
    background: rgba(8, 8, 8, 0.88);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(24px);
    opacity: 0; visibility: hidden;
    transform: translateY(-14px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__links .nav__link { display: block; text-align: center; padding: 13px; font-size: 16px; }
  .nav__burger {
    display: flex;
    align-items: center; justify-content: center;
    width: 46px; height: 46px;
    background: rgba(15, 15, 15, 0.78);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
  }
  .nav__cta, .nav__cta-item { display: none; }
  .section { padding: 80px 0; }
  .footer__inner { flex-direction: column; text-align: center; }
  /* the eyebrow pill wraps to two lines on narrow screens —
     soften the radius so it doesn't look like a broken capsule */
  .hero__eyebrow { border-radius: 22px; font-size: 11.5px; letter-spacing: 0.16em; }
}

/* ============ MOBILE / TOUCH PERFORMANCE ============
   backdrop-filter is the heaviest paint cost on phone GPUs.
   On touch devices we swap blurred glass for solid translucent
   panels — visually near-identical on small screens, massively
   cheaper to render. */
@media (pointer: coarse), (max-width: 760px) {
  .glass,
  .hero__eyebrow,
  .btn--ghost,
  .contact__form input,
  .contact__form textarea,
  .project__view,
  .toast {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .glass { background: rgba(22, 22, 22, 0.72); }
  .nav__links {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(10, 10, 10, 0.94);
  }
  .service-overlay.is-open {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(0, 0, 0, 0.78);
  }
  .bg__orb { opacity: 0.3; animation-duration: 34s; }
  .bg__noise { display: none; }
  .hero__watermark { animation: none; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
