/* ================================================================
   PORTFOLIO — style.css
   ================================================================ */

/* ----------------------------------------------------------------
   CUSTOM CURSOR
   ---------------------------------------------------------------- */
@media (hover: hover) {
  body { cursor: none; }
  a, button, [role="button"], label, select { cursor: none; }
}

.custom-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  background: transparent;
  backdrop-filter: grayscale(1) invert(1);
  -webkit-backdrop-filter: grayscale(1) invert(1);
  transition: width 0.2s var(--ease),
              height 0.2s var(--ease),
              opacity 0.2s var(--ease);
  will-change: transform;
}
.custom-cursor.hover-link {
  width: 32px;
  height: 32px;
}
.custom-cursor.hover-img {
  width: 48px;
  height: 48px;
}


/* LOCAL FONTS
   ---------------------------------------------------------------- */

/* TT Firs Neue — headings, nav, UI, body */
@font-face {
  font-family: 'TT Firs Neue';
  src: url('../fonts/TTFirsNeue-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TT Firs Neue';
  src: url('../fonts/TTFirsNeue-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'TT Firs Neue';
  src: url('../fonts/TTFirsNeue-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TT Firs Neue';
  src: url('../fonts/TTFirsNeue-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'TT Firs Neue';
  src: url('../fonts/TTFirsNeue-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TT Firs Neue';
  src: url('../fonts/TTFirsNeue-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TT Firs Neue';
  src: url('../fonts/TTFirsNeue-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TT Firs Neue';
  src: url('../fonts/TTFirsNeue-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Metadannye — hero name accent only */
@font-face {
  font-family: 'Metadannye';
  src: url('../fonts/Metadannye.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ----------------------------------------------------------------
   VARIABLES
   ---------------------------------------------------------------- */
:root {
  --black:      #0A0A0A;
  --white:      #FFFFFF;
  --gray-light: #F5F5F3;
  --gray-mid:   #E0E0DB;
  --gray-text:  #888884;
  --accent:     #C8391A;

  --font-logo:    'TT Firs Neue', sans-serif;
  --font-heading: 'TT Firs Neue', sans-serif;
  --font-body:    'TT Firs Neue', sans-serif;
  --font-accent:  'Metadannye', sans-serif;

  --nav-h:   68px;
  --max-w:   1340px;
  --pad:     clamp(20px, 5vw, 80px);

  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----------------------------------------------------------------
   RESET
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { background: none; border: none; cursor: pointer; font: inherit; padding: 0; }
input, textarea, button { appearance: none; }

/* ----------------------------------------------------------------
   LAYOUT HELPERS
   ---------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ----------------------------------------------------------------
   HEADER
   ---------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
}
.site-header.scrolled { border-color: var(--gray-mid); }

.logo {
  font-family: var(--font-logo);
  font-size: 30px;
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--black);
}
.logo .dot { color: var(--accent); }

.menu-btn {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
  transition: color 0.2s;
}
.menu-btn:hover { color: var(--accent); }

/* ----------------------------------------------------------------
   NAV OVERLAY
   ---------------------------------------------------------------- */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--black);
  display: flex;
  flex-direction: column;
  padding: 0 var(--pad) clamp(40px, 6vh, 80px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}
.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.nav-top {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.nav-logo { font-family: var(--font-logo); font-size: 30px; color: var(--white); }
.nav-logo .dot { color: var(--accent); }

.nav-close-btn {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.2s;
}
.nav-close-btn:hover { color: var(--accent); }

/* nav-body: links left, thumbnail right on desktop */
.nav-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 0;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav-links li { overflow: hidden; }
.nav-links a {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(52px, 9vw, 110px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--white);
  transform: translateY(110%);
  transition: transform 0.55s var(--ease-out), color 0.2s;
}
.nav-overlay.open .nav-links a { transform: translateY(0); }
.nav-links li:nth-child(1) a { transition-delay: 0.04s; }
.nav-links li:nth-child(2) a { transition-delay: 0.08s; }
.nav-links li:nth-child(3) a { transition-delay: 0.12s; }
.nav-links li:nth-child(4) a { transition-delay: 0.16s; }
.nav-links li:nth-child(5) a { transition-delay: 0.20s; }
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }

/* thumbnail panel — desktop only */
.nav-thumb {
  display: none;
  position: relative;
  width: 38%;
  max-width: 480px;
  aspect-ratio: 4/3;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}
@media (min-width: 860px) {
  .nav-thumb { display: block; }
}
.nav-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.nav-thumb-img--active {
  opacity: 1;
  transform: scale(1);
}

.nav-bottom {
  display: flex;
  gap: 28px;
  flex-shrink: 0;
}
.nav-bottom a {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.nav-bottom a:hover { color: var(--white); }

/* ----------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------- */
.site-footer {
  margin-top: 140px;
  border-top: 1px solid var(--gray-mid);
  padding: 44px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo { font-family: var(--font-logo); font-size: 24px; }
.footer-logo .dot { color: var(--accent); }

.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { font-size: 13px; color: var(--gray-text); transition: color 0.2s; }
.footer-nav a:hover { color: var(--black); }

.footer-copy { font-size: 12px; color: var(--gray-text); width: 100%; }

/* ----------------------------------------------------------------
   PAGE BASE
   ---------------------------------------------------------------- */
.page-content { padding-top: var(--nav-h); }

/* ----------------------------------------------------------------
   TYPOGRAPHY & SHARED COMPONENTS
   ---------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-text);
}
.eyebrow-accent { color: var(--accent); }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.accent-bar {
  width: 36px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 28px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 13px 26px;
  border: 1.5px solid currentColor;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn-dark  { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-dark:hover  { background: var(--accent); border-color: var(--accent); }
.btn-light { background: transparent; color: var(--black); border-color: var(--black); }
.btn-light:hover { background: var(--black); color: var(--white); }
.btn-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-white:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* Section row header */
.row-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--gray-mid);
  padding-top: 28px;
  margin-bottom: 56px;
  flex-wrap: wrap;
  gap: 16px;
}

/* ----------------------------------------------------------------
   HOME — HERO
   ---------------------------------------------------------------- */
.hero {
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  flex-direction: column;
  padding: clamp(48px, 8vh, 110px) var(--pad) clamp(48px, 7vh, 96px);
  position: relative;
  overflow: hidden;
}

/* ── IMAGE PANEL ── */
.hero-img-panel {
  display: none;
  position: absolute;
  left: calc(32% + 60px);
  top: 5%;
  width: clamp(280px, 36vw, 520px);
  height: clamp(230px, 48vh, 430px);
  overflow: hidden;
  z-index: 1;
}
@media (min-width: 860px) { .hero-img-panel { display: block; } }

.hip-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.hip-img.is-active { opacity: 1; }

/* ── RED OVERLAY BLOCK ── */
.hero-img-cut {
  display: none;
  position: absolute;
  left: calc(32% + 60px - 80px);
  top: calc(5% + 30%);
  width: clamp(200px, 26vw, 380px);
  height: clamp(140px, 28vh, 260px);
  background: var(--accent);
  mix-blend-mode: multiply;
  opacity: 0.92;
  z-index: 2;
  pointer-events: none;
}
@media (min-width: 860px) { .hero-img-cut { display: block; } }

/* Paused state — JS switches to manual mouse control */
.hero-img-cut.is-manual {
  animation-play-state: paused;
}

@keyframes cut-drift {
  0%   { transform: translate(0px,   0px);  }
  20%  { transform: translate(22px, -18px); }
  45%  { transform: translate(-14px, 24px); }
  70%  { transform: translate(18px,  12px); }
  100% { transform: translate(0px,   0px);  }
}

/* ── INNER CONTENT ── */
.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
  position: relative;
  z-index: 2;
}

/* ── EYEBROW ── */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  opacity: 0;
  animation: hero-fade-up 0.7s var(--ease) 0.1s forwards;
}
.hero-eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── CYCLING ROLE TEXT ── */
.hero-role-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}
.hero-role {
  display: inline-block;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.hero-role.cycling-out {
  opacity: 0;
  transform: translateY(-10px);
}
.hero-role.cycling-in {
  opacity: 0;
  transform: translateY(10px);
}

/* ── NAME ── */
.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(76px, 13vw, 190px);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.05em;
}
.hero-name em {
  font-family: var(--font-accent);
  font-style: normal;
  font-weight: 400;
  color: var(--black);
  letter-spacing: -0.02em;
}
.hero-word--indent {
  padding-left: var(--hero-indent, 0px);
  display: block;
}
.hero-word {
  display: inline-block;
  overflow: hidden;
}
.hero-word-inner {
  display: block;
  opacity: 0;
  transform: translateY(100%);
  animation: hero-word-in 0.75s var(--ease-out) forwards;
}
.hero-word:nth-child(1) .hero-word-inner { animation-delay: 0.3s; }
.hero-word:nth-child(2) .hero-word-inner { animation-delay: 0.5s; }

/* ── PROCESS LIST ── */
.process-list {
  display: none;
  position: absolute;
  right: var(--pad);
  top: clamp(60px, 10vh, 120px);
  width: clamp(220px, 28vw, 360px);
  z-index: 2;
}
@media (min-width: 860px) { .process-list { display: flex; flex-direction: column; gap: 0; } }

.pl-item {
  position: relative;
  padding: 10px 0;
  cursor: none;
}

.pl-word {
  font-family: var(--font-heading);
  font-size: clamp(18px, 2.2vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.process-list.has-active .pl-item:not(.is-active) .pl-word {
  opacity: 0.2;
  transform: none;
  pointer-events: none;
}

.pl-sentences {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s var(--ease), opacity 0.25s var(--ease);
}
.pl-item.is-active .pl-sentences {
  max-height: 200px;
  opacity: 1;
}

.pl-sentences p {
  font-size: clamp(11px, 1vw, 13px);
  color: var(--gray-text);
  line-height: 1.65;
  margin: 0 0 4px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.pl-item.is-active .pl-sentences p         { opacity: 1; transform: none; }
.pl-item.is-active .pl-sentences p:nth-child(1) { transition-delay: 0.06s; }
.pl-item.is-active .pl-sentences p:nth-child(2) { transition-delay: 0.11s; }
.pl-item.is-active .pl-sentences p:nth-child(3) { transition-delay: 0.16s; }
.pl-item.is-active .pl-sentences p:nth-child(4) { transition-delay: 0.21s; }

/* ── GRAIN TEXTURE ── */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: multiply;
}

/* ── PORTRAIT ── */
.hero-portrait {
  display: none;
  position: absolute;
  bottom: clamp(40px, 6vh, 80px);
  right: var(--pad);
  width: clamp(90px, 9vw, 140px);
  aspect-ratio: 3/4;
  overflow: hidden;
  z-index: 3;
  outline: 3px solid var(--white);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  opacity: 0;
  animation: hero-fade-up 0.7s var(--ease) 1s forwards;
}
@media (min-width: 860px) { .hero-portrait { display: block; } }
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ── BOTTOM ── */
.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 44px;
  flex-wrap: wrap;
  gap: 28px;
  opacity: 0;
  animation: hero-fade-up 0.7s var(--ease) 0.85s forwards;
}
.hero-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-location {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin: 0;
}

/* ── STATS ── */
.hero-stats {
  display: flex;
  gap: 36px;
  align-items: flex-end;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: right;
}
.hero-stat-num {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--black);
}
.hero-stat-suffix {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.hero-stat-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-text);
}

/* ── FLOATING CARDS ── */
.hero-cards {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 46%;
  pointer-events: none;
  display: none;
}
@media (min-width: 960px) { .hero-cards { display: block; } }

.hero-card {
  position: absolute;
  overflow: hidden;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 24px 64px rgba(0,0,0,0.13);
  opacity: 0;
  will-change: transform;
  transition: box-shadow 0.4s var(--ease), outline 0.3s var(--ease);
}
.hero-card:hover {
  box-shadow: 0 32px 80px rgba(0,0,0,0.2);
  outline: 3px solid var(--accent);
  z-index: 10;
}
.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
  filter: grayscale(0);
}
/* disable global img hover grayscale on hero cards — tilt handles it */
.hero-card:hover img {
  filter: grayscale(0) !important;
  transform: scale(1.04);
}
.hero-card {
  transform-style: preserve-3d;
  transition: box-shadow 0.4s var(--ease), outline 0.3s var(--ease), transform 0.08s linear;
}

/* Card label on hover */
.hero-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translateY(100%);
  transition: transform 0.3s var(--ease);
}
.hero-card:hover .hero-card-label { transform: translateY(0); }

/* Individual card positions + sizes */
/* Float wrappers — handle position + drift animation only */
.hero-card-float {
  position: absolute;
}
.hero-card-float.hero-card--a {
  top: 10%;
  right: var(--pad);
  width: 58%;
  aspect-ratio: 4/3;
  animation: card-in 0.8s var(--ease-out) 0.6s both,
             float-a 9s ease-in-out 1.4s infinite alternate;
}
.hero-card-float.hero-card--b {
  bottom: 14%;
  right: 2%;
  width: 38%;
  aspect-ratio: 3/4;
  outline: 5px solid var(--white);
  animation: card-in 0.8s var(--ease-out) 0.85s both,
             float-b 12s ease-in-out 1.65s infinite alternate;
}
.hero-card-float.hero-card--c {
  top: 38%;
  right: 55%;
  width: 30%;
  aspect-ratio: 1/1;
  outline: 5px solid var(--white);
  animation: card-in 0.8s var(--ease-out) 1.05s both,
             float-c 15s ease-in-out 1.85s infinite alternate;
}

/* Inner card — handles tilt, image, label */
.hero-card {
  display: block;
  width: 100%;
  overflow: hidden;
}

/* ── KEYFRAMES ── */
@keyframes hero-fade-up {
  to { opacity: 1; transform: translateY(0); }
  from { opacity: 0; transform: translateY(16px); }
}
@keyframes hero-word-in {
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(40px) rotate(var(--card-rot, 0deg)); }
  to   { opacity: 1; transform: translateY(0)   rotate(var(--card-rot, 0deg)); }
}
@keyframes float-a {
  from { transform: rotate(-2deg) translate(0px, 0px); }
  to   { transform: rotate(1.5deg) translate(-8px, -14px); }
}
@keyframes float-b {
  from { transform: rotate(2.5deg) translate(0px, 0px); }
  to   { transform: rotate(-1deg) translate(6px, -18px); }
}
@keyframes float-c {
  from { transform: rotate(-1.5deg) translate(0px, 0px); }
  to   { transform: rotate(2deg) translate(-5px, 12px); }
}

/* Orange dot accent */
.o-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

/* ----------------------------------------------------------------
   HOME — FEATURED WORK
   ---------------------------------------------------------------- */
.featured-section {
  padding: 110px var(--pad) 0;
}

.featured-grid {
  display: grid;
  gap: 3px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .featured-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .featured-grid { grid-template-columns: 3fr 2fr 2fr; }
  .featured-grid > :first-child { grid-column: 1; }
}

/* ----------------------------------------------------------------
   PROJECT CARD (shared: home featured + case-study nav)
   ---------------------------------------------------------------- */
.p-card {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--gray-light);
  cursor: pointer;
}
.p-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.65s var(--ease-out);
}
.p-card:hover .p-card-img { transform: scale(1.05); }

.p-card-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--white);
  border-top: 1px solid var(--gray-mid);
}
.p-card-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
}
.p-card-cat {
  font-size: 11px;
  color: var(--gray-text);
  letter-spacing: 0.05em;
}
.p-card-arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.28s, transform 0.28s var(--ease-out);
}
.p-card:hover .p-card-arrow { opacity: 1; transform: translateY(0); }

