/* ── Reset ───────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Albert Sans', system-ui, sans-serif;
  background: #fff;
  color: #00354c;
  overflow-x: hidden;
}

/* ── Animation overlay ───────────────────── */
#animScreen {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #fff; z-index: 500;
  transition: opacity 0.7s ease;
}
#animScreen.out { opacity: 0; pointer-events: none; }

.hero-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500; font-style: normal;
  font-size: clamp(32px, 6.5vw, 96px);
  letter-spacing: -0.02em; line-height: 1;
  color: #00354c; white-space: nowrap;
  display: flex; align-items: center;
}
.ch       { display: inline-block; }
.ch-s     { display: inline-block; }
.ch-space { display: inline-block; width: 0.5em; }

.cursor {
  display: inline-block;
  width: max(2px, 0.03em); height: 0.82em;
  background: #00354c; margin-left: 2px;
  vertical-align: baseline; position: relative; top: 0.05em;
  flex-shrink: 0; animation: blink 0.75s step-end infinite;
  transition: opacity 0.3s ease;
}
.cursor.off { opacity: 0; animation: none; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Main page ───────────────────────────── */
#mainPage { opacity: 0; transition: opacity 0.7s ease; }
#mainPage.show { opacity: 1; }

/* ── Page wrapper (1512px reference width) ── */
.page {
  width: 100%;
  max-width: 1512px;
  margin: 0 auto;
  position: relative;
}

/* ── NAV PILL ────────────────────────────────
   Figma: left 583px / width 364px / top 40px
   bg #eae8e8 / rounded 6px / px 8px
─────────────────────────────────────────── */
.nav-wrap {
  display: flex;
  justify-content: center;
  padding: 40px 0 0;
}
nav.pill {
  display: flex; align-items: center;
  background: #eae8e8;
  border-radius: 6px;         /* Figma: 6px */
  padding: 0;
}
nav.pill .nav-item {
  font-family: 'Fira Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #9a9a9a;
  padding: 5px 10px;
  border-radius: 9px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  transition: color 0.12s ease, background 0.12s ease, border-color 0.12s ease;
  white-space: nowrap;
  position: relative;
  overflow: visible;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
nav.pill .nav-item .nav-fill {
  display: none;
}
nav.pill .nav-item .nav-label {
  position: relative;
  z-index: 1;
}
nav.pill .nav-item.active {
  background: #cbefff;
  color: #00354c;
  border-color: rgba(130, 178, 208, 0.55);
}
nav.pill .nav-item:not(.active):hover { color: #00354c; }

/* Anchor jump to footer (Contact) */
#site-footer {
  scroll-margin-top: 28px;
}

/* ── SCROLL HINT ─────────────────────────── */
.scroll-hint {
  font-family: 'Fira Mono', monospace;
  font-size: 11px; letter-spacing: 0.1em;
  color: #9a9a9a; text-align: center;
  padding: 14px 0 20px;
}

/* ── HERO CARD ───────────────────────────────
   Figma: left 65px / top 98px / w 1392 / h 523
   bg #00354c / rounded 24px / overflow hidden
   pb 89px, pt 60px, px 48px, gap 16px
─────────────────────────────────────────── */
.hero-section { padding: 0 65px; }

.hero-card {
  background: #00354c;
  border-radius: 24px;
  overflow: hidden;
  min-height: 523px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px;
  padding: 60px 48px 89px;
  text-align: center;
}

/* SS logo — pixel-exact from Figma node 65:40
   Circle: left 0, top 6px, size 82.82px
   Back S wrapper: left 47.81px, top 29px, w 38.974px, h 27px — S rotated 90deg inside
   Front S: left 22px, top 0, upright navy */
.ss-logo {
  position: relative;
  width: 82.82px;
  height: 88.82px;  /* circle height + 6px top offset */
  flex-shrink: 0;
  overflow: hidden;
}
.ss-logo .logo-circle {
  position: absolute;
  left: 0; top: 6px;
  width: 82.82px; height: 82.82px;
  border-radius: 50%;
  background: #ecf6fa;
}
/* Back S: wrapper at Figma coords, S rotated 90deg inside */
.ss-logo .s-back-wrap {
  position: absolute;
  left: 47.81px; top: 29px;
  width: 38.974px; height: 27px;
  display: flex; align-items: center; justify-content: center;
  overflow: visible;
}
.ss-logo .s-back {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500; font-style: normal;
  font-size: 64.71px; line-height: normal;
  color: #7fd0f3;
  display: block;
  transform: rotate(90deg);
  white-space: nowrap;
}
/* Front S: left 22px, top 0, upright navy */
.ss-logo .s-front {
  position: absolute;
  left: 22px; top: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500; font-style: normal;
  font-size: 64.71px; line-height: normal;
  color: #00354c;
  white-space: nowrap;
}

/* PNG logo (homepage hero, about top link; intro animation still targets .ss-logo on index) */
.ss-logo--hero,
.ss-logo--about {
  width: auto;
  height: auto;
  overflow: visible;
}
.ss-logo--hero .hero-logo-img,
.ss-logo--about .hero-logo-img {
  display: block;
  height: 89px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
}

.hero-name-static {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500; font-style: normal;
  font-size: 72px; letter-spacing: -0.025em;
  color: #fff; white-space: nowrap;
}
/* Figma: subtitle #79a4b7 (muted blue-grey), 16px, tracking 2.56px */
.hero-sub {
  font-family: 'Fira Mono', monospace;
  font-size: 16px; letter-spacing: 0.16em;
  text-transform: uppercase; color: #79a4b7;
}
/* Figma: tagline #caeefe, 16px, tracking 2.24px */
.hero-tagline {
  font-family: 'Fira Mono', monospace;
  font-size: 16px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #caeefe;
}

/* ── CASE STUDIES ────────────────────────────
   Figma: divider at y=679, label at y=667
   Cards start y=707, 688×430, gap 16px
─────────────────────────────────────────── */
.cases-section {
  padding: 28px 59px 0;
}
.cases-header {
  display: flex; justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid #caeefe;
  padding-bottom: 0; margin-bottom: 20px;
}
.cases-label, .cases-count {
  font-family: 'Fira Mono', monospace;
  font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #9a9a9a;
  padding-bottom: 8px;
}

.cards-grid {
  display: grid;
  grid-template-columns: 688fr 688fr;
  gap: 16px;
}

/* Base card */
.card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: #00354c;
  height: 430px;
  display: block;
  transition: transform 0.4s cubic-bezier(.25,.46,.45,.94),
              box-shadow 0.4s ease;
}
.card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 24px 56px rgba(0,53,76,.14);
}

