/* ==========================================================================
   AJ TECHNOLOGIES — style.css
   Identity: midnight navy · ice-silver · cinematic clear glass
   Type: Inter throughout — professional corporate sans
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces — midnight navy ramp */
  --navy-950: #04070f;
  --navy-900: #071022;
  --navy-800: #0a1832;
  --navy-700: #0e2142;
  --navy-600: #16305c;

  /* Ink */
  --ink: #eef2f9;
  --ink-soft: #b6c0d4;
  --ink-dim: #8791a8;

  /* Accent — ice silver */
  --accent: #dbe6f5;
  --accent-bright: #f4f8ff;
  --accent-deep: #93a7c9;
  --accent-soft: rgba(219, 230, 245, 0.12);

  /* Glass — ultra-clear, iOS-style */
  --glass-bg: rgba(13, 22, 44, 0.3);
  --glass-border: rgba(255, 255, 255, 0.34);
  --glass-hl: rgba(255, 255, 255, 0.42);
  --glass-sheen: rgba(255, 255, 255, 0.06);
  --glass-shade: rgba(255, 255, 255, 0.03);

  /* Type — professional sans only */
  --serif: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --wrap: 1180px;
  --radius: 6px;
  --radius-lg: 10px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--navy-950);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--navy-950);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: min(var(--wrap), 92vw); margin-inline: auto; }

/* Skip link */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 300;
  padding: 0.7rem 1.2rem;
  background: var(--accent);
  color: var(--navy-950);
  font-weight: 600;
  border-radius: 0 0 10px 10px;
  transition: top 0.3s var(--ease-out);
}
.skip-link:focus { top: 0; }

/* ---------- Cinematic layers ---------- */
.grain {
  position: fixed;
  inset: -100px;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.9s steps(2) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(40px, -30px); }
  100% { transform: translate(-25px, 25px); }
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 0%, transparent 34%, rgba(4, 7, 15, 0.45) 100%),
    linear-gradient(180deg, rgba(4, 7, 15, 0.6) 0%, rgba(4, 7, 15, 0.18) 38%, rgba(4, 7, 15, 0.8) 100%);
}

.bg-video {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0.38;
  filter: saturate(0.65) contrast(1.05) brightness(0.7);
  transform: scale(1.06);
}

/* ---------- Glass primitives ---------- *//* Ultra-clear glass — liquid iOS style: high transparency, strong backdrop
   blur + saturation, crisp white specular rim, diagonal sheen. */
.glass {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.015) 45%, rgba(255, 255, 255, 0.05)),
    var(--glass-bg);
  -webkit-backdrop-filter: blur(28px) saturate(200%) brightness(1.08);
  backdrop-filter: blur(28px) saturate(200%) brightness(1.08);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 0 0 var(--glass-hl),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.12),
    0 24px 60px -26px rgba(0, 0, 0, 0.7);
}

/* Viewfinder corner brackets — the signature glass detail */
.glass-corners { position: relative; }
.glass-corners::before,
.glass-corners::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  pointer-events: none;
}
.glass-corners::before {
  top: 14px;
  left: 14px;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
}
.glass-corners::after {
  bottom: 14px;
  right: 14px;
  border-bottom: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
}

/* ---------- Buttons — clear gel glass, lit from the top-left ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  overflow: hidden;
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out), color 0.35s var(--ease-out), filter 0.35s var(--ease-out);
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Specular sheen sweeps across on hover */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-18deg);
  transition: left 0.7s var(--ease-out);
  pointer-events: none;
}
.btn:hover::after { left: 130%; }

