/* ============================================================
   ITs Production — Landing Page
   ============================================================ */

/* ---------- Theme tokens ---------- */
:root {
  --accent: #8b5cf6;
  --accent-2: #a855f7;
  --accent-3: #6366f1;
  --accent-soft: rgba(139, 92, 246, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.55);
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

/* Dark (default) */
[data-theme="dark"] {
  --bg: #0a0a0f;
  --bg-2: #101019;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(139, 92, 246, 0.4);
  --text: #f4f4f8;
  --text-soft: #b7b7c7;
  --text-muted: #8a8a9c;
  --nav-bg: rgba(10, 10, 15, 0.72);
  --grid-line: rgba(255, 255, 255, 0.04);
  --code-bg: rgba(13, 13, 20, 0.9);
}

/* Light */
[data-theme="light"] {
  --bg: #f6f5fb;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1eefb;
  --border: rgba(20, 18, 40, 0.1);
  --border-strong: rgba(139, 92, 246, 0.45);
  --text: #15131f;
  --text-soft: #4a4760;
  --text-muted: #6c6982;
  --nav-bg: rgba(246, 245, 251, 0.78);
  --grid-line: rgba(20, 18, 40, 0.045);
  --code-bg: #15131f;
  --shadow: 0 20px 50px -24px rgba(60, 40, 120, 0.3);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent-2); }
