/* ============================================================
   Bradley Seraphin — Marketing Technologist
   ============================================================ */

:root {
  --bg: #08090c;
  --bg-alt: #0e1015;
  --ink: #f2f3f5;
  --ink-dim: #9aa0ab;
  --ink-faint: #5c6270;
  --accent: #4da3ff;
  --accent-dim: #1f4c85;
  --line: rgba(255, 255, 255, 0.09);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

section { position: relative; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.mono-tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------------- Nav ---------------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(8,9,12,0.85), rgba(8,9,12,0));
  transition: background 0.3s var(--ease);
}

.nav.scrolled {
  background: rgba(8,9,12,0.85);
  border-bottom: 1px solid var(--line);
}

.nav__mark {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 0 rgba(61,220,132,0.6);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61,220,132,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(61,220,132,0); }
  100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); }
}

.nav__links {
  display: flex;
  gap: 32px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.nav__links a {
  position: relative;
  color: var(--ink-dim);
  transition: color 0.2s;
  padding-bottom: 3px;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

/* ---------------- Hero ---------------- */

.hero {
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.5;
  will-change: transform;
}

.hero__glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(77,163,255,0.16), transparent 65%);
  will-change: transform;
}

.hero__photo {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 92%;
  max-width: 46%;
  mask-image: linear-gradient(90deg, transparent 0%, black 22%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 22%);
  will-change: transform;
}

.hero__photo img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  filter: grayscale(1) contrast(1.1);
  opacity: 0.9;
}

.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  opacity: 0;
  animation: rise 0.7s var(--ease) 0.1s forwards;
}
.hero__eyebrow .rule { width: 30px; height: 1px; background: var(--accent); }

.hero__title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(40px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 900px;
}

.hero__title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.hero__title .word span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 0.85s var(--ease) forwards;
}

.hero__title .line-break { display: block; }

.hero__title .accent { color: var(--accent); }

@keyframes rise {
  to { transform: translateY(0); opacity: 1; }
}

.hero__sub {
  margin-top: 28px;
  max-width: 560px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-dim);
  opacity: 0;
  animation: rise 0.7s var(--ease) 0.9s forwards;
}

.hero__cta {
  margin-top: 40px;
  display: flex;
  gap: 18px;
  align-items: center;
  opacity: 0;
  animation: rise 0.7s var(--ease) 1.05s forwards;
}

.btn {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 14px 24px;
  border-radius: 4px;
  border: 1px solid var(--line);
  transition: all 0.25s var(--ease);
}

.btn--solid {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }

.btn--ghost:hover { border-color: var(--ink-dim); color: var(--ink); }

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 32px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  opacity: 0;
  animation: rise 0.7s var(--ease) 1.3s forwards;
}

.scroll-cue__line {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--ink-faint), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--accent);
  animation: drip 1.8s ease-in-out infinite;
}
@keyframes drip {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ---------------- Hero wave ---------------- */

.hero__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
  height: 100px;
  overflow: hidden;
}

.wave-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
  will-change: transform;
}

.wave-layer--back  { animation: wave-roll 22s linear infinite; }
.wave-layer--front { animation: wave-roll 14s linear infinite; }

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

/* ---------------- Marquee ---------------- */

.marquee-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  background: var(--bg-alt);
}

.marquee {
  display: flex;
  width: max-content;
  animation: scroll-left 32s linear infinite;
}

.marquee-section:hover .marquee { animation-play-state: paused; }

.marquee__group {
  display: flex;
  align-items: center;
}

.marquee__item {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--ink-dim);
  padding: 0 28px;
  white-space: nowrap;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}
.marquee__item:hover { color: var(--ink); }

.marquee__logo {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.7);
  opacity: 0.55;
  transition: filter 0.25s, opacity 0.25s;
}
.marquee__item:hover .marquee__logo {
  filter: none;
  opacity: 1;
}

