/* ==========================================================================
   Dre Designs — styles.css
   Layout & type system adapted from the Developios reference.
   Palette: electric blue + navy (see tokens below).
   ========================================================================== */

:root {
  /* Palette */
  --accent:        #4D7CFE;
  --accent-hover:  #3D68E0;
  --accent-soft:   #E8EEFF;
  --deep:          #0B2447;
  --deep-2:        #123059;
  --dark:          #000000;
  --dark-2:        #080808;
  --dark-3:        #141414;
  --base:          #F4F4F4;
  --white:         #FFFFFF;   /* stays pure white: foreground on dark sections */

  /* Theme-aware surfaces (overridden in dark mode) */
  --surface:       #FFFFFF;                 /* cards / panels */
  --nav-bg:        rgba(255, 255, 255, 0.82);
  --card-glass:    rgba(255, 255, 255, 0.92);
  --menu-bg:       rgba(255, 255, 255, 0.96);
  --hover-tint:    rgba(0, 0, 0, 0.05);
  --word-stroke:   rgba(0, 0, 0, 0.14);

  /* Ink */
  --ink:           #101114;
  --ink-2:         #4A4D55;
  --ink-3:         #83878F;
  --ink-light:     rgba(255, 255, 255, 0.72);
  --ink-light-2:   rgba(255, 255, 255, 0.48);

  --line:          rgba(0, 0, 0, 0.10);
  --line-light:    rgba(255, 255, 255, 0.14);

  /* Type */
  --font-display: 'Inter Tight', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-serif:   'Instrument Serif', Georgia, serif;
  --font-mono:    'Inconsolata', ui-monospace, monospace;

  /* Shape */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Rhythm */
  --wrap: 1240px;
  --gut: clamp(20px, 4vw, 48px);
  --sec: clamp(72px, 9vw, 140px);
}

/* ---------- Dark theme ----------
   Toggled by data-theme="dark" on <html> (see script.js). Only the surfaces
   and ink shift; the accent, navy, and the already-dark sections stay put. */
:root[data-theme="dark"] {
  --base:        #0B0C0F;
  --surface:     #16181D;
  --nav-bg:      rgba(18, 20, 25, 0.72);
  --card-glass:  rgba(18, 20, 24, 0.82);
  --menu-bg:     rgba(16, 18, 23, 0.97);
  --hover-tint:  rgba(255, 255, 255, 0.08);
  --word-stroke: rgba(255, 255, 255, 0.12);

  --accent-soft: rgba(77, 124, 254, 0.18);

  --ink:         #ECEDF0;
  --ink-2:       rgba(255, 255, 255, 0.72);
  --ink-3:       rgba(255, 255, 255, 0.50);

  --line:        rgba(255, 255, 255, 0.12);

  color-scheme: dark;
}
/* Dark sections that are pure black in light mode lift slightly so they read
   as panels against the near-black page rather than merging into it. */
:root[data-theme="dark"] .quotes,
:root[data-theme="dark"] .cta {
  outline: 1px solid rgba(255, 255, 255, 0.07);
  outline-offset: -1px;
}
:root[data-theme="dark"] .stat,
:root[data-theme="dark"] .acc__item,
:root[data-theme="dark"] .step,
:root[data-theme="dark"] .nav__inner,
:root[data-theme="dark"] .foot__social a { border-color: var(--line); }

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--base);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* ---------- Placeholder treatment ----------
   Anything still carrying real placeholder content gets a visible dashed
   marker so nothing fake ships by accident. Delete data-placeholder when
   you drop in the real thing. */
[data-placeholder] {
  position: relative;
  outline: 1px dashed rgba(77, 124, 254, 0.55);
  outline-offset: 2px;
}
[data-placeholder]::after {
  content: attr(data-placeholder);
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 3;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0.9;
}
/* Inline placeholders (spans inside text) shouldn't get a floating badge. */
span[data-placeholder]::after,
em[data-placeholder]::after,
a[data-placeholder]::after,
.stat__num[data-placeholder]::after,
.quotes__num[data-placeholder]::after,
.case__name[data-placeholder]::after { display: none; }

/* Photo placeholders: soft grey field so layout reads correctly while empty. */
.quote__avatar {
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,.035) 0 12px, transparent 12px 24px),
    #d8dbe0;
}