/* Primary button — clear glass gel, cool white light */
.btn-glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(230, 240, 255, 0.16) 32%, rgba(190, 210, 240, 0.1) 58%, rgba(150, 175, 215, 0.08) 100%);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--accent-bright);
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(10, 20, 40, 0.5);
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.55),
    inset 0 12px 18px -10px rgba(255, 255, 255, 0.4),
    inset 0 -3px 7px rgba(30, 50, 90, 0.35),
    0 16px 40px -12px rgba(170, 200, 240, 0.45),
    0 4px 10px -4px rgba(0, 0, 0, 0.45);
}
.btn-glass:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  border-color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(235, 244, 255, 0.22) 32%, rgba(200, 218, 245, 0.14) 58%, rgba(160, 185, 222, 0.1) 100%);
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.7),
    inset 0 14px 20px -10px rgba(255, 255, 255, 0.5),
    inset 0 -3px 7px rgba(30, 50, 90, 0.3),
    0 22px 52px -14px rgba(190, 215, 250, 0.6),
    0 6px 14px -4px rgba(0, 0, 0, 0.45);
}
.btn-glass:active {
  transform: translateY(0) scale(0.98);
  filter: brightness(0.97);
  box-shadow:
    inset 0 3px 8px rgba(20, 35, 65, 0.4),
    inset 0 -1px 2px rgba(255, 255, 255, 0.35),
    0 8px 22px -10px rgba(170, 200, 240, 0.4);
}

.btn-ghost {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025) 45%, rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.3),
    inset 0 -2px 5px rgba(2, 5, 12, 0.35),
    0 12px 32px -12px rgba(0, 0, 0, 0.6);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.75);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06) 45%, rgba(255, 255, 255, 0.1));
  color: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.45),
    inset 0 -2px 5px rgba(2, 5, 12, 0.3),
    0 16px 40px -12px rgba(0, 0, 0, 0.55);
}
.btn-ghost:active { transform: translateY(0) scale(0.98); }

.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.9rem 0;
  transition: padding 0.4s var(--ease-out), background-color 0.4s var(--ease-out);
}
.site-header.is-scrolled {
  padding: 0.45rem 0;
  background: rgba(6, 12, 26, 0.5);
  -webkit-backdrop-filter: blur(26px) saturate(190%);
  backdrop-filter: blur(26px) saturate(190%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.65);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.7rem 0.55rem 1rem;
  border-radius: var(--radius);
}

.brand { display: flex; align-items: center; gap: 0.8rem; }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--sans); font-size: 1.08rem; font-weight: 600; letter-spacing: 0.14em; }

.primary-nav { display: none; align-items: center; gap: 2rem; }
.primary-nav a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease-out);
}
.primary-nav a:hover { color: var(--accent-bright); }

.nav-cta {
  padding: 0.6rem 1.3rem;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.07) 55%, rgba(180, 205, 240, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.4),
    inset 0 -1px 3px rgba(2, 5, 12, 0.3),
    0 6px 18px -8px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  color: var(--accent-bright) !important;
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.nav-cta:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12) 60%, rgba(190, 212, 245, 0.14));
  border-color: rgba(255, 255, 255, 0.8);
  color: #ffffff !important;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.6),
    inset 0 -2px 4px rgba(2, 5, 12, 0.28),
    0 10px 26px -8px rgba(0, 0, 0, 0.55);
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

@media (min-width: 960px) {
  .primary-nav { display: flex; }
  .menu-toggle { display: none; }
}

/* Mobile nav panel */
.nav-open .primary-nav {
  display: flex;
  position: fixed;
  top: 86px;
  left: 4vw;
  right: 4vw;
  z-index: 99;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0.6rem;
  border-radius: var(--radius);
  background: rgba(12, 22, 44, 0.55);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 30px 80px -20px rgba(0, 0, 0, 0.8);
}
.nav-open .primary-nav a {
  padding: 0.95rem 1.1rem;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-open .primary-nav a:last-child { border-bottom: none; margin-top: 0.5rem; text-align: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding: 9rem 0 5rem;
}

.eyebrow-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}
.rule-accent { height: 1px; width: 44px; background: linear-gradient(90deg, transparent, var(--accent)); flex-shrink: 0; }
.rule-accent:last-child { background: linear-gradient(90deg, var(--accent), transparent); }

