/* ==========================================================================
   Huzaifa Habib Portfolio
   Methodology: BEM (block__element--modifier). State classes use is-*.
   ========================================================================== */

:root {
  --color-accent: #6fb000;
  --color-accent-bright: #8fdc12;
  --color-accent-soft: rgba(111, 176, 0, 0.14);
  --color-bg: #050605;
  --color-bg-2: #0b0d0a;
  --color-surface: rgba(255, 255, 255, 0.035);
  --color-border: rgba(255, 255, 255, 0.09);
  --color-text: #eef2ea;
  --color-muted: #8d968a;

  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 76px;
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body.is-loading {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--color-accent);
  color: var(--color-bg);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

main {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   WebGL canvas
   ========================================================================== */

.webgl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  outline: none;
}

/* ==========================================================================
   Preloader
   ========================================================================== */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  background: var(--color-bg);
  transition: clip-path 1.1s var(--ease-out), visibility 0s linear 1.1s;
  clip-path: inset(0 0 0 0);
}

.preloader.is-done {
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
}

.preloader__inner {
  display: flex;
  align-items: baseline;
  gap: 24px;
}

.preloader__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 6vw, 72px);
  letter-spacing: -0.04em;
}

.preloader__accent {
  color: var(--color-accent);
}

.preloader__count {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-accent);
  min-width: 3ch;
}

.preloader__bar {
  width: min(320px, 70vw);
  height: 2px;
  background: var(--color-border);
  overflow: hidden;
  border-radius: 2px;
}

.preloader__progress {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s linear;
}

/* ==========================================================================
   Cursor
   ========================================================================== */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  pointer-events: none;
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
  }
}

.cursor__dot,
.cursor__ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0);
  will-change: transform;
}

.cursor__dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent-bright);
}

.cursor__ring {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(143, 220, 18, 0.55);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), background-color 0.35s, border-color 0.35s;
}

.cursor.is-hover .cursor__ring {
  width: 70px;
  height: 70px;
  background: rgba(111, 176, 0, 0.12);
  border-color: transparent;
}

/* ==========================================================================
   Header + nav
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: transform 0.5s var(--ease-out), background-color 0.4s, backdrop-filter 0.4s;
}

.header.is-scrolled {
  background: rgba(5, 6, 5, 0.62);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--color-border);
}

.header.is-hidden {
  transform: translateY(-100%);
}

.header__inner {
  max-width: var(--container);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.header__logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
}

.header__logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.header__logo-accent {
  color: var(--color-accent);
  margin-left: 4px;
}

.nav__list {
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.nav__link {
  display: block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-muted);
  transition: color 0.3s, background-color 0.3s;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.06);
}

.nav__link.is-active {
  color: var(--color-accent-bright);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  position: relative;
}

.burger__line {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--color-text);
  transition: transform 0.4s var(--ease-out);
}

.burger__line:first-child { top: 17px; }
.burger__line:last-child { top: 25px; }

.burger.is-open .burger__line:first-child { transform: translateY(4px) rotate(45deg); }
.burger.is-open .burger__line:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--header-h) var(--gutter) 40px;
  background: rgba(5, 6, 5, 0.96);
  backdrop-filter: blur(20px);
  clip-path: circle(0% at calc(100% - 44px) 38px);
  visibility: hidden;
  transition: clip-path 0.8s var(--ease-out), visibility 0s linear 0.8s;
}

.menu.is-open {
  clip-path: circle(150% at calc(100% - 44px) 38px);
  visibility: visible;
  transition: clip-path 0.8s var(--ease-out), visibility 0s;
}

.menu__link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 10vw, 56px);
  letter-spacing: -0.04em;
  border-bottom: 1px solid var(--color-border);
}

.menu__index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-accent);
  letter-spacing: 0;
}

.menu__social {
  display: flex;
  gap: 20px;
  margin-top: 36px;
}

.menu__social-link {
  color: var(--color-muted);
  font-size: 15px;
}

/* ==========================================================================
   Button
   ========================================================================== */

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
}

.button:hover::before {
  transform: translateY(0);
}

.button__icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.4s var(--ease-out);
}

.button:hover .button__icon {
  transform: rotate(45deg);
}

.button--primary {
  background: var(--color-accent);
  color: var(--color-bg);
  box-shadow: 0 10px 40px -10px rgba(111, 176, 0, 0.65);
}

.button--primary::before {
  background: var(--color-text);
}

.button--ghost {
  border: 1px solid var(--color-border);
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
}

.button--ghost::before {
  background: var(--color-accent);
}

.button--ghost:hover {
  color: var(--color-bg);
  border-color: var(--color-accent);
}

.button--small {
  height: 44px;
  padding: 0 20px;
  font-size: 14px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 60px;
}

.hero__inner {
  position: relative;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  margin-bottom: 28px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-muted);
}

