/* Esmeralda Cuevas — homepage styles */

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/hanken-grotesk-latin.woff2") format("woff2");
}

:root {
  --bg: #F5F1EA;
  --ink: #1F1D1B;
  --ink-2: #3A3632;
  --muted: #5A544D;
  /* ===== Colour system =====
     Blue is the main accent: structure and navigation (links, menu numbers,
     section numbers, eyebrows, rules, primary buttons, statistics).
     Terracotta and marigold are secondary accents, used the same way everywhere:
       - Terracotta = action and emphasis: link and button hover, arrows on
         "Read the case study" style links, highlighted takeaways, "changed" tags.
       - Marigold = learning and evidence: research findings, the Week 2 lesson
         box, small list numbers, text selection.
       Numbered markers on manual pages and screens stay dark ink.
     Each secondary accent has three shades with one job each:
       base  - decoration only (fills behind dark text, dots, borders). Never text.
       tint  - soft background for a box or band.
       deep  - when the accent has to be text (passes contrast on bg and tints). */
  --link: #4A6E87;
  --link-hover: #9A4A2A;          /* = --terracotta-deep */
  --accent: #6B8CA3;
  --accent-tint: #E4EBF0;

  --terracotta: #D38B6A;
  --terracotta-tint: #F7E8DF;
  --terracotta-deep: #9A4A2A;

  --marigold: #D8A866;
  --marigold-tint: #F7EBD5;
  --marigold-deep: #7A5714;

  --tile: #ECE6DB;                /* neutral tile */
  --rule: #BDB5A8;
  --sand: #C9BFAF;
  --gutter: clamp(16px, 4vw, 56px);
  /* Space between the navigation and the first line of each page */
  --space-top: 36px;
  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

@media (min-width: 700px) { :root { --space-top: 44px; } }
@media (min-width: 960px) { :root { --space-top: clamp(48px, 5vw, 72px); } }

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }

a { color: var(--link); }
a:hover { color: var(--link-hover); }

::selection { background: var(--marigold-tint); color: var(--ink); }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

[hidden] { display: none !important; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--bg); }

.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 32px;
  padding: 20px 0 8px;
  border-bottom: 1.5px solid var(--accent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
}
.brand:hover { color: var(--ink); }
.brand img { width: 34px; height: auto; }

.nav-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  font-size: 16px;
}
.nav-list a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 12px 0;
  color: var(--ink);
  text-decoration: none;
}
.nav-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-num { font-size: 12px; color: var(--link); }

@media (min-width: 700px) {
  .site-header { padding: 24px 0 20px; }
  .brand { gap: 14px; font-size: 18px; }
  .brand img { width: 40px; }
  .nav-list { gap: 8px 32px; }
}

/* ---------- Shared bits ---------- */
.eyebrow { font-size: 14px; color: var(--link); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 15px 26px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.button-accent { background: var(--accent); color: var(--ink); }
.button-accent:hover { background: var(--terracotta); color: var(--ink); }
.button-dark { background: var(--ink); color: var(--bg); }
.button-dark:hover { background: var(--terracotta-deep); color: var(--bg); }

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: var(--space-top) 0 40px;
}
.hero-main, .hero-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.hero h1 {
  font-weight: 500;
  font-size: clamp(34px, 4.4vw + 12px, 64px);
  line-height: 1.07;
  letter-spacing: -0.025em;
  max-width: 20ch;
}
.lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
}
.hero .button { align-self: stretch; margin-top: 4px; }

@media (min-width: 600px) {
  .hero .button { align-self: flex-start; }
}

@media (min-width: 960px) {
  .hero {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px 72px;
    padding: var(--space-top) 0 clamp(40px, 4.5vw, 64px);
  }
  .hero-main { flex: 1 1 520px; }
  .hero-side { flex: 1 1 340px; max-width: 470px; gap: 24px; }
  .eyebrow { font-size: 15px; }
  .lead { font-size: 20px; }
}

