/* ================================================
   MICHAEL RADER ~ PORTFOLIO
   Design System & Component Styles
   ================================================ */

/* --- RESET ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }

/* --- CUSTOM PROPERTIES ----------------------------- */
:root {
  --bg:          #0C0C0C;
  --bg-2:        #141414;
  --bg-3:        #1C1C1C;
  --border:      rgba(255,255,255,0.07);
  --border-mid:  rgba(255,255,255,0.12);
  --text:        #EDECE8;
  --muted:       #76756F;
  --accent:      #C8973A;
  --accent-dim:  rgba(200,151,58,0.12);
  --accent-mid:  rgba(200,151,58,0.3);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  --container: 1440px;
  --gutter:    clamp(20px, 5vw, 80px);
  --gap-section: clamp(80px, 11vw, 150px);
  --gap:         clamp(16px, 2vw, 24px);

  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:    cubic-bezier(0.33, 1, 0.68, 1);
  --t-fast:  150ms;
  --t-base:  300ms;
  --t-slow:  600ms;
}

/* --- BASE ------------------------------------------ */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* --- GRAIN OVERLAY --------------------------------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* --- CUSTOM CURSOR --------------------------------- */
.cursor {
  position: fixed;
  width: 7px; height: 7px;
  background: var(--text);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width var(--t-base) var(--ease), height var(--t-base) var(--ease);
  mix-blend-mode: difference;
  will-change: left, top;
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(237,236,232,0.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width var(--t-slow) var(--ease), height var(--t-slow) var(--ease), border-color var(--t-base);
  will-change: left, top;
}
.cursor.is-hover { width: 0; height: 0; }
.cursor-ring.is-hover { width: 72px; height: 72px; border-color: var(--accent); }

/* --- LAYOUT ---------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* --- TYPOGRAPHY ------------------------------------ */
.display-xl {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(72px, 13.5vw, 210px);
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.display-lg {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(52px, 8vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.03em;
}
.display-md {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.02em;
}
.display-sm {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
em { font-style: italic; }
strong { font-weight: 600; }

.label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
}

/* --- NAVIGATION ------------------------------------ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--t-base) var(--ease),
              backdrop-filter var(--t-base),
              border-color var(--t-base);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(12,12,12,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: var(--border);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  transition: color var(--t-fast);
}
.nav-logo:hover { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
  transition: color var(--t-fast);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--t-base) var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* --- HERO ------------------------------------------ */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) clamp(48px, 8vw, 88px);
  position: relative;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 18%, black 40%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 18%, black 40%);
}
.hero-photo img {
  height: 100%;
  width: auto;
  display: block;
  opacity: 0.58;
}
.hero-content {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-eyebrow-line {
  display: block;
  width: 40px; height: 1px;
  background: var(--accent);
}
.hero-title {
  margin-bottom: 44px;
}
.hero-title em { color: var(--accent); }
.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.hero-desc {
  font-size: clamp(16px, 1.8vw, 21px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 480px;
}
.hero-desc strong { color: var(--text); font-weight: 500; }
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--border-mid);
  padding: 14px 24px;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
  flex-shrink: 0;
  align-self: flex-end;
}
.hero-cta:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  flex-shrink: 0;
}
.hero-scroll span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.hero-scroll-line {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, var(--muted) 0%, transparent 100%);
  animation: pulse-line 2.2s ease-in-out infinite;
}
@keyframes pulse-line {
  0%, 100% { opacity: 0.3; transform: scaleY(1); transform-origin: top; }
  50%       { opacity: 1;   transform: scaleY(0.5); transform-origin: top; }
}

/* --- SECTION HEADER -------------------------------- */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--border);
  margin-bottom: clamp(4px, 0.3vw, 4px);
}
.section-head-right {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* --- WORK PAGE HEADER ------------------------------ */
.work-page-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: end;
  padding-top: clamp(120px, 14vw, 180px);
  padding-bottom: clamp(48px, 6vw, 80px);
}
.work-page-intro {
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 480px;
}

