/* Ground Truth 3D — architect-oriented homepage */

:root {
  --bg: #fafafa;
  --bg-elevated: #ffffff;
  --ink: #0d0d0d;
  --ink-muted: #4a4a4a;
  --ink-subtle: #6b6b6b;
  --line: #e0e0e0;
  --line-strong: #c8c8c8;
  --secondary-block: #2a2f36;
  --accent: #b85c38;
  --accent-hover: #9d4d2e;
  --hero-pad: 5px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --max: 1200px;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Inter", var(--font-sans);
  --transition: 180ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ink);
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: color var(--transition), text-decoration-color var(--transition);
}

a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* ——— Top navigation ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.25rem;
  line-height: 1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.logo__mark {
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
  margin: 0;
}

.logo:hover {
  color: var(--ink);
  text-decoration: none;
}

.logo span {
  font-weight: 400;
  color: var(--ink-subtle);
  line-height: inherit;
}

.nav-primary {
  display: none;
  align-items: center;
  gap: var(--space-lg);
  margin-left: auto;
  margin-right: var(--space-sm);
}

@media (min-width: 768px) {
  .nav-primary {
    display: flex;
  }
}

.nav-primary a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-muted);
}

.nav-primary a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.menu-toggle:hover {
  border-color: var(--ink-muted);
  background: var(--bg);
}

.menu-toggle[aria-expanded="true"] {
  border-color: var(--ink);
}

.menu-toggle .bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform var(--transition);
}

.menu-toggle .bar::before,
.menu-toggle .bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform var(--transition), top var(--transition);
}

.menu-toggle .bar::before {
  top: -6px;
}

.menu-toggle .bar::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .bar {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .bar::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .bar::after {
  top: 0;
  transform: rotate(-45deg);
}

.dropdown-panel {
  position: fixed;
  inset: 0;
  top: 57px;
  background: rgba(13, 13, 13, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), visibility var(--transition);
  z-index: 99;
}

.dropdown-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dropdown-inner {
  position: absolute;
  right: 0;
  top: 0;
  width: min(100%, 320px);
  max-height: calc(100vh - 57px);
  overflow-y: auto;
  background: var(--bg-elevated);
  border-left: 1px solid var(--line);
  padding: var(--space-md);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.08);
}

.dropdown-inner a {
  display: block;
  padding: var(--space-sm) 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.dropdown-inner a:last-child {
  border-bottom: none;
}

.dropdown-inner a:hover {
  color: var(--accent);
}

.dropdown-inner__static {
  display: block;
  padding: var(--space-sm) 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
}

/* ——— Homepage hero (two-column layout — .page-home only) ——— */
.page-home .hero {
  background: var(--secondary-block);
  padding: calc(var(--hero-pad) + var(--space-lg)) var(--space-md)
    calc(var(--hero-pad) + var(--space-lg));
}

.page-home .hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 900px) {
  .page-home .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

.page-home .hero-copy {
  padding-left: var(--hero-pad);
  padding-right: var(--space-md);
  order: 2;
}

@media (min-width: 900px) {
  .page-home .hero-copy {
    order: 0;
  }
}

.page-home .hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 var(--space-sm);
}

.page-home .hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.5vw, 2.125rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 var(--space-md);
  max-width: 22ch;
}

.page-home .hero-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 var(--space-lg);
  max-width: 36ch;
  line-height: 1.55;
}

.page-home .hero-visual {
  position: relative;
  padding: 0;
  order: 1;
}

@media (min-width: 900px) {
  .page-home .hero-visual {
    order: 1;
    justify-self: end;
  }
}

.page-home .hero-visual img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center center;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-outline:hover {
  border-color: var(--ink);
  color: var(--ink);
  text-decoration: none;
}

.btn-block {
  width: 100%;
}

/* ——— Sections ——— */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md);
}

.section-tight {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-lg);
}

/* Less vertical gap between intro lede and “Who we serve” */
.section.section-tight + .section {
  padding-top: var(--space-xl);
}

.lede {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--ink-muted);
  max-width: 65ch;
  margin: 0;
}

/* ——— Client cards ——— */
.cards-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.client-card {
  background: var(--bg-elevated);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.client-card__link {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  text-decoration: none;
  color: inherit;
}

.client-card__link:hover h3,
.client-card__link:focus-visible h3 {
  color: var(--accent);
}

.client-card__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 1px;
}

.card-visual {
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #e8e8e8 0%, #d4d4d4 100%);
  margin-bottom: var(--space-md);
  border: 1px solid var(--line);
}

