/* =========================================================
   Rami Aziz — Full-stack developer portfolio
   Dark · giant condensed type · mint→lime accent · scroll motion
   ========================================================= */

:root {
  --bg: #0a0b0d;
  --bg-2: #111317;
  --bg-3: #161a1f;
  --text: #dde6ee;
  --muted: rgba(221, 230, 238, 0.56);
  --faint: rgba(221, 230, 238, 0.14);
  --line: rgba(221, 230, 238, 0.1);
  --light: #eef2f4;
  --ink: #0a0b0d;
  --primary: #3affa0;
  --primary-2: #b6ff3a;
  --grad: linear-gradient(118deg, #3affa0 0%, #8dff5a 55%, #d4ff3a 100%);
  --silver: linear-gradient(180deg, #5d6670 0%, #dde6ee 100%);
  --display: "Big Shoulders Display", Impact, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 24px;
  --radius-lg: 56px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  color-scheme: dark;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
::selection { background: var(--primary); color: var(--ink); }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* Shared */
.display {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.005em;
}
.silver {
  background: var(--silver);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.sec-title { font-size: clamp(3.8rem, 13vw, 190px); text-align: center; }
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--primary);
}
.label::before { content: "//"; color: var(--muted); }
.sec-head { text-align: center; margin-bottom: 70px; }
.sec-head .label { margin-bottom: 18px; }
.sec-head p { max-width: 560px; margin: 20px auto 0; color: var(--muted); font-size: clamp(0.95rem, 1.4vw, 1.1rem); }
.section { padding: 130px 0; position: relative; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 28px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--grad);
  box-shadow: 0 10px 34px -12px rgba(58, 255, 160, 0.65);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  white-space: nowrap;
}
.btn i { font-size: 1.15rem; transition: transform 0.35s var(--ease); }
.btn:hover { box-shadow: 0 16px 44px -10px rgba(58, 255, 160, 0.85); }
.btn:hover i { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--faint); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--text); }
.btn--dark { background: var(--ink); color: #fff; box-shadow: none; }
.btn--dark:hover { box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.5); }
kbd {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--faint);
  border-bottom-width: 2px;
}