/* ---------- Background ---------- */
.background-list {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.background-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.item-num {
  flex: none;
  width: 20px;
  padding-top: 2px;
  font-size: 13px;
  color: var(--marigold-deep);
}
.background-list h3 { font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.background-list p { font-size: 15px; line-height: 1.5; color: var(--muted); }

@media (min-width: 800px) {
  .background-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 40px;
    padding: 20px 0 4px;
  }
  .background-list li {
    flex-direction: column;
    gap: 6px;
    padding: 0 0 16px;
    border-bottom: 0;
  }
  .background-list h3 { margin-bottom: 6px; }
}

/* ---------- Selected Work ---------- */
.work { padding: 48px 0 16px; scroll-margin-top: 8px; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--accent);
}
.section-head h2 {
  font-weight: 500;
  font-size: clamp(25px, 1.6vw + 18px, 34px);
  letter-spacing: -0.015em;
}
.section-meta { font-size: 14px; color: var(--link); }

/* Project card — mobile first (stacked) */
.project {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "num   kicker"
    "title title"
    "media media"
    "body  body";
  gap: 14px 8px;
  padding: 36px 0 40px;
  border-bottom: 1px solid var(--rule);
}
/* The Contact section's rule closes the list, so the last row needs no rule of its own */
.project:last-child { border-bottom: 0; }
.project-num {
  grid-area: num;
  font-size: 14px;
  font-weight: 500;
  color: var(--link);
}
.project-kicker {
  grid-area: kicker;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  color: var(--link);
}
.project-kicker::before {
  content: "";
  flex: 1;
  border-bottom: 1px dotted var(--accent);
}
.project-title {
  grid-area: title;
  font-weight: 500;
  font-size: clamp(23px, 1.2vw + 17px, 30px);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.project-media { grid-area: media; padding: 12px; align-self: start; }
.project-media--sand { background: var(--sand); }
.project-media--blue { background: var(--link); }

.media-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: left center;
}

/* Horizontally scrollable image strip (course manual pages).
   The box keeps a fixed shape; the image fills its height and scrolls sideways. */
.scroll-strip {
  aspect-ratio: 16 / 9;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
}
.scroll-strip img {
  height: 100%;
  width: auto;
  max-width: none;
}
.scroll-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ink-2);
}
@media (min-width: 760px) {
  .project-media .scroll-strip { aspect-ratio: 4 / 3; }
}

.phones {
  aspect-ratio: 4 / 3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 3vw, 20px);
}
.phones img { height: 100%; width: auto; min-width: 0; }

.project-body {
  grid-area: body;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 62ch;
}
.project-body > p:first-child {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}

.facts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.facts div { display: flex; align-items: baseline; gap: 8px; }
.facts dt { flex: 1; display: flex; align-items: baseline; gap: 8px; }
.facts dt::after {
  content: "";
  flex: 1;
  min-width: 16px;
  border-bottom: 1px dotted var(--accent);
}
.facts dd { text-align: right; }

.text-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 6px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
}
.text-link svg { color: var(--terracotta-deep); transition: transform .15s ease; }
.text-link:hover svg { transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) { .text-link:hover svg { transform: none; } }

.link-pending {
  padding: 10px 0 6px;
  font-weight: 600;
  font-size: 16px;
  color: var(--muted);
}

/* Tablet / small laptop: text and image side by side */
@media (min-width: 760px) and (max-width: 1199px) {
  .project {
    grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "num kicker kicker"
      "num title  title"
      "num body   media";
    gap: 10px 32px;
    padding: 36px 0 40px;
  }
  .project-num { padding-top: 2px; }
  .project-kicker::before { content: none; }
  .project-title { margin-bottom: 10px; }
  .media-cover { aspect-ratio: 4 / 3; }
}

