:root {
  --paper: #ffffff;
  --ink: #102522;
  --muted: #67736f;
  --line: #dfe8e5;
  --soft: #edf8f6;
  --soft-2: #f7fbfa;
  --teal: #0fa394;
  --teal-dark: #087a70;
  --yellow: #f4b918;
  --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; }

.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-row small,
.case-footer strong,
.premium-eyebrow {
  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: 860px; }
.eyebrow,
.section-kicker { margin: 0 0 28px; }
.eyebrow { 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(56px, 6.2vw, 88px); line-height: .97; }
h2 { font-size: clamp(42px, 4.3vw, 64px); line-height: 1.02; }
.hero-lede {
  max-width: 790px;
  margin: 26px 0 0;
  font-size: 18px;
  line-height: 1.6;
}
.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;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid #d6e1de;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}
.tag i { color: var(--teal-dark); font-size: 13px; }
.full-span { grid-column: 1 / -1; }

.hero-stage {
  position: relative;
  min-height: 650px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(circle at 82% 20%, rgba(244,185,24,.22), transparent 27%),
    linear-gradient(135deg, #e7f8f5 0%, #f7fbfa 54%, #fff8dc 100%);
}
.hero-stage::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  left: -120px;
  bottom: -180px;
  border-radius: 50%;
  background: rgba(15,163,148,.08);
}
.hero-brand {
  position: absolute;
  z-index: 2;
  top: 64px;
  left: clamp(34px, 7vw, 92px);
  max-width: 350px;
}
.hero-logo { width: 132px; }
.hero-brand p {
  max-width: 320px;
  margin: 26px 0 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.05;
}
.hero-phone {
  position: absolute;
  z-index: 3;
  width: min(37%, 430px);
  right: 10%;
  bottom: -10%;
  filter: drop-shadow(0 28px 40px rgba(16,37,34,.17));
}
.hero-art {
  position: absolute;
  z-index: 1;
  width: min(33%, 380px);
  right: 38%;
  bottom: 6%;
  opacity: .94;
}

.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: 460px; }
.section-copy h2 { margin-bottom: 28px; }
.section-copy p:not(.section-kicker) {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.62;
}
.section-kicker { color: var(--teal-dark); }

.principles { display: grid; gap: 38px; padding-top: 50px; }
.principle {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 22px;
  align-items: start;
  max-width: 620px;
}
.icon-circle {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--teal-dark);
}
.icon-circle i { font-size: 19px; }
.principle h3 { margin: 2px 0 6px; font-size: 16px; }
.principle p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.wireframe-wrap { display: grid; gap: 28px; }
.wireframe-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #4a4a4a;
}
.wireframe-card img { width: 100%; }
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); }
.wireframe-card figcaption { color: #fff; }
.wireframe-card figcaption span { color: rgba(255,255,255,.66); }
.flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}
.flow-steps li {
  min-height: 154px;
  padding: 20px;
  border-radius: 10px;
  background: var(--soft-2);
  border: 1px solid var(--line);
}
.flow-steps span { color: var(--teal-dark); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.flow-steps strong { display: block; margin: 24px 0 7px; font-size: 14px; }
.flow-steps small { color: var(--muted); font-size: 12px; line-height: 1.5; }

.system-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 22px;
  align-items: start;
}
.system-card {
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.system-card img { width: 100%; }
.system-card.typography { grid-row: span 2; }
.system-card.components { grid-column: 1; }
.system-card.buttons,
.system-card.icons { padding-bottom: 18px; }

.screen-triptych {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 26px;
  align-items: start;
}
.screen-triptych figure,
.content-media figure,
.subscription-media figure {
  min-width: 0;
}
.screen-triptych img,
.content-media img,
.subscription-media figure img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(16,37,34,.09);
}
.screen-triptych figcaption,
.content-media figcaption,
.subscription-media figure figcaption { text-align: center; }

.content-media {
  display: grid;
  grid-template-columns: .78fr 1.05fr;
  gap: 30px;
  align-items: start;
}
.saved-screen { padding-top: 38px; }