/* --- HOME SECTIONS --------------------------------- */
.home-sections { border-top: 1px solid var(--border); }
.hs-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(340px, 42vw, 520px);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  cursor: none;
  text-decoration: none;
}
.hs-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.38) saturate(0.7);
  transition: transform var(--t-slow) var(--ease), filter var(--t-slow);
}
.hs-card:hover .hs-bg {
  transform: scale(1.04);
  filter: brightness(0.55) saturate(0.9);
}
/* Video card thumbnail grid as background */
.hs-video .vc-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.hs-video .vc-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.3) saturate(0.6);
  transition: filter var(--t-slow);
}
.hs-card:hover .hs-video .vc-grid img,
.hs-video.hs-card:hover .vc-grid img { filter: brightness(0.48) saturate(0.85); }
.hs-stats {
  position: absolute;
  top: clamp(24px, 3vw, 44px);
  left: clamp(32px, 6vw, 80px);
  display: flex;
  gap: clamp(28px, 4vw, 64px);
  z-index: 2;
}
.hs-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hs-stat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.hs-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hs-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(12,12,12,0.92) 0%,
    rgba(12,12,12,0.6) 45%,
    rgba(12,12,12,0.15) 75%,
    transparent 100%
  );
  z-index: 1;
}
.hs-content {
  position: relative;
  z-index: 2;
  padding: clamp(48px, 6vw, 80px) clamp(32px, 6vw, 80px);
  max-width: 660px;
}
.hs-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.5vw, 82px);
  font-weight: 300;
  line-height: 1.0;
  color: var(--text);
  margin-bottom: 18px;
}
.hs-desc {
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 18px);
  max-width: 440px;
  line-height: 1.65;
}
.hs-arrow {
  position: absolute;
  top: clamp(28px, 3vw, 44px);
  right: clamp(28px, 4vw, 60px);
  font-size: 28px;
  color: var(--accent);
  z-index: 2;
  transition: transform var(--t-base) var(--ease);
}
.hs-card:hover .hs-arrow { transform: translate(5px, -5px); }
.hs-num {
  position: absolute;
  bottom: clamp(28px, 3vw, 44px);
  right: clamp(28px, 4vw, 60px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  z-index: 2;
  opacity: 0.6;
}

/* --- WORK GRID ------------------------------------- */
.work-section { padding-top: var(--gap-section); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3px;
  margin-top: 4px;
  padding-bottom: var(--gap-section);
}

/* Card spanning */
.wc-brandroot    { grid-column: span 12; }
.wc-mopbucket   { grid-column: span 7; }
.wc-drophunter  { grid-column: span 5; }
.wc-alloy       { grid-column: span 5; }
.wc-nameoffice  { grid-column: span 7; }
.wc-video       { grid-column: span 12; }
.wc-personal    { grid-column: span 12; }

/* --- WORK CARD ------------------------------------- */
.work-card {
  position: relative;
  display: block;
  background: var(--bg-2);
  overflow: hidden;
  cursor: none;
}
.wc-inner {
  position: relative;
  min-height: 420px;
}
.wc-brandroot  .wc-inner { min-height: 540px; }
.wc-alloy      .wc-inner { min-height: 560px; }
.wc-personal   .wc-inner { min-height: 340px; }

.wc-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center top;
  transition: transform 0.9s var(--ease), filter 0.4s;
  filter: brightness(0.55) saturate(0.75);
}
.work-card:hover .wc-bg {
  transform: scale(1.05);
  filter: brightness(0.42) saturate(1);
}
.wc-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(12,12,12,0.96) 0%,
    rgba(12,12,12,0.3) 55%,
    transparent 100%
  );
  transition: background var(--t-slow) var(--ease);
}
.work-card:hover .wc-overlay {
  background: linear-gradient(
    to top,
    rgba(12,12,12,0.98) 0%,
    rgba(12,12,12,0.5) 55%,
    rgba(12,12,12,0.1) 100%
  );
}
.wc-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: clamp(24px, 3vw, 44px);
}
.wc-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.wc-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(26px, 3.2vw, 50px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.wc-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 460px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--t-base) var(--ease),
              transform var(--t-base) var(--ease);
}
.work-card:hover .wc-desc { opacity: 1; transform: translateY(0); }