@media (min-width: 1200px) {
  .work { padding: clamp(56px, 5vw, 72px) 0 clamp(16px, 2vw, 32px); }
  .project {
    grid-template-columns: 56px minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.3fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "num kicker body media"
      "num title  body media"
      "num .      body media";
    gap: 10px 40px;
    padding: 40px 0 44px;
  }
  .project-num { font-size: 15px; padding-top: 6px; }
  .project-kicker::before { content: none; }
  .project-media { padding: 18px; }
  .media-cover { aspect-ratio: 4 / 3; }
  .project-body > p:first-child { font-size: 17px; }
}

/* ---------- Contact ---------- */
.contact {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 56px 0 48px;
  border-top: 1.5px solid var(--accent);
}
.contact-main { display: flex; flex-direction: column; gap: 16px; }
.contact h2 {
  font-weight: 500;
  font-size: clamp(30px, 1.8vw + 22px, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}
.contact .button { padding: 16px 28px; overflow-wrap: anywhere; }
.plain-link { font-size: 16px; padding: 12px 0; }

@media (min-width: 900px) {
  .contact {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px 64px;
    padding: clamp(64px, 8vw, 104px) 0;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 24px 0 32px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Local-preview notes for missing content ----------
   Hidden on the live site; preview.js reveals them on your computer. */
.missing {
  display: block;
  border: 2px dashed #B7791F;
  background: #FFF4D6;
  color: #5C3B00;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 6px;
}
.missing::before { content: "Preview note · "; font-weight: 700; }
.link-pending.is-flagged { outline: 2px dashed #B7791F; outline-offset: 4px; }

/* =========================================================
   Case study pages
   ========================================================= */

.cs-hero { padding: var(--space-top) 0 48px; }
.cs-hero .eyebrow a { color: var(--link); }
.cs-hero h1 {
  margin-top: 16px;
  font-weight: 500;
  font-size: clamp(34px, 3.6vw + 14px, 60px);
  line-height: 1.07;
  letter-spacing: -0.025em;
  max-width: 22ch;
}
.cs-hero-grid {
  display: grid;
  gap: 28px;
  margin-top: 32px;
}
.label {
  font-size: 14px;
  font-weight: 500;
  color: var(--link);
  margin-bottom: 10px;
}
.challenge-q {
  font-size: clamp(20px, 1vw + 16px, 26px);
  line-height: 1.4;
  color: var(--ink);
  max-width: 34ch;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
}
.cs-facts {
  display: grid;
  gap: 0;
  font-size: 15px;
  border-top: 1px solid var(--rule);
}
.cs-facts div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.cs-facts dt { color: var(--muted); }
.cs-facts dd { color: var(--ink-2); }

/* Role + pilot band at the top of the course case study */
.cs-role {
  margin-top: 20px;
  font-size: clamp(19px, 0.8vw + 16px, 23px);
  line-height: 1.45;
  color: var(--ink);
  max-width: 44ch;
}
.pilot-strip {
  list-style: none;
  padding: 0;
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  border-top: 1px solid var(--rule);
}
.pilot-strip li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.pilot-num {
  font-size: clamp(30px, 1.4vw + 22px, 40px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--link);
}
.pilot-text { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
@media (min-width: 960px) {
  .pilot-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; }
}

/* Recognize → Observe → Try sequence (Week 7 lesson) */
.sequence {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}
.sequence li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: var(--tile);
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink-2);
  position: relative;
}
.sequence strong { color: var(--ink); font-weight: 600; }
.seq-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
@media (min-width: 760px) {
  .sequence { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .sequence li:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -21px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 18px;
  }
}

.manual-preview { margin: 12px 0 0; min-width: 0; }
.cs-section-body { min-width: 0; }
.manual-preview .scroll-strip {
  background: var(--sand);
  padding: clamp(10px, 1.5vw, 18px);
}
.manual-preview figcaption,
.excerpt figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

@media (min-width: 960px) {
  .cs-hero { padding-bottom: 64px; }
  .cs-hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 72px;
    align-items: start;
  }
}

/* Numbered sections */
.cs-section {
  display: grid;
  gap: 20px;
  padding: 40px 0 48px;
  border-top: 1px solid var(--rule);
}
.cs-section-head { display: flex; flex-direction: column; gap: 6px; }
.cs-num { font-size: 14px; font-weight: 500; color: var(--link); }
.cs-section h2 {
  font-weight: 500;
  font-size: clamp(25px, 1.2vw + 19px, 32px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 20ch;
}
.cs-section-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
}
.cs-section h3 {
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  color: var(--ink);
}
.sub-head { margin-top: 12px; }
.cs-section-body > .sub-head + * { margin-top: -6px; }
.big-text {
  font-size: clamp(20px, 0.8vw + 17px, 24px);
  line-height: 1.45;
  color: var(--ink);
}
.aside-note {
  font-size: 15px;
  color: var(--muted);
  padding-left: 14px;
  border-left: 2px solid var(--rule);
}

@media (min-width: 960px) {
  .cs-section {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 40px;
    padding: 56px 0 64px;
  }
  .cs-section--wide { grid-template-columns: 1fr; }
  .cs-section--wide .cs-section-head { flex-direction: row; gap: 24px; align-items: baseline; }
  .cs-section--wide h2 { max-width: none; }
}

.two-up { display: grid; gap: 20px; }
.two-up h3 { margin-bottom: 6px; }
@media (min-width: 700px) { .two-up { grid-template-columns: 1fr 1fr; gap: 32px; } }

.design-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.design-list li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.design-list h3 { margin-bottom: 4px; }
@media (min-width: 700px) {
  .design-list { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}

.course-map {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.course-map li {
  background: var(--tile);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
}
.course-map .wk { display: block; font-size: 13px; color: var(--link); font-weight: 500; }

/* Session flow */
.flow {
  list-style: none;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 0;
}
.flow li {
  counter-increment: step;
  position: relative;
  padding: 0 0 18px 44px;
}
.flow li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--link);
  font-size: 14px;
  font-weight: 600;
  display: grid;
  place-items: center;
  background: var(--bg);
}
.flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13.5px; top: 30px; bottom: 2px;
  border-left: 1px dotted var(--accent);
}
.flow h3 { margin-bottom: 2px; padding-top: 2px; }
.flow p { font-size: 16px; }
.flow-key > p {
  background: var(--terracotta-tint);
  padding: 12px 14px;
  border-radius: 6px;
  margin-top: 6px;
  color: var(--ink);
}
.flow-key::before { background: var(--terracotta) !important; border-color: var(--terracotta) !important; color: var(--ink) !important; }

