/* =========================================================
   Maghraby.tech — futuristic portfolio · pure CSS
   Palette: deep blue-black · cyan · violet · acid green
   ========================================================= */

:root {
  --bg:         #04060a;
  --bg-2:       #080b12;
  --panel:      rgba(255, 255, 255, 0.025);
  --panel-2:    rgba(255, 255, 255, 0.045);
  --line:       rgba(255, 255, 255, 0.08);
  --line-2:     rgba(255, 255, 255, 0.14);

  --ink:        #e9ecf3;
  --ink-2:      #b5bbc9;
  --ink-3:      #6e7480;
  --ink-4:      #3d424c;

  --cyan:       #00e5ff;
  --cyan-soft:  #58f1ff;
  --violet:     #b48cff;
  --green:      #9bff5c;
  --amber:      #ffc857;

  --glow-cyan:   0 0 28px rgba(0, 229, 255, .45);
  --glow-violet: 0 0 28px rgba(180, 140, 255, .35);
  --glow-green:  0 0 24px rgba(155, 255, 92, .38);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 99px;

  --maxw: 1240px;
  --pad:  clamp(20px, 4vw, 40px);

  --serif:  'Instrument Serif', serif;
  --sans:   'Space Grotesk', system-ui, sans-serif;
  --mono:   'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--cyan); color: #000;
  padding: 10px 14px; font-weight: 600; z-index: 999;
  font-family: var(--mono); font-size: 12px;
}
.skip:focus { left: 16px; top: 16px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* =========================================================
   Animated background layers
   ========================================================= */
.bg-layer {
  position: fixed; inset: 0;
  z-index: -1; pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0, 229, 255, .07), transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 50%, rgba(180, 140, 255, .06), transparent 60%),
    var(--bg);
}
.bg-grid {
  position: absolute; inset: -1px;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
  animation: gridShift 28s linear infinite;
}
@keyframes gridShift {
  to { background-position: 56px 56px, 56px 56px; }
}
.bg-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .55;
  mix-blend-mode: screen;
  will-change: transform;
}
.bg-orb--a {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #00e5ff 0%, transparent 70%);
  top: -120px; left: -80px;
  animation: orbA 22s ease-in-out infinite alternate;
}
.bg-orb--b {
  width: 460px; height: 460px;
  background: radial-gradient(circle, #b48cff 0%, transparent 70%);
  top: 30%; right: -120px;
  animation: orbB 28s ease-in-out infinite alternate;
}
.bg-orb--c {
  width: 380px; height: 380px;
  background: radial-gradient(circle, #9bff5c 0%, transparent 70%);
  bottom: -120px; left: 40%;
  animation: orbC 32s ease-in-out infinite alternate;
  opacity: .3;
}
@keyframes orbA { to { transform: translate(80px, 120px); } }
@keyframes orbB { to { transform: translate(-100px, -60px); } }
@keyframes orbC { to { transform: translate(60px, -100px); } }

.bg-scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px
  );
  opacity: .5; pointer-events: none;
}
.bg-noise {
  position: absolute; inset: 0;
  opacity: .055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* =========================================================
   Custom cursor — cyber reticle
   ========================================================= */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 0; height: 0;
  z-index: 9999;
  pointer-events: none;
  mix-blend-mode: screen;
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
  body.has-cursor { cursor: none; }
  body.has-cursor a, body.has-cursor button, body.has-cursor input { cursor: none; }
}
.cursor__dot,
.cursor__ring,
.cursor__cross,
.cursor__readout {
  position: absolute; left: 0; top: 0;
  pointer-events: none;
  will-change: transform;
}
.cursor__dot {
  width: 5px; height: 5px;
  background: var(--cyan);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--cyan);
  transition: background .2s, transform .15s;
}
.cursor__ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(0, 229, 255, .6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width .3s cubic-bezier(.2,.8,.2,1),
    height .3s cubic-bezier(.2,.8,.2,1),
    border-color .25s,
    background .25s;
  background:
    radial-gradient(circle at 50% 50%, transparent 60%, rgba(0,229,255,.04) 100%);
  box-shadow:
    inset 0 0 12px rgba(0,229,255,.15),
    0 0 16px rgba(0,229,255,.1);
}
.cursor__ring::before,
.cursor__ring::after {
  content: "";
  position: absolute;
  width: 6px; height: 6px;
  border: 1px solid var(--cyan);
}
.cursor__ring::before {
  top: -1px; left: -1px;
  border-right: 0; border-bottom: 0;
}
.cursor__ring::after {
  bottom: -1px; right: -1px;
  border-left: 0; border-top: 0;
}
.cursor__cross {
  width: 60px; height: 60px;
  transform: translate(-50%, -50%);
  opacity: .4;
}
.cursor__cross .line-h,
.cursor__cross .line-v {
  position: absolute; background: rgba(0,229,255,.5);
}
.cursor__cross .line-h {
  left: -20px; right: -20px; top: 50%;
  height: 1px; transform: translateY(-50%);
}
.cursor__cross .line-v {
  top: -20px; bottom: -20px; left: 50%;
  width: 1px; transform: translateX(-50%);
}
.cursor__readout {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--cyan);
  white-space: nowrap;
  padding: 4px 8px;
  background: rgba(0, 229, 255, .07);
  border: 1px solid rgba(0, 229, 255, .35);
  border-radius: 3px;
  transform: translate(22px, 22px);
  letter-spacing: .12em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.cursor.is-hover .cursor__ring {
  width: 56px; height: 56px;
  border-color: var(--cyan);
  background: radial-gradient(circle, rgba(0,229,255,.06), transparent 70%);
}
.cursor.is-hover .cursor__dot { transform: translate(-50%, -50%) scale(1.4); }
.cursor.is-click .cursor__ring { width: 24px; height: 24px; }
.cursor.is-click .cursor__dot { background: var(--violet); box-shadow: 0 0 10px var(--violet); }