.grad {
  background: linear-gradient(120deg, var(--accent-2), var(--accent-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Background decor ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-glow {
  position: fixed; z-index: -1; border-radius: 50%;
  filter: blur(110px); opacity: 0.5; pointer-events: none;
}
.bg-glow--1 { width: 480px; height: 480px; top: -120px; right: -80px; background: var(--accent); }
.bg-glow--2 { width: 420px; height: 420px; top: 40%; left: -160px; background: var(--accent-3); opacity: 0.32; }
[data-theme="light"] .bg-glow { opacity: 0.22; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: all 0.25s var(--ease); white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-3));
  color: #fff; box-shadow: 0 10px 28px -10px var(--accent);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px var(--accent); }
.btn--ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Navbar ---------- */
/* Floating glass pill */
[data-theme="dark"]{
  --pill-bg: rgba(16,16,25,.55); --pill-bg-solid: rgba(11,11,18,.82);
  --pill-border: rgba(255,255,255,.10);
  --pill-shadow: 0 14px 36px -18px rgba(0,0,0,.65); --pill-shadow-lg: 0 22px 48px -18px rgba(0,0,0,.75);
}
[data-theme="light"]{
  --pill-bg: rgba(255,255,255,.62); --pill-bg-solid: rgba(255,255,255,.88);
  --pill-border: rgba(20,18,40,.10);
  --pill-shadow: 0 14px 32px -18px rgba(60,40,120,.28); --pill-shadow-lg: 0 22px 46px -18px rgba(60,40,120,.34);
}
.nav {
  position: sticky; top: 0; z-index: 100; width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 14px 14px 0; display: flex; align-items: center; gap: 12px;
  flex-direction: row; justify-content: space-between;          /* TOP: a single row */
  transition: gap .6s var(--ease), padding .6s var(--ease);
}
.nav.is-scrolled { flex-direction: column; align-items: center; gap: 9px; }  /* SCROLLED: centered stack */

/* shared floating glass pill */
.nav__brandbar, .nav__linkbar {
  position: relative; display: flex; align-items: center; border-radius: 999px; max-width: 100%;
  background: var(--pill-bg); border: 1px solid var(--pill-border);
  -webkit-backdrop-filter: blur(22px) saturate(175%); backdrop-filter: blur(22px) saturate(175%);
  box-shadow: var(--pill-shadow), inset 0 1px 0 rgba(255,255,255,.05);
  transition: box-shadow .55s var(--ease), border-color .55s var(--ease), background .55s var(--ease), padding .55s var(--ease);
}
.nav__brandbar::before, .nav__linkbar::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(115deg, rgba(168,85,247,.55), rgba(99,102,241,.26) 38%, transparent 66%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .75;
}
/* brand pill */
.nav__brandbar { padding: 7px 8px 7px 11px; flex: 0 0 auto; gap: 10px; }
.nav__brandbar .brand { gap: .6rem; font-size: clamp(1.1rem, 0.85rem + 0.9vw, 1.42rem); min-width: 0; }
/* "Try ITs Deploy" button beside the brand */
.nav__try {
  display: inline-flex; align-items: center; gap: .35rem; flex: 0 0 auto; white-space: nowrap;
  padding: .42rem .85rem; border-radius: 999px; font-family: var(--font-head); font-weight: 600;
  font-size: clamp(.74rem, .7rem + .2vw, .82rem); color: var(--accent-2);
  background: var(--accent-soft); border: 1px solid var(--border-strong);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.nav__try:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.nav__try svg { width: 13px; height: 13px; }
.nav__brandbar .brand__logo { width: clamp(42px, 34px + 1.7vw, 52px); height: clamp(42px, 34px + 1.7vw, 52px); flex: 0 0 auto; transition: width .55s var(--ease), height .55s var(--ease); }
.brand__name { display: inline-block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56vw; transition: opacity .32s var(--ease), transform .32s var(--ease); }
.brand__name.is-swapping { opacity: 0; transform: translateY(-6px); }

/* link pill with sliding highlight */
.nav__linkbar { padding: 6px; gap: 4px; min-width: 0; }
.nav__seclinks { position: relative; display: flex; align-items: center; gap: 2px; }
.nav__seclinks > a {
  position: relative; z-index: 1; padding: .38rem .72rem; border-radius: 999px; white-space: nowrap;
  color: var(--text-soft); font-weight: 500; font-size: clamp(.76rem, .72rem + .18vw, .82rem); transition: color .4s var(--ease);
}
.nav__seclinks > a:hover { color: var(--text); }
.nav__seclinks > a.is-active { color: #ddd6fe; font-weight: 600; text-shadow: 0 0 14px rgba(168,85,247,.55); }
/* Light mode: pale lavender + a bright glow makes the active text vanish into the
   highlight on the light background. Use a deep, readable purple and drop the glow
   so the label sits clearly ON TOP of the underline/diamond. */
[data-theme="light"] .nav__seclinks > a.is-active { color: #6d28d9; text-shadow: none; }
[data-theme="light"] .nav__indicator::after {
  background: radial-gradient(ellipse at bottom, rgba(124,58,237,.16), transparent 72%);
}
.nav__indicator {  /* celestial underline */
  position: absolute; left: 0; width: 0; height: 2px; bottom: 2px; z-index: 0; opacity: 0; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-2) 22%, #c4b5fd 50%, var(--accent-3) 78%, transparent);
  box-shadow: 0 0 14px 1px rgba(168,85,247,.55);
  transition: left .28s var(--ease), width .28s var(--ease), opacity .3s var(--ease);
}
.nav__indicator::before {  /* twinkling diamond centered on the line */
  content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: linear-gradient(135deg, #ede9fe, var(--accent-2));
  animation: navTwinkle 2.6s ease-in-out infinite;
}
.nav__indicator::after {  /* soft starlight aura above the line */
  content: ""; position: absolute; left: 50%; bottom: -1px; width: 72%; height: 22px;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse at bottom, rgba(168,85,247,.30), transparent 72%);
}
@keyframes navTwinkle {
  0%, 100% { box-shadow: 0 0 9px 1px rgba(168,85,247,.7), 0 0 3px rgba(255,255,255,.5); }
  50%      { box-shadow: 0 0 18px 3px rgba(168,85,247,1), 0 0 7px rgba(255,255,255,.9); }
}
.nav__linkbar .theme-toggle { width: 38px; height: 38px; flex: 0 0 auto; margin-left: 4px; }

/* scroll shrink (centered mode) */
.nav.is-scrolled .nav__brandbar { padding-top: 5px; padding-bottom: 5px; }
.nav.is-scrolled .nav__brandbar .brand__logo { width: clamp(38px, 32px + 1vw, 44px); height: clamp(38px, 32px + 1vw, 44px); }
.nav.is-scrolled .nav__brandbar,
.nav.is-scrolled .nav__linkbar {
  background: var(--pill-bg-solid); border-color: var(--border-strong);
  box-shadow: var(--pill-shadow-lg), inset 0 1px 0 rgba(255,255,255,.06);
}

/* small screens: always centered + the link pill scrolls sideways */
@media (max-width: 1024px) {
  .nav { flex-direction: column; align-items: center; gap: 9px; }
  .nav__linkbar { overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; max-width: calc(100vw - 28px); }
  .nav__linkbar::-webkit-scrollbar { display: none; }
  .nav__seclinks > a { padding: .38rem .66rem; }
}
.brand { display: flex; align-items: center; gap: 0.65rem; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.brand__logo { width: 38px; height: 38px; }
.nav__links { display: flex; align-items: center; gap: 1.7rem; }
.nav__links a { color: var(--text-soft); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  background: var(--accent-soft); color: var(--accent-2) !important;
  padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid var(--border-strong);
}
.nav__cta:hover { background: var(--accent); color: #fff !important; }
.nav__actions { display: flex; align-items: center; gap: 0.6rem; }

.theme-toggle {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text); cursor: pointer; transition: all 0.25s var(--ease);
}
.theme-toggle:hover { border-color: var(--border-strong); transform: rotate(15deg); }
.icon-sun { display: none; }
.icon-moon { display: block; }
[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }

.hamburger { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
.hamburger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s var(--ease); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 4rem); }
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.85rem; color: var(--text-soft); font-weight: 500;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18); }
.hero__title { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; margin: 1.2rem 0; }
.hero__sub { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--text-soft); max-width: 540px; }
.hero__sub em { color: var(--text); font-style: normal; font-weight: 600; }
.hero__actions { display: flex; gap: 0.85rem; margin: 2rem 0; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 2.2rem; flex-wrap: wrap; padding-top: 0.5rem; border-top: 1px solid var(--border); margin-top: 0.5rem; padding-top: 1.5rem; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--text); }
.hero__stats span { font-size: 0.85rem; color: var(--text-muted); }