.hero__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent-bright);
  box-shadow: 0 0 0 0 rgba(143, 220, 18, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(143, 220, 18, 0); }
  100% { box-shadow: 0 0 0 0 rgba(143, 220, 18, 0); }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 9vw, 126px);
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}

.hero__word {
  display: inline-block;
}

.hero__word--outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(238, 242, 234, 0.75);
}

.hero__word--accent {
  color: var(--color-accent);
}

.hero__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-top: 40px;
}

.hero__lead {
  max-width: 480px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--color-muted);
}

.hero__name {
  color: var(--color-text);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 64px);
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}

.hero__meta-item {
  display: flex;
  flex-direction: column;
}

.hero__meta-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
}

.hero__meta-label {
  font-size: 13px;
  color: var(--color-muted);
}

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero__scroll-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  writing-mode: vertical-rl;
}

.hero__scroll-line {
  position: relative;
  width: 1px;
  height: 64px;
  background: var(--color-border);
  overflow: hidden;
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  animation: scroll-line 2s var(--ease-out) infinite;
}

@keyframes scroll-line {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ==========================================================================
   Marquee
   ========================================================================== */

.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 22px 0;
  background: var(--color-accent);
  color: var(--color-bg);
  transform: rotate(-2deg) scale(1.04);
  box-shadow: 0 20px 80px -20px rgba(111, 176, 0, 0.5);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee__item {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 36px);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee__star {
  font-size: 20px;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Section (shared)
   ========================================================================== */

.section {
  position: relative;
  padding: clamp(96px, 14vw, 180px) 0;
}

.section__head {
  margin-bottom: clamp(48px, 7vw, 88px);
}

.section__head--split {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-bright);
}

.section__eyebrow-index {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(111, 176, 0, 0.4);
  border-radius: 50%;
  font-size: 10px;
  letter-spacing: 0;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 5.6vw, 76px);
  line-height: 1;
  letter-spacing: -0.045em;
  max-width: 16ch;
}

.section__title--compact {
  font-size: clamp(34px, 4vw, 56px);
  max-width: 18ch;
}

.section__title-accent {
  color: var(--color-accent);
}

.section__intro {
  max-width: 380px;
  color: var(--color-muted);
}

/* ==========================================================================
   About + portrait
   ========================================================================== */

.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}

.portrait {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out);
}

.portrait__glow {
  position: absolute;
  inset: 8% -6% -6% 8%;
  border-radius: var(--radius-l);
  background: radial-gradient(circle at 30% 30%, var(--color-accent), transparent 70%);
  filter: blur(60px);
  opacity: 0.55;
  transform: translateZ(-40px);
}

.portrait__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid rgba(111, 176, 0, 0.35);
  background: var(--color-bg-2);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
}

.portrait__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 6, 5, 0.75) 100%);
  pointer-events: none;
}

.portrait__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.08);
  transition: transform 1.2s var(--ease-out), filter 0.6s;
  filter: saturate(0.9) contrast(1.05);
}

.portrait:hover .portrait__image {
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.05);
}

.portrait__badge {
  position: absolute;
  left: -28px;
  bottom: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-m);
  background: rgba(10, 12, 9, 0.8);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(14px);
  transform: translateZ(60px);
  animation: float 6s ease-in-out infinite;
}

.portrait__badge-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  line-height: 1;
  color: var(--color-accent);
}

.portrait__badge-label {
  font-size: 12px;
  line-height: 1.35;
  color: var(--color-muted);
}

.portrait__chip {
  position: absolute;
  top: 28px;
  right: -20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-bg);
  font-weight: 700;
  font-size: 13px;
  transform: translateZ(80px);
  animation: float 6s ease-in-out -3s infinite;
}

.portrait__chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-bg);
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

.about__text {
  margin-top: 22px;
  max-width: 560px;
  font-size: 17px;
  color: var(--color-muted);
}

.experience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 40px;
}

.experience__item {
  padding: 22px;
  border-radius: var(--radius-m);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  backdrop-filter: blur(10px);
  transition: border-color 0.4s, transform 0.4s var(--ease-out);
}

.experience__item:hover {
  border-color: rgba(111, 176, 0, 0.45);
  transform: translateY(-4px);
}

.experience__company {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.experience__role {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent-bright);
}

.experience__text {
  margin-top: 12px;
  font-size: 14px;
  color: var(--color-muted);
}

.stats {
  display: flex;
  gap: clamp(24px, 5vw, 56px);
  margin-top: 40px;
}

.stats__item {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  align-items: baseline;
}