@media (prefers-reduced-motion: reduce) {
  .cursor { display: none !important; }
}

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(4, 6, 10, .55);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 600; letter-spacing: -.01em;
}
.brand__mark {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--cyan);
  background: linear-gradient(135deg, rgba(0,229,255,.07), rgba(180,140,255,.04));
  box-shadow: inset 0 0 12px rgba(0,229,255,.1);
}
.brand__word { font-size: 16px; }
.brand__word i {
  font-style: normal; color: var(--ink-3); font-weight: 400;
}
.nav__links {
  display: flex; gap: 6px; align-items: center;
}
.nav__links a {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--ink-2);
  padding: 8px 12px;
  border-radius: 6px;
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--ink); background: rgba(255,255,255,.04); }

@media (max-width: 880px) {
  .nav__links { display: none; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 13px; letter-spacing: .04em;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--ink);
  transition: transform .25s, background .25s, border-color .25s, color .25s, box-shadow .25s;
  position: relative;
  text-decoration: none;
  will-change: transform;
}
.btn--sm { padding: 9px 16px; font-size: 12px; }
.btn--primary {
  background: var(--cyan);
  color: #001114;
  border-color: var(--cyan);
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(0,229,255,.3), 0 14px 30px -10px rgba(0,229,255,.6);
}
.btn--primary:hover {
  box-shadow: 0 0 0 1px rgba(0,229,255,.6), 0 18px 40px -10px rgba(0,229,255,.85);
  transform: translateY(-1px);
}
.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0,229,255,.05);
}
.btn--violet {
  background: transparent;
  border-color: rgba(180,140,255,.4);
  color: var(--violet);
}
.btn--violet:hover {
  background: rgba(180,140,255,.07);
  border-color: var(--violet);
  box-shadow: var(--glow-violet);
}

/* =========================================================
   Section primitives
   ========================================================= */
section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.section-eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: .18em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
}
.section-eyebrow::before {
  content: ""; width: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
h2.section-title {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.05;
  margin: 14px 0 18px;
}
.section-lede {
  color: var(--ink-2);
  font-size: clamp(15px, 1.3vw, 17px);
  max-width: 680px;
  margin-bottom: 56px;
  text-wrap: pretty;
}
.serif-em { font-family: var(--serif); font-style: italic; color: var(--cyan); font-weight: 400; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding-top: clamp(60px, 9vw, 100px);
  padding-bottom: clamp(60px, 9vw, 100px);
  position: relative;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero__status {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px;
  padding: 8px 14px; border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--panel);
  color: var(--ink-2);
  margin-bottom: 28px;
}
.hero__status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}
.hero__h1 {
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -.025em;
  margin: 0 0 22px;
}
.hero__h1 .em-violet { color: var(--violet); }
.hero__h1 .em-cyan { color: var(--cyan); }
.hero__h1 .stroke-line {
  position: relative;
  display: inline;
  background-image: linear-gradient(90deg, var(--cyan), var(--violet));
  background-repeat: no-repeat;
  background-size: 0 3px;
  background-position: 0 100%;
  padding-bottom: 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: background-size 1.4s cubic-bezier(.2,.8,.2,1) .4s;
}
.hero__h1.is-visible .stroke-line,
.hero__h1.reveal.is-visible .stroke-line {
  background-size: 100% 3px;
}

.hero__sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-2);
  max-width: 600px;
  margin-bottom: 36px;
  text-wrap: pretty;
}
.hero__ctas {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 48px;
}
/* =========================================================
   HERO — stats strip (full hero width)
   ========================================================= */
