:root {
  --bg: #f5f1ea;
  --sidebar-bg: #1c1613;
  --ink: #201a15;
  --ink-dim: #756a5e;
  --card: #ece4d6;
  --card-dark: #241d18;
  --line: #e2d8c7;
  --accent: #d3612f;
  --accent-soft: #f0ceb5;
  --pct-text: #7a3213;
  --hud-text: #f0ceb5;
  --grid-line: rgba(32,26,21,0.014);
  --available: #3bb54a;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --font: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #17130f;
  --ink: #f1ece3;
  --ink-dim: #a89b8c;
  --card: #241f19;
  --card-dark: #100d0a;
  --line: #332920;
  --accent-soft: #3a2418;
  --pct-text: #f0ceb5;
  --grid-line: rgba(241,236,227,0.014);
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--bg); }
body {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--ink);
  font-family: var(--font);
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; color: inherit; cursor: pointer; }
img, video { display: block; width: 100%; height: 100%; object-fit: cover; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--ink); color: var(--bg); }
[hidden] { display: none !important; } /* beats .pill's inline-flex, so hidden really hides */
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

.progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: var(--ink); z-index: 500; }

/* finishing touches: ambient glow + divider line */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.ambient-glow--1 {
  width: 640px; height: 640px;
  left: -180px; bottom: -220px;
  background: radial-gradient(circle, rgba(211,97,47,0.09), transparent 70%);
}
.ambient-glow--2 {
  width: 520px; height: 520px;
  right: -160px; top: -160px;
  background: radial-gradient(circle, rgba(211,97,47,0.06), transparent 70%);
}
.deco-line {
  position: fixed;
  top: 0; bottom: 0;
  left: 304px;
  width: 1px;
  background: var(--line);
  z-index: 1;
  transition: left 0.45s var(--ease);
}
@media (max-width: 980px) {
  .deco-line { display: none; }
}

/* pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--card);
  color: var(--ink);
}
.pill--sm { padding: 5px 12px; font-size: 0.72rem; }
.pill--dark { background: var(--ink); color: var(--bg); transition: background 0.3s var(--ease), transform 0.3s var(--ease); }
.pill--dark:hover { background: var(--accent); }
.pill--light { background: var(--bg); color: var(--ink); transition: background 0.3s var(--ease); }
.pill--light:hover { background: #fff; }
.pill--outline { background: transparent; border: 1px solid var(--ink); transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.pill--outline:hover { background: var(--ink); color: var(--bg); }
.pill--tag { background: rgba(0,0,0,0.06); font-size: 0.75rem; padding: 6px 12px; }
.pill--tag-dark { background: rgba(255,255,255,0.1); color: #f2f1ec; } /* dark cards stay dark in both themes, so the text can't follow --bg */
.pill--pct { background: var(--accent-soft); color: var(--pct-text); font-weight: 700; }
.pill--filter { background: var(--card); transition: all 0.3s var(--ease); }
.pill--filter:hover { background: var(--accent); color: #fff; }
.pill--filter.active { background: var(--ink); color: var(--bg); }
button.pill { cursor: pointer; }
.magnetic { transition: transform 0.3s var(--ease); cursor: pointer; }

/* logo — same footprint as the "Home" nav button, doubles as a link back to the top */
.sidebar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 999px;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.05);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.sidebar__logo:hover { background: rgba(255,255,255,0.1); transform: translateX(2px); }
.sidebar__logo img { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; }
.sidebar__logo span { font-size: 0.9rem; font-weight: 700; color: #fff; }

/* persistent resume link, always visible near the top of the sidebar */
.sidebar__resume {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #f2f1ec;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.sidebar__resume svg { width: 15px; height: 15px; }
.sidebar__resume:hover { background: var(--accent); border-color: var(--accent); }

.mobile-logo {
  display: none;
  position: fixed;
  top: 16px; left: 16px;
  width: 40px; height: 40px;
  z-index: 200;
}
.mobile-logo img { border-radius: 50%; box-shadow: 0 6px 16px rgba(0,0,0,0.2); }

/* sidebar */
.sidebar {
  position: fixed; top: 16px; left: 16px; bottom: 16px;
  width: 272px;
  background: var(--sidebar-bg);
  border-radius: 56px 20px 56px 20px;
  padding: 16px 16px 20px;
  display: flex;
  flex-direction: column;
  color: #f2f1ec;
  z-index: 100;
  overflow-y: auto;
  transition: transform 0.45s var(--ease), border-radius 0.45s var(--ease);
}

@media (max-width: 980px) {
  .sidebar { border-radius: 32px; }
}

/* desktop sidebar collapse toggle — a tab handle attached to the sidebar's edge */
.sidebar-toggle {
  position: fixed;
  top: 50%;
  left: 288px;
  transform: translateY(-50%);
  width: 24px; height: 84px;
  border-radius: 0 16px 16px 0;
  background: var(--sidebar-bg);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  z-index: 101;
  cursor: pointer;
  box-shadow: 4px 0 16px rgba(0,0,0,0.18);
  transition: left 0.45s var(--ease), background 0.3s var(--ease), width 0.25s var(--ease);
}
.sidebar-toggle:hover { background: var(--accent); width: 28px; }

body.sidebar-hidden .sidebar-toggle {
  left: 0;
  border-radius: 0 16px 16px 0;
}

/* theme toggle */
.theme-toggle {
  position: fixed;
  top: 16px; right: 16px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--sidebar-bg);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 300;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0,0,0,0.2);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.theme-toggle:hover { background: var(--accent); transform: scale(1.06); }
.theme-toggle svg { width: 19px; height: 19px; }

body.sidebar-hidden .sidebar { transform: translateX(calc(-100% - 32px)); }
body.sidebar-hidden .main { margin-left: 32px; }
body.sidebar-hidden .deco-line { left: 16px; }

@media (max-width: 980px) {
  .sidebar-toggle { display: none; }
}
.sidebar__banner {
  position: relative;
  height: 130px;
  border-radius: 30px 10px 30px 10px;
  overflow: hidden;
  filter: brightness(0.8) saturate(1.15);
}
.sidebar__banner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(211,97,47,0.35), transparent 60%);
}
.sidebar__profile {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
}
.sidebar__avatar {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  width: 60px; height: 60px;
  margin-top: -30px;
  border-radius: 50%;
  border: 3px solid var(--sidebar-bg);
  background: #333;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
.sidebar__profile-text strong { display: block; font-size: 0.95rem; margin-bottom: 6px; }
.sidebar__bio {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed rgba(255,255,255,0.18);
  font-size: 0.82rem;
  line-height: 1.5;
  color: #b6b4ac;
}
.sidebar__nav { margin-top: 24px; display: flex; flex-direction: column; gap: 2px; }
.sidebar__nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #cbc9c1;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.sidebar__nav a svg { width: 17px; height: 17px; transition: transform 0.35s var(--ease); }
.sidebar__nav a:hover { background: rgba(255,255,255,0.07); color: #fff; }
.sidebar__nav a:hover svg { transform: translateX(3px) scale(1.08); }
.sidebar__nav a.active { background: var(--accent); color: #fff; }
.sidebar__nav a.active svg { transform: scale(1.05); }
.sidebar__spacer { flex: 1; }
.sidebar__socials { display: flex; gap: 8px; margin-bottom: 14px; }
.sidebar__socials a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: #d8d6cf;
  transition: background 0.3s, color 0.3s;
}
.sidebar__socials a svg { width: 16px; height: 16px; }
.sidebar__socials a:hover { background: var(--accent); color: #fff; }
.sidebar__cta {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.sidebar__cta:hover { transform: scale(1.03); background: #e36e3d; }

.mobile-toggle {
  display: none;
  position: fixed; top: 21px; left: 66px; z-index: 200;
  padding: 10px 16px;
  background: var(--sidebar-bg);
  color: #fff;
  border-radius: 999px;
  font-size: 0.82rem;
}

@media (max-width: 980px) {
  .mobile-toggle { display: block; }
  .mobile-logo { display: block; }
  .sidebar {
    left: 16px; right: 16px; width: auto;
    transform: translateY(calc(-100% - 32px));
    transition: transform 0.4s var(--ease);
    max-height: calc(100svh - 32px);
  }
  .sidebar.open { transform: translateY(0); }
}

/* main */
.main { position: relative; z-index: 2; margin-left: 320px; padding: 16px 5vw 0 3vw; transition: margin-left 0.45s var(--ease); }
@media (max-width: 980px) {
  .main { margin-left: 0; padding: 90px 6vw 0; }
}

/* headings */
.heading { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
.heading b { font-weight: 800; color: var(--ink); }
.heading i { font-style: normal; font-weight: 500; color: var(--ink-dim); }
.heading--lg { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.section-kicker { margin-bottom: 20px; }

/* hero */
.hero { position: relative; padding: 40px 0 60px; }
.hero::before {
  content: "";
  position: absolute;
  top: -70px; left: -60px;
  width: 440px; height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211,97,47,0.3), transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero__badges { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 40px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 8px 24px rgba(32,26,21,0.06);
  font-size: 0.82rem;
  font-weight: 500;
}
.badge__icon { width: 14px; height: 14px; }
.badge--dot { }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--available); display: inline-block; }
.hero__location { font-size: 0.82rem; color: var(--ink-dim); }
.hero__location strong { color: var(--ink); }

.hero__title {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.hero__role {
  margin-top: 18px;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--ink-dim);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.hero__role-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.9rem;
}

/* copy on the left, showreel deck on the right */
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start; /* the deck lines up with the title instead of floating down beside a taller intro */
  gap: 40px;
}
/* just enough top room for the cards that peek out behind the front one */
.hero__media { display: flex; flex-direction: column; align-items: center; padding-top: 44px; }
.reel__nav { display: flex; gap: 12px; margin-top: 18px; }
.reel__btn {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(32,26,21,0.08);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.reel__btn svg { width: 20px; height: 20px; stroke-width: 2; }
.reel__btn:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }
.reel__btn:active { transform: scale(0.92); }

/* showreel: a fanned deck of recent pieces; the front card plays, then flies to the back */
.hero__reel {
  position: relative;
  width: min(100%, 400px); /* sized so the deck and its buttons fit a 900px-tall laptop screen */
  aspect-ratio: 4 / 5;
  perspective: 1200px;
  cursor: pointer;
  outline: none;
}
.hero__reel::before {
  content: "";
  position: absolute;
  inset: -12% -16%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(211,97,47,0.22), transparent);
  pointer-events: none;
}
.hero__reel:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; border-radius: var(--radius-lg); }
.reel__stack { position: absolute; inset: 0; transform-style: preserve-3d; }
.reel__card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--card-dark);
  box-shadow: 0 30px 60px rgba(32,26,21,0.22), 0 0 0 1px rgba(255,255,255,0.06);
  will-change: transform;
}
.reel__card video { object-fit: cover; }
.reel__card::after { /* back cards sit in shade; GSAP animates --dim as they come forward */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20,15,10,var(--dim, 0));
  pointer-events: none;
}
.reel__progress { position: absolute; top: 16px; left: 18px; right: 18px; z-index: 30; display: flex; gap: 5px; pointer-events: none; }
.reel__progress span { position: relative; flex: 1; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(20,15,10,0.22); }
.reel__progress span::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--fill, 0)); }
.reel__caption {
  position: absolute;
  left: 16px; bottom: 16px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(20,15,10,0.6);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  pointer-events: none;
}
.reel__index { font-family: ui-monospace, "SFMono-Regular", monospace; font-size: 0.64rem; letter-spacing: 0.1em; color: var(--hud-text); }
.reel__title { font-size: 0.9rem; font-weight: 600; }
.reel__meta { font-size: 0.72rem; color: rgba(255,255,255,0.7); }
.reel__meta:empty { display: none; }