/* ----------------------------------------------------------------
   HOME — ABOUT STRIP
   ---------------------------------------------------------------- */
.home-about {
  padding: 120px var(--pad) 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}
@media (min-width: 860px) { .home-about { grid-template-columns: 1fr 1fr; } }

.home-about-text {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3.2vw, 40px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.01em;
}
.home-about-text em { font-style: italic; font-weight: 300; color: var(--gray-text); }

.home-about-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ----------------------------------------------------------------
   PAGE HERO (Work / Clients / About / Contact)
   ---------------------------------------------------------------- */
.page-hero {
  padding: clamp(64px, 9vh, 130px) var(--pad) clamp(48px, 6vh, 88px);
  border-bottom: 1px solid var(--gray-mid);
}
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(60px, 10vw, 140px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

/* ----------------------------------------------------------------
   WORK PAGE
   ---------------------------------------------------------------- */
.work-section { padding: 84px var(--pad) 0; }

.work-section-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--gray-mid);
  padding-bottom: 40px;
}
@media (min-width: 860px) {
  .work-section-header { grid-template-columns: 1fr 1fr; align-items: end; }
}

.work-section-title {
  font-family: var(--font-heading);
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.04em;
  margin-top: 12px;
}

.work-section-desc {
  font-size: clamp(14px, 1.5vw, 17px);
  color: var(--gray-text);
  line-height: 1.7;
  max-width: 440px;
}
@media (min-width: 860px) { .work-section-desc { padding-bottom: 8px; } }