/* Reveal: rise out of a blur */
.reveal { opacity: 0; transform: translateY(36px); filter: blur(10px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* Header */
.header { position: fixed; inset: 0 0 auto; z-index: 50; padding: 20px 0; transition: all 0.4s var(--ease); }
.header.sticky { padding: 12px 0; background: rgba(10, 11, 13, 0.75); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header__in { width: min(1320px, 100% - 40px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font-family: var(--mono); font-weight: 500; font-size: 1.02rem; display: flex; align-items: center; }
.logo b { color: var(--primary); font-weight: 500; }
.caret { display: inline-block; width: 9px; height: 1.1em; margin-left: 4px; background: var(--primary); animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.nav { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.nav a { padding: 9px 16px; border-radius: 10px; font-size: 0.88rem; font-weight: 500; color: var(--muted); transition: all 0.3s; }
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--ink); background: var(--text); }
.header__cta { display: flex; align-items: center; gap: 14px; }
.status { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--muted); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(58, 255, 160, 0.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(58, 255, 160, 0); } }
.header .btn { padding: 12px 20px; font-size: 0.82rem; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--faint); font-size: 1.3rem; }

/* Hero */
.hero { position: relative; min-height: 100svh; padding: 150px 0 60px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(420px circle at var(--mx, 70%) var(--my, 30%), #000, transparent 75%);
  mask-image: radial-gradient(420px circle at var(--mx, 70%) var(--my, 30%), #000, transparent 75%);
  pointer-events: none;
}
.hero__glow { position: absolute; width: 620px; height: 620px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(58, 255, 160, 0.16), transparent 65%); filter: blur(30px); pointer-events: none; }
.hero__in { position: relative; width: min(1320px, 100% - 40px); margin-inline: auto; display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 40px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); font-size: 0.84rem; color: var(--muted); }
.pill b { padding: 4px 10px; border-radius: 999px; background: var(--grad); color: var(--ink); font-size: 0.72rem; font-weight: 800; }
.hero h1 { font-size: clamp(4rem, 10.4vw, 168px); margin: 26px 0 30px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.hero.loaded h1 .line > span { transform: none; }
.slot { position: relative; display: grid; height: 0.86em; overflow: hidden; }
.slot span { grid-area: 1 / 1; line-height: 0.86; transition: transform 0.7s var(--ease), opacity 0.7s; }
.slot span.prev { transform: translateY(-100%); opacity: 0; }
.slot span.next { transform: translateY(100%); opacity: 0; }
.hero__lead { max-width: 520px; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.15rem); }
.hero__lead b { color: var(--text); font-weight: 600; }
.hero__btns { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero__stack { display: flex; align-items: center; gap: 18px; margin-top: 46px; font-size: 1.6rem; color: var(--muted); flex-wrap: wrap; }
.hero__stack small { font-family: var(--mono); font-size: 0.72rem; margin-right: 6px; }
.hero__stack i { transition: color 0.3s, transform 0.3s; }
.hero__stack i:hover { color: var(--primary); transform: translateY(-3px); }

/* 3D tilt code card */
.tilt { perspective: 1200px; }
.code-card {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #15191f, #0d0f12);
  border: 1px solid var(--faint);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(58, 255, 160, 0.06), 0 0 80px -30px rgba(58, 255, 160, 0.35);
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
}
.code-card__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 0.74rem; color: var(--muted); }
.code-card__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.code-card__bar i:nth-child(2) { background: #febc2e; }
.code-card__bar i:nth-child(3) { background: #28c840; margin-right: 10px; }
.code-card pre { padding: 22px 22px 26px; font-family: var(--mono); font-size: clamp(0.72rem, 1vw, 0.86rem); line-height: 1.75; min-height: 330px; white-space: pre-wrap; }
.code-card .ln { color: rgba(221, 230, 238, 0.22); margin-right: 14px; user-select: none; }
.tk-k { color: #ff7ab2; } .tk-f { color: #6ee7ff; } .tk-s { color: #b6ff3a; } .tk-c { color: rgba(221, 230, 238, 0.38); } .tk-n { color: #ffb86b; } .tk-p { color: #3affa0; }
.typing::after { content: ""; display: inline-block; width: 8px; height: 1.05em; vertical-align: text-bottom; background: var(--primary); animation: blink 1s steps(2, start) infinite; }
.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(22, 26, 31, 0.9);
  border: 1px solid var(--faint);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
  font-weight: 600;
  transform: translateZ(60px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
}
.float-chip i { font-size: 1.3rem; color: var(--primary); }
.float-chip small { display: block; font-weight: 400; color: var(--muted); font-size: 0.72rem; }
.float-chip--a { left: -38px; bottom: 46px; }
.float-chip--b { right: -26px; top: -24px; }

/* Metrics strip */
.metrics { border-block: 1px solid var(--line); }
.metrics__row { display: grid; grid-template-columns: repeat(4, 1fr); }
.metric { padding: 34px 26px; position: relative; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric small { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); }
.metric b { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 4.6vw, 4.2rem); line-height: 1; margin: 8px 0 12px; }
.spark { width: 100%; height: 36px; }
.spark path { fill: none; stroke: url(#sparkGrad); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 2s var(--ease); }
.metric.in .spark path { stroke-dashoffset: 0; }

/* About */
.about__in { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.portrait { position: relative; border-radius: 32px; padding: 2px; background: linear-gradient(160deg, rgba(58, 255, 160, 0.7), transparent 40%, transparent 60%, rgba(212, 255, 58, 0.6)); }
.portrait img { border-radius: 30px; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(0.25) contrast(1.05); }
.portrait__badge {
  position: absolute;
  right: -22px; bottom: 40px;
  width: 128px; height: 128px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--grad);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.74rem;
  line-height: 1.2;
  box-shadow: 0 20px 50px -14px rgba(58, 255, 160, 0.6);
}
.portrait__badge b { display: block; font-family: var(--display); font-size: 2.8rem; line-height: 0.9; }
.about h2 { font-size: clamp(3.2rem, 7.4vw, 112px); margin: 16px 0 28px; }
.words { font-size: clamp(1.1rem, 1.9vw, 1.5rem); font-weight: 500; line-height: 1.55; }
.words .w { color: rgba(221, 230, 238, 0.18); transition: color 0.3s; }
.words .w.on { color: var(--text); }
.words .w.hl.on { color: var(--primary); }
.gitlog { margin-top: 36px; font-family: var(--mono); font-size: 0.84rem; border-left: 1px solid var(--faint); padding-left: 22px; display: grid; gap: 14px; }
.gitlog li { list-style: none; position: relative; color: var(--muted); }
.gitlog li::before { content: ""; position: absolute; left: -27px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--primary); }
.gitlog li span { color: #ffb86b; margin-right: 10px; }
.gitlog li b { color: var(--text); font-weight: 500; }

/* Services — light bento band */
.services { background: var(--light); color: var(--ink); border-radius: var(--radius-lg) var(--radius-lg) 0 0; z-index: 2; }
.services .sec-head .label { color: #0a8f55; }
.services .sec-head .label::before { color: rgba(10, 11, 13, 0.4); }
.services .sec-title { color: var(--ink); }
.services .sec-head p { color: rgba(10, 11, 13, 0.6); }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cell {
  position: relative;
  padding: 30px;
  min-height: 250px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(10, 11, 13, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.cell:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -34px rgba(10, 11, 13, 0.4); }
.cell--wide { grid-column: span 2; }
.cell--dark { background: var(--ink); color: var(--text); }
.cell__ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; background: rgba(10, 11, 13, 0.06); transition: transform 0.5s var(--ease), background 0.4s; }
.cell--dark .cell__ic { background: rgba(255, 255, 255, 0.07); color: var(--primary); }
.cell:hover .cell__ic { transform: rotate(-12deg) scale(1.08); background: var(--grad); color: var(--ink); }
.cell h3 { font-size: 1.35rem; font-weight: 700; margin: 22px 0 8px; letter-spacing: -0.01em; }
.cell p { color: rgba(10, 11, 13, 0.6); font-size: 0.96rem; max-width: 460px; }
.cell--dark p { color: var(--muted); }
.cell code {
  margin-top: auto;
  padding-top: 22px;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: #0a8f55;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.45s var(--ease);
}
.cell--dark code { color: var(--primary); }
.cell:hover code { opacity: 1; transform: none; }
.cell__num { position: absolute; top: 22px; right: 26px; font-family: var(--display); font-weight: 900; font-size: 3.4rem; line-height: 1; color: rgba(10, 11, 13, 0.07); }
.cell--dark .cell__num { color: rgba(255, 255, 255, 0.06); }
.cell__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cell__tags span { font-size: 0.74rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); }

/* Process — pinned horizontal scroll */
.process { height: 420vh; position: relative; background: var(--bg); border-radius: var(--radius-lg) var(--radius-lg) 0 0; margin-top: -56px; z-index: 3; }
.process__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.process__head { width: min(1320px, 100% - 40px); margin: 0 auto 40px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.process__head h2 { font-size: clamp(3.4rem, 8vw, 128px); }
.process__count { font-family: var(--mono); color: var(--muted); font-size: 0.86rem; }
.process__count b { color: var(--primary); font-weight: 500; }
.process__track { display: flex; gap: 22px; padding-left: max(20px, calc((100vw - 1320px) / 2)); will-change: transform; }
.step {
  flex: 0 0 auto;
  width: min(520px, 82vw);
  min-height: 380px;
  padding: 36px;
  border-radius: 32px;
  border: 1px solid var(--faint);
  background: radial-gradient(120% 80% at 100% 0%, rgba(58, 255, 160, 0.08), transparent 60%), var(--bg-2);
  display: flex;
  flex-direction: column;
}
.step__no { font-size: clamp(4.6rem, 8vw, 120px); }
.step h3 { font-size: 1.7rem; font-weight: 700; margin: 10px 0 10px; }
.step p { color: var(--muted); }
.step ul { list-style: none; margin-top: auto; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.step li { font-family: var(--mono); font-size: 0.72rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.step__time { font-family: var(--mono); font-size: 0.76rem; color: var(--primary); margin-top: 14px; }
.process__bar { width: min(1320px, 100% - 40px); margin: 44px auto 0; height: 3px; background: var(--faint); border-radius: 3px; overflow: hidden; }
.process__bar span { display: block; height: 100%; width: 0; background: var(--grad); }

/* Projects — hover list */
.filters { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.chip { padding: 9px 16px; border-radius: 10px; font-size: 0.84rem; font-weight: 600; color: var(--muted); box-shadow: inset 0 0 0 1px var(--faint); transition: all 0.3s; }
.chip:hover { color: var(--text); }
.chip.on { background: var(--text); color: var(--ink); box-shadow: none; }
.plist { border-top: 1px solid var(--line); }
.prow {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1.4fr 1fr 80px 50px;
  align-items: center;
  gap: 20px;
  padding: 30px 10px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: padding 0.45s var(--ease);
}
.prow::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(58, 255, 160, 0.08), transparent 70%); opacity: 0; transition: opacity 0.4s; }
.prow:hover { padding-left: 26px; }
.prow:hover::before { opacity: 1; }
.prow__no { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); }
.prow h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(2rem, 4.4vw, 4rem); line-height: 0.95; transition: color 0.3s; }
.prow:hover h3 { color: var(--primary); }
.prow h3 small { display: block; font-family: var(--body); text-transform: none; font-weight: 500; font-size: 0.9rem; color: var(--muted); margin-top: 6px; }
.prow__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.prow__tags span { font-family: var(--mono); font-size: 0.7rem; padding: 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.prow__yr { font-family: var(--mono); color: var(--muted); font-size: 0.84rem; }
.prow__go { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--faint); font-size: 1.2rem; transition: all 0.4s var(--ease); }
.prow:hover .prow__go { background: var(--grad); color: var(--ink); box-shadow: none; transform: rotate(-45deg); }
.peek {
  position: fixed;
  left: 0; top: 0;
  z-index: 30;
  width: 340px;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  clip-path: inset(50% 50% 50% 50% round 20px);
  transition: opacity 0.3s, clip-path 0.5s var(--ease);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}
.peek.on { opacity: 1; clip-path: inset(0 0 0 0 round 20px); }
.peek img { width: 100%; height: 100%; object-fit: cover; }

/* Case drawer */
.drawer-bg { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: all 0.4s; }
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 91;
  width: min(620px, 100%);
  background: var(--bg-2);
  border-left: 1px solid var(--faint);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.6s var(--ease);
}
.drawer.open { transform: none; }
.drawer.open + .drawer-bg, .drawer-bg.open { opacity: 1; visibility: visible; }
.drawer__img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.drawer__body { padding: 34px; }
.drawer__body h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 3.2rem; line-height: 0.95; margin: 10px 0 16px; }
.drawer__body p { color: var(--muted); margin-bottom: 14px; }
.drawer__body h4 { font-family: var(--mono); font-size: 0.76rem; color: var(--primary); margin: 24px 0 8px; font-weight: 500; }
.drawer__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0; }
.drawer__stats div { padding: 18px; border-radius: 16px; background: var(--bg-3); border: 1px solid var(--line); }
.drawer__stats b { display: block; font-family: var(--display); font-weight: 900; font-size: 2.2rem; line-height: 1; }
.drawer__stats span { font-size: 0.78rem; color: var(--muted); }
.drawer__x { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; background: var(--text); color: var(--ink); font-size: 1.3rem; display: grid; place-items: center; z-index: 2; }

/* API playground */
.play { display: grid; grid-template-columns: 340px 1fr; gap: 18px; }
.endpoints { display: grid; gap: 10px; align-content: start; }
.ep {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  text-align: left;
  font-family: var(--mono);
  font-size: 0.86rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: all 0.3s var(--ease);
}
.ep:hover { border-color: var(--faint); transform: translateX(4px); }
.ep.on { border-color: rgba(58, 255, 160, 0.5); background: linear-gradient(90deg, rgba(58, 255, 160, 0.1), var(--bg-2)); }
.ep em { font-style: normal; font-size: 0.68rem; font-weight: 500; padding: 3px 8px; border-radius: 6px; background: rgba(58, 255, 160, 0.14); color: var(--primary); min-width: 46px; text-align: center; }
.ep em.post { background: rgba(255, 184, 107, 0.15); color: #ffb86b; }
.term { border-radius: var(--radius); border: 1px solid var(--faint); background: #07080a; overflow: hidden; display: flex; flex-direction: column; min-height: 440px; }
.term__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 0.74rem; color: var(--muted); }
.term__bar button { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); font-size: 0.72rem; transition: all 0.3s; }
.term__bar button:hover { border-color: var(--primary); color: var(--primary); }
.term__req { padding: 16px 20px; border-bottom: 1px dashed var(--line); font-family: var(--mono); font-size: 0.82rem; display: flex; flex-wrap: wrap; gap: 14px; }
.term__req .ok { color: var(--primary); }
.term__req .ms { color: var(--muted); }
.term pre { flex: 1; padding: 20px; font-family: var(--mono); font-size: 0.84rem; line-height: 1.7; white-space: pre-wrap; overflow: auto; }
.j-k { color: #6ee7ff; } .j-s { color: #b6ff3a; } .j-n { color: #ffb86b; } .j-b { color: #ff7ab2; }

/* Stack orbit */
.orbit-wrap { overflow-x: clip; overflow-y: visible; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.orbit { position: relative; aspect-ratio: 1; width: min(560px, 100% - 60px); margin-inline: auto; }
.ring { position: absolute; border-radius: 50%; border: 1px dashed var(--faint); animation: rot var(--t, 40s) linear infinite; }
.ring--1 { inset: 28%; --t: 26s; }
.ring--2 { inset: 14%; --t: 38s; animation-direction: reverse; }
.ring--3 { inset: 0; --t: 54s; }
.orbit:hover .ring, .orbit:hover .ring .node i { animation-play-state: paused; }
@keyframes rot { to { transform: rotate(360deg); } }
.node { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateY(calc(var(--r) * -1)); }
.node i {
  position: absolute;
  left: -26px; top: -26px;
  width: 52px; height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  background: var(--bg-3);
  border: 1px solid var(--faint);
  transform: rotate(calc(var(--a) * -1));
  animation: counter var(--t, 40s) linear infinite;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.ring--2 .node i { animation-direction: reverse; }
@keyframes counter { from { rotate: 0deg; } to { rotate: -360deg; } }
.node i:hover { border-color: var(--primary); box-shadow: 0 0 24px rgba(58, 255, 160, 0.35); }
.node i::after {
  content: attr(data-n);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  translate: -50% 4px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--text);
  color: var(--ink);
  font: 600 0.7rem var(--body);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s;
}
.node i:hover::after { opacity: 1; translate: -50% 0; }
.core {
  position: absolute;
  inset: 39%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--grad);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  line-height: 0.9;
  box-shadow: 0 0 80px rgba(58, 255, 160, 0.4);
}
.legend { display: grid; gap: 14px; margin-top: 30px; }
.legend div { display: flex; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.legend b { font-family: var(--mono); font-size: 0.76rem; color: var(--primary); min-width: 90px; font-weight: 500; }
.legend span { color: var(--muted); }

/* Testimonials — vertical marquee */
.voices { display: grid; grid-template-columns: 0.9fr 1fr 1fr; gap: 18px; align-items: start; }
.voices__intro h2 { font-size: clamp(3.2rem, 6.6vw, 104px); margin: 16px 0 20px; text-align: left; }
.voices__intro p { color: var(--muted); }
.rating { display: flex; align-items: center; gap: 10px; margin-top: 26px; font-weight: 600; }
.rating i { color: var(--primary-2); }
.vcol { height: 620px; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); }
.vtrack { display: grid; gap: 16px; animation: up 34s linear infinite; }
.vcol--down .vtrack { animation-direction: reverse; animation-duration: 40s; }
.vcol:hover .vtrack { animation-play-state: paused; }
@keyframes up { to { transform: translateY(calc(-50% - 8px)); } }
.vcard { padding: 24px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); }
.vcard p { font-size: 0.96rem; }
.vcard footer { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.vcard img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.vcard b { display: block; font-size: 0.88rem; }
.vcard small { color: var(--muted); font-size: 0.78rem; }

/* Pricing */
.pricing { background: var(--light); color: var(--ink); border-radius: var(--radius-lg); margin: 0 clamp(8px, 1.5vw, 24px); }
.pricing .sec-title { color: var(--ink); }
.pricing .sec-head .label { color: #0a8f55; }
.pricing .sec-head .label::before { color: rgba(10, 11, 13, 0.4); }
.pricing .sec-head p { color: rgba(10, 11, 13, 0.6); }
.toggle { display: inline-flex; padding: 5px; border-radius: 14px; background: rgba(10, 11, 13, 0.06); margin-top: 28px; position: relative; }
.toggle button { position: relative; z-index: 1; padding: 11px 22px; border-radius: 10px; font-weight: 700; font-size: 0.88rem; color: rgba(10, 11, 13, 0.55); transition: color 0.3s; }
.toggle button.on { color: #fff; }
.toggle__knob { position: absolute; top: 5px; bottom: 5px; left: 5px; border-radius: 10px; background: var(--ink); transition: all 0.45s var(--ease); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan { padding: 36px 30px; border-radius: var(--radius); background: #fff; border: 1px solid rgba(10, 11, 13, 0.07); display: flex; flex-direction: column; position: relative; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.plan:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(10, 11, 13, 0.35); }
.plan__ic { font-size: 1.6rem; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(10, 11, 13, 0.06); }
.plan h3 { font-size: 1.3rem; font-weight: 800; margin-top: 18px; }
.plan > p { color: rgba(10, 11, 13, 0.6); font-size: 0.94rem; margin-top: 4px; }
.plan__price { font-family: var(--display); font-weight: 900; font-size: 4.2rem; line-height: 1; margin: 22px 0 4px; }
.plan__price small { font-family: var(--body); font-size: 0.86rem; font-weight: 500; color: rgba(10, 11, 13, 0.5); }
.plan ul { list-style: none; display: grid; gap: 11px; margin: 22px 0 30px; font-size: 0.94rem; }
.plan li { display: flex; gap: 10px; }
.plan li i { color: #0a8f55; }
.plan .btn { margin-top: auto; justify-content: center; }
.plan--pop { background: var(--ink); color: var(--text); }
.plan--pop .plan__ic { background: rgba(255, 255, 255, 0.07); color: var(--primary); }
.plan--pop > p, .plan--pop .plan__price small { color: var(--muted); }
.plan--pop li i { color: var(--primary); }
.plan__flag { position: absolute; top: 24px; right: 24px; padding: 5px 12px; border-radius: 999px; background: var(--grad); color: var(--ink); font-size: 0.7rem; font-weight: 800; }

/* Contact — terminal form */
.contact h2 { font-size: clamp(3.6rem, 12vw, 180px); }
.shell {
  max-width: 920px;
  margin: 60px auto 0;
  border-radius: var(--radius);
  border: 1px solid var(--faint);
  background: #07080a;
  overflow: hidden;
  box-shadow: 0 60px 120px -50px rgba(58, 255, 160, 0.25);
}
.shell__body { padding: 26px clamp(18px, 3vw, 32px) 30px; font-family: var(--mono); font-size: 0.9rem; }
.q { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; padding: 10px 0; }
.q > span { color: var(--primary); }
.q label { color: var(--muted); }
.q .ans { grid-column: 2; }
.q input, .q textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px dashed var(--faint);
  padding: 8px 0;
  font-family: var(--mono);
  outline: none;
  transition: border-color 0.3s;
}
.q input:focus, .q textarea:focus { border-bottom-color: var(--primary); }
.q textarea { resize: vertical; min-height: 70px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0; }
.opts button { padding: 7px 12px; border-radius: 8px; font-family: var(--mono); font-size: 0.78rem; border: 1px solid var(--line); color: var(--muted); transition: all 0.25s; }
.opts button:hover { color: var(--text); border-color: var(--faint); }
.opts button.on { border-color: var(--primary); color: var(--primary); background: rgba(58, 255, 160, 0.08); }
.shell__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8rem; }
.log { margin-top: 18px; display: grid; gap: 4px; }
.log div { opacity: 0; animation: logIn 0.4s var(--ease) forwards; }
.log .g { color: var(--primary); }
@keyframes logIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.contact__alt { display: flex; justify-content: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

/* Footer */
.footer { padding: 80px 0 30px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { font-family: var(--mono); font-size: 0.74rem; color: var(--primary); font-weight: 500; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; color: var(--muted); }
.footer a:hover { color: var(--text); }
.footer__about p { color: var(--muted); max-width: 300px; margin-top: 14px; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--faint); transition: all 0.3s; font-size: 1.1rem; }
.socials a:hover { background: var(--grad); color: var(--ink); box-shadow: none; }
.wordmark { font-size: clamp(5rem, 24vw, 440px); text-align: center; margin-top: 50px; line-height: 0.8; }
.footer__bot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 30px; font-family: var(--mono); font-size: 0.76rem; color: var(--muted); }
.footer__bot b { color: var(--primary); font-weight: 500; }

/* Toast + top */
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 120; translate: -50% calc(100% + 60px); padding: 14px 20px; border-radius: 14px; background: var(--text); color: var(--ink); font-weight: 600; display: flex; align-items: center; gap: 10px; transition: translate 0.5s var(--ease); }
.toast i { color: #0a8f55; font-size: 1.2rem; }
.toast.show { translate: -50% 0; }
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 50px; height: 50px; border-radius: 14px; background: var(--grad); color: var(--ink); font-size: 1.3rem; display: grid; place-items: center; opacity: 0; transform: translateY(20px); transition: all 0.4s var(--ease); }
.to-top.show { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .ring, .node i, .vtrack, .caret, .typing::after { animation: none; }
  .reveal { opacity: 1; transform: none; filter: none; }
}

/* Responsive */
@media (max-width: 1100px) {
  .hero__in { grid-template-columns: 1fr; }
  .tilt { max-width: 620px; }
  .float-chip--a { left: -10px; }
  .float-chip--b { right: -6px; }
  .prow { grid-template-columns: 50px 1.4fr 1fr 50px; }
  .prow__yr { display: none; }
  .voices { grid-template-columns: 1fr 1fr; }
  .voices__intro { grid-column: 1 / -1; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 0;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
  }
  .nav.open { opacity: 1; visibility: visible; }
  .nav a { font-family: var(--display); font-weight: 900; font-size: 3rem; text-transform: uppercase; }
  .nav a.active { background: none; color: var(--primary); }
  .burger { display: grid; place-items: center; position: relative; z-index: 2; }
  .header__cta .btn, .status { display: none; }
  .metrics__row { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(3) { border-left: 0; }
  .metric:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .about__in, .orbit-wrap, .play { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .cell--wide { grid-column: span 2; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .prow { grid-template-columns: 1fr 50px; }
  .prow__no, .prow__tags { display: none; }
  .peek { display: none; }
  .endpoints { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 90px 0; }
  .hero { padding-top: 120px; }
  .float-chip { display: none; }
  .code-card pre { min-height: 280px; }
  .bento { grid-template-columns: 1fr; }
  .cell--wide { grid-column: auto; }
  .cell code { opacity: 1; transform: none; }
  .endpoints { grid-template-columns: 1fr; }
  .voices { grid-template-columns: 1fr; }
  .vcol--down { display: none; }
  .vcol { height: 480px; }
  .q { grid-template-columns: 1fr; }
  .q .ans { grid-column: 1; }
  .drawer__stats { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .services, .process { border-radius: 32px 32px 0 0; }
  .pricing { border-radius: 32px; }
  .portrait__badge { right: 10px; width: 108px; height: 108px; }
}

/* Word slot: gradient on each word, since a clipped parent ignores child opacity */
.slot span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 0.04em;
}
.cell--full { grid-column: 1 / -1; min-height: 0 !important; padding: 26px 30px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 26px; }
.cell--full h3 { margin: 0 0 4px; }
.cell--full code { margin: 0; padding: 0; opacity: 1; transform: none; font-size: 0.86rem; }
@media (max-width: 900px) {
  .cell--full { grid-template-columns: auto 1fr; }
  .cell--full code { grid-column: 1 / -1; margin-top: 16px; }

}