/* Real images that fill their frame. */
img.hero__media,
img.case__shot,
img.blob,
img.caps__shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
img.band__media { width: 100%; object-fit: cover; }
img.blob { display: block; }

/* ---------- Type scale ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.display--center { text-align: center; margin-inline: auto; }
.display--light { color: var(--white); }
.display em,
.h2 em,
.hero__title em,
.cta__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.display em { color: var(--accent); }
.display--light em { color: var(--accent); }

.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.h2 .muted { color: var(--ink-3); font-weight: 500; }

.p { color: var(--ink-2); font-size: 16px; line-height: 1.75; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.eyebrow--light { color: var(--ink-light-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn__arrow { transition: transform .18s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--dark   { background: var(--dark); color: var(--white); }
.btn--dark:hover { background: var(--dark-3); }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--ghost  { background: rgba(255,255,255,.10); color: var(--white); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.18); }
.btn--lg { padding: 17px 30px; font-size: 16px; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 14px var(--gut);
  transition: background-color .3s ease, box-shadow .3s ease, padding .3s ease;
}
.nav__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 8px 8px 18px;
  border-radius: var(--r-pill);
  background: var(--nav-bg);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}
.nav.is-stuck .nav__inner { box-shadow: 0 10px 34px rgba(0, 0, 0, 0.12); }

.nav__logo { display: inline-flex; align-items: center; gap: 10px; }
.nav__logo-img {
  height: 32px;
  width: auto;
  display: block;
}
.nav__logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.03em;
  color: var(--ink);
}
/* Show the theme-appropriate mark: dark ink in light mode, white ink in dark mode. */
.nav__logo-img--dark { display: none; }
:root[data-theme="dark"] .nav__logo-img--light { display: none; }
:root[data-theme="dark"] .nav__logo-img--dark { display: block; }

.nav__links { display: flex; gap: 4px; }
.nav__links a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background-color .18s ease, color .18s ease;
}
.nav__links a:hover { background: var(--hover-tint); color: var(--ink); }

.nav__right { display: flex; align-items: center; gap: 8px; }

.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--r-pill);
  background: var(--hover-tint);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 16px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .22s ease, opacity .22s ease;
}
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

/* Theme toggle */
.theme-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--r-pill);
  background: var(--hover-tint);
  color: var(--ink);
  transition: background-color .18s ease, transform .18s ease;
}
.theme-toggle:hover { transform: translateY(-2px); }
.theme-toggle svg {
  position: absolute;
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: opacity .2s ease, transform .3s ease;
}
.theme-toggle__moon { opacity: 0; transform: rotate(-90deg) scale(.6); }
.theme-toggle__sun  { opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme="dark"] .theme-toggle__moon { opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme="dark"] .theme-toggle__sun  { opacity: 0; transform: rotate(90deg) scale(.6); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: clamp(600px, 92vh, 900px);
  margin: 8px;
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.30) 38%, rgba(0,0,0,.86) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--gut) clamp(48px, 7vw, 92px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 12px;
  margin-bottom: 26px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
}
.rating__stars { color: var(--accent); font-size: 13px; letter-spacing: 2px; }
.rating__meta { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--white); }
.rating__meta strong { font-family: var(--font-display); font-weight: 700; }
.rating__meta span { color: var(--ink-light); }
.rating__meta em { font-style: normal; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 6.4vw, 82px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--white);
  text-wrap: balance;
}
.hero__title em { color: var(--accent); }

.hero__sub {
  max-width: 620px;
  margin-top: 22px;
  color: var(--ink-light);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.7;
  text-wrap: pretty;
}