.card-visual--interior-architect {
  background-color: #e8e4dd;
  background-image: url("Interior_Architects_Designers/interior_architect_client_type_card.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.card-visual--architect {
  background-color: #1a1a1a;
  background-image: url("Architects/architect_client_page_hero_image.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.card-visual--property-owner {
  background-color: #1a1a1a;
  background-image: url("Owners_Operators/property_owners_client_page_hero_image.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.card-visual--property-operator {
  background-color: #0a0f18;
  background-image: url("Operators/property_operator_client_page_hero_image.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.card-visual--civic {
  background-color: #0a0a0a;
  background-image: url("Civic/civic_category_page_hero_image.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.card-visual--event-planner {
  background-color: #1a1814;
  background-image: url("Event_Planners/event_planning_hero_image.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.card-visual--builder {
  background-color: #3a3a3a;
  background-image: url("Builders/builders_client_card_image.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.card-visual--landscape-architect {
  background-color: #2a2d30;
  background-image: url("Landscape_Architects/landscape_architect_client_page_hero_image.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.card-visual--restaurant {
  background-color: #2c2a28;
  background-image: url("Restaurant/restaurant_property_page_hero_image.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.card-visual--retail {
  background-color: #e8e6e1;
  background-image: url("Retail/retail_property_page_hero_image.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.card-visual--commercial-building {
  background-color: #1a1d22;
  background-image: url("Commercial_Building_Existing_Conditions/commercial_project_page_hero_image.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.card-visual--site-existing-conditions {
  background-color: #f5f5f5;
  background-image: url("Site_Existing_Conditions/Site_Planning_Page_Hero_Image.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.card-visual--construction-progress {
  background-color: #6b6f74;
  background-image: url("Construction_Prograss_Monitoring/Construction_Progress_Monitoring_Page_Hero_Image.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.card-visual--disaster-planning {
  background-color: #2d3238;
  background-image: url("Disaster_Planning_Existing_Conditions/disaster_preparedness_page_hero_image.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.card-visual--historic-documentation {
  background-color: #c5d4e3;
  background-image: url("Historic_Documentation_Existing_Conditions/historic_preservation_service_page_hero_image.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.card-visual--facade-scanning {
  background-color: #4a5560;
  background-image: url("Facade_Scanning_Existing_Conditions/facade_scanning_service_page_hero_image.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.client-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 var(--space-xs);
  letter-spacing: -0.01em;
  text-align: center;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-wrap: balance;
}

.client-card p {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin: 0 0 auto;
  flex-grow: 1;
  line-height: 1.5;
  text-align: center;
}

.card-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.card-actions .btn-block {
  align-self: stretch;
}

/* ——— Quote ——— */
.quote-section {
  background: var(--ink);
  color: #fff;
  padding: var(--space-2xl) var(--space-md);
}

.quote-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.quote-section blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.quote-section cite {
  display: block;
  margin-top: var(--space-md);
  font-size: 0.875rem;
  font-style: normal;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
}

/* ——— CTA band ——— */
.cta-band {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
}

.cta-band .btn-primary {
  margin-top: var(--space-sm);
}

.cta-band p {
  margin: 0 0 var(--space-sm);
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

/* ——— 404 page ——— */
.page-404 .page-404-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(70vh, 560px);
  padding: var(--space-2xl) var(--space-md);
}

.page-404-section__inner {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  text-align: center;
}

.page-404-section__visual {
  margin: 0 auto var(--space-lg);
  max-width: 400px;
}

.page-404-section__visual img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
}

.page-404-section__title {
  margin: 0 0 var(--space-sm);
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.page-404-section__lede {
  margin: 0 0 var(--space-lg);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

.page-404-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  align-items: center;
  margin: 0;
}

/* ——— Lists ——— */
.section-heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin: 0 0 var(--space-md);
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.link-list li {
  border-bottom: 1px solid var(--line);
}

.link-list a {
  display: block;
  padding: var(--space-sm) 0;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--ink);
}

.link-list a:hover {
  color: var(--accent);
}

.link-list span.muted {
  display: block;
  padding: var(--space-sm) 0;
  font-size: 0.9375rem;
  color: var(--ink-subtle);
}

.two-col-lists {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .two-col-lists {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

/* ——— Blog ——— */
.blog-view-all {
  margin: calc(var(--space-sm) * -1) 0 var(--space-md);
  font-size: 0.9375rem;
}

.blog-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.blog-card {
  background: var(--bg-elevated);
  padding: var(--space-lg);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-card a {
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.4;
}

.blog-card a:hover {
  color: var(--accent);
}

.blog-grid--with-thumbs .blog-card {
  padding: 0;
  min-height: 0;
  display: block;
}

.blog-grid--with-thumbs .blog-card__link {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0;
  padding: var(--space-sm) var(--space-lg) var(--space-sm) var(--space-sm);
  text-decoration: none;
  color: inherit;
  min-height: 5.5rem;
}

.blog-grid--with-thumbs .blog-card__thumb {
  flex: 0 0 5.5rem;
  flex-shrink: 0;
  width: 5.5rem;
  height: 5.5rem;
  overflow: hidden;
  background: #e5e5e5;
  border-radius: 2px;
}

.blog-grid--with-thumbs .blog-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.blog-grid--with-thumbs .blog-card__inner {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding-left: var(--space-sm);
  align-self: stretch;
}

.blog-grid--with-thumbs .blog-card__title {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}

.blog-grid--with-thumbs .blog-card__link:hover .blog-card__title {
  color: var(--accent);
}

.blog-grid--with-thumbs .blog-card__inner .blog-label {
  margin-bottom: var(--space-xs);
}

@media (max-width: 1023px) {
  .blog-grid--with-thumbs .blog-card__link {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-md);
    min-height: 0;
  }

  .blog-grid--with-thumbs .blog-card__thumb {
    flex: 0 0 auto;
  }

  .blog-grid--with-thumbs .blog-card__inner {
    flex: 1 1 auto;
    width: 100%;
    padding-left: 0;
    align-self: stretch;
  }
}

.blog-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

/* ——— Example deliverables ——— */
.page-hero--deliverables .page-hero__strip {
  height: 150px;
  max-height: 150px;
}

.page-hero--deliverables .page-hero__overlay {
  padding-top: var(--space-sm);
}

.page-hero--deliverables .page-hero__title {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  margin-bottom: var(--space-sm);
}

.deliverables-intro .deliverables-toc {
  margin: var(--space-md) 0 0;
  padding-left: 1.25rem;
  max-width: 72ch;
}

.deliverables-intro .deliverables-toc a {
  color: var(--accent);
}

.deliverables-cards-section {
  padding-top: calc(var(--space-xl) / 2);
}

.deliverables-cards-heading {
  margin-bottom: var(--space-md);
}

.deliverables-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-md);
  max-width: var(--max);
  margin: 0 auto;
}

.deliverables-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg-elevated);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.deliverables-card:hover,
.deliverables-card:focus-visible {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.deliverables-card__img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--line);
}

.deliverables-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.deliverables-card__label {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  flex: 1;
}

.deliverables-card__img-wrap .deliverables-card__icon {
  position: absolute;
  top: var(--space-xs);
  right: var(--space-xs);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-muted);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.deliverables-card:hover .deliverables-card__img-wrap .deliverables-card__icon,
.deliverables-card:focus-visible .deliverables-card__img-wrap .deliverables-card__icon {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.98);
}

.deliverables-list {
  margin: var(--space-sm) 0 0;
  padding-left: 1.25rem;
  max-width: 72ch;
  color: var(--ink-muted);
  line-height: 1.6;
}

.deliverables-sample-btn {
  margin-right: var(--space-sm);
  vertical-align: middle;
}

.deliverables-sample-note {
  font-size: 0.875rem;
  color: var(--ink-subtle);
}

.deliverables-drawing-set__row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-md);
  max-width: var(--max);
  margin: 0 auto;
}

.deliverables-drawing-set__thumb {
  width: 400px;
  height: 400px;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg-elevated);
}

.deliverables-drawing-set__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

.deliverables-drawing-set__body > :first-child {
  margin-top: 0;
}

.deliverables-drawing-set__cta {
  margin-top: auto;
  margin-bottom: 0;
}

.deliverables-drawing-set__cta .btn-outline {
  border: none;
}

.deliverables-drawing-set__cta .btn-outline:hover {
  border: none;
}

@media (max-width: 540px) {
  .deliverables-drawing-set__row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    text-align: center;
  }

  .deliverables-drawing-set__thumb {
    width: 100%;
    height: auto;
    max-width: none;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
  }

  .deliverables-drawing-set__body {
    min-height: 0;
    text-align: left;
    width: 100%;
  }

  .deliverables-drawing-set__cta {
    margin-top: var(--space-md);
  }

  .deliverables-drawing-set__body .deliverables-list {
    margin-left: auto;
    margin-right: auto;
    max-width: 72ch;
  }
}

.deliverables-lightbox {
  max-width: min(96vw, 960px);
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
}

.deliverables-lightbox::backdrop {
  background: rgba(13, 13, 13, 0.75);
}

.deliverables-lightbox__inner {
  position: relative;
  background: var(--bg-elevated);
  padding: var(--space-md);
  border-radius: 2px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}

.deliverables-lightbox__close {
  position: absolute;
  top: var(--space-xs);
  right: var(--space-xs);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 2px;
}

.deliverables-lightbox__close:hover {
  background: var(--line);
}

.deliverables-lightbox__img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: min(85vh, 720px);
  margin: 0 auto;
}

.deliverables-viewer-dialog__inner {
  padding: var(--space-lg);
  max-width: 28rem;
}

.deliverables-wide-dialog {
  max-width: min(96vw, 920px);
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
}

.deliverables-wide-dialog::backdrop {
  background: rgba(13, 13, 13, 0.78);
}

.deliverables-wide-dialog__inner {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: var(--space-lg);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
}

.deliverables-wide-dialog__title {
  margin: 0 0 var(--space-xs);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  padding-right: 2.5rem;
}

.deliverables-wide-dialog__hint {
  margin: 0 0 var(--space-md);
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.5;
  max-width: 65ch;
}

.deliverables-wide-dialog__hint code {
  font-size: 0.8125rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--ink);
}

.deliverables-marzipano-error {
  margin: 0 0 var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 2px;
  max-width: 72ch;
}

.deliverables-marzipano-viewer {
  width: 100%;
  margin: 0 auto;
  height: min(62vh, 560px);
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  background: #1a1a1a;
}

.deliverables-marzipano-viewer canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
}

.deliverables-sketchfab-viewer {
  width: 100%;
  margin: 0 auto;
  height: min(62vh, 560px);
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  background: #1a1a1a;
  position: relative;
}

.deliverables-sketchfab-viewer__iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
}

.deliverables-sketchfab-viewer__iframe[hidden] {
  display: none !important;
}

.deliverables-rvt-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  height: 100%;
  min-height: 260px;
  padding: var(--space-lg);
  text-align: center;
}

.deliverables-rvt-panel[hidden] {
  display: none !important;
}

.deliverables-rvt-panel__note {
  margin: 0;
  max-width: 42ch;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

.deliverables-obj-viewer {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 260px;
}

.deliverables-obj-viewer[hidden] {
  display: none !important;
}

.deliverables-obj-canvas-host {
  width: 100%;
  height: min(62vh, 560px);
  min-height: 260px;
}

.deliverables-obj-canvas-host canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
}

.deliverables-obj-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: var(--space-md);
  font-size: 0.9375rem;
  color: var(--ink-muted);
  background: rgba(26, 26, 26, 0.85);
  pointer-events: none;
}

.deliverables-obj-loading[hidden] {
  display: none !important;
}

.deliverables-sketchfab-viewer__cta {
  margin: var(--space-md) 0 0;
  text-align: center;
}

.deliverables-pdf-dialog__actions {
  margin: 0 0 var(--space-md);
}

.deliverables-pdf-dialog__viewer {
  width: 100%;
  margin: 0 auto;
  height: min(62vh, 560px);
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  background: #2a2a2a;
}

.deliverables-pdf-dialog__iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.deliverables-viewer-dialog__title {
  margin: 0 0 var(--space-sm);
  font-size: 1.125rem;
  font-weight: 600;
}

.deliverables-viewer-dialog__inner p {
  margin: 0 0 var(--space-md);
  color: var(--ink-muted);
  line-height: 1.55;
}

.page-example-deliverables .footer-inner {
  align-items: flex-start;
}

@media (min-width: 768px) {
  .page-example-deliverables .footer-links {
    text-align: right;
  }
}

/* ——— Footer ——— */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  padding: var(--space-xl) var(--space-md);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-cta .btn-primary {
  text-decoration: none;
}

.footer-links {
  text-align: left;
}

@media (min-width: 768px) {
  .footer-links {
    text-align: right;
  }
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  justify-content: flex-end;
}

.footer-links a {
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--ink-muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.sitemap-block {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
  max-width: 420px;
  margin-left: auto;
}

@media (max-width: 767px) {
  .sitemap-block {
    margin-left: 0;
    max-width: none;
  }
}

.sitemap-block summary {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  cursor: pointer;
  list-style: none;
}

.sitemap-block summary::-webkit-details-marker {
  display: none;
}

.sitemap-list {
  margin: var(--space-sm) 0 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: var(--space-md);
  font-size: 0.8125rem;
}

.sitemap-list li {
  break-inside: avoid;
  margin-bottom: 0.35rem;
}

.sitemap-list a {
  color: var(--ink-muted);
}

/* ——— Inner pages (not homepage): nav variant ——— */
.site-header--category .nav-primary {
  display: none;
}

/* Inner pages: full-width strip hero (edge-to-edge image, cover + center) — use on all pages except .page-home */
.page-hero__strip {
  position: relative;
  width: 100%;
  height: 250px;
  max-height: 250px;
  background: #3a3d42;
  overflow: hidden;
}

.page-hero__img-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-hero__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.page-hero__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: var(--space-md) 0 var(--space-sm);
  background: linear-gradient(
    to top,
    rgba(13, 13, 13, 0.88) 0%,
    rgba(13, 13, 13, 0.45) 55%,
    transparent 100%
  );
}

/* Align with .section + .prose-commercial column (max-width, horizontal padding, 72ch text measure) */
.page-hero__overlay-inner {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
  box-sizing: border-box;
}

.page-hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 var(--space-xs);
  max-width: 72ch;
}

.page-hero__subtitle {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 var(--space-sm);
  max-width: 72ch;
  line-height: 1.45;
}

.page-hero__overlay .btn-primary {
  margin-top: var(--space-xs);
}

.section--dense {
  padding: var(--space-xl) var(--space-md);
}

/* Commercial (and similar): half the default gap between primary prose + white paper and client cards */
.section--dense:has(.prose-commercial) {
  padding-bottom: calc(var(--space-xl) / 2);
}

.section--dense:has(.prose-commercial) + .section--dense {
  padding-top: calc(var(--space-xl) / 2);
}

.section--dense .section-heading {
  margin-bottom: var(--space-sm);
}

.prose-commercial {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 72ch;
}

.prose-commercial > p:first-of-type {
  margin-top: 0;
}

.prose-commercial p {
  margin: 0 0 var(--space-md);
}

.prose-commercial h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin: var(--space-lg) 0 var(--space-sm);
}

