/* ==========================================================
   KASHAN SABIR: dark editorial portfolio
   Palette: near-black / bone / brass
   Type: Clash Display (display) + General Sans (body)
========================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #0A0A0B;
  --bg-2: #101013;
  --bg-3: #16161a;
  --ink: #ECE9E2;
  --ink-dim: #A6A199;
  --ink-faint: #6E6A63;
  --line: rgba(236, 233, 226, 0.10);
  --line-strong: rgba(236, 233, 226, 0.22);
  --brass: #E8AA4B;
  --brass-soft: rgba(232, 170, 75, 0.14);
  --teal-deep: #0E3B38;

  --font-display: "Clash Display", "General Sans", system-ui, sans-serif;
  --font-body: "General Sans", system-ui, -apple-system, sans-serif;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);

  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--ink-faint) var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; color: var(--ink); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
::selection { background: var(--brass); color: #14100a; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: fixed;
  top: -48px;
  left: 16px;
  z-index: 300;
  background: var(--brass);
  color: #14100a;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  transition: top 0.2s var(--ease-soft);
}
.skip-link:focus { top: 16px; }

/* Typographic atoms */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 22px;
}
.section-title {
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.section-head { margin-bottom: clamp(48px, 7vw, 88px); }
.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

/* ---------- Grain overlay ---------- */
/* Cheap static grain: a fixed layer with a tiled noise PNG and simple
   alpha. No mix-blend-mode (that forces a full-page recomposite on every
   scroll frame) and no oversized box. This alone removes most scroll jank. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.04;
}

/* ---------- Custom cursor ---------- */
.cursor, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 240;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
}
.cursor {
  width: 8px; height: 8px;
  background: var(--brass);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 40px; height: 40px;
  border: 1px solid rgba(232, 170, 75, 0.55);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
              background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
.cursor-ring span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #14100a;
  opacity: 0;
  transition: opacity 0.25s var(--ease-soft);
}
.cursor-ring.is-hover { width: 64px; height: 64px; border-color: rgba(232, 170, 75, 0.9); }
.cursor-ring.has-label {
  width: 84px; height: 84px;
  background: var(--brass);
  border-color: var(--brass);
}
.cursor-ring.has-label span { opacity: 1; }
@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-ring { display: none; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: transform 0.5s var(--ease-out), background-color 0.4s var(--ease-soft),
              backdrop-filter 0.4s var(--ease-soft);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-scrolled {
  background: rgba(10, 10, 11, 0.68);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.nav__brand svg { color: var(--brass); }
.nav__brand-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.01em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}
.nav__link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  transition: color 0.3s var(--ease-soft);
  padding: 4px 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  align-items: center;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Mobile menu overlay */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 10, 11, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px var(--gutter) 48px;
}
.menu[hidden] { display: none; }
.menu__links { display: flex; flex-direction: column; gap: 8px; }
.menu__links a {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 9vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 6px 0;
  color: var(--ink);
}
.menu__links a:active { color: var(--brass); }
.menu__meta {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--ink-dim);
  font-size: 15px;
}
.menu__social { display: flex; gap: 24px; }
.menu__social a { color: var(--brass); font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  overflow: hidden;
  transition: color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  will-change: transform;
}
.btn--lg { padding: 19px 42px; font-size: 16px; }
.btn__label { position: relative; z-index: 1; display: inline-block; }
.btn--solid {
  background: var(--ink);
  color: #131313;
}
.btn--solid::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brass);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
  border-radius: inherit;
}
.btn--solid:hover::before { transform: translateY(0); }
.btn--line {
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn--line::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
  border-radius: inherit;
}
.btn--line:hover { color: #131313; border-color: var(--ink); }
.btn--line:hover::before { transform: translateY(0); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding-bottom: clamp(40px, 6vh, 80px);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
/* CSS fallback glow if canvas/JS unavailable */
html:not(.js) .hero {
  background:
    radial-gradient(58% 42% at 78% 18%, rgba(232, 170, 75, 0.13), transparent 70%),
    radial-gradient(50% 45% at 15% 80%, rgba(14, 92, 84, 0.20), transparent 70%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: clamp(20px, 3vh, 36px);
}
.hero__eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3ddc97;
  box-shadow: 0 0 12px rgba(61, 220, 151, 0.8);
  flex-shrink: 0;
}
.hero__name {
  font-size: clamp(3.6rem, 13.5vw, 12.5rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin-bottom: clamp(28px, 4.5vh, 56px);
}
.hero__line { display: block; overflow: hidden; }
.hero__line-inner { display: inline-block; will-change: transform; }
.hero__line--2 .hero__line-inner { color: var(--ink); }
.hero__dot { color: var(--brass); font-style: normal; }
.hero__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto;
  align-items: end;
  gap: clamp(24px, 4vw, 64px);
}
.hero__role {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 500;
  color: var(--brass);
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}
.hero__role-swap { display: inline-block; min-width: 15ch; }
.hero__role-bracket { color: var(--ink-faint); }
.hero__sub {
  color: var(--ink-dim);
  font-size: clamp(15px, 1.25vw, 17.5px);
  line-height: 1.65;
  max-width: 46ch;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__scrollhint {
  position: absolute;
  right: clamp(24px, 4vw, 56px);
  bottom: clamp(40px, 6vh, 80px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  writing-mode: vertical-rl;
}
.hero__scrollline {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--brass), transparent);
  animation: scrollpulse 2.2s var(--ease-soft) infinite;
}
@keyframes scrollpulse {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Marquee bands ---------- */
.marquee-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(28px, 4vw, 44px) 0;
  overflow: hidden;
}
.marquee-band--skills {
  border-top: 0;
  padding: clamp(20px, 3vw, 32px) 0;
}
.marquee { overflow: hidden; }
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  width: max-content;
  padding-right: clamp(28px, 4vw, 56px);
  will-change: transform;
}
.marquee__item {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.marquee__item--ghost {
  color: transparent;
  -webkit-text-stroke: 1px var(--ink-faint);
  font-size: clamp(1.2rem, 2.4vw, 1.9rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.marquee__star { color: var(--brass); font-size: clamp(1rem, 2vw, 1.5rem); }
.marquee__star--dim { color: var(--ink-faint); }

/* ---------- About ---------- */
.about { padding: clamp(96px, 13vw, 200px) 0 0; }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}
.about__label { position: sticky; top: 120px; }
.about__current {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
}
.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3ddc97;
  flex-shrink: 0;
  animation: pulse 2s var(--ease-soft) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.5); }
  50% { box-shadow: 0 0 0 7px rgba(61, 220, 151, 0); }
}
.about__headline {
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: clamp(28px, 4vw, 52px);
  max-width: 22ch;
}
.about__copy {
  display: grid;
  gap: 22px;
  max-width: 62ch;
}
.about__copy p {
  color: var(--ink-dim);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.7;
}
.about__copy p:first-child { color: var(--ink); }

