:root {
  --bg: #0b0b0a;
  --text: #f4f2ec;
  --muted: #928d84;
  --line: #232220;
  --chip: #1c1b19;
  --font-heading: 'Archivo', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --content-inset: 220px;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  background-image: url('../media/hero-image.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-5);
}
.section-label.small { margin-bottom: var(--space-3); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: var(--space-3) var(--space-4);
}
.nav-links { display: flex; gap: var(--space-4); }
.nav-links a {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); border-color: var(--text); }

.side-brand {
  position: fixed;
  top: var(--space-3);
  left: var(--space-4);
  z-index: 51;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}
.side-brand-name {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.side-brand-name .flip-line {
  display: block;
  overflow: hidden;
  line-height: 1.15em;
  color: transparent;
  text-shadow: 0 -1.15em 0 var(--muted), 0 0 0 var(--muted);
  transition: text-shadow 0.4s var(--ease);
}
.side-brand-name:hover .flip-line, .side-brand-name:focus-visible .flip-line {
  text-shadow: 0 0 0 var(--text), 0 1.15em 0 var(--text);
}
.side-linkedin {
  position: fixed;
  bottom: var(--space-4);
  left: var(--space-4);
  z-index: 51;
  width: 38px;
  height: 38px;
  padding: 7px;
  color: var(--muted);
  background: var(--chip);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.side-linkedin:hover, .side-linkedin:focus-visible { color: var(--text); border-color: var(--muted); }
.side-linkedin svg { width: 100%; height: 100%; fill: currentColor; display: block; }

@media (max-width: 768px) {
  :root { --content-inset: var(--space-4); }
  .nav-links { display: none; }
  .side-brand-name { font-size: 1.05rem; }
  .side-linkedin { display: none; }
}

.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
}
.hero-copy { position: absolute; left: max(6%, var(--content-inset)); top: 50%; transform: translateY(-50%); max-width: 46%; z-index: 2; }
.eyebrow { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-2); }
.hero h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.8rem, 4.5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero h1 .muted { color: var(--muted); font-weight: 600; }

@media (max-width: 768px) {
  body { background-image: none; }
  .hero, .about {
    background-image: url('../media/hero-image.jpeg');
    background-size: cover;
    background-position: 72% 28%;
    background-repeat: no-repeat;
    background-attachment: scroll;
  }
  .hero-copy { max-width: 84%; left: 6%; top: 50%; bottom: auto; transform: translateY(-50%); }
  .hero h1 { font-size: clamp(2.4rem, 9vw, 3.4rem); }
}

.about { position: relative; padding: var(--space-8) var(--space-4) var(--space-8) var(--content-inset); max-width: 1400px; margin: 0 auto; overflow: hidden; }
.about::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  background: linear-gradient(180deg, rgba(11, 11, 10, 0) 0%, rgba(11, 11, 10, 0.92) 480px, rgba(11, 11, 10, 0.92) 100%);
  z-index: 0;
}
.about-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--space-7); }
.about-copy p { max-width: 65ch; margin-bottom: var(--space-3); font-size: 1.05rem; line-height: 1.65; }
.about-copy .philosophy {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  margin-top: var(--space-4);
}

.timeline { position: relative; list-style: none; }
.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--line);
}
.timeline-item { position: relative; padding-left: var(--space-5); }
.timeline-item + .timeline-item { margin-top: var(--space-2); }
.timeline-dot {
  position: absolute;
  left: 1px; top: 5px;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid var(--muted);
  background: var(--bg);
  z-index: 1;
}
.timeline-item--current .timeline-dot {
  left: -1px; top: 3px;
  width: 14px; height: 14px;
  background: var(--text);
  border-color: var(--text);
}
.timeline-card { border-radius: 10px; padding: 14px var(--space-3); }
.timeline-card-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); }
.timeline-card--current { background: var(--text); }
.timeline-card--current h4 { font-size: 1rem; font-weight: 700; color: var(--bg); }
.timeline-card--current p { font-size: 0.85rem; color: rgba(11,11,10,0.6); margin-top: 4px; }
.timeline-card--glass {
  background: rgba(244,242,236,0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(244,242,236,0.1);
}
.timeline-card--glass h4 { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.timeline-card--glass p { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.timeline-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bg);
  background: rgba(11,11,10,0.08);
  border: 1px solid rgba(11,11,10,0.18);
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: var(--space-5); }
}

