/* Clift Sentry Workshop - Poland
   Tokens are copied from the Clift design system (colors.css, typography.css, spacing.css).
   LED tokens below are campaign tokens: teal, amber and red appear only as LED light. */

@font-face { font-family: "Open Sans"; src: url("../assets/fonts/OpenSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../assets/fonts/OpenSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../assets/fonts/OpenSans-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../assets/fonts/OpenSans-ExtraBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../assets/fonts/OpenSans-ExtraBoldItalic.woff2") format("woff2"); font-weight: 800; font-style: italic; font-display: swap; }

:root {
  /* Design system */
  --color-indigo: #4000FF;
  --color-indigo-deep: #2E00B6;
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-grey: #F6F6F6;
  --text-secondary: #EEEEEE;
  --text-tertiary: #B3B3B3;
  --text-muted: #7B7B7B;
  --border-muted: #B4B4B4;
  --border-subtle: #777777;
  --header-frost: rgba(0, 0, 0, .9);
  --font-primary: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: 17px;
  --gap-card: 18px;
  --blur-navbar: 10px;

  /* Campaign: LED light colours, read by js/main.js.
     Green and amber are the design system teal and amber, red is its grade-badge red. */
  --led-white: #FFFFFF;
  --led-green: #00C498;
  --led-amber: #F5A623;
  --led-red: #FF2200;

  /* Hairlines between black sections, and the frame of a dark inset. */
  --hairline: #1F1F1F;
  --hairline-strong: #2C2C2C;

  /* Form errors on the dark form: the design system's error red. */
  --form-error: #FE8387;

  /* Layout */
  --page: max(clamp(var(--gutter), 5vw, 96px), calc((100vw - 1920px) / 2 + 96px));
  --section: clamp(88px, 12vw, 190px);
  --header-h: 72px;
  --vh: 1vh;
  /* The layout stops growing at 1920 px (--page), so type sized by the width stops there too: past it, a headline
     would outgrow its column and be cut by its line mask (seen: "NOTICE?" on a 2560 px screen). */
  --vw: min(1vw, 19.2px);
  --ease-out: cubic-bezier(.16, .84, .24, 1);
  --focus: #FFFFFF;
}

@supports (height: 1svh) {
  :root { --vh: 1svh; }
}

@media (max-width: 699px) {
  :root { --header-h: 60px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--color-black);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: 18px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
p, h1, h2, h3, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

.on-light { --focus: var(--color-indigo); }
.on-dark { --focus: var(--color-white); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  left: var(--gutter); top: 10px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--color-white);
  color: var(--color-black);
  font-weight: 700;
  font-size: 15px;
  transform: translateY(-200%);
}
.skip:focus { transform: none; --focus: var(--color-indigo); }

.wrap { padding-inline: var(--page); }

/* Type */

.h2, .hero__what, .hero__title, .final__title, .problem__line--last, .handson__close {
  font-family: var(--font-primary);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.012em;
}

.h2 {
  font-size: min(calc(7.6 * var(--vw)), calc(15 * var(--vh)));
  line-height: .94;
}

.eyebrow {
  font-weight: 700;
  font-size: clamp(13px, calc(1.05 * var(--vw)), 15px);
  line-height: 1.2;
  letter-spacing: .08em;
}

/* Lines that rise out of their own mask. Padding keeps the italic overhang, commas and descenders inside. */
.ln {
  display: block;
  overflow: hidden;
  padding: .08em .3em .24em .06em;
  margin: -.08em -.3em -.24em -.06em;
}
.ln > span { display: block; }

.motion [data-reveal] .ln > span {
  transform: translateY(116%);
  transition: transform 1.05s var(--ease-out);
}
.motion [data-reveal] .ln:nth-child(2) > span { transition-delay: .08s; }
.motion [data-reveal] .ln:nth-child(3) > span { transition-delay: .16s; }
.motion [data-reveal] .ln:nth-child(4) > span { transition-delay: .24s; }
.motion [data-reveal].is-in .ln > span { transform: none; }

.motion [data-reveal-soft] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .9s ease, transform .9s var(--ease-out);
}
.motion [data-reveal-soft].is-in { opacity: 1; transform: none; }