/* Homepage case-study preview image (full bleed) */
.card-cover-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.card-cover-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-sky .card-cover-wrap::after {
  background: linear-gradient(
    to top,
    #caeefe 0%,
    rgba(202, 238, 254, 0.94) 32%,
    rgba(202, 238, 254, 0) 68%
  );
}
.card-mist .card-cover-wrap::after {
  background: linear-gradient(
    to top,
    #ecf6fa 0%,
    rgba(236, 246, 250, 0.94) 32%,
    rgba(236, 246, 250, 0) 68%
  );
}
.card-blue .card-cover-wrap::after {
  background: linear-gradient(
    to top,
    #7fd0f3 0%,
    rgba(127, 208, 243, 0.94) 32%,
    rgba(127, 208, 243, 0) 68%
  );
}
.card-navy .card-cover-wrap::after {
  background: linear-gradient(
    to top,
    #00354c 0%,
    rgba(0, 53, 76, 0.92) 38%,
    rgba(0, 53, 76, 0) 72%
  );
}

/* Index badge (top-right) */
.card-idx {
  position: absolute; top: 26px; right: 28px;
  z-index: 2;
  font-family: 'Fira Mono', monospace;
  font-size: 10px; letter-spacing: 0.1em;
  color: rgba(0,53,76,0.45);
}

/* Text content pinned to bottom */
.card-tag {
  position: absolute; left: 28px; bottom: 91px;
  z-index: 2;
  font-family: 'Fira Mono', monospace;
  font-size: 9.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(0,53,76,0.55);
  white-space: nowrap;
}
.card-title {
  position: absolute; left: 28px; bottom: 62px;
  z-index: 2;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500; font-style: italic;
  font-size: 26px; letter-spacing: -0.015em;
  line-height: 1.1; white-space: nowrap;
  color: #00354c;
}
.card-desc {
  position: absolute; left: 28px; bottom: 14px;
  z-index: 2;
  width: 320px;
  font-family: 'Albert Sans', system-ui, sans-serif;
  font-size: 12.5px; line-height: 1.5;
  color: rgba(0,53,76,0.58);
}