.media-placeholder {
  background: repeating-linear-gradient(135deg, var(--chip), var(--chip) 10px, #141311 10px, #141311 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3);
}
.media-placeholder .placeholder-note { font-size: 0.75rem; color: var(--muted); max-width: 240px; }

.work { padding: 0; }
.work-heading { position: relative; z-index: 1; padding: var(--space-6) var(--space-4) var(--space-3) var(--content-inset); margin-bottom: 0; }
.work-group { margin-bottom: var(--space-7); }
.work-group-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--space-3);
}
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.work-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}
.work-card:hover, .work-card:focus-visible { border-color: var(--muted); transform: translateY(-2px); }
.work-card-media { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; display: block; }
.work-card-meta { display: flex; justify-content: space-between; align-items: center; padding: var(--space-3); }
.work-card-title { font-weight: 600; }
.work-card-tag { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }

@media (max-width: 768px) {
  .work-grid { grid-template-columns: 1fr; }
}

.contact { position: relative; padding: var(--space-7) var(--space-4) var(--space-8) var(--content-inset); max-width: 1400px; margin: 0 auto; border-top: 1px solid var(--line); }
.contact::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  background: var(--bg);
  z-index: 0;
}
.contact-heading { position: relative; z-index: 1; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-5); }
.contact-layout { position: relative; z-index: 1; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: var(--space-6); }
.contact-grid { display: flex; flex-direction: column; max-width: 640px; }
.contact-row { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); padding: var(--space-5) 0; border-bottom: 1px solid var(--line); }
.contact-label { font-family: var(--font-body); font-weight: 400; font-size: 1rem; color: var(--muted); }
.contact-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 200ms var(--ease);
}
@media (hover: hover) {
  .contact-value:hover { color: var(--muted); }
}

.email-copy-btn { display: inline-flex; align-items: center; gap: var(--space-2); }
.email-copy-btn .copy-icon { position: relative; width: 0.72em; height: 0.72em; flex-shrink: 0; }
.email-copy-btn .copy-icon svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}
.email-copy-btn .icon-check { opacity: 0; transform: scale(0.5); }
.email-copy-btn.is-copied .icon-copy { opacity: 0; transform: scale(0.5); }
.email-copy-btn.is-copied .icon-check { opacity: 1; transform: scale(1); }

.globe-wrap { display: flex; align-items: center; justify-content: center; }
#globe-canvas { width: 100%; max-width: 420px; height: auto; aspect-ratio: 1 / 1; }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .globe-wrap { max-width: 280px; margin: 0 auto; }
}

