/* ==========================================================================
   Madhu — Portfolio
   Built 1:1 from Figma "p (1)" / Page 3 (frames at 1366 × 768)
   ========================================================================== */

/* Gilroy is a commercial font. It is used when installed locally;
   otherwise Figtree (closest free match) is used. To self-host your
   licensed copy, add the woff2 files to assets/fonts/ and append
   , url("assets/fonts/Gilroy-Medium.woff2") format("woff2")
   (and the SemiBold equivalent) to the src lines below. */
@font-face {
  font-family: "Gilroy";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: local("Gilroy-Medium"), local("Gilroy Medium");
}
@font-face {
  font-family: "Gilroy";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: local("Gilroy-SemiBold"), local("Gilroy SemiBold");
}

:root {
  --page: #f4f3ef;
  --card: #ffffff;
  --ink: #000000;
  --ink-2: #2a2a2a;
  --muted: #828282;
  --muted-2: #9a9a90;
  --band-ink: #545454;
  --lime: #d8ff8b;
  --chip: #edede9;
  --tile: #cfd2dd;
  --media: rgba(214, 214, 214, 0.4);
  --soft: rgba(214, 214, 214, 0.16);
  --footer: #2a2a2a;

  --sans: "Gilroy", "Figtree", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --card-top: 130px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--page);
  color: var(--ink);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Frame fill: #F4F3EF + dotted texture, fixed behind the scrolling card */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--page) url("assets/bg-dots.png") center / cover no-repeat;
  pointer-events: none;
}