.marquee__dot {
  color: var(--accent-dim);
  padding: 0 4px;
}

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

/* ---------------- Section heads ---------------- */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-family: var(--sans);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--ink-dim);
  max-width: 360px;
  font-size: 14px;
}

.section-pad { padding: 130px 0; }

/* ---------------- Reveal ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------------- Work grid ---------------- */

.work-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.case {
  background: var(--bg);
  padding: 36px;
  cursor: pointer;
  transition: background 0.3s;
}
.case:hover { background: var(--bg-alt); }

.case__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.case__num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
}

.case__toggle {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--ink-faint);
  transition: transform 0.35s var(--ease), color 0.2s;
  flex-shrink: 0;
}
.case.open .case__toggle { transform: rotate(45deg); color: var(--accent); }

.case__title {
  font-family: var(--sans);
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 600;
  margin-top: 18px;
  letter-spacing: -0.01em;
}

.case__brand {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

.case__era {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  margin-top: 8px;
}

.case__metrics {
  display: flex;
  gap: 28px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.case__visuals {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.case__visual {
  position: relative;
  width: 150px;
  aspect-ratio: 16/9;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  flex-shrink: 0;
  display: block;
}
.case__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s var(--ease);
}
.case__visual:hover img { transform: scale(1.06); }
.case__visual__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8,9,12,0.18);
  pointer-events: none;
}
.case__visual__play span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(8,9,12,0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
}

@media (max-width: 640px) {
  .case__visual { width: 120px; }
}

.case__metric b {
  font-family: var(--sans);
  font-size: 22px;
  display: block;
  color: var(--ink);
}
.case__metric span {
  font-size: 11px;
  color: var(--ink-faint);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.case__detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), margin-top 0.5s var(--ease);
}
.case.open .case__detail { max-height: 500px; margin-top: 22px; }

.case__detail p {
  color: var(--ink-dim);
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 640px;
}

/* ---------------- Stack ---------------- */

.stack-strip {
  padding: 60px 0;
  border-top: 1px solid var(--line);
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--mono);
}

.stack-list span {
  font-size: 12.5px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-dim);
}

/* ---------------- About ---------------- */

.about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: center;
}

.about__img {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.about__img img {
  filter: grayscale(1) contrast(1.05);
  width: 100%;
}

.about__body p {
  font-size: 16.5px;
  color: var(--ink-dim);
  margin-bottom: 18px;
  max-width: 560px;
  line-height: 1.75;
}

.about__body p strong { color: var(--ink); font-weight: 500; }

.traits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.traits span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 100px;
}

/* ---------------- Contact ---------------- */

.contact {
  text-align: center;
  padding-bottom: 160px;
}

.contact h2 {
  font-family: var(--sans);
  font-size: clamp(34px, 6vw, 68px);
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 780px;
  margin: 0 auto 30px;
}

.contact h2 .accent { color: var(--accent); }

.contact p {
  color: var(--ink-dim);
  margin-bottom: 40px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------------- Cursor glow ---------------- */

.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77,163,255,0.10), transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  mix-blend-mode: screen;
  will-change: transform;
}

/* ---------------- Work detail page ---------------- */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-top: 100px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent); }

.page-hero {
  padding: 40px 0 90px;
  border-bottom: 1px solid var(--line);
}

.page-hero__logo {
  max-height: 64px;
  max-width: 220px;
  filter: grayscale(1) brightness(1.6);
  margin-bottom: 34px;
}

.page-hero h1 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(32px, 5.5vw, 60px);
  letter-spacing: -0.02em;
  max-width: 820px;
  line-height: 1.05;
}

.page-hero__role {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  margin-top: 22px;
  letter-spacing: 0.02em;
}

.page-hero__meta {
  color: var(--ink-faint);
  font-size: 13px;
  margin-top: 4px;
  font-family: var(--mono);
}