.wc-arrow {
  position: absolute;
  top: clamp(20px, 2.5vw, 36px);
  right: clamp(20px, 2.5vw, 36px);
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-size: 17px;
  transition: all var(--t-base) var(--ease);
}
.work-card:hover .wc-arrow {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(45deg);
}

/* DropHunter ~ no photo, CSS treatment */
.dh-visual {
  position: absolute; inset: 0;
  padding: 56px 36px 36px;
  overflow: hidden;
  background: linear-gradient(135deg, #0e0e10 0%, #141418 100%);
}
.dh-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dh-label::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }

.dh-rows { display: flex; flex-direction: column; gap: 2px; }
.dh-row {
  display: grid;
  grid-template-columns: 1fr 80px 48px;
  gap: 12px;
  align-items: center;
  padding: 9px 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.04);
  transition: background var(--t-fast);
}
.work-card:hover .dh-row:nth-child(odd)  { background: rgba(200,151,58,0.05); }
.dh-domain {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.02em;
}
.dh-bar-wrap { height: 3px; background: rgba(255,255,255,0.06); }
.dh-bar { height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.8s var(--ease); }
.dh-score {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  text-align: right;
}

/* --- VIDEO CARD VISUAL ----------------------------- */
.wc-video .wc-inner { min-height: 420px; }

.vc-grid {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  overflow: hidden;
}
.vc-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(0.7);
  transition: filter 0.6s, transform 0.9s var(--ease);
}
.work-card:hover .vc-grid img {
  filter: brightness(0.38) saturate(1);
  transform: scale(1.04);
}

.vc-stats {
  position: absolute;
  top: clamp(20px, 3vw, 32px);
  left: clamp(20px, 3vw, 36px);
  display: flex;
  gap: clamp(24px, 4vw, 60px);
  z-index: 2;
}
.vc-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vc-stat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}
.vc-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- VIDEO CASE STUDY: EMBEDS ---------------------- */
.cs-video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-2);
  margin: clamp(24px, 3vw, 40px) 0;
}

/* Loading placeholder */
.cs-video-embed::before {
  content: 'Loading Short…';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
  animation: embed-pulse 1.6s ease-in-out infinite;
}
.cs-video-embed.is-loaded::before { display: none; }

@keyframes embed-pulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.75; }
}

.cs-video-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}
.cs-video-embed.is-loaded iframe { opacity: 1; }
.cs-video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin: clamp(24px, 3vw, 40px) 0;
}
.cs-video-grid .cs-video-embed { margin: 0; }

/* Portrait grid for Shorts */
.cs-shorts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin: clamp(24px, 3vw, 40px) 0;
}
.cs-shorts-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cs-shorts-grid--5 { grid-template-columns: repeat(5, 1fr); }
.cs-shorts-grid .cs-video-embed {
  aspect-ratio: 9 / 16;
  margin: 0;
}
.cs-shorts-caption {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.5;
}
.cs-shorts-caption strong { color: var(--accent); font-weight: 400; }

/* Show More button */
.cs-shorts-show-more-wrap { text-align: center; margin: clamp(24px,3vw,40px) 0; }
.cs-show-more {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border-mid);
  padding: 11px 28px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.cs-show-more:hover { border-color: var(--accent); color: var(--accent); }

/* Subsection divider within a section */
.cs-subsection {
  padding-top: clamp(40px, 5vw, 64px);
  margin-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--border-mid);
}