/* below laptop width the deck moves under the copy; clip so the fanned cards can't widen the page */
@media (max-width: 1180px) {
  .hero { overflow-x: clip; }
  .hero__grid { grid-template-columns: 1fr; gap: 8px; }
  .hero__reel { width: min(78%, 340px); }
}
.hero__lede { margin-top: 20px; max-width: 58ch; font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 1.6; color: var(--ink-dim); }
.hero__lede strong { color: var(--ink); font-weight: 600; }
.hero__cta-row { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

/* brand strip — real names stand in for the testimonials until there are real quotes */
.hero__brands { margin-top: 36px; display: flex; align-items: center; gap: 12px 22px; }
.hero__brands-label { flex-shrink: 0; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); }

/* logo marquee: two copies of the list slide left forever; hover pauses it */
.marquee {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  list-style: none;
  display: flex;
  width: max-content;
  gap: 40px;
  padding-right: 40px; /* equals the gap, so -50% lands exactly on the second copy */
  animation: marquee 45s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 0.95rem; font-weight: 700; color: var(--ink); opacity: 0.8; }
.marquee__track img { width: 28px; height: 28px; border-radius: 7px; object-fit: contain; flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 700px) {
  .hero__brands { flex-direction: column; align-items: flex-start; }
  .marquee { width: 100%; }
}

