/* ============================================================
   KOFI CREATIVE STUDIOS — styles.css
   Dark cinematic portfolio inspired by fieldstudios.co
   ============================================================ */

/* ---- CUSTOM PROPERTIES ----------------------------------- */
:root {
  --bg:          #0a0a0a;
  --bg-2:        #111111;
  --bg-3:        #181818;
  --fg:          #f0ede8;
  --fg-muted:    #888880;
  --fg-dim:      #444440;
  --accent:      #e8e0d0;
  --accent-warm: #38bdf8;
  --electric: #38bdf8;
  --border:      rgba(240,237,232,0.1);
  --border-hover:rgba(240,237,232,0.25);

  --font-display: -apple-system, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    -apple-system, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;

  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --nav-h: 72px;
  --container: 1280px;
  --gutter: clamp(20px, 5vw, 80px);
}

/* ---- LOGO "Up" COLOUR ------------------------------------ */
.logo-up { color: #38bdf8; }

/* ---- RESET & BASE ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

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

body.loading { overflow: hidden; }
body.nav-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: none; border: none; background: none; font: inherit; color: inherit; }
ul { list-style: none; }

/* ---- GRAIN OVERLAY --------------------------------------- */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  animation: grain 0.5s steps(1) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10%       { transform: translate(-2%, -2%); }
  20%       { transform: translate(3%, 1%); }
  30%       { transform: translate(-1%, 3%); }
  40%       { transform: translate(2%, -1%); }
  50%       { transform: translate(-3%, 2%); }
  60%       { transform: translate(1%, -3%); }
  70%       { transform: translate(-2%, 1%); }
  80%       { transform: translate(3%, 2%); }
  90%       { transform: translate(-1%, -2%); }
}

/* ---- CUSTOM CURSOR --------------------------------------- */
.cursor,
.cursor-follower {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

.cursor {
  width: 8px; height: 8px;
  background: var(--fg);
  transition: transform 0.1s var(--ease-out), width 0.3s var(--ease-out), height 0.3s var(--ease-out), background 0.3s;
}

.cursor-follower {
  width: 36px; height: 36px;
  border: 1px solid rgba(240,237,232,0.4);
  transition: transform 0.18s var(--ease-out), width 0.4s var(--ease-out), height 0.4s var(--ease-out);
}

body.cursor-text .cursor        { width: 60px; height: 60px; background: transparent; border: 1px solid var(--fg); }
body.cursor-text .cursor-follower { opacity: 0; }
body.cursor-view .cursor        { width: 80px; height: 80px; background: var(--fg); mix-blend-mode: difference; }
body.cursor-view .cursor-follower { opacity: 0; }
body.cursor-hidden .cursor,
body.cursor-hidden .cursor-follower { opacity: 0; }

@media (hover: none) {
  .cursor, .cursor-follower { display: none; }
  html { cursor: auto; }
  button { cursor: pointer; }
}

/* ---- PAGE LOADER ----------------------------------------- */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader__inner { text-align: center; }

.loader__logo {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  color: var(--fg);
}

.loader__bar {
  width: 200px;
  height: 1px;
  background: var(--border);
  margin: 0 auto;
  overflow: hidden;
}

.loader__progress {
  height: 100%;
  width: 0%;
  background: var(--fg);
  transition: width 0.05s linear;
}

/* ---- NAVIGATION ------------------------------------------ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
  height: var(--nav-h);
  transition: background 0.4s, border-color 0.4s;
}

.nav.scrolled {
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--gutter);
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  z-index: 810;
  position: relative;
  color: var(--fg);
}

.nav__menu { display: flex; align-items: center; }

.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav__link {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: lowercase;
  color: rgba(240,237,232,0.65);
  transition: color 0.3s;
  position: relative;
}

.nav__link span::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--fg);
  transition: width 0.4s var(--ease-out);
}

.nav__link:hover { color: var(--fg); }
.nav__link:hover span::after { width: 100%; }

.nav__toggle {
  display: none;
  z-index: 810;
  position: relative;
  width: 32px; height: 20px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.nav__toggle-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 28px;
}

.nav__toggle-lines span {
  display: block;
  height: 1px;
  background: var(--fg);
  transition: transform 0.4s var(--ease-out), opacity 0.3s, width 0.4s var(--ease-out);
  transform-origin: center;
}

.nav__toggle-lines span:last-child { width: 18px; margin-left: auto; }

.nav-open .nav__toggle-lines span:first-child  { transform: translateY(7px) rotate(45deg); }
.nav-open .nav__toggle-lines span:last-child   { transform: translateY(-7px) rotate(-45deg); width: 28px; }

/* ---- NAV OVERLAY ----------------------------------------- */
.nav__overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-2);
  z-index: 790;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-out);
}

.nav-open .nav__overlay {
  clip-path: inset(0 0 0% 0);
}

.nav__overlay-links { list-style: none; padding: 0; }

.overlay-link {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s;
}

.overlay-link:hover { border-color: var(--border-hover); }

.overlay-link__num {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
  min-width: 28px;
}

