html,
body,
#root {
  min-height: 100%;
}

body {
  margin: 0;
}

.static-menu > summary {
  list-style: none;
  cursor: pointer;
}
.static-menu > summary::-webkit-details-marker {
  display: none;
}
.static-menu-links {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  display: grid;
  background: #fff;
  border-block-end: 1px solid #e7e3e1;
  color: #191615;
  padding: .75rem 1.25rem;
}
.static-menu-links a {
  padding-block: .6rem;
}

.sevenflys-cookie-banner {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 30px;
  width: min(800px, calc(100% - 40px));
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  border: 1px solid #e7e3e1;
  background: #f1efed;
  color: #151515;
  box-shadow: 0 18px 45px rgba(17, 17, 17, 0.18);
  opacity: 0;
  transform: translate(-50%, 18px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.sevenflys-cookie-banner[hidden] {
  display: none;
}

.sevenflys-cookie-banner.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.sevenflys-cookie-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.sevenflys-cookie-copy strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 600;
}

.sevenflys-cookie-copy p {
  margin: 0;
  color: #5d5855;
  font-size: 13px;
  line-height: 1.55;
}

.sevenflys-cookie-copy a {
  color: #741d2a;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#sevenflys-cookie-accept {
  flex: 0 0 auto;
  min-width: 104px;
  border: 0;
  background: #741d2a;
  color: #fff;
  padding: 11px 22px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 180ms ease;
}

#sevenflys-cookie-accept:hover,
#sevenflys-cookie-accept:focus-visible {
  background: #8b2635;
}

#sevenflys-cookie-accept:focus-visible,
.sevenflys-cookie-copy a:focus-visible {
  outline: 2px solid #151515;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .sevenflys-cookie-banner {
    left: 0;
    bottom: 0;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    padding: 18px 20px 20px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    transform: translateY(18px);
  }

  .sevenflys-cookie-banner.is-visible {
    transform: translateY(0);
  }

  #sevenflys-cookie-accept {
    width: 100%;
  }
}