/* Buttons: rectangular, Title Case, Open Sans Bold */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 0;
  background: var(--color-indigo);
  color: var(--color-white);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.15;
  text-align: center;
  transition: background-color .16s ease, color .16s ease;
}
.btn:hover { background: var(--color-indigo-deep); }
.btn:active { background: var(--color-indigo-deep); }

.btn--white { background: var(--color-white); color: var(--color-black); }
.btn--white:hover, .btn--white:active { background: #E4E4E4; }

.btn--ghost { background: transparent; color: var(--color-white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); }
.btn--ghost:hover, .btn--ghost:active { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px var(--color-white); }

.btn--small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--large { min-height: 64px; padding: 0 40px; font-size: 18px; }

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  padding-inline: var(--page);
  color: var(--color-white);
  transition: background-color .28s ease;
}

.site-header.is-scrolled {
  background: var(--header-frost);
  -webkit-backdrop-filter: blur(var(--blur-navbar));
  backdrop-filter: blur(var(--blur-navbar));
}

.site-header__event {
  justify-self: start;
  font-weight: 700;
  font-size: 15px;
  padding-block: 8px;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: border-color .16s ease;
}
.site-header__event:hover { border-bottom-color: currentColor; }

.site-header__logo { display: block; }
.site-header__logo img { width: auto; height: 34px; }

.site-header__actions { justify-self: end; display: flex; align-items: center; gap: 10px; }

/* PL | EN */
.lang { display: flex; align-items: center; margin-right: 6px; }
.lang__btn {
  min-width: 34px;
  min-height: 34px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: var(--text-tertiary);
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  cursor: pointer;
}
.lang__btn + .lang__btn { border-left: 1px solid rgba(255, 255, 255, .3); }
.lang__btn[aria-pressed="true"] { color: var(--color-white); }
.lang__btn:hover { color: var(--color-white); }

/* The product link needs the room of a wide header; on narrower screens Join stays alone */
@media (max-width: 1099px) {
  .site-header__more { display: none; }
}

@media (max-width: 699px) {
  .site-header { grid-template-columns: auto 1fr; }
  .site-header__event { display: none; }
  .site-header__logo img { height: 28px; }
}

/* 1. Hero */

.hero {
  --w: max(100vw, calc(156 * var(--vh)));
  --tx: .755;
  --ty: .435;
  --edge: calc(var(--tx) * 100vw - .4985 * var(--w));
  position: relative;
  height: calc(100 * var(--vh));
  min-height: 620px;
  overflow: hidden;
  background: var(--color-black);
  color: var(--color-white);
}

.hero__media { position: absolute; inset: 0; will-change: transform; }

.hero__plate {
  position: absolute;
  left: var(--edge);
  top: calc(var(--ty) * 100 * var(--vh) - .2896 * var(--w));
  width: var(--w);
  aspect-ratio: 3 / 2;
  transform-origin: 49.85% 43.44%;
}

.motion .hero__plate { animation: settle 3.2s cubic-bezier(.2, .7, .15, 1) both; }

@keyframes settle {
  from { transform: scale(1.07); opacity: .35; }
  to { transform: none; opacity: 1; }
}

.hero__photo { width: 100%; height: 100%; object-fit: cover; }

/* Both overlays are cut from the same photo coordinates, so they stay on the ring at any size. */
.hero__glow, .hero__off {
  position: absolute;
  left: 27.1667%;
  top: 10.125%;
  width: 45.3333%;
  aspect-ratio: 1088 / 1066;
  pointer-events: none;
}

.hero__glow { mix-blend-mode: screen; }

.hero__glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/img/hero-ring-glow.webp") center / 100% 100% no-repeat;
  opacity: .6;
}

.motion .hero__glow::before { animation: breathe 7s ease-in-out infinite alternate; }

@keyframes breathe {
  from { opacity: .42; }
  to { opacity: .8; }
}

.hero.is-away .hero__glow::before { animation-play-state: paused; }

.hero__off {
  background: #1B2036;
  -webkit-mask: url("../assets/img/hero-ring-mask.webp") center / 100% 100% no-repeat;
  mask: url("../assets/img/hero-ring-mask.webp") center / 100% 100% no-repeat;
  opacity: 0;
}