.overlay-link__text {
  font-family: var(--font-display);
  font-size: clamp(32px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  transition: letter-spacing 0.4s var(--ease-out);
}

.overlay-link:hover .overlay-link__text { letter-spacing: 0.01em; }

.nav__overlay-footer {
  margin-top: auto;
  padding-top: 40px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.nav__overlay-footer a {
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  transition: color 0.3s;
}

.nav__overlay-footer a:hover { color: var(--fg); }

/* ---- CONTAINERS ------------------------------------------ */
.container {
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--half { padding: 0 var(--gutter); }

/* ---- LABELS & SECTION TITLES ----------------------------- */
.label {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 54px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--fg);
}

.section-title em {
  font-style: italic;
  font-weight: 700;
  color: var(--accent-warm);
}

/* ---- BUTTONS --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn--outline {
  padding: 14px 28px;
  border: 1px solid var(--border-hover);
  color: var(--fg);
  background: transparent;
}

.btn--outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--fg);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
}

.btn--outline:hover { color: var(--bg); border-color: var(--fg); }
.btn--outline:hover::before { transform: translateY(0); }

/* Liquid glass buttons */
.btn--electric {
  border-radius: 100px;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.10) 0%,
    rgba(255,255,255,0.04) 50%,
    rgba(56,189,248,0.06) 100%
  );
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.15),
    inset 0 -1px 0 rgba(0,0,0,0.12),
    0 4px 24px rgba(0,0,0,0.25),
    0 1px 4px rgba(0,0,0,0.15);
  color: rgba(255,255,255,0.9);
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn--electric::before {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease-out);
  pointer-events: none;
}

.btn--electric:hover {
  background: linear-gradient(
    135deg,
    rgba(56,189,248,0.18) 0%,
    rgba(14,165,233,0.10) 50%,
    rgba(56,189,248,0.14) 100%
  );
  border-color: rgba(56,189,248,0.5);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -1px 0 rgba(0,0,0,0.1),
    0 4px 32px rgba(56,189,248,0.2),
    0 0 0 1px rgba(56,189,248,0.15);
  color: #fff;
  text-shadow: 0 0 20px rgba(56,189,248,0.6);
}

.btn--electric:hover::before {
  left: 120%;
}

.btn--outline span, .btn--outline svg {
  position: relative;
  z-index: 1;
}

.btn--text {
  color: var(--fg-muted);
  padding: 0;
  gap: 8px;
}

.btn--text:hover { color: var(--fg); gap: 14px; }

.btn--full { width: 100%; justify-content: center; }

/* ---- SCROLL REVEAL --------------------------------------- */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- HERO ------------------------------------------------ */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video-wrap { width: 100%; height: 100%; position: relative; z-index: 1; }

.hero__video {
  width: 100%; height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  filter: contrast(1.05) saturate(1.1) brightness(0.82);
}

.hero__video-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 40%, #1a1512 100%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    /* top fade — keeps nav readable */
    linear-gradient(to bottom, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.0) 28%),
    /* bottom fade — long soft dissolve into next section */
    linear-gradient(to top, rgba(10,10,10,1) 0%, rgba(10,10,10,0.95) 12%, rgba(10,10,10,0.7) 28%, rgba(10,10,10,0.3) 48%, rgba(10,10,10,0.0) 68%),
    /* vignette edges */
    radial-gradient(ellipse at center, transparent 50%, rgba(10,10,10,0.55) 100%);
}


.hero__content {
  position: absolute;
  z-index: 4;
  bottom: clamp(40px, 7vh, 80px);
  left: var(--gutter);
  right: var(--gutter);
}


.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 8vw, 58px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--fg);
  display: flex;
  flex-direction: column;
}

.hero__line {
  display: block;
  opacity: 0;
  transform: translateY(50px);
  animation: slideUp 0.85s var(--ease-out) forwards;
}

.hero__line[data-delay="0"]    { animation-delay: 1.6s; }
.hero__line[data-delay="0.08"] { animation-delay: 1.72s; }
.hero__line[data-delay="0.16"] { animation-delay: 1.84s; }

.hero__line em {
  font-style: italic;
  font-weight: 600;
  color: var(--accent-warm);
}