.prose-commercial h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin: var(--space-md) 0 var(--space-xs);
}

.prose-commercial ul {
  margin: 0 0 var(--space-md);
  padding-left: 1.25rem;
}

.prose-commercial li {
  margin-bottom: var(--space-xs);
}

.prose-commercial li ul {
  margin-top: var(--space-xs);
  margin-bottom: 0;
}

/* About Us — founders photos */
.about-founders {
  margin: var(--space-xl) 0 var(--space-lg);
  max-width: 72ch;
}

.about-founders__title {
  margin: 0 0 var(--space-md);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}

.about-founders__grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .about-founders__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
}

.about-founders__figure {
  margin: 0;
}

.about-founders__figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.about-founders__caption {
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.about-founders__caption p {
  margin: 0;
}

.about-founders__caption p + p {
  margin-top: var(--space-sm);
}

.prose-commercial .prose-figure {
  margin: var(--space-lg) 0 var(--space-md);
  max-width: 100%;
}

.prose-commercial .prose-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
}

.prose-commercial .viz-comparison-figure {
  margin: var(--space-xl) 0;
  max-width: 100%;
}

.prose-commercial .viz-comparison-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
}

.viz-video-block {
  margin: var(--space-xl) 0;
  max-width: 72ch;
}

.viz-video-block video {
  width: 100%;
  height: auto;
  display: block;
  background: #0d0d0d;
  border: 1px solid var(--line);
}

