/* ============================================================
   ALEX CARTER® — PORTFOLIO
   Design system: dark editorial theme, Syne display + Inter body,
   electric-orange accent, fluid type via clamp().
   ============================================================ */

:root {
  --bg: #0E0E0E;
  --bg-alt: #161616;
  --card: #1B1B1B;
  --ink: #F4F1EA;
  --ink-dim: rgba(244, 241, 234, 0.6);
  --ink-faint: rgba(244, 241, 234, 0.35);
  --accent: #FF4D00;
  --line: rgba(244, 241, 234, 0.12);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  --section-pad: clamp(6rem, 12vw, 12rem);
  --container: 1400px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
}

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

html { scroll-behavior: auto; } /* Lenis handles smoothing */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; }

/* Hide native cursor when custom cursor is active (non-touch only) */
@media (hover: hover) and (pointer: fine) {
  body.custom-cursor, body.custom-cursor a, body.custom-cursor button { cursor: none; }
}

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

/* Accessibility: visible focus */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip-link {
  position: fixed; top: -100%; left: 1rem; z-index: 10001;
  background: var(--accent); color: var(--bg);
  padding: 0.75rem 1.25rem; font-weight: 500;
  transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 9000;
  width: 100%; height: 3px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
}

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed; inset: -100%; z-index: 8000;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
  animation: grain-jitter 0.6s steps(4) infinite;
}
@keyframes grain-jitter {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9500;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--ink);
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 40px; height: 40px;
  border: 1px solid rgba(244, 241, 234, 0.7);
  mix-blend-mode: difference;
  display: flex; align-items: center; justify-content: center;
  transition: width 0.35s var(--ease), height 0.35s var(--ease),
              background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.cursor-ring .cursor-label {
  font-family: var(--font-body);
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--bg);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  white-space: nowrap;
}
.cursor-ring.is-hover { width: 64px; height: 64px; }
.cursor-ring.is-active {
  width: 92px; height: 92px;
  background: var(--accent);
  border-color: var(--accent);
  mix-blend-mode: normal;
}
.cursor-ring.is-active .cursor-label { opacity: 1; }

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- Preloader + curtains ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9600;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: var(--gutter);
  pointer-events: none;
}
.preloader-name {
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink-dim);
}
.preloader-count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.9;
  color: var(--ink);
}
.curtain {
  position: fixed; top: 0; z-index: 9400;
  width: 50.5vw; height: 100vh; height: 100dvh;
  background: var(--bg);
}
.curtain--left { left: 0; border-right: 1px solid var(--line); }
.curtain--right { right: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; z-index: 7000;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem var(--gutter);
  transition: transform 0.5s var(--ease), background-color 0.5s var(--ease),
              backdrop-filter 0.5s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(14, 14, 14, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-hidden { transform: translateY(-110%); }

.logo {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.35rem;
  letter-spacing: -0.02em;
  display: inline-block;
}
.desktop-nav { display: flex; align-items: center; gap: 2.5rem; }
.desktop-nav a {
  font-size: 0.85rem; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-dim);
  transition: color 0.3s var(--ease);
  display: inline-block;
}
.desktop-nav a:hover { color: var(--ink); }
.desktop-nav .nav-cta {
  color: var(--bg);
  background: var(--ink);
  padding: 0.6rem 1.4rem; border-radius: 100px;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.desktop-nav .nav-cta:hover { background: var(--accent); color: var(--bg); }

.menu-toggle {
  display: none;
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.6rem 0;
  z-index: 7600;
}

/* ---------- Overlay menu ---------- */
.overlay-menu {
  position: fixed; inset: 0; z-index: 7500;
  background: var(--bg-alt);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.8s var(--ease), visibility 0s 0.8s;
}
.overlay-menu.is-open {
  clip-path: inset(0 0 0% 0);
  visibility: visible;
  transition: clip-path 0.8s var(--ease), visibility 0s 0s;
}
.overlay-links li { overflow: hidden; }
.overlay-link {
  display: flex; align-items: baseline; gap: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 10vw, 5.5rem);
  line-height: 1.15;
  text-transform: uppercase;
  transform: translateY(110%);
  transition: transform 0.7s var(--ease), color 0.3s var(--ease);
}
.overlay-menu.is-open .overlay-link { transform: translateY(0); }
.overlay-links li:nth-child(1) .overlay-link { transition-delay: 0.15s; }
.overlay-links li:nth-child(2) .overlay-link { transition-delay: 0.22s; }
.overlay-links li:nth-child(3) .overlay-link { transition-delay: 0.29s; }
.overlay-links li:nth-child(4) .overlay-link { transition-delay: 0.36s; }
.overlay-link:hover { color: var(--accent); }
.overlay-link em {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 400;
  color: var(--ink-faint);
}
.overlay-footer {
  position: absolute; bottom: 2rem; left: var(--gutter); right: var(--gutter);
  display: flex; justify-content: space-between;
  font-size: 0.85rem; color: var(--ink-dim);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--gutter);
  overflow: hidden;
  container-type: inline-size; /* headline sizes itself to always fit */
}

