:root {
  --paper: #ffffff;
  --ink: #08211f;
  --muted: #667572;
  --line: #dfe9e7;
  --soft: #f3fbfa;
  --soft-2: #f8fbfb;
  --teal: #27a599;
  --teal-bright: #31cebf;
  --teal-dark: #0f3f3a;
  --navy: #031728;
  --pink: #e91378;
  --yellow: #ffb312;
  --purple: #6724f3;
  --max: 1220px;
  --gutter: clamp(22px, 4vw, 54px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
figure { margin: 0; }
button { font: inherit; }

.case-page {
  max-width: 1440px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 var(--gutter);
  background: var(--paper);
}
.site-top {
  max-width: var(--max);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.wordmark,
.top-meta,
.eyebrow,
.section-kicker,
.contact-label,
.case-footer strong {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.wordmark { text-decoration: none; }
.top-meta { white-space: nowrap; color: var(--muted); }
main { max-width: var(--max); margin: 0 auto; }

.hero {
  padding: 64px 0 94px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px 70px;
  align-items: end;
}
.hero-copy { max-width: 880px; }
.eyebrow,
.section-kicker { margin: 0 0 28px; }
.eyebrow,
.section-kicker { color: var(--teal-dark); }
h1, h2 {
  margin: 0;
  color: var(--ink);
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: -.025em;
}
h1 { font-size: clamp(54px, 6vw, 86px); line-height: .98; }
h2 { font-size: clamp(42px, 4.3vw, 64px); line-height: 1.02; }
.hero-lede {
  max-width: 815px;
  margin: 26px 0 0;
  font-size: 18px;
  line-height: 1.62;
}
.hero-note {
  align-self: center;
  max-width: 300px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.hero-note p { margin: 12px 0 0; }
.hero-note strong { color: var(--ink); font-weight: 600; }
.note-rule { display: block; width: 38px; border-top: 1px solid var(--ink); }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 10px 15px;
  border: 1px solid #d6e2df;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}
.full-span { grid-column: 1 / -1; }

.hero-stage {
  position: relative;
  min-height: 690px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 80% 16%, rgba(49,206,191,.22), transparent 27%),
    radial-gradient(circle at 12% 88%, rgba(39,165,153,.17), transparent 30%),
    linear-gradient(145deg, #031321 0%, #061f2b 62%, #073431 100%);
}
.hero-stage::before,
.hero-stage::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(49,206,191,.16);
  border-radius: 50%;
}
.hero-stage::before { width: 520px; height: 520px; right: -180px; top: -250px; }
.hero-stage::after { width: 760px; height: 760px; left: -430px; bottom: -570px; }
.hero-brand {
  position: absolute;
  z-index: 5;
  top: 66px;
  left: clamp(34px, 7vw, 92px);
  max-width: 390px;
}
.hero-logo { width: min(100%, 300px); }
.hero-brand p {
  max-width: 325px;
  margin: 30px 0 0;
  color: rgba(255,255,255,.88);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(29px, 3vw, 44px);
  line-height: 1.07;
}
.hero-dashboard {
  position: absolute;
  border-radius: 9px;
  box-shadow: 0 28px 60px rgba(0,0,0,.36);
}
.hero-dashboard--rear {
  z-index: 2;
  width: min(52%, 660px);
  right: -9%;
  top: 20%;
  transform: rotate(4deg);
  opacity: .82;
}
.hero-dashboard--front {
  z-index: 3;
  width: min(60%, 760px);
  right: 1%;
  bottom: -5%;
  transform: rotate(-2deg);
}

.case-section {
  border-top: 1px solid var(--line);
  padding: 110px 0;
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.5fr);
  gap: clamp(60px, 7vw, 110px);
  align-items: start;
}
.section-copy { max-width: 470px; }
.section-copy h2 { margin-bottom: 28px; }
.section-copy p:not(.section-kicker) {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.62;
}
.principles { display: grid; gap: 32px; padding-top: 46px; }
.principle {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
}
.principle > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
}
.principle h3 { margin: 2px 0 7px; font-size: 16px; }
.principle p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.56; }

figcaption {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink);
}
figcaption strong { display: block; margin-bottom: 3px; font-size: 13px; }
figcaption span { color: var(--muted); }
.media-card,
.desktop-shot,
.feature-shot,
.modal-grid figure,
.before-after figure,
.blog-shot {
  min-width: 0;
}
.media-card {
  height: 100%;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.direction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 22px;
  align-items: stretch;
}
.media-card--wide { grid-column: 1 / -1; }
.media-card img {
  width: 100%;
  height: 360px;
  object-fit: contain;
  object-position: center;
}
.typography-card { min-height: 100%; }
.type-specimen {
  min-height: 360px;
  padding: 24px 24px 18px;
  border-radius: 8px;
  background: #fbfcfc;
  color: #111827;
  font-family: "Plus Jakarta Sans", "Inter", Arial, sans-serif;
}
.type-specimen__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid #dde4e3;
}
.type-specimen__header span {
  color: #73817f;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.type-specimen__header strong {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.type-scale { display: grid; }
.type-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 20px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid #edf1f0;
}
.type-row:last-child { border-bottom: 0; }
.type-name { line-height: 1.3; white-space: nowrap; }
.type-h1 { font-size: 32px; font-weight: 700; }
.type-h2 { font-size: 24px; font-weight: 700; }
.type-h3 { font-size: 20px; font-weight: 600; }
.type-body-lg { font-size: 18px; font-weight: 400; }
.type-body { font-size: 16px; font-weight: 400; }
.type-small { font-size: 14px; font-weight: 400; line-height: 1.4; }
.type-label { font-size: 14px; font-weight: 500; }
.type-caption { font-size: 12px; font-weight: 400; }
.type-meta {
  color: #73817f;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.media-card figcaption { margin-top: auto; padding-top: 12px; }

.public-experience { grid-template-rows: auto auto; }
.public-grid {
  display: grid;
  grid-template-columns: minmax(0,1.55fr) minmax(190px,.45fr);
  gap: 26px;
  align-items: start;
}
.desktop-shot img,
.blog-shot img,
.feature-shot img,
.before-after img,
.modal-grid img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(8,33,31,.09);
}
.mobile-pair {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
  align-items: start;
}
.mobile-pair figure { min-width: 0; }
.mobile-pair img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(8,33,31,.09);
}
.mobile-pair figcaption { text-align: center; }
.full-span-within {
  grid-column: 1 / -1;
  margin-top: 54px;
  padding-top: 54px;
  border-top: 1px solid var(--line);
}
.blog-shot {
  max-width: 860px;
  justify-self: end;
}