.viz-video-controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  align-items: center;
}

.read-more-details {
  margin: var(--space-md) 0 var(--space-lg);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  max-width: 72ch;
}

.read-more-details summary {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--accent);
  list-style: none;
}

.read-more-details summary::-webkit-details-marker {
  display: none;
}

.read-more-details summary::after {
  content: " +";
  font-weight: 700;
}

.read-more-details[open] summary::after {
  content: " −";
}

.read-more-details .read-more-body {
  padding: 0 var(--space-md) var(--space-md);
  border-top: 1px solid var(--line);
  padding-top: var(--space-md);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

.read-more-details .read-more-body p {
  margin: 0 0 var(--space-md);
}

.read-more-details .read-more-body h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin: var(--space-lg) 0 var(--space-sm);
}

.read-more-details .read-more-body h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin: var(--space-md) 0 var(--space-xs);
}

.read-more-details .read-more-body ul,
.read-more-details .read-more-body ol {
  margin: 0 0 var(--space-md);
  padding-left: 1.25rem;
}

.read-more-details .read-more-body li {
  margin-bottom: var(--space-xs);
}

.read-more-details .read-more-body li ul {
  margin-top: var(--space-xs);
  margin-bottom: 0;
}

.white-paper-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  margin-top: var(--space-lg);
}

