/* =============================================
   RELY.BERLIN – MAIN STYLESHEET v1.0
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Outfit:wght@300;400;500;600;700;800;900&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;1,9..40,300&display=swap');

/* ── CUSTOM PROPERTIES ── */
:root {
  --paper:     #f5f3ef;
  --paper-2:   #edeae5;
  --white:     #fafaf8;
  --ink:       #111110;
  --ink-50:    rgba(17,17,16,0.5);
  --ink-20:    rgba(17,17,16,0.2);
  --ink-08:    rgba(17,17,16,0.08);
  --pink:      rgb(255,3,96);
  --pink-10:   rgba(255,3,96,0.1);
  --rule:      1px solid rgba(17,17,16,0.12);
  --nav-h:     68px;
}

/* ── RESET ── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
img,video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:link, a:visited { color: inherit; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }
/* Kill browser blue focus ring & link colors */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
input, textarea, select { color: inherit; font-family: inherit; }

/* ── BASE ── */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAVIGATION ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 48px;
  background: linear-gradient(to bottom, rgba(17,17,16,0.65) 0%, transparent 100%);
  transition: background 0.4s, box-shadow 0.4s;
  /* No border – avoids sub-pixel gap between nav and content */
}
.site-nav.scrolled {
  background: rgba(245,243,239,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(17,17,16,0.12);
}
.site-nav__logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: rgba(244,241,236,0.95);
  text-decoration: none;
  justify-self: start;
  transition: color 0.4s;
}
.site-nav__logo span { color: var(--pink); }
.site-nav.scrolled .site-nav__logo { color: var(--ink); }

.site-nav__menu {
  display: flex;
  gap: 36px;
  list-style: none;
}
.site-nav__menu a {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244,241,236,0.65);
  transition: color 0.2s;
}
.site-nav__menu a:hover { color: rgba(244,241,236,0.95); }
.site-nav.scrolled .site-nav__menu a { color: var(--ink-50); }
.site-nav.scrolled .site-nav__menu a:hover { color: var(--ink); }

.site-nav__right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}
.site-nav__cta {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--pink);
  padding: 9px 18px;
  transition: opacity 0.2s;
}
.site-nav__cta:hover { opacity: 0.85; }

.site-nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  padding: 4px;
}
.site-nav__burger span {
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(244,241,236,0.9);
  transition: transform 0.3s, opacity 0.2s;
  transform-origin: center;
}
.site-nav.scrolled .site-nav__burger span { background: var(--ink); }
.site-nav__burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-nav__burger.open span:nth-child(2) { opacity: 0; }
.site-nav__burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 199;
  flex-direction: column;
  justify-content: center;
  padding: 60px 40px;
  list-style: none;
}
.site-nav__mobile.open { display: flex; }
.site-nav__mobile li { border-bottom: var(--rule); }
.site-nav__mobile li:first-child { border-top: var(--rule); }
.site-nav__mobile a {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 8vw, 52px);
  font-style: italic;
  color: var(--ink);
  padding: 18px 0;
}
.site-nav__mobile a:hover { color: var(--pink); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__video-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(17,17,16,0.25) 0%, rgba(17,17,16,0.15) 40%, rgba(17,17,16,0.75) 100%);
  pointer-events: none;
}
.hero__body {
  position: relative;
  z-index: 2;
  padding: 0 48px 56px;
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 0;
  align-items: end;
}
.hero__left {
  padding-right: 48px;
  border-right: 1px solid rgba(244,241,236,0.2);
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 4px;
}
.hero__label {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--pink);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__label::before { content: ''; width: 20px; height: 1px; background: var(--pink); }
.hero__sub {
  font-size: 14px;
  font-weight: 300;
  color: rgba(244,241,236,0.7);
  line-height: 1.8;
  max-width: 280px;
}
.hero__actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.hero__right {
  padding-left: 56px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 24px;
}
.hero__headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(56px, 9vw, 128px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: #fafaf8;
  max-width: 10ch;
}
.hero__headline em { font-style: italic; color: var(--pink); }
.hero__usps {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(244,241,236,0.15);
  margin-top: 4px;
}
.hero__usp {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(244,241,236,0.12);
}
.hero__usp-icon {
  font-size: 14px;
  color: var(--pink);
  flex-shrink: 0;
  margin-top: 2px;
  width: 20px;
  font-variant-emoji: text;
  font-style: normal;
}
.hero__usp-title { font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: rgba(244,241,236,0.95); margin-bottom: 3px; }
.hero__usp-desc  { font-size: 13px; font-weight: 300; color: rgba(244,241,236,0.5); line-height: 1.6; }