.display {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2.7rem, 7.5vw, 5.6rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.display em {
  font-style: normal;
  font-weight: 300;
  color: var(--accent-bright);
}

.typed-line {
  margin-top: 1.6rem;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  color: var(--ink-soft);
  min-height: 2.2rem;
}
.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 6px;
  background: var(--accent);
  vertical-align: -0.15em;
  animation: caretBlink 1.1s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

.lead {
  margin-top: 1.6rem;
  max-width: 33rem;
  font-size: 1.02rem;
  color: var(--ink-soft);
  line-height: 1.8;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.4rem; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2.4rem;
  margin-top: 3.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.meta-item { display: inline-flex; align-items: center; gap: 0.6rem; }

.diamond {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  background: var(--accent);
  transform: rotate(45deg);
}

.scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.cue-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: cueDrift 2.4s var(--ease-out) infinite;
}
@keyframes cueDrift {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  z-index: 3;
  overflow: hidden;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 18, 38, 0.3);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  width: max-content;
  animation: marqueeRoll 36s linear infinite;
}
.marquee-track span {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
}
.marquee-track .diamond { width: 6px; height: 6px; opacity: 0.7; }
@keyframes marqueeRoll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section {
  position: relative;
  z-index: 3;
  padding: 7.5rem 0;
}

.section-index {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-index::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin-left: 14px;
  vertical-align: middle;
}

.title-xl {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.title-xl em { font-style: normal; font-weight: 300; color: var(--accent-bright); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.head-note { max-width: 24rem; color: var(--ink-dim); font-size: 0.95rem; }

/* ---------- 01 About ---------- */
.about-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 980px) {
  .about-grid { grid-template-columns: 0.9fr 1.4fr; gap: 5rem; }
}

.aside-col { position: relative; }
@media (min-width: 980px) {
  .aside-col { position: sticky; top: 7rem; align-self: start; }
}

.aside-note {
  margin-top: 1.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.lede {
  font-family: var(--sans);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink);
}
.lede strong { font-weight: 400; color: var(--accent-bright); }

.body-text {
  margin-top: 1.3rem;
  max-width: 44rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.85;
}
.body-text strong { color: var(--ink); font-weight: 500; }

.principles {
  margin-top: 3rem;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.principles li {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  padding: 1.5rem 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  transition: background-color 0.35s var(--ease-out), padding-left 0.35s var(--ease-out);
}
.principles li:hover { background: rgba(219, 230, 245, 0.05); padding-left: 1rem; }
.p-num {
  grid-row: span 2;
  font-family: var(--sans);
  font-weight: 600;
  color: var(--accent);
  font-size: 0.9rem;
}
.p-title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}
.p-desc { margin-top: 0.45rem; color: var(--ink-dim); font-size: 0.9rem; line-height: 1.7; }

/* ---------- 02 Services ---------- */
.services-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.svc {
  position: relative;
  padding: 1.8rem 1.6rem 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), border-color 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
}
.svc::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease-out);
}
.svc:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 34px 70px -24px rgba(0, 0, 0, 0.75), inset 0 1px 0 0 var(--glass-hl);
}
.svc:hover::after { transform: scaleX(1); }

.svc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}
.svc-num {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.svc-icon {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--accent-bright);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}

.svc h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.22rem;
  letter-spacing: 0.01em;
  margin-bottom: 0.6rem;
}
.svc p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.75; }

.svc-tag {
  display: inline-block;
  margin-left: 0.55rem;
  padding: 0.26rem 0.65rem;
  vertical-align: 0.18em;
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-bright);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 7px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

/* ---------- 03 Work ---------- */
.work-stage { position: relative; margin-top: 0.5rem; }

.work-scroller {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  overflow-x: auto;
  padding: 0.5rem max(4vw, calc((100vw - var(--wrap)) / 2)) 1.6rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}
.work-scroller::-webkit-scrollbar { display: none; }
.work-scroller.is-dragging { cursor: grabbing; scroll-snap-type: none; }

.work-item {
  position: relative;
  flex: 0 0 auto;
  width: auto;
  max-width: min(560px, 78vw);
  scroll-snap-align: center;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: var(--navy-900);
}
.work-item img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(66vh, 560px);
  height: auto;
  transition: transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
}
.work-item:hover img { transform: scale(1.02); filter: brightness(1.06); }