.hero__grade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, #000 calc(var(--edge) + 1px), rgba(0, 0, 0, .78) calc(var(--edge) + 14vw), rgba(0, 0, 0, .3) calc(var(--edge) + 28vw), transparent calc(var(--edge) + 42vw)),
    linear-gradient(to top, #000 0%, rgba(0, 0, 0, .78) 14%, rgba(0, 0, 0, .25) 34%, transparent 52%),
    linear-gradient(to bottom, rgba(0, 0, 0, .5) 0%, transparent 18%);
}

.hero__content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding-bottom: 28px;
}

.hero__what {
  font-size: clamp(26px, calc(3.2 * var(--vw)), 60px);
  line-height: 1;
}

.hero__title {
  margin-top: 14px;
  font-size: min(calc(9.4 * var(--vw)), calc(19.5 * var(--vh)));
  line-height: .93;
}

.hero__support {
  max-width: 35em;
  margin-top: 22px;
  font-size: clamp(17px, calc(1.4 * var(--vw)), 21px);
  line-height: 1.42;
  color: var(--text-secondary);
}

.hero__where {
  margin-top: 16px;
  font-style: italic;
  font-weight: 800;
  font-size: clamp(26px, calc(2.8 * var(--vw)), 52px);
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: clamp(24px, 4vh, 44px);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  color: rgba(255, 255, 255, .72);
}

.partner { display: flex; align-items: center; }
.partner + .partner::before {
  content: "|";
  margin-inline: 14px;
  opacity: .55;
}
.partner img { width: auto; height: 18px; }
/* Skarpa's logo is a mark beside two lines of text, so it needs more height to read the same size */
.partner--tall img { height: 32px; }

.partners--plain {
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.2;
  color: inherit;
}

.motion .hero__what,
.motion .hero__support,
.motion .hero__where,
.motion .hero__cta,
.motion .hero .partners {
  animation: rise 1s var(--ease-out) both;
}
.motion .hero__what { animation-delay: .35s; }
.motion .hero__support { animation-delay: .85s; }
.motion .hero__where { animation-delay: .75s; }
.motion .hero__cta { animation-delay: 1.05s; }
.motion .hero .partners { animation-delay: 1.25s; }