.check-list { padding-left: 1.2em; display: grid; gap: 10px; }
.check-list li::marker { color: var(--link); }

/* Annotated excerpt */
.annotated { display: grid; gap: 32px; }
.excerpt { margin: 0; position: relative; }
.excerpt img,
.excerpt-placeholder {
  width: 100%;
  aspect-ratio: 1400 / 1811;
  background: var(--sand);
  padding: 14px;
}
.excerpt-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  border: 2px dashed #B7791F;
  background: #FFF4D6;
  color: #5C3B00;
  font-size: 15px;
  line-height: 1.5;
}
.marker {
  position: absolute;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 3px var(--bg);
}
.excerpt figcaption {
  font-size: 16px;
  color: var(--ink-2);
  padding-left: 14px;
  border-left: 2px solid var(--accent);
  margin-top: 12px;
}

.annotations { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.annotations li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.ann-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.annotations h3 { font-size: 18px; margin-bottom: 8px; }
.annotations p { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.annotations p + p { margin-top: 6px; }
.ann-label { font-weight: 600; color: var(--ink); }

@media (min-width: 960px) {
  .annotated {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: start;
  }
}

.second-decision {
  margin-top: 16px;
  padding: 24px;
  background: var(--marigold-tint);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  max-width: 80ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}
@media (min-width: 960px) {
  .second-decision { margin-left: auto; margin-right: auto; }
}

/* Placeholders that still need confirmation (visible everywhere) */
.todo {
  border: 2px dashed #B7791F;
  background: #FFF4D6;
  color: #5C3B00;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.5;
}
.todo--draft { border-color: #6B8CA3; background: #E6ECEF; color: #22394A; }
.todo-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.ph {
  background: #FFF4D6;
  color: #5C3B00;
  border: 1px dashed #B7791F;
  border-radius: 4px;
  padding: 0 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.cs-next {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 32px 0 56px;
  border-top: 1px solid var(--rule);
}

.nowrap { white-space: nowrap; }
/* Markers appear once the real excerpt image replaces the placeholder */
.excerpt-placeholder ~ .marker { display: none; }

/* Version comparison table */
.compare { overflow-x: auto; margin-top: 8px; }
.compare:focus-visible { outline-offset: 4px; }
.compare table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}
.compare th, .compare td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--rule);
}
.compare thead th {
  font-size: 14px;
  font-weight: 500;
  color: var(--link);
  border-bottom: 1.5px solid var(--accent);
}
.compare tbody th { font-weight: 600; color: var(--ink); width: 9rem; }
.th-sub { font-weight: 400; font-size: 14px; color: var(--muted); }

/* Age groups */
.groups {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.groups li {
  background: var(--tile);
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.group-age { font-size: 14px; color: var(--link); font-weight: 500; }

/* Excerpt image with markers */
.excerpt-frame { position: relative; background: var(--sand); padding: 14px; }
.excerpt-frame img { width: 100%; height: auto; padding: 0; background: none; aspect-ratio: auto; }
.excerpt-frame .marker { transform: translate(-50%, -50%); }

/* Second decision image + text */
.decision-grid { display: grid; gap: 16px; align-items: start; }
.decision-grid img { width: 100%; max-width: 260px; height: auto; background: var(--sand); padding: 10px; }
@media (min-width: 700px) { .decision-grid { grid-template-columns: 220px minmax(0, 1fr); gap: 28px; } }

/* Feedback stats */
.stat-lead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--terracotta-tint);
  border-left: 3px solid var(--terracotta);
  border-radius: 6px;
  padding: 14px 16px;
}
.stat-lead strong { font-weight: 600; }
.stats {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0 24px;
  border-top: 1px solid var(--rule);
}
.stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.stat-num {
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--link);
}
.stat-text { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* =========================================================
   brightwheel case study additions
   ========================================================= */
.concept-badge {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 12px;
  border: 1.5px solid var(--link);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--link);
}

