/* sagar.build redesign: "Red" (brick) palette and the shared layout shell. */
:root {
  --ground: #EFE9E5;
  --surface: #FFFFFF;
  --ink: #1E1512;
  --body: #4A3D38;
  --muted: #675953;
  --head-muted: #94847D; /* 3.6:1 on white: only at 32px and above (AA large text) */
  --line: #E8DFDA;
  --line-strong: #D6C9C2;
  --soft: #F6F1EE;
  --panel: #FAF7F5;
  --brand: #8C3324;
  --brand-text: #8C3324;
  --on-brand: #FFFFFF;
  --on-brand-muted: #E6C3B9;
  --accent: #E9B04E;
  --highlight: #F3DDD5;
  --dots: rgba(255, 255, 255, 0.13);
  --sans: Geist, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.rd-body {
  margin: 0;
  padding: 16px;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}
a { color: inherit; }
a:hover { opacity: 0.78; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, dl, dd, dt { margin: 0; }

.rd-skip {
  position: absolute; left: 16px; top: -48px; padding: 10px 14px; background: var(--ink); color: var(--on-brand);
  border-radius: 8px; z-index: 10;
}
.rd-skip:focus { top: 16px; }

/* Shell: a sidebar card beside the main column of tiles. Stacks on phones. */
.rd-shell { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.rd-side {
  flex: 1 1 232px;
  background: var(--surface);
  border-radius: 22px;
  padding: 22px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.rd-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.rd-tile { background: var(--surface); border-radius: 26px; box-sizing: border-box; }

.rd-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 0 8px; }
.rd-mark {
  width: 28px; height: 28px; border-radius: 8px; background: var(--brand);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.rd-mark > span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.rd-brand-name { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }

.rd-nav { display: flex; flex-direction: column; gap: 2px; }
.rd-nav a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 44px; padding: 0 12px; border-radius: 12px; text-decoration: none; font-size: 15px;
}
.rd-nav a[aria-current="page"] { background: var(--soft); font-weight: 500; }
.rd-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

.rd-person { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.rd-person-name { font-size: 14px; font-weight: 500; padding: 4px 8px 0; }
.rd-person-role { font-size: 13px; color: var(--muted); padding: 0 8px 6px; }

/* Buttons: primary is brand-filled, secondary is white with a border. 44px minimum tap targets. */
.rd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.rd-btn--primary { background: var(--brand); color: var(--on-brand); border: 0; }
.rd-btn--secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.rd-btn--block { width: 100%; min-height: 44px; font-size: 14px; }

.rd-muted { color: var(--head-muted); }

/* Hero */
.rd-hero { display: flex; flex-wrap: wrap; gap: 16px; padding: 16px; align-items: stretch; }
.rd-hero-text {
  flex: 1.15 1 440px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding: 40px 32px 40px 40px;
}
.rd-hero-head { display: flex; flex-direction: column; gap: 18px; }
.rd-hero h1 {
  font-size: 96px; line-height: 0.92; letter-spacing: -0.05em; font-weight: 600; color: var(--brand-text);
}
.rd-hero-sub { font-size: 34px; line-height: 1.12; letter-spacing: -0.03em; font-weight: 500; }
.rd-hero-sub > span { display: block; }
.rd-lead { font-size: 18px; line-height: 1.55; color: var(--body); max-width: 52ch; text-wrap: pretty; }
.rd-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.rd-hero-art {
  flex: 1 1 380px; position: relative; min-height: 440px; border-radius: 18px; background: var(--brand); overflow: hidden;
}
.rd-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--dots) 1px, transparent 1px);
  background-size: 18px 18px;
}
.rd-hero-art img {
  position: absolute; width: auto; border-radius: 12px; box-shadow: 0 24px 44px -16px rgba(0, 0, 0, 0.45);
}
.rd-hero-art .rd-art-a { left: 6%; top: 56px; width: 56%; transform: rotate(-6deg); }
.rd-hero-art .rd-art-b { right: 5%; top: 30px; width: 50%; transform: rotate(5deg); }
.rd-hero-art .rd-art-c { left: 16%; top: 210px; width: 60%; box-shadow: 0 30px 56px -16px rgba(0, 0, 0, 0.5) !important; }

/* Work: the accordion table */
.rd-work { padding: 44px 40px 40px; display: flex; flex-direction: column; gap: 28px; }
.rd-work-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.rd-work h2 { font-size: 40px; line-height: 1.08; letter-spacing: -0.03em; font-weight: 500; max-width: 24ch; }
.rd-work-intro { font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 44ch; }

.rd-table-scroll { overflow-x: auto; }
.rd-table { min-width: 860px; }
.rd-thead, .rd-row {
  display: grid; grid-template-columns: 52px minmax(0, 1.25fr) minmax(0, 2fr) minmax(0, 1.25fr) 40px;
}
.rd-thead {
  border-bottom: 1.5px solid var(--ink);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.rd-thead > span { padding: 14px 12px; }
.rd-acc-row { border-bottom: 1px solid var(--line); }
.rd-row {
  width: 100%; min-height: 88px; align-items: center; text-align: left; margin: 0; padding: 0;
  border: 0; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer;
}
.rd-acc-row.is-open > .rd-row, .rd-row[aria-expanded="true"] { background: var(--highlight); }
.rd-num { padding: 16px 12px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.rd-proj { padding: 16px 12px; display: flex; align-items: center; gap: 14px; min-width: 0; }
.rd-thumb { width: 72px; border-radius: 6px; border: 1px solid var(--line-strong); flex: none; }
.rd-proj-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rd-name { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.rd-domain { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.rd-question { padding: 16px 12px; font-size: 16px; line-height: 1.4; letter-spacing: -0.005em; }
.rd-for { padding: 16px 12px; font-size: 14px; line-height: 1.45; color: var(--body); }
.rd-chev { padding: 16px 12px 16px 0; display: flex; justify-content: center; }
.rd-chev svg { transition: transform 0.15s ease; }
.rd-row[aria-expanded="true"] .rd-chev svg { transform: rotate(180deg); }

.rd-panel {
  padding: 28px 12px 36px 64px; background: var(--panel);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 36px; align-items: start;
}
.rd-panel[hidden] { display: none; }
.rd-panel-img { width: 100%; border-radius: 12px; border: 1px solid var(--line-strong); box-shadow: 0 18px 36px -20px rgba(0, 0, 0, 0.35); }
.rd-panel-body { display: flex; flex-direction: column; gap: 18px; }
.rd-panel dl { display: flex; flex-direction: column; gap: 16px; }
.rd-panel dl > div { display: flex; flex-direction: column; gap: 4px; }
.rd-panel dt { font-size: 15px; font-weight: 600; color: var(--ink); }
.rd-panel dd { font-size: 15px; line-height: 1.55; }

/* Narrower screens: each project becomes a stacked row, so the details never sit off to the side of a scrolling table. */
@media (max-width: 1100px) {
  .rd-table { min-width: 0; }
  .rd-thead { display: none; }
  .rd-row {
    grid-template-columns: 44px minmax(0, 1fr) 40px;
    grid-template-areas: "num proj chev" ". question question" ". for for";
  }
  .rd-num { grid-area: num; padding: 20px 0 0 12px; }
  .rd-proj { grid-area: proj; padding: 16px 0 6px; }
  .rd-question { grid-area: question; padding: 0 12px 6px 0; }
  .rd-for { grid-area: for; padding: 0 12px 18px 0; }
  .rd-chev { grid-area: chev; padding: 20px 12px 0 0; }
  .rd-panel { padding: 24px 16px 28px; }
}

/* Contact tile: brand background */
.rd-contact {
  background: var(--brand); color: var(--on-brand); padding: 56px; position: relative; overflow: hidden;
  display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between;
}
.rd-contact-copy { display: flex; flex-direction: column; gap: 14px; flex: 1 1 360px; }
.rd-contact h2 { font-size: 44px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 500; }
.rd-contact h2 > span { color: var(--on-brand-muted); }
.rd-contact-links { display: flex; flex-direction: column; gap: 14px; flex: 0 1 auto; }
.rd-email {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px;
  background: var(--surface); color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 500;
}
.rd-email-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.rd-contact-row { display: flex; gap: 20px; justify-content: center; font-size: 14px; flex-wrap: wrap; }

.rd-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 8px 12px 12px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.rd-footer-links { display: flex; gap: 16px; flex-wrap: wrap; }

/* Desktop: sidebar stays beside the content; the hero and label columns align. */
@media (min-width: 761px) {
  .rd-hero-text { padding: 40px 32px 40px 40px; }
}

/* Tablet and phone */
@media (max-width: 900px) {
  .rd-hero-text { flex-basis: 100%; }
  .rd-hero-art { flex-basis: 100%; min-height: 360px; }
}
@media (max-width: 760px) {
  body.rd-body { padding: 12px; }
  .rd-hero-text { padding: 28px 22px 28px; gap: 22px; }
  .rd-hero h1 { font-size: 64px; }
  .rd-hero-sub { font-size: 26px; }
  .rd-work { padding: 28px 22px; }
  .rd-work h2 { font-size: 30px; }
  .rd-contact { padding: 32px 24px; }
  .rd-contact h2 { font-size: 32px; }
}
@media (max-width: 640px) {
  .rd-hero h1 { font-size: 52px; }
  .rd-hero-art { min-height: 300px; }
  .rd-contact-row { justify-content: flex-start; }
}

/* About page */
.rd-about-hero { padding: 16px; display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.rd-about-lead { font-size: 18px; line-height: 1.6; color: var(--body); max-width: 52ch; text-wrap: pretty; }
.rd-portrait {
  flex: 0 1 400px; min-width: 0; margin: 0; align-self: center; aspect-ratio: 4 / 5; max-height: 520px;
  border-radius: 18px; overflow: hidden; background: var(--brand);
}
.rd-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }

/* Two independent columns, so short stories don't leave gaps under them */
.rd-stories { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.rd-story-col { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.rd-story {
  background: var(--surface); border-radius: 26px; padding: 36px 36px 40px; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 16px;
}
.rd-story h2 { font-size: 32px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 500; }
.rd-story p { font-size: 16px; line-height: 1.6; color: var(--body); max-width: 64ch; text-wrap: pretty; }

@media (max-width: 760px) {
  .rd-portrait { flex-basis: 100%; max-height: none; }
  .rd-story { padding: 26px 22px 30px; }
  .rd-story h2 { font-size: 26px; }
}

/* Feedback page */
.rd-feedback-hero .rd-hero-text { gap: 24px; }
.rd-feedback-hero h1 { font-size: 84px; }
.rd-feedback-lead { font-size: 20px; line-height: 1.6; color: var(--body); max-width: 44ch; text-wrap: pretty; }
.rd-privacy-panel {
  flex: 1 1 380px; position: relative; min-height: 340px; border-radius: 18px; background: var(--brand);
  overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 40px; box-sizing: border-box;
}
.rd-privacy-panel .rd-dots { position: absolute; inset: 0; }
.rd-privacy-copy { position: relative; max-width: 380px; display: flex; flex-direction: column; gap: 12px; color: var(--on-brand); }
.rd-privacy-title { font-size: 32px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 500; }
.rd-privacy-copy p:not(.rd-privacy-title) { font-size: 16px; line-height: 1.55; color: var(--on-brand-muted); }

.rd-form-tile { padding: 44px 40px 48px; display: flex; flex-direction: column; gap: 24px; }
.rd-form-tile h2 { font-size: 40px; line-height: 1.08; letter-spacing: -0.03em; font-weight: 500; text-wrap: balance; }
.rd-form { display: flex; flex-direction: column; gap: 22px; max-width: 760px; }
.rd-form-note { font-size: 14px; color: var(--muted); }
.rd-form-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 18px; }
.rd-field { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 500; }
.rd-field input, .rd-field select, .rd-field textarea {
  width: 100%; box-sizing: border-box; min-height: 48px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px;
}
.rd-field textarea { resize: vertical; }
.rd-required, .rd-optional, .rd-hint { color: var(--muted); font-weight: 400; }
.rd-hint { font-size: 13px; line-height: 1.5; }
.rd-fieldset { margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 18px; }
.rd-fieldset legend { padding: 0 6px; font-size: 16px; font-weight: 600; color: var(--ink); }
.rd-fieldset[hidden] { display: none; }
.without-project { display: none; }
.rd-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding-top: 4px; }
.rd-form-actions .rd-hint { font-size: 14px; }
.rd-form-actions a, .rd-hint a { color: var(--brand-text); }
.button-secondary {
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; cursor: pointer;
}
.form-status { font-size: 15px; color: var(--brand-text); }
.form-status:empty { display: none; }
.rd-success {
  padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel);
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
}
.rd-success[hidden] { display: none; }
.rd-success h2 { font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 500; }

@media (max-width: 760px) {
  .rd-feedback-hero h1 { font-size: 56px; }
  .rd-feedback-lead { font-size: 18px; }
  .rd-form-tile { padding: 28px 22px 32px; }
  .rd-form-tile h2 { font-size: 30px; }
  .rd-privacy-panel { min-height: 280px; padding: 28px; }
}
@media (max-width: 640px) {
  .rd-feedback-hero h1 { font-size: 48px; }
}

/* Project pages */
.rd-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 500; text-decoration: none; }
.rd-project-hero .rd-hero-text { gap: 22px; }
.rd-project-hero h1 { font-size: 72px; }
.rd-project-action { margin-top: 4px; }
.rd-project-action .project-availability, .rd-project-action .project-action { display: inline-flex; }
.rd-project-action .project-action {
  align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--brand); color: var(--on-brand); text-decoration: none; font-size: 15px; font-weight: 500;
}
.rd-project-hero .rd-hero-art { min-height: 380px; }
.rd-project-hero .rd-hero-art .rd-art-a { left: 8%; top: 40px; width: 84%; transform: none; }

.rd-block { display: flex; flex-direction: column; gap: 22px; padding: 40px 40px 44px; }
.rd-block h2 { font-size: 40px; line-height: 1.08; letter-spacing: -0.03em; font-weight: 500; text-wrap: balance; }
.rd-block > p { font-size: 18px; line-height: 1.6; color: var(--body); max-width: 68ch; text-wrap: pretty; }

.rd-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.rd-card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.rd-card { background: none; border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.rd-card h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.rd-card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--body); }
.rd-card-lead { font-size: 22px !important; line-height: 1.2 !important; color: var(--ink) !important; letter-spacing: -0.02em; }

.rd-text { display: flex; flex-direction: column; gap: 6px; }
.rd-text h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); }
.rd-text p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--body); text-wrap: pretty; }