.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 30px var(--gut);
  max-width: var(--wrap);
  margin-inline: auto;
  overflow: hidden;
}
.marquee__label {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.marquee__track {
  position: relative;
  flex: 1;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__row {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: slide 32s linear infinite;
}
.marquee__row span {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-3);
  white-space: nowrap;
  opacity: .75;
}
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__row { animation: none; } }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about { padding-block: var(--sec); }
.about__grid {
  display: grid;
  grid-template-columns: 180px 1fr 300px;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.about__label .eyebrow { margin: 0; }
.about__body .p { margin-top: 22px; max-width: 62ch; }

.stats { display: flex; gap: 14px; margin-top: 38px; }
.stat {
  flex: 1;
  padding: 22px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.stat__cap { margin-top: 8px; font-size: 13px; color: var(--ink-3); }

.about__photo { display: flex; justify-content: center; }
.blob {
  width: 100%;
  aspect-ratio: 6 / 7;
  border-radius: 48% 52% 44% 56% / 54% 46% 54% 46%;
  overflow: hidden;
}

/* ==========================================================================
   WORK
   ========================================================================== */
.work { padding-block: var(--sec); }
.work .eyebrow { display: block; text-align: center; }
.work__list { display: flex; flex-direction: column; gap: 18px; margin-top: 54px; }

.case {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--dark-2);
  overflow: hidden;
  padding: clamp(20px, 3vw, 34px);
  min-height: clamp(360px, 42vw, 520px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.case__media { position: absolute; inset: 0; z-index: 0; }
.case__shot { width: 100%; height: 100%; }
.case::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%);
}
.case__card {
  position: relative;
  z-index: 2;
  max-width: 460px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--card-glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.case__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.case__desc { margin-top: 10px; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.case__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.case__tags span {
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* "Available" case card — no photo, a branded open slot instead. */
.case--open { background: var(--deep); }
.case--open::after { display: none; }
.case__fill {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 120% at 70% 20%, rgba(77,124,254,.28), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 14px, transparent 14px 28px);
}
.case__fill-plus {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(80px, 12vw, 150px);
  line-height: 1;
  color: rgba(255, 255, 255, 0.16);
  user-select: none;
}
.case--open .case__card { background: var(--card-glass); }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services { padding-block: var(--sec); }
.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.acc { display: flex; flex-direction: column; gap: 10px; }
.acc__item {
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow .2s ease;
}
.acc__item[open] { box-shadow: 0 8px 28px rgba(0,0,0,.07); }
.acc__item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  cursor: pointer;
  list-style: none;
}
.acc__item summary::-webkit-details-marker { display: none; }
.acc__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
}
.acc__title {
  flex: 1;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.acc__icon {
  position: relative;
  flex: none;
  width: 26px; height: 26px;
  border-radius: var(--r-pill);
  background: var(--base);
  transition: background-color .2s ease, transform .25s ease;
}
.acc__icon::before, .acc__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform .25s ease, background-color .2s ease;
}
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__item[open] .acc__icon { background: var(--accent); }
.acc__item[open] .acc__icon::before,
.acc__item[open] .acc__icon::after { background: #fff; }
.acc__item[open] .acc__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.acc__body { padding: 0 20px 22px 48px; }
.acc__body p { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }

.bigbar {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 44px;
  padding: 10px 10px 10px 12px;
  border-radius: var(--r-pill);
  background: var(--dark);
  color: var(--white);
  transition: transform .2s ease;
}
.bigbar:hover { transform: translateY(-2px); }
.bigbar__pill {
  flex: none;
  padding: 11px 22px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}
.bigbar__text {
  flex: 1;
  font-family: var(--font-display);
  font-size: clamp(15px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.bigbar__arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.12);
  transition: transform .2s ease, background-color .2s ease;
}
.bigbar:hover .bigbar__arrow { background: var(--accent); transform: translateX(4px); }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.quotes {
  margin: 0 8px;
  padding-block: var(--sec);
  border-radius: var(--r-xl);
  background: var(--dark);
  color: var(--white);
}
.quotes__head {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
}
.quotes__num {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.quotes__cap { margin-top: 6px; font-size: 13px; color: var(--ink-light-2); }
.quotes__rating { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.quotes__stars { color: var(--accent); font-size: 13px; letter-spacing: 2px; }
.quotes__title .display { margin-top: 4px; }

.quotes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 46px;
}
.quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--dark-3);
  border: 1px solid var(--line-light);
}
.quote p { font-size: 14.5px; line-height: 1.7; color: var(--ink-light); }
.quote footer { display: flex; align-items: center; gap: 12px; }
.quote__avatar {
  flex: none;
  width: 40px; height: 40px;
  border-radius: var(--r-pill);
}
.quote footer strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}
.quote footer span { font-size: 12.5px; color: var(--ink-light-2); }

/* ==========================================================================
   STATEMENT
   ========================================================================== */
.statement { padding-block: var(--sec); }
.statement__text {
  max-width: 940px;
  margin-inline: auto;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* ==========================================================================
   BAND
   ========================================================================== */
.band { padding-inline: 8px; }
.band__media {
  height: clamp(300px, 42vw, 560px);
  border-radius: var(--r-xl);
}

/* ==========================================================================
   PROCESS
   ========================================================================== */
.process { padding-block: var(--sec); }
.process__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
}
.process__emoji { font-family: var(--font-body); }
.process__intro { max-width: 46ch; }