.hero__stats {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.012) 50%, transparent);
}
.stat {
  position: relative;
  padding: 28px 26px;
  display: flex; flex-direction: column;
  gap: 10px;
  transition: background .25s;
}
.stat + .stat::before {
  content: "";
  position: absolute; left: 0; top: 22px; bottom: 22px;
  width: 1px; background: var(--line);
}
.stat:hover { background: rgba(255,255,255,.018); }
.stat__idx {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--ink-4);
  text-transform: uppercase;
}
.stat__k {
  font-family: var(--serif);
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.stat__k i {
  font-style: normal;
  font-family: var(--sans);
  font-weight: 400;
  font-size: .68em;
  margin: 0 .12em;
  color: var(--cyan);
  vertical-align: 6%;
}
.stat__v {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--ink-3);
  line-height: 1.5;
}
.stat::after {
  content: "";
  position: absolute; left: 26px; right: 26px; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.stat:hover::after { transform: scaleX(1); }

@media (max-width: 880px) {
  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat { padding: 20px 18px; }
  .stat + .stat::before { display: none; }
  .stat:nth-child(2n)::before {
    content: ""; position: absolute; left: 0; top: 22px; bottom: 22px;
    width: 1px; background: var(--line);
  }
  .stat:not(:nth-last-child(-n+2))::after {
    content: ""; position: absolute; left: 18px; right: 18px; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line), transparent);
    transform: none;
  }
}
@media (max-width: 520px) {
  .hero__stats { grid-template-columns: 1fr; }
  .stat:nth-child(2n)::before { display: none; }
  .stat:not(:last-child)::after {
    content: ""; position: absolute; left: 18px; right: 18px; bottom: 0;
    height: 1px; background: var(--line); transform: none;
  }
}

/* Hero portrait card (hologram frame) */
.holo {
  position: relative;
  border-radius: var(--r-lg);
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(0,229,255,.18), rgba(180,140,255,.12) 50%, rgba(155,255,92,.1));
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    0 30px 80px -20px rgba(0,229,255,.4),
    0 30px 80px -30px rgba(180,140,255,.5);
  transform-style: preserve-3d;
  will-change: transform;
  isolation: isolate;
}
.holo::before {
  content: ""; position: absolute; inset: 0;
  border-radius: var(--r-lg);
  padding: 1px;
  background: conic-gradient(from 180deg, var(--cyan), var(--violet), var(--green), var(--cyan));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: holoSpin 8s linear infinite;
  pointer-events: none;
}
@keyframes holoSpin { to { filter: hue-rotate(360deg); } }
.holo__inner {
  position: relative;
  border-radius: calc(var(--r-lg) - 6px);
  overflow: hidden;
  background: linear-gradient(160deg, #0a0d14 0%, #060810 100%);
  aspect-ratio: 4 / 5;
}
.holo__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.05);
}
.holo__scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 229, 255, .04) 0 2px,
    transparent 2px 4px
  );
  pointer-events: none;
}
.holo__chrome {
  position: absolute; top: 12px; left: 12px; right: 12px;
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10px;
  color: var(--cyan); letter-spacing: .1em; text-transform: uppercase;
  z-index: 2;
}
.holo__chrome .id {
  background: rgba(0, 229, 255, .12);
  border: 1px solid rgba(0, 229, 255, .3);
  padding: 4px 8px; border-radius: 4px;
}
.holo__chrome .rec::before {
  content: ""; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); margin-right: 6px;
  vertical-align: middle;
  animation: pulse 1.6s ease-in-out infinite;
}
.holo__meta {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  display: flex; justify-content: space-between; gap: 10px;
  font-family: var(--mono); font-size: 10px;
  color: var(--ink-2); letter-spacing: .06em;
  z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,.65), transparent);
  padding: 16px 4px 0;
}
.holo__meta b { color: var(--ink); font-weight: 500; }
.holo__beam {
  position: absolute; left: 0; right: 0; top: -50%; height: 60px;
  background: linear-gradient(180deg, transparent, rgba(0,229,255,.4), transparent);
  filter: blur(8px);
  animation: beam 4.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes beam {
  0% { top: -10%; opacity: 0; }
  20% { opacity: 1; }
  100% { top: 110%; opacity: 0; }
}

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__h1 { font-size: clamp(36px, 9vw, 56px); }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.about__copy p {
  font-size: 17px; color: var(--ink-2);
  max-width: 56ch; margin: 0 0 18px;
  text-wrap: pretty;
}
.about__copy p strong { color: var(--ink); font-weight: 500; }
.about__industries {
  margin-top: 32px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.chip {
  font-family: var(--mono); font-size: 12px;
  padding: 6px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--ink-2);
}

/* Cyber ID card */
.id-card {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background:
    linear-gradient(160deg, rgba(0,229,255,.06), rgba(180,140,255,.03)),
    var(--bg-2);
  padding: 22px;
  overflow: hidden;
  isolation: isolate;
}
.id-card::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 90% 0%, rgba(0,229,255,.12), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(180,140,255,.10), transparent 50%);
  z-index: -1;
}
.id-card__head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.id-card__head .live {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--green);
}
.id-card__head .live::before {
  content: ""; width: 6px; height: 6px;
  border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}