/* ── BUTTONS ── */
.btn-outline {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244,241,236,0.95);
  border: 1px solid rgba(244,241,236,0.3);
  padding: 11px 22px;
  display: inline-block;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-outline:hover { background: var(--pink); color: #fff; border-color: var(--pink); }

.btn-text {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244,241,236,0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.btn-text::after { content: '→'; transition: transform 0.2s; }
.btn-text:hover { color: rgba(244,241,236,0.95); }
.btn-text:hover::after { transform: translateX(4px); }

.btn-primary {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--pink);
  padding: 13px 28px;
  display: inline-block;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.85; }

/* ── TICKER ── */
.ticker {
  border-top: var(--rule);
  border-bottom: var(--rule);
  padding: 11px 0;
  overflow: hidden;
  background: var(--white);
}
.ticker__inner {
  display: inline-flex;
  animation: ticker 28s linear infinite;
}
.ticker__item {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-20);
  padding: 0 28px;
  white-space: nowrap;
}
.ticker__item--accent { color: var(--pink); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── SECTIONS ── */
.section {
  padding: 100px 48px;
  border-bottom: var(--rule);
}
.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 64px;
}
.section-num { font-family: 'Outfit', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-20); width: 40px; flex-shrink: 0; }
.section-title { font-family: 'DM Serif Display', serif; font-size: clamp(28px, 3.5vw, 52px); line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); }
.section-title em { font-style: italic; color: var(--pink); }
.section-rule { flex: 1; height: 1px; background: var(--ink-08); margin-left: 24px; align-self: center; }
.section-label {
  font-family: 'Outfit', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--pink); display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.section-label::before { content: ''; width: 20px; height: 1px; background: var(--pink); }

/* ── CASES SECTION ── */
.cases-section { background: var(--white); border-bottom: var(--rule); }
.cases-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; flex-wrap: wrap; gap: 16px; }
.cases-title { font-family: 'DM Serif Display', serif; font-size: clamp(40px, 5vw, 68px); line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.cases-link { font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-20); transition: color 0.2s; }
.cases-link:hover { color: var(--pink); }

/* Featured Case */
.case-featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  border: var(--rule);
  margin-bottom: 4px;
  overflow: hidden;
  position: relative;
}
.case-featured__img {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: var(--paper-2);
}
.case-featured__img img,
.case-featured__img .case-card__base-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.16,1,0.3,1); display: block; }
.case-featured:hover .case-featured__img img,
.case-featured:hover .case-featured__img .case-card__base-img { transform: scale(1.03); }
.case-featured__content { padding: 48px 40px; display: flex; flex-direction: column; justify-content: space-between; border-left: var(--rule); }
.case-featured__bottom { display: flex; justify-content: space-between; align-items: flex-end; }

/* Case Grid */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.cases-row3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 4px; }

/* Case Card */
.case-card {
  border: var(--rule);
  overflow: hidden;
  position: relative;
  background: var(--white);
  transition: background 0.2s;
  display: block;
  text-decoration: none;
  color: inherit;
}
.case-card:hover { background: var(--paper-2); }
.case-card__img { aspect-ratio: 3/2; overflow: hidden; position: relative; }
.case-card__img .case-card__base-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.case-card:hover .case-card__img .case-card__base-img { transform: scale(1.04); }
.case-card__content { padding: 24px 24px 20px; border-top: var(--rule); }
.case-card__title { font-family: 'DM Serif Display', serif; font-size: 20px; line-height: 1.2; color: var(--ink); margin: 10px 0 10px; }
.case-card__meta { font-family: 'Outfit', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-20); }