.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 48px;
}
.step {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.step--dark { background: var(--deep); border-color: transparent; color: var(--white); }
.step__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.step__desc { margin-top: 10px; font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }
.step--dark .step__desc { color: var(--ink-light); }
.step__num {
  margin-top: auto;
  padding-top: 28px;
  font-family: var(--font-display);
  font-size: clamp(40px, 4.4vw, 58px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ink);
}
.step--dark .step__num { color: var(--accent); }

/* ==========================================================================
   CAPABILITIES
   ========================================================================== */
.caps {
  margin: 0 8px;
  padding-block: var(--sec);
  border-radius: var(--r-xl);
  background: var(--deep);
  color: var(--white);
}
.caps__grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.caps__shot {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
}
.caps__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.chip {
  padding: 11px 18px;
  border-radius: var(--r-sm);
  background: var(--deep-2);
  border: 1px solid var(--line-light);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--white);
  transition: background-color .18s ease, transform .18s ease;
}
.chip:hover { background: var(--accent); transform: translateY(-2px); }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  margin: 8px;
  padding-block: clamp(80px, 11vw, 170px);
  border-radius: var(--r-xl);
  background: var(--dark);
  color: var(--white);
}
.cta__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7.4vw, 96px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.cta__title em { color: var(--accent); }
.cta__plane {
  display: inline-grid;
  place-items: center;
  width: .92em; height: .92em;
  margin-left: .1em;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-size: .48em;
  vertical-align: middle;
  transform: translateY(-.08em);
}
.cta__sub { max-width: 520px; margin-top: 22px; color: var(--ink-light); font-size: 15.5px; line-height: 1.7; }
.cta .btn { margin-top: 34px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.foot {
  padding-top: clamp(56px, 7vw, 96px);
  background: var(--base);
  overflow: hidden;
}
.foot__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 48px;
}
.foot__col { display: flex; flex-direction: column; gap: 11px; }
.foot__col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 5px;
}
.foot__col a { font-size: 14px; color: var(--ink-2); transition: color .18s ease; }
.foot__col a:hover { color: var(--accent); }

.foot__social { display: flex; gap: 8px; }
.foot__social a {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  transition: background-color .18s ease, color .18s ease;
}
.foot__social a:hover { background: var(--accent); color: #fff; border-color: transparent; }

.foot__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
}

.foot__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(60px, 16.5vw, 260px);
  line-height: .82;
  letter-spacing: -0.05em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px var(--word-stroke);
  user-select: none;
  margin-bottom: -.14em;
  white-space: nowrap;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 320px; }
  .services__grid,
  .process__head,
  .caps__grid,
  .quotes__head { grid-template-columns: 1fr; }
  .quotes__head { align-items: start; }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .quotes__grid { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav__links {
    position: absolute;
    top: calc(100% + 8px);
    left: var(--gut);
    right: var(--gut);
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    border-radius: var(--r-md);
    background: var(--menu-bg);
    border: 1px solid var(--line);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 32px rgba(0,0,0,.12);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 14px; }
  .nav__toggle { display: flex; }
  .nav .btn--dark { display: none; }

  .marquee { flex-direction: column; align-items: flex-start; gap: 16px; }
  .process__grid { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  /* Stacked card: full-bleed image on top, roomy padded text panel below.
     The whole .case is the card surface, so text never sits flush to an edge. */
  .case {
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    border-radius: var(--r-lg);
    background: var(--card-glass);
    border: 1px solid var(--line);
  }
  .case--open { background: var(--card-glass); }
  .case__media { position: relative; height: 200px; margin: 0; border-radius: 0; overflow: hidden; }
  .case::after { display: none; }
  .case__card {
    max-width: none;
    background: transparent;
    border: 0;
    backdrop-filter: none;
    padding: 22px 20px 24px;
  }
  .case--open .case__card { background: transparent; }
  .case__name { color: var(--ink); }
  .case__desc { color: var(--ink-2); }
  .stats { flex-direction: column; }
  .foot__grid { grid-template-columns: 1fr; }
  .bigbar { flex-wrap: wrap; }
  .bigbar__text { order: 3; width: 100%; padding: 4px 4px 10px; }
}

/* ==========================================================================
   WORK CARDS AS LINKS
   ========================================================================== */
.case {
  text-decoration: none;
  color: inherit;
  transition: transform .22s ease, box-shadow .22s ease;
}
.case:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(0, 0, 0, 0.16); }
.case__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.case__link .btn__arrow { transition: transform .18s ease; }
.case:hover .case__link .btn__arrow { transform: translateX(4px); }