.id-card__body { display: flex; gap: 20px; align-items: center; }
.id-card__photo {
  width: 110px; height: 140px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line-2);
  position: relative;
  flex-shrink: 0;
  background: var(--bg);
}
.id-card__photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.05);
}
.id-card__photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 60%, rgba(0,0,0,.4) 100%),
    repeating-linear-gradient(0deg, rgba(0,229,255,.05) 0 1px, transparent 1px 3px);
}
.id-card__info { flex: 1; }
.id-card__name {
  font-size: 20px; font-weight: 600;
  letter-spacing: -.01em; margin-bottom: 4px;
}
.id-card__role {
  font-size: 13px; color: var(--ink-2);
  margin-bottom: 14px; line-height: 1.4;
}
.id-card__rows {
  display: grid; gap: 6px; font-family: var(--mono); font-size: 11.5px;
}
.id-card__rows .row { display: flex; justify-content: space-between; gap: 10px; }
.id-card__rows .k { color: var(--ink-3); }
.id-card__rows .v { color: var(--ink); }

.id-card__strip {
  margin-top: 18px;
  height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--green));
  opacity: .8;
}
.id-card__code {
  margin-top: 14px;
  font-family: var(--mono); font-size: 10px;
  color: var(--ink-3);
  display: flex; justify-content: space-between;
}

/* Skill orbit (about) */
.about__orbit {
  margin-top: 28px;
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  grid-template-columns: repeat(2, 1fr);
}
.about__orbit > div {
  background: var(--bg-2);
  padding: 14px 16px;
}
.about__orbit .k {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 4px;
}
.about__orbit .v { font-size: 14px; color: var(--ink); }

@media (max-width: 880px) {
  .about__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   SERVICES
   ========================================================= */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 16px;
}
.svc {
  position: relative;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s, box-shadow .35s;
  overflow: hidden;
  isolation: isolate;
  min-height: 280px;
  display: flex; flex-direction: column;
}
.svc::before {
  content: ""; position: absolute; inset: -1px;
  background: linear-gradient(135deg, rgba(0,229,255,.4), transparent 40%, rgba(180,140,255,.3));
  opacity: 0; transition: opacity .35s;
  border-radius: var(--r-md); z-index: -1;
  padding: 1px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}
.svc:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 30px 60px -20px rgba(0,229,255,.25), 0 20px 40px -20px rgba(180,140,255,.2);
}
.svc:hover::before { opacity: 1; }

.svc__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 10px; margin-bottom: 20px;
}
.svc__num {
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-3);
}
.svc__tag {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
}
.svc__title {
  font-size: 21px; font-weight: 600;
  letter-spacing: -.01em; margin-bottom: 12px;
  line-height: 1.2;
}
.svc__body {
  color: var(--ink-2); font-size: 14.5px;
  margin-bottom: 20px;
  flex: 1; line-height: 1.55;
}
.svc__tools {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding-top: 16px; border-top: 1px dashed var(--line);
}
.svc__tools span {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3);
}
.svc__tools span + span::before {
  content: "·"; margin-right: 6px; color: var(--ink-4);
}

/* =========================================================
   PROJECTS — case-study vault
   ========================================================= */