/* ---- HERO HIGHLIGHT (electric blue sweep on "future.") --- */
/*
   Comet: dark-navy tail → builds to electric blue → luminous bright tip at leading edge.
   0%/100% both at bg-pos 100% (white) so the loop is invisible.
   Same number of drop-shadow layers throughout → CSS interpolates smoothly, no glitch.
*/
.hero__highlight {
  display: inline;
  background: linear-gradient(
    90deg,
    #f0ede8  0%,
    #f0ede8  20%,
    #0ea5e9  42%,   /* straight into electric cyan — no navy */
    #38bdf8  54%,   /* peak — pure lightning cyan */
    #f0ede8  72%,   /* fades back to white */
    #f0ede8  100%
  );
  background-size: 400% 200%;
  background-position: 100% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* One-directional LEFT → RIGHT pass.
     bg-pos 100% = white (blue sitting off to the left, hasn't entered yet).
     bg-pos 0%   = white (blue has exited to the right).
     Instant reset at loop point (0%→100%) is invisible — both ends are white. */
  animation: futureSweep 5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  animation-delay: 3.2s;
}

@keyframes futureSweep {
  /* start — white, blue off to the left (not yet entered) */
  0% {
    background-position: 100% 50%;
    filter:
      drop-shadow(0 0 1px #3b82f600)
      drop-shadow(0 0 1px #2563eb00)
      drop-shadow(0 0 1px #1d4ed800)
      drop-shadow(0 0 1px #1e3a8a00);
  }
  /* peak — deep navy tail, vivid cyan-electric peak */
  50% {
    background-position: 50% 50%;
    filter:
      drop-shadow(0 0  6px #38bdf8cc)
      drop-shadow(0 0 20px #0ea5e999)
      drop-shadow(0 0 44px #0284c766)
      drop-shadow(0 0 78px #1e3a8a33);
  }
  /* end — white, blue has exited to the right. Loops back to 0% invisibly. */
  100% {
    background-position: 0% 50%;
    filter:
      drop-shadow(0 0 1px #3b82f600)
      drop-shadow(0 0 1px #2563eb00)
      drop-shadow(0 0 1px #1d4ed800)
      drop-shadow(0 0 1px #1e3a8a00);
  }
}

/* ---- HOMEPAGE WORK PREVIEW ------------------------------ */
.home-work {
  background: var(--bg);
  padding-top: clamp(48px, 5vw, 80px);
  padding-bottom: 0;
}

.home-work__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: clamp(16px, 2vw, 32px);
}

.home-work__all {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  transition: color 0.25s var(--ease-out);
}
.home-work__all:hover { color: var(--accent-warm); }

/* Asymmetric grid — Field Studios style */
.home-work__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto auto;
  gap: 3px;
}

/* TOP: large left spans rows 1-2, two small stacked right */
.hw-item:nth-child(1) { grid-column: 1 / 9;  grid-row: 1 / 3; }
.hw-item:nth-child(2) { grid-column: 9 / 13; grid-row: 1; }
.hw-item:nth-child(3) { grid-column: 9 / 13; grid-row: 2; }
/* BOTTOM: two small stacked left, large right spans rows 3-4 */
.hw-item:nth-child(4) { grid-column: 1 / 5;  grid-row: 3; }
.hw-item:nth-child(5) { grid-column: 1 / 5;  grid-row: 4; }
.hw-item:nth-child(6) { grid-column: 5 / 13; grid-row: 3 / 5; }

.hw-item {
  position: relative;
  overflow: hidden;
  background: var(--bg-3);
  cursor: none;
}

.hw-item__link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

/* Media wrapper — holds both still + video */
.hw-item__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

/* Large spanning items — fill the grid height, don't fight it */
.hw-item:nth-child(1) .hw-item__media,
.hw-item:nth-child(6) .hw-item__media {
  aspect-ratio: auto;
  height: 100%;
}

.hw-item__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s var(--ease-out), opacity 0.4s ease;
}

/* Video preview — hidden until hover */
.hw-item__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease;
}

/* On hover: scale still, fade in video */
.hw-item:hover .hw-item__img    { transform: scale(1.03); }
.hw-item.is-playing .hw-item__video { opacity: 1; }

/* Zoom-in thumbnail to crop black bars, slow zoom-out on hover into video */
.hw-item--zoom .hw-item__img {
  transform: scale(1.0);
  transition: transform 1.4s var(--ease-out), opacity 0.4s ease;
}
.hw-item--zoom:hover .hw-item__img {
  transform: scale(1.0);
}
.hw-item--zoom .hw-item__video {
  transform: scale(1.0);
  object-fit: contain;
  background: #000;
  transition: opacity 0.6s ease;
}

/* Gradient overlay + text */
.hw-item__info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 22px;
  background: linear-gradient(to top, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.4) 60%, transparent 100%);
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.hw-item:hover .hw-item__info {
  opacity: 1;
  transform: translateY(0);
}

.hw-item__cat {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 5px;
}

.hw-item__title {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.3vw, 20px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--fg);
}

/* Play badge — top-right, visible on hover */
.hw-item__play { display: none; }

/* Mobile */
@media (max-width: 768px) {
  .home-work__grid { grid-template-columns: 1fr 1fr; gap: 2px; }
  .hw-item:nth-child(1) { grid-column: 1 / -1; grid-row: auto; }
  .hw-item:nth-child(2) { grid-column: 1; grid-row: auto; }
  .hw-item:nth-child(3) { grid-column: 2; grid-row: auto; }
  .hw-item:nth-child(4) { grid-column: 1; grid-row: auto; }
  .hw-item:nth-child(5) { grid-column: 2; grid-row: auto; }
  .hw-item:nth-child(6) { grid-column: 1 / -1; grid-row: auto; }
  .hw-item:nth-child(1) .hw-item__media,
  .hw-item:nth-child(6) .hw-item__media { aspect-ratio: 16/9; height: auto; }
  .hw-item:nth-child(1) .hw-item__img { min-height: 220px; }
  .hw-item:nth-child(6) .hw-item__img { min-height: 220px; }
  .hw-item__title { font-size: 13px; }
}

/* ---- MARQUEE STRIP --------------------------------------- */
.marquee-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-2);
  padding: 14px 0;
}

.marquee-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: marquee 24s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 0 28px;
}

.marquee-dot {
  color: var(--accent-warm) !important;
  padding: 0 !important;
}

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

/* ---- WORK ------------------------------------------------ */
.work {
  padding: clamp(80px, 12vw, 160px) 0;
}

.work__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: clamp(40px, 6vw, 80px);
  flex-wrap: wrap;
  gap: 32px;
}

.work__filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 18px;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  border-radius: 100px;
  transition: all 0.3s;
  cursor: none;
}

.filter:hover,
.filter.active {
  border-color: var(--fg);
  color: var(--fg);
  background: rgba(240,237,232,0.06);
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2px;
}

.work__item {
  grid-column: span 4;
  overflow: hidden;
  position: relative;
}

.work__item--large { grid-column: span 8; }

.work__item.hidden {
  display: none;
}

.work__link { display: block; }

.work__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-3);
}