/* ==========================================================================
   CASE STUDY PAGES
   ========================================================================== */
.cs { display: block; }

/* ---- Hero ---- */
.cs-hero {
  padding-top: clamp(120px, 15vh, 176px);
  padding-bottom: clamp(36px, 5vw, 60px);
}
.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 26px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  transition: color .18s ease, transform .18s ease;
}
.cs-back:hover { color: var(--accent); transform: translateX(-3px); }
.cs-hero .eyebrow { display: block; }
.cs-hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.cs-hero__lead {
  max-width: 640px;
  margin-top: 20px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}
.cs-hero__lead em { font-style: italic; color: var(--ink); }

.cs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  margin: 34px 0 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.cs-meta__item { display: flex; flex-direction: column; gap: 4px; }
.cs-meta__k {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cs-meta__v { font-family: var(--font-display); font-size: 15px; font-weight: 500; color: var(--ink); }

/* ---- Browser-framed desktop shot ---- */
.cs-browser {
  margin: clamp(16px, 3vw, 32px) 0 clamp(48px, 7vw, 90px);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18);
}
.cs-browser__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.cs-browser__bar span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--ink-3);
  opacity: .5;
}
.cs-browser img { display: block; width: 100%; height: auto; }

/* ---- Content sections ---- */
.cs-section {
  max-width: 768px;
  padding-block: clamp(44px, 6vw, 80px);
}
.cs-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.cs-h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(25px, 3.4vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.cs-p {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
}
.cs-p em { font-style: italic; color: var(--ink); }

/* ---- What I changed (numbered list) ---- */
.cs-changes {
  counter-reset: chg;
  list-style: none;
  margin-top: 28px;
}
.cs-change {
  counter-increment: chg;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.cs-change:last-child { border-bottom: 1px solid var(--line); }
.cs-change h3 {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.cs-change h3::before {
  content: counter(chg, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
.cs-change p {
  margin-top: 8px;
  padding-left: 33px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.cs-change p em { font-style: italic; color: var(--ink); }

/* ---- Mobile-shot section ---- */
.cs-shots {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(44px, 6vw, 80px);
}
.cs-shots__text .cs-h2 { max-width: 18ch; }
.cs-phone {
  position: relative;
  width: min(300px, 80vw);
  margin-inline: auto;
  aspect-ratio: 300 / 620;
  padding: 12px;
  background: #0b0b0d;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 46px;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.30);
}
.cs-phone__notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 42%; height: 22px;
  background: #0b0b0d;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}
.cs-phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  object-fit: cover;
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,.05) 0 12px, transparent 12px 24px),
    #d8dbe0;
}

/* ---- Result metrics ---- */
.cs-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}
.cs-metric {
  padding: 24px 22px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
}
.cs-metric__num {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.cs-metric__cap { margin-top: 10px; font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }
.cs-metric__note { display: block; font-style: italic; opacity: .8; }

.cs-quote {
  margin-top: 40px;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.4;
  color: var(--ink);
}
.cs-quote cite {
  display: block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

/* ---- Next / prev ---- */
.cs-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-block: clamp(40px, 6vw, 72px);
}
.cs-next__link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cs-next__link:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14); }
.cs-next__link--alt { background: var(--deep); border-color: transparent; color: #fff; }
.cs-next__k {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cs-next__link--alt .cs-next__k { color: rgba(255, 255, 255, 0.6); }
.cs-next__v {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.cs-next__link .btn__arrow { transition: transform .18s ease; }
.cs-next__link:hover .btn__arrow { transform: translateX(4px); }

@media (max-width: 820px) {
  .cs-shots { grid-template-columns: 1fr; }
  .cs-shots__text { text-align: center; }
  .cs-shots__text .cs-h2 { max-width: none; }
  .cs-metrics { grid-template-columns: 1fr; }
  .cs-next { grid-template-columns: 1fr; }
}