.proj {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  margin-bottom: 20px;
  isolation: isolate;
  transition: border-color .3s, box-shadow .3s;
}
.proj:hover {
  border-color: var(--line-2);
  box-shadow: 0 30px 60px -30px rgba(0,229,255,.2);
}
.proj__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 0;
}
.proj__body {
  padding: clamp(28px, 4vw, 44px);
}
.proj__head {
  display: flex; gap: 14px; align-items: center;
  margin-bottom: 18px;
}
.proj__tag {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0,229,255,.08);
  border: 1px solid rgba(0,229,255,.25);
  padding: 4px 10px; border-radius: var(--r-pill);
}
.proj__num {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3);
}
.proj__title {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 600;
  letter-spacing: -.015em;
  margin-bottom: 24px;
  line-height: 1.15;
}
.proj__rows { display: grid; gap: 18px; }
.proj__row {
  padding-left: 18px; border-left: 2px solid var(--line-2);
  position: relative;
}
.proj__row::before {
  content: ""; position: absolute; left: -5px; top: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.proj__row[data-k="solution"]::before { background: var(--violet); box-shadow: 0 0 10px var(--violet); }
.proj__row[data-k="outcome"]::before  { background: var(--green);  box-shadow: 0 0 10px var(--green); }
.proj__row .k {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 5px;
}
.proj__row .v {
  font-size: 15px; color: var(--ink); line-height: 1.55;
}
.proj__stack {
  margin-top: 24px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.proj__stack span {
  font-family: var(--mono); font-size: 11px;
  padding: 5px 11px; border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink-2);
}

/* Right-side metric panel */
.proj__metric {
  position: relative;
  background:
    radial-gradient(circle at 80% 20%, rgba(0,229,255,.12), transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(180,140,255,.1), transparent 60%),
    linear-gradient(160deg, #080b12 0%, #0a0e16 100%);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(28px, 4vw, 44px);
  border-left: 1px solid var(--line);
  overflow: hidden;
  min-height: 100%;
}
.proj__metric::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 80%);
  opacity: .5;
}
.proj__metric .k {
  position: relative;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
}
.proj__metric .v {
  position: relative;
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 76px);
  line-height: 1;
  color: var(--ink);
  margin: 18px 0 0;
  background: linear-gradient(135deg, var(--ink) 30%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.proj__metric .sig {
  position: relative;
  font-family: var(--mono); font-size: 10.5px;
  color: var(--ink-3);
  display: flex; justify-content: space-between;
  margin-top: auto; padding-top: 32px;
  letter-spacing: .08em;
}

.proj.reverse .proj__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.proj.reverse .proj__body { order: 2; }
.proj.reverse .proj__metric {
  order: 1;
  border-left: none; border-right: 1px solid var(--line);
}

@media (max-width: 880px) {
  .proj__inner, .proj.reverse .proj__inner { grid-template-columns: 1fr; }
  .proj.reverse .proj__body { order: 1; }
  .proj.reverse .proj__metric { order: 0; border-right: none; border-bottom: 1px solid var(--line); }
  .proj__metric { border-left: none; border-bottom: 1px solid var(--line); }
}

/* =========================================================
   SKILLS — animated progress dashboard
   ========================================================= */
.skills__head {
  display: flex; justify-content: space-between; align-items: end;
  flex-wrap: wrap; gap: 20px;
  margin-bottom: 48px;
}
.skills__legend {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: .04em;
}
.skills__legend i {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 2px; margin-right: 6px; vertical-align: middle;
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 18px;
}
.skgroup {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
  background: var(--panel);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}
.skgroup__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 22px; gap: 10px;
}
.skgroup__name {
  font-size: 17px; font-weight: 600;
  letter-spacing: -.01em;
}
.skgroup__kw {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: .04em;
  text-align: right;
}
.skill { margin-bottom: 16px; }
.skill:last-child { margin-bottom: 0; }
.skill__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 7px;
  font-family: var(--mono); font-size: 12.5px;
}
.skill__name { color: var(--ink); letter-spacing: .01em; }
.skill__pct { color: var(--ink-3); }
.skill__bar {
  position: relative;
  height: 6px;
  background: var(--bg-2);
  border-radius: var(--r-pill);
  overflow: hidden;
  border: 1px solid var(--line);
}
.skill__fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border-radius: var(--r-pill);
  box-shadow: 0 0 16px rgba(0,229,255,.5);
  transition: width 1.4s cubic-bezier(.2,.8,.2,1);
}
.skill__fill::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0;
  width: 30px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7));
  filter: blur(4px);
  animation: shimmer 2.6s ease-in-out infinite;
  opacity: .8;
}
@keyframes shimmer {
  0% { transform: translateX(-200%); opacity: 0; }
  40% { opacity: .8; }
  100% { transform: translateX(200%); opacity: 0; }
}

