/* Design tokens taken from the "Career scrubber" mockup */
:root {
  --bg: #1D1D24;
  --card: #27272F;
  --card-2: #333340;
  --line: #454550;
  --dot-off: #5E5E68;
  --muted-2: #85858E;
  --muted: #ACACB5;
  --body: #E2E2E6;
  --fg: #F1F2F3;
  --accent: #5B97E6;
  --gold: #FDAE00;        /* major milestones (jobs) */
  --link: #95BDF1;
  --link-hover: #C9DDF9;
  --primary: #084AB5;
  --primary-hover: #135CC5;
  --shadow: rgba(16, 16, 18, 0.64);

  --f-display: 'Spectral', Georgia, serif;
  --f-body: 'Crimson Pro', Georgia, serif;
  --f-ui: Inter, system-ui, sans-serif;

  --wrap: 1040px;
  --gutter: 120px;
  --pad: 32px;          /* stage side padding */
  --bar-h: 140px;
  --side-w: 380px;
  --r-lg: 16px;
  --r-md: 10px;
  --r-sm: 8px;
}
@media (max-width: 1280px) { :root { --gutter: 64px; --pad: 24px; --side-w: 340px; } }
@media (max-width: 900px)  { :root { --bar-h: 140px; } }
@media (max-width: 720px)  { :root { --bar-h: 158px; } }
/* Tablets: names above the line need clear space below your name */
@media (max-width: 900px) and (min-width: 721px) { :root { --bar-h: 172px; } .bar .bar__timeline { margin-top: 22px; } }
@media (max-width: 720px)  { :root { --gutter: 16px; --pad: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 21px;
  line-height: 30px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: var(--link); }
a:hover { color: var(--link-hover); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: var(--r-sm); font-family: var(--f-ui); font-size: 14px; }
.skip:focus { left: 16px; }

/* Type */
.eyebrow, .meta, .sub, .tag, .label, .sublabel, .count { font-family: var(--f-ui); color: var(--muted); }
.eyebrow { margin: 0; font-size: 13px; line-height: 18px; letter-spacing: .08em; text-transform: uppercase; }
.meta { font-size: 13px; line-height: 18px; }
.label { margin: 0; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--fg); }
.sublabel { margin: 0 0 8px; font-size: 11px; line-height: 14px; letter-spacing: .1em; text-transform: uppercase; font-weight: 400; }
.count { font-size: 12px; line-height: 16px; font-variant-numeric: tabular-nums; }
.tag { font-size: 11px; line-height: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.h-display { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 40px; line-height: 46px; }
.h-card { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 24px; line-height: 30px; }
.prose { margin: 0; color: var(--body); max-width: 62ch; }
@media (max-width: 720px) {
  body { font-size: 19px; line-height: 28px; }
  .h-display { font-size: 32px; line-height: 38px; }
}

/* Buttons */
.step, .btn {
  font-family: var(--f-ui); font-size: 14px;
  min-height: 44px; padding: 0 18px;
  border-radius: var(--r-sm); border: 0; cursor: pointer;
  background: var(--card-2); color: var(--fg);
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; transition: background .15s;
}
.step:hover, .btn:hover { background: var(--line); color: var(--fg); }
.step:disabled { opacity: .35; cursor: default; background: var(--card-2); }
.step--icon { width: 36px; height: 28px; min-height: 28px; padding: 0; font-size: 15px; flex: none; } /* short, so end names can sit above */
.btn--primary { background: var(--primary); }
.btn--primary:hover { background: var(--primary-hover); }
.card { background: var(--card); border-radius: var(--r-lg); }

/* Avatar (photo circle; falls back to initials) */
.avatar {
  flex: none; border-radius: 50%; overflow: hidden;
  background: var(--card-2); color: var(--fg);
  display: grid; place-items: center; font-family: var(--f-display);
  box-shadow: 0 0 0 2px var(--line);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 48px; height: 48px; font-size: 18px; }
.avatar--lg { width: 96px; height: 96px; font-size: 34px; margin-bottom: 28px; }

/* ===== Fixed chrome ===== */
.contact-fab { position: fixed; top: 48px; right: var(--pad); z-index: 40; box-shadow: 0 6px 18px var(--shadow); }

.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: var(--bar-h);
  pointer-events: none;
}
.bar::before { /* background fades in separately from the contact button */
  content: ""; position: absolute; inset: 0;
  background: rgba(29, 29, 36, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  opacity: var(--bar-p, 0);
}
.bar__inner {
  position: relative; height: 100%;
  display: flex; align-items: center; gap: 32px;
  padding: 0 calc(var(--pad) + 140px) 0 var(--pad);
}
/* The timeline fades in; the brand (photo, name, title) is revealed when the intro's copies land on it */
.bar__timeline { opacity: var(--tl-p, 0); transform: translateY(calc((1 - var(--tl-p, 0)) * -16px)); }
.brand [data-morph-to] { opacity: 0; } /* revealed by script.js as the intro copies land */
.bar.is-live { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); flex: none; }
.brand:hover { color: var(--fg); }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-family: var(--f-display); font-size: 20px; line-height: 24px; }
.brand__role { font-family: var(--f-ui); font-size: 12px; line-height: 16px; color: var(--muted); }
.bar__timeline { flex: 1; display: flex; align-items: center; gap: 20px; min-width: 0; margin-top: 22px; } /* room above for names and tags */