h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; }
img { display: block; }
a { color: inherit; text-decoration: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Views (prototype screens) ---------- */
.view { display: none; padding: var(--card-top) 16px var(--card-top); }
.view.is-active { display: block; }
.view.is-entering { animation: view-in 520ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.view.is-leaving { display: block; animation: view-out 220ms ease-in both; }

@keyframes view-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes view-out {
  from { opacity: 1; }
  to   { opacity: 0; transform: translateY(-8px); }
}

/* ---------- Card ---------- */
.card {
  position: relative;
  margin: 0 auto;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
}
.card--home { width: 816px; }
.card--case { width: 814px; padding-bottom: 43px; }
.card--live-call   { min-height: 3177px; }
.card--content-deal { min-height: 3452px; }
.card--agentic     { min-height: 3080px; }

.card__date {
  position: absolute;
  top: 32px;
  left: calc(100% - 135px);
  font: 400 12px/normal var(--mono);
  white-space: nowrap;
}

/* ---------- Shared type ---------- */
.body-14 { font: 400 14px/24px var(--mono); color: var(--muted); }
.body-12 { font: 400 12px/22px var(--mono); color: var(--muted); }
.mono-12 { font: 400 12px/normal var(--mono); white-space: nowrap; }

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 20px/30px var(--sans);
  white-space: nowrap;
}
.section-title img { width: 26px; height: 26px; flex: none; }

.item-title { font: 600 16px/30px var(--sans); white-space: nowrap; }
.sub-title  { font: 500 16px/30px var(--sans); white-space: nowrap; }

.tag {
  display: flex;
  align-items: center;
  padding: 2px 1px;
  background: var(--lime);
  font: 400 12px/normal var(--mono);
  color: var(--ink);
  white-space: nowrap;
}
.tag--grey { background: var(--chip); }
.tag--center { justify-content: center; }

.dash { position: relative; width: 100%; height: 0; flex: none; }
.dash img { position: absolute; left: 0; top: -2px; width: 718px; height: 2px; max-width: none; }

/* ==========================================================================
   HOME
   ========================================================================== */
.intro { position: relative; margin-top: 80px; height: 342.479px; }

.intro__text {
  position: absolute;
  left: 48.8px;
  top: 16px;
  width: 422px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.intro__title {
  height: 55px;
  font: 500 20px/30px var(--sans);
  color: var(--ink-2);
}
.intro__lede { font: 400 14px/24px var(--mono); color: var(--muted); }

/* image 2 — the exported asset already has Figma's crop + image
   adjustments baked in, so it fills the frame exactly as in Figma */
.intro__portrait {
  position: absolute;
  left: 563.8px;
  top: 0;
  width: 203px;
  height: 233px;
  border-radius: 8px;
  overflow: hidden;
}
.intro__portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}

/* Skills ticker — tilted lime band */
.skills {
  position: absolute;
  left: 50%;
  top: 288px;
  width: 815.519px;
  height: 54.479px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.skills__band {
  position: relative;
  flex: none;
  width: 814.911px;
  height: 36px;
  overflow: hidden;
  background: var(--lime);
  transform: rotate(-1.3deg);
}
.skills__track {
  position: absolute;
  left: -2.73px;
  top: 10.07px;
  display: flex;
  width: max-content;
  animation: marquee var(--marquee-duration, 40s) linear infinite;
}
.skills__band:hover .skills__track { animation-play-state: paused; }
.skills__seq {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  list-style: none;
}
.skills__seq li {
  flex: none;
  font: 400 12px/normal var(--mono);
  color: var(--band-ink);
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* band separator glyph */
.skills__seq li.glyph {
  width: 11.377px;
  height: 11.377px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.glyph__inner { position: relative; flex: none; width: 11px; height: 11px; transform: rotate(2deg); }
.glyph__sq { position: absolute; width: 6px; height: 6px; border-radius: 1px; background: var(--band-ink); }
.glyph__sq--a { left: 0; top: 0; }
.glyph__sq--b { left: 5px; top: 5px; }
.glyph__bar {
  position: absolute;
  left: 3.88px;
  top: 3.88px;
  width: 4.243px;
  height: 4.243px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.glyph__bar::before {
  content: "";
  flex: none;
  width: 4px;
  height: 2px;
  background: var(--band-ink);
  transform: rotate(45deg);
}

/* Main column */
.home-main {
  margin-top: 100.521px; /* column sits at y = 523 */
  padding: 0 49px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 54px;
}
.home-main > * { width: 100%; }

.featured { display: flex; flex-direction: column; gap: 32px; }
.work-list { display: flex; flex-direction: column; gap: 64px; }

.work { display: flex; flex-direction: column; gap: 32px; cursor: pointer; }
.work:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 6px; }

.work__media {
  position: relative;
  width: 100%;
  aspect-ratio: 718 / 378;
  border-radius: 6px;
  overflow: hidden;
  background: var(--media);
}
.work__media img { position: absolute; max-width: none; }
.work__media--cover img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work__media--crop img { left: -12.8%; top: -45.65%; width: 125.58%; height: 178.9%; }
.work__text { display: flex; flex-direction: column; gap: 8px; }

/* About */
.about { display: flex; flex-direction: column; gap: 40px; }
.story { display: flex; flex-direction: column; gap: 8px; }
.timeline { display: flex; flex-direction: column; gap: 16px; }
.timeline__scroll { display: flex; flex-direction: column; gap: 12px; }
.timeline__ruler { display: flex; align-items: flex-start; gap: 10px; }
.timeline__ruler span { flex: none; height: 24px; }
.timeline__ruler span:nth-child(1) { width: 180px; }
.timeline__ruler span:nth-child(2),
.timeline__ruler span:nth-child(3) { width: 170px; }
.timeline__ruler span:nth-child(4) { width: 160px; height: 16px; }
.timeline__ruler img { max-width: none; }

.timeline__stops { position: relative; width: 658px; height: 72px; }
.stop {
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.stop:nth-child(1) { left: 0;     width: 110px; }
.stop:nth-child(2) { left: 180px; width: 103px; }
.stop:nth-child(3) { left: 360px; width: 89px; }
.stop:nth-child(4) { left: 540px; width: 118px; }
.stop .mono-12 { width: 100%; }
.stop .tag { width: 100%; justify-content: center; }
.stop__year--past { color: var(--muted-2); }

.logo { position: relative; flex: none; overflow: hidden; }
.logo img { position: absolute; max-width: none; }
.logo--2022 { width: 28px; height: 13px; }
.logo--2022 img { left: 0; top: -53.65%; width: 100%; height: 211.54%; }
.logo--aspira { width: 51px; height: 14px; }
.logo--aspira img { left: -7.13%; top: -49.47%; width: 111.99%; height: 190.61%; }
.logo--2024 { width: 44px; height: 14px; }
.logo--2024 img { inset: 0; width: 100%; height: 100%; } /* pre-cropped asset */
.logo--paperflite { width: 73px; height: 16px; }
.logo--paperflite img { left: -5.24%; top: -198.33%; width: 110.29%; height: 500%; }

/* Outside of work */
.outside { display: flex; flex-direction: column; gap: 32px; }
.outside__grid { display: flex; gap: 10px; padding: 10px; }
.outside__tile {
  position: relative;
  flex: 1 0 0;
  min-width: 1px;
  height: 201px;
  overflow: hidden;
  background: var(--tile);
}
.outside__tile .sub-title { position: absolute; left: 16px; top: 16px; }

/* Footer — Connect */
.connect {
  position: relative;
  width: 816px !important;
  height: 230px;
  margin: 0 -49px;
  flex: none;
  background: var(--lime);
  color: #fff;
}
.connect__panel { position: relative; height: 210px; background: var(--footer); }
.connect__thanks {
  position: absolute;
  left: 47px;
  bottom: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
  font: 500 12px/normal var(--sans);
  color: var(--ink-2);
}
.connect__thanks img { width: 12px; height: 12px; transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1); }
.connect__thanks:hover img { transform: rotate(180deg); }
.connect__title {
  position: absolute;
  left: 48px;
  top: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  font: 500 20px/30px var(--sans);
  color: #fff;
}
.connect__title img { width: 26px; height: 26px; }
.connect__row {
  position: absolute;
  left: 48px;
  top: 92px;
  width: 718px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.connect__col { display: flex; flex-direction: column; justify-content: flex-end; }
.connect__label { font: 500 16px/30px var(--sans); color: var(--muted); white-space: nowrap; }
.connect__links { display: flex; flex-direction: column; gap: 4px; }
.connect__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 400 14px/24px var(--mono);
  color: #fff;
  white-space: nowrap;
}
.connect__link .arrow {
  width: 20px;
  height: 20px;
  flex: none;
  transform: rotate(-90deg);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}
.connect__link:hover .arrow,
.connect__link:focus-visible .arrow { transform: rotate(-90deg) translate(2px, 2px); }
.connect__link span {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
.connect__link:hover span,
.connect__link:focus-visible span { background-size: 100% 1px; }
.connect__link:focus-visible { outline: 1px solid #fff; outline-offset: 2px; }

/* ==========================================================================
   INTERACTION LAYER
   ========================================================================== */

/* ---------- Custom cursor (fine pointers only) ---------- */
.has-cursor,
.has-cursor * { cursor: none !important; }

.cursor-dot,
.cursor-pill {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  pointer-events: none;
  will-change: transform;
  display: none;
}
.has-cursor .cursor-dot,
.has-cursor .cursor-pill { display: block; }

/* white dot + difference blend = reads dark on paper, light on images/footer */
.cursor-dot { mix-blend-mode: difference; }
.cursor-dot i {
  display: block;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: #fff;
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1), opacity 200ms ease;
}
.cursor--link .cursor-dot i  { transform: scale(2.5); }
.cursor--media .cursor-dot i { transform: scale(0); }
.cursor--down .cursor-dot i  { transform: scale(0.6); }
.cursor--down.cursor--link .cursor-dot i { transform: scale(2); }
.cursor--hidden .cursor-dot i { opacity: 0; }

/* solid core keeps the cursor visible over mid-grey photos */
.cursor-core {
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #000;
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1), opacity 200ms ease;
}
.cursor--link .cursor-core,
.cursor--media .cursor-core { transform: scale(0); }
.cursor--hidden .cursor-core { opacity: 0; }

/* "Read more" pill from the Figma, now the cursor's project state */
.cursor-pill__inner {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 32px;
  padding: 0 6px 0 12px;
  border: 1px solid #fff;
  border-radius: 30px;
  background: #000;
  white-space: nowrap;
  transform: translate(-50%, -50%) scale(0.3);
  opacity: 0;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
}
.cursor--media .cursor-pill__inner { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.cursor--media.cursor--down .cursor-pill__inner { transform: translate(-50%, -50%) scale(0.92); }
.cursor-pill__inner span {
  display: block;
  font: 400 12px/normal var(--mono);
  color: #fff;
  transform: rotate(-1.3deg);
}
.cursor-pill__inner img { width: 20px; height: 20px; transform: rotate(-90deg); }

/* ---------- Background: soft lime glow that trails the cursor ---------- */
.bg-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
  width: 1040px;
  height: 1040px;
  margin: -520px 0 0 -520px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(50vw, 30vh, 0);
  will-change: transform;
  transition: opacity 600ms ease;
  background: radial-gradient(circle closest-side,
              rgba(216, 255, 139, 0.34), rgba(216, 255, 139, 0.12) 55%, rgba(216, 255, 139, 0));
}
.has-cursor .bg-glow { opacity: 1; }

/* ---------- Top nav ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 48px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
              background-color 300ms ease, box-shadow 300ms ease;
}
.site-nav > * { pointer-events: auto; }
.nav-scrolled .site-nav {
  pointer-events: auto;
  background-color: rgba(244, 243, 239, 0.74);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}
.nav-hidden .site-nav { transform: translateY(-100%); }
.site-nav__logo { display: inline-flex; padding: 6px; margin-left: -6px; border-radius: 50%; }
.site-nav__logo img { width: 26px; height: 26px; transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1); }
.site-nav__logo:hover img { transform: rotate(90deg); }
.site-nav__links { display: flex; gap: 36px; }

/* text roll on hover */
.roll {
  display: inline-block;
  height: 20px;
  overflow: hidden;
  font: 500 14px/20px var(--sans);
  color: var(--ink);
  white-space: nowrap;
}
.roll span { display: block; transition: transform 460ms cubic-bezier(0.22, 1, 0.36, 1); }
.roll span::after { content: attr(data-text); display: block; }
.roll:hover span,
.roll:focus-visible span { transform: translateY(-20px); }
.site-nav a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* ---------- Greeting ---------- */
.greeting {
  height: 44px;
  font: 600 36px/44px var(--sans);
  color: var(--ink-2);
  white-space: nowrap;
}
.greeting__word { display: inline-block; }
.greeting__word.is-out { animation: word-out 420ms cubic-bezier(0.55, 0, 0.75, 0) both; }
.greeting__word.is-in  { animation: word-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes word-out { to { opacity: 0; filter: blur(8px); transform: translateY(-10px); } }
@keyframes word-in  { from { opacity: 0; filter: blur(10px); transform: translateY(10px); } }

/* ---------- Scroll reveal (uses translate/scale so layout transforms stay intact) ---------- */
.js-reveal .reveal {
  opacity: 0;
  translate: 0 24px;
  filter: blur(6px);
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
              translate 900ms cubic-bezier(0.22, 1, 0.36, 1),
              filter 900ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.js-reveal .reveal.is-in { opacity: 1; translate: 0 0; filter: none; }

/* section stars spin into place */
.js-reveal .section-title.reveal img { rotate: -90deg; transition: rotate 1000ms cubic-bezier(0.22, 1, 0.36, 1) 120ms; }
.js-reveal .section-title.reveal.is-in img { rotate: 0deg; }

/* images settle from a slight zoom */
.js-reveal .reveal-media img { scale: 1.08; transition: scale 1400ms cubic-bezier(0.22, 1, 0.36, 1); }
.js-reveal .reveal-media.is-in img { scale: 1; }

/* ---------- Hover details ---------- */
@media (hover: hover) and (pointer: fine) {
  .work__media img { transition: scale 1100ms cubic-bezier(0.22, 1, 0.36, 1); }
  .js-reveal .work:hover .work__media.is-in img,
  .work:hover .work__media img { scale: 1.035; }
  .work:hover .item-title { translate: 6px 0; }
  .item-title { transition: translate 500ms cubic-bezier(0.22, 1, 0.36, 1); }

  .stop .tag,
  .meta .tag,
  .decision .tag { transition: transform 360ms cubic-bezier(0.34, 1.56, 0.64, 1); }
  .stop:hover .tag,
  .meta__col:hover .tag,
  .decision:hover .tag { transform: rotate(-2deg) scale(1.05); }

  .outside__tile { transition: background-color 400ms ease; }
  .outside__tile .sub-title { transition: translate 500ms cubic-bezier(0.22, 1, 0.36, 1); }
  .outside__tile:hover { background-color: #c4c8d6; }
  .outside__tile:hover .sub-title { translate: 6px 0; }

  .section-title img { transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1); }
  .section-title:hover img { transform: rotate(90deg); }
}

.magnetic { transition: translate 400ms cubic-bezier(0.22, 1, 0.36, 1); }

/* ==========================================================================
   CASE STUDIES
   ========================================================================== */
/* Back link — sits in the top gap so the card still starts at y = 130 */
.case-nav { width: 814px; max-width: 100%; margin: -56px auto 24px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 32px;
  padding: 0 14px 0 8px;
  border: 1px solid #fff;
  border-radius: 30px;
  background: #000;
  color: #fff;
  font: 400 12px/normal var(--mono);
  white-space: nowrap;
}
.back-link span { display: block; transform: rotate(-1.3deg); }
.back-link__arrow {
  width: 20px;
  height: 20px;
  flex: none;
  transform: rotate(135deg); /* ↘ asset turned to point left */
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}
.back-link:hover .back-link__arrow,
.back-link:focus-visible .back-link__arrow { transform: translateX(-3px) rotate(135deg); }
.back-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.case-head { position: relative; height: 568px; }

.case-title {
  position: absolute;
  left: 48px;
  top: 40px;
  font: 600 24px/30px var(--sans);
  white-space: nowrap;
}
.case-title .slash { font-size: 16px; }
.case-title .org { font-size: 16px; font-weight: 500; }

.case-hero {
  position: absolute;
  left: 48px;
  top: 96px;
  width: 483px;
  height: 270px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--media);
}
.case-hero img { position: absolute; max-width: none; }
.case-hero--over img { left: 0; width: 483px; height: 272px; object-fit: cover; }
.case-hero--live-call img { top: -1px; }
.case-hero--agentic img { top: 0; }
.case-hero--contain img { inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }

.overview {
  position: absolute;
  left: 563px;
  top: 96px;
  width: 202px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.overview .section-title img { width: 20px; height: 20px; }
.overview--wide p { width: 211px; white-space: pre-wrap; }

.meta { position: absolute; left: 48px; }
.meta--flex { display: flex; align-items: center; gap: 68px; }
.meta--grid { width: 658px; height: 72px; }
.meta--live-call { top: 424px; }
.meta--content-deal, .meta--agentic { top: 406px; }
.meta__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.meta__label--users { color: var(--muted-2); }
.meta--grid .meta__col { position: absolute; top: 0; }
.meta--grid .meta__col:nth-child(1) { left: 0;     width: 110px; }
.meta--grid .meta__col:nth-child(2) { left: 180px; width: 103px; }
.meta--grid .meta__col:nth-child(3) { left: 360px; width: 89px; }
.meta--grid .meta__col:nth-child(4) { left: 540px; width: 118px; }
.w-full { width: 100%; }

.case-body {
  padding: 0 48px;
  display: flex;
  flex-direction: column;
  gap: 84px;
}
.case-section { display: flex; flex-direction: column; gap: 32px; }
.case-section .section-title span { width: 194px; }

/* soft grey note boxes */
.note {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--soft);
  padding-top: 24px;
  font: italic 200 14px/24px var(--mono);
  color: var(--ink);
}
.note strong { font-weight: 500; font-style: italic; }
.note ul { list-style: disc outside; }
.note li { margin-left: 21px; line-height: 28px; }
.note--features { width: 718px; height: 216px; padding-left: 24px; }
.note--features ul { width: 674px; }
.note--para { width: 718px; height: 216px; padding-left: 25px; }
.note--para p { width: 668px; }
.note--role { flex: none; width: 420px; padding-left: 20px; }
.note--role-cdm { height: 188px; }
.note--role-cdm ul { width: 384px; } /* Figma keeps the last bullet on one line */
.note--role-agentic { height: 215px; }
.note--role-agentic ul { width: 400px; }

.role-row { display: flex; align-items: flex-start; justify-content: space-between; }
.role-row > p { width: 276px; }

/* Key design decisions */
.decisions { position: relative; height: 318px; }
.decisions__heading { height: 30px; }
.decisions__row {
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  gap: 26.5px;
}
.decisions--live-call .decisions__row { top: 50px; }
.decisions--agentic .decisions__row { top: 62px; }
.decision {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  height: 268px;
}
.decision__num { font: 400 20px/24px var(--mono); white-space: nowrap; }
.decision__group { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.decision__text { width: 204px; font: 400 12px/20px var(--mono); color: var(--ink); }
.decision__foot {
  width: 204px;
  height: 54px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  font: 400 12px/20px var(--mono);
}
.vline {
  flex: none;
  width: 0;
  height: 189px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vline span { position: relative; flex: none; width: 189px; height: 0; transform: rotate(90deg); }
.vline img { position: absolute; left: 0; top: -1px; width: 189px; height: 1px; max-width: none; }

/* Outcomes */
.outcomes { display: flex; flex-direction: column; gap: 64px; }
.outcome { display: flex; flex-direction: column; gap: 32px; }
.outcome__text { display: flex; flex-direction: column; gap: 8px; }
.text-ink { color: var(--ink) !important; }

.shot { position: relative; width: 718px; overflow: hidden; flex: none; }
.shot img { position: absolute; max-width: none; }
.shot--378 { aspect-ratio: 718 / 378; }
.shot--144 { aspect-ratio: 718 / 144; }
.shot--287 { aspect-ratio: 718 / 287; }
.shot--cover img { inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* per-image crops copied from Figma image transforms */
.crop-lca-meeting   img { left: -0.42%; top: -13.89%; width: 105.99%; height: 134.22%; }
.crop-cdm-gov-1     img { left: -4.87%; top: -4.06%;  width: 105.57%; height: 112.74%; }
.crop-cdm-gov-2     img { left: -4.82%; top: -52.82%; width: 106.49%; height: 284.8%; }
.crop-cdm-deal-1    img { left: 0.01%;  top: 0.01%;   width: 100%;    height: 106.79%; }
.crop-cdm-deal-2    img { left: 0;      top: -40.49%; width: 100%;    height: 140.65%; }
.crop-agu-insights  img { left: 3.17%;  top: 0.01%;   width: 93.75%;  height: 100.12%; }
.crop-agu-planning  img { left: 0;      top: 3.8%;    width: 100%;    height: 88.38%; }
.crop-agu-compose   img { left: 3.12%;  top: -0.12%;  width: 93.76%;  height: 100.12%; }

/* ==========================================================================
   Responsive — below the 816px design width the absolute layouts restack.
   ========================================================================== */
@media (max-width: 860px) {
  :root { --card-top: 64px; }
  .view { padding-bottom: 32px; }

  .site-nav {
    padding: 0 16px;
    background: rgba(244, 243, 239, 0.78);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .site-nav__links { gap: 20px; }
  .roll { font-size: 13px; }
  .greeting { font-size: 30px; }

  .card--home,
  .card--case { width: 100%; min-height: 0; }

  .card__date { left: auto; right: 20px; top: 20px; }

  /* home intro */
  .intro { height: auto; margin-top: 56px; padding: 0 20px; display: flex; flex-direction: column; gap: 24px; }
  .intro__text, .intro__portrait, .skills { position: static; }
  .intro__text { width: auto; order: 2; }
  .intro__title { height: auto; }
  .intro__portrait { order: 1; position: relative; inset: auto; width: 100%; max-width: 320px; height: auto; aspect-ratio: 203 / 233; }
  .skills { order: 3; transform: none; width: auto; margin: 8px -20px 0; }
  .skills__band { width: 102%; }

  .home-main { margin-top: 64px; padding: 0 20px; gap: 48px; }
  .work-list { gap: 48px; }
  .item-title { white-space: normal; }
  .dash { overflow: hidden; }

  .timeline__scroll { overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .timeline__ruler, .timeline__stops { min-width: 700px; }

  .outside__grid { padding: 0; }
  .outside__tile { height: 160px; }

  .connect { width: auto !important; height: auto; margin: 0 -20px; align-self: stretch; }
  .connect__panel { height: auto; padding: 28px 20px 32px; }
  .connect__thanks { position: static; padding: 3px 20px; }
  .connect__title, .connect__row { position: static; }
  .connect__row { width: auto; margin-top: 24px; flex-direction: column; gap: 20px; }

  /* case studies */
  .case-nav { width: 100%; margin: 0 0 12px; }
  .case-head { height: auto; padding: 56px 20px 48px; display: flex; flex-direction: column; gap: 24px; }
  .case-title, .case-hero, .overview, .meta { position: static; }
  .case-title { white-space: normal; }
  .case-hero { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 483 / 270; }
  .case-hero--over img { width: 100%; height: calc(100% + 2px); }
  .overview, .overview--wide p { width: auto; }
  .meta--flex, .meta--grid { width: auto; height: auto; display: flex; flex-wrap: wrap; gap: 20px 32px; }
  .meta--grid .meta__col { position: static; width: auto !important; }
  .meta--grid .meta__col .w-full { width: auto; }

  .case-body { padding: 0 20px; gap: 56px; }
  .case-section .section-title span { width: auto; }
  .note { height: auto !important; width: 100% !important; padding: 20px 20px 20px 20px; }
  .note ul, .note p { width: auto !important; }
  .role-row { flex-direction: column; gap: 20px; }
  .role-row > p { width: auto; }

  .decisions { height: auto; }
  .decisions__row { position: static; margin-top: 20px; flex-direction: column; align-items: stretch; gap: 28px; }
  .decision { height: auto; }
  .decision__text, .decision__foot { width: auto; }
  .decision__foot { height: auto; margin-top: 8px; }
  .vline { display: none; }

  .shot { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .skills__track { animation: none; }
  .view.is-entering, .view.is-leaving { animation: none; }
  .cursor-pill__inner, .cursor-dot i, .back-link__arrow, .roll span, .magnetic { transition: none; }
  .greeting__word.is-in, .greeting__word.is-out { animation: none; }
}