/* Retainer grid — full-width cards */
.retainer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
}
@media (min-width: 540px) { .retainer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .retainer-grid { grid-template-columns: 1fr 1fr 1fr; } }

.r-card { display: block; position: relative; overflow: hidden; background: var(--gray-light); }
.r-card-img-wrap { position: relative; overflow: hidden; }
.r-card-img-wrap img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 0.65s var(--ease-out);
}
.r-card:hover .r-card-img-wrap img { transform: scale(1.04); }

.r-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
}

.r-card-body {
  padding: 24px 28px;
  background: var(--black);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.r-card-title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.r-card-client { font-size: 13px; color: rgba(255,255,255,0.45); }
.r-card-role {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.06em;
  text-align: right;
  line-height: 1.6;
  max-width: 160px;
  flex-shrink: 0;
}

/* Brand grid */
.brand-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
}
@media (min-width: 540px) { .brand-grid { grid-template-columns: 1fr 1fr; gap: 72px 44px; } }

/* Campaign grid — same visual as brand-grid */
.campaign-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
}
@media (min-width: 540px) { .campaign-grid { grid-template-columns: 1fr 1fr; gap: 72px 44px; } }
@media (min-width: 960px) { .campaign-grid { grid-template-columns: 1fr 1fr 1fr; gap: 72px 44px; } }

