/* ============================================================
   s13michael.in — design system
   Dark cinematic · Syne display · Inter body
   ============================================================ */

:root {
  --bg: #0a0a0b;
  --bg-2: #101013;
  --surface: #16161a;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f2f1ec;
  --muted: #9b9aa3;
  --accent: #d7ff3e;
  --accent-ink: #0a0a0b;
  --font-display: "Syne", sans-serif;
  --font-body: "Inter", sans-serif;
  --nav-h: 84px;
  --pad: clamp(20px, 5vw, 72px);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; background: #0a0a0b; color-scheme: dark; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--accent-ink); }

img, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* ---------- type scale ---------- */
.display-xl {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 7.2vw, 7.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.display-lg {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 6.5vw, 6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.display-md {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.display-sm {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.2;
}
.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
}
.accent { color: var(--accent); }

.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.label--accent { color: var(--accent); }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: min(46ch, 100%);
}
.hero-sub > * { min-width: 0; }
.lead strong { color: var(--text); font-weight: 500; }

/* ---------- layout ---------- */
.container { padding-left: var(--pad); padding-right: var(--pad); max-width: 1680px; margin: 0 auto; }
.section { padding-top: clamp(80px, 12vh, 160px); padding-bottom: clamp(80px, 12vh, 160px); }
.section--tight { padding-top: clamp(48px, 7vh, 96px); padding-bottom: clamp(48px, 7vh, 96px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(40px, 6vh, 80px);
}
.section-head .label { margin-bottom: 14px; display: block; }

.rule { border: 0; border-top: 1px solid var(--line); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s, backdrop-filter 0.4s, height 0.4s;
}
.nav.is-scrolled {
  height: 68px;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 38px; align-items: center; }
.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--text); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 11px 22px;
  border-radius: 100px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(215, 255, 62, 0.25); }

/* burger */
.burger {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  position: relative;
  z-index: 120;
}
.burger span {
  position: absolute;
  left: 8px; right: 8px;
  height: 2px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.25s, top 0.35s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger.is-open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* mobile overlay menu */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.menu-overlay.is-open { opacity: 1; visibility: visible; }
.menu-overlay a.menu-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 10vw, 5rem);
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--text);
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.6s, color 0.3s;
}
.menu-overlay.is-open a.menu-big { transform: translateY(0); opacity: 1; }
.menu-overlay.is-open a.menu-big:nth-child(2) { transition-delay: 0.06s; }
.menu-overlay.is-open a.menu-big:nth-child(3) { transition-delay: 0.12s; }
.menu-overlay.is-open a.menu-big:nth-child(4) { transition-delay: 0.18s; }
.menu-overlay a.menu-big:hover { color: var(--accent); }
.menu-overlay .menu-meta { margin-top: 48px; color: var(--muted); font-size: 0.9rem; }
.menu-overlay .menu-meta a { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: background 0.35s, color 0.35s, border-color 0.35s, transform 0.35s var(--ease);
}
.btn:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: translateY(-2px); }
.btn--solid { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn--solid:hover { box-shadow: 0 10px 40px rgba(215, 255, 62, 0.28); }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 75% 15%, rgba(215, 255, 62, 0.07), transparent 60%),
    radial-gradient(ellipse 55% 45% at 15% 85%, rgba(120, 90, 255, 0.06), transparent 60%);
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(0,0,0,0.5), transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(0,0,0,0.5), transparent 75%);
}
.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(20px, 3vh, 36px);
}
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.hero-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: clamp(28px, 5vh, 56px);
}
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--muted), transparent);
  animation: drip 1.8s var(--ease) infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  display: flex;
  user-select: none;
}
.marquee-track {
  display: flex;
  flex-shrink: 0;
  gap: 0;
  min-width: 100%;
  animation: marquee 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.8rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
}
.marquee-track span::after {
  content: "✦";
  color: var(--accent);
  margin: 0 28px;
  font-size: 0.9em;
}
@keyframes marquee {
  to { transform: translateX(-100%); }
}

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--bg);
  padding: clamp(24px, 3.5vw, 48px);
}
.stat b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1;
  display: block;
  margin-bottom: 10px;
}
.stat b sup { font-size: 0.5em; color: var(--accent); }
.stat span { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- work cards ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 3vw, 44px);
}
.work-card { grid-column: span 6; position: relative; }
.work-card--wide { grid-column: span 12; }
.work-card--tall { grid-column: span 6; }
.work-card-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--surface);
}
.work-card--wide .work-card-media { aspect-ratio: 21 / 9; }
.work-card-media img,
.work-card-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.6s;
  filter: saturate(0.92);
}
.work-card:hover .work-card-media img,
.work-card:hover .work-card-media video { transform: scale(1.05); filter: saturate(1.1); }
.work-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 10, 11, 0.55));
  opacity: 0;
  transition: opacity 0.5s;
}
.work-card:hover .work-card-media::after { opacity: 1; }
.work-card-index {
  position: absolute;
  top: 18px; left: 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--text);
  background: rgba(10, 10, 11, 0.55);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 100px;
  z-index: 2;
}
.work-card-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
}
.work-card-info h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  transition: color 0.3s;
}
.work-card:hover .work-card-info h3 { color: var(--accent); }
.work-card-info .cat { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.work-card > a.card-link { position: absolute; inset: 0; z-index: 3; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-chip {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
}
.filter-chip:hover { color: var(--text); border-color: var(--muted); }
.filter-chip.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.work-card.is-hidden { display: none; }

/* ---------- capabilities ---------- */
.caps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.cap {
  background: var(--bg);
  padding: clamp(28px, 4vw, 56px);
  transition: background 0.4s;
  position: relative;
}
.cap:hover { background: var(--bg-2); }
.cap .cap-num {
  font-family: var(--font-display);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 22px;
}
.cap h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 2vw, 1.6rem); margin-bottom: 14px; }
.cap p { color: var(--muted); font-size: 0.95rem; max-width: 42ch; }
.cap--full { grid-column: 1 / -1; }
.cap--full p { max-width: none; }

