/* ============================================================
   Faisal Ahmed Siddiqui — Portfolio
   Dark editorial / cinematic
   ============================================================ */

:root {
  /* Color */
  --bg:          #0A0A0A;
  --bg-2:        #0E0E10;
  --surface:     #141417;
  --line:        rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.18);
  --text:        #F4F4F2;
  --text-soft:   rgba(244,244,242,0.62);
  --text-mute:   rgba(244,244,242,0.38);
  --accent:      #C8FF3E;      /* electric lime — restrained, used sparingly */
  --accent-dim:  rgba(200,255,62,0.14);
  --blue:        #3B6FE6;      /* picks up the suit blue from hero frames */

  /* Type */
  --f-display: 'Cabinet Grotesk', 'Fraunces', ui-serif, serif;
  --f-serif:   'Fraunces', ui-serif, serif;
  --f-body:    'Manrope', ui-sans-serif, system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --pad-x: clamp(20px, 4vw, 48px);
  --max:   1440px;

  /* Motion */
  --ease:       cubic-bezier(.22,.61,.36,1);
  --ease-out:   cubic-bezier(.16,1,.3,1);
  --dur-fast:   180ms;
  --dur:        320ms;
  --dur-slow:   620ms;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #000; }

/* Subtle film grain (atmospheric depth) */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .5;
  mix-blend-mode: overlay;
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: clamp(14px, 1.6vw, 22px) var(--pad-x);
  transition: background-color var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

/* Brand */
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  padding: 6px 0;
}
.nav__brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 16px;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.nav__brand:hover .nav__brand-mark {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  transform: rotate(-8deg);
}
.nav__brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav__brand-full {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  color: var(--text);
}
.nav__brand-role {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 2px;
}

/* Links */
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
  justify-self: center;
}
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 2px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: 0.005em;
  transition: color var(--dur-fast) var(--ease);
}
.nav__link-num {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--text-mute);
  letter-spacing: 0.08em;
  transition: color var(--dur-fast) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover .nav__link-num { color: var(--accent); }
.nav__link:hover::after { transform: scaleX(1); }

/* CTA */
.nav__cta { justify-self: end; display: inline-flex; align-items: center; gap: 10px; }
.nav__talk {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: rgba(255,255,255,0.02);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.nav__talk:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  transform: translateY(-1px);
}
.nav__talk-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-dim);
  animation: pulse 2.4s var(--ease) infinite;
}
.nav__talk:hover .nav__talk-dot { background: var(--bg); box-shadow: none; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(200,255,62,0.45); }
  70%  { box-shadow: 0 0 0 10px rgba(200,255,62,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,255,62,0); }
}

/* Burger (mobile only) */
.nav__burger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  position: relative;
}
.nav__burger span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px; height: 1.5px;
  background: var(--text);
  transform: translate(-50%, -50%);
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) var(--ease);
}
.nav__burger span:nth-child(1) { transform: translate(-50%, calc(-50% - 3px)); }
.nav__burger span:nth-child(2) { transform: translate(-50%, calc(-50% + 3px)); }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

/* Mobile takeover menu */
.nav__menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  padding: 100px var(--pad-x) 40px;
  transform: translateY(-100%);
  transition: transform var(--dur-slow) var(--ease-out);
  z-index: 40;
  pointer-events: none;
  visibility: hidden;
}
.nav__menu.is-open {
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}
.nav__menu-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.nav__menu-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.nav__menu-link {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 18px 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(36px, 9vw, 72px);
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease-out);
}
.nav__menu-link em {
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-mute);
  letter-spacing: 0.12em;
}
.nav__menu-link:hover { color: var(--accent); padding-left: 12px; }

.nav__menu-foot {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

/* Responsive nav */
@media (max-width: 900px) {
  .nav__brand-name { display: none; }
  .nav__links { display: none; }
  .nav__burger { display: inline-block; }
  .nav__talk { padding: 8px 14px; font-size: 12px; }
  .nav__talk-text { display: none; }
  .nav__talk { padding: 0; width: 40px; height: 40px; justify-content: center; gap: 0; }
}
@media (max-width: 480px) {
  .nav__inner { gap: 12px; }
}

/* ============================================================
   HERO — Scroll-driven frame animation + typography reveal
   ============================================================ */

.hero {
  position: relative;
  width: 100%;
  height: 500vh;
}

.hero__sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #fff;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Overlay — site bg, used only for the exit transition */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--bg);
  z-index: 5;
  opacity: 0;
  pointer-events: none;
}

/* Content — overlays directly on the frame canvas */
.hero__content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--pad-x);
  pointer-events: none;
  opacity: 0;
}

/* Eyebrow */
.hero__eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #A8883E;
  text-shadow: 0 1px 16px rgba(0,0,0,0.2);
  margin-bottom: clamp(14px, 2vh, 24px);
}