/* S2 product spotlight. */
.sevenflys-hero-with-s2 { position: relative; }
.sevenflys-s2-spotlight {
  background: #f1efed;
  color: #201d1c;
  border-block-start: 4px solid #651d24;
}
.sevenflys-s2-link { display: block; color: inherit; text-decoration: none; }
.sevenflys-s2-link:focus-visible { outline: 3px solid #651d24; outline-offset: -6px; }
.sevenflys-s2-body {
  display: grid;
  grid-template-columns: minmax(0, 1.33fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(.8rem, 1.5vw, 1.6rem);
  padding: clamp(1.3rem, 2vw, 2.1rem);
}
.sevenflys-s2-status {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .69rem;
  font-weight: 650;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}
.sevenflys-s2-status::before { content: ''; width: 1.3rem; height: 2px; background: currentColor; flex: none; }
.sevenflys-s2-name { margin: .55rem 0 0; font-weight: 600; }
.sevenflys-s2-name bdi {
  display: block;
  font-size: clamp(3.2rem, 4.8vw, 4.85rem);
  line-height: .96;
  letter-spacing: -.055em;
}
.sevenflys-s2-headline {
  display: block;
  margin-block-start: .65rem;
  font-size: clamp(1.2rem, 1.55vw, 1.52rem);
  line-height: 1.12;
  letter-spacing: -.028em;
}
.sevenflys-s2-description {
  max-width: 34ch;
  margin-block-start: .7rem;
  color: #59524e;
  font-size: .93rem;
  line-height: 1.4;
}
.sevenflys-s2-photo { width: 100%; height: auto; max-width: 20rem; justify-self: center; }
.sevenflys-s2-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  border-block-start: 1px solid #d5ccca;
  padding: .8rem clamp(1.3rem, 2vw, 2.1rem);
}
.sevenflys-s2-rating { display: inline-flex; gap: .55rem; flex-wrap: wrap; align-items: baseline; }
.sevenflys-s2-rating bdi { font-size: 1.32rem; line-height: 1; letter-spacing: -.04em; font-weight: 650; }
.sevenflys-s2-rating span { font-size: .76rem; color: #5d5552; }
.sevenflys-s2-explore { display: inline-flex; align-items: center; gap: .6rem; font-size: .875rem; }
.sevenflys-s2-link:hover .sevenflys-s2-explore { text-decoration: underline; text-underline-offset: .23em; }
[dir='rtl'] .sevenflys-s2-status { letter-spacing: normal; }
@media (min-width: 75rem) {
  .sevenflys-s2-spotlight {
    position: absolute;
    z-index: 15;
    inset-inline-end: max(2.5rem, calc((100% - 1440px) / 2 + 2.5rem));
    bottom: 7rem;
    width: clamp(29.5rem, 39vw, 37rem);
  }
}
@media (max-width: 74.999rem) {
  .sevenflys-hero-with-s2 #hero { height: calc(100svh - 8rem); }
  .sevenflys-s2-body, .sevenflys-s2-footer { padding-inline: clamp(1.25rem, 5vw, 3rem); }
  .sevenflys-s2-description { max-width: 46ch; }
  .sevenflys-s2-photo { max-height: 13.5rem; object-fit: contain; }
}
@media (max-width: 35rem) {
  .sevenflys-s2-body { grid-template-columns: minmax(0, 1.26fr) minmax(0, 1fr); gap: .45rem; }
  .sevenflys-s2-description { font-size: .86rem; }
  .sevenflys-s2-headline { font-size: 1.19rem; }
}

@media (max-width: 40rem) {
  .sevenflys-hero-with-s2 .sevenflys-scroll-hint { display: none; }
}

#s2-controller .s2-gallery-column {
  background: #f5f3f1;
  padding: 4.5rem clamp(1.25rem, 3.2vw, 3.25rem) 2rem;
}
.s2-gallery {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 32rem;
}
.s2-gallery figure { display: grid; grid-template-rows: auto minmax(2.2rem, auto); }
.s2-gallery-frame {
  aspect-ratio: 8 / 7;
  background: #e8e5e2;
  overflow: hidden;
}
.s2-gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.s2-gallery-frame[data-view="board"] img { padding: .8rem; background: white; }
.s2-gallery-caption { color: #514a47; font-size: .83rem; line-height: 1.4; padding-block-start: .45rem; }
.s2-gallery-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin-block-start: .3rem; }
.s2-gallery-options button {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .25rem 0 .45rem;
  border-block-end: 2px solid transparent;
  color: #5d5552;
  font-size: .84rem;
  font-weight: 500;
  text-align: start;
}
.s2-gallery-options img { width: 2.65rem; height: 2rem; flex: none; object-fit: cover; background: #fff; }
.s2-gallery-options button[data-view="board"] img { object-fit: contain; }
.s2-gallery-options button[aria-pressed="true"] { border-color: #651d24; color: #651d24; }
.s2-gallery-options button:hover { color: #651d24; }
.s2-gallery-options button:focus-visible { outline: 2px solid #651d24; outline-offset: 3px; }
@media (max-width: 34rem), (min-width: 48rem) and (max-width: 68rem) {
  .s2-gallery-options button { flex-direction: column; align-items: flex-start; gap: .3rem; }
}
.s2-mission-profile {
  scroll-margin-block-start: 6rem;
  padding: clamp(1.5rem, 3.5vw, 3.5rem);
  border-block-start: 1px solid #e7e3e1;
  background: #f5f3f1;
}
.s2-mission-profile h4 {
  color: #211b19;
  font-size: clamp(1.65rem, 2.6vw, 2.55rem);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.1;
  text-wrap: balance;
}
.s2-mission-intro {
  max-width: 62ch;
  margin-block-start: .7rem;
  color: #514a47;
  line-height: 1.55;
}
.s2-mission-examples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 3rem);
  margin-block-start: 1.65rem;
}
.s2-mission-examples article {
  display: flex;
  flex-direction: column;
  padding-block-start: 1rem;
  border-block-start: 1px solid #c9c1bc;
}
.s2-mission-label { color: #514a47; font-size: .95rem; font-weight: 600; }
.s2-mission-figure {
  margin-block: .4rem .5rem;
  color: #651d24;
  font-weight: 500;
  font-size: clamp(2.1rem, 3.5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}
/* Each line is a flight leg between the same two endpoints. */
.s2-mission-figure { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem .65rem; }
.s2-mission-context { color: #514a47; font-size: .96rem; font-weight: 400; letter-spacing: 0; line-height: 1.4; }
.s2-route { margin-block-start: auto; padding-block-start: 1.05rem; }
.s2-route-tracks { display: grid; align-content: center; gap: .45rem; min-height: 3.4rem; }
.s2-route-leg {
  position: relative; display: flex; align-items: center; justify-content: center; color: #651d24;
  background: linear-gradient(currentColor, currentColor) center / calc(100% - 3px) 1px no-repeat;
}
.s2-route-leg bdi { padding-inline: .65rem; background: #f5f3f1; font-size: .9rem; font-weight: 600; line-height: 1.3; }
.s2-route-leg::after { content: ''; position: absolute; inset-inline-end: 0; border-block: 4px solid transparent; border-inline-start: 7px solid currentColor; }
.s2-route-leg[data-return="true"]::after { inset-inline: 0 auto; border-inline: 0; border-inline-end: 7px solid currentColor; }
.s2-endurance-track {
  height: .7rem;
  border-inline: 2px solid #651d24;
  background: linear-gradient(#651d24, #651d24) center / 100% 1px no-repeat;
}
.s2-route-ends { display: flex; justify-content: space-between; gap: .5rem; border-block-start: 1px solid #d5cfcc; padding-block-start: .45rem; color: #514a47; font-size: .82rem; }
@media (max-width: 48rem) {
  .s2-mission-examples { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
}

.s2-applications {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  border-block-start: 1px solid #e7e3e1;
  background: #fff;
}
.s2-applications-landscape {
  position: relative;
  min-height: 23rem;
  overflow: hidden;
  background: #394a3d;
}
.s2-applications-landscape img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% center;
}
.s2-applications-copy { padding: clamp(1.5rem, 3.5vw, 3.5rem); }
.s2-applications-copy h4 {
  max-width: 22ch;
  margin-block: 1rem .85rem;
  color: #151515;
  font-size: clamp(1.85rem, 2.75vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.08;
  text-wrap: balance;
}
.s2-applications-copy .s2-applications-intro { margin-block-end: 1.35rem; color: #514a47; line-height: 1.5; }
.s2-applications-copy dl > div {
  padding-block: .9rem;
  border-block-start: 1px solid #d8d2cf;
}
.s2-applications-copy dl > div:last-child { padding-block-end: 0; }
.s2-applications-copy dt { font-weight: 600; color: #151515; }
.s2-applications-copy dd { margin-block-start: .25rem; color: #514a47; line-height: 1.5; }
@media (max-width: 48rem) {
  .s2-applications { grid-template-columns: minmax(0, 1fr); }
  .s2-applications-landscape { min-height: 0; aspect-ratio: 2 / 1; }
  .s2-applications-copy { padding: 1.5rem; }
}

#s2-controller .s2-integration-summary { margin-block-start: 1.15rem; }
#s2-controller .s2-integration-summary > div {
  padding-block: .7rem;
  display: grid;
  grid-template-columns: minmax(7rem, 27%) minmax(0, 1fr);
  gap: .3rem .9rem;
  border-block-start: 1px solid #e7e3e1;
  font-size: .9rem;
  line-height: 1.45;
}
#s2-controller .s2-integration-summary dt { font-weight: 600; color: #211b19; }
#s2-controller .s2-integration-summary dd { margin: 0; color: #544c48; }
@media (min-width: 48rem) and (max-width: 62rem), (max-width: 36rem) {
  #s2-controller .s2-integration-summary > div { grid-template-columns: minmax(0, 1fr); }
}

/* Keep the copy readable as the film cuts from forest to pale rock. */
#hero .hero-vignette::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(8 6 6 / 58%) 0%, rgb(8 6 6 / 47%) 36%, transparent 74%);
}
[dir="rtl"] #hero .hero-vignette::after { transform: scaleX(-1); }
@media (max-width: 48rem) {
  #hero .hero-vignette::after {
    background: linear-gradient(to top, rgb(8 6 6 / 28%) 0%, rgb(8 6 6 / 53%) 33%, rgb(8 6 6 / 48%) 56%, transparent 84%);
  }
}

.missing-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  font: 1.15rem/1.6 "Hanken Grotesk", sans-serif;
  color: #201917;
  background: #f5f3f1;
}
.missing-page main { width: min(38rem, 85vw); }
.missing-page h1 { margin: 2rem 0 0; font-size: clamp(2.5rem, 8vw, 4.5rem); line-height: 1; }
.missing-page a { color: #741d2a; }
.static-email { display: inline-block; font-weight: 600; color: #741d2a; text-decoration: underline; }