.cs-pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(19px, 2.2vw, 28px);
  line-height: 1.4;
  color: var(--text);
  max-width: 820px;
  margin: clamp(28px, 3.5vw, 48px) 0;
  padding-left: 24px;
  border-left: 2px solid var(--accent);
}

.cs-channel-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color var(--t-fast), color var(--t-fast);
  margin-top: 16px;
}
.cs-channel-link:hover { border-color: var(--accent); color: var(--accent); }
.cs-channel-link svg { flex-shrink: 0; }

/* Native video player */
.cs-video-local {
  width: 100%;
  display: block;
  background: #000;
  margin: clamp(24px, 3vw, 40px) 0;
}

/* Testimonial / reference quote */
.cs-testimonial {
  margin: clamp(32px, 4vw, 56px) 0;
  padding: clamp(28px, 4vw, 44px) clamp(28px, 4vw, 48px);
  border-left: 2px solid var(--accent);
  background: rgba(200,151,58,0.04);
}
.cs-testimonial blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 20px;
  font-weight: 300;
}
.cs-testimonial cite {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.cs-testimonial cite::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.cs-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.cs-tool {
  padding: 18px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
}
.cs-tool-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}
.cs-tool-desc {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Equipment */
.cs-equip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  margin-top: clamp(24px, 3vw, 36px);
}
.cs-equip-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cs-equip-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cs-equip-icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
}
.cs-equip-category {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}
.cs-equip-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 34px;
}
.cs-equip-list li {
  font-size: clamp(13px, 1.2vw, 15px);
  color: var(--muted);
  line-height: 1.6;
}
.cs-equip-list li strong {
  color: var(--text);
  font-weight: 500;
}

/* Education */
.cs-edu-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.cs-edu-item {
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}
.cs-edu-school {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 4px;
}
.cs-edu-field {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.cs-edu-certs-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 8px;
}
.cs-edu-item--cert {
  border-left-color: var(--border-mid);
}
.cs-edu-verify {
  color: var(--accent);
  transition: opacity var(--t-fast);
}
.cs-edu-verify:hover { opacity: 0.7; }

@media (max-width: 860px) {
  .cs-video-grid { grid-template-columns: 1fr; }
  .vc-grid { grid-template-columns: 1fr 1fr; }
}

/* --- SCROLL REVEAL --------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* --- CASE STUDY: PROJECT HEADER ------------------- */
.project-header {
  padding-top: 130px;
  padding-bottom: clamp(56px, 8vw, 96px);
  border-bottom: 1px solid var(--border);
}
.project-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
  transition: color var(--t-fast);
}
.project-back:hover { color: var(--accent); }
.project-back svg { transition: transform var(--t-base) var(--ease); }
.project-back:hover svg { transform: translateX(-4px); }

.project-eyebrow { margin-bottom: 20px; }
.project-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(52px, 9.5vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 44px;
}
.project-intro {
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 740px;
}
.project-intro strong { color: var(--text); font-weight: 500; }
.project-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px 40px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.project-meta-item label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}
.project-meta-item span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}

/* --- CASE STUDY: HERO IMAGE ----------------------- */
.project-hero-img {
  width: 100%;
  margin-top: clamp(48px, 7vw, 80px);
  margin-bottom: clamp(60px, 8vw, 100px);
  overflow: hidden;
  border: 1px solid var(--border);
}
.project-hero-img img {
  width: 100%;
  height: clamp(280px, 52vw, 700px);
  object-fit: cover;
  object-position: top;
  display: block;
}

/* --- CASE STUDY: BODY BLOCKS ---------------------- */
.cs-section {
  margin-bottom: clamp(60px, 8vw, 100px);
}
.cs-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.cs-grid-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
  position: sticky;
  top: 100px;
}
.cs-body p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 22px;
}
.cs-body p:last-child { margin-bottom: 0; }
.cs-body p strong { color: var(--text); font-weight: 500; }
.cs-body p a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-mid);
  transition: border-color var(--t-fast), opacity var(--t-fast);
}
.cs-body p a:hover { opacity: 0.75; }