.subscription-media {
  display: grid;
  grid-template-columns: 1fr .75fr;
  gap: 34px;
  align-items: center;
  padding: 42px;
  border-radius: 16px;
  background: linear-gradient(145deg, #e9f8f5, #fffaf0);
}
.premium-copy { padding: 20px 10px 20px 12px; }
.premium-logo { width: 126px; margin-bottom: 36px; }
.premium-eyebrow { margin: 0 0 12px; color: var(--teal-dark); }
.premium-copy h3 {
  margin: 0 0 26px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 400;
  line-height: 1;
}
.premium-copy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.premium-copy li { display: flex; align-items: center; gap: 11px; font-size: 14px; }
.premium-copy li i {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 10px;
}
.subscription-media figure img { max-width: 390px; margin-left: auto; }

.reflection-points { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; padding-top: 10px; }
.reflection-points article { padding-top: 22px; border-top: 2px solid var(--teal); }
.reflection-points span { color: var(--teal-dark); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.reflection-points h3 { margin: 24px 0 10px; font-size: 16px; }
.reflection-points p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.about-section {
  border-top: 1px solid var(--line);
  padding: 110px 0 90px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 90px;
}
.about-copy { max-width: 640px; }
.about-copy h2 { margin-bottom: 30px; }
.about-copy p { margin: 0 0 22px; font-size: 17px; line-height: 1.58; }
.text-link {
  display: inline-block;
  margin-top: 14px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.contact-panel { border-left: 1px solid var(--line); padding-left: clamp(36px, 5vw, 72px); }
.contact-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.contact-row i { color: var(--teal-dark); font-size: 24px; text-align: center; }
.contact-row small { display: block; margin-bottom: 6px; }
.contact-row strong { font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.contact-row:hover strong,
.text-link:hover { opacity: .65; }

.case-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.case-footer div { display: grid; gap: 8px; }
.case-footer div span { color: var(--muted); font-size: 12px; }
.case-footer p { justify-self: end; max-width: 520px; margin: 0; color: #8c9894; font-size: 11px; line-height: 1.55; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 26px; }
  .hero-note { max-width: 560px; }
  .hero-stage { min-height: 600px; }
  .hero-phone { width: min(42%, 390px); right: 7%; }
  .hero-art { width: min(38%, 340px); right: 41%; }
  .case-section { grid-template-columns: 1fr; gap: 54px; padding: 86px 0; }
  .section-copy { max-width: 720px; }
  .principles { padding-top: 0; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .principle { grid-template-columns: 48px 1fr; gap: 14px; }
  .system-grid { max-width: 900px; }
  .about-section { grid-template-columns: 1fr 1fr; gap: 50px; }
}

@media (max-width: 760px) {
  :root { --gutter: 22px; }
  .site-top { min-height: 62px; }
  .wordmark { font-size: 10px; }
  .top-meta { font-size: 9px; letter-spacing: .09em; }
  .hero { padding: 46px 0 68px; }
  h1 { font-size: clamp(46px, 13vw, 64px); }
  h2 { font-size: clamp(39px, 10vw, 54px); }
  .hero-lede,
  .section-copy p:not(.section-kicker),
  .about-copy p { font-size: 16px; }
  .tag-row { gap: 8px; }
  .tag { padding: 9px 12px; font-size: 11px; }
  .hero-stage { min-height: 590px; border-radius: 12px; }
  .hero-brand { top: 42px; left: 30px; }
  .hero-brand p { max-width: 240px; font-size: 34px; }
  .hero-phone { width: 51%; right: 2%; bottom: -4%; }
  .hero-art { width: 43%; left: 8%; right: auto; bottom: 7%; }
  .case-section { padding: 70px 0; gap: 40px; }
  .section-kicker { margin-bottom: 20px; }
  .principles { grid-template-columns: 1fr; gap: 26px; }
  .flow-steps { grid-template-columns: 1fr 1fr; }
  .system-grid { grid-template-columns: 1fr; }
  .system-card.typography { grid-row: auto; }
  .system-card.components { grid-column: auto; }
  .screen-triptych { grid-template-columns: 1fr; gap: 34px; max-width: 420px; margin: 0 auto; }
  .content-media { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; gap: 34px; }
  .saved-screen { padding-top: 0; }
  .subscription-media { grid-template-columns: 1fr; padding: 28px; }
  .subscription-media figure img { margin: 0 auto; }
  .premium-copy { padding: 4px; }
  .reflection-points { grid-template-columns: 1fr; gap: 30px; }
  .about-section { grid-template-columns: 1fr; gap: 56px; padding: 80px 0 70px; }
  .contact-panel { border-left: 0; border-top: 1px solid var(--line); padding: 48px 0 0; }
  .case-footer { grid-template-columns: 1fr; gap: 24px; }
  .case-footer p { justify-self: start; }
}

@media (max-width: 480px) {
  .site-top { align-items: flex-start; padding-top: 20px; padding-bottom: 16px; }
  .top-meta { text-align: right; max-width: 150px; }
  .eyebrow { margin-bottom: 20px; }
  h1 { font-size: 44px; }
  h2 { font-size: 40px; }
  .hero-lede { margin-top: 20px; }
  .hero-stage { min-height: 520px; }
  .hero-logo { width: 110px; }
  .hero-brand p { max-width: 220px; font-size: 30px; }
  .hero-phone { width: 58%; right: -7%; }
  .hero-art { width: 48%; left: 2%; bottom: 5%; }
  .wireframe-card { padding: 14px; }
  .flow-steps { grid-template-columns: 1fr; }
  .system-card { padding: 14px; }
  .subscription-media { padding: 22px 16px; }
}