.learner-stack,
.admin-stack { display: grid; gap: 28px; }
.before-after {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 24px;
  align-items: start;
}
.before-after figure:first-child img { filter: saturate(.65); }
.feature-shot { min-width: 0; }
.modal-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 24px;
}

.carousel { max-width: 620px; justify-self: end; }
.carousel-frame {
  overflow: hidden;
  border-radius: 18px;
  background: var(--navy);
  box-shadow: 0 24px 70px rgba(3,23,40,.2);
}
.carousel-track {
  display: flex;
  transition: transform .45s cubic-bezier(.2,.75,.2,1);
  will-change: transform;
}
.carousel-slide { min-width: 100%; }
.carousel-slide img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.carousel-controls {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}
.carousel-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.carousel-btn:hover { background: var(--soft); transform: translateY(-1px); }
.carousel-dots { display: flex; justify-content: center; gap: 10px; }
.dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c9d6d3;
  cursor: pointer;
}
.dot.is-active { background: var(--teal); }

.reflection-points {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px;
}
.reflection-points article {
  min-height: 230px;
  padding: 26px;
  border-radius: 12px;
  background: var(--soft-2);
  border: 1px solid var(--line);
}
.reflection-points span { color: var(--teal-dark); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.reflection-points h3 { margin: 52px 0 10px; font-size: 16px; }
.reflection-points p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.58; }

.about-section {
  border-top: 1px solid var(--line);
  padding: 100px 0 90px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}