.rd-research { display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; }
.rd-research-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.rd-research .rd-stat { flex: 0 1 300px; min-height: 220px; justify-content: flex-end; padding: 32px; border-radius: 18px; }
.rd-research .rd-stat-value { font-size: 88px; line-height: 0.9; letter-spacing: -0.05em; }
.rd-research .rd-stat-text { font-size: 15px; line-height: 1.45; max-width: none; }

.rd-who { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 32px; align-items: start; }
.rd-who-text { display: flex; flex-direction: column; gap: 22px; }

.rd-stat {
  background: var(--brand); color: var(--on-brand); border-radius: 18px; padding: 28px 32px;
  display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden;
}
.rd-stat-value { font-size: 64px; line-height: 1; font-weight: 600; letter-spacing: -0.04em; }
.rd-stat-text { font-size: 16px; line-height: 1.5; color: var(--on-brand-muted); max-width: 40ch; }

.rd-users { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rd-users li { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 14px; background: var(--soft); font-size: 15px; line-height: 1.5; color: var(--body); }
.rd-users strong { color: var(--ink); font-size: 16px; font-weight: 600; }

.rd-figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.rd-figure img { width: 100%; border-radius: 16px; border: 1px solid var(--line-strong); box-shadow: 0 18px 36px -20px rgba(0, 0, 0, 0.35); }
.rd-figure figcaption { font-size: 14px; color: var(--muted); }

.rd-highlight {
  background: var(--highlight); color: var(--ink); border-radius: 18px; padding: 26px 28px;
  font-size: 17px; line-height: 1.6; max-width: 68ch;
}

.rd-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: step; }
.rd-steps li { display: flex; gap: 16px; align-items: flex-start; font-size: 16px; line-height: 1.55; }
.rd-step-num {
  width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--on-brand);
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; flex: none;
}
.rd-success-box { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.rd-success-box h3 { font-size: 18px; font-weight: 600; margin: 0; }
.rd-success-box p { font-size: 15px; line-height: 1.55; }

.rd-terms { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px 24px; }
.rd-terms > div { display: flex; flex-direction: column; gap: 4px; }
.rd-terms dt { font-size: 16px; font-weight: 600; }
.rd-terms dd { margin: 0; font-size: 15px; line-height: 1.55; color: var(--body); }

.rd-links { flex-direction: row; flex-wrap: wrap; gap: 12px 24px; padding: 28px 40px; font-size: 15px; }
.rd-links a { color: var(--brand-text); font-weight: 500; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.rd-links a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .rd-project-hero h1 { font-size: 52px; }
  .rd-block { padding: 28px 22px 32px; }
  .rd-block h2 { font-size: 28px; }
  .rd-stat-value { font-size: 52px; }
  .rd-research .rd-stat { flex: 1 1 100%; }
  .rd-research .rd-stat-value { font-size: 64px; }
  .rd-links { padding: 24px 22px; }
}

/* The demo button from the shared availability markup: one button, with the local status message kept for local use. */
.rd-project-action .project-availability { display: block; }
.rd-project-action .project-action { display: inline-flex; white-space: nowrap; }
.rd-project-action .availability-note:not(.service-status), .rd-project-action .project-related-actions { display: none; }
.rd-actions .availability-note:not(.service-status) { display: none; }

/* Long-form pages (the Nest information pages): the same tiles, with reading-width text. */
.rd-prose { display: flex; flex-direction: column; gap: 16px; padding: 40px 40px 44px; }
.rd-prose h1 { font-size: 64px; line-height: 1; letter-spacing: -0.045em; font-weight: 600; color: var(--brand-text); }
.rd-prose h2 { font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; margin-top: 12px; }
.rd-prose h3 { font-size: 20px; font-weight: 600; margin-top: 8px; }
.rd-prose p, .rd-prose li, .rd-prose dd { font-size: 16px; line-height: 1.65; color: var(--body); max-width: 70ch; text-wrap: pretty; }
.rd-prose ul, .rd-prose ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.rd-prose dl { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.rd-prose dt { font-weight: 600; color: var(--ink); }
.rd-prose a { color: var(--brand-text); font-weight: 500; }
.rd-prose .rd-btn { color: var(--on-brand); }
.rd-prose .rd-btn--secondary { color: var(--ink); }
@media (max-width: 760px) {
  .rd-prose { padding: 28px 22px 32px; }
  .rd-prose h1 { font-size: 44px; }
  .rd-prose h2 { font-size: 24px; }
}

/* The hidden attribute wins where a field sets its own display (the summary field in email mode). */
.rd-field[hidden] { display: none; }

/* Email-mode success state: the note box and actions match the form above it. */
.rd-success label { font-size: 15px; font-weight: 500; color: var(--ink); }
.rd-success textarea {
  width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 14px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; line-height: 1.5; resize: vertical;
}
.rd-success .feedback-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0; }
.rd-success .text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--brand-text); font-weight: 500; }