/* ---------- AI feature band ---------- */
.ai-band {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  padding: 1px;
  background: linear-gradient(120deg, rgba(215,255,62,0.55), rgba(120,90,255,0.4) 45%, rgba(215,255,62,0.15));
  overflow: hidden;
}
.ai-band-inner {
  border-radius: calc(var(--radius) + 5px);
  background: linear-gradient(160deg, #101013, #0a0a0b 70%);
  padding: clamp(36px, 6vw, 88px);
  position: relative;
  overflow: hidden;
}
.ai-band-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 85% 20%, rgba(215, 255, 62, 0.08), transparent 65%);
  pointer-events: none;
}

/* ---------- about / timeline ---------- */
.timeline { border-top: 1px solid var(--line); }
.tl-row {
  display: grid;
  grid-template-columns: 90px 1.2fr 2fr auto;
  gap: clamp(16px, 3vw, 48px);
  align-items: baseline;
  padding: clamp(24px, 3.5vw, 44px) 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
  position: relative;
}
.tl-row:hover { background: rgba(255, 255, 255, 0.02); }
.tl-num { font-family: var(--font-display); font-weight: 700; color: var(--muted); font-size: 0.9rem; }
.tl-role h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.5rem); margin-bottom: 4px; }
.tl-role .co { color: var(--accent); font-size: 0.9rem; font-weight: 500; }
.tl-desc { color: var(--muted); font-size: 0.95rem; max-width: 58ch; }
.tl-date { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }

/* skill pills */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  font-size: 0.85rem;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  transition: all 0.3s;
}
.pill:hover { border-color: var(--accent); color: var(--text); }