.w-card { display: block; }
.w-card-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--gray-light);
  margin-bottom: 20px;
}
.w-card-img-wrap img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.65s var(--ease-out);
}
.w-card:hover .w-card-img-wrap img { transform: scale(1.04); }

.w-card-num {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-family: var(--font-logo);
  font-size: 52px;
  line-height: 1;
  color: rgba(255,255,255,0.13);
  pointer-events: none;
  user-select: none;
}

.w-card-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.w-card-title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 3px;
}
.w-card-client { font-size: 14px; color: var(--gray-text); }
.w-card-cat {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-text);
  white-space: nowrap;
  padding-top: 5px;
}

/* ----------------------------------------------------------------
   CASE STUDY
   ---------------------------------------------------------------- */
.cs-hero {
  position: relative;
  height: 72vh;
  min-height: 480px;
  overflow: hidden;
  background: var(--black);
}
.cs-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  display: block;
}
.cs-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--pad) var(--pad) clamp(28px, 4vh, 52px);
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  color: var(--white);
}
.cs-title {
  font-family: var(--font-heading);
  font-size: clamp(50px, 9vw, 128px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.05em;
}
.cs-tagline {
  margin-top: 12px;
  font-size: clamp(15px, 1.8vw, 20px);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.65);
}

.cs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(44px, 7vw, 110px);
  padding: 44px var(--pad) 48px;
}
.cs-meta-cell {
  background: none;
  padding: 0;
}
.cs-meta-cell .eyebrow { margin-bottom: 10px; }
.cs-meta-val {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

/* ── CASE STUDY SIDE RAIL NAV ────────────────────────────────── */
.cs-section-nav {
  position: fixed;
  right: 16px;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 8px 0;
}
@media (min-width: 1200px) {
  .cs-section-nav {
    left: 16px;
    right: auto;
  }
}

.cs-section-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
  text-decoration: none;
  padding: 10px 0;
}

