:root {
  --hm-blue: #003a7d;
  --hm-blue-deep: #002653;
  --hm-orange: #f39b07;
  --hm-ink: #111419;
  --hm-paper: #f2f3f4;
  --hm-line: rgba(17, 20, 25, .18);
}

.hormann-case {
  overflow-x: clip;
  background: var(--hm-paper);
  color: var(--hm-ink);
}

.hormann-case .button,
.hormann-case .menu-toggle {
  border-color: var(--hm-orange);
  background: var(--hm-orange);
  color: var(--hm-ink);
}

.hormann-case .button:hover { background: #ffb631; }
.hm-shell { width: min(1540px, calc(100% - 96px)); margin-inline: auto; }
.hm-section { padding: clamp(96px, 10vw, 180px) 0; }
.hm-eyebrow { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .14em; line-height: 1.2; text-transform: uppercase; }
.hm-section h2 {
  margin: 0;
  font-family: "Lebowski GB Preview", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(64px, 7.2vw, 136px);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: .88;
}

.hm-copy { max-width: 610px; }
.hm-copy p { margin: 0; font-size: clamp(17px, 1.12vw, 22px); line-height: 1.48; }
.hm-copy p + p { margin-top: 1em; }
.hm-heading-grid { display: grid; grid-template-columns: .62fr 2fr 1fr; gap: 4.5vw; align-items: start; }

.hm-hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  overflow: hidden;
  isolation: isolate;
  background: var(--hm-blue-deep);
  color: #fff;
}

.hm-hero__image,
.hm-hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hm-hero__image { z-index: -2; object-fit: cover; object-position: center; }
.hm-hero__shade {
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 38, 83, .92) 0%, rgba(0, 38, 83, .72) 35%, rgba(0, 38, 83, .08) 72%, rgba(0, 38, 83, .08) 100%);
}

.hm-hero__meta {
  position: absolute;
  z-index: 3;
  top: 28px;
  right: var(--gutter);
  left: var(--gutter);
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, .72);
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hm-hero__content {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-block: 110px 74px;
}

.hm-wordmark {
  margin: 0 0 clamp(28px, 3vw, 50px);
  padding: .14em .22em .12em;
  background: var(--hm-blue);
  color: var(--hm-orange);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(34px, 4.5vw, 84px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .9;
}

.hm-hero h1 {
  max-width: 1060px;
  margin: 0;
  font-family: "Lebowski GB Preview", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(76px, 8vw, 152px);
  font-weight: 400;
  letter-spacing: -.052em;
  line-height: .82;
}

.hm-hero__lead { max-width: 680px; margin: 34px 0 0; color: rgba(255, 255, 255, .84); font-size: clamp(17px, 1.16vw, 23px); line-height: 1.45; }
.hm-hero__scroll { position: absolute; z-index: 4; right: var(--gutter); bottom: 28px; color: rgba(255, 255, 255, .74); font-size: 10px; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }

.hm-index {
  position: sticky;
  z-index: 30;
  top: var(--header-h);
  height: 62px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--hm-line);
  background: rgba(242, 243, 244, .95);
  backdrop-filter: blur(14px);
}