.work__item--large .work__media { aspect-ratio: 16/9; }

.work__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 0.8s var(--ease-out);
  background-color: var(--bg-3);
}

.work__link:hover .work__img { transform: scale(1); }

.work__hover-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,10,0.5);
  color: var(--fg);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.4s;
  backdrop-filter: blur(4px);
}

.work__link:hover .work__hover-label { opacity: 1; }

.work__meta {
  padding: 16px 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  margin-top: 1px;
}

.work__cat {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.work__title {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
  transition: color 0.3s;
}

.work__link:hover .work__title { color: var(--accent-warm); }

/* ---- WORK FILTERS ---------------------------------------- */
.work-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--border);
}

/* ---- WORK PAGE GRID -------------------------------------- */
.work-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--border);
}

.wpg-item {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  transition: opacity 0.4s;
}

.wpg-item:nth-child(3n) { border-right: none; }

.wpg-item.hidden { display: none; }

.wpg-item__link { display: block; }

.wpg-item__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg-3);
}

.wpg-item__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 0.7s var(--ease-out), filter 0.4s;
  background-color: var(--bg-3);
  will-change: transform;
}

.wpg-item__link:hover .wpg-item__img { transform: scale(1); }

.wpg-item__video { display: none; }

.wpg-item__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,10,0.50);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
}

.wpg-item__overlay-pill { /* plain text, no pill styling */ }

.wpg-item__link:hover .wpg-item__overlay { opacity: 1; }

.wpg-item__link:hover .wpg-item__img {
  transform: scale(1);
  filter: brightness(0.75);
}

.wpg-item__info {
  padding: clamp(20px, 2.5vw, 32px);
  border-top: 1px solid var(--border);
}

.wpg-item__top {
  margin-bottom: 8px;
}

.wpg-item__cat {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.wpg-item__title {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.4vw, 22px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin-bottom: 10px;
  transition: color 0.3s;
}

.wpg-item:hover .wpg-item__title { color: var(--accent-warm); }

.wpg-item__desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--fg-muted);
  font-weight: 300;
}

@media (max-width: 900px) {
  .work-page-grid { grid-template-columns: repeat(2, 1fr); }
  .wpg-item:nth-child(3n) { border-right: 1px solid var(--border); }
  .wpg-item:nth-child(2n) { border-right: none; }
}

@media (max-width: 600px) {
  .work-page-grid { grid-template-columns: 1fr; }
  .wpg-item { border-right: none; }
}

/* ---- SERVICES -------------------------------------------- */
.services {
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services__intro {
  max-width: 700px;
  margin-bottom: clamp(60px, 8vw, 100px);
}

.services__intro .section-title { margin-top: 0; }

.services__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
}

.service {
  background: var(--bg-2);
  padding: clamp(32px, 4vw, 56px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  transition: background 0.4s;
  position: relative;
  overflow: hidden;
}

.service::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-3);
  transform: translateY(101%);
  transition: transform 0.6s var(--ease-out);
}

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

.service__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.service__num {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  padding-top: 6px;
  min-width: 28px;
}

.service__name {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  flex: 1;
}

.service__tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-warm);
  padding: 4px 10px;
  border: 1px solid rgba(200,185,154,0.3);
  border-radius: 100px;
  white-space: nowrap;
}

.service__body {
  position: relative;
  z-index: 1;
}

.service__body p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service__body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service__body li {
  font-size: 13px;
  color: var(--fg-muted);
  padding-left: 16px;
  position: relative;
}

.service__body li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--fg-dim);
}

.service__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  transition: color 0.3s, gap 0.3s;
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.service:hover .service__cta { color: var(--fg); gap: 14px; }

/* ---- ABOUT ----------------------------------------------- */
.about {
  padding: clamp(80px, 12vw, 160px) 0;
  overflow: hidden;
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 80vh;
}

.about__visual {
  position: relative;
  overflow: hidden;
  min-height: 80vh;
}

.about__img-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.about__img {
  position: absolute;
  inset: 20px;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.8s var(--ease-out);
  background: var(--bg-3);
}

.about__img-border {
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(240,237,232,0.15);
  pointer-events: none;
  z-index: 2;
}

.about__visual:hover .about__img { transform: none; }
.about__visual:hover .about__img-border { inset: 20px; }

.about__content {
  padding: clamp(60px, 8vw, 120px) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-2);
}

.about__content .section-title { margin: 8px 0 32px; }

.about__text { margin-bottom: 40px; }

.about__text--story p {
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.9;
  color: var(--fg-muted);
  font-weight: 300;
  margin-bottom: 14px;
}