/* Residential category PRD: hero image letterboxed (no clipping), dual CTAs on dark overlay */
.page-hero--residential .page-hero__img-wrap img {
  object-fit: contain;
  object-position: center center;
}

/* Civic category PRD: panoramic hero letterboxed (no clipping) */
.page-hero--civic .page-hero__img-wrap img {
  object-fit: contain;
  object-position: center center;
}

.page-hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: var(--space-xs);
}

.page-hero__cta-group .btn-primary {
  margin-top: 0;
}

.page-hero--residential .page-hero__cta-group .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}

.page-hero--residential .page-hero__cta-group .btn-outline:hover {
  border-color: #fff;
  color: #fff;
}

/* Architect / interior-architect client pages PRD: wide panoramic hero, letterboxed */
.page-hero--architect .page-hero__img-wrap img,
.page-hero--interior-architect .page-hero__img-wrap img {
  object-fit: contain;
  object-position: center center;
}

.page-hero--architect .page-hero__cta-group .btn-outline,
.page-hero--interior-architect .page-hero__cta-group .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}

.page-hero--architect .page-hero__cta-group .btn-outline:hover,
.page-hero--interior-architect .page-hero__cta-group .btn-outline:hover {
  border-color: #fff;
  color: #fff;
}

/* Edge-to-edge hero image in strip (opt-in: /Residential, /Architects, /Civic) */
.page-hero--full-bleed .page-hero__img-wrap img {
  object-fit: cover;
  object-position: center center;
}

/* Interior architects: full-bleed overrides letterboxed rule above */
.page-hero--interior-architect.page-hero--full-bleed .page-hero__img-wrap img {
  object-fit: cover;
  object-position: center center;
}

/* ——— Residential quote estimator ——— */
body.page-estimator {
  background-color: #e8e4dd;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.78),
      rgba(245, 242, 237, 0.9)
    ),
    url("residential_estimator/residential_estimator_bg.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.page-estimator .estimator-intro {
  padding-bottom: calc(var(--space-xl) / 2);
}

.estimator-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-sm);
}

.estimator-lede {
  max-width: 72ch;
  margin: 0;
  color: var(--ink-muted);
}

.estimator-lede strong {
  color: var(--ink);
}

.estimator-form {
  position: relative;
}

.estimator-layout {
  display: grid;
  gap: var(--space-xl);
  max-width: var(--max);
  margin: 0 auto;
  align-items: start;
}

@media (min-width: 900px) {
  .estimator-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.estimator-form-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .estimator-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field--full {
  grid-column: 1 / -1;
}

.estimator-form .form-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-xs);
  color: var(--ink);
}

.estimator-form .req {
  color: var(--accent);
}

.estimator-form input[type="text"],
.estimator-form input[type="email"],
.estimator-form input[type="number"] {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font: inherit;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--bg-elevated);
}

.estimator-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.estimator-fieldset {
  margin: var(--space-lg) 0;
  padding: var(--space-md);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg-elevated);
}

.estimator-fieldset legend {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0 var(--space-xs);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  cursor: pointer;
  font-size: 0.9375rem;
}

.form-check input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.form-error {
  color: #8b2e2e;
  font-size: 0.9375rem;
  margin: var(--space-sm) 0 0;
}

.form-success {
  color: #1f5f1f;
  font-size: 0.9375rem;
  margin: var(--space-sm) 0 0;
  padding: var(--space-sm) var(--space-md);
  border-radius: 2px;
  background: rgba(34, 139, 34, 0.1);
  border: 1px solid rgba(34, 139, 34, 0.3);
}

.estimator-actions {
  margin-top: var(--space-lg);
}

.estimator-results {
  padding: var(--space-md);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg-elevated);
  position: sticky;
  top: calc(var(--space-md) + 48px);
}

.estimator-results__heading {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.estimator-breakdown {
  margin: 0;
}

.estimator-breakdown > div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.estimator-breakdown dt {
  margin: 0;
  color: var(--ink-muted);
  font-weight: 400;
}

.estimator-breakdown dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
}

.estimator-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
  margin: var(--space-md) 0 0;
  padding-top: var(--space-md);
  border-top: 2px solid var(--ink);
  font-size: 1.125rem;
}

.estimator-total__label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.875rem;
}

.estimator-total__value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.estimator-addons {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
}

.estimator-addons__title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 var(--space-sm);
}

.estimator-addons__list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.estimator-addons__list li {
  margin-bottom: var(--space-xs);
}

