.if-beyond-page {
  --ifb-sun: #f0bd4c;
  --ifb-warm: #f5e6be;
  --ifb-night: #10291e;
}

.if-beyond-hero h1 {
  max-width: 1050px;
}

.if-beyond-motion {
  align-items: center;
  background: var(--ifb-night);
  border-radius: 30px;
  color: #edf4e9;
  display: grid;
  gap: clamp(14px, 2vw, 30px);
  grid-template-columns: auto minmax(30px, 1fr) auto minmax(30px, 1fr) auto minmax(30px, 1fr) auto;
  margin-top: clamp(54px, 7vw, 90px);
  min-height: 190px;
  overflow: hidden;
  padding: clamp(34px, 5vw, 66px);
  position: relative;
}

.if-beyond-motion::before,
.if-beyond-motion::after {
  border: 1px solid rgba(217, 237, 145, 0.18);
  border-radius: 50%;
  content: "";
  height: 390px;
  position: absolute;
  right: -90px;
  width: 390px;
}

.if-beyond-motion::after {
  height: 240px;
  right: -15px;
  width: 240px;
}

.if-beyond-motion span,
.if-beyond-motion strong {
  font-size: clamp(0.72rem, 1.2vw, 0.94rem);
  letter-spacing: 0.1em;
  position: relative;
  text-transform: uppercase;
  z-index: 1;
}

.if-beyond-motion span {
  color: rgba(237, 244, 233, 0.66);
  font-weight: 700;
}

.if-beyond-motion strong {
  color: var(--ifi-lime);
  font-weight: 900;
}

.if-beyond-motion i {
  background: linear-gradient(90deg, rgba(217, 237, 145, 0.2), var(--ifi-lime));
  height: 1px;
  position: relative;
  z-index: 1;
}

.if-beyond-motion i::after {
  background: var(--ifi-lime);
  border-radius: 50%;
  content: "";
  height: 7px;
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
}

.if-beyond-thesis p:last-child {
  color: rgba(238, 243, 233, 0.78);
  font-size: 1rem;
  line-height: 1.72;
  margin: 24px 0 0;
}

.if-beyond-thesis p strong {
  color: #fff;
}

.if-beyond-definitions {
  margin: 72px 0 80px;
}

.if-beyond-section-label {
  color: var(--ifi-green) !important;
  font-size: 0.7rem !important;
  font-weight: 850;
  letter-spacing: 0.13em;
  margin-bottom: 12px !important;
  text-transform: uppercase;
}

.if-beyond-definitions > h2 {
  font-size: clamp(2rem, 3.7vw, 3.35rem);
  letter-spacing: -0.055em;
  line-height: 1.04;
  margin: 0 0 34px;
}

.if-beyond-definition-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.if-beyond-definition-grid article {
  background: #fffdf7;
  border: 1px solid var(--ifi-line);
  border-radius: 22px;
  min-height: 250px;
  padding: clamp(26px, 4vw, 40px);
}