.work-progress {
  position: relative;
  margin: 0.4rem auto 0;
  width: min(var(--wrap), 92vw);
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}
.work-progress span {
  position: absolute;
  inset: -1px auto -1px 0;
  width: 15%;
  background: var(--accent);
  transition: width 0.2s linear;
}

.work-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.4rem;
}
.work-hint { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); }
.work-nav { display: flex; gap: 0.6rem; }

.nav-arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02) 50%, rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 6px;
  cursor: pointer;
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.28),
    inset 0 -2px 4px rgba(2, 5, 12, 0.35),
    0 10px 24px -10px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.nav-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav-arrow:hover {
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--accent-bright);
  transform: translateY(-2px);
}
.nav-arrow:active { transform: translateY(0) scale(0.95); }

/* ---------- 04 OpenVision ---------- */
.ov-panel {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: clamp(1.8rem, 4vw, 3.4rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 120% at 85% 10%, rgba(190, 215, 250, 0.08), transparent 55%),
    var(--glass-bg);
}
@media (min-width: 1000px) { .ov-panel { grid-template-columns: 1.15fr 1fr; gap: 3.5rem; } }

.ov-copy .lede { margin-top: 1.3rem; }

.ov-features {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.75rem 1.4rem;
}
.ov-features li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.ov-features li::before {
  content: "";
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  background: var(--accent);
  transform: rotate(45deg);
}

.ov-premium {
  margin-top: 1.8rem;
  display: inline-block;
  padding: 0.6rem 1.05rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-bright);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06) 60%, rgba(190, 212, 245, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.4),
    inset 0 -1px 3px rgba(2, 5, 12, 0.25),
    0 10px 26px -12px rgba(0, 0, 0, 0.5);
}

.ov-note { margin-top: 1.2rem; font-size: 0.85rem; color: var(--ink-dim); }
.ov-note a {
  color: var(--accent-bright);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: border-color 0.3s var(--ease-out);
}
.ov-note a:hover { border-color: var(--accent-bright); }

/* Device mockup */
.ov-device { display: flex; justify-content: center; perspective: 1200px; }

.phone {
  width: 240px;
  border-radius: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(165deg, #0b1324, #060b18);
  box-shadow:
    0 50px 90px -30px rgba(0, 0, 0, 0.85),
    0 0 70px -18px rgba(170, 200, 240, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  animation: phoneFloat 7s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotateY(-7deg) rotateX(2deg); }
  50% { transform: translateY(-14px) rotateY(-7deg) rotateX(2deg); }
}

.phone-island {
  width: 88px;
  height: 25px;
  margin: 10px auto 0;
  background: #000;
  border-radius: 0 0 16px 16px;
}

.phone-screen {
  display: flex;
  flex-direction: column;
  height: 430px;
  background:
    radial-gradient(110% 70% at 50% 0%, #12213f 0%, #0a1526 55%, #060b16 100%);
}

.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 1.1rem 0;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
}

.phone-app {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0 1rem 1rem;
  text-align: center;
}
.phone-logo {
  width: 96px;
  filter: drop-shadow(0 10px 26px rgba(170, 200, 240, 0.3));
  animation: logoGlow 4s ease-in-out infinite;
}
@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 10px 22px rgba(170, 200, 240, 0.22)); }
  50% { filter: drop-shadow(0 12px 36px rgba(244, 248, 255, 0.45)); }
}

.phone-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.phone-badge {
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  padding: 0.32rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3);
}
.phone-sub { font-size: 0.64rem; color: rgba(255, 255, 255, 0.55); letter-spacing: 0.06em; }
.phone-version { font-size: 0.52rem; color: rgba(255, 255, 255, 0.3); letter-spacing: 0.1em; }

.phone-homebar {
  width: 78px;
  height: 4px;
  margin: 0 auto 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.25);
}

/* ---------- 04 Testimonials ---------- */
/* Single clear-glass panel; each review is one slim line:
   stars · quote (ellipsis on narrow screens) · name + date */