/* Timeline track (in the bar) */
.track { position: relative; flex: 1; height: 66px; touch-action: none; cursor: pointer; }
.track__line, .track__fill { position: absolute; left: 0; top: 33px; height: 2px; }
.track__line { right: 0; background: var(--line); }
.track__fill { width: 0; background: var(--accent); }
.track__stops { position: absolute; inset: 0; pointer-events: none; }
.dot { position: absolute; border-radius: 50%; transition: background .15s, border-color .15s; }
/* Jobs: gold rings that fill in once reached */
.dot--major { top: 27px; width: 14px; height: 14px; margin-left: -7px; background: var(--bg); border: 2px solid rgba(253, 174, 0, .45); }
.dot--major.is-past { background: var(--gold); border-color: var(--gold); }
/* Key projects: small blue dots */
.dot--minor { top: 30px; width: 8px; height: 8px; margin-left: -4px; background: var(--dot-off); }
.dot--minor.is-past { background: var(--accent); }
.yr { position: absolute; top: 48px; width: 44px; margin-left: -22px; text-align: center; font-family: var(--f-ui); font-size: 11px; line-height: 14px; color: var(--muted-2); }
.yr.is-on { color: var(--fg); }
/* Milestone names above the dots: each gets one segment's width and wraps to two lines if needed */
.ms {
  position: absolute; bottom: calc(100% - 12px); /* width set per name in script.js */
  transform: translateX(-50%); text-align: center;
  font-family: var(--f-ui); font-size: 12px; line-height: 14px; color: var(--dot-off);
  transition: color .2s;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ms { color: var(--muted-2); }
.ms.is-on { color: var(--fg); }
.ms { transition: color .2s, opacity .2s; }
/* Key project names: a blue tag that pops up only while you're at that stop */
.ms.ms--minor {
  width: auto; display: block; white-space: nowrap; z-index: 4;
  bottom: calc(100% + 20px); padding: 2px 9px; border-radius: 999px; /* its own row, above the job names */
  background: var(--card-2); border: 1px solid var(--accent); color: var(--link);
  font-size: 11px; line-height: 15px;
  opacity: 0; transform: translate(-50%, 4px); transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.ms.ms--minor.is-on { opacity: 1; transform: translate(-50%, 0); }
.yr--minor { color: var(--link); opacity: 0; transition: opacity .2s; } /* key project years show only when reached */
.yr--minor.is-on { opacity: 1; }
.yr--minor:empty { display: none; }

.handle {
  position: absolute; left: 0; top: 16px;
  width: 36px; height: 36px; margin-left: -18px;
  border-radius: 50%; background: var(--fg);
  box-shadow: 0 6px 18px var(--shadow);
  display: flex; align-items: center; justify-content: center;
  z-index: 5; cursor: grab; touch-action: none; user-select: none;
}
.handle:active, .track.is-dragging .handle { cursor: grabbing; }

@media (max-width: 1240px) and (min-width: 901px) { .brand__role { display: none; } .bar__inner { gap: 24px; } }
@media (max-width: 900px) {
  .contact-fab { top: 14px; min-height: 40px; padding: 0 14px; font-size: 13px; }
  .bar__inner { padding-top: 10px; padding-bottom: 8px; }
  .bar__inner { flex-direction: column; align-items: stretch; justify-content: center; gap: 10px; padding: 12px var(--pad); }
  .brand { padding-right: 130px; min-height: 40px; }
  .avatar--sm { width: 40px; height: 40px; font-size: 15px; }
  .brand__name { font-size: 18px; }
  .bar__timeline { gap: 14px; margin-top: 0; }
  .ms.ms--minor { bottom: calc(100% - 14px); }
}
@media (max-width: 720px) {
  /* Give the line the full width so every job name fits */
  .bar__timeline .step--icon { display: none; }
  .bar__inner { gap: 18px; }
  .track { margin: 0 8px; }
  /* Too many stops for every name: show just the current one */
  .ms { font-size: 10px; line-height: 12px; opacity: 0; }
  .ms.is-on { opacity: 1; }
  .ms:not(.ms--minor) { width: max-content !important; max-width: 60vw; }
  .ms.ms--first { transform: translateX(-6px); text-align: left; }
  .ms.ms--last { transform: translateX(calc(-100% + 6px)); text-align: right; }
  .yr--minor { display: none; }
  .ms.ms--minor { font-size: 10px; line-height: 14px; }
}
@media (max-width: 480px) {
  .brand__role { display: none; }
  .yr { font-size: 10px; width: 32px; margin-left: -16px; }
}

/* ===== Story (scroll-driven) ===== */
.story { position: relative; } /* height is set in script.js */
.story__sticky { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; }

.intro {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 96px var(--gutter) 72px;
}
/* Everything except the photo, name and title fades up and away; those three fly to the header (script.js) */
.intro__fade {
  opacity: clamp(0, calc(1 - var(--intro-p, 0) * 1.8), 1);
  transform: translateY(calc(var(--intro-p, 0) * -56px));
}
.scroll-cue.intro__fade { transform: translate(-50%, calc(var(--intro-p, 0) * 24px)); }
.intro__role { margin: 0 0 28px; }
.morph { position: relative; z-index: 35; transform-origin: 0 0; will-change: transform, opacity; } /* above the header while flying */
.intro.is-gone { visibility: hidden; }
.intro__inner { width: min(var(--wrap), 100%); margin-inline: auto; }
.intro__name { margin: 0 0 14px; font-family: var(--f-display); font-weight: 400; font-size: clamp(56px, 9vw, 112px); line-height: 1; letter-spacing: -.01em; }
.intro__lede { margin: 0; font-size: clamp(22px, 2.3vw, 28px); line-height: 1.4; color: var(--fg); max-width: 34ch; }
.intro__profile { margin: 16px 0 0; color: var(--body); max-width: 62ch; }
.intro__meta { margin: 20px 0 0; font-family: var(--f-ui); font-size: 13px; color: var(--muted); }
.stats { display: flex; gap: 48px; margin: 32px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); }
.stats div { display: flex; flex-direction: column-reverse; gap: 4px; }
.stats dt { font-family: var(--f-ui); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 0; font-family: var(--f-display); font-size: 44px; line-height: 1; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: var(--f-ui); font-size: 12px; color: var(--muted);
}
.scroll-cue svg { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }
@media (max-width: 720px) {
  .intro { padding-top: 80px; padding-bottom: 88px; }
  .scroll-cue { bottom: 16px; }
  .avatar--lg { width: 72px; height: 72px; font-size: 26px; margin-bottom: 18px; }
  .intro__profile { font-size: 17px; line-height: 25px; }
  .stats { gap: 28px; margin-top: 24px; } .stats dd { font-size: 32px; }
}
@media (max-height: 760px) and (min-width: 721px) { .intro__profile { display: none; } }
@media (max-height: 640px) { .intro__profile, .scroll-cue { display: none; } .avatar--lg { display: none; } }

/* Stage = main window + sidebar */
.stage {
  position: absolute; inset: var(--bar-h) 0 0 0;
  display: grid; grid-template-columns: minmax(0, 1fr) var(--side-w); gap: 24px;
  padding: 24px var(--pad);
  opacity: var(--stage-p, 0);
  transform: translateY(calc((1 - var(--stage-p, 0)) * 40px));
  pointer-events: none;
}
.stage.is-live { pointer-events: auto; }
.main { display: flex; flex-direction: column; gap: 20px; min-height: 0; min-width: 0; }
.main__top { flex: 1; display: flex; gap: 32px; min-height: 0; }

.milestone {
  flex: 0 1 720px; align-self: flex-start; max-height: 100%; overflow: hidden;
  padding: 32px 36px; background: var(--card); border-radius: var(--r-lg);
  display: flex; flex-direction: column; gap: 10px;
  will-change: transform, opacity;
}
.milestone > .meta { color: var(--gold); }
.milestone > .meta::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-right: 8px; vertical-align: 1px; }
.milestone.is-minor > .meta { color: var(--link); }
.milestone__title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 34px; line-height: 40px; }
.milestone__body { margin: 0; font-size: 21px; line-height: 30px; color: var(--body); }
.projects { margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.projects__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 24px; }
.projects__list li { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 2px solid var(--accent); }
.projects__list strong { font-family: var(--f-display); font-weight: 400; font-size: 18px; line-height: 24px; color: var(--fg); }
.projects__list span { font-size: 17px; line-height: 23px; color: var(--muted); }
.milestone__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.bigyear { flex: 1; display: flex; align-items: flex-end; justify-content: flex-end; font-family: var(--f-display); font-size: 120px; line-height: 1; color: var(--fg); padding-bottom: 8px; }
@media (max-width: 1240px) { .bigyear { display: none; } }

