/* ════════════════════════════════════════════════════════════════
   STUDIO / NOIR — Portfolio
   Dark editorial · motion-driven · lime accent
   ════════════════════════════════════════════════════════════════ */

/* ─── Tokens ─────────────────────────────────────────────────── */
:root {
  /* Color */
  --bg:           #0A0A0B;
  --bg-soft:      #111114;
  --bg-elev:      #16161A;
  --line:         rgba(255,255,255,0.08);
  --line-strong:  rgba(255,255,255,0.14);
  --text:         #F4F4F2;
  --text-mute:    #8A8A88;
  --text-dim:     #5C5C5A;
  --accent:       #D8FF3D;       /* Electric lime — bold accent */
  --accent-soft:  #B8D930;
  --accent-glow:  rgba(216,255,61,0.18);

  /* Type */
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body:    "Space Grotesk", system-ui, sans-serif;
  --font-serif:   "Instrument Serif", "Times New Roman", serif;

  /* Sizing */
  --max:          1440px;
  --pad-x:        clamp(20px, 4vw, 56px);
  --r-sm:         8px;
  --r:            14px;
  --r-lg:         24px;
  --r-xl:         32px;

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

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  overflow-x: hidden;
  cursor: none;
}
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #0A0A0B; }

/* On touch devices, fall back to native cursor */
@media (hover: none) {
  body, * { cursor: auto !important; }
  .cursor { display: none !important; }
}

/* ─── Custom Cursor ──────────────────────────────────────────── */
.cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}
.cursor__dot,
.cursor__ring {
  position: absolute;
  top: 0; left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform, width, height;
}
.cursor__dot {
  width: 6px; height: 6px;
  background: #fff;
}
.cursor__ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.6);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.cursor.is-hover .cursor__ring {
  width: 64px; height: 64px;
  border-color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.08);
}
.cursor.is-view .cursor__ring {
  width: 92px; height: 92px;
  background: var(--accent);
  border-color: var(--accent);
  mix-blend-mode: normal;
}
.cursor.is-view .cursor__dot { opacity: 0; }

/* ─── Loader ─────────────────────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--pad-x);
  gap: 24px;
}
.loader__inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--font-display);
}
.loader__counter {
  font-size: clamp(80px, 16vw, 220px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.9;
}
.loader__label {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}
.loader__bar {
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.loader__bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.2s linear;
}

/* ─── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 24px;
  left: 24px;
  right: 24px;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 22px;
  background: rgba(15, 15, 17, 0.6);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line);
  border-radius: 999px;
  transform: translateY(-120%);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav__mark {
  color: var(--accent);
  font-size: 14px;
  animation: pulse 3s ease-in-out infinite;
}
.nav__name {
  font-size: 15px;
}
.nav__links {
  display: flex;
  justify-content: center;
  gap: 32px;
}
.nav__links a {
  font-size: 14px;
  color: var(--text-mute);
  font-weight: 500;
  transition: color 0.25s var(--ease);
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__end {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__lang {
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--text-mute);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}
.nav__lang:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--accent);
  color: #0A0A0B;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease);
}
.nav__cta:hover {
  background: #E8FF6D;
  transform: translateY(-2px);
}
.nav__cta svg { transition: transform 0.3s var(--ease-out); }
.nav__cta:hover svg { transform: translate(2px, -2px); }

@media (max-width: 800px) {
  .nav { padding: 12px 18px; }
  .nav__links { display: none; }
  .nav__name { display: none; }
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--pad-x);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.35'/></svg>");
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 2;
}
.hero__content {
  position: relative;
  z-index: 3;
  padding-bottom: 80px;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}
.hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}
/* JS-only initial states — page stays visible if scripts fail */
.js .hero__meta,
.js .hero__lede,
.js .hero__actions { opacity: 0; }
.js .hero__title .word { transform: translateY(110%); }
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(46px, 9vw, 168px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0 0 40px;
}
.hero__title .line {
  display: block;
  overflow: hidden;
}
.hero__title .word {
  display: inline-block;
  will-change: transform;
}
.hero__title .italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.hero__title .accent {
  color: var(--accent);
  position: relative;
}
.hero__lede {
  max-width: 540px;
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--text-mute);
  line-height: 1.55;
  margin: 0 0 40px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__marquee {
  position: relative;
  z-index: 3;
  margin: 0 calc(var(--pad-x) * -1);
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(4px);
}
.marquee__track {
  display: inline-flex;
  gap: 32px;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-mute);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  animation: scroll 40s linear infinite;
}
.marquee__track > * { flex-shrink: 0; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.hero__scroll {
  position: absolute;
  right: var(--pad-x);
  bottom: 110px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(-100%);
  animation: scrollLine 2s var(--ease) infinite;
}
@keyframes scrollLine {
  0%   { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}
@media (max-width: 700px) { .hero__scroll { display: none; } }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease), color 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn__arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease-out);
}
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--primary {
  background: var(--accent);
  color: #0A0A0B;
}
.btn--primary:hover {
  background: #E8FF6D;
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}
.btn--block { width: 100%; }

