/* Openline marketing site: the closing panels and the strips between sections.
   One material (.atmos) drives the closing CTA panel and the footer panel: the
   hero's material (page background shading to the surface colour), with the
   same faint cool light and a fine grain, so the page opens and closes on one
   surface. Panels sit 8px in with a 20px radius and follow the light/dark
   theme like the hero. Also here: the marquee under the hero and the
   scroll-linked statement line. Motion lives in motion.css. */

/* ---------- the gradient ---------- */

:root {
  --atmos-shade: rgba(0, 18, 46, 0.04);
  --atmos-card-shadow: 0 30px 80px -30px rgba(0, 18, 46, 0.22);
}

:root[data-theme="dark"] {
  --atmos-shade: rgba(0, 0, 0, 0.6);
  --atmos-card-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}

.atmos {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-panel);
  background-color: var(--bg);
  background-image: linear-gradient(160deg, var(--bg) 38%, var(--surface));
  color: var(--ink);
}

/* the light drifts with scroll: experience.js writes --ax / --ay */
.atmos-field {
  position: absolute;
  inset: -12%;
  z-index: -2;
  pointer-events: none;
  transform: translate3d(var(--ax, 0px), var(--ay, 0px), 0);
}

.bloom {
  position: absolute;
  display: block;
  border-radius: 50%;
}

.b1 {
  left: -6%;
  top: -14%;
  width: 52%;
  height: 78%;
  background: radial-gradient(closest-side, rgba(155, 185, 232, 0.16), rgba(155, 185, 232, 0));
}

.b2 {
  left: 26%;
  bottom: -26%;
  width: 52%;
  height: 62%;
  background: radial-gradient(closest-side, rgba(120, 130, 150, 0.08), rgba(120, 130, 150, 0));
}

.b3 {
  left: 46%;
  top: -6%;
  width: 40%;
  height: 58%;
  background: radial-gradient(closest-side, rgba(155, 185, 232, 0.1), rgba(155, 185, 232, 0));
}

.b4 {
  right: -2%;
  top: 22%;
  width: 46%;
  height: 84%;
  background: radial-gradient(closest-side, var(--atmos-shade), transparent);
}

/* a fine grain keeps the gradient from banding */
.atmos::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- marquee: the one continuous motion. Honest content only. ---------- */

.marquee {
  overflow: hidden;
  padding: clamp(28px, 3vw, 40px) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.marquee-inner {
  display: flex;
  width: max-content;
}

.marquee-track {
  display: flex;
  flex: none;
  gap: clamp(40px, 5vw, 72px);
  margin: 0;
  padding: 0 clamp(40px, 5vw, 72px) 0 0;
  list-style: none;
}

.marquee-track li {
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: var(--muted);
}

.marquee-track li[lang] {
  letter-spacing: 0;
}

/* static marquee: no JS, reduced motion, print */
html:not(.js) .marquee,
.marquee.is-static {
  -webkit-mask-image: none;
  mask-image: none;
}

html:not(.js) .marquee-inner,
.marquee.is-static .marquee-inner {
  width: auto;
  justify-content: center;
}

html:not(.js) .marquee-track,
.marquee.is-static .marquee-track {
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  padding: 0 var(--gutter);
}

html:not(.js) .marquee-track[aria-hidden],
.marquee.is-static .marquee-track[aria-hidden] {
  display: none;
}

/* ---------- statement: two halves part around the mark as you scroll ---------- */

.statement {
  padding: clamp(72px, 10vw, 152px) var(--gutter);
  overflow: hidden;
}

.statement-line {
  display: flex;
  align-items: center;
  justify-content: center;
  --split-gap: clamp(28px, 12vw, 200px);
  gap: var(--split-gap);
  font-family: var(--serif);
  font-size: var(--fs-display);
  font-synthesis: none;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.split-mark {
  flex: none;
  width: 1.15em;
  height: 1.15em;
}

@media (max-width: 600px) {
  .statement-line {
    --split-gap: 20px;
    flex-direction: column;
  }

  .split-mark {
    width: 0.9em;
    height: 0.9em;
  }
}

/* ---------- closing CTA: black panel, display line, floating card ---------- */

.cta-section {
  padding: 0 var(--inset);
}

.cta-panel {
  display: grid;
  min-height: clamp(640px, 52vw, 760px);
  padding: clamp(28px, 3.4vw, 48px) max(16px, calc((100% - 1160px) / 2));
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--r-panel) var(--r-panel) 0 0;
}

/* fade to the surface colour at the seam so the footer panel joins seamlessly */
.cta-panel::before,
.footer-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.cta-panel::before {
  background: linear-gradient(180deg, transparent 62%, var(--surface) 100%);
}

.cta-display {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--serif);
  font-size: var(--fs-display-2);
  font-synthesis: none;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.cta-a {
  max-width: 6.5em;
}

.cta-b {
  align-self: flex-end;
  max-width: 6.5em;
  text-align: right;
}

.cta-card {
  grid-area: 1 / 1;
  place-self: center;
  display: grid;
  justify-items: start;
  gap: 10px;
  width: min(440px, 100%);
  padding: 24px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text);
  box-shadow: var(--atmos-card-shadow);
}