.cs-body h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(22px, 2.5vw, 34px);
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 16px;
  margin-top: 40px;
}
.cs-body h3:first-child { margin-top: 0; }

/* --- CASE STUDY: IMAGES --------------------------- */
.cs-image {
  margin-bottom: clamp(48px, 6vw, 80px);
  border: 1px solid var(--border);
  overflow: hidden;
}
.cs-image img {
  width: 100%;
  display: block;
}
.cs-image-caption {
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.cs-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.cs-image-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.cs-image-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--border);
  display: block;
}
.cs-image-grid-tall img { aspect-ratio: 3/4; }

/* --- CASE STUDY: OUTCOMES BOX --------------------- */
.cs-outcomes {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: clamp(32px, 5vw, 60px);
  margin-bottom: clamp(60px, 8vw, 100px);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.cs-outcomes-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 6px;
}
.cs-outcomes-list { display: flex; flex-direction: column; gap: 20px; }
.cs-outcomes-list li {
  font-size: 17px;
  color: var(--muted);
  padding-left: 28px;
  position: relative;
  line-height: 1.55;
}
.cs-outcomes-list li strong { color: var(--text); font-weight: 500; }
.cs-outcomes-list li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--accent);
  font-size: 15px;
}

/* Instagram embed grid */
.cs-ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.5vw, 20px);
  align-items: start;
  margin: clamp(24px, 3vw, 40px) 0 clamp(48px, 6vw, 80px);
}
.cs-ig-grid > * {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
}

/* --- CASE STUDY: STAT ROW ------------------------- */
.cs-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: clamp(60px, 8vw, 100px);
}
.cs-stat {
  background: var(--bg);
  padding: clamp(24px, 3vw, 40px);
}
.cs-stat-value {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}
.cs-stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- CASE STUDY: NEXT PROJECT --------------------- */
.project-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(36px, 5vw, 64px) 0;
  border-top: 1px solid var(--border);
  margin-bottom: var(--gap-section);
  transition: color var(--t-fast);
}
.project-next:hover { color: var(--text); }
.project-next-meta { }
.project-next-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 12px;
}
.project-next-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color var(--t-fast);
}
.project-next-arrow {
  font-size: 36px;
  color: var(--accent);
  transition: transform var(--t-base) var(--ease);
  flex-shrink: 0;
  margin-left: 32px;
}
.project-next:hover .project-next-arrow { transform: translateX(10px); }

/* --- ABOUT PAGE ------------------------------------ */
.about-hero { padding-top: 160px; padding-bottom: var(--gap-section); }
.about-hero-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(60px, 8vw, 120px);
  align-items: end;
  padding-bottom: clamp(60px, 8vw, 100px);
  border-bottom: 1px solid var(--border);
}
.about-intro-text {
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.7;
  color: var(--muted);
}
.about-intro-text p { margin-bottom: 22px; }
.about-intro-text p:last-child { margin-bottom: 0; }
.about-intro-text strong { color: var(--text); font-weight: 500; }

.about-ventures {
  padding-top: clamp(60px, 8vw, 100px);
  padding-bottom: clamp(60px, 8vw, 100px);
  border-bottom: 1px solid var(--border);
}
.ventures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 40px;
}
.venture-item {
  background: var(--bg);
  padding: 36px;
  transition: background var(--t-fast);
}
.venture-item:hover { background: var(--bg-2); }
.venture-name {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 300;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.venture-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}
.venture-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.skills-section {
  padding-top: clamp(60px, 8vw, 100px);
  padding-bottom: var(--gap-section);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 40px;
}
.skill-block {
  background: var(--bg);
  padding: 28px 32px;
}
.skill-block .label { display: block; margin-bottom: 16px; }
.skill-block li {
  font-size: 15px;
  color: var(--muted);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--t-fast);
}
.skill-block li:last-child { border-bottom: none; }
.skill-block li:hover { color: var(--text); }