.motion .hero__title .ln > span { animation: line-up 1.15s var(--ease-out) both; }
.motion .hero__title .ln:nth-child(1) > span { animation-delay: .45s; }
.motion .hero__title .ln:nth-child(2) > span { animation-delay: .55s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes line-up {
  from { transform: translateY(116%); }
  to { transform: none; }
}

@media (max-width: 699px), (max-aspect-ratio: 1/1) {
  .hero {
    --w: 246vw;
    --tx: .5;
    --ty: .27;
    height: auto;
    min-height: max(calc(100 * var(--vh)), 700px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .hero__grade {
    background:
      linear-gradient(to top, #000 0%, #000 46%, rgba(0, 0, 0, .82) 58%, rgba(0, 0, 0, .2) 74%, transparent 86%),
      linear-gradient(to bottom, rgba(0, 0, 0, .55) 0%, transparent 14%);
  }
  .hero__content { position: relative; padding-top: 240px; padding-bottom: 20px; }
  .hero__what { font-size: calc(6.2 * var(--vw)); }
  .hero__title { font-size: calc(11.6 * var(--vw)); margin-top: 10px; }
  .hero__support { margin-top: 14px; font-size: 16px; line-height: 1.4; }
  .hero__where { margin-top: 12px; font-size: calc(7.4 * var(--vw)); }
  .hero__cta { margin-top: 18px; gap: 8px; }
  .hero__cta .btn { flex: 1 1 240px; min-height: 50px; }
  .partners { margin-top: 18px; font-size: 13px; }
}

/* 2. Problem. Base is the readable static layout; the sticky stage comes further down. */

.problem {
  position: relative;
  padding-block: var(--section);
  background: var(--color-black);
  color: var(--color-white);
  overflow: clip;
}

.problem__photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(60vw, calc(96 * var(--vh)));
  opacity: .3;
}
.problem__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, #000 0%, rgba(0, 0, 0, .55) 34%, transparent 66%),
    linear-gradient(to top, #000 0%, transparent 24%),
    linear-gradient(to bottom, #000 0%, transparent 24%);
}
.problem__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 64%;
}

.problem__screen {
  position: relative;
  padding-inline: var(--page);
}

.problem__title { font-size: min(calc(12.3 * var(--vw)), calc(25 * var(--vh))); line-height: .92; }

.problem__screen--lines {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.6vh, 28px);
  margin-top: 64px;
}

.problem__line {
  max-width: 24em;
  font-weight: 600;
  font-size: min(calc(3.5 * var(--vw)), calc(6 * var(--vh)));
  line-height: 1.2;
  letter-spacing: -.008em;
}

.problem__line--last {
  max-width: none;
  margin-top: clamp(6px, 1.4vh, 16px);
  font-size: min(calc(9 * var(--vw)), calc(15 * var(--vh)));
  line-height: .95;
}

.led-dot {
  position: relative;
  display: inline-block;
  width: .19em;
  height: .19em;
  margin-left: .05em;
  border-radius: 50%;
  background: radial-gradient(circle, #FFC9A3 0 14%, var(--led-red) 52%, #D91600 100%);
}
.led-dot::after {
  content: "";
  position: absolute;
  inset: -240%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 34, 0, .62) 0%, rgba(255, 34, 0, .22) 26%, transparent 62%);
  pointer-events: none;
}

@media (max-width: 699px) {
  .problem__photo { width: 100%; opacity: .26; }
  .problem__photo::after {
    background:
      linear-gradient(to top, #000 0%, rgba(0, 0, 0, .4) 44%, transparent 76%),
      linear-gradient(to bottom, #000 0%, transparent 22%);
  }
  .problem__title { font-size: calc(12.2 * var(--vw)); }
  .problem__line { font-size: calc(5.9 * var(--vw)); line-height: 1.24; max-width: none; }
  .problem__line--last { font-size: calc(12.8 * var(--vw)); line-height: .96; }
}

/* 3. What Sentry does: text and steps left, the looping ring video right */

.idea {
  padding-block: var(--section);
  background: var(--color-black);
  color: var(--color-white);
}

.idea__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 120px);
  align-items: center;
}

.idea__title { font-size: min(calc(6.4 * var(--vw)), calc(13 * var(--vh))); }

.idea__copy {
  max-width: 30em;
  margin-top: clamp(22px, calc(2.4 * var(--vw)), 36px);
  font-size: clamp(17px, calc(1.36 * var(--vw)), 20px);
  line-height: 1.5;
  color: var(--text-secondary);
}

.idea__media { margin: 0; }
.idea__video { display: block; width: 100%; height: auto; aspect-ratio: 1; background: var(--color-black); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(28px, calc(3 * var(--vw)), 44px);
}

.step {
  padding-top: 12px;
  border-top: 2px solid var(--hairline-strong);
  transition: border-color .12s ease, opacity .12s ease;
}
.steps.is-live .step { opacity: .4; }
.steps.is-live .step.is-on { opacity: 1; border-color: var(--color-white); }

.step__name {
  display: block;
  font-style: italic;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .02em;
}

.step__text {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-tertiary);
}

@media (max-width: 899px) {
  .idea__grid { grid-template-columns: minmax(0, 1fr); }
  .idea__title { font-size: clamp(40px, calc(11 * var(--vw)), 72px); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

/* The LED ring component: real render below, light drawn on two canvases above it. */

.ring {
  position: relative;
  aspect-ratio: 1;
}

/* A dark disc under the render, so the room light never shines through the housing. */
.ring::before {
  content: "";
  position: absolute;
  inset: 3.2%;
  border-radius: 50%;
  background: var(--color-black);
}

.ring__img { position: absolute; inset: 0; width: 100%; height: 100%; }

.ring__leds, .ring__bloom {
  position: absolute;
  pointer-events: none;
}

.ring__leds { inset: 0; width: 100%; height: 100%; }

.ring__bloom {
  left: -35%;
  top: -35%;
  width: 170%;
  height: 170%;
  max-width: none;
  filter: blur(5px);
  /* the glow fades out before the canvas edge, so no square shows on the black page */
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}

/* 5. Hands-on */

.opener {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: calc(100 * var(--vh));
  min-height: 560px;
  overflow: hidden;
  background: var(--color-black);
  color: var(--color-white);
}

.opener__photo {
  position: absolute;
  left: 0;
  top: -5%;
  width: 100%;
  height: 110%;
  object-fit: cover;
  object-position: 34% 50%;
}

.opener::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .46) 26%, transparent 56%);
}