/* tool chips with icons */
.tools { display: flex; flex-wrap: wrap; gap: 10px; }
.tool {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  padding: 8px 16px 8px 11px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.tool:hover { border-color: var(--accent); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.tool .ti {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: currentColor;
  -webkit-mask: var(--src) center / contain no-repeat;
  mask: var(--src) center / contain no-repeat;
  transition: background 0.3s;
}
.tool:hover .ti { background: var(--accent); }
.tool .ti-mono {
  -webkit-mask: none;
  mask: none;
  background: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid currentColor;
  border-radius: 5px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 9px;
  line-height: 1;
  color: currentColor;
}
.tool:hover .ti-mono { border-color: var(--accent); color: var(--accent); }
.tool .ti-mono::before { content: attr(data-m); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.sticky-col { position: sticky; top: calc(var(--nav-h) + 24px); }

/* ---------- project pages ---------- */
.project-hero { padding-top: calc(var(--nav-h) + clamp(48px, 9vh, 120px)); }
.project-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  margin-top: clamp(32px, 6vh, 64px);
}
.project-meta div b { display: block; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.project-meta div span { font-size: 0.95rem; }

.media-stack { display: grid; gap: clamp(20px, 3vw, 44px); }
.media-stack figure {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.media-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 44px); }
.media-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); }

.next-project {
  display: block;
  border-top: 1px solid var(--line);
  padding: clamp(56px, 10vh, 120px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
}
.next-project:hover { background: var(--bg-2); }
.next-project .label { display: block; margin-bottom: 18px; }
.next-project h2 { transition: color 0.35s; }
.next-project:hover h2 { color: var(--accent); }

/* ---------- contact ---------- */
.contact-hero { min-height: 72svh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--nav-h); }
.contact-mail {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.15rem, 3.4vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  border-bottom: 3px solid var(--line);
  transition: color 0.35s, border-color 0.35s;
  display: inline-block;
  word-break: break-all;
}
.contact-mail:hover { color: var(--accent); border-color: var(--accent); }
.contact-rows { border-top: 1px solid var(--line); }
.contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.contact-row .label { min-width: 120px; }
.contact-row a, .contact-row span.val { font-family: var(--font-display); font-weight: 600; font-size: clamp(1rem, 2vw, 1.4rem); transition: color 0.3s; }
.contact-row a:hover { color: var(--accent); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-cta {
  padding-top: clamp(72px, 13vh, 160px);
  padding-bottom: clamp(48px, 8vh, 96px);
  text-align: left;
}
.footer-cta a.big-link {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 7.6vw, 7rem);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  display: inline-block;
  transition: color 0.4s;
}
.footer-cta a.big-link:hover { color: var(--accent); }
.footer-cta a.big-link .arrow-big { display: inline-block; transition: transform 0.45s var(--ease); }
.footer-cta a.big-link:hover .arrow-big { transform: translate(10px, -6px) rotate(-8deg); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-bottom .links { display: flex; gap: 26px; }
.footer-bottom a { color: var(--muted); transition: color 0.3s; }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.4s; }

/* hero line intro */
.line-mask { overflow: hidden; display: block; }
.line-mask > span {
  display: block;
  transform: translateY(110%);
  animation: lineUp 1s var(--ease) forwards;
}
.line-mask:nth-of-type(2) > span { animation-delay: 0.12s; }
.line-mask:nth-of-type(3) > span { animation-delay: 0.24s; }
@keyframes lineUp { to { transform: translateY(0); } }