.if-beyond-definition-grid span,
.if-beyond-promises > article > span {
  color: var(--ifi-green);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.if-beyond-definition-grid h3,
.if-beyond-promises h3,
.if-beyond-timeline h3 {
  color: var(--ifi-ink);
  font-size: 1.35rem;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 34px 0 12px;
}

.if-beyond-definition-grid p,
.if-beyond-promises p,
.if-beyond-timeline p {
  color: var(--ifi-muted);
  line-height: 1.65;
  margin: 0;
}

.if-beyond-timeline {
  list-style: none;
  margin: 42px 0 84px !important;
  padding: 0;
  position: relative;
}

.if-beyond-timeline::before {
  background: var(--ifi-line);
  bottom: 24px;
  content: "";
  left: 154px;
  position: absolute;
  top: 24px;
  width: 1px;
}

.if-beyond-timeline li {
  display: grid;
  gap: 44px;
  grid-template-columns: 132px 1fr;
  padding: 0 0 50px;
  position: relative;
}

.if-beyond-timeline li::before {
  background: var(--ifi-paper);
  border: 3px solid var(--ifi-green);
  border-radius: 50%;
  content: "";
  height: 13px;
  left: 148px;
  position: absolute;
  top: 5px;
  width: 13px;
  z-index: 1;
}

.if-beyond-timeline time {
  color: var(--ifi-green);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  line-height: 1.45;
  padding-top: 3px;
  text-transform: uppercase;
}

.if-beyond-timeline li > div {
  border-top: 1px solid var(--ifi-line);
  padding: 0 0 0 12px;
}

.if-beyond-timeline h3 {
  margin-top: 22px;
}

.if-beyond-timeline a {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  margin: 18px 22px 0 0;
  text-decoration-color: rgba(46, 106, 72, 0.35);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.if-beyond-boundary {
  background: rgba(240, 189, 76, 0.09);
  border-radius: 0 16px 16px 0;
  padding-bottom: 24px;
  padding-right: 24px;
  padding-top: 24px;
}

.if-beyond-promises {
  border-bottom: 1px solid var(--ifi-line);
  margin: 38px 0 82px;
}

.if-beyond-promises article {
  border-top: 1px solid var(--ifi-line);
  display: grid;
  gap: 26px;
  grid-template-columns: 48px 1fr;
  padding: 28px 0;
}

.if-beyond-promises h3 {
  margin: 0 0 8px;
}

.if-beyond-aside ul {
  color: var(--ifi-muted);
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 0;
  padding-left: 1.1em;
}

.if-beyond-aside li + li {
  margin-top: 7px;
}

.if-beyond-cta {
  background: var(--ifb-warm);
}

.if-beyond-visual,
.if-beyond-gallery figure {
  margin: 0;
}

.if-beyond-visual {
  margin: clamp(46px, 7vw, 78px) 0;
}

.if-beyond-visual img,
.if-beyond-gallery img {
  aspect-ratio: 16 / 9;
  background: #dfe6df;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.if-beyond-visual img {
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(16, 41, 30, 0.14);
}

.if-beyond-visual figcaption,
.if-beyond-gallery figcaption {
  color: var(--ifi-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.if-beyond-visual figcaption {
  border-left: 2px solid var(--ifi-lime);
  margin: 15px 5px 0;
  padding-left: 12px;
}

.if-beyond-gallery {
  background: var(--ifb-night);
  border-radius: 28px;
  color: #edf4e9;
  margin: clamp(64px, 9vw, 104px) 0;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
}

.if-beyond-gallery__header {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.if-beyond-gallery__header h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin: 0;
  max-width: 620px;
}

.if-beyond-gallery .if-beyond-section-label {
  color: var(--ifi-lime) !important;
  margin-top: 0 !important;
}

.if-beyond-gallery__controls {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.if-beyond-gallery__controls button {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(237, 244, 233, 0.34);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  height: 46px;
  justify-content: center;
  padding: 0;
  width: 46px;
}

.if-beyond-gallery__controls button:hover,
.if-beyond-gallery__controls button:focus-visible {
  background: var(--ifi-lime);
  border-color: var(--ifi-lime);
  color: var(--ifb-night);
  outline: none;
}

.if-beyond-gallery__controls button:focus-visible {
  box-shadow: 0 0 0 3px var(--ifb-night), 0 0 0 5px var(--ifi-lime);
}

.if-beyond-gallery__controls button:disabled {
  cursor: default;
  opacity: 0.34;
}

.if-beyond-gallery__track {
  display: grid;
  gap: 16px;
  grid-auto-columns: min(84%, 660px);
  grid-auto-flow: column;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0 0 10px;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-color: rgba(217, 237, 145, 0.55) rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

.if-beyond-gallery__track:focus-visible {
  outline: 2px solid var(--ifi-lime);
  outline-offset: 5px;
}

.if-beyond-gallery__track figure {
  background: #f5f3eb;
  border-radius: 18px;
  color: var(--ifi-ink);
  overflow: hidden;
  scroll-snap-align: start;
}

.if-beyond-gallery__track img {
  border-radius: 0;
}

.if-beyond-gallery__track figcaption {
  min-height: 74px;
  padding: 15px 17px 17px;
}

.if-beyond-gallery__status {
  color: rgba(237, 244, 233, 0.66) !important;
  font-size: 0.73rem !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  margin: 14px 0 0 !important;
  text-align: right;
}

.if-beyond-hub-card {
  background: linear-gradient(135deg, #10291e, #17392b);
  border: 1px solid rgba(217, 237, 145, 0.22);
  border-radius: 24px;
  color: #edf4e9;
  margin: clamp(48px, 7vw, 84px) auto 0;
  max-width: 1180px;
  overflow: hidden;
  padding: clamp(30px, 5vw, 58px);
  position: relative;
}

.if-beyond-hub-card::after {
  border: 1px solid rgba(217, 237, 145, 0.18);
  border-radius: 50%;
  content: "";
  height: 230px;
  position: absolute;
  right: -70px;
  top: -95px;
  width: 230px;
}

.if-beyond-hub-card__eyebrow {
  color: #d9ed91;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.if-beyond-hub-card h2 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 4.1rem);
  letter-spacing: -0.05em;
  line-height: 1.03;
  margin: 0 0 20px;
  max-width: 820px;
  position: relative;
  z-index: 1;
}

.if-beyond-hub-card > p:not(.if-beyond-hub-card__eyebrow) {
  color: rgba(237, 244, 233, 0.76);
  line-height: 1.7;
  max-width: 720px;
}

.if-beyond-hub-card > a {
  border-bottom: 2px solid #d9ed91;
  color: #fff;
  display: inline-block;
  font-weight: 850;
  margin-top: 12px;
  padding-bottom: 5px;
  position: relative;
  text-decoration: none;
  z-index: 1;
}

[data-if-beyond-lang="en"] { display: none; }
html[data-if-language="en"] [data-if-beyond-lang="no"] { display: none; }
html[data-if-language="en"] [data-if-beyond-lang="en"] { display: inline; }
.if-beyond-hub-card > p[data-if-beyond-lang="en"] { display: none; }
html[data-if-language="en"] .if-beyond-hub-card > p[data-if-beyond-lang="en"] { display: block; }

@media (max-width: 760px) {
  .if-beyond-hero h1 {
    font-size: clamp(2.8rem, 14.5vw, 4.8rem);
    overflow-wrap: anywhere;
  }

  .if-beyond-motion {
    align-items: start;
    gap: 13px 18px;
    grid-template-columns: 18px 1fr;
    min-height: 0;
  }

  .if-beyond-motion span,
  .if-beyond-motion strong {
    grid-column: 2;
  }

  .if-beyond-motion i {
    grid-column: 1;
    grid-row: auto;
    height: 28px;
    justify-self: center;
    width: 1px;
  }

  .if-beyond-motion i::after {
    bottom: 0;
    left: -3px;
    right: auto;
    top: auto;
  }

  .if-beyond-definition-grid {
    grid-template-columns: 1fr;
  }

  .if-beyond-definition-grid article {
    min-height: 0;
  }

  .if-beyond-timeline::before {
    left: 6px;
  }

  .if-beyond-timeline li {
    gap: 10px;
    grid-template-columns: 1fr;
    padding-left: 34px;
  }

  .if-beyond-timeline li::before {
    left: 0;
  }

  .if-beyond-timeline li > div {
    padding-left: 0;
  }

  .if-beyond-promises article {
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .if-beyond-gallery__header {
    align-items: start;
    flex-direction: column;
  }

  .if-beyond-gallery__controls {
    align-self: flex-end;
  }

  .if-beyond-gallery__track {
    grid-auto-columns: 92%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .if-beyond-page * {
    scroll-behavior: auto !important;
  }
}