/* Hero art */
.hero__art { position: relative; display: grid; place-items: center; min-height: 380px; }
.hero__logoWrap { position: relative; width: min(330px, 80%); aspect-ratio: 1; display: grid; place-items: center; }
.hero__logoWrap::before {
  content: ""; position: absolute; inset: -10%;
  background: radial-gradient(circle, var(--accent-soft), transparent 65%);
  border-radius: 50%;
}
.hero__logo { width: 100%; filter: drop-shadow(0 24px 50px rgba(139, 92, 246, 0.45)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.float-card {
  position: absolute; background: var(--code-bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow); backdrop-filter: blur(8px);
}
.float-card--code { left: -8%; bottom: 6%; padding: 0.9rem 1rem; animation: float 7s ease-in-out infinite 0.4s; }
.float-card--code pre { margin-top: 0.6rem; }
.float-card--code code { font-family: "SF Mono", "Fira Code", monospace; font-size: 0.72rem; line-height: 1.55; color: #e7e7f0; white-space: pre; }
.dots { display: flex; gap: 5px; }
.dots span { width: 9px; height: 9px; border-radius: 50%; }
.dots span:nth-child(1){ background:#ff5f56;} .dots span:nth-child(2){ background:#ffbd2e;} .dots span:nth-child(3){ background:#27c93f;}
.c-key { color: #c792ea; } .c-fn { color: #82aaff; } .c-prop { color: #f78c6c; } .c-str { color: #c3e88d; } .c-bool { color: #ff9cac; }

.float-card--badge {
  right: -4%; top: 8%; padding: 0.8rem 1rem; display: flex; align-items: center; gap: 0.7rem;
  background: var(--surface); animation: float 6.5s ease-in-out infinite 1s;
}
.float-card--badge strong { display: block; font-family: var(--font-head); font-size: 0.9rem; }
.float-card--badge small { color: var(--text-muted); font-size: 0.75rem; }
.badge-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-2); flex-shrink: 0; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1rem 0; background: var(--surface); }
.marquee__track { display: flex; gap: 1.4rem; width: max-content; animation: scroll 32s linear infinite; }
.marquee__track span { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--text-muted); letter-spacing: 0.08em; }
.marquee__track span:nth-child(odd) { color: var(--accent-2); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.eyebrow { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 0.7rem; }
.section__title { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.section__lead { color: var(--text-soft); margin-top: 1rem; font-size: 1.05rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.about__card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; transition: all 0.3s var(--ease); }
.about__card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.about__icon { width: 60px; height: 60px; display: grid; place-items: center; background: var(--accent-soft); border-radius: 16px; margin-bottom: 1.2rem; color: var(--accent-2); }
.about__icon svg { width: 28px; height: 28px; }
.about__card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.about__card p { color: var(--text-soft); font-size: 0.97rem; }

/* ---------- Services ---------- */
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.svc-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.9rem 1.6rem; transition: all 0.3s var(--ease); overflow: hidden; }
.svc-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-3)); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.svc-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-card--featured { border-color: var(--border-strong); background: linear-gradient(160deg, var(--accent-soft), var(--surface)); }
.svc-card__num { font-family: var(--font-head); font-size: 0.85rem; font-weight: 700; color: var(--accent-2); opacity: 0.6; }
.svc-card__icon { width: 52px; height: 52px; display: grid; place-items: center; background: var(--accent-soft); border-radius: 14px; color: var(--accent-2); margin: 0.6rem 0 1rem; }
.svc-card__icon svg { width: 26px; height: 26px; }
.svc-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.svc-card p { color: var(--text-soft); font-size: 0.92rem; margin-bottom: 1rem; }
.svc-card__list { display: flex; flex-direction: column; gap: 0.45rem; }
.svc-card__list li { font-size: 0.88rem; color: var(--text-soft); padding-left: 1.5rem; position: relative; }
.svc-card__list li::before {
  content: ""; position: absolute; left: 0; top: 0.45em;
  width: 12px; height: 9px; background: var(--accent-2);
  -webkit-mask: no-repeat center / contain; mask: no-repeat center / contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.svc-card__tag { position: absolute; top: 1rem; right: 1rem; font-family: var(--font-head); font-size: 0.68rem; font-weight: 600; background: var(--accent); color: #fff; padding: 0.2rem 0.6rem; border-radius: 999px; letter-spacing: 0.04em; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.step { position: relative; padding: 1.8rem 1.4rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step__num { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-3)); color: #fff; font-family: var(--font-head); font-weight: 700; margin-bottom: 1rem; }
.step h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.step p { color: var(--text-soft); font-size: 0.9rem; }

/* ---------- Team ---------- */
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; max-width: 940px; margin: 0 auto; }
.member { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all 0.3s var(--ease); }
.member:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.member__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-2); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.5s var(--ease); }
.member:hover .member__photo img { transform: scale(1.05); }
.member__info { padding: 1.4rem 1.5rem 1.7rem; }
.member__info h3 { font-size: 1.3rem; }
.member__role { display: inline-block; font-size: 0.82rem; font-weight: 600; color: var(--accent-2); margin: 0.25rem 0 0.7rem; letter-spacing: 0.02em; }
.member__info p { color: var(--text-soft); font-size: 0.92rem; }