/* Case Tag */
.case-tag { font-family: 'Outfit', sans-serif; font-size: 9px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--pink); display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.case-tag::before { content: ''; width: 16px; height: 1px; background: var(--pink); }

/* Case Video Card */
.case-card--video { background: var(--white); }
.case-card__video { aspect-ratio: 3/2; overflow: hidden; position: relative; }
.case-card__video video { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.85; transition: opacity 0.3s; }
.case-card--video:hover .case-card__video video { opacity: 1; }
.case-card__video-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(17,17,16,0.5) 0%, transparent 60%); z-index: 2; pointer-events: none; }

/* Case Photo Right */
.case-card--photo-right { display: flex; flex-direction: column; }
.case-card--photo-right .case-card__img { flex: 1; aspect-ratio: auto; min-height: 160px; }

/* Arrow button */
/* arrow btn removed */

/* Case Link Row */
.cases-link-row { margin-top: 32px; display: flex; justify-content: flex-end; }

/* Case Filter Bar */
.cases-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.cases-filter__btn {
  font-family: 'Outfit', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink-50); border: 1px solid var(--ink-08);
  padding: 7px 16px; background: none; cursor: pointer; transition: all 0.2s;
}
.cases-filter__btn:hover,
.cases-filter__btn.active { border-color: var(--pink); color: var(--pink); background: var(--pink-10); }

/* Case Meta Row */
.case-meta-row { display: flex; flex-direction: column; gap: 4px; }
.case-meta-item { font-family: 'Outfit', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-20); }

/* ── ABOUT SECTION ── */
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 0; align-items: start; border-top: var(--rule); }
.about-left { padding-right: 60px; border-right: var(--rule); padding-top: 64px; }
.about-right { padding-left: 60px; padding-top: 64px; display: flex; flex-direction: column; gap: 48px; }
.about-manifesto { font-family: 'DM Serif Display', serif; font-size: clamp(22px, 3vw, 38px); font-style: italic; line-height: 1.35; color: var(--ink); padding-bottom: 48px; border-bottom: var(--rule); }
.about-body { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.about-text { font-size: 15px; color: var(--ink-50); line-height: 1.85; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: 'Outfit', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-50); border: 1px solid var(--ink-08); padding: 6px 12px; transition: all 0.2s; }
.tag:hover { border-color: var(--pink); color: var(--pink); }

/* ── SERVICES ── */
.services-section { background: var(--paper-2); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: var(--rule); }
.service-item { padding: 40px 32px; border-right: var(--rule); border-bottom: var(--rule); transition: background 0.2s; }
.service-item:last-child { border-right: none; }
.service-item:hover { background: var(--white); }
.service-num { font-family: 'DM Serif Display', serif; font-size: 40px; font-style: italic; color: var(--ink-08); line-height: 1; margin-bottom: 28px; }
.service-name { font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; padding-top: 16px; border-top: 1px solid var(--pink); }
.service-desc { font-size: 13px; color: var(--ink-50); line-height: 1.75; margin-bottom: 20px; }
.service-items-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.service-items-list li { font-size: 12px; color: var(--ink-20); padding-left: 14px; position: relative; }
.service-items-list li::before { content: '–'; position: absolute; left: 0; color: var(--pink); }

/* ── PROCESS ── */
.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: var(--rule); margin-top: 16px; }
.process-step { padding: 40px 28px; border-right: var(--rule); position: relative; }
.process-step:last-child { border-right: none; }
.process-step::before { content: ''; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--pink); transition: width 0.4s cubic-bezier(0.16,1,0.3,1); }
.process-step:hover::before { width: 100%; }
.step-num { font-family: 'Outfit', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 0.3em; color: var(--pink); margin-bottom: 28px; }
.step-title { font-family: 'DM Serif Display', serif; font-size: 18px; color: var(--ink); margin-bottom: 12px; line-height: 1.2; }
.step-desc { font-size: 13px; color: var(--ink-50); line-height: 1.7; }