/* circular skills */
.skills__hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 48px;
}
.skring {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  padding: 22px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  position: relative; overflow: hidden;
}
.skring__svg {
  position: relative;
  width: 110px; height: 110px;
  margin-bottom: 14px;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(0,229,255,.05) 0%,
      rgba(0,229,255,.015) 40%,
      transparent 70%);
  animation: ringHalo 5s ease-in-out infinite;
}
.skring--violet .skring__svg { animation-name: ringHaloV; }
.skring--green  .skring__svg { animation-name: ringHaloG; }
@keyframes ringHalo {
  0%, 100% { box-shadow: inset 0 0 24px rgba(0,229,255,.06), inset 0 0 0 1px rgba(255,255,255,.03), 0 0 0 rgba(0,229,255,0); }
  50%      { box-shadow: inset 0 0 36px rgba(0,229,255,.16), inset 0 0 0 1px rgba(0,229,255,.22), 0 0 36px rgba(0,229,255,.22); }
}
@keyframes ringHaloV {
  0%, 100% { box-shadow: inset 0 0 24px rgba(180,140,255,.06), inset 0 0 0 1px rgba(255,255,255,.03), 0 0 0 rgba(180,140,255,0); }
  50%      { box-shadow: inset 0 0 36px rgba(180,140,255,.18), inset 0 0 0 1px rgba(180,140,255,.22), 0 0 36px rgba(180,140,255,.22); }
}
@keyframes ringHaloG {
  0%, 100% { box-shadow: inset 0 0 24px rgba(155,255,92,.06), inset 0 0 0 1px rgba(255,255,255,.03), 0 0 0 rgba(155,255,92,0); }
  50%      { box-shadow: inset 0 0 36px rgba(155,255,92,.18), inset 0 0 0 1px rgba(155,255,92,.22), 0 0 36px rgba(155,255,92,.22); }
}
.skring__track { stroke: var(--line); stroke-width: 6; fill: none; }
.skring__svg svg {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.skring__fill {
  stroke-width: 6; fill: none;
  stroke-linecap: round;
  stroke-dasharray: 251.327;
  stroke-dashoffset: 251.327;
  transition: stroke-dashoffset 1.6s cubic-bezier(.2,.8,.2,1);
  filter: drop-shadow(0 0 6px currentColor) drop-shadow(0 0 14px currentColor);
}
.skring::before {
  content: ""; position: absolute; inset: -1px;
  border-radius: var(--r-md);
  background: radial-gradient(circle at 50% 30%, rgba(0,229,255,.18), transparent 60%);
  opacity: 0; transition: opacity .4s;
  pointer-events: none;
}
.skring:hover::before { opacity: 1; }
.skring--violet::before { background: radial-gradient(circle at 50% 30%, rgba(180,140,255,.18), transparent 60%); }
.skring--green::before  { background: radial-gradient(circle at 50% 30%, rgba(155,255,92,.18), transparent 60%); }
.skring--cyan .skring__fill   { stroke: var(--cyan); color: var(--cyan); }
.skring--violet .skring__fill { stroke: var(--violet); color: var(--violet); }
.skring--green .skring__fill  { stroke: var(--green); color: var(--green); }
.skring__num {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 18px; font-weight: 600;
  color: var(--ink);
}
.skring__name {
  font-size: 13.5px; font-weight: 500;
}
.skring__sub {
  font-family: var(--mono); font-size: 10px;
  color: var(--ink-3); margin-top: 4px;
  letter-spacing: .08em; text-transform: uppercase;
}

/* =========================================================
   PROCESS
   ========================================================= */
.process__list {
  display: grid; gap: 10px;
  margin-top: 32px;
  counter-reset: step;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 80px 220px 1fr;
  gap: 24px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  align-items: center;
  transition: border-color .3s, background .3s, transform .3s;
  counter-increment: step;
  overflow: hidden;
}
.step::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  transform: scaleY(0); transform-origin: top;
  transition: transform .5s;
}
.step:hover {
  border-color: var(--line-2);
  background: var(--panel-2);
  transform: translateX(4px);
}
.step:hover::before { transform: scaleY(1); }
.step__num {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  color: var(--ink-3);
}
.step:hover .step__num { color: var(--cyan); }
.step__num::before {
  content: counter(step, decimal-leading-zero);
}
.step__name {
  font-size: 22px; font-weight: 500;
  letter-spacing: -.01em;
  font-family: var(--serif);
  font-style: italic;
}
.step__copy { color: var(--ink-2); font-size: 14.5px; }

@media (max-width: 720px) {
  .step { grid-template-columns: 60px 1fr; gap: 14px; padding: 18px 20px; }
  .step__num { font-size: 32px; }
  .step__copy { grid-column: 1 / -1; padding-top: 4px; }
  .step__name { font-size: 18px; }
}

/* =========================================================
   SEO / GEO section
   ========================================================= */
.seo__panel {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 0% 0%, rgba(0,229,255,.06), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(155,255,92,.06), transparent 50%),
    var(--bg-2);
  padding: clamp(32px, 4vw, 56px);
  overflow: hidden;
  position: relative;
}
.seo__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.seo__h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.1;
  margin-bottom: 18px;
}
.seo__body { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.seo__body strong { color: var(--ink); font-weight: 500; }
.seo__clusters {
  display: grid; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.cluster {
  background: var(--bg-2);
  padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px;
  font-family: var(--mono); font-size: 13px;
  transition: background .25s;
}
.cluster:hover { background: var(--bg); }
.cluster .term { color: var(--ink); }
.cluster .meta {
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3);
}
.cluster .meta b { color: var(--green); font-weight: 500; }

@media (max-width: 880px) {
  .seo__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  position: relative;
  text-align: center;
}
.contact__big {
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -.025em;
  margin: 0 0 32px;
  max-width: 16ch; margin-left: auto; margin-right: auto;
}
.contact__big em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.contact__ctas {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 56px;
}
.contact__info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  max-width: 920px; margin: 0 auto;
  text-align: left;
}
.contact__info > div {
  background: var(--bg-2);
  padding: 22px;
}
.contact__info .k {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 6px;
}
.contact__info .v { color: var(--ink); font-size: 14.5px; }
.contact__info a:hover { color: var(--cyan); }