.hero-blob {
  position: absolute; z-index: 0;
  width: 55vw; height: 55vw; max-width: 800px; max-height: 800px;
  top: -10%; right: -15%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 77, 0, 0.35), rgba(255, 77, 0, 0.05) 55%, transparent 70%);
  filter: blur(60px);
  border-radius: 50%;
  will-change: transform;
}

.hero-shape { position: absolute; z-index: 1; will-change: transform; }
.hero-shape--1 {
  width: clamp(60px, 8vw, 130px); height: clamp(60px, 8vw, 130px);
  top: 18%; left: 8%;
  border: 1px solid var(--ink-faint);
  border-radius: 50%;
}
.hero-shape--2 {
  width: clamp(50px, 6vw, 100px); height: clamp(50px, 6vw, 100px);
  top: 14%; left: 47%;
  border: 1px solid var(--accent);
  transform: rotate(20deg);
}
.hero-shape--3 {
  width: clamp(40px, 5vw, 80px); height: clamp(40px, 5vw, 80px);
  top: 25%; right: 20%;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.85;
}

.hero-image {
  position: absolute; z-index: 2;
  right: clamp(1rem, 8vw, 10rem);
  top: 50%;
  width: clamp(220px, 26vw, 400px);
  aspect-ratio: 3 / 4;
  translate: 0 -50%; /* kept off `transform` so GSAP parallax owns it */
  overflow: hidden;
  border-radius: 4px;
  will-change: transform;
}
.hero-image img { filter: grayscale(20%) contrast(1.05); }

.hero-title {
  position: relative; z-index: 3;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 10.5cqw, 11.5rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  will-change: transform;
  /* inverts against the bright hero image so text stays readable */
  mix-blend-mode: difference;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; white-space: nowrap; }
.hero-title .word { display: inline-block; white-space: nowrap; }
.hero-title .char { display: inline-block; transform: translateY(115%); will-change: transform; }
.hero-title sup { font-size: 0.25em; font-weight: 400; vertical-align: super; }
.hero-title .line:nth-child(2) .word { -webkit-text-stroke: 2px var(--ink); color: transparent; }
.hero-title .line:nth-child(2) .word sup { -webkit-text-stroke: 1px var(--ink); }

.hero-meta {
  position: relative; z-index: 3;
  display: flex; gap: clamp(2rem, 6vw, 6rem);
  margin-top: clamp(2rem, 5vh, 4rem);
  flex-wrap: wrap;
}
.hero-meta-item {
  font-size: 0.85rem; font-weight: 400;
  color: var(--ink-dim);
  line-height: 1.5;
  opacity: 0;
}
.hero-badge {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--ink);
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: badge-pulse 1.6s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.5; }
}