/* ── CTA ── */
.cta-section { display: grid; grid-template-columns: 1fr 1fr; border-top: var(--rule); }
.cta-left { padding: 80px 48px; background: var(--ink); display: flex; flex-direction: column; justify-content: space-between; min-height: 480px; position: relative; overflow: hidden; }
.cta-left::before { content: 'rely'; position: absolute; font-family: 'DM Serif Display', serif; font-size: 220px; font-style: italic; color: rgba(244,241,236,0.03); bottom: -30px; right: -20px; line-height: 1; pointer-events: none; }
.cta-right { padding: 80px 48px; background: var(--paper); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.cta-eyebrow { font-family: 'Outfit', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--pink); display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.cta-eyebrow::before { content: ''; width: 20px; height: 1px; background: var(--pink); }
.cta-headline { font-family: 'DM Serif Display', serif; font-size: clamp(32px, 4vw, 58px); line-height: 1.05; letter-spacing: -0.02em; color: var(--paper); margin-bottom: 24px; }
.cta-headline em { font-style: italic; color: var(--pink); }
.cta-right .cta-headline { color: var(--ink); }
.cta-sub { font-size: 14px; color: rgba(244,241,236,0.45); line-height: 1.8; }
.cta-right .cta-sub { color: var(--ink-50); }
.cta-email { font-family: 'DM Serif Display', serif; font-size: clamp(18px, 2.2vw, 28px); font-style: italic; color: var(--pink); transition: opacity 0.2s; }
.cta-email:hover { opacity: 0.7; }
.btn-light { font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); background: var(--paper); padding: 13px 28px; display: inline-block; align-self: flex-start; transition: background 0.2s, color 0.2s; }
.btn-light:hover { background: var(--pink); color: #fff; }

/* ── CASE SINGLE PAGE ── */
.case-hero { position: relative; min-height: 90vh; background: var(--ink); display: grid; grid-template-rows: 1fr auto; overflow: hidden; padding-top: var(--nav-h); }
.case-hero__bg { position: absolute; inset: 0; z-index: 0; }
.case-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.case-hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(17,17,16,0.95) 0%, rgba(17,17,16,0.3) 60%, rgba(17,17,16,0.1) 100%); }
.case-hero__body { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 2fr; align-items: end; padding: 80px 48px 56px; gap: 0; }
.case-hero__meta { border-right: 1px solid rgba(244,241,236,0.1); padding-right: 48px; display: flex; flex-direction: column; gap: 28px; }
.case-hero__title { font-family: 'DM Serif Display', serif; font-size: clamp(44px, 7vw, 96px); line-height: 0.92; letter-spacing: -0.03em; color: #fafaf8; margin-bottom: 20px; }
.case-hero__subtitle { font-size: 15px; color: rgba(244,241,236,0.45); max-width: 520px; line-height: 1.75; }

/* Params */
.params { display: flex; flex-direction: column; gap: 20px; }
.param-label { font-family: 'Outfit', sans-serif; font-size: 9px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(244,241,236,0.25); margin-bottom: 4px; }
.param-value { font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 500; color: rgba(244,241,236,0.85); }
/* Params on light bg (below hero) */
.case-body .param-label { color: var(--ink-20); }
.case-body .param-value { color: var(--ink); }

/* Case body */
.case-body { max-width: 1200px; margin: 0 auto; padding: 0 48px; background: var(--white); }
.case-header-row { padding: 56px 0 48px; border-bottom: var(--rule); display: grid; grid-template-columns: 1fr auto; gap: 80px; align-items: end; }
.case-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 56px 0; border-bottom: var(--rule); }
.case-pullquote { font-family: 'DM Serif Display', serif; font-size: clamp(20px, 2.2vw, 30px); font-style: italic; line-height: 1.4; color: var(--ink); border-left: 2px solid var(--pink); padding-left: 28px; align-self: start; }
.case-body-text { font-size: 15px; color: var(--ink-50); line-height: 1.85; }
.case-body-text p + p { margin-top: 18px; }