.estimator-addons__note {
  margin: var(--space-sm) 0 0;
  font-size: 0.8125rem;
  color: var(--ink-subtle);
}

.estimator-cta-bottom {
  text-align: center;
  padding-top: var(--space-lg);
}

.estimator-cta-text {
  margin: 0 0 var(--space-md);
  font-size: 1.05rem;
  color: var(--ink-muted);
}

.estimator-message-field {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— Residential scan scheduler ——— */
body.page-scan-scheduler {
  background-color: #e8e4dd;
  background-image: linear-gradient(rgba(255, 255, 255, 0.78), rgba(245, 242, 237, 0.9)),
    url("residential_estimator/residential_estimator_bg.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.scan-scheduler-main {
  max-width: var(--max);
  margin: 0 auto;
  padding-bottom: var(--space-xl);
}

.scan-scheduler-intro {
  padding-bottom: calc(var(--space-xl) / 2);
}

.scan-scheduler-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-sm);
}

.scan-scheduler-lede {
  max-width: 72ch;
  margin: 0;
  color: var(--ink-muted);
}

.scan-scheduler-lede strong {
  color: var(--ink);
}

.scan-scheduler-layout {
  max-width: 720px;
  margin: 0 auto;
}

.scan-scheduler-fieldset-hint {
  margin: 0 0 var(--space-sm);
  font-size: 0.875rem;
  color: var(--ink-subtle);
}

.scan-scheduler-site-conditional {
  margin-top: var(--space-md);
}

.scan-scheduler-terrain {
  margin: var(--space-md) 0 0;
  padding: var(--space-md);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
}

.scan-scheduler-terrain-legend {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0 var(--space-xs);
}

.scan-scheduler-form .form-field textarea {
  width: 100%;
  margin-top: var(--space-xs);
  padding: var(--space-sm);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.5;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--bg-elevated);
  resize: vertical;
  min-height: 6rem;
}

.scan-scheduler-form .form-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.schedule-calendar-fieldset {
  margin-top: var(--space-md);
}

.schedule-calendar-root {
  margin: var(--space-md) 0;
}

.schedule-calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.schedule-calendar__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 600;
  text-align: center;
  flex: 1;
}

.schedule-calendar__nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.schedule-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  max-width: 420px;
}

.schedule-calendar__dow {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  text-align: center;
  padding: var(--space-xs) 0;
}

.schedule-calendar__cell--empty {
  min-height: 2.5rem;
}

.schedule-calendar__day {
  min-height: 2.75rem;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg-elevated);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.schedule-calendar__day:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--bg);
}

.schedule-calendar__day--selected {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.04);
}

.schedule-calendar__day--disabled {
  cursor: not-allowed;
  opacity: 0.45;
  background: var(--bg);
}

.schedule-calendar__day--blocked {
  text-decoration: line-through;
}

.schedule-calendar__day--blocked-admin {
  background: rgba(180, 60, 60, 0.12);
  border-color: rgba(140, 40, 40, 0.35);
  color: var(--ink);
}

.schedule-slot-row {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
}

.schedule-slot-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--ink);
}

.schedule-slot-checks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* ——— Scan scheduler admin ——— */
.page-scheduler-admin .schedule-admin-code {
  font-size: 0.875em;
  padding: 0.1em 0.35em;
  border-radius: 2px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
}

.schedule-admin-layout {
  max-width: 720px;
}

.schedule-admin-gate {
  padding: var(--space-lg);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg-elevated);
}

.schedule-admin-gate-hint {
  margin: 0 0 var(--space-md);
  color: var(--ink-muted);
}

.schedule-admin-gate-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-md);
}

.schedule-admin-password-field {
  flex: 1;
  min-width: 200px;
  margin: 0;
}

.schedule-admin-password-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.schedule-admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.schedule-admin-import-label {
  cursor: pointer;
  margin: 0;
}

.schedule-admin-blocked-panel {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
}

.schedule-admin-blocked-heading {
  margin: 0 0 var(--space-sm);
  font-size: 1rem;
  font-weight: 600;
}

.schedule-admin-blocked-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.schedule-admin-blocked-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.schedule-admin-remove {
  flex-shrink: 0;
  padding: 0.25rem 0.6rem;
  font-size: 0.8125rem;
}

.schedule-admin-session-note {
  margin: var(--space-md) 0 0;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.schedule-admin-auth-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.schedule-admin-sign-out {
  display: inline;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.schedule-admin-sign-out:hover {
  color: var(--ink);
}

.page-admin-auth .schedule-admin-auth-card {
  padding: var(--space-lg);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg-elevated);
  max-width: 28rem;
}

.schedule-admin-auth-form .form-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.schedule-admin-auth-form input[type="password"] {
  width: 100%;
  margin-top: var(--space-xs);
  padding: var(--space-sm);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--bg);
}

.schedule-admin-auth-actions {
  margin-top: var(--space-md);
}

.schedule-admin-auth-footnote {
  margin: var(--space-lg) 0 0;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* ——— Get in Touch (full-bleed background + form panel) ——— */
.page-get-in-touch {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-get-in-touch .get-in-touch-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.get-in-touch-hero {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: min(720px, calc(100vh - 120px));
}

.get-in-touch-hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("Get_in_Touch/get_in_touch_hero_image.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.get-in-touch-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 13, 13, 0.5) 0%,
    rgba(13, 13, 13, 0.62) 45%,
    rgba(13, 13, 13, 0.72) 100%
  );
}

.get-in-touch-hero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.get-in-touch-panel {
  width: 100%;
  max-width: 440px;
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 2px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.get-in-touch-panel__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-sm);
  color: var(--ink);
}