.collections {
  flex: none; padding: 18px 20px; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
  opacity: var(--coll-p, 0);
  transform: translateY(calc((1 - var(--coll-p, 0)) * 28px));
}
.panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

/* Sidebar */
.sidebar {
  min-height: 0; overflow-y: auto; scroll-behavior: smooth; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 14px;
  padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.sidebar__head { display: none; }
.panel { background: var(--card); border-radius: var(--r-lg); padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.empty { margin: 0; font-size: 16px; line-height: 22px; color: var(--muted-2); font-style: italic; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; min-height: 0; }
.chips li {
  font-family: var(--f-ui); font-size: 11px; line-height: 14px; letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 6px; background: var(--card-2); color: var(--body);
  border: 1px solid transparent;
}
.chips li.chip--accent { background: transparent; border: 1px dashed var(--accent); padding: 0; }
.chips li.chip--accent a { display: block; padding: 4px 9px; color: var(--accent); text-decoration: none; }
.chips--hero li { font-size: 12px; line-height: 16px; padding: 7px 11px; }
.collections .empty { margin-top: -4px; }
.toolkit { display: flex; flex-direction: column; gap: 12px; }
.toolkit__group .chips:empty::before { content: "—"; font-family: var(--f-ui); font-size: 12px; color: var(--dot-off); }

/* Collecting animation */
.is-new { animation: collect .6s cubic-bezier(.2, .8, .2, 1) both; }
.is-leaving { animation: release .28s ease-in both; pointer-events: none; }
@keyframes collect {
  0%   { opacity: 0; transform: translateY(10px) scale(.85); border-color: var(--accent); }
  60%  { opacity: 1; transform: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 151, 230, .25); }
  100% { opacity: 1; transform: none; }
}
@keyframes release { to { opacity: 0; transform: translateY(6px) scale(.9); } }

/* Case study thumbnails: fixed slots that fill as you go */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.slot {
  position: relative; aspect-ratio: 452 / 260; border-radius: var(--r-md);
  border: 1px dashed var(--line); background: transparent; overflow: hidden;
  padding: 0; font: inherit; color: inherit; cursor: default;
  display: grid; place-items: center;
}
.slot__q { font-family: var(--f-display); font-size: 22px; color: var(--dot-off); }
.slot__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot__cap {
  position: absolute; inset: auto 0 0 0; padding: 18px 8px 6px; text-align: left;
  font-family: var(--f-ui); font-size: 11px; line-height: 14px; color: var(--fg);
  background: linear-gradient(transparent, rgba(16, 16, 18, .9));
}
.slot.is-filled { border: 1px solid var(--line); cursor: pointer; background: #101012; }
.slot.is-filled:hover { border-color: var(--accent); }
.slot.is-placeholder.is-filled { border: 1px dashed var(--accent); background: transparent; }
.slot.is-placeholder .slot__cap { background: none; color: var(--accent); position: static; padding: 0 8px; text-align: center; font-size: 12px; }

/* Mobile: sidebar becomes a drawer */
.drawer-toggle { display: none; }
@media (max-width: 900px) {
  .stage { grid-template-columns: minmax(0, 1fr); padding-top: 16px; padding-bottom: 84px; }
  .main { gap: 14px; }
  .milestone { flex: 1 1 auto; min-width: 0; padding: 22px 22px; }
  .milestone__title { font-size: 28px; line-height: 34px; }
  .milestone__body { font-size: 19px; line-height: 27px; }
  .projects__list { grid-template-columns: 1fr; gap: 10px; }
  .projects__list span { font-size: 16px; line-height: 21px; }
  .collections { padding: 14px; }
  .chips--hero { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .chips--hero li { flex: none; }

  .sidebar {
    position: fixed; z-index: 50; inset: auto 0 0 0; height: min(78vh, 640px);
    background: var(--bg); border-top: 1px solid var(--line); border-radius: 20px 20px 0 0;
    padding: 16px var(--pad) 24px; box-shadow: 0 -12px 40px var(--shadow);
    transform: translateY(105%); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  }
  .sidebar.is-open { transform: none; }
  .sidebar__head { display: flex; align-items: center; justify-content: space-between; }
  .sidebar__close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--card-2); color: var(--fg); font-size: 16px; cursor: pointer; }

  .drawer-toggle {
    position: fixed; z-index: 45; left: 50%; bottom: 16px; transform: translate(-50%, 20px);
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 48px; padding: 0 8px 0 20px; border-radius: 999px; border: 1px solid var(--line);
    background: var(--card); color: var(--fg); font-family: var(--f-ui); font-size: 14px; cursor: pointer;
    box-shadow: 0 8px 24px var(--shadow);
    opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
  }
  .drawer-toggle.is-live { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
  .drawer-toggle__n { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 999px; background: var(--primary); display: grid; place-items: center; font-variant-numeric: tabular-nums; }
  .drawer-toggle.is-pulse .drawer-toggle__n { animation: pulse .6s ease; }
  @keyframes pulse { 40% { transform: scale(1.25); background: var(--accent); } }
}

@media (prefers-reduced-motion: reduce) {
  .is-new, .is-leaving, .scroll-cue svg, .drawer-toggle.is-pulse .drawer-toggle__n { animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  .intro__fade, .stage, .collections, .bar__timeline { transform: none !important; }
  .scroll-cue.intro__fade { transform: translateX(-50%) !important; }
  .sidebar { transition: none; }
}

/* ===== After the timeline ===== */
.section { padding: 96px 0 0; }
.section__head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 40px; }
@media (max-width: 720px) { .section { padding-top: 72px; } .section__head { margin-bottom: 28px; } }

.approach { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.approach li { padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.approach__num { font-family: var(--f-display); font-size: 48px; line-height: 1; color: var(--accent); margin-bottom: 12px; }
.approach p { margin: 0; color: var(--body); font-size: 19px; line-height: 27px; }
@media (max-width: 900px) { .approach { grid-template-columns: 1fr; } }

.creds { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.creds__col { padding: 32px 36px; }
.timeline-list { margin: 20px 0 0; display: grid; gap: 18px; }
.timeline-list div { display: grid; grid-template-columns: 104px 1fr; gap: 16px; }
.timeline-list dt { font-family: var(--f-ui); font-size: 13px; line-height: 28px; color: var(--accent); }
.timeline-list dd { margin: 0; color: var(--body); font-size: 19px; line-height: 27px; }
.timeline-list strong { font-weight: 400; color: var(--fg); }
@media (max-width: 900px) { .creds { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .creds__col { padding: 24px; } .timeline-list div { grid-template-columns: 1fr; gap: 2px; } }

.contact { padding: 96px 0 64px; }
.contact__card { padding: 56px; display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--line); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
@media (max-width: 720px) { .contact { padding-top: 72px; } .contact__card { padding: 28px 24px; } .contact__actions .btn { flex: 1 1 100%; } }

.footer { display: flex; justify-content: space-between; gap: 16px; padding: 24px 0 48px; border-top: 1px solid var(--line); font-family: var(--f-ui); font-size: 13px; color: var(--muted); }

/* Case study viewer */
.viewer {
  width: min(720px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--card); color: var(--fg); overflow: hidden;
}
.viewer::backdrop { background: rgba(16, 16, 18, .8); backdrop-filter: blur(4px); }
.viewer[open] { animation: viewerIn .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes viewerIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.viewer__shot { background: #101012; aspect-ratio: 452 / 260; }
.viewer__shot img { width: 100%; height: 100%; object-fit: contain; }
.viewer__shot:empty { display: none; }
.viewer__body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 8px; }
.viewer__body p { margin: 0; color: var(--body); }
.viewer__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(16, 16, 18, .7); color: var(--fg); font-size: 16px; cursor: pointer; }