/* Stats */
.stats {
  margin-top: clamp(72px, 9vw, 130px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stats__item {
  padding: clamp(28px, 3.5vw, 48px) clamp(16px, 2vw, 32px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stats__item:last-child { border-right: 0; }
.stats__num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stats__num--badge {
  font-size: clamp(1.7rem, 3.2vw, 2.9rem);
  color: var(--brass);
  padding-top: 0.35em;
}
.stats__label {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

/* ---------- Work ---------- */
.work { padding: clamp(96px, 13vw, 200px) 0 clamp(72px, 9vw, 130px); }
.work__list { border-top: 1px solid var(--line); }
.work__row { border-bottom: 1px solid var(--line); }
.work__link {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1.35fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 48px);
  padding: clamp(26px, 3.6vw, 46px) clamp(4px, 1vw, 16px);
  transition: padding 0.5s var(--ease-out);
}
.work__num {
  font-size: 13px;
  color: var(--ink-faint);
  font-weight: 500;
  letter-spacing: 0.1em;
}
.work__name {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.4vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  transition: color 0.4s var(--ease-soft), transform 0.5s var(--ease-out);
}
.work__meta { display: flex; flex-direction: column; gap: 6px; }
.work__tag {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
}
.work__desc {
  font-size: 14.5px;
  color: var(--ink-dim);
  line-height: 1.55;
  max-width: 42ch;
}
.work__arrow {
  width: 52px; height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-dim);
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out),
              border-color 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}
.work__link:hover .work__name { color: var(--brass); transform: translateX(10px); }
.work__link:hover .work__arrow {
  background: var(--brass);
  border-color: var(--brass);
  color: #14100a;
  transform: rotate(45deg);
}
/* inline thumb: hidden on desktop (floating preview takes over) */
.work__thumb {
  display: none;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.work__thumb img { width: 100%; height: auto; }

/* Floating cursor-following preview */
.work__preview {
  position: fixed;
  top: 0; left: 0;
  z-index: 60;
  width: min(26vw, 380px);
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  will-change: transform;
}
.work__preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 0.35s var(--ease-soft);
}
.work__preview img.is-active { opacity: 1; }

.work__more {
  margin-top: clamp(40px, 5vw, 64px);
  display: flex;
  align-items: baseline;
  gap: clamp(20px, 3vw, 40px);
  flex-wrap: wrap;
}
.work__more-label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}
.work__more-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}
.work__more-links a {
  position: relative;
  font-size: 15px;
  color: var(--ink-dim);
  padding: 2px 0;
  transition: color 0.3s var(--ease-soft);
}
.work__more-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.work__more-links a:hover { color: var(--ink); }
.work__more-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Services bento ---------- */
.services { padding: clamp(96px, 13vw, 200px) 0; }
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.bento__card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  grid-column: span 2;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(24px, 2.6vw, 40px);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.bento__card--wide { grid-column: span 4; }
/* cursor-tracking border glow */
.bento__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(220px circle at var(--mx) var(--my), rgba(232, 170, 75, 0.65), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease-soft);
  pointer-events: none;
}
/* soft interior glow */
.bento__card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(232, 170, 75, 0.07), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-soft);
  pointer-events: none;
}
.bento__card:hover::before,
.bento__card:hover::after { opacity: 1; }
.bento__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--brass-soft);
  color: var(--brass);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.bento__icon svg { transition: transform 0.5s var(--ease-out); }