.hm-index a { display: flex; align-items: center; justify-content: center; gap: 10px; border-right: 1px solid var(--hm-line); color: inherit; font-size: 10px; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.hm-index a:last-child { border-right: 0; }
.hm-index span { color: var(--hm-blue); }
.hm-index a[aria-current="true"] { background: var(--hm-blue); color: #fff; }
.hm-index a[aria-current="true"] span { color: var(--hm-orange); }
.hm-index { scrollbar-width: none; }
.hm-index::-webkit-scrollbar { display: none; }

.hm-task { background: var(--hm-paper); }
.hm-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(70px, 8vw, 130px); border: 1px solid var(--hm-line); }
.hm-facts div { min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; border-right: 1px solid var(--hm-line); }
.hm-facts div:last-child { border-right: 0; }
.hm-facts strong { color: var(--hm-blue); font: 400 clamp(72px, 7vw, 132px)/.82 "Lebowski GB Preview", sans-serif; letter-spacing: -.05em; }
.hm-facts div:first-child strong { font-size: clamp(56px, 4.8vw, 92px); white-space: nowrap; }
.hm-facts span { max-width: 220px; font-size: 11px; letter-spacing: .08em; line-height: 1.3; text-transform: uppercase; }

.hm-spaces { background: var(--hm-blue); color: #fff; }
.hm-heading-grid--dark .hm-copy { color: rgba(255, 255, 255, .72); }
.hm-format-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: clamp(70px, 8vw, 130px); }
.hm-format-grid figure,
.hm-guide-pair figure,
.hm-carrier-grid figure { min-width: 0; margin: 0; }
.hm-format-grid img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hm-format-grid figcaption { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 18px 0 0; }
.hm-format-grid figcaption b { color: var(--hm-orange); font: 400 clamp(52px, 4vw, 80px)/.9 "Lebowski GB Preview", sans-serif; letter-spacing: -.04em; }
.hm-format-grid figcaption span { color: rgba(255, 255, 255, .62); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }

.hm-guideline { background: #fff; }
.hm-guide-figure { margin: clamp(70px, 8vw, 130px) auto 0; }
.hm-guide-figure--wide { width: min(1840px, calc(100% - 48px)); }
.hm-guide-figure img { width: 100%; height: auto; display: block; }
.hm-guide-figure figcaption,
.hm-guide-pair figcaption,
.hm-carrier-grid figcaption { padding-top: 10px; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.hm-guide-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 2px; }
.hm-guide-pair img { width: 100%; height: 100%; aspect-ratio: 1.42 / 1; object-fit: cover; display: block; }

.hm-system { background: var(--hm-paper); }
.hm-guide-figure--system { padding: clamp(18px, 2.2vw, 44px); background: #fff; }

.hm-carriers { background: var(--hm-orange); }
.hm-carrier-grid { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 2px; margin-top: clamp(70px, 8vw, 130px); }
.hm-carrier-grid__main { grid-row: 1 / 3; }
.hm-carrier-grid img { width: 100%; height: 100%; min-height: 0; aspect-ratio: 1.6 / 1; object-fit: cover; display: block; }
.hm-carrier-grid__main img { aspect-ratio: auto; }
.hm-carrier-grid figcaption { padding: 10px 12px 14px; background: var(--hm-paper); }

.hm-result { background: var(--hm-ink); color: #fff; }
.hm-result__grid { display: grid; grid-template-columns: 2fr 1fr; gap: 10vw; }
.hm-result__grid h2 { max-width: 1040px; }
.hm-result__grid > div > p:last-child { max-width: 760px; margin: 34px 0 0; color: rgba(255, 255, 255, .66); font-size: clamp(17px, 1.12vw, 22px); line-height: 1.48; }
.hm-result__grid ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .25); }
.hm-result__grid li { padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .25); font-size: 18px; }

.hm-contact { background: #08080a; }
.hm-contact .gradient-text { --text-gradient: linear-gradient(105deg, var(--hm-orange) 0%, #ffe0a8 42%, #a9c9eb 74%, #fff 100%); }
.hm-contact .contact__main .hm-eyebrow { margin-bottom: 40px; }

.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .72s ease, transform .72s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .hm-heading-grid { grid-template-columns: .5fr 1.75fr 1fr; }
  .hm-hero h1 { font-size: clamp(72px, 9.4vw, 118px); }
  .hm-facts div { min-height: 200px; }
}

@media (max-width: 900px) {
  .hm-shell { width: calc(100% - 40px); }
  .hm-section { padding: 88px 0; }
  .hm-section h2 { font-size: clamp(54px, 16vw, 84px); line-height: .9; }
  .hm-heading-grid { grid-template-columns: 1fr; gap: 24px; }
  .hm-copy { max-width: 650px; }
  .hm-hero__meta { top: 22px; right: 20px; left: 20px; }
  .hm-hero__meta span:last-child { display: none; }
  .hm-hero__content { padding-block: 94px 74px; }
  .hm-wordmark { font-size: clamp(34px, 9vw, 64px); }
  .hm-hero h1 { max-width: 760px; font-size: clamp(68px, 14vw, 112px); }
  .hm-hero__lead { max-width: 570px; font-size: 16px; }
  .hm-hero__shade { background: linear-gradient(90deg, rgba(0, 38, 83, .92), rgba(0, 38, 83, .48) 82%); }
  .hm-hero__scroll { right: 20px; bottom: 18px; }
  .hm-index { overflow-x: auto; grid-template-columns: repeat(4, minmax(132px, 1fr)); }
  .hm-index a { justify-content: flex-start; padding-inline: 18px; }
  .hm-facts { grid-template-columns: 1fr; margin-top: 56px; }
  .hm-facts div { min-height: 170px; border-right: 0; border-bottom: 1px solid var(--hm-line); }
  .hm-facts div:last-child { border-bottom: 0; }
  .hm-format-grid { grid-template-columns: 1fr; margin-top: 56px; }
  .hm-format-grid img { aspect-ratio: 16 / 9; }
  .hm-guide-figure--wide { width: calc(100% - 24px); margin-top: 56px; }
  .hm-guide-pair { width: calc(100% - 24px); grid-template-columns: 1fr; }
  .hm-guide-figure--system { padding: 12px; }
  .hm-carrier-grid { width: calc(100% - 24px); grid-template-columns: 1fr; grid-template-rows: auto; margin-top: 56px; }
  .hm-carrier-grid__main { grid-row: auto; }
  .hm-carrier-grid__main img,
  .hm-carrier-grid img { aspect-ratio: 16 / 10; }
  .hm-result__grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 560px) {
  .hm-hero { min-height: calc(100svh - var(--header-h)); }
  .hm-hero__content { min-height: calc(100svh - var(--header-h)); padding-top: 92px; }
  .hm-hero__image { object-position: 58% center; }
  .hm-hero__shade { background: linear-gradient(180deg, rgba(0, 38, 83, .7), rgba(0, 38, 83, .94) 72%); }
  .hm-wordmark { margin-bottom: 26px; font-size: 42px; }
  .hm-hero h1 { font-size: clamp(52px, 14vw, 58px); line-height: .86; white-space: nowrap; }
  .hm-hero__lead { max-width: calc(100% - 44px); margin-top: 24px; }
  .hm-hero__scroll { right: auto; left: 20px; }
  .hm-facts div:first-child strong { font-size: 50px; }
  .hm-format-grid figcaption { align-items: flex-end; }
  .hm-guide-figure figcaption,
  .hm-guide-pair figcaption,
  .hm-carrier-grid figcaption { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