/* ─── Section heads ─────────────────────────────────────────── */
.section-head {
  max-width: var(--max);
  margin: 0 auto 64px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.section-head__index {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.section-head__index::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}
.section-head__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 5.6vw, 84px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 14ch;
}
.section-head__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

/* ─── About ─────────────────────────────────────────────────── */
.about {
  padding: 160px var(--pad-x) 120px;
  max-width: var(--max);
  margin: 0 auto;
}
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  margin-bottom: 96px;
}
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 48px; }
}
.about__bio .lede {
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 28px;
  font-weight: 400;
}
.about__bio p {
  color: var(--text-mute);
  margin: 0 0 18px;
  max-width: 50ch;
}
.about__bio strong {
  color: var(--text);
  font-weight: 500;
}
.skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.skill {
  padding: 28px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}
.skill::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, var(--accent-glow), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.skill:hover {
  border-color: var(--line-strong);
  background: var(--bg-elev);
}
.skill:hover::before { opacity: 1; }
.skill__num {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.skill h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2vw, 28px);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.skill p {
  margin: 0;
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.5;
}
@media (max-width: 540px) { .skills { grid-template-columns: 1fr; } }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.metric__num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.metric__label {
  font-size: 13px;
  color: var(--text-mute);
}
@media (max-width: 700px) {
  .metrics { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* ─── Work ──────────────────────────────────────────────────── */
.work {
  padding: 120px var(--pad-x);
  max-width: var(--max);
  margin: 0 auto;
}
.work__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.card {
  grid-column: span 3;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  position: relative;
  transition: border-color 0.4s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}
.card--lg { grid-column: span 4; }
.card--lg + .card { grid-column: span 2; }
.card:hover { border-color: var(--line-strong); }

.card__media {
  position: relative;
  aspect-ratio: 16 / 11;
  background:
    radial-gradient(circle at 30% 30%, hsla(var(--hue), 80%, 60%, 0.35), transparent 50%),
    radial-gradient(circle at 70% 70%, hsla(calc(var(--hue) + 40), 85%, 55%, 0.25), transparent 50%),
    linear-gradient(135deg, hsl(var(--hue), 30%, 10%) 0%, hsl(calc(var(--hue) + 30), 25%, 8%) 100%);
  overflow: hidden;
}
.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}
.card__shape {
  position: absolute;
  transition: transform 0.8s var(--ease-out), opacity 0.6s var(--ease);
  will-change: transform;
}
.card__shape--1 {
  top: 20%; left: 20%;
  width: 60%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, hsla(var(--hue), 90%, 70%, 0.7), hsla(var(--hue), 90%, 40%, 0.2));
  filter: blur(8px);
}
.card__shape--2 {
  bottom: 10%; right: 10%;
  width: 40%; aspect-ratio: 1;
  border-radius: 30%;
  background: linear-gradient(135deg, hsla(calc(var(--hue) + 60), 90%, 65%, 0.5), transparent);
  transform: rotate(45deg);
}
.card__shape--ring {
  top: 50%; left: 50%;
  width: 70%; aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid hsla(var(--hue), 80%, 70%, 0.5);
  transform: translate(-50%, -50%);
  box-shadow:
    inset 0 0 0 8px transparent,
    0 0 40px hsla(var(--hue), 80%, 60%, 0.3);
}
.card__shape--ring::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px dashed hsla(var(--hue), 80%, 80%, 0.4);
}
.card__shape--blob {
  top: 10%; left: -10%;
  width: 80%; aspect-ratio: 1;
  background: radial-gradient(circle, hsla(var(--hue), 90%, 65%, 0.7), transparent 60%);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  filter: blur(2px);
  animation: blob 12s ease-in-out infinite;
}
@keyframes blob {
  0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  50%      { border-radius: 60% 40% 30% 70% / 60% 40% 60% 40%; }
}
.card__shape--grid {
  inset: 8%;
  background-image:
    linear-gradient(hsla(var(--hue), 80%, 70%, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, hsla(var(--hue), 80%, 70%, 0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, black 30%, transparent 70%);
}
.card__shape--lines {
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0px,
    transparent 18px,
    hsla(var(--hue), 80%, 70%, 0.18) 18px,
    hsla(var(--hue), 80%, 70%, 0.18) 19px
  );
}
.card__shape--orb {
  top: 50%; left: 50%;
  width: 50%; aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, hsla(var(--hue), 95%, 80%, 0.95), hsla(var(--hue), 85%, 45%, 0.5) 60%, transparent 80%);
  transform: translate(-50%, -50%);
  filter: blur(1px);
  box-shadow: 0 0 80px hsla(var(--hue), 80%, 60%, 0.5);
}
.card:hover .card__shape--1 { transform: translate(-15px, -15px) scale(1.1); }
.card:hover .card__shape--2 { transform: translate(15px, 15px) rotate(60deg) scale(1.05); }
.card:hover .card__shape--ring { transform: translate(-50%, -50%) scale(1.15) rotate(15deg); }
.card:hover .card__shape--orb { transform: translate(-50%, -50%) scale(1.2); }