/* ---------- Brands ---------- */
.brands__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; max-width: 820px; margin: 0 auto; }
.brand-card { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.4rem 2rem; transition: all 0.3s var(--ease); }
.brand-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.brand-card__logo { width: 110px; height: 110px; object-fit: contain; margin: 0 auto 1.3rem; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.3)); }
.brand-card__logo--rounded { border-radius: 20px; object-fit: cover; }
.brand-card h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.brand-card p { color: var(--text-soft); font-size: 0.95rem; }
.brand-card--bb:hover { box-shadow: 0 20px 50px -20px rgba(244, 143, 177, 0.5); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact__info .section__title, .contact__info .section__lead { text-align: left; }
.contact__info .section__head { margin: 0; }
.contact__list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.1rem; }
.contact__list li { display: flex; align-items: center; gap: 1rem; }
.contact__ic { width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.3rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; flex-shrink: 0; }
.contact__list strong { display: block; font-family: var(--font-head); font-size: 0.95rem; }
.contact__list a { color: var(--text-soft); font-size: 0.92rem; transition: color 0.2s; }
.contact__list a:hover { color: var(--accent-2); }

.contact__form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--text-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 0.95rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { resize: vertical; }
.form-note { margin-top: 1rem; text-align: center; color: #34d399; font-weight: 600; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-top: 3rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; }
.footer__brand { display: flex; gap: 0.9rem; align-items: center; max-width: 340px; }
.footer__logo { width: 48px; height: 48px; }
.footer__brand strong { font-family: var(--font-head); font-size: 1.1rem; }
.footer__brand p { color: var(--text-muted); font-size: 0.9rem; }
.footer__links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer__links a { color: var(--text-soft); font-size: 0.92rem; transition: color 0.2s; }
.footer__links a:hover { color: var(--accent-2); }
.footer__bottom { border-top: 1px solid var(--border); padding: 1.4rem 24px; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; max-width: var(--maxw); margin: 0 auto; }
.footer__bottom p { color: var(--text-muted); font-size: 0.85rem; }
.footer__credit { display: inline-flex; align-items: center; gap: 0.3rem; }
.heart { color: var(--accent-2); }
.contact__ic svg { width: 22px; height: 22px; }
.contact__ic { color: var(--accent-2); }
.btn--primary svg { transition: transform 0.25s var(--ease); }
.btn--primary:hover svg { transform: translateX(3px); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { order: 2; }
  .hero__art { order: 1; min-height: 320px; }
  .hero__sub, .hero__actions { margin-left: auto; margin-right: auto; }
  .hero__actions, .hero__stats { justify-content: center; }
  .about__grid, .services__grid, .steps, .team__grid { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .contact__info .section__title, .contact__info .section__lead { text-align: center; }
}

@media (max-width: 420px) {
  .brand.navpill { font-size: 1rem; }
}

@media (max-width: 560px) {
  .about__grid, .services__grid, .steps, .team__grid, .brands__grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.4rem; }
  .float-card--code { left: 0; transform: scale(0.88); }
  .float-card--badge { right: 0; transform: scale(0.9); }
}

/* ============================================================
   SCI-FI BOOT / INTRO SCREEN
   ============================================================ */
body.is-booting { overflow: hidden; }

.boot {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2.2rem;
  background:
    radial-gradient(ellipse 70% 60% at 50% 42%, rgba(139, 92, 246, 0.12), transparent 70%),
    var(--bg);
  overflow: hidden;
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}
.boot.is-done { opacity: 0; visibility: hidden; }

/* moving grid + scanlines for the sci-fi feel */
.boot__grid {
  position: absolute; inset: -50%; z-index: 0;
  background-image:
    linear-gradient(var(--accent-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent-soft) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 45% 45% at 50% 50%, #000 10%, transparent 70%);
  animation: bootGrid 16s linear infinite;
  opacity: 0.7;
}
.boot__scanlines {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: repeating-linear-gradient(
    to bottom, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
  animation: bootScan 6s linear infinite;
}
@keyframes bootGrid { to { background-position: 44px 44px; } }
@keyframes bootScan { from { transform: translateY(-3px); } to { transform: translateY(3px); } }

/* ---- core: logo + rotating tech rings ---- */
.boot__core {
  position: relative; z-index: 2;
  width: 220px; height: 220px;
  display: grid; place-items: center;
}
.boot__rings { position: absolute; inset: 0; }
.ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid transparent;
}
.ring--1 {
  inset: 0;
  border-top-color: var(--accent-2); border-right-color: var(--accent-3);
  filter: drop-shadow(0 0 8px var(--accent));
  animation: spin 3.4s linear infinite;
}
.ring--2 {
  inset: 26px;
  border-bottom-color: var(--accent); border-left-color: var(--accent-2);
  animation: spin 2.6s linear infinite reverse;
  opacity: 0.85;
}
.ring--3 {
  inset: 14px;
  border: 1px dashed rgba(139, 92, 246, 0.35);
  animation: spin 9s linear infinite;
}
.ring-tick {
  position: absolute; top: 50%; left: 50%;
  width: 8px; height: 8px; margin: -4px 0 0 -4px;
  border-radius: 50%; background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-2);
}
.ring-tick--a { animation: orbit 3.4s linear infinite; }
.ring-tick--b { width: 5px; height: 5px; background: var(--accent-3); animation: orbit 2.6s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orbit {
  from { transform: rotate(0deg) translateX(108px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(108px) rotate(-360deg); }
}

.boot__logoWrap {
  width: 128px; height: 128px; display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.18), transparent 65%);
  animation: corePulse 2.4s var(--ease) infinite;
}
.boot__logo {
  width: 96px; height: auto;
  filter: drop-shadow(0 0 18px rgba(139, 92, 246, 0.55));
  opacity: 0; transform: scale(0.4);
  animation: logoIn 1s var(--ease) 0.15s forwards;
}
@keyframes logoIn {
  0%   { opacity: 0; transform: scale(0.4); filter: drop-shadow(0 0 0 rgba(139,92,246,0)) blur(6px); }
  60%  { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 18px rgba(139, 92, 246, 0.55)) blur(0); }
}
@keyframes corePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
  50%      { box-shadow: 0 0 40px 4px rgba(139, 92, 246, 0.18); }
}