.opener__title {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 var(--page) clamp(32px, 6vh, 64px);
  font-size: min(calc(7.9 * var(--vw)), calc(16 * var(--vh)));
}

@media (max-width: 699px) {
  .opener__photo { object-position: 40% 50%; }
  .opener__title { font-size: calc(13.2 * var(--vw)); }
}

.handson__body {
  background: var(--color-black);
  color: var(--color-white);
  padding-bottom: var(--section);
}

.handson__close {
  padding-block: var(--section);
  font-size: min(calc(5.5 * var(--vw)), calc(11 * var(--vh)));
  line-height: 1;
}
.handson__close .ln--accent { color: var(--color-indigo); }

@media (max-width: 699px) {
  .handson__close { font-size: calc(8.6 * var(--vw)); line-height: 1.02; }
  .handson__close .ln + .ln { margin-top: .2em; }
}

/* Demo */

.demo {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 56px);
  overflow: hidden;
  color: var(--color-white);
}

.demo__device { width: 100%; max-width: 620px; justify-self: center; }

.demo__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.demo__buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
}

.demo__eyebrow {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--text-tertiary);
}

.demo__title {
  margin: 6px 0 16px;
  font-weight: 700;
  font-size: clamp(20px, calc(1.6 * var(--vw)), 26px);
  line-height: 1.2;
}

.btn--demo { width: 100%; min-height: 56px; justify-content: flex-start; padding-inline: 20px; cursor: pointer; }
.btn--demo[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--color-white); }
.demo__buttons.is-running .btn--demo:not([aria-pressed="true"]) { opacity: .5; }

/* The three steps under the buttons: dim until the ring gets there, the result in its light colour */

.flow {
  display: grid;
  gap: 16px;
  margin-top: 30px;
  list-style: none;
}

.flow__step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
  opacity: .34;
  transition: opacity .35s ease;
}
.flow:not(.is-live) .flow__step:last-child { opacity: .7; }
.flow__step.is-done { opacity: .62; }
.flow__step.is-on { opacity: 1; }

.flow__num {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid currentColor;
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
}

.flow__name {
  font-style: italic;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .05em;
}

.flow__text {
  margin-top: 2px;
  font-weight: 600;
  font-size: clamp(17px, calc(1.3 * var(--vw)), 20px);
  line-height: 1.35;
}

.flow.is-good .flow__step:last-child .flow__num,
.flow.is-good .flow__step:last-child .flow__name { color: var(--led-green); }
.flow.is-alert .flow__step:last-child .flow__num,
.flow.is-alert .flow__step:last-child .flow__name { color: var(--led-red); }

.demo__note {
  margin-top: auto;
  padding-top: 18px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-tertiary);
}

.demo__nojs { margin-top: 24px; font-size: 16px; }
.demo__nojs p + p { margin-top: 10px; }
.js .demo__nojs { display: none; }
.no-js .demo__buttons, .no-js .flow { display: none; }

@media (max-width: 899px) {
  .demo { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .demo__device { max-width: 460px; }
  .demo__buttons { max-width: none; }
  .flow { margin-top: 24px; }
}

/* 4. DAV */

.dav {
  padding-block: var(--section);
  border-top: 1px solid var(--hairline);
  background: var(--color-black);
  color: var(--color-white);
}

.dav__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 120px);
}

.dav__title { font-size: min(calc(5.8 * var(--vw)), calc(12 * var(--vh))); margin-bottom: clamp(26px, calc(3 * var(--vw)), 44px); }