/* The icon button — the visible part at rest */
.cs-section-pill-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
@media (min-width: 1200px) {
  .cs-section-pill { padding: 8px 0; }
  .cs-section-pill-icon { width: 32px; height: 32px; }
}
.cs-section-pill-icon svg {
  color: var(--gray-text);
  opacity: 0.2;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease), transform 0.3s var(--ease);
}

/* The label — slides left on mobile (right rail), right on desktop (left rail) */
.cs-section-pill-label {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black);
  white-space: nowrap;
  background: var(--white);
  border: 1px solid var(--gray-mid);
  padding: 7px 14px;
  position: absolute;
  right: 36px;
  left: auto;
  pointer-events: none;
  opacity: 0;
  transform: translateX(4px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  box-shadow: -2px 2px 12px rgba(0,0,0,0.07);
}
@media (min-width: 1200px) {
  .cs-section-pill-label {
    left: 36px;
    right: auto;
    transform: translateX(-4px);
    box-shadow: 2px 2px 12px rgba(0,0,0,0.07);
  }
}

/* Hover state */
.cs-section-pill:hover .cs-section-pill-label {
  opacity: 1;
  transform: translateX(0);
}
.cs-section-pill:hover .cs-section-pill-icon svg {
  opacity: 0.7;
  color: var(--black);
  transform: scale(1.15);
}

/* Active state */
.cs-section-pill.active .cs-section-pill-icon svg {
  opacity: 1;
  color: var(--accent);
  animation: icon-pop 0.35s var(--ease) forwards;
}
.cs-section-pill.active .cs-section-pill-label {
  color: var(--accent);
  border-color: var(--accent);
}

/* Thin track — runs between the two cap circles, not past them */
.cs-section-nav::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: var(--gray-mid);
  z-index: -1;
}

/* Top / bottom circle anchors */
.cs-rail-cap {
  width: 32px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  padding: 0;
  background: none;
  border: none;
}
.cs-rail-cap-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-text);
  opacity: 0.3;
  transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease),
              background 0.2s var(--ease), transform 0.2s var(--ease);
}
.cs-rail-cap:hover .cs-rail-cap-dot {
  opacity: 1;
  border-color: var(--accent);
  background: var(--accent);
  transform: scale(1.3);
}
/* Label tooltip — same style as pill label */
.cs-rail-cap-label {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black);
  white-space: nowrap;
  background: var(--white);
  border: 1px solid var(--gray-mid);
  padding: 7px 14px;
  position: absolute;
  right: 36px;
  left: auto;
  pointer-events: none;
  opacity: 0;
  transform: translateX(4px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  box-shadow: -2px 2px 12px rgba(0,0,0,0.07);
}
@media (min-width: 1200px) {
  .cs-rail-cap-label {
    left: 36px;
    right: auto;
    transform: translateX(-4px);
    box-shadow: 2px 2px 12px rgba(0,0,0,0.07);
  }
}
.cs-rail-cap:hover .cs-rail-cap-label {
  opacity: 1;
  transform: translateX(0);
}

/* Scrubbing state — subtle feedback while finger is sliding */
.cs-section-nav.scrubbing .cs-section-pill-icon svg {
  opacity: 0.4;
}
.cs-section-nav.scrubbing .cs-section-pill.active .cs-section-pill-icon svg {
  opacity: 1;
  color: var(--accent);
  transform: scale(1.3);
}
.cs-section-nav.scrubbing .cs-rail-cap-dot {
  opacity: 0.5;
}

@keyframes icon-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.5); }
  100% { transform: scale(1.2); }
}

/* process gallery label sits inside the gallery block */
.cs-gallery--process { padding-top: 72px; }
.cs-gallery--process .cs-section-tag { grid-column: 1 / -1; }

.cs-body {
  padding: 80px var(--pad) 0;
  max-width: min(880px, 100%);
}
.cs-section-tag {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ── BRIEF TWO-COLUMN GRID ───────────────────────────────────── */
.cs-brief-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 80px var(--pad) 0;
}
@media (min-width: 860px) {
  .cs-brief-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .cs-brief-col:first-child {
    padding-right: 64px;
    border-right: 1px solid var(--gray-mid);
  }
  .cs-brief-col:last-child {
    padding-left: 64px;
  }
}
.cs-brief-col .cs-text { margin-bottom: 0; }

/* Large section heading used inside cs-body */
.cs-heading {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: var(--black);
  margin-bottom: 28px;
}

.cs-text {
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.8;
  color: #3a3a38;
  margin-bottom: 60px;
}