/* page fade */
body { animation: pageIn 0.6s ease both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
body.page-out { opacity: 0; transition: opacity 0.35s ease; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .tl-row { grid-template-columns: 48px 1fr auto; }
  .tl-desc { grid-column: 2 / -1; }
  .caps { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .sticky-col { position: static; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .work-card, .work-card--wide { grid-column: span 12; }
  .project-meta { grid-template-columns: repeat(2, 1fr); }
  .media-row-2, .media-row-3 { grid-template-columns: 1fr; }
  .tl-row { grid-template-columns: 1fr; gap: 8px; }
  .tl-num { display: none; }
  .tl-desc { grid-column: auto; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
  .line-mask > span { transform: none; animation: none; }
}

/* ============================================================
   Commcorde case study — true tokens from the Commcorde
   Design System (Claude design). Scoped to .cc.
   ============================================================ */
.cc {
  --cc-primary: #123498;    /* primary brand blue — the spine */
  --cc-secondary: #0f4aae;
  --cc-accent: #2563eb;
  --cc-bright: #2f7dff;     /* bright accent / intelligence */
  --cc-navy: #071a35;       /* executive-dark ground */
  --cc-card: #0c2345;       /* dark card */
  --cc-hairline: #183459;   /* dark hairline */
  --cc-text: #1c2a3a;
  --cc-secondary-ink: #516175;
  --cc-muted: #7d8a9b;
  --cc-border: #d8e2f1;
  --cc-divider: #e5eaf2;
  --cc-surface: #f8fafc;
  /* aliases used by the panels */
  --cc-darkbg: #071a35;
  --cc-cardbg: #0c2345;
  --cc-ink: #071a35;
  --cc-line: #183459;
  --cc-blue: #2563eb;
  --cc-royal: #123498;
  --cc-sky: #2f7dff;
  --cc-paper: #f8fafc;
  --cc-slate: #7d8a9b;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
}
.cc-mono { font-family: "Plus Jakarta Sans", "Inter", sans-serif; font-weight: 700; letter-spacing: 0.14em; }

.cc-kicker { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.cc-kicker .n { font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: 0.85rem; letter-spacing: 0.15em; }

/* pull quote */
.cc-quote { border-left: 3px solid var(--cc-accent); padding: 6px 0 6px 28px; }
.cc-quote p { font-family: "Plus Jakarta Sans"; font-weight: 500; font-size: clamp(1.3rem, 2.6vw, 2.1rem); line-height: 1.35; letter-spacing: -0.01em; color: #fff; max-width: 24ch; }

/* personality + voice */
.cc-two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.cc-card { background: var(--cc-card); border: 1px solid var(--cc-hairline); border-radius: 16px; padding: clamp(26px, 3.4vw, 42px); }
.cc-card h3 { font-family: "Plus Jakarta Sans"; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; color: #fff; margin-bottom: 18px; }
.cc-card p { color: #b9c6da; line-height: 1.6; font-size: 0.98rem; }
.cc-traits { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-trait { font-size: 0.82rem; font-weight: 600; color: #cfe0ff; border: 1px solid rgba(37, 99, 235, 0.45); background: rgba(37, 99, 235, 0.10); border-radius: 100px; padding: 8px 16px; }
.cc-trait--no { color: #9aa7bb; border-color: var(--cc-hairline); background: transparent; text-decoration: line-through; text-decoration-color: rgba(213, 68, 58, 0.6); }

/* logo showcase */
.cc-logo-hero {
  background: radial-gradient(120% 140% at 78% 12%, rgba(47, 125, 255, 0.18), transparent 55%), linear-gradient(160deg, #0b2450, #071a35 70%);
  border: 1px solid var(--cc-hairline); border-radius: 16px;
  padding: clamp(56px, 11vw, 150px) clamp(24px, 6vw, 80px);
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.cc-logo-hero img { width: min(460px, 78%); position: relative; z-index: 2; }
.cc-logo-hero .cc-grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--cc-hairline) 1px, transparent 1px), linear-gradient(90deg, var(--cc-hairline) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent 75%);
  opacity: 0.7;
}
.cc-lockups { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); margin-top: clamp(16px, 2vw, 28px); }
.cc-lockup { border-radius: 16px; padding: clamp(30px, 4vw, 60px); display: flex; align-items: center; justify-content: center; min-height: 190px; }
.cc-lockup img { width: min(280px, 76%); }
.cc-lockup--dark { background: var(--cc-navy); border: 1px solid var(--cc-hairline); }
.cc-lockup--blue { background: linear-gradient(150deg, var(--cc-primary), #071a35); }
.cc-lockup--light { background: var(--cc-surface); }
.cc-lockup--light img { filter: brightness(0) saturate(100%) invert(16%) sepia(63%) saturate(3200%) hue-rotate(221deg); }
.cc-caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; color: var(--cc-muted); font-size: 0.78rem; }

/* spec tables (reusable) */
.cc-spec { background: var(--cc-card); border: 1px solid var(--cc-hairline); border-radius: 16px; padding: clamp(24px, 3vw, 38px); }
.cc-spec h3 { font-family: "Plus Jakarta Sans"; font-weight: 700; font-size: 1rem; color: #fff; margin-bottom: 8px; }
.cc-spec .row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--cc-hairline); }
.cc-spec .row:last-child { border-bottom: 0; }
.cc-spec .k { color: var(--cc-muted); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; }
.cc-spec .v { color: #fff; font-weight: 600; font-size: 0.95rem; text-align: right; }

/* colour groups */
.cc-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--cc-hairline); border: 1px solid var(--cc-hairline); border-radius: 16px; overflow: hidden; }
.cc-swatch { min-height: 132px; padding: clamp(14px, 1.6vw, 20px); display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.cc-swatch b { font-size: 0.8rem; font-weight: 600; }
.cc-swatch .hex { font-size: 0.68rem; letter-spacing: 0.03em; opacity: 0.85; }
.cc-ramp { display: grid; gap: 1px; background: var(--cc-hairline); border: 1px solid var(--cc-hairline); border-radius: 16px; overflow: hidden; }
.cc-sw { min-height: 108px; padding: 12px 13px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.cc-sw b { font-size: 0.74rem; font-weight: 600; }
.cc-sw .hex { font-size: 0.62rem; letter-spacing: 0.02em; opacity: 0.82; }

/* typography specimen */
.cc-type-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 3vw, 44px); }
.cc-type-card { background: var(--cc-card); border: 1px solid var(--cc-hairline); border-radius: 16px; padding: clamp(28px, 4vw, 48px); }
.cc-type-card .meta { display: flex; justify-content: space-between; color: var(--cc-muted); font-size: 0.75rem; border-bottom: 1px solid var(--cc-hairline); padding-bottom: 14px; margin-bottom: 22px; }
.cc-aa { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: clamp(3.5rem, 8vw, 6.5rem); line-height: 1; letter-spacing: -0.03em; color: #fff; }
.cc-weights { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; color: #cdd7e6; }
.cc-weights span { font-family: "Plus Jakarta Sans"; font-size: 1.05rem; }
.cc-specimen-h { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -0.02em; color: #fff; line-height: 1.15; }
.cc-specimen-b { color: var(--cc-muted); margin-top: 14px; font-size: 0.98rem; line-height: 1.65; }

/* spacing bars */
.cc-bars { display: flex; align-items: flex-end; gap: 12px; height: 120px; margin: 8px 0 14px; }
.cc-bars i { width: 30px; background: linear-gradient(180deg, var(--cc-accent), var(--cc-primary)); border-radius: 4px 4px 0 0; display: block; }
.cc-bars-labels { display: flex; gap: 12px; color: var(--cc-muted); font-size: 0.7rem; }
.cc-bars-labels span { width: 30px; text-align: center; }

/* presentation slides */
.cc-deck { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.cc-slide { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--cc-hairline); position: relative; padding: clamp(20px, 2.8vw, 40px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); }
.cc-slide .corner-logo { position: absolute; top: 18px; right: 22px; height: 15px; z-index: 3; }
.cc-slide .eyebrow { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.cc-slide h4 { font-family: "Plus Jakarta Sans"; font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
.cc-slide.wide { grid-column: 1 / -1; aspect-ratio: 21 / 8; }
/* cover */
.cc-slide--cover { justify-content: flex-end; background: radial-gradient(120% 130% at 80% 8%, rgba(47, 125, 255, 0.28), transparent 55%), linear-gradient(160deg, #0b2450, #071a35 72%); }
.cc-slide--cover .eyebrow { color: var(--cc-bright); }
.cc-slide--cover h4 { color: #fff; font-size: clamp(1.3rem, 3vw, 2.4rem); margin-top: 12px; max-width: 18ch; }
.cc-slide--cover .foot { margin-top: 18px; color: #9fb3d0; font-size: 0.72rem; }
/* kpi */
.cc-slide--kpi { background: var(--cc-navy); justify-content: center; }
.cc-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 30px); }
.cc-kpi .num { font-family: "Plus Jakarta Sans"; font-weight: 800; color: #fff; font-size: clamp(1.6rem, 4vw, 3rem); letter-spacing: -0.02em; line-height: 1; }
.cc-kpi .num em { font-style: normal; color: var(--cc-bright); }
.cc-kpi .lab { color: #9fb3d0; font-size: 0.72rem; margin-top: 8px; line-height: 1.4; }
/* divider */
.cc-slide--divider { background: linear-gradient(150deg, #0b2450, #071a35); justify-content: center; overflow: hidden; }
.cc-slide--divider .huge { font-family: "Plus Jakarta Sans"; font-weight: 800; color: rgba(47, 125, 255, 0.22); font-size: clamp(5rem, 16vw, 12rem); line-height: 0.8; letter-spacing: -0.04em; position: absolute; right: 6%; top: 50%; transform: translateY(-50%); }
.cc-slide--divider .eyebrow { color: var(--cc-bright); position: relative; z-index: 2; }
.cc-slide--divider h4 { color: #fff; font-size: clamp(1.3rem, 3vw, 2.2rem); position: relative; z-index: 2; margin-top: 10px; }
/* table */
.cc-slide--table { background: var(--cc-surface); color: var(--cc-text); }
.cc-slide--table .eyebrow { color: var(--cc-primary); }
.cc-slide--table h4 { color: var(--cc-text); font-size: clamp(1rem, 2vw, 1.5rem); margin: 6px 0 16px; }
.cc-table { width: 100%; border-collapse: collapse; font-size: clamp(0.6rem, 1.1vw, 0.82rem); }
.cc-table th { background: var(--cc-primary); color: #fff; text-align: left; padding: 9px 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.86em; }
.cc-table td { padding: 9px 12px; border-bottom: 1px solid var(--cc-border); color: var(--cc-text); }
.cc-table tr:nth-child(even) td { background: #eef3fb; }
.cc-table .pos { color: #1f8a52; font-weight: 700; }
.cc-table .risk { color: #d5443a; font-weight: 700; }

/* icons */
.cc-iconset { display: grid; grid-template-columns: repeat(8, 1fr); gap: 1px; background: var(--cc-hairline); border: 1px solid var(--cc-hairline); border-radius: 16px; overflow: hidden; }
.cc-ico { background: var(--cc-card); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; color: var(--cc-bright); }
.cc-ico svg { width: 30px; height: 30px; stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* imagery */
.cc-img-treat { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--cc-hairline); min-height: 260px; display: flex; align-items: flex-end; padding: clamp(24px, 3vw, 40px); background: linear-gradient(150deg, #1b3a66, #071a35 70%); }
.cc-img-treat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(-105deg, rgba(7, 26, 53, 0.96), rgba(7, 26, 53, 0.40)); }
.cc-img-treat > * { position: relative; z-index: 2; }
.cc-img-treat h4 { font-family: "Plus Jakarta Sans"; font-weight: 700; color: #fff; font-size: 1.2rem; }
.cc-img-treat p { color: #cfe0ff; font-size: 0.85rem; margin-top: 6px; max-width: 40ch; }

/* applications */
.cc-apps { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(16px, 2vw, 28px); }
.cc-app { border-radius: 16px; border: 1px solid var(--cc-hairline); overflow: hidden; min-height: 240px; position: relative; padding: clamp(22px, 2.4vw, 30px); display: flex; flex-direction: column; justify-content: space-between; }
.cc-app--card { grid-column: span 3; background: linear-gradient(150deg, #0b2450, #071a35); aspect-ratio: 16/10; min-height: 0; }
.cc-app--report { grid-column: span 3; background: linear-gradient(160deg, var(--cc-primary), #071a35); aspect-ratio: 16/10; min-height: 0; }
.cc-app--social { grid-column: span 2; background: var(--cc-navy); }
.cc-app--letter { grid-column: span 2; background: var(--cc-surface); color: var(--cc-text); }
.cc-app--signal { grid-column: span 2; background: linear-gradient(150deg, var(--cc-accent), var(--cc-primary)); }
.cc-app .lil { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; }
.cc-app h4 { font-family: "Plus Jakarta Sans"; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.cc-app img.mk { height: 22px; width: auto; }
.cc-app--letter img.mk { filter: brightness(0) saturate(100%) invert(16%) sepia(63%) saturate(3200%) hue-rotate(221deg); }

@media (max-width: 900px) {
  .cc-two { grid-template-columns: 1fr; }
  .cc-swatches { grid-template-columns: repeat(2, 1fr); }
  .cc-ramp { grid-template-columns: repeat(3, 1fr) !important; }
  .cc-iconset { grid-template-columns: repeat(4, 1fr); }
  .cc-type-grid { grid-template-columns: 1fr; }
  .cc-lockups { grid-template-columns: 1fr; }
  .cc-deck { grid-template-columns: 1fr; }
  .cc-slide.wide { grid-column: auto; aspect-ratio: 16/9; }
  .cc-apps { grid-template-columns: repeat(2, 1fr); }
  .cc-app--card, .cc-app--report, .cc-app--social, .cc-app--letter, .cc-app--signal { grid-column: span 2; }
}

/* website browser mock */
.cc-browser { border: 1px solid var(--cc-hairline); border-radius: 14px; overflow: hidden; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5); }
.cc-browser-bar { display: flex; align-items: center; gap: 8px; padding: 13px 18px; background: #050f1f; border-bottom: 1px solid var(--cc-hairline); }
.cc-browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #22344f; display: inline-block; }
.cc-browser-bar .url { margin-left: 14px; font-size: 0.72rem; color: var(--cc-muted); background: #0c2345; padding: 5px 14px; border-radius: 100px; }
.cc-site { background: radial-gradient(130% 100% at 78% -10%, rgba(3,8,25,0.41) 0%, rgba(7,26,53,0.49) 55%, rgba(5,15,31,0.70) 100%), url('../assets/work/commcorde/web.png') center/cover no-repeat; padding: clamp(34px, 6vw, 84px); }
.cc-site-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(40px, 8vw, 90px); }
.cc-site-nav img { height: 26px; }
.cc-site-nav .links { display: flex; gap: 26px; color: #b9c6da; font-size: 0.82rem; }
.cc-site-nav .links span:last-child { color: var(--cc-bright); }
.cc-site-eyebrow { color: var(--cc-bright); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.cc-site-h { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: clamp(1.8rem, 4.6vw, 3.6rem); line-height: 1.08; letter-spacing: -0.02em; color: #fff; margin: 20px 0 0; max-width: 20ch; }
.cc-site-h em { font-style: normal; color: #2563EB; }
.cc-site-sub { color: #9fb3d0; max-width: 54ch; margin-top: 20px; line-height: 1.6; }
.cc-site-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.cc-btn { font-size: 0.82rem; font-weight: 600; padding: 13px 36px; border-radius: 30px; }
.cc-btn--pri { background-color: #123498; color: #fff; }
.cc-btn--ghost { border: 1px solid var(--cc-hairline); color: #cdd7e6; }
.cc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(36px, 7vw, 72px); }
.cc-chip { font-size: 0.74rem; font-weight: 500; color: #b9c6da; border: 1px solid var(--cc-hairline); border-radius: 100px; padding: 8px 15px; background: rgba(255, 255, 255, 0.02); }
@media (max-width: 720px) { .cc-site-nav .links { display: none; } }