.dav__text p {
  max-width: 30em;
  font-size: clamp(17px, calc(1.3 * var(--vw)), 20px);
  line-height: 1.5;
}
.dav__text p + p { margin-top: 1em; }

.dav__tile {
  display: grid;
  place-items: center;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0));
  aspect-ratio: 1;
  padding: clamp(20px, 3vw, 48px);
  overflow: hidden;
}

.dav__img { width: 100%; height: auto; }

@media (max-width: 899px) {
  .dav__grid { grid-template-columns: minmax(0, 1fr); }
  .dav__title { font-size: clamp(40px, calc(8.6 * var(--vw)), 72px); }
}

@media (max-width: 699px) {
  .dav__title { font-size: calc(11.6 * var(--vw)); }
  .dav__title .ln, .dav__title .ln > span { display: inline; overflow: visible; padding: 0; margin: 0; }
  .dav__title .ln > span { transform: none !important; }
}

/* Where Clift climbs today: a map like the Control Centre's, with numbers and city dots only */

.reach {
  padding-top: var(--section);
  border-top: 1px solid var(--hairline);
  background: var(--color-black);
  color: var(--color-white);
}
.reach[hidden] { display: none; }

.reach__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(32px, 5vw, 96px);
  align-items: end;
}

.reach__title { font-size: min(calc(7.4 * var(--vw)), calc(14 * var(--vh))); }

.reach__text {
  max-width: 30em;
  margin-top: 20px;
  font-size: clamp(17px, calc(1.36 * var(--vw)), 20px);
  line-height: 1.45;
  color: var(--text-secondary);
}

.reach__stats { display: flex; gap: clamp(28px, 4vw, 72px); }

.stat__num {
  display: block;
  font-style: italic;
  font-weight: 800;
  font-size: clamp(56px, calc(6.4 * var(--vw)), 112px);
  line-height: .9;
  letter-spacing: -.02em;
}

.stat__label {
  display: block;
  margin-top: 10px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
}

.reach__map {
  position: relative;
  height: min(72vh, 720px);
  margin-top: clamp(40px, 6vw, 80px);
  background: #0A0A0A;
}

.reach__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding-block: 18px var(--section);
  font-size: 14px;
  color: var(--text-tertiary);
}

.reach__key { display: inline-flex; align-items: center; gap: 10px; }

/* A dot is a city; it grows a little with the number of gyms there. Sentry glows like its ring when the line is fine. */
.reach__dot {
  --n: 1;
  display: block;
  width: calc(8px + var(--n) * 2px);
  height: calc(8px + var(--n) * 2px);
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .55), 0 0 12px rgba(255, 255, 255, .45);
}

.reach__map .reach__dot { z-index: 1; }
.reach__map .reach__dot--sentry { z-index: 2; }

.reach__dot--sentry {
  background: var(--led-green);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .55), 0 0 16px 3px rgba(0, 196, 152, .7);
}

.reach__map .maplibregl-ctrl.maplibregl-ctrl-attrib { background: rgba(0, 0, 0, .7); color: var(--text-tertiary); }
.reach__map .maplibregl-ctrl-attrib-button { filter: invert(1); background-color: transparent; }
.reach__map .maplibregl-ctrl-attrib a { color: var(--text-tertiary); }

@media (max-width: 899px) {
  .reach__head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .reach__title { font-size: clamp(40px, calc(11 * var(--vw)), 72px); }
  .reach__map { height: 62vh; }
}

/* 7. What to expect */

.nowrap { white-space: nowrap; }

.expect {
  padding-block: var(--section);
  background: var(--color-black);
  color: var(--color-white);
}

.expect__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 120px);
  align-items: start;
}

.expect__title {
  position: sticky;
  top: calc(var(--header-h) + 36px);
  font-size: min(calc(6.6 * var(--vw)), calc(13 * var(--vh)));
}

.path {
  position: relative;
  padding-left: clamp(32px, 4vw, 56px);
}

.path__line {
  position: absolute;
  left: 6px;
  top: 0; bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, .24);
}

.path__dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-white);
  will-change: transform;
}