.testi-panel {
  padding: 0.5rem 1.6rem;
  border-radius: var(--radius-lg);
}
.testi-list { display: grid; }
.testi-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
  padding: 1.05rem 0.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.35s var(--ease-out), padding 0.35s var(--ease-out);
}
.testi-row:last-child { border-bottom: 0; }
.testi-row:hover {
  background: rgba(219, 230, 245, 0.05);
  padding-left: 0.8rem;
  padding-right: 0.8rem;
}
.testi-stars {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  white-space: nowrap;
}
.testi-row blockquote {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--ink-soft);
}
.testi-meta {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  white-space: nowrap;
}
.testi-name { font-size: 0.85rem; font-weight: 500; color: var(--ink); }
.testi-meta time {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
/* Rows without a quote keep the name right-aligned like the rest */
.testi-row:not(:has(blockquote)) .testi-meta { justify-self: end; }

/* Narrow screens: quote on its own line, name+date beneath it */
@media (max-width: 760px) {
  .testi-panel { padding: 0.4rem 1.2rem; }
  .testi-row {
    grid-template-columns: auto 1fr;
    row-gap: 0.25rem;
  }
  .testi-meta { grid-column: 2; justify-self: start !important; gap: 0.6rem; }
}

/* Sentence link under the panel — quiet, underlined */
.testi-link {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--ink-dim);
}
.testi-link .testi-stars { margin: 0 0.2rem; font-size: 0.68rem; }
.testi-link a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(219, 230, 245, 0.4);
  transition: text-decoration-color 0.3s var(--ease-out);
}
.testi-link a:hover { text-decoration-color: var(--accent-bright); }

/* ---------- 06 Contact ---------- */
.contact-grid { display: grid; gap: 1.4rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; gap: 2rem; } }

.contact-cards { display: grid; gap: 0.9rem; }

.mail-fallback {
  margin: -0.4rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-dim);
}
.mail-fallback a {
  color: var(--accent-bright);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.3s var(--ease-out);
}
.mail-fallback a:hover { border-color: var(--accent-bright); }

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
a.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 22px 50px -18px rgba(0, 0, 0, 0.7), inset 0 1px 0 0 var(--glass-hl);
}
.is-static:hover { transform: none; }

.cc-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06) 55%, rgba(190, 212, 245, 0.12));
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.4),
    inset 0 -1px 3px rgba(2, 5, 12, 0.3);
}
.cc-ico svg { width: 18px; height: 18px; fill: none; stroke: var(--accent-bright); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.cc-body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.cc-label { font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-dim); }
.cc-value { font-size: 0.92rem; color: var(--ink); display: inline-flex; align-items: center; gap: 0.5rem; }

.cc-arrow { margin-left: auto; color: var(--ink-dim); transition: color 0.3s var(--ease-out), transform 0.3s var(--ease-out); }
.cc-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
a.contact-card:hover .cc-arrow { color: var(--accent-bright); transform: translateX(3px); }

.pulse-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(219, 230, 245, 0.5);
  animation: pulseDot 2.2s ease-out infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(219, 230, 245, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(219, 230, 245, 0); }
  100% { box-shadow: 0 0 0 0 rgba(219, 230, 245, 0); }
}

/* Form */
.contact-form {
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border-radius: var(--radius-lg);
}
.contact-form h3 { font-family: var(--sans); font-weight: 600; font-size: 1.35rem; }
.form-sub { margin-top: 0.5rem; margin-bottom: 1.6rem; font-size: 0.85rem; color: var(--ink-dim); line-height: 1.7; }

.field { margin-bottom: 1rem; }
.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1.05rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.92rem;
  outline: none;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.12),
    inset 0 2px 8px rgba(2, 5, 12, 0.35);
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(135, 145, 168, 0.6); }
.field input:focus,
.field textarea:focus {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.18),
    inset 0 2px 8px rgba(2, 5, 12, 0.3),
    0 0 0 3px rgba(219, 230, 245, 0.14),
    0 0 24px -6px rgba(190, 215, 250, 0.35);
}
.field textarea { min-height: 110px; resize: vertical; }