/* =========================================================
   FOOTER
   ========================================================= */
.foot {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  background: rgba(4,6,10,.6);
}
.foot__inner {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr;
  gap: 32px;
  align-items: start;
}
.foot__mark { display: flex; gap: 14px; align-items: center; }
.foot__name { font-weight: 600; font-size: 16px; }
.foot__role { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.foot__nav { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--mono); font-size: 12.5px; }
.foot__nav a { color: var(--ink-2); }
.foot__nav a:hover { color: var(--cyan); }
.foot__social {
  display: flex; gap: 10px; flex-direction: column;
  align-items: flex-end; font-family: var(--mono); font-size: 12.5px;
}
.foot__social a { color: var(--ink-2); }
.foot__social a:hover { color: var(--cyan); }
.foot__legal {
  grid-column: 1 / -1;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px dashed var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-family: var(--mono); font-size: 11.5px;
  color: var(--ink-3); letter-spacing: .04em;
}
@media (max-width: 720px) {
  .foot__inner { grid-template-columns: 1fr; }
  .foot__social { align-items: flex-start; flex-direction: row; }
}

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 60ms); }

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .bg-orb, .bg-grid, .holo__beam, .skill__fill::after { animation: none !important; }
  .cursor { display: none !important; }
}

/* =========================================================
   Mobile tuning — reduce expensive effects
   ========================================================= */
@media (max-width: 720px) {
  .bg-orb { filter: blur(60px); }
  .bg-noise { display: none; }
  .holo__beam { display: none; }
  section { padding: 64px 0; }
}

/* =========================================================
   MOTION SYSTEM — calm, intentional
   Three categories:
     1. Slow ambient (background only — orbs, grid drift)
     2. Reveal-on-scroll (one-shot, fade + rise)
     3. Hover/focus (cursor-driven, never auto-playing)
   ========================================================= */

/* Scroll progress bar — subtle 2px top accent */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 100;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
}

/* Reveal: cleaner single curve for everything */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .8s cubic-bezier(.22,.61,.36,1),
    transform .8s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Service cards — subtle lift on hover, single-pass sheen, no continuous loops */
.svc {
  transition:
    transform .35s cubic-bezier(.2,.8,.2,1),
    border-color .35s,
    box-shadow .45s;
}
.svc:hover {
  transform: translateY(-6px);
  border-color: rgba(0,229,255,.22);
  box-shadow:
    0 24px 48px -24px rgba(0,229,255,.28),
    0 14px 28px -16px rgba(180,140,255,.18);
}

/* Project cards — subtle hover */
.proj {
  transition: border-color .3s, transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
}
.proj:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 60px -32px rgba(0,229,255,.22);
}

/* Process step hover — left bar + lift */
.step {
  transition:
    border-color .3s,
    transform .3s cubic-bezier(.2,.8,.2,1),
    box-shadow .35s;
}
.step:hover {
  transform: translateX(4px);
  box-shadow: 0 14px 30px -20px rgba(0,229,255,.28);
}

/* Skill rings — hover scales the SVG slightly + brightens glow */
.skring {
  transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s;
}
.skring:hover {
  transform: translateY(-4px);
  border-color: rgba(0,229,255,.22);
}
.skring__svg { transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.skring:hover .skring__svg { transform: scale(1.04); }

/* Button click feedback */
.btn { transition: transform .25s, background .25s, border-color .25s, color .25s, box-shadow .25s; }
.btn:active { transform: scale(.96); }

/* Hero status dot — slow, gentle breath only */
.hero__status .dot {
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(.82); }
}

/* H1 — letter-spacing settle on reveal */
.hero__h1.reveal {
  letter-spacing: 0.02em;
  transition:
    opacity .9s cubic-bezier(.22,.61,.36,1),
    transform .9s cubic-bezier(.22,.61,.36,1),
    letter-spacing 1.2s cubic-bezier(.22,.61,.36,1);
}
.hero__h1.reveal.is-visible { letter-spacing: -0.025em; }