.path__list li {
  padding-block: clamp(20px, 3vw, 44px);
  font-weight: 700;
  font-size: clamp(26px, calc(3.3 * var(--vw)), 52px);
  line-height: 1.1;
  letter-spacing: -.012em;
}

.motion .path__list li {
  color: #7B7B7B;
  transition: color .4s ease;
}
.motion .path__list li.is-past { color: var(--color-white); }

.expect__note {
  max-width: 28em;
  margin-top: clamp(32px, 4vw, 56px);
  margin-left: clamp(32px, 4vw, 56px);
  font-size: clamp(17px, calc(1.3 * var(--vw)), 20px);
  line-height: 1.45;
  color: var(--text-tertiary);
}

@media (max-width: 899px) {
  .expect__grid { grid-template-columns: minmax(0, 1fr); }
  .expect__title { position: static; font-size: clamp(42px, calc(8.6 * var(--vw)), 72px); }
}

@media (max-width: 699px) {
  .expect__title { font-size: calc(11.6 * var(--vw)); }
  .expect__title .ln, .expect__title .ln > span { display: inline; overflow: visible; padding: 0; margin: 0; }
  .expect__title .ln > span { transform: none !important; }
}

/* 8. Final: date, place and the map link */

.final {
  --w: max(100vw, calc(156 * var(--vh)));
  --tx: .78;
  --ty: .5;
  --edge: calc(var(--tx) * 100vw - .493 * var(--w));
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100 * var(--vh));
  overflow: hidden;
  background: var(--color-black);
  color: var(--color-white);
}

.final__media {
  position: absolute;
  left: var(--edge);
  top: calc(var(--ty) * 100 * var(--vh) - .3147 * var(--w));
  width: var(--w);
  aspect-ratio: 3 / 2;
}

.final__photo { width: 100%; height: 100%; object-fit: cover; }

.final__grade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, #000 calc(var(--edge) + 1px), rgba(0, 0, 0, .8) calc(var(--edge) + 14vw), rgba(0, 0, 0, .3) calc(var(--edge) + 28vw), transparent calc(var(--edge) + 40vw)),
    linear-gradient(to top, #000 0%, rgba(0, 0, 0, .62) 8%, transparent 28%),
    linear-gradient(to bottom, rgba(0, 0, 0, .4) 0%, transparent 14%);
}

.final__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: var(--header-h);
}

.final__title { font-size: min(calc(7.2 * var(--vw)), calc(15 * var(--vh))); line-height: .94; }

.final__support {
  max-width: 24em;
  margin-top: 26px;
  font-size: clamp(18px, calc(1.5 * var(--vw)), 22px);
  line-height: 1.4;
}

.final__address {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.final__address a {
  font-weight: 700;
  color: var(--color-white);
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.final .btn { margin-top: 26px; }

@media (max-width: 699px), (max-aspect-ratio: 1/1) {
  .final {
    --w: 236vw;
    --tx: .5;
    --ty: .3;
    align-items: flex-end;
    min-height: max(calc(100 * var(--vh)), 640px);
  }
  .final__grade {
    background:
      linear-gradient(to top, #000 0%, #000 34%, rgba(0, 0, 0, .78) 50%, rgba(0, 0, 0, .1) 68%, transparent 80%),
      linear-gradient(to bottom, rgba(0, 0, 0, .4) 0%, transparent 14%);
  }
  .final__content { padding-block: 0 32px; }
  .final__title { font-size: calc(14.2 * var(--vw)); }
  /* "DO ZOBACZENIA" is longer than "SEE YOU": a size that keeps it on one line */
  :lang(pl) .final__title { font-size: calc(10.4 * var(--vw)); }
  .final__support { margin-top: 18px; font-size: 17px; }
  .final .btn { width: 100%; margin-top: 20px; }
}

/* Footer */

.footer {
  padding-block: clamp(48px, 6vw, 88px) 32px;
  background: var(--color-black);
  color: var(--color-white);
  font-size: 15px;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
}

.footer__logo img { width: auto; height: 40px; }

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 56px;
  margin-top: 40px;
}

.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}

.footer a {
  border-bottom: 1px solid transparent;
  transition: border-color .16s ease;
}
.footer a:hover { border-bottom-color: currentColor; }
.footer__logo, .footer__logo:hover { border-bottom: 0; }

/* The official safety note, the manual's wording: title left, text right */
.footer__safety {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 16px clamp(20px, 4vw, 64px);
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid #2F2F2F;
}

.footer__safety-title {
  font-style: italic;
  font-weight: 800;
  font-size: clamp(18px, calc(1.6 * var(--vw)), 24px);
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--color-white);
}