.stats__value,
.stats__suffix {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.stats__suffix {
  color: var(--color-accent);
}

.stats__label {
  grid-column: 1 / -1;
  margin-top: 6px;
  font-size: 13px;
  color: var(--color-muted);
}

/* ==========================================================================
   Services
   ========================================================================== */

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  --spot-x: 50%;
  --spot-y: 50%;
  position: relative;
  padding: 34px 30px 36px;
  min-height: 280px;
  border-radius: var(--radius-l);
  border: 1px solid var(--color-border);
  background: rgba(11, 13, 10, 0.6);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color 0.4s, transform 0.5s var(--ease-out);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--spot-x) var(--spot-y), rgba(111, 176, 0, 0.18), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.service-card:hover {
  border-color: rgba(111, 176, 0, 0.45);
  transform: translateY(-6px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__index {
  position: absolute;
  top: 30px;
  right: 30px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-muted);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  padding: 13px;
  border-radius: 14px;
  background: var(--color-accent-soft);
  fill: none;
  stroke: var(--color-accent-bright);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: background-color 0.4s, stroke 0.4s;
}

.service-card:hover .service-card__icon {
  background: var(--color-accent);
  stroke: var(--color-bg);
}

.service-card__title {
  position: relative;
  margin-top: 56px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.service-card__text {
  position: relative;
  margin-top: 12px;
  font-size: 15px;
  color: var(--color-muted);
}

/* ==========================================================================
   Work: case, browser, phone, tags, stores
   ========================================================================== */

.work__list {
  display: grid;
  gap: clamp(80px, 12vw, 160px);
}

.case {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.case--reverse .case__media {
  order: 2;
}

.case__media {
  position: relative;
  padding-right: 60px;
  padding-bottom: 40px;
  perspective: 1400px;
}

.case--reverse .case__media {
  padding-right: 0;
  padding-left: 60px;
}

.browser {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #121511;
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(111, 176, 0, 0.08);
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s;
}

.case:hover .browser {
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.9), 0 0 80px -20px rgba(111, 176, 0, 0.45);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  background: #171a16;
  border-bottom: 1px solid var(--color-border);
}

.browser__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2b302a;
}

.browser__dot:nth-child(1) { background: #ff5f57; }
.browser__dot:nth-child(2) { background: #febc2e; }
.browser__dot:nth-child(3) { background: #28c840; }

.browser__url {
  flex: 1;
  max-width: 320px;
  margin: 0 auto;
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: center;
  color: var(--color-muted);
}

.browser__screen {
  aspect-ratio: 16 / 9.4;
  overflow: hidden;
  background: #fff;
}

.browser__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 1.4s var(--ease-out);
}

.case:hover .browser__image {
  transform: scale(1.05);
}

.phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(110px, 17%, 170px);
  aspect-ratio: 9 / 18.5;
  padding: 6px;
  border-radius: 26px;
  background: #0d0f0c;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.95), 0 0 0 4px rgba(111, 176, 0, 0.15);
  transition: transform 0.8s var(--ease-out);
}

.case--reverse .phone {
  right: auto;
  left: 0;
}

.case:hover .phone {
  transform: translateY(-14px) rotate(-3deg);
}

.case--reverse:hover .phone {
  transform: translateY(-14px) rotate(3deg);
}

.phone__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 20px;
}

.case__index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-accent-bright);
}

.case__title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.case__text {
  margin-top: 18px;
  color: var(--color-muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tags__item {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(111, 176, 0, 0.3);
  background: var(--color-accent-soft);
  font-size: 12px;
  font-weight: 600;
  color: #c4ef7a;
}

.case__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding-bottom: 4px;
  font-weight: 600;
  border-bottom: 1px solid var(--color-accent);
  transition: gap 0.4s var(--ease-out), color 0.3s;
}

.case__link:hover {
  gap: 14px;
  color: var(--color-accent-bright);
}

.case__link-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.stores {
  margin-top: clamp(96px, 12vw, 160px);
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-l);
  border: 1px solid var(--color-border);
  background: linear-gradient(135deg, rgba(111, 176, 0, 0.08), rgba(255, 255, 255, 0.015) 50%);
  backdrop-filter: blur(12px);
}

.stores__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.03em;
}

.stores__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.stores__link {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: 14px;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--ease-out);
}

.stores__link:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg);
  transform: translateY(-3px);
}

/* ==========================================================================
   Skills
   ========================================================================== */

.skills {
  padding-top: 40px;
  padding-bottom: 40px;
}

.skills__inner {
  text-align: center;
}

.skills__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  max-width: 1100px;
  margin: 0 auto;
}

.skills__item {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 5.4vw, 72px);
  letter-spacing: -0.045em;
  line-height: 1.1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(238, 242, 234, 0.35);
  transition: color 0.4s, -webkit-text-stroke-color 0.4s;
}

.skills__item:hover {
  color: var(--color-text);
  -webkit-text-stroke-color: transparent;
}

.skills__item--accent {
  color: var(--color-accent);
  -webkit-text-stroke-color: transparent;
}

/* ==========================================================================
   Process
   ========================================================================== */