.scroll-indicator {
  position: absolute; z-index: 3;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  opacity: 0;
}
.scroll-indicator-text {
  font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--ink-dim);
}
.scroll-indicator-line {
  width: 1px; height: 56px;
  background: var(--line);
  position: relative; overflow: hidden;
}
.scroll-indicator-line::after {
  content: '';
  position: absolute; left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--accent);
  animation: scroll-line 1.8s var(--ease) infinite;
}
@keyframes scroll-line {
  0% { top: -100%; }
  50% { top: 0; }
  100% { top: 100%; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(1rem, 2.5vw, 1.75rem) 0;
  background: var(--bg);
}
.marquee-track {
  display: flex; width: max-content;
  will-change: transform;
}
.marquee-group {
  display: flex; align-items: center;
  flex-shrink: 0;
}
.marquee-group span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.marquee-group i {
  font-style: normal;
  color: var(--accent);
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  margin: 0 clamp(1.2rem, 3vw, 2.5rem);
}

/* ============================================================
   SHARED SECTION BITS
   ============================================================ */
.section-label {
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 2rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: clamp(3rem, 8vw, 6rem);
}
.mask { display: block; overflow: hidden; padding-bottom: 0.08em; }
.mask-inner { display: inline-block; transform: translateY(110%); will-change: transform; }
.mask-inner.accent { color: var(--accent); }
.mask-inner sup { font-size: 0.3em; font-weight: 400; }

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: var(--section-pad) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 5fr) 7fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.about-image {
  position: sticky;
  top: 12vh;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
}
.about-image img { transform: scale(1.15); will-change: transform; }

.bio {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.bio-line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.bio-line-inner { display: inline-block; transform: translateY(110%); will-change: transform; }

.stats {
  display: flex; gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 0.4rem; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  color: var(--accent);
}
.stat-num::after { content: '+'; }
.stat-label {
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-dim);
}

/* ============================================================
   SELECTED WORKS
   ============================================================ */
.works {
  position: relative;
  padding: var(--section-pad) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  overflow: clip;
}
.works-bg-word {
  position: absolute;
  top: 4rem; left: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(8rem, 26vw, 26rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 241, 234, 0.08);
  white-space: nowrap;
  pointer-events: none;
  will-change: transform;
  z-index: 0;
}
.works .section-label, .works .section-title { position: relative; z-index: 1; }

.works-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(4rem, 10vw, 9rem) clamp(1.5rem, 3vw, 3rem);
  position: relative; z-index: 1;
}
.work-card { will-change: transform; }
.work-card:nth-child(1) { grid-column: 1 / 8; }
.work-card:nth-child(2) { grid-column: 9 / 13; margin-top: 22vh; }
.work-card:nth-child(3) { grid-column: 2 / 7; margin-top: -8vh; }
.work-card:nth-child(4) { grid-column: 8 / 13; margin-top: 10vh; }
.work-card:nth-child(5) { grid-column: 1 / 7; margin-top: -6vh; }
.work-card:nth-child(6) { grid-column: 8 / 12; margin-top: 14vh; }

.work-figure {
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
  position: relative;
  clip-path: inset(100% 0 0 0); /* revealed by JS */
}
.work-card:nth-child(even) .work-figure { aspect-ratio: 3 / 4; }
.work-figure img {
  height: 120%;
  position: relative; top: -10%;
  will-change: transform;
  /* hover scale is GSAP-driven in script.js so it composes with parallax */
}
.work-info {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.work-info h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  letter-spacing: -0.01em;
  transition: transform 0.5s var(--ease), color 0.3s var(--ease);
}
.work-card:hover .work-info h3 { transform: translateX(0.6rem); color: var(--accent); }
.work-info p {
  font-size: 0.8rem; color: var(--ink-dim);
  white-space: nowrap;
}

/* ============================================================
   HORIZONTAL GALLERY
   ============================================================ */