/* Headline — stylish serif, golden, premium */
.hero__headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.hero__line {
  overflow: hidden;
}
.hero__line span {
  display: block;
  font-family: var(--f-serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(36px, 8vw, 140px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #C9A24E;
  text-shadow: 0 2px 30px rgba(0,0,0,0.25);
  will-change: transform;
}

/* Bottom */
.hero__bottom {
  position: absolute;
  bottom: clamp(24px, 4vh, 48px);
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  padding: 0 var(--pad-x);
}

.hero__scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(169,136,62,0.6), transparent);
  animation: scroll-pulse 2.4s var(--ease) infinite;
}
@keyframes scroll-pulse {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.hero__scroll-text {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(169,136,62,0.6);
}

/* Hero responsive */
@media (max-width: 640px) {
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero__scroll-cue { display: none; }
}

/* ============================================================
   MARQUEE — infinite horizontal ticker
   ============================================================ */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(14px, 2vw, 22px) 0;
  background: var(--bg);
  position: relative;
  z-index: 2;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: marquee-scroll 28s linear infinite;
  width: max-content;
}
.marquee__item {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(18px, 3vw, 36px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0 clamp(16px, 2vw, 32px);
}
.marquee__sep {
  font-size: clamp(14px, 2vw, 24px);
  color: var(--text-mute);
  padding: 0 clamp(8px, 1vw, 16px);
}
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ============================================================
   ABOUT
   ============================================================ */

.about {
  position: relative;
  padding: clamp(60px, 8vw, 120px) var(--pad-x);
  padding-bottom: clamp(40px, 5vw, 72px);
  max-width: var(--max);
  margin: 0 auto;
}
.about::before {
  content: "";
  position: absolute;
  top: 0; right: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(200,255,62,0.03) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

/* Section label row */
.section-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.about__label-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(48px, 6vw, 96px);
}
.about__rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Asymmetric two-column grid */
.about__grid {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

/* Left column — portrait + stats */
.about__left {
  position: sticky;
  top: 120px;
}

.about__portrait {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.about__portrait-inner {
  overflow: hidden;
  position: relative;
}
.about__portrait-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg);
  z-index: 2;
  transform-origin: bottom;
  transform: scaleY(1);
  transition: transform 1.1s var(--ease-out);
}
.about__portrait-inner.is-revealed::before {
  transform: scaleY(0);
}
.about__portrait-inner img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.15);
  transition: transform 1.4s var(--ease-out) 0.2s;
}
.about__portrait-inner.is-revealed img {
  transform: scale(1);
}
.about__portrait-caption {
  display: block;
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* Stats grid */
.about__data {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.about__stat {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.about__stat-num {
  display: block;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 6px;
}
.about__stat-num::after {
  content: "+";
  font-weight: 400;
  font-size: 0.6em;
  color: var(--accent);
  margin-left: 2px;
}
.about__stat-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--text-mute);
}

/* Right column — heading + bio */
.about__right {
  padding-top: clamp(0px, 4vw, 60px);
}

.about__heading {
  margin-bottom: clamp(32px, 4vw, 56px);
}
.about__heading-line {
  display: block;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(28px, 4.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  overflow: hidden;
}
.about__heading-accent {
  color: var(--accent);
  font-style: italic;
  font-family: var(--f-serif);
  font-weight: 500;
}

.about__bio {
  margin-bottom: clamp(24px, 3vw, 40px);
}
.about__bio p {
  font-family: var(--f-body);
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 1.2em;
  max-width: 540px;
}
.about__bio p:last-child { margin-bottom: 0; }

/* AI Revolution callout */
.about__ai-block {
  margin-bottom: clamp(24px, 3vw, 40px);
  padding: clamp(20px, 2.5vw, 32px);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  background: rgba(200,255,62,0.02);
}
.about__ai-label {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.about__ai-text {
  font-family: var(--f-body);
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-soft);
}

/* Tags */
.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* Full-width philosophy quote */
.about__quote {
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--line);
}
.quote {
  position: relative;
  padding-left: clamp(24px, 4vw, 60px);
}
.quote__mark {
  position: absolute;
  left: 0;
  top: -0.15em;
  font-family: var(--f-serif);
  font-size: clamp(48px, 7vw, 100px);
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  color: var(--accent);
  opacity: 0;
}
.quote__text {
  display: block;
}
.quote__line {
  display: block;
  font-family: var(--f-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(24px, 4vw, 56px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* About responsive */
@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: clamp(40px, 6vw, 64px);
  }
  .about__left {
    position: relative;
    top: auto;
  }
  .about__data {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 480px) {
  .about__data {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .about__stat:last-child {
    grid-column: span 2;
  }
}

/* ============================================================
   REVEAL ANIMATIONS (global utility)
   ============================================================ */

/* ============================================================
   GLOBE
   ============================================================ */

.globe-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(20px, 3vw, 40px) var(--pad-x);
  background: var(--bg);
  overflow: hidden;
}
.globe__canvas {
  width: clamp(220px, 30vw, 380px);
  height: clamp(220px, 30vw, 380px);
  opacity: 0.8;
}

/* ============================================================
   SERVICES
   ============================================================ */

.services {
  position: relative;
  padding: clamp(60px, 8vw, 100px) var(--pad-x);
  max-width: var(--max);
  margin: 0 auto;
}

.services__label-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.services__rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

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

.services__item {
  padding: clamp(20px, 3vw, 36px) clamp(16px, 2vw, 28px);
  border: 1px solid var(--line);
  margin-top: -1px;
  margin-left: -1px;
  position: relative;
  isolation: isolate;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  --spot-x: 50%;
  --spot-y: 50%;
  --spot-size: 260px;
  --spot-hue: 75;
}
.services__item:hover {
  background: var(--surface);
  border-color: var(--line-strong);
  z-index: 1;
}

/* Spotlight glow — traces the card border where the cursor is. */
.services__item::before {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid transparent;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  background: radial-gradient(
    var(--spot-size) var(--spot-size) at var(--spot-x) var(--spot-y),
    hsl(var(--spot-hue) 100% 62% / 1), transparent 70%
  );
  background-origin: border-box;
  background-clip: border-box;
  -webkit-mask:
    linear-gradient(#000 0 0) padding-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask:
    linear-gradient(#000 0 0) padding-box,
    linear-gradient(#000 0 0);
          mask-composite: exclude;
  z-index: 2;
}

/* Subtle interior tint that follows the cursor. */
.services__item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  background: radial-gradient(
    var(--spot-size) var(--spot-size) at var(--spot-x) var(--spot-y),
    hsl(var(--spot-hue) 100% 62% / 0.08), transparent 70%
  );
  z-index: 0;
}
.services__item:hover::before,
.services__item:hover::after { opacity: 1; }
.services__item > * { position: relative; z-index: 1; }

.services__num {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  margin-bottom: clamp(12px, 1.5vw, 20px);
  transition: color var(--dur) var(--ease);
}
.services__item:hover .services__num {
  color: var(--accent);
}

.services__name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(16px, 1.8vw, 24px);
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text);
}

.services__icon {
  position: absolute;
  top: clamp(18px, 2.4vw, 28px);
  right: clamp(16px, 2vw, 28px);
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--text-mute);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  z-index: 1;
  transition: stroke var(--dur) var(--ease);
}
.services__item:hover .services__icon {
  stroke: var(--accent);
}

@media (max-width: 900px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .services__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact {
  position: relative;
  padding: clamp(80px, 14vw, 200px) var(--pad-x);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.contact__inner {
  max-width: var(--max);
  margin: 0 auto;
}
.contact__label-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.contact__rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.contact__content {
  max-width: 680px;
}
.contact__heading {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: clamp(16px, 2vw, 28px);
}
.contact__heading em {
  font-family: var(--f-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
}
.contact__sub {
  font-family: var(--f-body);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: clamp(28px, 3vw, 44px);
  max-width: 520px;
}

.contact__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 32px 18px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: rgba(255,255,255,0.02);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.contact__cta:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  transform: translateY(-2px);
}
.contact__cta-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s var(--ease) infinite;
}
.contact__cta:hover .contact__cta-dot { background: var(--bg); }
.contact__cta-arrow {
  font-size: 18px;
  transition: transform var(--dur) var(--ease);
}
.contact__cta:hover .contact__cta-arrow { transform: translate(3px, -3px); }

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  padding: clamp(32px, 4vw, 56px) var(--pad-x);
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(24px, 3vw, 40px);
  padding-bottom: clamp(24px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer__mark {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--f-serif);
  font-size: 14px;
  font-style: italic;
  color: var(--text);
}
.footer__name {
  display: block;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 13px;
  color: var(--text);
}
.footer__role {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 2px;
}

.footer__nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
}
.footer__nav a {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-soft);
  transition: color var(--dur-fast) var(--ease);
}
.footer__nav a:hover { color: var(--text); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-mute);
}
.footer__credit {
  color: var(--accent);
}

/* Footer + Contact responsive */
@media (max-width: 640px) {
  .footer__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer__nav {
    flex-wrap: wrap;
    gap: 12px 20px;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .contact__cta {
    font-size: 14px;
    padding: 16px 24px 16px 18px;
  }
}

/* ============================================================
   UTILITIES
   ============================================================ */

[data-reveal-line] {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .hero { height: 100vh; }
  .hero__sticky { position: relative; }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
