/* Whole-page Elf refinement. Original model files remain unchanged. */
.elf-experiment {
  --hx-ink: #1b3b26;
  --hx-muted: #435c48;
  --hx-green: #285e3a;
  --hx-pale: #edf4e8;
}
.elf-experiment .hx-shell {
  width: min(1184px, calc(100% - 64px));
  max-width: none;
  margin-inline: auto;
  padding: 0;
}
.elf-experiment .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
}
.elf-experiment .hx-title {
  margin: 0;
  font-size: clamp(36px, 3.6vw, 52px);
  font-weight: 770;
  line-height: 1.18;
  letter-spacing: -.035em;
}
.elf-experiment .hx-desc {
  margin: 20px 0 0;
  font-size: 17px;
  line-height: 1.75;
  text-wrap: pretty;
}
.elf-experiment .hx-photo-frame {
  aspect-ratio: 3 / 2;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
}
.elf-experiment .hx-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.elf-experiment .hx-caption {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
}
.elf-experiment .hx-btn-primary,
.elf-experiment .hx-btn-secondary {
  min-height: 48px;
  font-size: 16px;
  font-weight: 680;
}
.elf-experiment .hx-verification {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  color: var(--hx-muted);
  font-size: 14px;
  text-underline-offset: 5px;
  text-decoration-color: #9cb59a;
}
.elf-experiment .hx-verification:hover { color: var(--hx-ink); }
.elf-experiment .hx-verification:focus-visible {
  outline: 3px solid var(--hx-green);
  outline-offset: 4px;
}