/* Stills Grid */
.gallery-section { padding: 56px 0; border-bottom: var(--rule); }
.gallery-section-header { display: flex; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.gallery-section-label { font-family: 'Outfit', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--pink); display: flex; align-items: center; gap: 12px; }
.gallery-section-label::before { content: ''; width: 16px; height: 1px; background: var(--pink); }
.gallery-rule { flex: 1; height: 1px; background: var(--ink-08); }
/* ── STILLS GRID – Video: 3-spaltig, 16:9 pro Bild ── */
body.case-template-video .stills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
body.case-template-video .stills-grid .still-item {
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  aspect-ratio: 16/9;
}
body.case-template-video .stills-grid .still-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
body.case-template-video .stills-grid .still-item:hover img { transform: scale(1.02); }

/* ── STILLS GRID – Foto/Social: 3-spaltig, quadratische Cells ── */
body.case-template-foto .stills-grid,
body.case-template-social .stills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 340px;
  gap: 12px;
}
body.case-template-foto .stills-grid .still-item,
body.case-template-social .stills-grid .still-item {
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}
body.case-template-foto .stills-grid .still-item img,
body.case-template-social .stills-grid .still-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
body.case-template-foto .stills-grid .still-item:hover img,
body.case-template-social .stills-grid .still-item:hover img { transform: scale(1.03); }
/* Erstes Bild breiter im Foto-Grid */
body.case-template-foto .stills-grid .still-item:first-child,
body.case-template-social .stills-grid .still-item:first-child {
  grid-column: 1 / 3;
  /* Kein aspect-ratio – Höhe kommt von grid-auto-rows */
}

/* BTS gallery */
.bts-grid { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.bts-grid::-webkit-scrollbar { display: none; }
.bts-item { flex-shrink: 0; width: 280px; overflow: hidden; }
.bts-item img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.bts-item:hover img { transform: scale(1.05); }

/* Credits */
.credits-section { padding: 48px 0; border-bottom: var(--rule); }
.credits-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 28px; }
.credit { padding: 20px 24px; }
.credit-role { font-family: 'Outfit', sans-serif; font-size: 9px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--pink); margin-bottom: 8px; }
.credit-name { font-family: 'DM Serif Display', serif; font-size: 18px; color: var(--ink); line-height: 1.2; }

/* Next Case */
.next-case { padding: 60px 0; display: flex; align-items: center; justify-content: space-between; text-decoration: none; color: inherit; border-top: var(--rule); }
.next-label { font-family: 'Outfit', sans-serif; font-size: 9px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-20); margin-bottom: 8px; }
.next-title { font-family: 'DM Serif Display', serif; font-size: clamp(24px, 3.5vw, 44px); line-height: 1.1; color: var(--ink); transition: color 0.2s; }
.next-case:hover .next-title { color: var(--pink); }
.next-arrow { font-size: 36px; color: var(--ink-20); transition: transform 0.2s, color 0.2s; }
.next-case:hover .next-arrow { transform: translateX(8px); color: var(--pink); }

/* Video embed */
.case-video-hero { width: 100%; background: var(--ink); position: relative; overflow: hidden; }
.case-video-hero .embed-wrap {
  position: relative;
  width: 100%;
  /* 16:9 but never taller than viewport minus nav */
  height: calc(100vh - var(--nav-h));
  max-height: calc((100vw) * 9 / 16);
}
.case-video-hero iframe,
.case-video-hero video { position: absolute; inset: 0; width: 100%; height: 100%; border: none; display: block; }

/* ── FOOTER ── */
.site-footer { background: var(--white); border-top: var(--rule); padding: 28px 48px; display: flex; align-items: center; justify-content: space-between; }
.site-footer__logo { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; color: var(--ink); }
.site-footer__logo span { color: var(--pink); }
.site-footer__copy { font-family: 'Outfit', sans-serif; font-size: 10px; letter-spacing: 0.15em; color: var(--ink-20); text-transform: uppercase; }
.site-footer__links { display: flex; gap: 24px; list-style: none; }
.site-footer__links a { font-family: 'Outfit', sans-serif; font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-20); transition: color 0.2s; }
.site-footer__links a:hover { color: var(--ink); }