/* Section divider label — sits above a content block outside cs-body */
.cs-block-label {
  padding: 72px var(--pad) 0;
  display: flex;
  align-items: center;
  gap: 16px;
}
.cs-block-label-line {
  flex: 1;
  height: 1px;
  background: var(--gray-mid);
}
.cs-block-label-text {
  font-family: var(--font-accent);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--gray-text);
}
.cs-block-label-num {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-text);
  opacity: 0.5;
  margin-right: 4px;
}

/* Retainer case study sections */
/* Partnership scope/metrics bar — volume shown as numbers */
.cs-partner-stats {
  padding: 64px var(--pad) 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 24px;
}
@media (min-width: 720px) { .cs-partner-stats { grid-template-columns: repeat(4, 1fr); } }
.cs-partner-stat { display: flex; flex-direction: column; gap: 8px; }
.cs-partner-stat-val {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--black);
}
.cs-partner-stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-text);
}

.cs-retainer-section { padding: 80px var(--pad) 0; }

.cs-retainer-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
@media (min-width: 860px) {
  .cs-retainer-header { grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
}

/* Social/grid image layout for retainer work */
.cs-social-grid {
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 600px)  { .cs-social-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .cs-social-grid { grid-template-columns: repeat(6, 1fr); } }

.cs-social-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease-out);
}
.cs-social-grid img:hover { transform: scale(1.03); z-index: 1; position: relative; }

/* ----------------------------------------------------------------
   PHONE MOCKUP — scrolling campaign preview
   ---------------------------------------------------------------- */
.cs-phone-section {
  padding: 80px var(--pad) 0;
}

.cs-phone-section .cs-section-tag {
  margin-bottom: 36px;
}

.cs-phone-layout {
  display: flex;
  align-items: center;
  gap: 48px;
}

.cs-phone {
  width: 360px;
  flex-shrink: 0;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.14), 0 1px 4px rgba(0,0,0,0.08);
  overflow: hidden;
  position: relative;
}

/* Instagram top bar */
.cs-ig-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}
.cs-ig-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  flex-shrink: 0;
}
.cs-ig-meta { flex: 1; }
.cs-ig-username {
  font-size: 12px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
}
.cs-ig-location {
  font-size: 10px;
  color: var(--gray-text);
  line-height: 1.3;
}
.cs-ig-more {
  font-size: 14px;
  color: var(--black);
  letter-spacing: 1px;
  line-height: 1;
}

/* Scrolling image area */
.cs-phone-screen {
  width: 360px;
  height: 450px;
  overflow: hidden;
}

.cs-phone-scroll {
  display: flex;
  flex-direction: row;
  animation: phone-scroll 14s linear infinite;
  width: max-content;
}

.cs-phone-scroll img {
  width: 360px;
  height: 450px;
  object-fit: contain;
  background: var(--gray-light);
  display: block;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: none;
}

.cs-phone {
  transition: transform 0.4s var(--ease-out);
}
.cs-phone:hover {
  transform: scale(1.03);
  animation-play-state: paused;
}
.cs-phone:hover .cs-phone-scroll {
  animation-play-state: paused;
}

/* Stats panel — sits beside the phone mockup */
.cs-ig-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.cs-phone-layout:hover .cs-ig-stats {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.cs-ig-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px 20px;
  background: var(--off-white);
  border-radius: 12px;
}
.cs-ig-stat-val {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.03em;
  line-height: 1;
}
.cs-ig-stat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-text);
  text-align: center;
}

@keyframes phone-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Instagram bottom bar */
.cs-ig-bottom {
  padding: 10px 14px 14px;
}
.cs-ig-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cs-ig-left {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cs-ig-actions svg { display: block; color: var(--black); }
.cs-ig-likes {
  font-size: 12px;
  color: var(--black);
}

@media (max-width: 600px) {
  .cs-phone { width: 300px; }
  .cs-phone-screen { width: 300px; height: 375px; }
  .cs-phone-scroll img { width: 300px; height: 375px; }
}

/* For print/packaging images — wider aspect ratio */
.cs-retainer-section.is-print .cs-social-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) {
  .cs-retainer-section.is-print .cs-social-grid { grid-template-columns: repeat(3, 1fr); }
}
.cs-retainer-section.is-print .cs-social-grid img { aspect-ratio: 4/3; }

/* ── PROCESS SPLIT — text left (60%), images right (40%) ── */
.cs-process-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding: 80px var(--pad) 0;
}
@media (min-width: 860px) {
  .cs-process-split {
    grid-template-columns: 2fr 3fr;
    gap: 80px;
    align-items: start;
  }
}

.cs-process-text {
  position: sticky;
  top: calc(var(--nav-h) + 48px);
  will-change: transform;
}
.cs-process-text .cs-heading { margin-bottom: 20px; }
.cs-process-text .cs-text    { margin-bottom: 0; }
@media (max-width: 859px) {
  .cs-process-text { padding-bottom: 40vh; }
}
.cs-text--multi p             { margin-bottom: 20px; }
.cs-text--multi p:last-child  { margin-bottom: 0; }
.cs-text--multi strong        { color: var(--black); font-weight: 700; }

/* ── SELECTED CALLOUT ── */
.cs-process-callout {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 40px;
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  background: var(--gray-light);
}
.cs-process-callout-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}
.cs-process-callout-name {
  font-family: var(--font-heading);
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--black);
}