.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin-top: 48px;
}
.metric-row b {
  font-family: var(--sans);
  font-size: 32px;
  font-weight: 600;
  display: block;
  color: var(--ink);
}
.metric-row span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.narrative {
  max-width: 720px;
}
.narrative h2 {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 22px;
}
.narrative p {
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.narrative p strong { color: var(--ink); font-weight: 500; }

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.gallery__item {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-alt);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); }

.gallery__wide { grid-column: span 6; aspect-ratio: 16/8; }
.gallery__med { grid-column: span 3; aspect-ratio: 4/3; }
.gallery__sq { grid-column: span 2; aspect-ratio: 1/1; }

.page-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 60px 0 130px;
  margin-top: 60px;
  border-top: 1px solid var(--line);
}
.page-cta h3 {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 600;
}

@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__wide { grid-column: span 2; }
  .gallery__med { grid-column: span 2; aspect-ratio: 16/10; }
  .gallery__sq { grid-column: span 1; }
  .back-link { margin-top: 90px; }
}

/* ---------------- Social grid ---------------- */

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 30px 0 8px;
}
.social-grid__item {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-alt);
}
.social-grid__item img {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: top;
}
.social-grid__cap {
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
}
.social-grid__cap b { color: var(--ink-dim); font-weight: 500; }

.growth-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-alt);
  padding: 28px 30px 20px;
  margin: 28px 0 8px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
  align-items: center;
}
.growth-card__chart svg { width: 100%; height: auto; display: block; }
.growth-card__side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.growth-card__side .mono-tag { display: block; }
.growth-stat b {
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 600;
  display: block;
  color: var(--ink);
}
.growth-stat span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 760px) {
  .growth-card { grid-template-columns: 1fr; padding: 24px 20px 18px; }
}

@media (max-width: 760px) {
  .social-grid { grid-template-columns: 1fr; }
  .receipts { grid-template-columns: 1fr; }
}

/* ---------------- Woven media/text rows ---------------- */

.weave {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 52px;
  align-items: center;
  margin: 54px 0;
}
.weave.reverse .weave__media { order: 2; }
.weave.reverse .weave__text { order: 1; }

.weave__media {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-alt);
}
.weave__media img {
  width: 100%;
  display: block;
}
.weave__media a { display: block; }

.weave__text .mono-tag {
  display: block;
  margin-bottom: 14px;
}
.weave__text p {
  color: var(--ink-dim);
  font-size: 15.5px;
  line-height: 1.8;
}
.weave__text p strong { color: var(--ink); font-weight: 500; }

@media (max-width: 860px) {
  .weave, .weave.reverse {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 38px 0;
  }
  .weave .weave__media, .weave.reverse .weave__media { order: 1; }
  .weave .weave__text, .weave.reverse .weave__text { order: 2; }
}

/* ---------------- Browser mockup ---------------- */