.close-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #3a3a3c;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
  transition: background-color 200ms var(--ease);
}
.close-link svg { width: 16px; height: 16px; transition: transform 250ms var(--ease); }
.close-link:hover, .close-link:focus-visible { background: #55555a; }
.close-link:hover svg, .close-link:focus-visible svg { transform: rotate(90deg); }

body.case-page {
  --text: #141311;
  --muted: #6b665e;
  --line: #e3e0d9;
  --chip: #f2efe8;
  background-color: #ffffff;
  background-image: url('../media/bg-image-work-page.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
body.case-page .side-linkedin {
  mix-blend-mode: difference;
  background: transparent;
  border-color: #fff;
  color: #fff;
}
body.case-page .side-linkedin:hover, body.case-page .side-linkedin:focus-visible { color: #fff; border-color: #fff; }
body.case-page .side-brand-name .flip-line { text-shadow: 0 -1.15em 0 #3a3a3c, 0 0 0 #3a3a3c; }
body.case-page .side-brand-name:hover .flip-line, body.case-page .side-brand-name:focus-visible .flip-line { text-shadow: 0 0 0 #8a8a8d, 0 1.15em 0 #8a8a8d; }

.case-hero { position: relative; height: 70vh; min-height: 420px; overflow: hidden; background: #050504; }
.case-hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.case-hero::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,.35) 35%, rgba(0,0,0,.85) 100%); pointer-events: none; }
.case-hero-copy { position: absolute; left: max(6%, var(--content-inset)); bottom: 8%; max-width: 60%; z-index: 2; }
.case-tag { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: var(--space-2); }
.case-hero-copy h1 { font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: var(--space-2); }
.case-desc { color: var(--muted); max-width: 60ch; }
.case-body { max-width: 70ch; font-size: 1.05rem; line-height: 1.65; margin-bottom: var(--space-2); }
.case-still { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }

.case-intro { padding: 180px var(--space-4) var(--space-6) var(--content-inset); max-width: 1400px; margin: 0 auto; }
.case-intro h1 { font-family: var(--font-heading); font-weight: 800; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.08; max-width: 22ch; }
.case-intro h1 .muted { color: var(--muted); font-weight: 600; }
.case-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.case-chip { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }

.case-about { padding: 0 var(--content-inset) var(--space-6) var(--content-inset); max-width: 1400px; margin: 0 auto; }

.case-billboard { padding: 0 var(--space-4) var(--space-6) var(--space-4); max-width: 1400px; margin: 0 auto; }
.case-billboard-panel { background: var(--bg); border-radius: 14px; padding: var(--space-5); }
.case-billboard-img { width: 88%; height: 60vh; min-height: 340px; object-fit: cover; border-radius: 8px; display: block; margin: 0 auto; }
.case-billboard-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); width: 88%; margin: var(--space-3) auto 0; }
.case-billboard-gallery img { width: 100%; height: 100%; min-height: 160px; object-fit: cover; border-radius: 8px; display: block; }
.case-billboard-gallery .span-full { grid-column: 1 / -1; min-height: 120px; }
.case-panel-img { width: 100%; height: auto; display: block; border-radius: 8px; }
.case-gallery-2col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }

.case-process { padding: var(--space-6) var(--content-inset) var(--space-7) var(--content-inset); max-width: 1400px; margin: 0 auto; }
.process-panel {
  background: var(--bg);
  border-radius: 20px;
  padding: var(--space-6);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.4);
  margin: 0 calc(-1 * (var(--content-inset) - var(--space-4)));
}
.process-lead { color: rgba(244,242,236,0.6); font-size: 0.95rem; margin-bottom: var(--space-5); max-width: 60ch; }
.process-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(244,242,236,0.1);
}
.process-step {
  position: relative;
  background: rgba(244,242,236,0.04);
  border: 1px solid rgba(244,242,236,0.1);
  border-radius: 14px;
  padding: var(--space-3);
}
.process-step-num {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  color: #f4f2ec;
  background: linear-gradient(155deg, #2e2e31, #0b0b0a);
  border: 1px solid rgba(244,242,236,0.18);
  box-shadow: 0 12px 24px -12px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1), 0 0 22px 2px rgba(244,242,236,0.1);
  margin-bottom: var(--space-2);
}
.process-step-body { padding-top: 0; }
.process-step-tag {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(244,242,236,0.55);
  border: 1px solid rgba(244,242,236,0.16);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 8px;
}
.process-step-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; color: #f4f2ec; margin-bottom: 4px; }
.process-step-desc { color: rgba(244,242,236,0.55); font-size: 0.82rem; line-height: 1.5; }