.get-in-touch-panel__lede {
  margin: 0 0 var(--space-lg);
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.get-in-touch-panel__lede strong {
  color: var(--ink);
}

.get-in-touch-panel__success {
  margin: 0 0 var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: 2px;
  background: rgba(34, 139, 34, 0.12);
  border: 1px solid rgba(34, 139, 34, 0.35);
  color: var(--ink);
  font-size: 0.9375rem;
}

.get-in-touch-panel__error {
  margin: 0 0 var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: 2px;
  background: rgba(180, 40, 40, 0.08);
  border: 1px solid rgba(180, 40, 40, 0.35);
  color: var(--ink);
  font-size: 0.9375rem;
}

.get-in-touch-form .form-field {
  margin-bottom: var(--space-md);
}

.get-in-touch-form .form-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-xs);
  color: var(--ink);
}

.get-in-touch-form .req {
  color: var(--accent);
}

.get-in-touch-form input[type="text"] {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font: inherit;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: #fff;
  box-sizing: border-box;
}

.get-in-touch-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.get-in-touch-form__actions {
  margin-top: var(--space-lg);
}

.site-header--on-dark {
  background: rgba(13, 13, 13, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.logo--on-dark {
  color: #fff;
}

.logo--on-dark:hover {
  color: #fff;
}

.logo--on-dark span {
  color: rgba(255, 255, 255, 0.75);
}

.menu-toggle--on-dark .bar,
.menu-toggle--on-dark .bar::before,
.menu-toggle--on-dark .bar::after {
  background: #fff;
}

.site-footer--compact {
  padding: var(--space-md) 0;
  background: var(--secondary-block);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer--compact .footer-inner--git {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space-md);
  justify-content: center;
}

.footer-links--inline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer--compact a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.site-footer--compact a:hover {
  color: #fff;
  text-decoration-color: var(--accent);
}

/* ——— Stories / blog (Rivian-inspired editorial feed) ——— */
.page-stories {
  background: #ebebeb;
}

.stories-header {
  border-bottom: 1px solid var(--line);
}

.stories-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.stories-masthead {
  background: #0d0d0d;
  color: #fff;
  padding: 0;
}

.stories-masthead__hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(360px, 52vh, 520px);
  overflow: hidden;
}

.stories-masthead__hero--no-video {
  min-height: 0;
}

.stories-masthead__video-hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

.stories-masthead__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.stories-masthead__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(13, 13, 13, 0.45) 0%,
    rgba(13, 13, 13, 0.68) 45%,
    rgba(13, 13, 13, 0.78) 100%
  );
  pointer-events: none;
}

.stories-masthead__inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) var(--space-md);
}

.stories-masthead__eyebrow {
  margin: 0 0 var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.stories-masthead__title {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stories-masthead__tagline {
  margin: 0 auto var(--space-lg);
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  max-width: 52ch;
}

.stories-masthead__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  align-items: center;
  margin: 0;
}

.stories-masthead__btn-outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.stories-masthead__btn-outline:hover {
  border-color: #fff;
  color: #fff;
}

.stories-masthead__video-control {
  margin: var(--space-md) 0 0;
  text-align: center;
}

.stories-masthead__video-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.25);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.stories-masthead__video-toggle:hover {
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
}

.stories-masthead__video-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.stories-masthead__video-toggle-icon svg {
  width: 1.125rem;
  height: 1.125rem;
  display: block;
}

.stories-feed-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) var(--space-2xl);
}

.stories-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.stories-card {
  display: grid;
  gap: var(--space-md);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid #d4d4d4;
  background: transparent;
}

@media (min-width: 768px) {
  .stories-card {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: start;
    gap: var(--space-lg);
    padding: var(--space-xl) 0;
  }

  .stories-card--featured {
    grid-template-columns: 1fr;
    padding-top: var(--space-lg);
  }

  .stories-card--featured .stories-card__media {
    aspect-ratio: 21 / 9;
  }

  .stories-card--featured .stories-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.stories-card__media {
  display: block;
  overflow: hidden;
  border-radius: 2px;
  background: #ccc;
  aspect-ratio: 16 / 10;
}

.stories-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.3s ease;
}

.stories-card__media:hover img {
  transform: scale(1.03);
  opacity: 0.95;
}

.stories-card__body {
  padding: 0;
}

.stories-card__label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.stories-card__headline {
  margin: 0 0 var(--space-xs);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.stories-card__headline a {
  color: var(--ink);
  text-decoration: none;
}

.stories-card__headline a:hover {
  color: var(--accent);
  text-decoration: none;
}

.stories-card__deck {
  margin: 0 0 var(--space-sm);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-muted);
  line-height: 1.4;
}

.stories-card__date {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink-subtle);
  margin-bottom: var(--space-sm);
}

.stories-card__excerpt {
  margin: 0 0 var(--space-md);
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.6;
  max-width: 52ch;
}

.stories-card__read {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

.stories-card__read:hover {
  color: var(--accent);
  text-decoration: none;
}

.stories-load-more {
  text-align: center;
  padding: var(--space-xl) 0 0;
}

.stories-load-more__hint {
  margin: 0 0 var(--space-md);
  font-size: 0.875rem;
  color: var(--ink-subtle);
}

.stories-footer {
  background: #0d0d0d;
  color: rgba(255, 255, 255, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-xl) var(--space-md);
}

.stories-footer .footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.stories-footer .footer-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.stories-footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration-color: rgba(255, 255, 255, 0.3);
}