/* A: one image and one service/contact column, without nested information boxes. */
.hydrogen-glass {
  background: var(--hx-pale);
  padding-block: 64px 52px;
}
.hydrogen-glass .hx-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-areas: 'media headline' 'media contact';
  column-gap: 64px;
  row-gap: 12px;
  align-items: stretch;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.hydrogen-glass .hx-header {
  grid-area: headline;
  align-self: end;
  max-width: none;
  margin: 0;
  text-align: left;
}
.hydrogen-glass .hx-desc { max-width: 420px; }
.hydrogen-glass .hx-media {
  grid-area: media;
  align-self: center;
  display: block;
  margin: 0;
}
.hydrogen-glass .hx-photo-frame { background: #dce7d8; }
.hydrogen-glass .hx-panel {
  grid-area: contact;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 176px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.hydrogen-glass .hx-actions { margin-top: auto; gap: 10px; }
.hydrogen-glass .hx-caption { color: var(--hx-muted); }

/* B: a continuous green surface and a complete, larger 3:2 photograph. */
.hydrogen-office { background: var(--hx-ink); }
.hydrogen-office .hx-canopy { padding-block: 24px 28px; background: transparent; }
.hydrogen-office .hx-intro { max-width: 900px; margin: 0 auto; }
.hydrogen-office .hx-title { font-size: clamp(32px, 3.5vw, 50px); line-height: 1.16; }
.hydrogen-office .hx-desc {
  max-width: 760px;
  margin: 12px auto 0;
  color: #e1ebdc;
  line-height: 1.65;
}
.hydrogen-office .hx-controls { margin-top: 16px; }
.hydrogen-office .hx-actions { gap: 12px; }
.hydrogen-office .hx-stage { padding: 24px 0 0; background: transparent; }
.hydrogen-office .hx-stage .hx-shell { max-width: 840px; }
.hydrogen-office .hx-photo-frame { background: #2b4a34; }
.hydrogen-office .hx-caption { color: #d5e3cf; }
@media (min-width: 901px) {
  .hydrogen-office { --hx-image-height: clamp(280px, calc(100svh - 360px), 480px); }
  .hydrogen-office .hx-stage .hx-shell { max-width: calc(var(--hx-image-height) * 1.5); }
}

/* Keep one type scale, content axis and rhythm through the full page. */
.elf-experiment #main h2 { font-size: clamp(26px, 2.4vw, 34px); }
.elf-experiment .elf-introduction {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px;
  padding-block: 52px;
}
.elf-experiment #main .elf-introduction h2 { font-size: 26px; }
.elf-experiment .elf-introduction p { margin-top: 12px; font-size: 16px; line-height: 1.8; }
.elf-experiment .elf-introduction .text-link { font-size: 15px; }
.elf-experiment .elf-catalog .catalog { padding-block: 52px; }
.elf-experiment .elf-service-group summary { min-height: 58px; }
.elf-experiment .service-standards { padding-block: 56px; }
.elf-experiment .credentials-section { padding-block: 48px 56px; }
.elf-experiment .company-info { margin-bottom: 36px; }
.elf-experiment .company-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin: 16px 0 0;
  padding-block: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.elf-experiment .company-facts dt { font-weight: 720; }
.elf-experiment .company-facts dd { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.elf-experiment .credential-note { min-height: 3.3em; }
.elf-experiment .work-example-note { margin-top: 12px; font-size: 15px; }
.elf-experiment .work-photos-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.elf-experiment .inquiry-strip { padding-block: 48px; }
.elf-experiment #company-info { scroll-margin-top: 100px; }
.elf-experiment #about,
.elf-experiment #services,
.elf-experiment #credentials { scroll-margin-top: 96px; }

@media (max-width: 1100px) {
  .hydrogen-glass .hx-spread { column-gap: 40px; }
  .hydrogen-glass { padding-block: 48px; }
  .hydrogen-glass .hx-panel { min-height: 164px; gap: 20px; }
}
@media (min-width: 681px) and (max-width: 900px) {
  .hydrogen-glass .hx-spread {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'headline' 'media' 'contact';
    row-gap: 24px;
  }
  .hydrogen-glass .hx-header { display: flex; align-items: end; gap: 32px; }
  .hydrogen-glass .hx-title { flex: 1 0 45%; font-size: 38px; }
  .hydrogen-glass .hx-desc { margin: 0; }
  .hydrogen-glass .hx-panel { min-height: 0; gap: 16px; }
  .hydrogen-glass .hx-actions { flex-direction: row; }
  .hydrogen-glass .hx-btn-primary,
  .hydrogen-glass .hx-btn-secondary { flex: 1; }
}
@media (max-width: 680px) {
  .elf-experiment .hx-shell { width: calc(100% - 36px); }
  .elf-experiment .hx-title { font-size: 34px; }
  .elf-experiment .hx-desc { font-size: 16px; }
  .elf-experiment .hx-caption { font-size: 12px; }
  .hydrogen-glass { padding-block: 28px 32px; }
  .hydrogen-glass .hx-spread {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'headline' 'media' 'contact';
    gap: 22px;
    padding: 0;
  }
  .hydrogen-glass .hx-desc { margin-top: 16px; }
  .hydrogen-glass .hx-panel { min-height: 0; gap: 16px; padding: 0; }
  .hydrogen-glass .hx-actions { margin: 0; }
  .hydrogen-office .hx-canopy { padding-block: 24px 28px; text-align: left; }
  .hydrogen-office .hx-title { font-size: 32px; }
  .hydrogen-office .hx-desc { margin-top: 12px; }
  .hydrogen-office .hx-controls { gap: 0; }
  .hydrogen-office .hx-actions { gap: 10px; }
  .hydrogen-office .hx-stage { padding-block: 20px 0; background: transparent; }
  .elf-experiment .elf-introduction { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 36px; }
  .elf-experiment #main h2 { font-size: 26px; }
  .elf-experiment #main .elf-introduction h2 { font-size: 24px; }
  .elf-experiment .elf-catalog .catalog { padding-block: 36px; }
  .elf-experiment .service-standards { padding-block: 36px; }
  .elf-experiment .credentials-section { padding-block: 36px; }
  .elf-experiment .company-facts { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .elf-experiment .credential-note { min-height: 0; }
  .elf-experiment .work-photos-pair { grid-template-columns: minmax(0, 1fr); }
  .elf-experiment .inquiry-strip { padding-block: 36px; }
}
@media (max-width: 365px) {
  .elf-experiment .hx-shell { width: calc(100% - 28px); }
  .elf-experiment .hx-title { font-size: 32px; }
}