/* services */
.services { padding: 60px 0; border-top: 1px solid var(--line); }
.services__grid { margin-top: 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(32,26,21,0.1); }
.card--dark { background: var(--card-dark); color: #f2f1ec; }
.card--dark:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.35); }
.card__icon { font-size: 1.8rem; }
.services .card__icon { display: block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; color: var(--accent); }
/* footers pin to the card bottom and stack the same way in every card, whatever the note length */
.services .card { display: flex; flex-direction: column; }
.services .card__tags { margin-bottom: 26px; }
.services .card__footer { margin-top: auto; flex-direction: column; align-items: flex-start; }
.card h3 { margin-top: 18px; font-size: 1.4rem; font-weight: 700; }
.card p { margin-top: 10px; color: var(--ink-dim); font-size: 0.92rem; line-height: 1.5; max-width: 42ch; }
.card--dark p { color: #b6b4ac; }
.card__tags { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.card__footer {
  margin-top: 26px; padding-top: 18px;
  border-top: 1px dashed rgba(0,0,0,0.15);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.card--dark .card__footer { border-top-color: rgba(255,255,255,0.15); }
.card__note { font-size: 0.8rem; color: var(--ink-dim); }
.card--dark .card__note { color: #9a988f; }

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

/* work */
.work { padding: 60px 0; border-top: 1px solid var(--line); }
.work__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; margin-bottom: 28px; }
.work__grid {
  columns: 3 320px;
  column-gap: 18px;
}
.work-card {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  will-change: transform;
  break-inside: avoid;
  margin-bottom: 18px;
}
.work-card__media { position: absolute; inset: 0; transform: scale(1.02); transition: transform 0.6s var(--ease); }
.work-card:hover .work-card__media { transform: scale(1.1); }

/* real YouTube video embeds */
.work-card--yt { aspect-ratio: 16/9; }
.work-card--yt .work-card__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.work-card__yt-link { display: block; cursor: pointer; }
.yt-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(20,15,10,0.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
  z-index: 2;
}
.yt-play svg { width: 24px; height: 24px; fill: #fff; stroke: none; margin-left: 3px; }
.work-card--yt:hover .yt-play { transform: translate(-50%, -50%) scale(1.15); background: var(--accent); }

/* real design pieces (flyers/banners/newsletters) keep their natural aspect ratio instead of being cropped */
.work-card--doc { aspect-ratio: auto; background: var(--card); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.work-card--doc:hover { transform: translateY(-6px); box-shadow: 0 24px 44px rgba(32,26,21,0.16); }
.work-card--doc .work-card__media { position: static; transform: none; }
.work-card--doc .work-card__media img { position: static; height: auto; transform: none; }
.work-card--doc:hover .work-card__media { transform: none; }
.work-card--doc .work-card__media img { transition: transform 0.6s var(--ease); }
.work-card--doc:hover .work-card__media img { transform: scale(1.03); }
.work-card__reveal {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  width: fit-content;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(20,15,10,0.6);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.35s var(--ease);
  z-index: 3;
}
.work-card__reveal b { font-size: 0.84rem; font-weight: 600; line-height: 1.3; }
.work-card__reveal small { font-size: 0.72rem; font-weight: 500; color: rgba(255,255,255,0.7); }

/* a small play badge says "this is a video"; it gets out of the way once the preview starts */
.work-card:has(video)::after {
  content: "";
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(20,15,10,0.5) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23fff'/%3E%3C/svg%3E") 55% 50% / 13px no-repeat;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18);
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.work-card:has(video):hover::after { opacity: 0; transform: scale(0.8); }
.work-card:hover .work-card__reveal { opacity: 1; transform: translateY(0); }
.work-card.is-hidden { display: none; }

/* touch screens can't hover, so keep the titles visible there (and previews autoplay, so no play badge) */
@media (hover: none) {
  .work-card__reveal { opacity: 1; transform: none; }
  .work-card:has(video)::after { display: none; }
}

@media (max-width: 900px) { .work__grid { columns: 2 260px; } }
@media (max-width: 560px) { .work__grid { columns: 1; } }

/* philosophy */
.philosophy { padding: 60px 0; border-top: 1px solid var(--line); }
.philosophy__kicker { margin-bottom: 20px; }
/* a manifesto block on the constant dark chrome: the statement lights up word by word, three principles beneath */
.philosophy__card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background: var(--sidebar-bg);
  color: #f2f1ec;
}
.philosophy__card::before {
  content: "";
  position: absolute;
  width: 560px; height: 560px;
  right: -180px; top: -240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211,97,47,0.32), transparent 70%);
  pointer-events: none;
}
.philosophy__card > * { position: relative; }
.philosophy__statement {
  max-width: 16ch;
  font-size: clamp(2.2rem, 5.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.philosophy__lead { display: block; color: rgba(242,241,236,0.42); }
.philosophy__statement em { font-style: normal; color: var(--accent); }
.philosophy__points {
  margin-top: clamp(36px, 5vw, 60px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.philosophy__point { padding: 24px 28px 4px 0; }
.philosophy__point + .philosophy__point { padding-left: 28px; border-left: 1px solid rgba(255,255,255,0.12); }
.philosophy__num { font-family: ui-monospace, "SFMono-Regular", monospace; font-size: 0.72rem; letter-spacing: 0.12em; color: var(--accent); }
.philosophy__point h3 { margin-top: 10px; font-size: 1.15rem; font-weight: 700; }
.philosophy__point p { margin-top: 8px; font-size: 0.9rem; line-height: 1.6; color: #b6b4ac; }
.philosophy__footnote {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px dashed rgba(255,255,255,0.14);
  max-width: 72ch;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #9a988f;
}
[data-theme="dark"] .philosophy__card { border: 1px solid var(--line); }

@media (max-width: 800px) {
  .philosophy__points { grid-template-columns: 1fr; }
  .philosophy__point, .philosophy__point + .philosophy__point { padding: 20px 0; border-left: 0; }
  .philosophy__point + .philosophy__point { border-top: 1px solid rgba(255,255,255,0.12); }
}

/* testimonials */
.testimonials { padding: 60px 0; border-top: 1px solid var(--line); }
.testimonials__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-top: 20px; margin-bottom: 28px; }
.testimonials__trust { display: flex; align-items: center; gap: 12px; }
.testimonials__avatars { display: flex; }
.testimonials__avatars span { width: 32px; height: 32px; border-radius: 50%; background: var(--card-dark); border: 2px solid var(--bg); margin-left: -10px; }
.testimonials__avatars span:first-child { margin-left: 0; }
.testimonials__trust p { font-size: 0.8rem; color: var(--ink-dim); }
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testi p { font-size: 1rem; line-height: 1.5; }
.testi span { display: block; margin-top: 22px; font-size: 0.78rem; color: var(--ink-dim); }

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

/* toolkit */
.toolkit { padding: 60px 0; border-top: 1px solid var(--line); }
.toolkit__grid { margin-top: 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.toolkit__item { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.toolkit__badge {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--badge-color, var(--card-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease);
}
.toolkit__item:hover .toolkit__badge { transform: scale(1.12) rotate(-8deg); }
.toolkit__item { cursor: default; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.toolkit__item:nth-child(1) .toolkit__badge { --badge-color: #9c2d1f; }
.toolkit__item:nth-child(2) .toolkit__badge { --badge-color: #2b4a7a; }
.toolkit__item:nth-child(3) .toolkit__badge { --badge-color: #1a6b5c; }
.toolkit__item:nth-child(4) .toolkit__badge { --badge-color: #b3601f; }
.toolkit__item:nth-child(5) .toolkit__badge { --badge-color: #4a3f8f; }
.toolkit__item:nth-child(6) .toolkit__badge { --badge-color: #7a3213; }
.toolkit__item:nth-child(7) .toolkit__badge { --badge-color: #3d5a2a; }
.toolkit__item:nth-child(8) .toolkit__badge { --badge-color: #5a4632; }
.toolkit__item div { flex: 1; }
.toolkit__item strong { font-size: 0.98rem; }
.toolkit__item p { margin-top: 2px; font-size: 0.8rem; color: var(--ink-dim); }

/* AI stack */
.ai-stack { padding: 60px 0; border-top: 1px solid var(--line); }
.ai-stack__grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* bento: two wide cards over three narrow ones, so no card sits alone on a row */
  gap: 16px;
}
.ai-stack__item { grid-column: span 2; }
.ai-stack__item:nth-child(-n+2) { grid-column: span 3; }
.ai-stack__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 24px 20px;
  border: 1px solid rgba(211,97,47,0.25);
  background: linear-gradient(180deg, rgba(211,97,47,0.06), var(--card));
  cursor: default;
}
.ai-stack__badge {
  width: 40px; height: 40px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700;
  transition: transform 0.4s var(--ease);
}
.ai-stack__item:hover .ai-stack__badge { transform: scale(1.12) rotate(8deg); }
.ai-stack__item strong { font-size: 0.98rem; }
.ai-stack__item p { margin-top: 2px; font-size: 0.82rem; color: var(--ink-dim); line-height: 1.4; }

@media (max-width: 900px) {
  .ai-stack__grid { grid-template-columns: repeat(2, 1fr); }
  .ai-stack__item, .ai-stack__item:nth-child(-n+2) { grid-column: auto; }
  .ai-stack__item:last-child { grid-column: 1 / -1; }
}
@media (max-width: 500px) { .ai-stack__grid { grid-template-columns: 1fr; } }

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

/* role break */
.role-break { padding: 40px 0; overflow: hidden; }
.role-break h2 {
  font-size: clamp(3.5rem, 11vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}
.role-break h2 span { color: var(--accent); -webkit-text-stroke: 1.5px var(--accent); }
.role-break h2 + h2 { margin-top: 4px; }

/* contact */
.contact { padding: 70px 0 50px; border-top: 1px solid var(--line); }
.contact__note { margin-top: 18px; color: var(--ink-dim); max-width: 50ch; }
.contact__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ruler + clock — a film-editor timecode scrubber instead of a generic pixel ruler */
.ruler-wrap {
  position: relative;
}
.ruler {
  position: relative;
  height: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--card);
  border-radius: 12px;
  cursor: crosshair;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 20px);
  background-position: 0 100%;
  background-repeat: repeat-x;
  background-size: 100% 6px;
}
.ruler__tick {
  position: absolute;
  top: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: none;
}
.ruler__tick i {
  display: block;
  width: 1px;
  height: 13px;
  margin-top: 4px;
  background: var(--accent);
  opacity: 0.7;
}
.ruler__tick b {
  margin-top: 3px;
  margin-left: 5px;
  font-family: ui-monospace, "SFMono-Regular", monospace;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
}

/* playhead: a vertical scrubber line + live timecode readout, like a video editor's timeline */
.ruler__playhead {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 40px;
  background: var(--accent);
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  z-index: 6;
  transition: opacity 0.25s var(--ease);
  box-shadow: 0 0 8px rgba(211,97,47,0.6);
}
.ruler__playhead::before {
  content: "";
  position: absolute;
  top: -4px; left: 50%;
  width: 8px; height: 8px;
  background: var(--accent);
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
}
.ruler__playhead::after {
  content: attr(data-time);
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  margin-top: 6px;
  background: var(--sidebar-bg);
  color: var(--hud-text);
  font-family: ui-monospace, "SFMono-Regular", monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.ruler__playhead.visible { opacity: 1; }

.clock {
  margin: 16px auto 10px;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--sidebar-bg);
  color: var(--hud-text);
  font-family: ui-monospace, "SFMono-Regular", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(32,26,21,0.18);
}
.clock__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--available);
  box-shadow: 0 0 0 3px rgba(59,181,74,0.25);
  animation: clockPulse 1.6s ease-in-out infinite;
}
.clock__sep { opacity: 0.4; }
@keyframes clockPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* footer */
.footer { padding: 24px 0 40px; display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--ink-dim); border-top: 1px solid var(--line); flex-wrap: wrap; gap: 8px; }

/* small phones */
@media (max-width: 480px) {
  .main { padding: 84px 5vw 0; }
  .hero { padding: 24px 0 40px; }
  .hero::before { width: 320px; height: 320px; } /* the 440px glow pushed narrow phones into sideways scroll */
  .hero__badges { gap: 8px; margin-bottom: 28px; }
  .hero__location { margin-left: 0; text-align: left; }
  .role-break h2 { font-size: 3rem; }
  .services__grid, .work__grid, .testimonials__grid, .toolkit__grid { gap: 12px; }
  .card { padding: 22px; }
  .ruler__tick--minor { display: none; }
  .ruler__tick b { font-size: 0.56rem; }
  .contact__actions { flex-direction: column; align-items: stretch; }
  .contact__actions .pill { text-align: center; justify-content: center; }
  .hero__role-icon { width: 24px; height: 24px; font-size: 0.7rem; }
}

/* filter counts */
.pill__count { font-size: 0.7rem; font-weight: 600; opacity: 0.55; }
.pill--filter.active .pill__count { opacity: 0.75; }

/* phones: one swipeable row of filters instead of three wrapped rows */
@media (max-width: 560px) {
  .work__filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .work__filters::-webkit-scrollbar { display: none; }
  .work__filters .pill { flex-shrink: 0; }
}

/* dark theme: glass badge instead of a grey box, and an edge for the always-dark cards */
[data-theme="dark"] .badge { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); box-shadow: none; }
[data-theme="dark"] .card--dark { border: 1px solid var(--line); }

/* concept: a live motion piece in a 16:9 frame */
.concept { padding: 60px 0; border-top: 1px solid var(--line); }
.concept__frame { position: relative; margin-top: 28px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #f5f1ea; box-shadow: 0 30px 60px rgba(32,26,21,0.12); }
.concept__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.concept__note { margin-top: 16px; font-size: 0.9rem; color: var(--ink-dim); }
.concept__note a { color: var(--ink); font-weight: 600; transition: color 0.3s var(--ease); }
.concept__note a:hover { color: var(--accent); }

/* ---------- micro-interactions ---------- */

/* sliding active pill (work filters, sidebar nav) */
.has-indicator { position: relative; isolation: isolate; }
.slide-indicator { position: absolute; left: 0; top: 0; z-index: -1; border-radius: 999px; background: var(--ink); pointer-events: none; opacity: 0; }
.work__filters.has-indicator { width: fit-content; max-width: 100%; padding: 5px; gap: 2px; border-radius: 26px; background: var(--card); }
.work__filters.has-indicator .pill--filter { background: transparent; }
.work__filters.has-indicator .pill--filter.active,
.work__filters.has-indicator .pill--filter.active:hover { background: transparent; color: var(--bg); }
.sidebar__nav .slide-indicator { background: var(--accent); border-radius: 12px; }
.sidebar__nav.has-indicator a.active { background: transparent; }

/* a timeline bar tracks each preview while it plays */
.work-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  z-index: 4;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.work-card.is-playing::before { opacity: 1; }

/* arrows lean the way they point */
.arrow { display: inline-block; transition: transform 0.35s var(--ease); }
a:hover .arrow, .work-card:hover .arrow { transform: translateX(4px); }
a:hover .arrow--out { transform: translate(3px, -3px); }
a:hover .arrow--up { transform: translateY(-3px); }
a:hover .arrow--down { animation: nudge-down 0.9s var(--ease) infinite; }
@keyframes nudge-down { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

/* live "available" dot */
.badge .dot { position: relative; }
.badge .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--available); animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

/* brand names and role sparkles answer the cursor */
.marquee__track li { transition: color 0.3s var(--ease), opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.marquee__track li:hover { color: var(--accent); opacity: 1; transform: translateY(-2px); }
.hero__role-icon { transition: transform 0.6s var(--ease), background 0.3s var(--ease); }
.hero__role:hover .hero__role-icon { transform: rotate(180deg); background: var(--accent); }

/* copy email */
.copy-email svg { width: 15px; height: 15px; }
.copy-email.is-copied, .copy-email.is-copied:hover { background: var(--available); border-color: var(--available); color: #fff; }

/* footer back to top */
.footer__top { color: var(--ink); font-weight: 600; transition: color 0.3s var(--ease); }
.footer__top:hover { color: var(--accent); }

/* theme switch: the new theme grows out of the toggle as a circle (View Transitions) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* keyboard focus */
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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