.stories-footer a:hover {
  color: #fff;
  text-decoration-color: var(--accent);
}

.stories-footer__legal {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Single story article */
.page-story-article {
  background: #fafafa;
  overflow-x: hidden;
}

.page-story-article .story-article {
  max-width: none;
  margin: 0;
  padding: 0;
}

.story-article__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) var(--space-2xl);
}

.story-article__masthead {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: clamp(380px, 72vh, 720px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: #1a1a1a;
}

.story-article__hero {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: #2a2a2a;
}

.story-article__hero img,
.story-article__hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.story-article__hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(13, 13, 13, 0.2) 0%,
    rgba(13, 13, 13, 0.35) 38%,
    rgba(13, 13, 13, 0.82) 85%,
    rgba(13, 13, 13, 0.92) 100%
  );
  pointer-events: none;
}

.story-article__back {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 3;
  display: inline-block;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.story-article__back:hover {
  color: #fff;
}

.story-article__hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md) var(--space-lg);
  text-align: center;
  pointer-events: none;
}

.story-article__masthead:has(.story-article__hero video):not(:has(.story-article__hero-video-bar))
  .story-article__hero-overlay {
  padding-bottom: 3.25rem;
}

.story-article__masthead:has(.story-article__hero-video-bar) .story-article__hero-overlay {
  padding-bottom: 5rem;
}

.story-article__hero-video-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-sm) var(--space-md) var(--space-md);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 45%, transparent 100%);
  pointer-events: auto;
}

.story-article__masthead .story-article__label {
  margin: 0 0 var(--space-sm);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232, 168, 140, 0.95);
}

.story-article__masthead .story-article__title {
  margin: 0 0 var(--space-sm);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.story-article__masthead .story-article__deck {
  margin: 0 0 var(--space-md);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.story-article__masthead .story-article__meta {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
}

.story-article__scroll-hint {
  margin-top: var(--space-md);
  display: flex;
  justify-content: center;
  color: rgba(255, 255, 255, 0.72);
}

.story-article__scroll-hint-icon {
  display: block;
  animation: story-article-scroll-hint 2.2s ease-in-out infinite;
}

@keyframes story-article-scroll-hint {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.75;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-article__scroll-hint-icon {
    animation: none;
  }
}

/* Story masthead without hero image/video (text-only band) */
.story-article__masthead--no-hero {
  min-height: auto;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  max-width: none;
  padding: var(--space-xl) var(--space-md) var(--space-2xl);
  justify-content: flex-start;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  overflow: visible;
}

.story-article__masthead--no-hero .story-article__back {
  position: relative;
  top: auto;
  left: auto;
  align-self: flex-start;
  margin: 0 0 var(--space-lg);
  color: var(--ink-muted);
  text-shadow: none;
}

.story-article__masthead--no-hero .story-article__back:hover {
  color: var(--ink);
}

.story-article__masthead--no-hero .story-article__hero-overlay {
  padding: 0;
  text-align: left;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.story-article__masthead--no-hero .story-article__label {
  color: var(--accent);
}

.story-article__masthead--no-hero .story-article__title {
  color: var(--ink);
  text-shadow: none;
}

.story-article__masthead--no-hero .story-article__deck {
  color: var(--ink-muted);
}

.story-article__masthead--no-hero .story-article__meta {
  color: var(--ink-subtle);
}

.story-article__masthead--no-hero .story-article__scroll-hint {
  justify-content: flex-start;
  color: var(--ink-muted);
}

.story-article__lede {
  margin: 0 0 var(--space-lg);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
}

.story-article__hero--slideshow .story-article__slideshow-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.story-article__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
}

.story-article__slide.is-active {
  opacity: 1;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .story-article__slide {
    transition: none;
  }
}

.story-article__slideshow-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.story-article__slideshow-nav:hover {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
}

.story-article__slideshow-nav--prev {
  left: var(--space-sm);
}

.story-article__slideshow-nav--next {
  right: var(--space-sm);
}

.story-article__slideshow-nav svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.story-article__body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
}

.story-article__body p {
  margin: 0 0 var(--space-md);
}

.story-article__body .story-article__figure {
  margin: 0 0 var(--space-lg);
}

.story-article__body .story-article__figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  background: #eaeaea;
}

.story-article__figure-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  margin: 0 0 var(--space-lg);
}

@media (min-width: 640px) {
  .story-article__figure-row {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

.story-article__figure-row .story-article__figure {
  margin: 0;
}

/* Equal-sized tiles in a 3-up row (same aspect box for each image) */
.story-article__figure-row--uniform .story-article__figure {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1024 / 585;
  background: #eaeaea;
  border-radius: 2px;
  overflow: hidden;
}

.story-article__figure-row--uniform .story-article__figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.story-article__end-links {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
}

.story-article__end-links-text {
  margin: 0 0 var(--space-sm);
  font-size: 1rem;
}

.story-article__end-links-text a {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.story-article__end-links-text a:hover {
  text-decoration: underline;
}

.story-article__white-paper-cta {
  margin: 0;
}

.story-article__body h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: var(--space-xl) 0 var(--space-sm);
}

.story-article__body ul {
  margin: 0 0 var(--space-md);
  padding-left: 1.25rem;
}

.story-article__body li {
  margin-bottom: var(--space-xs);
}

.story-article__cta {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
}