.about__text--closing {
  color: var(--fg) !important;
  font-weight: 400 !important;
}

.about__text p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about__stats {
  display: flex;
  gap: 40px;
  margin-bottom: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.about__stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.about__stat-top {
  display: flex;
  align-items: baseline;
  line-height: 1;
}

.about__stat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--fg);
  display: inline;
}

.about__stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 36px);
  font-weight: 700;
  color: var(--electric);
  display: inline;
  margin-left: 2px;
  vertical-align: baseline;
}

.about__stat-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: 2px;
}

.about__actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }

/* ---- STATEMENT ------------------------------------------- */
.statement {
  padding: clamp(60px, 8vw, 120px) 0;
  text-align: center;
  background: var(--bg);
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.statement__text {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 34px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--fg);
  margin-bottom: 36px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Electric blue sweep on "it's worth telling yet." — same effect as hero highlight */
.statement__highlight {
  display: inline;
  background: linear-gradient(
    90deg,
    #f0ede8  0%,
    #f0ede8  20%,
    #0ea5e9  42%,
    #38bdf8  54%,
    #f0ede8  72%,
    #f0ede8  100%
  );
  background-size: 400% 200%;
  background-position: 100% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
  font-weight: inherit;
  animation: futureSweep 6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  animation-delay: 4s;
}

/* ---- TESTIMONIAL ----------------------------------------- */
.testimonial {
  padding: clamp(80px, 10vw, 130px) 0;
  border-top: 1px solid var(--border);
}

.testimonial__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.testimonial__video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

.testimonial__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.testimonial__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  transition: opacity 0.3s, background 0.3s;
  cursor: pointer;
  opacity: 0;
}

.testimonial__video-wrap:hover .testimonial__play {
  opacity: 1;
  background: rgba(0,0,0,0.15);
}

.testimonial__play svg {
  width: 64px;
  height: 64px;
  color: #fff;
  opacity: 0.9;
  filter: drop-shadow(0 2px 16px rgba(0,0,0,0.6));
  transition: transform 0.2s;
}

.testimonial__play:hover svg { transform: scale(1.1); }

.testimonial__video-wrap.playing .testimonial__play {
  opacity: 0;
  pointer-events: none;
}

.testimonial__meta {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.testimonial__quote {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.testimonial__highlight {
  display: inline;
  background: linear-gradient(
    90deg,
    #f0ede8  0%,
    #f0ede8  20%,
    #0ea5e9  42%,
    #38bdf8  54%,
    #f0ede8  72%,
    #f0ede8  100%
  );
  background-size: 400% 200%;
  background-position: 100% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: futureSweep 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  animation-delay: 1.5s;
}

.testimonial__author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 16px;
  border-left: 2px solid var(--electric);
}

.testimonial__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.02em;
}

.testimonial__company {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---- HOME CONTACT ---------------------------------------- */
.home-contact {
  padding: clamp(80px, 10vw, 140px) 0;
  border-top: 1px solid var(--border);
}

.home-contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}

.home-contact__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 28px;
}

.home-contact__sweep {
  display: inline;
  background: linear-gradient(
    90deg,
    #f0ede8  0%,
    #f0ede8  20%,
    #0ea5e9  42%,
    #38bdf8  54%,
    #f0ede8  72%,
    #f0ede8  100%
  );
  background-size: 400% 200%;
  background-position: 100% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: futureSweep 5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  animation-delay: 1s;
}

.home-contact__sub {
  font-size: clamp(14px, 1.2vw, 16px);
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 340px;
}

.home-contact__direct {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-contact__direct p {
  font-size: 13px;
  font-weight: 400;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

.home-contact__direct a {
  font-size: 13px;
  font-weight: 400;
  color: var(--fg-muted);
  transition: color 0.3s;
}

.home-contact__direct a:hover { color: var(--electric); }

.home-contact__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---- CLIENTS STRIP --------------------------------------- */
.clients-strip {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
}

.clients-strip__label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 20px;
}

.clients-marquee { overflow: hidden; }

.clients-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  width: max-content;
  animation: marquee 28s linear infinite;
  will-change: transform;
}

.clients-track span {
  font-family: var(--font-display);
  font-size: clamp(13px, 1.2vw, 17px);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fg-dim);
  padding: 0 32px;
  transition: color 0.3s;
}

.clients-track span:hover { color: var(--fg); }

.clients-track .sep {
  font-family: var(--font-body) !important;
  font-weight: 300 !important;
  color: var(--fg-dim) !important;
  padding: 0 !important;
  font-size: 24px !important;
  opacity: 0.3;
}

.client-logo {
  height: 168px;
  width: auto;
  max-width: 540px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.75;
  padding: 0 64px;
  transition: opacity 0.3s;
  flex-shrink: 0;
}

.client-logo:hover { opacity: 1; }

.client-logo--colour {
  filter: none;
  opacity: 0.9;
}

.client-logo--colour:hover { opacity: 1; }

/* ---- CONTACT --------------------------------------------- */
.contact {
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.contact__left { padding-top: 8px; }
.contact__left .section-title { margin: 8px 0 24px; }

.contact__sub {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact__links { display: flex; flex-direction: column; gap: 16px; }

.contact__link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--fg-muted);
  transition: color 0.3s, gap 0.3s;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.contact__link:hover { color: var(--fg); gap: 18px; }

.contact__link-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  display: flex;
}