/* At-a-glance summary */
.summary { padding: 0 0 48px; }
.summary-grid {
  display: grid;
  gap: 0;
  border-top: 1.5px solid var(--accent);
}
.summary-cell {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.summary-cell h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--link);
  margin-bottom: 6px;
}
.summary-cell p { font-size: 16px; line-height: 1.55; color: var(--ink); }
@media (min-width: 800px) {
  .summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .summary-cell { padding: 20px 28px 22px 0; }
  .summary-cell + .summary-cell { padding-left: 28px; border-left: 1px solid var(--rule); }
}
.bw-hero-media { margin: 32px 0 0; background: var(--sand); padding: clamp(14px, 2vw, 28px); }
.bw-hero-media .phones { aspect-ratio: auto; height: clamp(300px, 40vw, 560px); }

/* Screen annotations */
.screen-frame { background: var(--sand); }
.annotated--screen .excerpt { max-width: 340px; margin: 0 auto; width: 100%; }
.annotated--screen .annotations { max-width: 72ch; }
@media (min-width: 960px) {
  .annotated--screen { grid-template-columns: 340px minmax(0, 1fr); }
  .annotated--screen .excerpt { margin: 0; }
}
.changed {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--terracotta-tint);
  color: var(--terracotta-deep);
  box-shadow: inset 0 0 0 1px var(--terracotta);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.cs-note { margin-top: 8px; max-width: 80ch; }