.h-gallery {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
}
.h-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0 var(--gutter);
  margin-bottom: 3rem;
}
.h-hint { font-size: 0.85rem; color: var(--ink-faint); }
.h-track {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: 0 var(--gutter);
  width: max-content;
  will-change: transform;
}
.h-item {
  width: clamp(300px, 55vw, 760px);
  flex-shrink: 0;
}
.h-item img {
  aspect-ratio: 3 / 2;
  border-radius: 4px;
  height: auto;
}
.h-item figcaption {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--ink-dim);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.h-progress {
  margin: 3rem var(--gutter) 0;
  height: 2px;
  background: var(--line);
}
.h-progress span {
  display: block; height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

/* ============================================================
   SERVICES — sticky stacked cards
   ============================================================ */
.services {
  position: relative;
  padding: var(--section-pad) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.services-stack { position: relative; }
.service-card {
  position: sticky;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(2rem, 5vw, 4.5rem);
  margin-bottom: 2rem;
  min-height: 55vh;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 1.5rem 3rem;
  will-change: transform;
}
.service-card:nth-child(1) { top: calc(10vh + 0rem); }
.service-card:nth-child(2) { top: calc(10vh + 1.5rem); }
.service-card:nth-child(3) { top: calc(10vh + 3rem); }
.service-card:nth-child(4) { top: calc(10vh + 4.5rem); }
.service-num {
  grid-row: 1 / 3;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  color: var(--accent);
}
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
}
.service-card p {
  align-self: end;
  max-width: 46ch;
  color: var(--ink-dim);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
}
.service-card ul {
  grid-column: 2;
  display: flex; gap: 0.75rem; flex-wrap: wrap;
}
.service-card li {
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.5rem 1.1rem;
  color: var(--ink-dim);
}
.service-preview {
  position: fixed; z-index: 6000;
  top: 0; left: 0;
  width: clamp(220px, 22vw, 340px);
  aspect-ratio: 3 / 2;
  border-radius: 6px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.85);
  will-change: transform;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: var(--section-pad) var(--gutter);
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.quote { position: relative; min-height: 9em; }
.quote-text {
  position: absolute; inset: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2.8rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  opacity: 0;
  visibility: hidden;
}
.quote-text.is-active { position: relative; opacity: 1; visibility: visible; }
.quote-text .word { display: inline-block; }
.quote-author { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0.25rem; }
.quote-name { font-weight: 500; font-size: 1rem; }
.quote-role { font-size: 0.85rem; color: var(--ink-dim); }
.quote-dots { display: flex; gap: 0.6rem; justify-content: center; margin-top: 2.5rem; }
.quote-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.quote-dot.is-active { background: var(--accent); transform: scale(1.4); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  position: relative;
  padding: var(--section-pad) var(--gutter) clamp(4rem, 8vw, 7rem);
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
}
.contact-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 11vw, 10rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}
.cta-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: clamp(160px, 18vw, 230px); height: clamp(160px, 18vw, 230px);
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: clamp(4rem, 9vw, 7rem);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  will-change: transform;
}
.cta-circle:hover { background: var(--ink); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  text-align: left;
  border-top: 1px solid var(--line);
  padding-top: 3rem;
}
.contact-label {
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.25rem;
}
.contact-col a { display: table; margin-bottom: 0.6rem; font-size: 1.05rem; }
.link-underline {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.5s var(--ease), color 0.3s var(--ease);
  padding-bottom: 2px;
}
.link-underline:hover { background-size: 100% 1px; color: var(--accent); }
.clock {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid var(--line); overflow: hidden; }
.footer-marquee { padding: clamp(2rem, 5vw, 4rem) 0 1rem; overflow: hidden; }
.footer-marquee-track {
  display: flex; width: max-content;
  animation: footer-scroll 28s linear infinite;
  will-change: transform;
}
.footer-marquee-track span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink-faint);
  transition: color 0.4s var(--ease);
}
.footer-marquee:hover .footer-marquee-track span { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
@keyframes footer-scroll {
  to { transform: translateX(-50%); }
}
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.5rem var(--gutter) 2rem;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 6500;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(14, 14, 14, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease),
              visibility 0s 0.4s, background-color 0.3s var(--ease);
}
.back-to-top.is-visible {
  opacity: 1; visibility: visible;
  transform: translateY(0);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0s 0s;
}
.back-to-top:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Large desktop */
@media (min-width: 1440px) {
  .works-grid { gap: 8rem 3rem; }
}