/* ── CURSOR ── */
.cursor { position: fixed; width: 8px; height: 8px; background: var(--pink); border-radius: 50%; pointer-events: none; z-index: 9999; transform: translate(-50%,-50%); mix-blend-mode: multiply; }
.cursor-ring { position: fixed; width: 36px; height: 36px; border: 1px solid var(--ink); border-radius: 50%; pointer-events: none; z-index: 9998; transform: translate(-50%,-50%); opacity: 0.3; transition: width 0.3s, height 0.3s, opacity 0.2s; }
.cursor-ring.hovering { width: 56px; height: 56px; opacity: 0.15; }
@media (hover: none) { .cursor, .cursor-ring { display: none; } }

/* ── MOBILE ── */
@media (max-width: 860px) {
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
  .site-nav { padding: 16px 20px; }
  .site-nav__menu,
  .site-nav__right .site-nav__cta { display: none; }
  .site-nav__burger { display: flex; }
  .section { padding: 64px 20px; }
  .hero__body { grid-template-columns: 1fr; padding: 0 20px 40px; gap: 0; }
  .hero__left { display: none; }
  .hero__right { padding-left: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-left { border-right: none; padding-right: 0; }
  .about-right { padding-left: 0; }
  .about-body { grid-template-columns: 1fr; }
  .cases-grid, .cases-row3 { grid-template-columns: 1fr; }
  .case-featured { grid-template-columns: 1fr; }
  .case-featured__content { border-left: none; border-top: var(--rule); }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .cta-section { grid-template-columns: 1fr; }
  .cta-left, .cta-right { padding: 56px 20px; min-height: auto; }
  .site-footer { flex-direction: column; gap: 16px; padding: 24px 20px; }
  .case-hero__body { grid-template-columns: 1fr; padding: 40px 20px; }
  .case-hero__meta { border-right: none; padding-right: 0; }
  .case-intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .credits-grid { grid-template-columns: 1fr 1fr; }
  body.case-template-foto .stills-grid,
  body.case-template-social .stills-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  body.case-template-foto .stills-grid .still-item:first-child,
  body.case-template-social .stills-grid .still-item:first-child { grid-column: 1 / -1; aspect-ratio: 3/2; }
}

/* ── WORDPRESS ADMIN BAR OFFSET ── */
.admin-bar .site-nav {
  top: 32px;
}
.admin-bar .site-nav__mobile {
  padding-top: calc(32px + 60px);
}
@media screen and (max-width: 782px) {
  .admin-bar .site-nav {
    top: 46px;
  }
}

/* ── LIGHTBOX ── */
.rely-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,12,11,0.95);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
.rely-lightbox.open { display: flex; }
.rely-lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  user-select: none;
}
.rely-lightbox__close {
  position: absolute;
  top: 24px; right: 32px;
  font-size: 32px;
  color: rgba(244,241,236,0.5);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  padding: 8px;
}
.rely-lightbox__close:hover { color: #fff; }
.rely-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: rgba(244,241,236,0.35);
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px 24px;
  transition: color 0.2s;
  line-height: 1;
}
.rely-lightbox__nav:hover { color: rgba(244,241,236,0.9); }
.rely-lightbox__prev { left: 8px; }
.rely-lightbox__next { right: 8px; }
.rely-lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: rgba(244,241,236,0.3);
}

/* Stills: show zoom cursor, no pointer events conflict */


/* ── CASE SINGLE: dark body bg eliminates gap between fixed nav and video ── */
body.case-single {
  background: var(--ink);
}
body.case-single .case-body,
body.case-single > footer {
  background: var(--white);
}

/* Nav is always light on case pages until scrolled */
body.case-single .site-nav:not(.scrolled) {
  background: linear-gradient(to bottom, rgba(17,17,16,0.55) 0%, transparent 100%);
}
body.case-single .site-nav:not(.scrolled) .site-nav__logo { color: rgba(244,241,236,0.95); }
body.case-single .site-nav:not(.scrolled) .site-nav__menu a { color: rgba(244,241,236,0.65); }
body.case-single .site-nav:not(.scrolled) .site-nav__menu a:hover { color: rgba(244,241,236,0.95); }
body.case-single .site-nav:not(.scrolled) .site-nav__burger span { background: rgba(244,241,236,0.9); }