/* ---- title with per-letter reveal ---- */
.boot__title {
  position: relative; z-index: 2;
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.6rem, 5vw, 2.6rem); letter-spacing: 0.04em;
  display: flex; gap: 0.5ch;
}
.boot__brand { display: inline-flex; }
.boot__brand--accent { color: var(--accent-2); }
.boot__title span span {
  display: inline-block; opacity: 0; transform: translateY(14px);
  filter: blur(6px);
  animation: letterIn 0.5s var(--ease) forwards;
}
/* stagger each letter */
.boot__title .boot__brand:first-child span:nth-child(1) { animation-delay: 0.55s; }
.boot__title .boot__brand:first-child span:nth-child(2) { animation-delay: 0.62s; }
.boot__title .boot__brand:first-child span:nth-child(3) { animation-delay: 0.69s; }
.boot__title .boot__brand--accent span:nth-child(1) { animation-delay: 0.80s; }
.boot__title .boot__brand--accent span:nth-child(2) { animation-delay: 0.86s; }
.boot__title .boot__brand--accent span:nth-child(3) { animation-delay: 0.92s; }
.boot__title .boot__brand--accent span:nth-child(4) { animation-delay: 0.98s; }
.boot__title .boot__brand--accent span:nth-child(5) { animation-delay: 1.04s; }
.boot__title .boot__brand--accent span:nth-child(6) { animation-delay: 1.10s; }
.boot__title .boot__brand--accent span:nth-child(7) { animation-delay: 1.16s; }
.boot__title .boot__brand--accent span:nth-child(8) { animation-delay: 1.22s; }
.boot__title .boot__brand--accent span:nth-child(9) { animation-delay: 1.28s; }
.boot__title .boot__brand--accent span:nth-child(10) { animation-delay: 1.34s; }
@keyframes letterIn {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ---- loader: status + bar + percent ---- */
.boot__loader {
  position: relative; z-index: 2;
  width: min(340px, 78vw);
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  opacity: 0; animation: fadeUp 0.6s var(--ease) 1.2s forwards;
}
.boot__status {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--text-soft);
  min-height: 1em;
}
.boot__status::before { content: "› "; color: var(--accent-2); }
.boot__bar {
  width: 100%; height: 4px; border-radius: 99px;
  background: var(--surface-2); overflow: hidden;
  border: 1px solid var(--border);
}
.boot__bar-fill {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent-3), var(--accent-2));
  box-shadow: 0 0 12px var(--accent);
  transition: width 0.25s var(--ease);
}
.boot__pct {
  font-family: var(--font-head); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.1em; color: var(--text); font-variant-numeric: tabular-nums;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .boot__logo, .boot__title span span, .boot__loader { opacity: 1; transform: none; filter: none; }
}