.browser-frame {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-alt);
}
.browser-frame__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #0c0d11;
}
.browser-frame__dots { display: flex; gap: 6px; }
.browser-frame__dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--line);
}
.browser-frame__url {
  flex: 1;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 5px 14px;
  text-align: center;
}
.browser-frame__content {
  padding: 34px 28px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 0%, rgba(77,163,255,0.08), transparent 55%),
    var(--bg-alt);
}
.mgr-brand {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 18px;
}
.mgr-brand b { color: #f5a524; }
.mgr-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-faint);
  margin-bottom: 24px;
}
.mgr-nav span:first-child { color: #f5a524; }
.mgr-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  color: #f5a524;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.mgr-headline {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(22px, 3.4vw, 30px);
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 10px;
}
.mgr-headline em { color: #f5a524; font-style: normal; }
.mgr-tag {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 22px;
}
.mgr-stats {
  display: flex;
  justify-content: center;
  gap: 26px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-dim);
  margin-bottom: 26px;
}
.mgr-stats b { color: #f5a524; }
.mgr-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.mgr-row span {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: linear-gradient(135deg, #2a2f3a, #1a1d24);
  border: 1px solid var(--line);
}
.mgr-radar {
  margin-top: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.mgr-radar .mgr-eyebrow { text-align: left; }
.mgr-radar-pills {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.mgr-radar-pills span {
  font-family: var(--mono);
  font-size: 10px;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--ink-faint);
}
.mgr-radar-pills span:first-child {
  background: #f5a524;
  border-color: #f5a524;
  color: #14150f;
}
.mgr-feature {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  color: #f5a524;
  border: 1px solid rgba(245,165,36,0.4);
  border-radius: 100px;
  padding: 6px 16px;
}

/* ---------------- Cinematic player ---------------- */

.cine-player {
  max-width: 920px;
  margin: 8px auto 0;
}
.cine-player video {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.cine-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.cine-tabs button {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-dim);
  cursor: pointer;
  transition: all 0.2s;
}
.cine-tabs button:hover { color: var(--ink); border-color: var(--ink-dim); }
.cine-tabs button.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

@media (max-width: 640px) {
  .cine-tabs button { font-size: 11px; padding: 8px 14px; }
}

/* ---------------- Chapter rail ---------------- */

.chapter-rail {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chapter-rail a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-faint);
  transition: color 0.2s;
}
.chapter-rail a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-faint);
  transition: background 0.25s, transform 0.25s;
}
.chapter-rail a:hover { color: var(--ink-dim); }
.chapter-rail a.active {
  color: var(--accent);
}
.chapter-rail a.active::before {
  background: var(--accent);
  transform: scale(1.5);
}

@media (max-width: 1100px) {
  .chapter-rail { display: none; }
}

/* ---------------- Chapters ---------------- */

.chapter {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.chapter__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.chapter__label .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
}

.chapter__title {
  font-family: var(--sans);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 700px;
  margin-bottom: 24px;
}

.chapter p {
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.8;
  max-width: 700px;
  margin-bottom: 18px;
}
.chapter p strong { color: var(--ink); font-weight: 500; }

.chapter__note {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  border: 1px dashed var(--line);
  padding: 8px 14px;
  border-radius: 4px;
}

.vgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.vgrid--wide { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.video-tile {
  position: relative;
  aspect-ratio: 9/16;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.video-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
.video-tile__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-dim);
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
  pointer-events: none;
}

@media (max-width: 760px) {
  .vgrid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

/* ---------------- Capability grid ---------------- */

.capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.capability-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-alt);
  padding: 26px 24px;
}
.capability-card .mono-tag { display: block; margin-bottom: 14px; }
.capability-card p {
  color: var(--ink-dim);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ---------------- Role closer ---------------- */

.role-closer {
  text-align: center;
  padding: 64px 0 8px;
}
.role-closer__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.role-closer__logos a {
  display: flex;
  align-items: center;
  opacity: 0.88;
  transition: opacity 0.2s ease;
}
.role-closer__logos a:hover { opacity: 1; }
.role-closer__logos img { height: 64px; width: auto; display: block; }
.role-closer__logos span {
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 13px;
}
.role-closer p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--ink-dim);
  font-size: 15.5px;
  line-height: 1.8;
}
.role-closer p strong { color: var(--ink); font-weight: 500; }

@media (max-width: 600px) {
  .role-closer__logos { gap: 20px; }
  .role-closer__logos img { height: 42px; }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about__img { max-width: 320px; }
  .work-grid { grid-template-columns: 1fr !important; }
  .hero__photo { max-width: 60%; opacity: 0.5; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .nav__links { gap: 18px; font-size: 11px; }
  .hero__photo { display: none; }
  .section-pad { padding: 90px 0; }
  .case { padding: 26px; }
  .cursor-glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee { animation: none; }
  .wave-layer { animation: none; }
  .hero__title span, .hero__sub, .hero__cta, .hero__eyebrow, .scroll-cue { animation: none !important; opacity: 1 !important; transform: none !important; }
}