.process__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}

.process__step {
  position: relative;
  padding: 30px 26px 34px;
  border-top: 1px solid var(--color-border);
  transition: background-color 0.4s;
}

.process__step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease-out);
}

.process__step.is-visible::before {
  transform: scaleX(1);
}

.process__step:nth-child(2)::before { transition-delay: 0.15s; }
.process__step:nth-child(3)::before { transition-delay: 0.3s; }
.process__step:nth-child(4)::before { transition-delay: 0.45s; }

.process__step:hover {
  background: linear-gradient(180deg, rgba(111, 176, 0, 0.08), transparent);
}

.process__number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(111, 176, 0, 0.7);
}

.process__title {
  margin-top: 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.process__text {
  margin-top: 10px;
  font-size: 15px;
  color: var(--color-muted);
}

/* ==========================================================================
   Contact + platform
   ========================================================================== */

.contact__panel {
  position: relative;
  padding: clamp(40px, 7vw, 96px);
  border-radius: 36px;
  border: 1px solid rgba(111, 176, 0, 0.25);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(111, 176, 0, 0.22), transparent 55%),
    rgba(8, 10, 7, 0.7);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.contact__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 7.5vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.contact__title-accent {
  color: var(--color-accent);
}

.contact__text {
  margin-top: 24px;
  max-width: 460px;
  font-size: 18px;
  color: var(--color-muted);
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 56px;
}

.platform {
  --spot-x: 50%;
  --spot-y: 50%;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-items: center;
  padding: 24px;
  border-radius: var(--radius-m);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: border-color 0.4s, transform 0.5s var(--ease-out), background-color 0.4s;
}

.platform::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(300px circle at var(--spot-x) var(--spot-y), rgba(111, 176, 0, 0.22), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.platform:hover {
  border-color: var(--color-accent);
  transform: translateY(-6px);
}

.platform:hover::before {
  opacity: 1;
}

.platform__icon {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-accent);
  color: var(--color-bg);
}

.platform__icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.platform__icon--text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.platform__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.platform__text {
  grid-column: 2;
  font-size: 13px;
  color: var(--color-muted);
}

.platform__arrow {
  grid-column: 3;
  grid-row: 1 / 3;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--color-accent-bright);
  stroke-width: 2;
  transition: transform 0.4s var(--ease-out);
}

.platform:hover .platform__arrow {
  transform: rotate(45deg);
}

.contact__direct {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.contact__mail {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 3.4vw, 40px);
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent)) no-repeat left bottom / 0% 2px;
  padding-bottom: 4px;
  transition: background-size 0.6s var(--ease-out), color 0.3s;
  word-break: break-all;
}

.contact__mail:hover {
  background-size: 100% 2px;
  color: var(--color-accent-bright);
}

.contact__phone {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--color-muted);
  transition: color 0.3s;
}

.contact__phone:hover {
  color: var(--color-text);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  position: relative;
  z-index: 2;
  padding: 36px 0;
  border-top: 1px solid var(--color-border);
  background: rgba(5, 6, 5, 0.8);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer__copy {
  font-size: 14px;
  color: var(--color-muted);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__link,
.footer__top {
  font-size: 14px;
  color: var(--color-muted);
  transition: color 0.3s;
}

.footer__link:hover,
.footer__top:hover {
  color: var(--color-accent-bright);
}

/* ==========================================================================
   Reveal + split text animation states
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.split__char {
  display: inline-block;
  transform: translateY(110%) rotate(8deg);
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--char-index) * 0.035s + var(--line-delay, 0s));
}

.is-ready .split__char {
  transform: none;
}

.split__word {
  display: inline-block;
  white-space: nowrap;
}

.split__space {
  display: inline-block;
  width: 0.28em;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .nav,
  .header__cta {
    display: none;
  }

  .burger {
    display: block;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }
}

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

  .case--reverse .case__media {
    order: 0;
  }

  .portrait {
    max-width: 380px;
  }

  .hero__scroll {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 68px;
  }

  .header__logo-text {
    font-size: 15px;
  }

  .hero__title {
    font-size: clamp(32px, 9.2vw, 60px);
  }

  .hero__word--outline {
    -webkit-text-stroke-width: 1px;
  }

  .hero__actions,
  .hero__actions .button {
    width: 100%;
  }

  .services__grid,
  .process__list,
  .experience {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .service-card__title {
    margin-top: 32px;
  }

  .portrait__badge {
    left: -8px;
  }

  .portrait__chip {
    right: -6px;
  }

  .case__media,
  .case--reverse .case__media {
    padding: 0 0 30px;
  }

  .phone {
    width: 28%;
    right: -6px;
  }

  .case--reverse .phone {
    left: -6px;
  }

  .stats {
    justify-content: space-between;
  }

  .contact__panel {
    border-radius: var(--radius-l);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