/* --- CONTACT PAGE ---------------------------------- */
.contact-section { padding-top: 160px; padding-bottom: var(--gap-section); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(60px, 8vw, 120px);
  align-items: start;
  padding-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--border);
}
.contact-desc {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 48px;
}
.contact-desc strong { color: var(--text); font-weight: 500; }
.contact-links { display: flex; flex-direction: column; gap: 2px; }
.contact-link-item {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 20px 24px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  transition: border-color var(--t-fast), background var(--t-fast);
  position: relative;
}
.contact-link-item:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.contact-link-type {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  width: 90px;
  flex-shrink: 0;
}
.contact-link-val {
  font-size: 16px;
  color: var(--text);
  flex: 1;
}
.contact-link-arrow {
  color: var(--muted);
  font-size: 14px;
  transition: color var(--t-fast), transform var(--t-base) var(--ease);
}
.contact-link-item:hover .contact-link-arrow {
  color: var(--accent);
  transform: translate(3px, -3px);
}

/* Form */
.form-row { margin-bottom: 24px; }
.form-row label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}
.form-input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 15px 18px;
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.form-input:focus { border-color: var(--accent); background: var(--bg-3); }
.form-input::placeholder { color: rgba(118,117,111,0.55); }
textarea.form-input { min-height: 150px; resize: vertical; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 18px 44px;
  border: none;
  cursor: pointer;
  transition: opacity var(--t-fast), transform var(--t-fast);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

/* --- FOOTER ---------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.footer-nav {
  display: flex;
  gap: 32px;
}
.footer-nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--t-fast);
}
.footer-nav a:hover { color: var(--text); }

/* --- DIVIDER --------------------------------------- */
.divider { width: 100%; height: 1px; background: var(--border); }

/* --- RESPONSIVE ------------------------------------ */
@media (max-width: 1100px) {
  .wc-brandroot    { grid-column: span 12; }
  .wc-mopbucket   { grid-column: span 12; }
  .wc-drophunter  { grid-column: span 12; }
  .wc-alloy       { grid-column: span 6; }
  .wc-nameoffice  { grid-column: span 6; }
  .wc-video       { grid-column: span 12; }
  .wc-personal    { grid-column: span 12; }
}
@media (max-width: 860px) {
  .cs-grid { grid-template-columns: 1fr; gap: 24px; }
  .cs-grid-label { position: static; }
  .cs-outcomes { grid-template-columns: 1fr; gap: 24px; }
  .about-hero-head { grid-template-columns: 1fr; }
  .work-page-header { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .wc-alloy, .wc-nameoffice { grid-column: span 12; }
  .cs-image-grid { grid-template-columns: 1fr; }
  .cs-image-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { gap: 24px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
  .hero { min-height: 80dvh; }
  .hero-photo {
    width: 100%;
    -webkit-mask-image: linear-gradient(to bottom, black 20%, rgba(0,0,0,0.6) 55%, transparent 90%);
    mask-image: linear-gradient(to bottom, black 20%, rgba(0,0,0,0.6) 55%, transparent 90%);
  }
  .hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right top;
    opacity: 0.4;
  }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .project-title { font-size: clamp(44px, 14vw, 72px); }
  .form-row-split { grid-template-columns: 1fr; }
  .cs-image-grid-3 { grid-template-columns: 1fr; }
  .hs-video .vc-grid { grid-template-columns: repeat(2, 1fr); }
  .hs-title { font-size: clamp(36px, 11vw, 56px); }
  .cs-shorts-grid,
  .cs-shorts-grid--3,
  .cs-shorts-grid--5 { grid-template-columns: repeat(2, 1fr); }
  .cs-equip-grid { grid-template-columns: 1fr; }
  .cs-ig-grid { grid-template-columns: 1fr; }
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
}