.contact__link-icon svg { width: 100%; height: 100%; }

/* ---- FORM ------------------------------------------------ */
.contact__form { display: flex; flex-direction: column; gap: 0; }

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1px;
  background: var(--border);
  margin-bottom: 1px;
}

.form__field {
  position: relative;
  background: var(--bg-2);
  padding: 28px 0 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1px;
  transition: background 0.3s;
}

.form__row .form__field { margin-bottom: 0; border-bottom: none; }
.form__row { margin-bottom: 1px; }

.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--fg);
  padding: 6px 0 14px 14px;
  appearance: none;
  -webkit-appearance: none;
  cursor: none;
}

.form__field select {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888880' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 12px;
  padding-right: 20px;
  color: var(--fg-muted);
}

.form__field select option {
  background: var(--bg-2);
  color: var(--fg);
}

.form__field textarea { resize: none; line-height: 1.6; }

.form__field label {
  position: absolute;
  top: 10px;
  left: 14px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  pointer-events: none;
  transition: color 0.3s;
}

.form__line {
  position: absolute;
  bottom: 0; left: 0;
  height: 1px;
  width: 100%;
  background: var(--border);
  overflow: hidden;
}

.form__line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--electric);
  box-shadow: 0 0 10px rgba(56,189,248,0.5);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.form__field:focus-within .form__line::after { transform: scaleX(1); }
.form__field:focus-within label { color: var(--electric); }

.form__field input:not(:placeholder-shown) ~ label,
.form__field textarea:not(:placeholder-shown) ~ label,
.form__field select:not([value=""]) ~ label { color: var(--fg-dim); }

.btn--full {
  margin-top: 32px;
  padding: 18px 28px;
}

.btn__text, .btn__arrow { position: relative; z-index: 1; }

.form__success {
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--accent-warm);
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(200,185,154,0.3);
}

.form__success.show { display: flex; }
.form__success svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---- FOOTER ---------------------------------------------- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 32px 0 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter) 36px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  transition: color 0.3s;
}

.footer__logo:hover { color: var(--accent-warm); }

.footer__tagline {
  font-size: 10px;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
}

.footer__copy-inline {
  font-size: 10px;
  color: var(--fg-dim);
  letter-spacing: 0.03em;
  margin: 0;
}

.footer__nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__nav a,
.footer__socials a {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  transition: color 0.3s;
}

.footer__nav a:hover,
.footer__socials a:hover { color: var(--fg); }

.footer__socials { display: flex; gap: 20px; }


/* ---- KEYFRAMES ------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- PAGE HEADER (inner pages) --------------------------- */
.page-header {
  padding: calc(var(--nav-h) + clamp(60px, 8vw, 100px)) var(--gutter) clamp(40px, 5vw, 60px);
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 60px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-top: 8px;
}

.page-title em {
  font-style: italic;
  font-weight: 600;
  color: var(--accent-warm);
}

/* ---- WORK PAGE ------------------------------------------- */
.work--page { padding-top: 0; }

/* ---- SERVICES PAGE — PANEL ROW --------------------------- */
.svc-panels {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: clamp(40px, 6vw, 80px);
}

.svc-panels__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.svc-panel {
  border-right: 1px solid var(--border);
  padding: clamp(40px, 5vw, 72px) clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 20px;
  background: var(--bg);
  transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  z-index: 0;
}

/* Specular highlight — top edge shine */
.svc-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.0) 10%,
    rgba(255,255,255,0.6) 50%,
    rgba(255,255,255,0.0) 90%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: 3;
  pointer-events: none;
}

/* Iridescent shimmer sweep */
.svc-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(56,189,248,0.04) 25%,
    rgba(168,85,247,0.04) 50%,
    rgba(56,189,248,0.06) 75%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: 1;
}

.svc-panel:last-child { border-right: none; }

.svc-panel:hover {
  background: linear-gradient(
    160deg,
    rgba(255,255,255,0.12) 0%,
    rgba(255,255,255,0.05) 40%,
    rgba(56,189,248,0.07) 70%,
    rgba(14,165,233,0.04) 100%
  );
  backdrop-filter: blur(32px) saturate(200%) brightness(1.08);
  -webkit-backdrop-filter: blur(32px) saturate(200%) brightness(1.08);
  transform: translateY(-6px);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.18),
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -1px 0 rgba(0,0,0,0.15),
    0 32px 64px rgba(0,0,0,0.45),
    0 0 0 1px rgba(56,189,248,0.25),
    0 0 50px rgba(56,189,248,0.18),
    0 0 100px rgba(56,189,248,0.08);
  z-index: 2;
}

.svc-panel:hover::before { opacity: 1; }
.svc-panel:hover::after  { opacity: 1; }

.svc-panel:hover .svc-panel__num,
.svc-panel:hover .svc-panel__title,
.svc-panel:hover .svc-panel__desc,
.svc-panel:hover .svc-panel__list li,
.svc-panel:hover .svc-panel__cta {
  color: var(--fg);
}