.card__body { padding: 24px 26px 28px; }
.card__meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--text-mute);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
}
.card__desc {
  margin: 0;
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.5;
}
@media (max-width: 1000px) {
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .card, .card--lg, .card--lg + .card { grid-column: span 1; }
}
@media (max-width: 600px) {
  .work__grid { grid-template-columns: 1fr; }
}

/* ─── Services ──────────────────────────────────────────────── */
.services {
  padding: 120px var(--pad-x);
  max-width: var(--max);
  margin: 0 auto;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.service {
  padding: 32px 28px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 320px;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease-out);
  position: relative;
  transform-style: preserve-3d;
}
.service::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent, var(--accent-glow));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.service:hover {
  background: var(--bg-elev);
  border-color: var(--line-strong);
}
.service:hover::after { opacity: 1; }
.service--featured {
  background: var(--accent);
  color: #0A0A0B;
  border-color: var(--accent);
}
.service--featured:hover { background: #E8FF6D; }
.service--featured .service__num,
.service--featured h3,
.service--featured p,
.service--featured .service__from { color: #0A0A0B; }
.service--featured::after { display: none; }

.service__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.service__num {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.service__icon {
  width: 28px;
  height: 28px;
  color: var(--text);
  opacity: 0.7;
}
.service h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1.05;
}
.service p {
  flex: 1;
  margin: 0;
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.5;
}
.service__from {
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.04em;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.service--featured .service__from { border-top-color: rgba(10,10,11,0.2); }
@media (max-width: 1000px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .services__grid { grid-template-columns: 1fr; } }

/* ─── Contact ───────────────────────────────────────────────── */
.contact {
  padding: 120px var(--pad-x);
  background:
    radial-gradient(ellipse at top, rgba(216,255,61,0.05), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--line);
}
.contact__inner { max-width: var(--max); margin: 0 auto; }
.contact__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
}
@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
}
.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 36px;
  background: rgba(255,255,255,0.025);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.field input,
.field select,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 12px 0;
  font-size: 16px;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s var(--ease);
  font-family: inherit;
  resize: none;
  cursor: none;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-dim);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--accent);
}
.field select option {
  background: var(--bg-soft);
  color: var(--text);
}

.contact__aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact__card {
  padding: 28px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  backdrop-filter: blur(20px);
}
.eyebrow {
  display: block;
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.contact__email {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  display: inline-block;
  margin-bottom: 16px;
  position: relative;
  transition: color 0.3s var(--ease);
}
.contact__email::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.contact__email:hover { color: var(--accent); }
.contact__email:hover::after { transform: scaleX(1); }
.contact__card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.5;
}
.socials li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  transition: color 0.3s var(--ease), padding 0.3s var(--ease);
}
.socials li:last-child a { border-bottom: none; }
.socials li a:hover {
  color: var(--accent);
  padding-left: 8px;
}

/* ─── Footer ────────────────────────────────────────────────── */
.footer {
  padding: 80px var(--pad-x) 32px;
  border-top: 1px solid var(--line);
}
.footer__top { max-width: var(--max); margin: 0 auto 56px; }
.footer__big {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(60px, 14vw, 220px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, var(--text) 30%, transparent 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer__bottom {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.04em;
}
@media (max-width: 700px) {
  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ─── Reveal utilities (GSAP-controlled) ────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}
.reveal-line {
  overflow: hidden;
  display: inline-block;
}

/* ─── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__title .word { transform: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ─── Focus accessibility ───────────────────────────────────── */
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}