/* Laptop */
@media (max-width: 1024px) {
  .hero-image { right: var(--gutter); width: clamp(200px, 30vw, 320px); opacity: 0.9; }
  .work-card:nth-child(1) { grid-column: 1 / 8; }
  .work-card:nth-child(2) { grid-column: 8 / 13; margin-top: 14vh; }
  .work-card:nth-child(3) { grid-column: 1 / 7; margin-top: -4vh; }
  .work-card:nth-child(4) { grid-column: 7 / 13; margin-top: 8vh; }
  .work-card:nth-child(5) { grid-column: 1 / 7; margin-top: -2vh; }
  .work-card:nth-child(6) { grid-column: 7 / 13; margin-top: 10vh; }
}

/* Tablet */
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }

  .hero { justify-content: flex-end; padding-bottom: 16vh; }
  .hero-image {
    top: 22%;
    right: var(--gutter);
    translate: none;
    width: clamp(160px, 42vw, 260px);
    opacity: 0.85;
  }

  .hero-meta { gap: 1.5rem 2.5rem; }
  .scroll-indicator { display: none; }

  /* Works: single column, no staggered offsets */
  .works-grid { grid-template-columns: 1fr; gap: 4rem; }
  .work-card:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .work-figure, .work-card:nth-child(even) .work-figure { aspect-ratio: 4 / 3; }
  .works-bg-word { top: 2rem; }

  /* About: stacked */
  .about-grid { grid-template-columns: 1fr; }
  .about-image { position: relative; top: 0; max-width: 420px; }

  /* Horizontal gallery: native swipe instead of pinned scroll */
  .h-gallery { overflow: visible; }
  .h-track {
    overflow-x: auto;
    width: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
  }
  .h-item { width: min(78vw, 480px); scroll-snap-align: center; }
  .h-hint::after { content: ' → swipe'; }

  /* Services: cards no longer sticky-stacked */
  .service-card { position: relative; top: 0 !important; min-height: 0; margin-bottom: 1.25rem; }
  .service-preview { display: none; }

  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .quote { min-height: 12em; }
}

/* Small phones */
@media (max-width: 480px) {
  :root { --gutter: 1.25rem; }

  .stats { gap: 1.75rem; }
  .cta-circle { width: 150px; height: 150px; }
  .preloader-count { font-size: 4rem; }
}

/* ============================================================
   REDUCED MOTION — kill parallax, marquee, cursor, grain
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .grain { animation: none; }
  .marquee-track, .footer-marquee-track { animation: none !important; transform: none !important; }
  .cursor-dot, .cursor-ring { display: none !important; }
  body.custom-cursor, body.custom-cursor a, body.custom-cursor button { cursor: auto; }
  .char, .mask-inner, .bio-line-inner, .overlay-link { transform: none !important; }
  .hero-meta-item, .scroll-indicator { opacity: 1 !important; }
  .work-figure { clip-path: inset(0 0 0 0) !important; }
  .preloader, .curtain { display: none !important; }
  .work-figure img { position: static; height: 100%; }
  .service-card { position: relative; top: 0 !important; }
}

/* ---------- Admin link + graceful fallbacks for extra items ---------- */
.footer-admin-link {
  color: var(--ink-faint);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s var(--ease);
}
.footer-admin-link:hover { color: var(--accent); }

/* Works/services layouts are tuned for 6/4 items; extra items stack cleanly */
.work-card:nth-child(n+7) { grid-column: span 6; margin-top: 0; }
.service-card:nth-child(n+5) { top: calc(10vh + 6rem); }
@media (max-width: 768px) {
  .work-card:nth-child(n+7) { grid-column: 1 / -1; }
}