/* Usability decisions */
.decision {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 18px;
}
.decision > h3 { font-size: clamp(19px, 0.6vw + 16px, 22px); font-weight: 500; line-height: 1.3; }
.decision-num {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--link);
  margin-bottom: 4px;
}
.before-after { display: grid; gap: 14px; max-width: 100ch; }
.before-after > div {
  background: var(--tile);
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}
.ba-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--link);
  margin-bottom: 6px;
}
/* What I found = evidence (marigold) · What I changed = action (terracotta) */
.before-after > div:first-child { background: var(--marigold-tint); }
.before-after > div:first-child .ba-label { color: var(--marigold-deep); }
.before-after > div:last-child { background: var(--terracotta-tint); }
.before-after > div:last-child .ba-label { color: var(--terracotta-deep); }
@media (min-width: 700px) { .before-after { grid-template-columns: 1fr 1fr; } }

.screen-pair { display: grid; gap: 24px; }
.screen-pair figure { margin: 0; max-width: 340px; width: 100%; justify-self: center; }
.screen-pair figcaption { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.screen-frame--crop {
  padding: 14px 14px 0;
  max-height: 620px;
  overflow: hidden;
  position: relative;
}
.screen-frame--crop img { width: 100%; height: auto; }
.screen-frame--crop::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 72px;
  background: linear-gradient(to bottom, rgba(201, 191, 175, 0), var(--sand));
}
@media (min-width: 760px) {
  .screen-pair { grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: start; gap: 40px; }
  .screen-pair figure { justify-self: start; }
}
@media (min-width: 960px) { .annotated--screen .annotations { position: sticky; top: 24px; } }

.summary-link { margin-top: 18px; }

/* =========================================================
   About page
   ========================================================= */
.nav-list a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }

.about {
  display: grid;
  gap: 32px;
  padding: var(--space-top) 0 64px;
}
.about-text { display: flex; flex-direction: column; gap: 18px; max-width: 62ch; }
.about h1 {
  font-weight: 500;
  font-size: clamp(32px, 2.8vw + 14px, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 18ch;
}
.about-text > p:not(.eyebrow):not(.lead) { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.about-sub {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--link);
}
.about-list { list-style: none; padding: 0; border-top: 1px solid var(--rule); }
.about-list li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.about-list h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.about-list p { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.about-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 12px;
}
.file-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
}
.about-portrait { margin: 0; }
.about-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  background: var(--sand);
}
@media (max-width: 959px) {
  .about-portrait { max-width: 320px; order: -1; }
}
@media (max-width: 699px) {
  .about-portrait { max-width: 220px; }
}
@media (min-width: 960px) {
  .about {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 72px;
    padding: var(--space-top) 0 88px;
    align-items: start;
  }
  .about-portrait { position: sticky; top: 24px; }
}

/* =========================================================
   Contact page
   ========================================================= */
.contact-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: var(--space-top) 0 80px;
  max-width: 760px;
}
.contact-page h1 {
  font-weight: 500;
  font-size: clamp(36px, 3.4vw + 14px, 60px);
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.contact-page .lead { max-width: 52ch; }
.contact-methods {
  list-style: none;
  padding: 0;
  margin-top: 16px;
  border-top: 1.5px solid var(--accent);
}
.contact-methods li {
  display: grid;
  gap: 2px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.method-label { font-size: 14px; color: var(--muted); }
.method-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: clamp(19px, 1vw + 15px, 24px);
  font-weight: 500;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}
@media (min-width: 700px) {
  .contact-page { padding-bottom: 112px; }
  .contact-methods li { grid-template-columns: 8rem minmax(0, 1fr); align-items: center; gap: 16px; }
}