.bento__card:hover .bento__icon svg { transform: scale(1.12) rotate(-4deg); }
.bento__title {
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.bento__desc {
  font-size: 14.5px;
  color: var(--ink-dim);
  line-height: 1.6;
  max-width: 52ch;
}
.bento__num {
  position: absolute;
  top: clamp(20px, 2.4vw, 34px);
  right: clamp(20px, 2.4vw, 34px);
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.12em;
}

/* ---------- Process (pinned) ---------- */
.process { position: relative; }
.process__pinwrap { height: 380vh; }
.process__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.process__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: center;
  width: 100%;
}
.process__progress {
  margin-top: clamp(28px, 4vw, 48px);
  width: min(320px, 100%);
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.process__progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--brass);
}
.process__steps { position: relative; min-height: 340px; }
.process__step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  opacity: 0;
  visibility: hidden;
}
.process__step.is-active { opacity: 1; visibility: visible; }
.process__num {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--brass);
}
.process__title {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.process__desc {
  color: var(--ink-dim);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.7;
  max-width: 52ch;
}

/* ---------- Testimonials ---------- */
.tst { padding: clamp(96px, 13vw, 200px) 0; border-top: 1px solid var(--line); }
.tst__controls {
  display: flex;
  align-items: center;
  gap: 18px;
}
.tst__btn {
  width: 52px; height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
.tst__btn:hover { background: var(--brass); border-color: var(--brass); color: #14100a; }
.tst__index {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--ink-dim);
  letter-spacing: 0.08em;
}
#tstCurrent { color: var(--brass); }
.tst__stage {
  position: relative;
  min-height: clamp(300px, 38vw, 420px);
  cursor: grab;
}
.tst__stage.is-dragging { cursor: grabbing; }
.tst__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
}
.tst__slide.is-active { opacity: 1; visibility: visible; }
.tst__quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.3vw, 2.9rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  max-width: 26ch;
  color: var(--ink);
}
.tst__source {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
}
.tst__progress {
  position: absolute;
  left: 0; bottom: 0;
  width: min(280px, 60%);
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.tst__progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--brass);
}

/* ---------- FAQ ---------- */
.faq { padding: clamp(96px, 13vw, 200px) 0; border-top: 1px solid var(--line); }
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}
.faq__head { position: sticky; top: 120px; }
.faq__note {
  margin-top: 24px;
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.6;
}
.faq__note a { color: var(--brass); }
.faq__note a:hover { text-decoration: underline; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 2.6vw, 32px) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.9vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.3s var(--ease-soft);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--brass); }
.faq__item[open] .faq__q { color: var(--brass); }
/* plus / minus icon */
.faq__ico {
  position: relative;
  flex-shrink: 0;
  width: 20px; height: 20px;
}
.faq__ico::before,
.faq__ico::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 15px; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
}
.faq__ico::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__ico::after { transform: translate(-50%, -50%) rotate(0); opacity: 0; }
.faq__a {
  overflow: hidden;
  color: var(--ink-dim);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.7;
  max-width: 60ch;
}
.faq__a p { padding-bottom: clamp(22px, 2.6vw, 30px); }
@media (max-width: 860px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
}