/* ============================================================
   Homepage refresh — prominent ITs Deploy nav, site showcase,
   terms section. (added 2026-06-20)
   ============================================================ */

/* ITs Deploy nav button */
.nav__deploy{display:inline-flex;align-items:center;gap:.4rem;padding:.5rem 1rem;border-radius:999px;
  border:1px solid var(--border-strong);color:var(--text)!important;font-weight:600;font-size:.9rem;
  background:var(--accent-soft);transition:.2s var(--ease)}
.nav__deploy:hover{background:var(--accent);color:#fff!important;transform:translateY(-1px)}
.nav__deploy svg{width:14px;height:14px}

/* Hero — small ITs Deploy callout under the actions */
.hero__deploy{display:inline-flex;align-items:center;gap:.5rem;margin-top:1.1rem;font-size:.9rem;
  color:var(--text-soft);padding:.5rem .85rem;border:1px solid var(--border);border-radius:999px;background:var(--surface)}
.hero__deploy a{color:var(--accent-2);font-weight:600}
.hero__deploy a:hover{text-decoration:underline}

/* Website showcase grid */
.sites__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:1.4rem;
  max-width:1040px;margin:0 auto}
.site-card{display:flex;flex-direction:column;gap:1rem;background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);padding:1.6rem;transition:all .3s var(--ease)}
.site-card:hover{transform:translateY(-6px);border-color:var(--border-strong);box-shadow:var(--shadow)}
.site-card__top{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}
.site-card__logo{width:54px;height:54px;border-radius:14px;flex:0 0 auto;display:grid;place-items:center;
  overflow:hidden;background:#fff;border:1px solid var(--border);
  font-family:var(--font-head);font-weight:800;font-size:1.1rem;color:var(--accent-3)}
.site-card__logo img{width:100%;height:100%;object-fit:contain;padding:5px}
/* left column: logo with the brand name beneath it */
.site-card__brand{min-width:0;display:flex;flex-direction:column;gap:.55rem;align-items:flex-start}
.site-card__brand h3{font-size:1.15rem;margin:0;line-height:1.2}
/* right column: member badge with the link beneath it */
.site-card__meta{flex:0 0 auto;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:.45rem;text-align:left}
.site-card__url{align-self:flex-start;text-align:left;font-size:.82rem;color:var(--text-muted);
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;word-break:break-all}
.site-card__url:hover{color:var(--accent-2)}
.site-card__desc{color:var(--text-soft);font-size:.92rem;margin:0;flex:1}
.site-meta{display:grid;grid-template-columns:1fr;gap:.55rem;margin:0;padding-top:1rem;border-top:1px solid var(--border)}
.site-meta>div{display:grid;grid-template-columns:84px 1fr;gap:.6rem;align-items:start}
.site-meta dt{font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:var(--text-muted);font-weight:600;margin:1px 0 0}
.site-meta dd{margin:0;font-size:.86rem;color:var(--text-soft)}
.site-tag{flex:0 0 auto;font-family:var(--font-head);font-weight:700;font-size:.68rem;letter-spacing:.04em;
  text-transform:uppercase;padding:.28rem .6rem;border-radius:999px;border:1px solid var(--border)}