.about-copy { max-width: 560px; }
.about-copy h2 { margin-bottom: 24px; }
.about-copy > p:not(.section-kicker) { margin: 0 0 24px; font-size: 16px; line-height: 1.65; color: var(--muted); }
.text-link { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.contact-panel {
  padding: 34px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, var(--navy), var(--teal-dark));
}
.contact-label { color: var(--teal-bright); }
.contact-panel h3 { margin: 44px 0 18px; font-family: "DM Serif Display", Georgia, serif; font-size: clamp(32px,4vw,48px); font-weight: 400; line-height: 1.05; }
.contact-panel a { color: #fff; text-decoration: none; font-size: 14px; }
.case-footer {
  max-width: var(--max);
  min-height: 90px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
}
.case-footer a { text-decoration: none; color: var(--ink); }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; }
  .hero-note { max-width: 520px; }
  .hero-stage { min-height: 610px; }
  .hero-brand { top: 52px; }
  .hero-logo { width: 280px; }
  .hero-brand { max-width: 340px; }
  .hero-brand p { max-width: 300px; }
  .hero-dashboard--front { width: 67%; right: -3%; }
  .hero-dashboard--rear { width: 58%; right: -10%; }
  .case-section { grid-template-columns: 1fr; gap: 54px; }
  .section-copy { max-width: 760px; }
  .principles { padding-top: 0; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
  .principle { grid-template-columns: 1fr; }
  .public-grid { grid-template-columns: minmax(0,1.45fr) minmax(240px,.55fr); }
  .blog-shot { justify-self: stretch; max-width: none; }
  .carousel { justify-self: start; width: min(100%,620px); }
}

@media (max-width: 760px) {
  :root { --gutter: 18px; }
  .site-top { min-height: 62px; }
  .top-meta { font-size: 9px; }
  .hero { padding: 46px 0 72px; gap: 24px; }
  h1 { font-size: clamp(46px,14vw,66px); }
  h2 { font-size: clamp(38px,11vw,54px); }
  .hero-lede { font-size: 16px; }
  .hero-stage { min-height: 560px; }
  .hero-brand { left: 26px; top: 34px; max-width: 260px; }
  .hero-logo { width: 205px; }
  .hero-brand p { font-size: 29px; max-width: 240px; }
  .hero-dashboard--rear { width: 78%; right: -34%; top: 30%; }
  .hero-dashboard--front { width: 88%; right: -20%; bottom: 2%; }
  .case-section { padding: 78px 0; gap: 40px; }
  .section-copy p:not(.section-kicker) { font-size: 16px; }
  .principles { grid-template-columns: 1fr; }
  .direction-grid { grid-template-columns: 1fr; }
  .media-card--wide { grid-column: auto; }
  .media-card img { height: auto; max-height: 520px; }
  .type-specimen { min-height: 0; padding: 20px; }
  .type-specimen__header { align-items: flex-start; flex-direction: column; gap: 4px; }
  .type-row { grid-template-columns: 1fr; gap: 2px; padding: 9px 0; }
  .type-meta { white-space: normal; }
  .public-grid { grid-template-columns: 1fr; }
  .desktop-shot { max-height: 780px; overflow: hidden; border-radius: 12px; }
  .desktop-shot img { border-radius: 0; }
  .mobile-pair { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .full-span-within { margin-top: 28px; padding-top: 36px; }
  .blog-shot { max-height: 1000px; overflow: hidden; border-radius: 12px; }
  .blog-shot img { border-radius: 0; }
  .before-after, .modal-grid { grid-template-columns: 1fr; }
  .reflection-points { grid-template-columns: 1fr; }
  .reflection-points article { min-height: 190px; }
  .reflection-points h3 { margin-top: 34px; }
  .about-section { grid-template-columns: 1fr; padding: 78px 0; gap: 40px; }
  .case-footer { min-height: 78px; }
}

@media (max-width: 470px) {
  .site-top { align-items: flex-start; padding: 18px 0; }
  .top-meta { white-space: normal; text-align: right; max-width: 145px; line-height: 1.35; }
  .tag { font-size: 11px; padding: 9px 12px; }
  .hero-stage { min-height: 500px; }
  .hero-brand { left: 22px; right: 22px; }
  .hero-logo { width: 190px; }
  .hero-brand p { font-size: 25px; }
  .mobile-pair { gap: 8px; }
  .carousel-controls { grid-template-columns: 40px 1fr 40px; }
  .carousel-btn { width: 40px; height: 40px; }
  .contact-panel { padding: 26px; }
  .case-footer { align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-track, .carousel-btn { transition: none; }
}