/* ── IMAGES ── */
.cs-process-images {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0;
}
@media (min-width: 860px) {
  .cs-process-images {
    gap: 3px;
    margin-top: 0;
  }
}
.cs-process-img-wrap {
  position: relative;
  overflow: hidden;
}
/* Subtle dark overlay so in-image annotations don't compete with copy */
.cs-process-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.28);
  pointer-events: none;
  z-index: 2;
  transition: opacity 2s ease-in-out;
}
.cs-process-img-wrap:hover::after {
  opacity: 0;
}
.cs-process-img-wrap img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.cs-process-img-wrap:hover .cs-process-img-main {
  transform: scale(1.03);
}
.cs-process-img-rollover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  z-index: 1;
}
.cs-process-img-wrap:hover .cs-process-img-rollover {
  opacity: 1;
}

/* Selected frame — inset so it sits on top of the image, never clipped */
.cs-process-img-wrap.is-selected::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent);
  z-index: 3;
  pointer-events: none;
}

/* Selected bar — shown on mobile only, hidden on desktop (callout handles it) */
.cs-process-selected-bar {
  background: var(--accent);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 14px;
  display: block;
}
@media (min-width: 860px) {
  .cs-process-selected-bar { display: none; }
}

.cs-gallery {
  padding: 80px var(--pad) 0;
  display: grid;
  gap: 3px;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 640px) {
  .cs-gallery img:first-child {
    grid-column: span 2;
    aspect-ratio: 16/7;
  }
}
.cs-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

/* Brand mockups intro — stacked, full width (tag, heading, copy below) */
.cs-mockups-intro {
  padding: 80px var(--pad) 40px;
}
.cs-mockups-intro .cs-text { margin-bottom: 0; }

/* Brand mockups — wide hero (the car) over a 2×2 grid of applications */
.cs-mockups {
  padding: 0 var(--pad);
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}
.cs-mockup-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: zoom-in;
}
.cs-mockup-item:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16/7;
}
.cs-mockup-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}
.cs-mockup-item:first-child img { object-position: center 72%; }
.cs-mockup-item:hover img { transform: scale(1.03); }
.cs-mockup-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 13px;
  background: rgba(13,9,4,0.82);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

/* Colour palette — sticky text left (30%), scrolling image grid right (70%) */
.cs-palette-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding: 80px var(--pad) 0;
}
@media (min-width: 860px) {
  .cs-palette-split {
    grid-template-columns: 2fr 3fr; /* 40 / 60 */
    gap: 64px;
    align-items: start;
  }
}
.cs-palette-text {
  position: sticky;
  top: calc(var(--nav-h) + 48px);
}
.cs-palette-text .cs-text { margin-bottom: 0; }
.cs-palette-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
.cs-palette-grid img {
  width: 100%;
  height: auto;
  display: block;
  background: #2a1e0a; /* dark frame behind the transparent pages */
  cursor: zoom-in;
}

/* ── DARK MOSAIC — brand system showcase ────────────────────── */
.cs-mosaic-wrap {
  padding: 72px var(--pad) 80px;
  margin-top: 0;
}
.cs-mosaic-intro {
  margin-bottom: 48px;
}
.cs-mosaic-intro .cs-text { margin-bottom: 0; }

.cs-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}
@media (min-width: 800px) {
  .cs-mosaic { grid-template-columns: repeat(4, 1fr); }
}

/* span variants */
.cs-mosaic-item--w2 { grid-column: span 2; }
.cs-mosaic-item--w4 { grid-column: span 4; }
@media (max-width: 799px) {
  .cs-mosaic-item--w2 { grid-column: span 2; }
  .cs-mosaic-item--w4 { grid-column: span 2; }
}

.cs-mosaic-item {
  position: relative;
  overflow: hidden;
  background: #2a1e0a;
  cursor: zoom-in;
}
.cs-mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
  min-height: 200px;
}
.cs-mosaic-item:hover img { transform: scale(1.04); }

/* Transparent logo lockups — show in full, never crop.
   --logo-scale (default 1) shrinks the artwork inside its tile
   without changing the tile's framing. */
.cs-mosaic-item--logo img {
  object-fit: contain;
  padding: clamp(40px, 10%, 88px);
  transform: scale(var(--logo-scale, 1));
}
.cs-mosaic-item--logo:hover img { transform: scale(calc(var(--logo-scale, 1) * 1.06)); }

/* Aspect ratios per slot */
.cs-mosaic-item--tall   { aspect-ratio: 3/4; }
.cs-mosaic-item--wide   { aspect-ratio: 16/7; }
.cs-mosaic-item--sq     { aspect-ratio: 1/1; }
.cs-mosaic-item--std    { aspect-ratio: 4/3; }
/* 2:1 — a w2 banner sits flush with the two w1 squares beside it */
.cs-mosaic-item--banner { aspect-ratio: 2/1; }