/* Palette overrides */
.card-sky  { background: #caeefe; }
.card-mist { background: #ecf6fa; }
.card-blue { background: #7fd0f3; }

/* Inverted (navy) card */
.card-navy { background: #00354c; }
.card-navy .card-idx  { color: rgba(127,208,243,0.7); }
.card-navy .card-tag  { color: #7fd0f3; }
.card-navy .card-title{ color: #fff; }
.card-navy .card-desc { color: rgba(236,246,250,0.58); }

/* ── FOOTER ──────────────────────────────────
   Figma: top 1663px / h 120px / w 1512px
   Gradient white→#f3fbff
   Left: "Lets work together !" 16px navy + icons
   Right: "© Shreya Shanmugam 2026" 16px grey
─────────────────────────────────────────── */
footer {
  margin-top: 56px;
  background: linear-gradient(180deg,
    #ffffff 0%,
    #ffffff 44.7%,
    #f3fbff 85.6%,
    #f3fbff 100%);
  min-height: 120px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 56px 32px;
}
.footer-left { display: flex; flex-direction: column; gap: 10px; }

.footer-tagline {
  font-family: 'Fira Mono', monospace;
  font-size: 16px;          /* Figma: 16px */
  color: #00354c;
}
.footer-icons { display: flex; gap: 8px; align-items: center; }

/* Figma mail icon: w 30px h 28px, border #666 0.8px, rounded 16px */
.footer-icon-mail {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 28px;
  border: 0.8px solid #666; border-radius: 16px;
  text-decoration: none; color: #666;
  transition: border-color 0.2s, color 0.2s;
}
/* Figma linkedin icon: 30×30px, border #666 0.8px, rounded 18px */
.footer-icon-li {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border: 0.8px solid #666; border-radius: 18px;
  text-decoration: none; color: #666;
  font-family: 'Fira Mono', monospace;
  font-weight: 500; font-size: 10px;
  transition: border-color 0.2s, color 0.2s;
}
.footer-icon-mail:hover,
.footer-icon-li:hover { border-color: #00354c; color: #00354c; }

/* Figma: Fira Mono Medium 16px #9a9a9a */
.footer-copy {
  font-family: 'Fira Mono', monospace;
  font-weight: 500; font-size: 16px;
  color: #9a9a9a; padding-top: 4px;
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 900px) {
  .hero-section, .cases-section { padding-left: 20px; padding-right: 20px; }
  footer { padding: 28px 20px 32px; }
  .hero-name-static { font-size: clamp(28px, 7vw, 64px); white-space: normal; }
  .hero-card { padding: 48px 28px 60px; }
  .cards-grid { grid-template-columns: 1fr; }
  .hero-sub, .hero-tagline { font-size: 12px; }
}

/* ── About page ───────────────────────────── */
.about-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 65px 0;
}
.about-top .ss-logo { margin-top: 4px; }

.about-main {
  padding: 32px 65px 48px;
  max-width: 900px;
  margin: 0 auto;
}

.about-intro-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px 36px;
  align-items: start;
  margin-bottom: 28px;
}

.about-photo-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}
.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  background: #ecf6fa;
}
.about-photo-dot {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #7fd0f3;
  border: 3px solid #fff;
}

.about-intro-text {
  min-width: 0;
}

.about-greeting {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(32px, 4.2vw, 44px);
  letter-spacing: -0.02em;
  color: #00354c;
  line-height: 1.15;
  margin-bottom: 14px;
}

.about-badge {
  display: inline-block;
  font-family: 'Fira Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: #cbefff;
  color: #00354c;
  margin-bottom: 22px;
}

.about-body {
  font-family: 'Albert Sans', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #00354c;
}
.about-body p { margin-bottom: 1.1em; }
.about-body p:last-child { margin-bottom: 0; }

.about-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(0, 53, 76, 0.35);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.about-link:hover {
  color: #00354c;
  text-decoration-color: #00354c;
}

.outside-trigger {
  display: inline;
  font: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: #eae8e8;
  border: none;
  border-radius: 4px;
  padding: 2px 8px;
  margin: 0 2px;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
  vertical-align: baseline;
}
.outside-trigger:hover {
  background: #e0dede;
}
.outside-trigger.is-active {
  background: #cbefff;
  color: #00354c;
  box-shadow: none;
}

/* Hobbies: collapsed by default (no gap until opened) */
.hobbies-section {
  margin-top: 0;
  padding-top: 0;
  transition: margin-top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.hobbies-section.is-open {
  margin-top: 40px;
  padding-top: 8px;
}
.hobbies-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.hobbies-wrap.is-open {
  grid-template-rows: 1fr;
}
.hobbies-inner {
  overflow: hidden;
  min-height: 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.hobbies-section .section-heading {
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hobbies-wrap.is-open .section-heading {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s;
}
.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 4px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease 0.12s, transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.12s;
}
.hobbies-wrap.is-open .hobbies-grid {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.14s;
}
.hobbies-cell {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #ecf6fa;
}
.hobbies-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hobbies-cell--logo {
  background: #0f0f0f;
}
.hobbies-cell--logo img {
  object-fit: contain;
  padding: 14%;
}

/* Cursor-following caption (node appended to body; see about.js) */
.hobbies-tooltip {
  position: fixed;
  z-index: 10000;
  pointer-events: none;
  font-family: 'Fira Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.4;
  padding: 8px 11px;
  border-radius: 6px;
  max-width: 240px;
  color: #00354c;
  background: rgba(236, 246, 250, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0, 53, 76, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, visibility 0.12s ease;
}
.hobbies-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-style: italic;
  font-size: 22px;
  color: #00354c;
  white-space: nowrap;
}
.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #caeefe;
  min-width: 40px;
}

.about-list-section {
  margin-top: 40px;
}
.about-list-section .section-heading {
  margin-bottom: 18px;
}

.experience-row,
.education-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 24px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid rgba(202, 238, 254, 0.6);
}
.experience-row:last-child,
.education-row:last-child {
  border-bottom: none;
}
.ex-row-line1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
}
.ex-company {
  font-family: 'Albert Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #00354c;
}
.ex-role {
  font-family: 'Albert Sans', system-ui, sans-serif;
  font-size: 15px;
  color: #9a9a9a;
  font-weight: 400;
}
.ex-year {
  font-family: 'Fira Mono', monospace;
  font-size: 13px;
  color: #9a9a9a;
  font-weight: 400;
  text-align: right;
}

.edu-school {
  font-family: 'Albert Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #00354c;
}
.edu-detail {
  font-family: 'Albert Sans', system-ui, sans-serif;
  font-size: 14px;
  color: #9a9a9a;
  font-weight: 400;
  margin-top: 4px;
  line-height: 1.45;
}
.edu-dates {
  font-family: 'Fira Mono', monospace;
  font-size: 13px;
  color: #9a9a9a;
  text-align: right;
  align-self: start;
}

/* Staggered entrance (about page) */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.page-about #mainPage {
  opacity: 1;
}
body.page-about footer {
  margin-top: 48px;
}

@media (max-width: 900px) {
  .about-top,
  .about-main {
    padding-left: 20px;
    padding-right: 20px;
  }
  .about-intro-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .about-photo-wrap {
    width: 100px;
    height: 100px;
  }
  .hobbies-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .experience-row,
  .education-row {
    grid-template-columns: 1fr;
  }
  .ex-year,
  .edu-dates {
    text-align: left;
    grid-column: 1 / -1;
  }

  .case-header-inner {
    padding-left: 20px;
    padding-right: 20px;
  }
  .case-hero-copy {
    padding-left: 24px;
    padding-right: 24px;
  }
  .case-main {
    padding-left: 20px;
    padding-right: 20px;
  }
  .case-meta-grid {
    grid-template-columns: 1fr;
  }
  .case-subnav-inner {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 16px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .case-hero {
    margin-left: 20px;
    margin-right: 20px;
    min-height: 44vh;
  }
  .case-header {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ── Case study (Basis) — typography: Playfair / Fira Mono / Albert Sans ── */
body.page-case-study #mainPage {
  opacity: 1;
}
body.page-case-study footer {
  margin-top: 56px;
}

.page-case-study [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.55s ease,
    transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.page-case-study [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.case-header {
  padding: 40px 65px 0;
}
.case-header-inner {
  max-width: 1512px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.case-home-logo {
  display: block;
  line-height: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.case-home-logo:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
.case-home-logo img {
  height: 56px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  display: block;
}

.case-hero {
  position: relative;
  margin: 28px 65px 0;
  border-radius: 24px;
  overflow: hidden;
  background: #00354c;
  min-height: min(52vh, 520px);
}
.case-hero-media {
  position: absolute;
  inset: 0;
}
.case-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0.92;
}
.case-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0, 53, 76, 0.94) 0%,
    rgba(0, 53, 76, 0.55) 48%,
    rgba(0, 53, 76, 0.25) 100%
  );
  pointer-events: none;
}
.case-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 48px 48px 56px;
  color: #fff;
}
.case-eyebrow {
  font-family: 'Fira Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(203, 239, 255, 0.95);
  margin-bottom: 16px;
}
.case-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(28px, 4.2vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 18px;
}
.case-lede {
  font-family: 'Albert Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(236, 246, 250, 0.92);
  max-width: 52ch;
}

.case-subnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #caeefe;
  margin-top: 24px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.case-subnav-inner {
  max-width: 1512px;
  margin: 0 auto;
  padding: 12px 65px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
}
.case-subnav-inner a {
  font-family: 'Fira Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a9a9a;
  text-decoration: none;
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.case-subnav-inner a:hover {
  color: #00354c;
}
.case-subnav-inner a.is-current {
  color: #00354c;
  border-bottom-color: rgba(127, 208, 243, 0.85);
}

.case-main {
  padding: 40px 65px 0;
  max-width: 900px;
  margin: 0 auto;
}

.case-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 32px;
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid #caeefe;
}
.case-meta-label {
  font-family: 'Fira Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a9a9a;
  margin-bottom: 8px;
  font-weight: 400;
}
.case-meta-value {
  font-family: 'Albert Sans', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: #00354c;
}

.case-article {
  padding-bottom: 8px;
}
.case-section {
  margin-bottom: 48px;
}
.case-anchor {
  scroll-margin-top: 96px;
}

.case-h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-style: italic;
  font-size: 26px;
  color: #00354c;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.case-h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #caeefe;
  min-width: 24px;
}
.case-h2--rule::after {
  display: none;
}

.case-h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-style: italic;
  font-size: 20px;
  color: #00354c;
  margin-bottom: 14px;
  line-height: 1.25;
}
.case-h3--spaced {
  margin-top: 32px;
}

.case-p {
  font-family: 'Albert Sans', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #00354c;
  margin-bottom: 1.1em;
}
.case-p:last-child {
  margin-bottom: 0;
}
.case-p--note {
  padding: 14px 18px;
  background: #ecf6fa;
  border-radius: 12px;
  border: 1px solid #caeefe;
}

.case-inline-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(0, 53, 76, 0.35);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.case-inline-link:hover {
  color: #00354c;
  text-decoration-color: #00354c;
}

.case-outcome-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.case-outcome-item {
  padding: 16px 18px;
  background: linear-gradient(135deg, #f3fbff 0%, #ecf6fa 100%);
  border-radius: 14px;
  border: 1px solid #caeefe;
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
}
.case-outcome-item:hover {
  border-color: rgba(127, 208, 243, 0.65);
  box-shadow: 0 8px 28px rgba(0, 53, 76, 0.06);
}
.case-outcome-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-style: italic;
  font-size: 17px;
  color: #00354c;
  display: block;
  margin-bottom: 6px;
}
.case-outcome-sub {
  font-family: 'Albert Sans', system-ui, sans-serif;
  font-size: 14px;
  color: #9a9a9a;
  line-height: 1.45;
}

.case-bullet-list {
  margin: 12px 0 0 1.1em;
  font-family: 'Albert Sans', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #00354c;
}
.case-bullet-list li {
  margin-bottom: 0.75em;
}
.case-bullet-list--tight {
  list-style: disc;
  margin-left: 1.25em;
}
.case-bullet-list--tight li {
  margin-bottom: 0.4em;
}

.case-figure {
  margin: 28px 0;
}
.case-figure-placeholder {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: linear-gradient(145deg, #ecf6fa, #caeefe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fira Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(0, 53, 76, 0.45);
  border: 1px solid #caeefe;
  transition: border-color 0.2s ease;
}
.case-caption {
  font-family: 'Fira Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: #9a9a9a;
  margin-top: 10px;
  line-height: 1.45;
}

.case-takeaways {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.case-details {
  border: 1px solid #caeefe;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
}
.case-details:hover {
  border-color: rgba(127, 208, 243, 0.5);
}
.case-details[open] {
  box-shadow: 0 10px 36px rgba(0, 53, 76, 0.07);
  border-color: rgba(127, 208, 243, 0.45);
}
.case-details summary {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-style: italic;
  font-size: 17px;
  color: #00354c;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  transition: background 0.2s ease;
}
.case-details summary::-webkit-details-marker {
  display: none;
}
.case-details summary::after {
  content: '+';
  float: right;
  font-family: 'Fira Mono', monospace;
  font-size: 14px;
  color: #9a9a9a;
  transition: transform 0.25s ease, color 0.2s ease;
}
.case-details[open] summary::after {
  content: '–';
  transform: rotate(0);
  color: #00354c;
}
.case-details summary:hover {
  background: #f3fbff;
}
.case-details .case-p {
  padding: 0 18px 16px;
  margin-bottom: 0;
}

.case-more {
  padding-top: 8px;
  margin-bottom: 0;
}