.site-tag--platform{color:var(--accent-2);background:var(--accent-soft);border-color:var(--border-strong)}
.site-tag--partner{color:#f9a8d4;background:rgba(244,143,177,.12);border-color:rgba(244,143,177,.4)}
.site-tag--student{color:#7dd3fc;background:rgba(96,165,250,.12);border-color:rgba(96,165,250,.4)}
.site-tag--business{color:#fcd34d;background:rgba(251,191,36,.12);border-color:rgba(251,191,36,.4)}
.site-tag--staff{color:#86efac;background:rgba(52,211,153,.12);border-color:rgba(52,211,153,.4)}

/* Terms section */
.terms-card{max-width:880px;margin:0 auto;background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);padding:2rem}
.terms-grid{display:grid;grid-template-columns:1fr;gap:.7rem;margin:0 0 1.4rem;list-style:none;padding:0}
@media(min-width:680px){.terms-grid{grid-template-columns:1fr 1fr;gap:.7rem 1.8rem}}
.terms-grid li{position:relative;padding-left:1.7rem;color:var(--text-soft);font-size:.92rem}
.terms-grid li::before{content:"";position:absolute;left:0;top:.5rem;width:13px;height:7px;
  border-left:2px solid var(--accent-2);border-bottom:2px solid var(--accent-2);transform:rotate(-45deg)}
.terms-card__foot{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;
  padding-top:1.3rem;border-top:1px solid var(--border)}
.terms-card__foot span{color:var(--text-muted);font-size:.88rem}

/* ============================================================
   Websites under ITs Production — showcase v2 (per-brand cards)
   ============================================================ */
.wgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:1.5rem;max-width:1080px;margin:0 auto}
.wcard{position:relative;display:flex;flex-direction:column;gap:1rem;padding:1.6rem;border-radius:20px;
  background:var(--surface);border:1px solid var(--border);overflow:hidden;isolation:isolate;
  transition:transform .35s var(--ease),box-shadow .35s var(--ease),border-color .35s var(--ease)}
.wcard::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:20px;opacity:.55;transition:opacity .35s;
  background:radial-gradient(120% 85% at 100% 0%,color-mix(in srgb,var(--brand) 20%,transparent),transparent 58%)}
.wcard:hover{transform:translateY(-8px);border-color:color-mix(in srgb,var(--brand) 55%,transparent);
  box-shadow:0 30px 60px -28px color-mix(in srgb,var(--brand) 70%,transparent)}
.wcard:hover::after{opacity:1}
.wcard__top{display:flex;align-items:center;gap:.9rem}
.wcard__logo{width:54px;height:54px;border-radius:14px;flex:0 0 auto;background:#fff;border:1px solid var(--border);
  display:grid;place-items:center;overflow:hidden;box-shadow:0 6px 16px -8px rgba(0,0,0,.5)}
.wcard__logo img{width:100%;height:100%;object-fit:contain;padding:5px}
.wcard__id{min-width:0}
.wcard__id h3{font-size:1.2rem;margin:0;line-height:1.2}
.wcard__owner{display:inline-flex;align-items:center;gap:6px;margin-top:7px;font-family:var(--font-head);
  font-size:.66rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:3px 10px;border-radius:999px;
  color:var(--brand);border:1px solid color-mix(in srgb,var(--brand) 45%,transparent);
  background:color-mix(in srgb,var(--brand) 14%,transparent)}
.wcard__owner::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--brand)}
.wcard__desc{color:var(--text-soft);font-size:.92rem;line-height:1.55;margin:0;flex:1}
.wcard__specs{display:flex;flex-direction:column;gap:.55rem}
.wcard__spec{display:flex;align-items:flex-start;gap:.6rem;font-size:.86rem;color:var(--text-soft)}
.wcard__spec svg{width:16px;height:16px;flex:0 0 auto;margin-top:1px;color:var(--brand)}
.wcard__spec b{display:block;font-size:.64rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;
  color:var(--text-muted);margin-bottom:1px}
.wcard__link{display:flex;align-items:center;justify-content:space-between;gap:.6rem;margin-top:.15rem;padding:.72rem .95rem;
  border-radius:12px;border:1px solid var(--border);background:var(--bg-2);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.82rem;color:var(--text-soft);transition:.2s var(--ease);word-break:break-all}
.wcard__link:hover{color:var(--text);border-color:color-mix(in srgb,var(--brand) 55%,transparent);
  background:color-mix(in srgb,var(--brand) 10%,transparent)}
.wcard__link svg{width:15px;height:15px;flex:0 0 auto;opacity:.7;transition:transform .2s var(--ease)}
.wcard__link:hover svg{transform:translate(2px,-2px)}
.wcard__link--off{cursor:default;color:var(--text-muted)}


/* Section-links pill keeps its glass blur so the active underline+diamond reads
   clearly over page content (phones use the dropdown panel below instead). */

/* Phone sections menu toggle (hidden until small screens) */
.nav__toggle { display: none; place-items: center; width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; }
.nav__toggle:hover { border-color: var(--border-strong); }
.nav__toggle-bars { position: relative; width: 18px; height: 12px; }
.nav__toggle-bars span { position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .25s var(--ease), top .3s var(--ease); }
.nav__toggle-bars span:nth-child(1) { top: 0; }
.nav__toggle-bars span:nth-child(2) { top: 5px; }
.nav__toggle-bars span:nth-child(3) { top: 10px; }
.nav.is-open .nav__toggle-bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav.is-open .nav__toggle-bars span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle-bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