/* ---------- Final CTA ---------- */
.cta {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.cta__glow {
  position: absolute;
  width: 72vw; height: 72vw;
  max-width: 900px; max-height: 900px;
  left: 50%; top: 58%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 40% 40%, rgba(232, 170, 75, 0.10), transparent 60%),
    radial-gradient(circle at 65% 60%, rgba(14, 92, 84, 0.16), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(80px, 10vw, 140px);
}
.cta__title {
  font-size: clamp(2.8rem, 8vw, 7.4rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 14ch;
  margin-bottom: clamp(24px, 3.5vw, 44px);
}
.cta__title .char { display: inline-block; will-change: transform; }
.cta__sub {
  color: var(--ink-dim);
  font-size: clamp(15px, 1.35vw, 18px);
  max-width: 46ch;
  margin-bottom: clamp(32px, 4.5vw, 56px);
}
.cta__actions {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  flex-wrap: wrap;
  justify-content: center;
}
.cta__mail {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 500;
  color: var(--ink);
  padding: 4px 0;
}
.cta__mail::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.cta__mail:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 6vw, 80px) 0 clamp(24px, 3vw, 40px);
  background: var(--bg);
}
.footer__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 4vw, 48px);
  margin-bottom: clamp(40px, 5vw, 64px);
}
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col p, .footer__col a {
  font-size: 15px;
  color: var(--ink-dim);
  line-height: 1.6;
}
.footer__col a { transition: color 0.3s var(--ease-soft); width: fit-content; }
.footer__col a:hover { color: var(--brass); }
.footer__label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint) !important;
  font-weight: 600;
  margin-bottom: 8px;
}
#localTime { color: var(--ink); font-weight: 500; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.footer__bottom small { font-size: 12.5px; color: var(--ink-faint); }

/* ---------- Reveal initial states (JS only) ----------
   Note: the hero is intentionally NOT hidden here. It renders instantly on
   load with no dependency on JS, so the page never looks blank on a slow
   mobile connection. Only below-the-fold, scroll-triggered content starts
   hidden. */
.js [data-reveal] { opacity: 0; }
.js [data-split] .line-inner { transform: translateY(110%); }
.js [data-split-chars] .char { opacity: 0; transform: translateY(0.9em); }
[data-split] .line { display: block; overflow: hidden; }
[data-split] .line-inner { display: inline-block; will-change: transform; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__bottom { grid-template-columns: 1fr; gap: 22px; }
  .hero__role { order: -1; }
  .about__grid { grid-template-columns: 1fr; }
  .about__label {
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
  }
  .about__label .eyebrow { margin-bottom: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__item { border-bottom: 1px solid var(--line); }
  .stats__item:nth-child(even) { border-right: 0; }
  .stats__item:nth-child(n+3) { border-bottom: 0; }
  .bento__card, .bento__card--wide { grid-column: span 3; }
  .process__inner { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .process__steps { min-height: 300px; }
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .work__link {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "num name arrow"
      "thumb thumb thumb"
      "meta meta meta";
    row-gap: 18px;
  }
  .work__num { grid-area: num; }
  .work__name { grid-area: name; }
  .work__arrow { grid-area: arrow; width: 44px; height: 44px; }
  .work__meta { grid-area: meta; }
  .work__thumb { display: block; grid-area: thumb; }
  .work__preview { display: none; }
  .bento__card, .bento__card--wide { grid-column: span 6; min-height: 0; }
  /* un-pin process on mobile: simple stacked steps */
  .process__pinwrap { height: auto; }
  .process__sticky { position: static; height: auto; }
  .process__inner { padding-top: clamp(72px, 12vw, 120px); padding-bottom: clamp(48px, 8vw, 96px); }
  .process__steps { min-height: 0; display: grid; gap: 40px; }
  .process__step { position: static; opacity: 1; visibility: visible; }
  .process__progress { display: none; }
  .tst__stage { min-height: 380px; }
  .footer__inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero__name { font-size: clamp(3rem, 17vw, 4.6rem); }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .marquee__item { font-size: 1.4rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] { opacity: 1; }
  .js [data-split] .line-inner { transform: none; }
  .js [data-split-chars] .char { opacity: 1; transform: none; }
  .hero__scrollline, .pulse { animation: none !important; }
  .cursor, .cursor-ring { display: none; }
  /* un-pin the process section: show all steps stacked */
  .process__pinwrap { height: auto; }
  .process__sticky { position: static; height: auto; }
  .process__inner { padding: clamp(72px, 12vw, 140px) var(--gutter); }
  .process__steps { min-height: 0; display: grid; gap: 40px; }
  .process__step { position: static; opacity: 1; visibility: visible; }
  .process__progress { display: none; }
  .work__preview { display: none; }
}