.svc-panel:hover .svc-panel__list li::before {
  color: rgba(240,237,232,0.35);
}

.svc-panel:hover .svc-panel__cta {
  border-top-color: rgba(255,255,255,0.12);
  gap: 14px;
}


.svc-panel__num {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
}

.svc-panel__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--fg);
}

.svc-panel__desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--fg-muted);
}

.svc-panel__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-self: start;
}

.svc-panel__list li {
  font-size: 13px;
  color: var(--fg-muted);
  padding-left: 18px;
  position: relative;
}

.svc-panel__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--fg-dim);
}

.svc-panel__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border-top: 1px solid var(--border);
  padding-top: 24px;
  transition: color 0.3s, gap 0.3s, text-shadow 0.3s;
}

.svc-panel__cta:hover {
  color: var(--electric);
  text-shadow: 0 0 18px rgba(56,189,248,0.5);
  gap: 14px;
}

.svc-panel--highlight .svc-panel__cta {
  border-top-color: rgba(10,10,10,0.15);
}


/* ---- SERVICES IMAGE STRIP -------------------------------- */
.svc-strip {
  padding: 0;
  margin: 0;
  display: block;
  line-height: 0;
  border-top: 1px solid var(--border);
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.svc-strip__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  width: 100%;
}

.svc-strip__img {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.svc-strip__img--wide {
  grid-column: span 1;
}

.svc-strip__img:hover { transform: none; }

/* ---- FAQ ------------------------------------------------- */
.faq {
  padding: clamp(80px, 10vw, 140px) 0;
  border-top: 1px solid var(--border);
}

.faq__heading {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: clamp(40px, 6vw, 80px);
}

.faq__list {
  border-top: 1px solid var(--border);
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-align: left;
  cursor: none;
  transition: color 0.3s;
}

.faq__q:hover { color: var(--accent-warm); }

.faq__icon {
  font-size: 22px;
  font-weight: 300;
  color: var(--fg-muted);
  transition: transform 0.4s var(--ease-out), color 0.3s;
  flex-shrink: 0;
  line-height: 1;
}

.faq__item.open .faq__icon {
  transform: rotate(45deg);
  color: var(--accent-warm);
}

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out), padding 0.4s;
}

.faq__a p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--fg-muted);
  padding-bottom: 28px;
  max-width: 680px;
}

.faq__item.open .faq__a {
  max-height: 300px;
}

.faq__footer {
  margin-top: 60px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.faq__footer p {
  font-size: 18px;
  color: var(--fg-muted);
}

/* ---- SERVICES PAGE responsive ---------------------------- */
@media (max-width: 900px) {
  .svc-panels__grid { grid-template-columns: 1fr; }
  .svc-panel { border-right: none; border-bottom: 1px solid var(--border); }
  .svc-panel:last-child { border-bottom: none; }
  .svc-strip__grid { grid-template-columns: 1fr; gap: 0; }
  .svc-strip__img { aspect-ratio: 16 / 9; }
  .svc-strip__img--wide { grid-column: span 1; }
}

/* ---- ABOUT PAGE ------------------------------------------ */
.about--page { padding-top: calc(var(--nav-h) + 20px); }
.about--page .about__content .page-title { margin-top: 8px; margin-bottom: 32px; }

/* ---- ABOUT PHOTO ----------------------------------------- */
.about-photo {
  width: 100%;
  height: clamp(320px, 50vw, 680px);
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.8s var(--ease-out);
}

.about-photo:hover img { transform: scale(1.02); }

/* ---- ABOUT MANIFESTO ------------------------------------- */
.about-manifesto {
  padding: clamp(60px, 8vw, 120px) 0;
  border-bottom: 1px solid var(--border);
}

.about-manifesto__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.about-manifesto__left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-manifesto__left p {
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.8;
  color: var(--fg-muted);
  font-weight: 300;
}

.about-manifesto__right {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-belief {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.about-belief:last-child { border-bottom: 1px solid var(--border); }

.about-belief__num {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--electric);
  padding-top: 4px;
}

.about-belief p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--fg-muted);
}

/* ---- ABOUT TICKER ---------------------------------------- */
.about-ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  background: var(--bg-2);
}

.about-ticker__track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: aboutTicker 28s linear infinite;
  width: max-content;
}

.about-ticker__track span {
  font-family: var(--font-display);
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--electric);
  text-transform: lowercase;
}

.about-ticker__dot {
  color: var(--fg-dim) !important;
}

@keyframes aboutTicker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- ABOUT STATS + CTA ----------------------------------- */
.about-footer-section {
  padding: clamp(60px, 8vw, 100px) 0;
}

.about-footer-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.about-stats {
  display: flex;
  gap: clamp(32px, 5vw, 72px);
}

.about-cta p {
  font-size: clamp(20px, 2vw, 28px);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 28px;
}