/* Phones (mobile L → S): section links collapse into a dropdown */
@media (max-width: 560px) {
  .nav__toggle { display: grid; }
  .nav__indicator { display: none; }            /* the horizontal slider isn't used in the dropdown */
  .nav__linkbar { overflow: visible; gap: 6px; }
  .nav__seclinks {
    position: absolute; top: calc(100% + 10px); right: 0; min-width: 198px;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 8px; border-radius: 18px;
    background: var(--pill-bg-solid); border: 1px solid var(--pill-border); box-shadow: var(--pill-shadow-lg);
    -webkit-backdrop-filter: blur(22px) saturate(175%); backdrop-filter: blur(22px) saturate(175%);
    transform: translateY(-8px) scale(.97); transform-origin: top right; opacity: 0; visibility: hidden;
    transition: transform .32s var(--ease), opacity .32s var(--ease), visibility .32s var(--ease);
  }
  .nav.is-open .nav__seclinks { transform: none; opacity: 1; visibility: visible; }
  .nav__seclinks > a { width: 100%; padding: .62rem .8rem .62rem 1.7rem; border-radius: 10px; }
  .nav__seclinks > a:hover { background: var(--surface-2); }
  .nav__seclinks > a.is-active::before {   /* glowing diamond bullet */
    content: ""; position: absolute; left: .65rem; top: 50%; width: 7px; height: 7px;
    transform: translateY(-50%) rotate(45deg);
    background: linear-gradient(135deg, #ede9fe, var(--accent-2)); box-shadow: 0 0 10px 1px rgba(168,85,247,.85);
  }
}


/* ============================================================
   Admin-only "Dashboard" pill in the navbar — rendered only
   when a logged-in super admin views the landing page.
   ============================================================ */
.nav__try--admin { background: var(--accent); border-color: transparent; color: #fff; }
.nav__try--admin:hover { background: var(--accent-2); color: #fff; }
.nav__try--admin svg { width: 13px; height: 13px; }
@media (max-width: 480px) {
  .nav__try--admin .nav__try-label { display: none; }
  .nav__try--admin { padding: .42rem .58rem; }
}

/* ============================================================
   Depth pass — 3D treatment (Motion / motion.dev · 2026-07-02)
   The hero is a layered "launch bay": logo + float cards sit at
   different Z depths over a perspective grid floor, tilt toward
   a fine pointer, and settle flat as you scroll past (--depth is
   driven by Motion scroll()). Scroll reveals hinge up in
   perspective, and the service/website cards carry a pointer
   tilt + sheen (JS adds .is-tilting; without JS everything
   falls back to the previous flat behavior).
   ============================================================ */

/* ---- hero: 3D stage ---- */
.hero__inner { perspective: 1100px; }
.hero__art {
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
/* layer depths use the individual `translate` property so they
   compose with each card's own `float` transform animation */
.hero__art > .hero__logoWrap   { translate: 0 0 calc(34px * var(--depth, 1)); }
.hero__art > .float-card--code { translate: 0 0 calc(78px * var(--depth, 1)); }
.hero__art > .float-card--badge{ translate: 0 0 calc(100px * var(--depth, 1)); }

/* injected perspective floor under the logo (decor, JS-created) */
.hero__floor {
  position: absolute; left: 50%; bottom: -14%; z-index: -1;
  width: 132%; aspect-ratio: 2.4 / 1; pointer-events: none;
  translate: -50% 0 calc(-46px * var(--depth, 1));
  transform: rotateX(72deg);
  background-image:
    radial-gradient(58% 42% at 50% 30%, rgba(139, 92, 246, 0.16), transparent 70%),
    linear-gradient(rgba(139, 92, 246, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.13) 1px, transparent 1px);
  background-size: 100% 100%, 44px 44px, 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 60% 76% at 50% 32%, #000 22%, transparent 74%);
          mask-image: radial-gradient(ellipse 60% 76% at 50% 32%, #000 22%, transparent 74%);
  animation: floorDrift 12s linear infinite;
  opacity: calc(0.95 * var(--depth, 1));
}
@keyframes floorDrift { to { background-position: 0 0, 0 44px, 0 0; } }

/* ---- scroll reveals hinge up in perspective ----
   (same elements + transition as the original .reveal system;
   only the resting transform changes, .reveal.in still wins) */
.reveal { transform: perspective(900px) translateY(34px) rotateX(10deg); transform-origin: 50% 100%; }

/* ---- pointer-tilt cards (services + websites) ----
   Applied only while JS holds .is-tilting, so :hover keeps its
   original lift when Motion/JS is unavailable. Later source
   order lets this beat the original :hover/.reveal.in rules. */
.svc-card.is-tilting, .wcard.is-tilting {
  transform: perspective(760px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  will-change: transform;
}
/* sheen that follows the pointer (svc-card::before and wcard::after
   are taken by the top bar / brand glow, so use the free pseudo) */
.svc-card::after, .wcard::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--shx, 50%) var(--shy, 50%), rgba(255, 255, 255, 0.09), transparent 55%);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.svc-card:hover::after, .wcard:hover::before { opacity: 1; }
[data-theme="light"] .svc-card::after, [data-theme="light"] .wcard::before {
  background: radial-gradient(420px circle at var(--shx, 50%) var(--shy, 50%), rgba(139, 92, 246, 0.10), transparent 55%);
}

/* smaller screens: shallower stage so layers stay inside the art box,
   and the floor stays within the viewport (no horizontal overflow) */
@media (max-width: 940px) {
  .hero__inner { perspective: 900px; }
  .hero__art > .float-card--code  { translate: 0 0 calc(48px * var(--depth, 1)); }
  .hero__art > .float-card--badge { translate: 0 0 calc(62px * var(--depth, 1)); }
  .hero__floor { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__art, .svc-card.is-tilting, .wcard.is-tilting { transform: none !important; }
  .hero__art > * , .hero__floor { translate: none !important; }
  .hero__floor { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