/* H1 underline — grows once on reveal, stays */
.hero__h1 .stroke-line {
  background-image: linear-gradient(90deg, var(--cyan), var(--violet));
  background-repeat: no-repeat;
  background-size: 0 3px;
  background-position: 0 100%;
  padding-bottom: 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: background-size 1.4s cubic-bezier(.22,.61,.36,1) .4s;
}
.hero__h1.is-visible .stroke-line { background-size: 100% 3px; }

/* Cluster rows — left bar appears on hover, no constant motion */
.cluster {
  position: relative; overflow: hidden;
  transition: background .25s, color .2s;
}
.cluster::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  transform: scaleY(0); transform-origin: top;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.cluster:hover::after { transform: scaleY(1); }
.cluster:hover .term { color: var(--cyan); }

/* Nav links — single underline grow */
.nav__links a {
  position: relative;
  transition: color .2s;
}
.nav__links a::after {
  content: ""; position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 1px; background: var(--cyan);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a:hover { color: var(--ink); background: transparent; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .scroll-progress, .hero__status .dot, .holo::before, .bg-orb, .bg-grid { animation: none !important; }
  *, *::before, *::after { transition-duration: .001ms !important; }
}

/* =========================================================
   CINEMATIC SCROLL — section scanners, ambient shadow life,
   word-by-word title reveals, parallax depth
   ========================================================= */

/* Section scanner — a thin neon line that draws across each section
   when it scrolls into view */
section { position: relative; }
section::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 229, 255, 0) 8%,
    var(--cyan) 50%,
    rgba(180, 140, 255, 0) 92%,
    transparent 100%);
  transform: scaleX(0); transform-origin: left center;
  opacity: 0;
  transition:
    transform 1.4s cubic-bezier(.22,.61,.36,1) .2s,
    opacity .4s;
  pointer-events: none;
}
section.in-view::before {
  transform: scaleX(1);
  opacity: 1;
}

/* Section index — appears top-right of each section as you enter it */
section[id]::after {
  content: attr(data-idx);
  position: absolute; top: 14px; right: var(--pad);
  font-family: var(--mono);
  font-size: 10px; letter-spacing: .18em;
  color: var(--ink-4);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .5s .3s, transform .5s .3s;
  pointer-events: none;
}
section.in-view[id]::after {
  opacity: 1; transform: translateY(0);
}

/* Word-by-word reveal for section titles + h1 */
.split-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px) rotate(2deg);
  filter: blur(6px);
  transition:
    opacity .9s cubic-bezier(.22,.61,.36,1),
    transform .9s cubic-bezier(.22,.61,.36,1),
    filter .9s cubic-bezier(.22,.61,.36,1);
  transition-delay: calc(var(--w) * 60ms);
  margin-right: .22em;
}
.split-word.is-on {
  opacity: 1;
  transform: translateY(0) rotate(0);
  filter: blur(0);
}

/* Ambient breathing shadow on cards — slow, single channel */
.svc, .skgroup, .skring, .proj, .id-card, .seo__panel {
  animation: cardBreath 6s ease-in-out infinite;
}
.svc:nth-child(2n), .skgroup:nth-child(2n), .skring:nth-child(2n) {
  animation-delay: -2s;
}
.svc:nth-child(3n), .proj:nth-child(3n) {
  animation-delay: -4s;
}
@keyframes cardBreath {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255,255,255,.02),
      0 18px 30px -22px rgba(0,229,255,.08);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(0,229,255,.06),
      0 28px 60px -28px rgba(0,229,255,.18),
      0 18px 40px -22px rgba(180,140,255,.12);
  }
}

/* Hero portrait gets a parallax shift driven by JS */
.hero__visual { will-change: transform; }

/* Scroll-driven section title underline */
.section-title {
  background-image: linear-gradient(90deg, var(--cyan), var(--violet));
  background-repeat: no-repeat;
  background-size: 0 2px;
  background-position: 0 100%;
  transition: background-size 1.4s cubic-bezier(.22,.61,.36,1) .6s;
  padding-bottom: 6px;
}
section.in-view .section-title { background-size: 30% 2px; }
section.in-view .section-title:hover { background-size: 100% 2px; }

/* Scroll progress bar — beefed slightly with subtle glow */
.scroll-progress {
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--green));
  box-shadow: 0 0 12px rgba(0,229,255,.4);
}

/* Holo card — its existing conic border now also breathes */
.holo {
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.holo:hover { transform: translateY(-4px); }

/* Performance: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  section::before, section[id]::after,
  .split-word, .svc, .skgroup, .skring, .proj, .id-card, .seo__panel {
    animation: none !important;
    opacity: 1 !important; transform: none !important; filter: none !important;
  }
  section::before { transform: scaleX(1) !important; opacity: 1 !important; }
}