.about-cta__btns {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

/* ---- ABOUT SPLIT (old — keep for fallback) --------------- */
.about-split { padding-top: var(--nav-h); border-top: 1px solid var(--border); }
.about-split__inner { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.about-split__visual { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow: hidden; }
.about-split__img-wrap { width: 100%; height: 100%; }
.about-split__img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.about-split__story { padding: clamp(60px, 8vw, 120px) clamp(40px, 6vw, 100px); border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 48px; }
.about-split__text { display: flex; flex-direction: column; gap: 24px; }
.about-split__text p { font-size: clamp(15px, 1.1vw, 17px); line-height: 1.8; color: var(--fg-muted); font-weight: 300; }
.about-split__closing h2 { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 36px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--fg); }
.about-split__stats { display: flex; gap: clamp(24px, 4vw, 56px); padding-top: 32px; border-top: 1px solid var(--border); }
.about-split__stat { display: flex; flex-direction: column; gap: 4px; }
.about-split__actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }

@media (max-width: 900px) {
  .about-manifesto__inner { grid-template-columns: 1fr; }
  .about-footer-section__inner { grid-template-columns: 1fr; }
  .about-split__inner { grid-template-columns: 1fr; }
  .about-split__visual { position: relative; height: 60vw; top: 0; }
  .about-split__story { border-left: none; border-top: 1px solid var(--border); }
}

/* ---- ABOUT SPLIT ----------------------------------------- */
.about-split {
  padding-top: var(--nav-h);
  border-top: 1px solid var(--border);
}

.about-split__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* LEFT — sticky image */
.about-split__visual {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow: hidden;
}

.about-split__img-wrap {
  width: 100%;
  height: 100%;
}

.about-split__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* RIGHT — story */
.about-split__story {
  padding: clamp(60px, 8vw, 120px) clamp(40px, 6vw, 100px);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.about-split__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-split__text p {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.8;
  color: var(--fg-muted);
  font-weight: 300;
}

.about-split__closing h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--fg);
}

.about-split__stats {
  display: flex;
  gap: clamp(24px, 4vw, 56px);
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.about-split__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-split__actions {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .about-split__inner { grid-template-columns: 1fr; }
  .about-split__visual { position: relative; height: 60vw; top: 0; }
  .about-split__story { border-left: none; border-top: 1px solid var(--border); }
}

/* ---- CONTACT PAGE ---------------------------------------- */
.contact--page { padding-top: calc(var(--nav-h) + 60px); background: none; border: none; }
.contact--page .contact__left .page-title { margin-top: 8px; margin-bottom: 24px; }

/* ---- NAV ACTIVE LINK ------------------------------------- */
.nav__link.active span { color: var(--fg); }
.nav__link.active span::after { width: 100%; }

/* ---- RESPONSIVE ------------------------------------------ */
@media (max-width: 1024px) {
  .work__item         { grid-column: span 6; }
  .work__item--large  { grid-column: span 12; }
  .about__inner       { grid-template-columns: 1fr; }
  .about__visual { min-height: 50vw; }
  .contact__inner     { grid-template-columns: 1fr; }
  .services__list     { grid-template-columns: 1fr; }
}

@media (hover: none), (max-width: 768px) {
  .hw-item__info {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .nav__menu  { display: none; }
  .nav__toggle { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; }

  .work__item         { grid-column: span 12; }
  .work__item--large  { grid-column: span 12; }
  .work__header       { flex-direction: column; align-items: flex-start; }

  .about__stats { gap: 24px; }

  .form__row { grid-template-columns: 1fr; background: transparent; gap: 0; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer__nav { flex-wrap: wrap; gap: 12px; }
  .footer__copy { flex-direction: column; gap: 4px; }

  /* FAQ */
  .faq__q { padding: 20px 0; gap: 16px; font-size: 14px; }
  .faq__icon { font-size: 18px; flex-shrink: 0; }
  .faq__a p { font-size: 13px; }

  /* Services panels stacked */
  .svc-panels__grid { border-left: none; border-right: none; }

  /* Home work grid — single column on small phones */
  .home-work__grid { gap: 2px; }

  /* Home contact */
  .home-contact__inner { grid-template-columns: 1fr; gap: 40px; }

  /* Statement */
  .statement__text { font-size: clamp(22px, 6vw, 34px); line-height: 1.25; }

  /* Services strip — stack vertically */
  .svc-strip__grid { grid-template-columns: 1fr; }

  /* Testimonial — stack at 768 not just 480 */
  .testimonial__inner { grid-template-columns: 1fr; gap: 32px; }

  /* Work page filters wrap nicely */
  .work-filters { gap: 8px; flex-wrap: wrap; }

  /* Page title size */
  .page-title { font-size: clamp(32px, 9vw, 52px); }

  /* Hero sub-content spacing */
  .hero__content { bottom: clamp(28px, 6vh, 60px); }

  /* Section padding tighter on mobile */
  .home-work { padding-top: 40px; }
}

@media (max-width: 480px) {
  .hero__cta { flex-direction: column; align-items: flex-start; }
  .about__actions { flex-direction: column; align-items: flex-start; }

  /* Page headers */
  .page-header { padding-top: calc(var(--nav-h) + 40px); }

  /* Work page grid single column */
  .work-page-grid { grid-template-columns: 1fr; padding: 0 var(--gutter); }

  /* Footer tighten */
  .footer__tagline { white-space: normal; }
  .footer__socials { gap: 12px; }

  /* Testimonial stack */
  .testimonial__inner { grid-template-columns: 1fr; gap: 32px; }

  /* FAQ footer */
  .faq__footer { flex-direction: column; align-items: flex-start; gap: 16px; }
}