/* Caption — variant name + short description, pinned to the bottom edge */
.cs-mosaic-label {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 36px 18px 16px;
  background: linear-gradient(to top, rgba(13,9,4,0.92) 0%, rgba(13,9,4,0.6) 45%, rgba(13,9,4,0) 100%);
  pointer-events: none;
  transition: opacity 0.25s;
}
.cs-mosaic-label-title {
  font-family: var(--font-heading);
  font-size: clamp(13px, 1.6vw, 17px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.2;
}
.cs-mosaic-label-ratio {
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.01em;
}

/* Builds CTA — shown on case studies with a buildsPage */
.cs-builds-cta {
  padding: 80px var(--pad) 0;
}
.cs-builds-cta-inner {
  border: 1px solid var(--gray-mid);
  padding: clamp(32px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cs-builds-cta-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 10px 0 12px;
}
.cs-builds-cta-desc {
  font-size: 15px;
  color: var(--gray-text);
  line-height: 1.6;
  max-width: 400px;
}

.cs-nav {
  padding: 80px var(--pad) 0;
  border-top: 1px solid var(--gray-mid);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* ----------------------------------------------------------------
   CLIENTS PAGE
   ---------------------------------------------------------------- */
.clients-grid {
  padding: 80px var(--pad) 0;
  display: grid;
  gap: 1px;
  background: var(--gray-mid);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 540px)  { .clients-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px)  { .clients-grid { grid-template-columns: repeat(4, 1fr); } }

.client-cell {
  background: var(--white);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 140px;
  gap: 5px;
}

.client-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
}
.client-cat {
  font-size: 11px;
  color: var(--gray-text);
  letter-spacing: 0.04em;
}

.clients-featured { padding: 110px var(--pad) 0; }

.feat-client {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 60px 0;
  border-top: 1px solid var(--gray-mid);
  align-items: center;
}
@media (min-width: 720px) { .feat-client { grid-template-columns: 1fr 2fr; } }

.feat-client-label {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.feat-client img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

/* ----------------------------------------------------------------
   ABOUT PAGE
   ---------------------------------------------------------------- */
.about-layout {
  padding: 80px var(--pad) 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 72px;
}
@media (min-width: 860px) { .about-layout { grid-template-columns: 2fr 3fr; gap: 80px; } }

.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
@media (min-width: 860px) {
  .about-photo {
    position: sticky;
    top: calc(var(--nav-h) + 28px);
  }
}

.about-bio {
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.75;
  color: #2f2f2d;
  margin-bottom: 36px;
}
.about-approach-tag {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.about-approach {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.85;
  color: #555550;
  margin-bottom: 56px;
}

.skills-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 52px;
}
.skill-pill {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1.5px solid var(--gray-mid);
  color: var(--black);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.skill-pill:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

/* ----------------------------------------------------------------
   CONTACT PAGE
   ---------------------------------------------------------------- */
.contact-email-wrap {
  padding: 0 var(--pad);
  margin-top: 48px;
}
.contact-email {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4.5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  border-bottom: 3px solid var(--black);
  transition: color 0.2s, border-color 0.2s;
  word-break: break-all;
}
.contact-email:hover { color: var(--accent); border-color: var(--accent); }

.contact-grid {
  padding: 80px var(--pad) 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
}
@media (min-width: 720px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.social-links { display: flex; flex-direction: column; }
.social-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid var(--gray-mid);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  transition: color 0.2s;
}
.social-link:last-child { border-bottom: 1px solid var(--gray-mid); }
.social-link:hover { color: var(--accent); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-label {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-text);
}
.form-input,
.form-textarea {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 0;
  border: none;
  border-bottom: 1.5px solid var(--gray-mid);
  outline: none;
  background: transparent;
  color: var(--black);
  transition: border-color 0.2s;
  width: 100%;
  border-radius: 0;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--gray-text); }
.form-input:focus,
.form-textarea:focus { border-color: var(--black); }
.form-textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 12px; color: var(--gray-text); font-style: italic; margin-top: 10px; }

/* ----------------------------------------------------------------
   SCROLL FADE
   ---------------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ----------------------------------------------------------------
   NOT FOUND
   ---------------------------------------------------------------- */
.not-found {
  padding: 120px var(--pad);
  text-align: center;
}

/* ----------------------------------------------------------------
   RESPONSIVE TWEAKS
   ---------------------------------------------------------------- */
@media (max-width: 540px) {
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .cs-nav { flex-direction: column; gap: 20px; }
  .footer-nav { gap: 16px; }
  .row-header { flex-direction: column; gap: 20px; }
}

/* ----------------------------------------------------------------
   LIGHTBOX
   ---------------------------------------------------------------- */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lb-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}
.lb-img-wrap {
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  opacity: 0;
  transition: opacity 0.25s ease;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}
.lb-close {
  position: fixed;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 1001;
  line-height: 1;
}
.lb-close:hover { opacity: 1; }
.lb-prev,
.lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 52px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  z-index: 1001;
  line-height: 1;
  padding: 0 20px;
  font-weight: 300;
}
.lb-prev { left: 0; }
.lb-next { right: 0; }
.lb-prev:hover,
.lb-next:hover { opacity: 1; }
.lb-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  letter-spacing: 0.1em;
}