.footer__safety-text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.footer__safety-text p + p { margin-top: .8em; }

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

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer__legal ul { display: flex; gap: 20px; }

/* Scroll stages. Only with motion allowed, and only when the viewport is tall enough to hold them. */

@media (min-height: 520px) {
  /* 2.4 screens tall, 1.4 screens of scrolling (it was 3.8 and 2.8; the user, 2026-11-16: "legyen gyorsabban
     gorgethető mert nehez rajta vegig erni"). The scene in main.js runs on progress, so it keeps its timing. */
  .motion .problem {
    height: calc(240 * var(--vh));
    padding: 0;
    overflow: visible;
  }

  .motion .problem__sticky {
    position: sticky;
    top: 0;
    height: calc(100 * var(--vh));
    overflow: hidden;
  }

  .motion .problem__screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    padding: calc(var(--header-h) + 8px) var(--page) 24px;
  }

  .motion .problem__screen--lines { opacity: 0; }
  .motion .problem__line { opacity: .16; }
  .motion .led-dot { transform: scale(0); }
}

/* Portrait tablets: same composition as the phone, device a little smaller in frame. */
@media (min-width: 700px) and (max-aspect-ratio: 1/1) {
  .hero { --w: 206vw; --ty: .3; }
  .final { --w: 188vw; --ty: .335; }
  .final__title { font-size: calc(11 * var(--vw)); }
}

/* Short landscape phones: stages fall back to the static layout above. */
@media (max-height: 519px) {
  .hero { min-height: 560px; }
}

/* Sign-up form */

html.reg-open { overflow: hidden; }

.reg {
  --focus: var(--color-white);
  width: min(560px, calc(100vw - 2 * var(--gutter)));
  max-width: none;
  max-height: calc(100dvh - 2 * var(--gutter));
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 1px solid var(--hairline-strong);
  background: #0E0E0E;
  color: var(--color-white);
  overflow: auto;
}

.reg:focus, .reg:focus-visible { outline: 1px solid var(--hairline-strong); }

.reg::backdrop {
  background: rgba(0, 0, 0, .72);
  -webkit-backdrop-filter: blur(var(--blur-navbar));
  backdrop-filter: blur(var(--blur-navbar));
}

.motion .reg[open] { animation: reg-in .36s var(--ease-out) both; }

@keyframes reg-in {
  from { opacity: 0; transform: translateY(18px); }
}

.reg__panel {
  position: relative;
  padding: clamp(26px, 5vw, 44px);
}

.reg__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.reg__title {
  margin-top: 12px;
  font-size: clamp(32px, calc(7.4 * var(--vw)), 46px);
}

.reg__when {
  margin-top: 10px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.35;
}

.reg__fields {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  background: var(--color-black);
  color: var(--color-white);
  font: inherit;
  font-size: 16px;
}

.field input::placeholder { color: #8C8C8C; opacity: 1; }
.field input:focus { outline: 2px solid var(--color-white); outline-offset: -1px; border-color: var(--color-white); }

.field__msg {
  display: none;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--form-error);
}

.field.is-invalid input { border-color: var(--form-error); }
.field.is-invalid .field__msg { display: block; }

.reg__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.reg__submit { width: 100%; margin-top: 24px; cursor: pointer; }
.reg__submit:disabled { background: var(--color-indigo-deep); cursor: default; }

.reg__error {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--form-error);
}
.reg__error a { color: inherit; text-decoration: underline; }

.reg__privacy {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-tertiary);
}
.reg__privacy a { color: inherit; text-decoration: underline; }

.reg__done:focus { outline: none; }
.reg__thanks { margin-top: 14px; font-size: 18px; line-height: 1.45; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .site-header { position: static; }
}