.process-hub-svg { width: 100%; height: auto; display: block; }
.process-hub-path { fill: none; stroke: url(#processHubGradient); stroke-width: 1.5; }
.process-hub-node-bg { fill: #17171a; stroke: rgba(244,242,236,0.16); stroke-width: 1; }
.process-hub-node-text { fill: #f4f2ec; font-family: var(--font-body); font-size: 12px; font-weight: 500; }
.process-hub-center-bg { fill: url(#processHubCenterGradient); stroke: rgba(244,242,236,0.28); stroke-width: 1; }
.process-hub-center-text { fill: #0b0b0a; font-family: var(--font-heading); font-size: 13px; font-weight: 800; }
.process-hub-dot { fill: #f4f2ec; }

.case-challenge { padding: var(--space-6) var(--content-inset) var(--space-7) var(--content-inset); max-width: 1400px; margin: 0 auto; }
.case-challenge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.case-card {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 20px;
  padding: var(--space-5);
  box-shadow: 0 30px 60px -25px rgba(20,19,17,0.28), inset 0 1px 0 rgba(255,255,255,0.7);
}
.case-card::before {
  content: '';
  position: absolute;
  top: -45%;
  left: -20%;
  width: 140%;
  height: 70%;
  background: linear-gradient(120deg, rgba(255,255,255,0.55), rgba(255,255,255,0) 55%);
  transform: rotate(-8deg);
  pointer-events: none;
}
.case-card .section-label.small { color: var(--muted); position: relative; z-index: 1; }
.case-card p.case-body { color: var(--text); position: relative; z-index: 1; margin-bottom: 0; }

.case-meta { display: flex; gap: var(--space-6); padding: var(--space-5) var(--space-4) var(--space-5) var(--content-inset); max-width: 1400px; margin: 0 auto; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.case-meta p { margin-top: var(--space-1); }

.case-gallery { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6) var(--space-4) var(--space-6) var(--content-inset); max-width: 1400px; margin: 0 auto; }

.case-footer { display: flex; justify-content: center; padding: var(--space-6) var(--space-4) var(--space-8); max-width: 1400px; margin: 0 auto; }
.case-footer-linkedin {
  width: 38px;
  height: 38px;
  padding: 7px;
  border-radius: 4px;
  background: var(--chip);
  border: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.case-footer-linkedin svg { width: 100%; height: 100%; fill: currentColor; }
.case-footer-linkedin:hover, .case-footer-linkedin:focus-visible { color: var(--text); border-color: var(--muted); }
.case-media { width: 100%; border-radius: 4px; }
.case-media.media-placeholder { aspect-ratio: 16 / 9; }
video.case-media { aspect-ratio: 16 / 9; object-fit: cover; background: var(--chip); }
.case-video-trigger {
  aspect-ratio: 16 / 9;
  background: var(--chip);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-label { font-size: 0.9rem; color: var(--muted); }

.case-showcase { padding: var(--space-6) var(--space-4) var(--space-6) var(--space-4); max-width: 1400px; margin: 0 auto; }
.scroll-hint { display: flex; justify-content: center; padding-top: var(--space-3); color: var(--muted); animation: scrollHintBounce 1.8s ease-in-out infinite; }
.scroll-hint svg { width: 20px; height: 20px; }
@keyframes scrollHintBounce {
  0%, 100% { transform: translateY(0); opacity: 0.45; }
  50% { transform: translateY(6px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-hint { animation: none; opacity: 0.6; }
}
.case-showcase-panel { background: var(--bg); border-radius: 14px; padding: var(--space-6); }
.laptop-mockup { width: 88%; margin: 0 auto; }
.laptop-screen {
  position: relative;
  background: #e6e6e8;
  border: 1px solid #d0d0d3;
  border-radius: 12px 12px 3px 3px;
  padding: 7px 7px 10px;
  box-shadow: 0 40px 70px -25px rgba(0,0,0,.65);
}
.laptop-screen::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 64px; height: 7px;
  border-radius: 0 0 6px 6px;
  background: #1a1a1c;
}
.laptop-video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; background: #000; }
.laptop-video-frame--site { aspect-ratio: 2704 / 1756; }
.laptop-video-frame video, .laptop-video-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.laptop-video-frame--site img { object-fit: contain; }
.laptop-base {
  height: 16px;
  margin: 0 -24px;
  background: linear-gradient(180deg, #d8d8da, #b6b6b9);
  border-radius: 0 0 10px 10px;
  position: relative;
}
.laptop-base::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 72px; height: 6px;
  background: var(--bg);
  border-radius: 0 0 8px 8px;
}

.phone-mockup { width: min(300px, 74%); margin: 0 auto; }
.phone-carousel { position: relative; overflow: hidden; padding: var(--space-6) 0; }
.phone-track { display: flex; align-items: center; will-change: transform; transition: transform 900ms var(--ease); }
.phone-carousel-dots { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: var(--space-2); }
.phone-carousel-dot {
  width: 20px;
  height: 3px;
  border-radius: 2px;
  border: none;
  padding: 0;
  background: rgba(244, 242, 236, 0.25);
  cursor: pointer;
  transition: width 300ms var(--ease), background 300ms var(--ease);
}
.phone-carousel-dot:hover { background: rgba(244, 242, 236, 0.5); }
.phone-carousel-dot.is-active { width: 32px; background: #f4f2ec; }
.phone-slide {
  flex: 0 0 auto;
  width: 210px;
  margin: 0 10px;
  transform: scale(0.6);
  filter: blur(3px);
  opacity: 0.35;
  transition: transform 700ms var(--ease), filter 700ms var(--ease), opacity 700ms var(--ease);
}
.phone-slide .phone-mockup { width: 100%; }
.phone-slide.is-adjacent { transform: scale(0.78); filter: blur(1.5px); opacity: 0.65; }
.phone-slide.is-center { transform: scale(1.22); filter: none; opacity: 1; }
.phone-slide.is-center .feed-ad-slideshow { cursor: zoom-in; }
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11,11,10,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  cursor: zoom-out;
}
.lightbox-overlay img, .lightbox-overlay video { max-width: 90vw; max-height: 90vh; border-radius: 8px; box-shadow: 0 40px 80px rgba(0,0,0,0.5); }
.lightbox-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #3a3a3c;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 200ms var(--ease), background 200ms var(--ease);
}
.lightbox-close:hover { transform: scale(1.1); background: #4a4a4c; }
.lightbox-close svg { width: 16px; height: 16px; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #3a3a3c;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 200ms var(--ease), background 200ms var(--ease);
}
.lightbox-nav:hover { transform: translateY(-50%) scale(1.1); background: #4a4a4c; }
.lightbox-nav svg { width: 20px; height: 20px; }
.lightbox-prev { left: var(--space-4); }
.lightbox-next { right: var(--space-4); }
.phone-mockup-png { position: relative; width: 100%; filter: drop-shadow(0 40px 70px rgba(0,0,0,.5)); }
.phone-frame-img { position: relative; z-index: 2; width: 100%; display: block; pointer-events: none; }
.phone-content {
  position: absolute;
  left: 5.2%;
  right: 4.6%;
  top: 1.7%;
  bottom: 1.9%;
  border-radius: 9%;
  overflow: hidden;
  background: #f4f2ec;
  z-index: 1;
}
.phone-status-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 44px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 22px 6px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  z-index: 3;
}
.phone-feed { position: absolute; inset: 0; overflow: hidden; background: #f4f2ec; }
.feed-blur {
  filter: blur(7px);
  opacity: 0.55;
  padding: 14px 14px 0;
}
.feed-blur .feed-line { height: 8px; border-radius: 4px; background: #c9c6bd; margin-bottom: 6px; }
.feed-blur .feed-line.w60 { width: 60%; }
.feed-blur .feed-line.w40 { width: 40%; }
.feed-blur .feed-avatar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.feed-blur .feed-avatar { width: 22px; height: 22px; border-radius: 50%; background: #c9c6bd; flex-shrink: 0; }
.feed-blur.feed-top { padding-top: 50px; }
.feed-blur.feed-photo { height: 90px; border-radius: 8px; background: #c9c6bd; margin: 8px 0; }
.feed-ad { position: relative; z-index: 1; background: #fff; padding: 12px 14px 14px; }
.feed-ad-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.feed-ad-avatar { width: 26px; height: 26px; border-radius: 50%; background: #ff6a1a; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 800; font-size: 0.6rem; color: #fff; }
.feed-ad-name { font-size: 0.72rem; font-weight: 700; color: #141311; line-height: 1.3; display: flex; align-items: center; gap: 3px; }
.feed-ad-check { width: 11px; height: 11px; border-radius: 50%; background: #3897f0; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.feed-ad-check svg { width: 7px; height: 7px; fill: #fff; }
.feed-ad-sponsored { display: block; font-size: 0.68rem; font-weight: 400; color: #65605a; }
.feed-ad-slideshow { position: relative; aspect-ratio: 1 / 1; border-radius: 6px; overflow: hidden; background: #000; }
.feed-ad-slideshow img, .feed-ad-slideshow video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone-zoom-hint {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  opacity: 0;
  transition: opacity 200ms var(--ease);
  pointer-events: none;
}
.phone-zoom-hint svg { width: 24px; height: 24px; }
.phone-zoom-hint span { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em; }
@media (hover: hover) {
  .phone-slide.is-center .feed-ad-slideshow:hover .phone-zoom-hint { opacity: 1; }
}
@media (hover: none) {
  .phone-slide.is-center .phone-zoom-hint { opacity: 1; }
  .phone-zoom-hint svg { width: 34px; height: 34px; }
}
.feed-ad-cta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.feed-ad-cta span:first-child { font-size: 0.72rem; font-weight: 600; color: #141311; }
.feed-ad-btn { flex-shrink: 0; font-size: 0.65rem; font-weight: 700; color: #fff; background: #ff6a1a; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.phone-navbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(255,255,255,0.92);
  border-top: 1px solid #e3e0d9;
  z-index: 2;
}
.phone-navbar span { width: 16px; height: 16px; border-radius: 4px; background: #c9c6bd; }
.phone-navbar span.active { background: #141311; border-radius: 50%; }

.case-nav { display: flex; justify-content: space-between; padding: var(--space-6) var(--space-4) var(--space-8) var(--content-inset); max-width: 1400px; margin: 0 auto; border-top: 1px solid var(--line); }

@media (max-width: 768px) {
  .case-hero-copy { max-width: 84%; }
  .case-meta { gap: var(--space-4); }
  .case-intro { padding-top: 140px; }
  .case-challenge-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .case-billboard-gallery { grid-template-columns: 1fr; }
  .case-billboard-gallery .span-full { grid-column: auto; }
  .case-gallery-2col { grid-template-columns: 1fr; }
  .case-showcase-panel, .case-billboard-panel, .process-panel { padding: var(--space-3); border-radius: 10px; }
  .process-flow { grid-template-columns: 1fr 1fr; }
  .phone-slide { width: 225px; margin: 0 6px; }
  .case-card { padding: var(--space-4); }
}

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  margin: -5px;
  border-radius: 50%;
  background: var(--text);
  pointer-events: none;
  z-index: 999;
  will-change: transform;
}

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

.js .reveal-item { opacity: 0; transform: translateY(14px); transition: opacity 450ms var(--ease), transform 450ms var(--ease); }
.js .reveal-item.is-visible { opacity: 1; transform: translateY(0); }

.stagger > *:nth-child(1) { transition-delay: 0ms; }
.stagger > *:nth-child(2) { transition-delay: 60ms; }
.stagger > *:nth-child(3) { transition-delay: 120ms; }
.stagger > *:nth-child(4) { transition-delay: 180ms; }
.stagger > *:nth-child(5) { transition-delay: 240ms; }
.stagger > *:nth-child(6) { transition-delay: 300ms; }
.stagger > *:nth-child(7) { transition-delay: 360ms; }
.stagger > *:nth-child(8) { transition-delay: 420ms; }
.stagger > *:nth-child(n+9) { transition-delay: 420ms; }

@media (prefers-reduced-motion: reduce) {
  .cursor-dot { display: none; }
}

/* ---- Real case-study extras: video galleries, image-only work cards, external-link case study ---- */

.video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}
.video-gallery video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  background: var(--chip);
  border: 1px solid var(--line);
}

.image-work-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}
.image-work-card:hover, .image-work-card:focus-visible { border-color: var(--muted); transform: translateY(-2px); }
.image-work-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

.statics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
@media (max-width: 1024px) {
  .statics-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .statics-grid { grid-template-columns: 1fr; }
}

.external-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--chip);
  transition: border-color 200ms var(--ease);
}
.external-link-card:hover, .external-link-card:focus-visible { border-color: var(--muted); }
.external-link-card .label { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-1); }
.external-link-card .url { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; }
.external-link-card .arrow { font-size: 1.4rem; color: var(--muted); flex-shrink: 0; }

/* ---- Statics carousel ---- */

.carousel { margin-top: var(--space-2); outline: none; }

.carousel-copy { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-4); flex-wrap: wrap; }
.carousel-label { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; }
.carousel-view {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.carousel-view:hover, .carousel-view:focus-visible { color: var(--text); border-color: var(--muted); }

.carousel-stage-wrap { position: relative; max-width: 760px; margin: 0 auto; }
.carousel-index {
  position: absolute;
  top: -0.22em;
  left: -0.03em;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(7rem, 18vw, 13rem);
  line-height: 1;
  color: var(--line);
  z-index: 0;
  user-select: none;
  font-variant-numeric: tabular-nums;
}
.carousel-stage { position: relative; z-index: 1; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 5; max-height: 760px; background: var(--chip); }
.carousel-track { display: flex; height: 100%; transition: transform 600ms var(--ease); }
.carousel-slide { flex: 0 0 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.carousel-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }

.carousel-nav { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-4); }
.carousel-prev, .carousel-next {
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 200ms var(--ease);
  flex-shrink: 0;
}
.carousel-prev:hover, .carousel-next:hover, .carousel-prev:focus-visible, .carousel-next:focus-visible { border-color: var(--muted); }
.carousel-progress { display: flex; gap: 6px; flex: 1; }
.carousel-dot { flex: 1; max-width: 48px; height: 2px; background: var(--line); border: none; padding: 0; cursor: pointer; position: relative; }
.carousel-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease);
}
.carousel-dot.is-active::after { transform: scaleX(1); }

@media (max-width: 768px) {
  .carousel-copy { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .carousel-stage { aspect-ratio: 4 / 4.6; }
}

/* ---- Skills marquee ---- */

.skills { position: relative; background: rgba(11, 11, 10, 0.92); padding: var(--space-6) 0; overflow: hidden; }

.skills-marquee {
  overflow: hidden;
  padding: 44px 0;
  margin: -44px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.skills-track {
  display: flex;
  width: max-content;
  gap: var(--space-3);
  animation: skillsScroll 38s linear infinite;
}
@media (hover: hover) {
  .skills:hover .skills-track { animation-play-state: paused; }
}

.skill-tile {
  position: relative;
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: 16px;
  background: rgba(244, 242, 236, 0.04);
  border: 1px solid rgba(244, 242, 236, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.skill-tile img { width: 100%; height: 100%; object-fit: contain; }
.skill-tile::after {
  content: attr(data-tool);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #0b0b0a;
  background: #f4f2ec;
  padding: 4px 10px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
  z-index: 3;
}
.skill-tile[data-tool]:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

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

@media (prefers-reduced-motion: reduce) {
  .skills-track { animation: none; }
}

@media (max-width: 768px) {
  .skill-tile { width: 60px; height: 60px; border-radius: 12px; padding: 12px; }
  .skills-track { gap: var(--space-2); }
}

/* ---- Work: project rows ---- */

.project-list {
  display: flex;
  flex-direction: column;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background-image: url('../media/andrew-kliatskyi-tjCuL3sBDGw-unsplash.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.project-row {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  aspect-ratio: 4.5 / 1;
  min-height: 300px;
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.project-row::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.7) 100%);
  pointer-events: none;
}

.project-row-copy { position: relative; z-index: 3; max-width: 1400px; width: 100%; margin: 0 auto; padding: 0 var(--space-4) 0 var(--content-inset); }
.project-row-badge {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: var(--space-2);
}
.project-title { font-family: var(--font-heading); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.05; color: var(--text); text-transform: uppercase; }
.project-subtitle { font-family: var(--font-body); font-weight: 400; font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--text); margin-top: var(--space-2); }

@media (max-width: 768px) {
  .project-row { aspect-ratio: auto; min-height: 260px; }
}