.cta-card-title {
  font-size: var(--fs-h3);
  line-height: 1.2;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.cta-card-sub {
  font-size: var(--fs-sm);
  line-height: 1.43;
  color: var(--text);
}

.booking-note {
  font-size: var(--fs-micro);
  line-height: 1.5;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

@media (max-width: 760px) {
  .cta-panel {
    min-height: 0;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 56px;
  }

  .cta-display,
  .cta-card {
    grid-area: auto;
  }

  .cta-display {
    display: block;
  }

  .cta-a,
  .cta-b {
    display: block;
    max-width: none;
    text-align: left;
  }

  .cta-card {
    place-self: stretch;
    width: 100%;
  }
}

/* ---------- footer: the panel continues; a white card; the big wordmark ---------- */

.site-footer-big {
  margin-top: -1px; /* overlap the CTA panel by a pixel: no hairline at the seam */
  padding: 0 var(--inset) var(--inset);
}

.footer-panel {
  padding: var(--inset) var(--inset) 0;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--r-panel) var(--r-panel);
}

.footer-panel::before {
  background: linear-gradient(180deg, var(--surface) 0%, transparent 38%);
}

.footer-panel .b1 {
  left: -14%;
  top: 52%;
}

.footer-panel .b2 {
  left: 48%;
  bottom: -30%;
}

.footer-panel .b3 {
  left: 18%;
  top: 70%;
}

.footer-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 40px 48px;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--text);
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-h {
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: 1.375rem;
  font-synthesis: none;
  line-height: 1;
  color: var(--ink);
}

.footer-group ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-group a {
  font-size: var(--fs-sm);
  color: var(--muted);
  text-decoration: none;
  transition: color 200ms var(--ease);
}

@media (hover: hover) {
  .footer-group a:hover {
    color: var(--ink);
  }
}

.footer-aside {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 14px;
  padding: 24px;
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: var(--fs-sm);
  line-height: 1.43;
}

.footer-aside p {
  max-width: 30ch;
  margin-bottom: 10px;
}

.footer-base {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-micro);
  color: var(--muted);
}

.footer-mark {
  display: flex;
  align-items: center;
  gap: 0.14em;
  margin: 0;
  padding: clamp(40px, 6vw, 96px) clamp(8px, 2vw, 32px) clamp(12px, 1.6vw, 24px);
  font-family: var(--sans);
  font-size: clamp(4.5rem, 1rem + 12vw, 12.5rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.055em;
  color: var(--ink);
  user-select: none;
}

.footer-mark svg {
  width: 0.92em;
  height: 0.92em;
  flex: none;
}

@media (max-width: 860px) {
  .footer-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