/* Project hero: the screenshot is centred in its panel at every width, so the panel has no empty band. */
.rd-project-hero .rd-hero-art { display: flex; align-items: center; justify-content: center; min-height: 0; padding: 32px 8%; }
.rd-project-hero .rd-hero-art .rd-art-a { position: relative; left: auto; top: auto; width: 100%; transform: none; }
.rd-project-action .project-action { gap: 8px; }

/* Homepage hero beside the headline: the three screenshots are centred in the tall panel. */
@media (min-width: 901px) {
  .rd-hero-art .rd-art-a { top: calc(50% - 130px); }
  .rd-hero-art .rd-art-b { top: calc(50% - 156px); }
  .rd-hero-art .rd-art-c { top: calc(50% + 24px); }
  .rd-project-hero .rd-hero-art .rd-art-a { top: auto; }
}

/* Lighthouse Simulator project page. Only what the shared project classes do not already cover; every rule is scoped
   to .lh-page or a lh- class, so no other page changes. The lamp core is the simulator's own lamp color. */
.lh-page { --lamp: #FFF1CC; }

/* Hero: the drawing fills a brand panel at every width, and the whole lighthouse stays in view. */
.lh-page .rd-project-hero .lh-art { display: block; min-height: 380px; padding: 0; }
.lh-art svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lh-art .s-star { fill: var(--surface); opacity: 0.8; }
.lh-art .s-beam { fill: var(--accent); opacity: 0.22; }
.lh-art .s-sea { fill: var(--ink); opacity: 0.35; }
.lh-art .s-rock { fill: var(--ink); opacity: 0.55; }
.lh-art .s-white { fill: var(--surface); }
.lh-art .s-soft { fill: var(--soft); }
.lh-art .s-ink { fill: var(--ink); }
.lh-art .s-gold { fill: var(--accent); }
.lh-art .s-lamp { fill: var(--lamp); }
.lh-page .rd-project-hero h1 { overflow-wrap: anywhere; }
.lh-page .rd-actions { align-items: center; gap: 10px 16px; }
.lh-note { font-size: 14px; color: var(--muted); }
.lh-notice {
  background: var(--highlight); color: var(--ink); border-left: 4px solid var(--brand); border-radius: 6px 14px 14px 6px;
  padding: 14px 18px; font-size: 15px; line-height: 1.5; max-width: 52ch;
}
.lh-notice strong { font-weight: 600; }

/* Inline code chips, the term grid, the audience cards and the number cards. */
.lh-code {
  font-family: var(--mono); font-size: 16px; background: var(--soft); border: 1px solid var(--line); border-radius: 6px;
  padding: 1px 6px; color: var(--ink); white-space: nowrap;
}
.lh-terms { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 24px; }
.lh-users { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 10px; }
.lh-num { font-size: 44px; line-height: 1; font-weight: 600; letter-spacing: -0.04em; color: var(--brand-text); }
.lh-stack { display: flex; flex-direction: column; gap: 22px; }
.lh-page .rd-block p strong { color: var(--ink); font-weight: 600; }

/* The problem: the paragraphs sit beside a stat tile whose "59,000" must stay on one line. */
.lh-page .rd-research-text p { font-size: 18px; line-height: 1.6; color: var(--body); max-width: 60ch; text-wrap: pretty; }
.lh-page .rd-research .rd-stat { min-width: 0; gap: 10px; }
.lh-page .rd-research .rd-stat-value { font-size: 64px; line-height: 0.95; white-space: nowrap; }

/* Feedback links sit inside a tile, so they drop the tile padding the shared .rd-links class adds. */
.lh-links { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 0; font-size: 15px; }

/* Reading width for the decisions, and 44 px tap targets for the sidebar brand, the contact row and the footer links. */
.lh-stack .rd-text p { max-width: 68ch; }
.lh-page .rd-brand { min-height: 44px; }
.lh-page .rd-contact-row { gap: 4px 20px; }
.lh-page .rd-contact-row a, .lh-page .rd-footer-links a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 900px) {
  .lh-page .rd-project-hero .lh-art { min-height: 360px; }
  .lh-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .lh-page .rd-research .rd-stat-value { font-size: 52px; }
}
@media (max-width: 640px) {
  .lh-page .rd-project-hero .lh-art { min-height: 280px; }
}
@media (max-width: 420px) {
  .lh-page .rd-project-hero h1 { font-size: 44px; }
  .lh-page .rd-actions .rd-btn { width: 100%; }
  .lh-terms { grid-template-columns: minmax(0, 1fr); }
  .lh-page .rd-research .rd-stat { padding: 24px; }
  .lh-page .rd-research .rd-stat-value { font-size: 48px; }
}
@media (max-width: 360px) {
  .lh-page .rd-project-hero h1 { font-size: 38px; }
}