.field-error { margin: -0.4rem 0 0.9rem; font-size: 0.8rem; color: #e8b4b4; }
.field-error[hidden] { display: none; }

/* POPIA consent checkbox on the contact form */
.field-consent { margin: 1.3rem 0 0.6rem; }
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-soft);
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}
.consent-check input {
  width: 17px;
  height: 17px;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.consent-check a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(219, 230, 245, 0.4);
  transition: text-decoration-color 0.3s var(--ease-out);
}
.consent-check a:hover { text-decoration-color: var(--accent-bright); }
.field-consent .field-error { margin: 0.5rem 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 3;
  padding: 3.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 12, 26, 0.55);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.2rem;
}
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer-brand { display: flex; flex-direction: column; gap: 0.9rem; }
.footer-brand img { width: 52px; height: 52px; object-fit: contain; }
.footer-brand p { max-width: 22rem; font-family: var(--sans); font-style: normal; font-size: 0.92rem; color: var(--ink-soft); }

.footer-nav { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-nav a, .footer-contact a {
  width: fit-content;
  font-size: 0.85rem;
  color: var(--ink-dim);
  transition: color 0.3s var(--ease-out);
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--accent-bright); }

.footer-contact { display: flex; flex-direction: column; gap: 0.55rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
}

/* ---------- Cookie consent ---------- */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 460px;
  margin-inline: auto;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius-lg);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.7s var(--ease-out), opacity 0.7s var(--ease-out);
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }

.cookie-title { font-family: var(--sans); font-weight: 600; font-size: 1rem; color: var(--accent-bright); }
.cookie-text { margin-top: 0.55rem; font-size: 0.8rem; color: var(--ink-soft); line-height: 1.7; }
.cookie-actions { display: flex; gap: 0.7rem; margin-top: 1.1rem; }

/* Footer "Cookie settings" — quiet inline control for changing/withdrawing
   consent at any time (POPIA s11(3)) */
.cookie-settings {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(135, 145, 168, 0.4);
  transition: color 0.3s var(--ease-out), text-decoration-color 0.3s var(--ease-out);
}
.cookie-settings:hover { color: var(--accent-bright); text-decoration-color: var(--accent-bright); }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition-delay: var(--reveal-delay, 0s);
}

/* No-JS fallback: show everything */
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg-video { display: none; }
  .grain { animation: none; }
  .marquee-track { animation: none; }
  .phone, .phone-logo, .pulse-dot, .cue-line { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn::after { display: none; }
  .btn, .btn:hover { transform: none; }
}

/* ---------- Mobile tweaks ---------- */
@media (max-width: 700px) {
  .section { padding: 5rem 0; }
  .hero { padding-top: 7.5rem; }
  .hero-meta { gap: 0.9rem 1.6rem; margin-top: 2.6rem; }
  .scroll-cue { display: none; }
  .work-item { max-width: 84vw; }
  .section-head { margin-bottom: 2.4rem; }
  .principles li { padding: 1.2rem 0.2rem; }
}

/* ---------- Legal pages (privacy policy, terms & conditions) ----------
   Lives here — NOT in inline <style> blocks — because the site's strict
   Content-Security-Policy blocks inline styles on the live host. */
.legal-page { position: relative; z-index: 3; padding: 9rem 0 7rem; }
.legal-wrap { max-width: 860px; }
.legal-page h1 { margin-bottom: 4rem; }
.legal-back { margin-top: 2rem; }

.legal-panel { padding: clamp(2.2rem, 6vw, 5rem); border-radius: var(--radius-lg); }
.legal-panel h2 { font-weight: 600; font-size: 1.3rem; margin: 6.5rem 0 2.5rem; }
.legal-panel h2:first-of-type, .legal-panel h2.legal-first { margin-top: 0; }
.legal-panel p { color: var(--ink-soft); font-size: 1.05rem; line-height: 2.1; margin: 0 0 3rem; }
.legal-panel ul { list-style: disc; padding-left: 1.4rem; display: grid; gap: 1.8rem; margin: 0 0 3rem; }
.legal-panel li { color: var(--ink-soft); font-size: 1.05rem; line-height: 2.1; }
.legal-panel a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 3px; }
