/* ==========================================================================
   Cutroom - course layer on top of the Altrum design system.

   Altrum's motion lives in Webflow's own IX2/IX3 data, which the capture kept
   intact: the loader, hero reveal, hamburger menu, every hover swap, the
   sticky about trio, the showreel scrub and the FAQ accordion all run from the
   template. Nothing here re-implements any of that.

   This file adds only the three compositions Altrum has no equivalent for
   (hero lead form, the vertical video-review rail, rate pairs with their
   Telegram thread), the plan grid variant, and a focus style the template
   ships without. Every value reuses an Altrum token, except the Telegram
   block, which deliberately keeps Telegram's own palette and system font so
   it reads as an external screenshot rather than as page furniture.
   ========================================================================== */

:root {
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.25, .46, .45, .94);
  --page-gutter: 90px;
}

html {
  scroll-behavior: smooth;
  /* Anchors land below the fixed navbar instead of under it. */
  scroll-padding-top: 118px;
}

/* --------------------------------------------------------------------------
   0. Page gutter
   Altrum centres a 1400px container inside a 2% section padding, so the visible
   edge margin grows with the viewport. The brief wants a fixed 90px edge, so
   the caps come off and the gutter becomes real padding. Every wrapper that
   used to supply the 2% is listed here; the .container inside them keeps doing
   the layout, it just spans the full remaining width now.
   -------------------------------------------------------------------------- */

:root {
  --page-container--container-large: 100%;
}

.section,
.hero-content {
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

/* Altrum zeroes this one so the sticky work stack could run full bleed; the
   case grid that replaced it sits on the page grid like everything else. */
.section.for-work {
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
  /* Altrum clips this section; an overflow container would kill the sticky
     rows inside it. */
  overflow: visible;
}

.navbar {
  max-width: none;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

/* .grid-title is a two-column grid, which cut the display headings in half and
   wrapped them. They get the full row instead, so each reads on one line. */
.grid-title .h1.full-section {
  grid-column: 1 / -1;
}

/* --------------------------------------------------------------------------
   0b. Section title rows
   .title-small-main is a six-column grid and every cell is placed by a Webflow
   w-node id. The sections written for this page carry ids the template's
   stylesheet has never heard of, so their three cells auto-flowed into columns
   1, 2 and 3 and the row bunched up on the left. These place them on the same
   tracks the template uses everywhere else: label on 1-2, edition on 4, arrow
   flush to the right edge on 6.
   -------------------------------------------------------------------------- */

#w-node-_2m01-title-a,
#w-node-_2p01-title-a,
#w-node-_2f01-title-a {
  grid-area: 1 / 1 / 2 / 3;
}

#w-node-_2m01-title-c,
#w-node-_2p01-title-c,
#w-node-_2f01-title-c {
  grid-area: 1 / 4 / 2 / 5;
}

#w-node-_2m01-title-b,
#w-node-_2p01-title-b,
#w-node-_2f01-title-b {
  grid-area: 1 / 6 / 2 / 7;
  justify-self: end;
}

/* --------------------------------------------------------------------------
   1. Hero lead form
   Occupies the two free columns of .logo-hero and borrows the glass treatment
   already used by .contact-team (.blur-div behind a 10px radius).
   -------------------------------------------------------------------------- */

.hero-form-cell {
  grid-area: 1 / 3 / 2 / 5;
  position: relative;
  padding: 18px;
  border-radius: 10px;
}

/* The hero panel is glass: a 10px backdrop blur over a 10% white fill, which
   is Altrum's own .blur-div value. Shallow on purpose - the portrait stays
   recognisable behind the panel and only softens, and the 10% film is what
   makes the glass read as a surface rather than a hole.

   It needs initHeroGlass() in course.js to clear the identity transform IX3
   leaves on .hero-content, otherwise that ancestor is a backdrop root and the
   blur has nothing behind it to work on. */
.hero-form-cell .blur-div {
  -webkit-backdrop-filter: blur(10px) saturate(125%) brightness(.82);
  backdrop-filter: blur(10px) saturate(125%) brightness(.82);
  background-color: #ffffff1a;
  border: 1px solid #ffffff26;
  box-shadow: inset 0 1px 0 #ffffff1f, 0 30px 70px -34px #00000080;
}

/* Where backdrop-filter is unavailable the panel would be pure transparency on
   a photograph, so it falls back to the lightest possible film. */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .hero-form-cell .blur-div {
    background-color: #00000073;
  }
}

.hero-form.is-hero {
  height: auto;
  padding-bottom: 0;
  /* The template's contact-page form carries an 80px row gap below 991px. */
  grid-row-gap: 0;
  row-gap: 0;
}

.form-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.form-note {
  opacity: .55;
  font-size: var(--text-field);
  line-height: var(--line-height--paragraph-line-height);
}

.hero-form-cell .field-main {
  min-height: 46px;
  padding: 12px 16px;
  font-size: var(--text-field);
  background-color: #ffffff14;
}

.hero-form-cell .field-main:focus {
  background-color: #ffffff29;
}

.hero-form-cell .field-block {
  margin-bottom: 12px;
}

.hero-form-cell .field-block:last-of-type {
  margin-bottom: 0;
}

.hero-form .field-block.invert {
  grid-template-columns: 1fr;
}

.submit-button {
  color: var(--colors--fourth-color);
  background-color: var(--colors--second-color);
  border: 0;
  border-radius: 60px;
  padding: 13px 22px;
  font-family: var(--font--primary-font);
  font-size: var(--button--font-size);
  font-weight: var(--font-weight--500);
  letter-spacing: -.5px;
  cursor: pointer;
  transition: background-color .4s var(--ease-soft), transform .3s var(--ease-soft);
}

.submit-button:hover {
  background-color: #fff;
}

.submit-button:active {
  transform: scale(.98);
}

.submit-button[disabled] {
  opacity: .6;
  cursor: progress;
}

.hero-form-cell .submit-button {
  min-height: 46px;
  padding-top: 0;
  padding-bottom: 0;
}

.form-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 4px;
}

.hero-form-cell .success-message,
.contact-form-card .success-message {
  background-color: #181818;
  border-radius: 10px;
  padding: 22px;
}

/* The hero panel has no fill of its own, so the reply sits on the same glass. */
.hero-form-cell .success-message {
  background-color: #ffffff1a;
}

.hero-form-cell .error-message-2,
.contact-form-card .error-message-2 {
  margin-top: 10px;
  padding: 10px 14px;
}

.field-main[aria-invalid="true"] {
  border: 1px solid #fa242a;
}

/* --------------------------------------------------------------------------
   2. Video testimonial tiles
   Same 15px rhythm and 10px radius as .logo-grid, turned into media frames.
   -------------------------------------------------------------------------- */

/* A rail, not a grid: the clips are vertical and there are more of them than
   fit a row, so they scroll sideways instead of leaving dead cells behind. */
.video-grid {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-left: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.video-grid::-webkit-scrollbar {
  display: none;
}

/* Vertical frame, the way the clips are actually shot and posted. */
.video-tile {
  position: relative;
  flex: 0 0 320px;
  scroll-snap-align: start;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background-color: #181818;
  aspect-ratio: 9 / 16;
  text-decoration: none;
  color: var(--colors--first-color);
}

.video-tile-image {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0%;
  transition: transform 1.1s var(--ease-out-expo);
}

.video-tile:hover .video-tile-image {
  transform: scale(1.05);
}

.video-tile-shade {
  position: absolute;
  inset: 0%;
  background-image: linear-gradient(#07070773 0%, #07070700 24%, #07070700 46%, #070707e6 100%);
}

/* Same frosted circle as the template's .video-link, under a class the
   showreel timeline does not own. */
.play-badge {
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  background-color: #ffffff3d;
  border-radius: 100%;
  justify-content: center;
  align-items: center;
  display: flex;
  position: absolute;
  inset: 0 0 0 0;
  margin: auto;
  transition: transform .5s var(--ease-out-expo), background-color .4s var(--ease-soft);
}

.video-tile .play-badge {
  width: 54px;
  height: 54px;
}

.rate-media .play-badge {
  width: 62px;
  height: 62px;
}

.video-tile:hover .play-badge,
.rate-media:hover .play-badge {
  transform: scale(1.06);
  background-color: #ffffff5c;
}

.video-tile-meta {
  position: absolute;
  inset: auto 0% 0%;
  padding: 18px 16px;
}

.video-tile-name {
  font-size: var(--font--h5);
  font-weight: var(--font-weight--600);
  letter-spacing: -.6px;
}

.video-tile-role {
  opacity: .62;
  font-size: var(--text-field);
  line-height: var(--line-height--paragraph-line-height);
  margin-top: 4px;
}

/* Runtime sits in the corner the way a reel stamps its length. */
.video-tile-run {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  font-size: var(--font--h6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background-color: #0707074d;
  border-radius: 5px;
  padding: 5px 7px 4px;
}

/* --------------------------------------------------------------------------
   2b. Case reels - four per row, frosted glass over the frame
   The edits are shot and delivered vertical, so the cases are 9:16 reels. The
   glass is one backdrop-filtered layer per card, cut into vertical bars by a
   repeating mask and faded out to the right by a second one, so the effect
   costs a single blurred layer instead of a stack of them. It is switched off
   below 992px, where the blur buys nothing and costs the most.

   This is deliberately not the rail from section 2: the review clips scroll
   sideways with their caption inside the frame, these sit in stacking rows
   with the caption under it. Same media shape, different composition.
   -------------------------------------------------------------------------- */

/* The template stacks its work cards on scroll. Here a whole row of two is the
   layer that sticks: the next row rides up and covers it, so the section reads
   as a deck being dealt rather than a list scrolling past. Pure sticky, no
   scroll listener and no GSAP, so it cannot fight the Webflow timelines. */
/* The pan runway and its held viewport are not in the box tree at this width
   at all, so the sticky rows below still take .case-stack as their containing
   block and the desktop deck is untouched by their existence. */
.case-pan,
.case-viewport {
  display: contents;
}

/* Block flow, not a grid: a sticky grid item is trapped inside its own grid
   area and cannot travel, so the rows would never pin. */
.case-stack {
  display: block;
}

.case-row {
  grid-column-gap: 15px;
  grid-template-columns: repeat(4, 1fr);
  display: grid;
  position: sticky;
  top: 96px;
  z-index: 1;
}

.case-row + .case-row {
  margin-top: 15px;
}

/* The opaque bed the row carries with it, so nothing shows through the gap
   between the two cards while it slides over the row beneath. */
.case-row:before {
  content: "";
  position: absolute;
  inset: -18px -1px -6px;
  z-index: -1;
  background-color: var(--colors--fourth-color);
  box-shadow: 0 -22px 34px -12px #000000b3;
}

.case-row:first-child:before {
  box-shadow: none;
}

.case-card {
  background-color: #141414;
  border: 1px solid #ffffff14;
  border-radius: 12px;
  padding: 9px 9px 4px;
  text-decoration: none;
  color: var(--colors--first-color);
  transition: background-color .4s var(--ease-soft), border-color .4s var(--ease-soft);
}

.case-card:hover {
  background-color: #1b1b1b;
  border-color: #ffffff26;
}

.case-media {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 9 / 16;
  background-color: #181818;
}

.case-image {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0%;
  transition: transform 1.1s var(--ease-out-expo);
}

.case-card:hover .case-image {
  transform: scale(1.04);
}

.case-glass {
  position: absolute;
  inset: 0%;
  pointer-events: none;
}

@supports ((-webkit-mask-composite: source-in) or (mask-composite: intersect)) {
  .case-glass {
    -webkit-backdrop-filter: blur(18px) saturate(118%);
    backdrop-filter: blur(18px) saturate(118%);
    background-color: #ffffff17;
    background-image: linear-gradient(#ffffff1a, #ffffff05);
    box-shadow: inset 0 0 0 1px #ffffff2b;
    -webkit-mask-image:
      repeating-linear-gradient(90deg, #000 0 6.5%, #0000 6.5% 9.5%),
      linear-gradient(90deg, #000 0 20%, #0000 48%);
    mask-image:
      repeating-linear-gradient(90deg, #000 0 6.5%, #0000 6.5% 9.5%),
      linear-gradient(90deg, #000 0 20%, #0000 48%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    transition: opacity .6s var(--ease-soft), transform .8s var(--ease-out-expo);
  }

  /* The frame clears completely as you reach for it. */
  .case-card:hover .case-glass {
    opacity: 0;
    transform: translateX(-8%);
  }
}

/* The player takes the still's place inside the frame rather than opening over
   the page. */
.case-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background-color: #000;
}

/* Narrow frames cannot carry a caption along one line, so it stacks under the
   reel instead: index, client, then what the job was. */
.case-bar {
  display: block;
  padding: 15px 4px 11px;
}

.case-index {
  display: block;
  opacity: .4;
  font-size: var(--font--h6);
  letter-spacing: 0;
}

.case-name {
  display: block;
  margin-top: 5px;
  font-size: var(--font--h5);
  font-weight: var(--font-weight--600);
  letter-spacing: -.5px;
}

.case-tags {
  display: block;
  margin-top: 4px;
  opacity: .55;
  font-size: var(--text-field);
  line-height: var(--line-height--paragraph-line-height);
}

/* Our own play control, in the frosted family the video tiles already use. It
   sits in the corner of the frame rather than centred, so it does not read as
   a copy of the review tiles. */
.case-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background-color: #0707074d;
  border: 1px solid #ffffff33;
  border-radius: 100%;
  transition: background-color .4s var(--ease-soft), transform .5s var(--ease-out-expo);
}

.case-card:hover .case-play {
  background-color: var(--colors--second-color);
  transform: scale(1.06);
}

.case-card:hover .case-play .play-icon {
  filter: none;
}

/* --------------------------------------------------------------------------
   2c. The cut log rail
   Section 07 is the same card as the featured cases above, on a rail instead
   of stacking rows: the log keeps growing and a stack of it would own the
   page. Only the sizing and the caption's extra line differ, so everything
   else is inherited rather than restated.
   -------------------------------------------------------------------------- */

.case-rail {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.case-rail::-webkit-scrollbar {
  display: none;
}

.case-card.is-rail {
  flex: 0 0 300px;
  scroll-snap-align: start;
}

/* The runtime of the clip and the module it came out of, under the credit. */
.case-tags.is-meta {
  margin-top: 6px;
  opacity: .4;
  font-size: var(--font--h6);
}

/* --------------------------------------------------------------------------
   3. Rate pairs - the reel on the left, what it was paid on the right
   Surfaces from .plan-1. The edit is a 9:16 reel like the rest of the work, so
   the media column is a narrow vertical frame and the payment thread beside it
   stretches to the same height: two tall panels, one the clip, one the proof.
   -------------------------------------------------------------------------- */

.rate-pair {
  grid-column-gap: 15px;
  grid-row-gap: 15px;
  grid-template-columns: minmax(240px, 320px) 1fr;
  align-items: stretch;
  display: grid;
}

.rate-media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background-color: #181818;
  aspect-ratio: 9 / 16;
  text-decoration: none;
  color: var(--colors--first-color);
}

.rate-media .paralax-image {
  height: 100%;
  top: 0;
  transition: transform 1.1s var(--ease-out-expo);
}

.rate-media:hover .paralax-image {
  transform: scale(1.05);
}

/* The inset matches .rate-proof's 25px, so the reel's caption and the proof's
   text sit on the same inner margin and their last lines finish level. The top
   value is larger only to give the gradient room to ramp. */
.rate-media-meta {
  position: absolute;
  inset: auto 0% 0%;
  padding: 34px 25px 25px;
  background-image: linear-gradient(#07070700, #070707e6);
}

.rate-media-meta .smaller-text {
  opacity: .7;
}

.rate-proof {
  background-color: #232323;
  border-radius: 10px;
  padding: 25px;
  display: flex;
  flex-flow: column;
  justify-content: space-between;
  gap: 20px;
}

.rate-shot {
  border: 1px solid #ffffff1a;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  flex: 1 1 auto;
  min-height: 258px;
  display: flex;
  background-color: #0e1621;
}

/* A real screenshot dropped straight into the frame, instead of .tg-chat. */
.rate-shot > img {
  object-fit: cover;
  object-position: 50% 0%;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0%;
}

/* --- Telegram thread ------------------------------------------------------
   The proof is a chat, so it is drawn as one: Telegram's own dark palette,
   title bar, wallpaper wash, tailed bubbles, read receipts and composer. It
   reads as an external screenshot, which is why it keeps Telegram's blues and
   its system font instead of the page's own type.
   ------------------------------------------------------------------------ */

.tg-chat {
  width: 100%;
  display: flex;
  flex-flow: column;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: 0;
}

.tg-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background-color: #17212b;
  border-bottom: 1px solid #ffffff0f;
}

.tg-back,
.tg-bar-menu,
.tg-icon,
.tg-check {
  flex: none;
  display: block;
}

.tg-back svg,
.tg-bar-menu svg,
.tg-icon svg,
.tg-check svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tg-back {
  width: 15px;
  height: 15px;
  color: #6ab2f2;
}

.tg-bar-menu {
  width: 4px;
  height: 16px;
  margin-left: auto;
  color: #7f91a4;
}

.tg-avatar {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 100%;
  object-fit: cover;
}

.tg-peer {
  min-width: 0;
}

.tg-peer-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tg-peer-status {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.2;
  color: #6ab2f2;
}

/* Telegram's own wallpaper under the thread, with the client's radial wash
   kept on top of it so the bubbles still sit on a lit ground. */
.tg-feed {
  flex: 1 1 auto;
  display: flex;
  flex-flow: column;
  justify-content: flex-end;
  gap: 7px;
  padding: 14px 14px 16px;
  overflow: hidden;
  background-color: #0e1621;
  background-image:
    radial-gradient(90% 70% at 8% 0%, #21384f80, #0e162100 62%),
    radial-gradient(80% 60% at 96% 100%, #1e3247a6, #0e162100 58%),
    url("../assets/image.png");
  background-size: auto, auto, 360px;
  background-repeat: no-repeat, no-repeat, repeat;
}

.tg-day {
  align-self: center;
  margin-bottom: 3px;
  font-size: 10.5px;
  line-height: 1.4;
  color: #ffffffab;
  background-color: #00000047;
  border-radius: 20px;
  padding: 3px 10px;
}

.tg-msg {
  position: relative;
  max-width: 86%;
  align-self: flex-start;
  display: flex;
  flex-flow: column;
  align-items: flex-end;
  padding: 6px 9px 5px;
  font-size: 12.5px;
  line-height: 1.4;
  background-color: #182533;
  border-radius: 10px 10px 10px 3px;
}

.tg-msg.is-out {
  align-self: flex-end;
  background-color: #2b5278;
  border-radius: 10px 10px 3px 10px;
}

/* The fin under the last bubble of each side. */
.tg-msg:after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 0;
  height: 0;
  border-bottom: 8px solid #182533;
  border-left: 6px solid transparent;
  left: -5px;
}

.tg-msg.is-out:after {
  border-bottom-color: #2b5278;
  border-left: 0;
  border-right: 6px solid transparent;
  left: auto;
  right: -5px;
}

.tg-text {
  align-self: stretch;
}

.tg-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
  font-size: 10px;
  line-height: 1.4;
  color: #ffffff70;
}

.tg-msg.is-out .tg-meta {
  color: #9fd0f2;
}

.tg-check {
  width: 14px;
  height: 9px;
  color: #6ac0f5;
}

.tg-composer {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background-color: #17212b;
  border-top: 1px solid #ffffff0f;
}

.tg-placeholder {
  flex: 1 1 auto;
  font-size: 12.5px;
  color: #ffffff5c;
}

.tg-icon {
  width: 17px;
  height: 17px;
  color: #7f91a4;
}

/* The date line reads as a caption for the figure, but the number's own line
   box left them touching. This sets the gap on all three pairs at once. */
.rate-amount {
  margin-top: 12px;
}

.rate-amount .numver-block {
  font-size: var(--counter-title);
}

/* --------------------------------------------------------------------------
   3b. Course programme
   A numbered accordion: index, module name, diagonal marker on the row; the
   topics it covers and the outcome it leaves you with underneath. Built on
   <details name="course-module"> so it is exclusive, keyboard-operable and
   works with the Webflow runtime absent. It deliberately does NOT reuse the
   template's FAQ accordion classes, which IX2 already owns.
   -------------------------------------------------------------------------- */

.module-list {
  border-top: 1px solid #ffffff1f;
}

.module-row {
  border-bottom: 1px solid #ffffff1f;
}

.module-head {
  display: grid;
  grid-template-columns: 46px 1fr auto 24px;
  align-items: center;
  gap: 14px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
  transition: opacity .3s var(--ease-soft);
}

/* How much is actually in the module, on the one light surface in the list. */
.module-count {
  justify-self: end;
  color: var(--colors--fourth-color);
  background-color: var(--colors--second-color);
  border-radius: 60px;
  padding: 7px 13px 6px;
  font-size: var(--font--h6);
  font-weight: var(--font-weight--600);
  line-height: 1;
  white-space: nowrap;
}

/* Safari still needs the vendor marker killed explicitly. */
.module-head::-webkit-details-marker {
  display: none;
}

.module-head:hover {
  opacity: .72;
}

.module-index {
  opacity: .4;
  font-size: var(--font--h6);
  letter-spacing: 0;
}

.module-name {
  font-size: var(--font--h3);
  font-weight: var(--font-weight--500);
  letter-spacing: -1px;
  line-height: 1.15;
}

.module-mark {
  width: 24px;
  height: 24px;
  opacity: .45;
  justify-self: end;
  transform: rotate(90deg);
  transition: transform .45s var(--ease-out-expo), opacity .3s var(--ease-soft);
}

.module-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.module-row[open] .module-mark {
  opacity: 1;
  transform: rotate(0);
}

.module-body {
  padding-bottom: 34px;
  animation: module-open .45s var(--ease-out-expo) both;
}

@keyframes module-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.module-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.module-tags li {
  color: #ffffffcc;
  font-size: var(--text-field);
  line-height: 1;
  border: 1px solid #ffffff2e;
  border-radius: 60px;
  padding: 10px 15px 9px;
}

.module-result {
  grid-column-gap: 15px;
  grid-row-gap: 10px;
  grid-template-columns: 1fr 1.6fr;
  align-items: start;
  display: grid;
}

.module-result-label {
  opacity: .45;
  font-size: var(--text-field);
}

.module-result-text {
  max-width: 62ch;
  margin: 0;
  font-size: var(--button--font-size);
  line-height: var(--line-height--paragraph-line-height);
}

/* The bar that closes the section, in the same pill family as every other
   button on the page rather than the reference's square slab. */
.module-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  min-height: 64px;
  padding: 0 24px;
  color: var(--colors--fourth-color);
  background-color: var(--colors--second-color);
  border-radius: 60px;
  font-size: var(--button--font-size);
  font-weight: var(--font-weight--500);
  text-align: center;
  text-decoration: none;
  transition: background-color .4s var(--ease-soft), transform .3s var(--ease-soft);
}

.module-cta:hover {
  background-color: #fff;
}

.module-cta:active {
  transform: scale(.99);
}

/* --------------------------------------------------------------------------
   3c. Written reviews
   A message, not a pull quote. The card is black like the rest of the page,
   and the chat lives inside it: a sender panel on top, then the message on the
   wallpaper the students' own thread uses, closing on a read receipt. They sit
   on a rail so three read at a glance and the rest arrive on scroll.
   -------------------------------------------------------------------------- */

.review-rail {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.review-rail::-webkit-scrollbar {
  display: none;
}

.review-card {
  position: relative;
  flex: 0 0 460px;
  scroll-snap-align: start;
  display: flex;
  flex-flow: column;
  background-color: #0e0e0e;
  border: 1px solid #ffffff14;
  border-radius: 14px;
  padding: 14px;
  overflow: hidden;
  transition: border-color .4s var(--ease-soft);
}

.review-card:hover {
  border-color: #ffffff26;
}

/* The wallpaper, over the whole card the way it sits behind a real thread.
   Desaturated and blended so the pattern stays neutral on black rather than
   dragging Telegram's navy into the section. */
.review-card:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../assets/image.png");
  background-size: 420px;
  filter: grayscale(1);
  mix-blend-mode: lighten;
  opacity: .7;
  pointer-events: none;
}

.review-head,
.review-body,
.review-foot {
  position: relative;
  z-index: 1;
}

/* The sender: who wrote it, where to find them, and the jump in one panel. */
.review-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  background-color: #ffffff0a;
  border: 1px solid #ffffff17;
  border-radius: 12px;
  padding: 14px;
}

.review-avatar {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 100%;
  object-fit: cover;
}

.review-name {
  font-size: var(--font--h4);
  font-weight: var(--font-weight--600);
  letter-spacing: -.5px;
  line-height: 1.1;
}

.review-handle {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  opacity: .55;
  font-size: var(--text-field);
}

.review-ig {
  flex: none;
  width: 15px;
  height: 15px;
}

.review-ig svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Where they started, where they are now. */
.review-jump {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding-top: 13px;
  border-top: 1px solid #ffffff17;
}

.review-jump > div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.review-jump dt {
  opacity: .5;
  font-size: var(--text-field);
}

.review-jump dd {
  margin: 0;
  font-size: var(--text-field);
  font-weight: var(--font-weight--600);
}

/* The message itself sits straight on the wallpaper, no bubble: the card is
   the thread. Clamped by JS only when it actually overflows, so with scripting
   off the whole review is there. */
.review-body {
  flex: 1 1 auto;
  padding: 20px 6px 0;
}

.review-body.is-clamped {
  max-height: 11.5em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 70%, #0000);
  mask-image: linear-gradient(#000 70%, #0000);
}

.review-body p {
  margin: 0 0 12px;
  font-size: var(--button--font-size);
  line-height: var(--line-height--paragraph-line-height);
}

.review-body p:last-child {
  margin-bottom: 0;
}

.review-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 6px 2px;
  font-size: 11px;
  color: #ffffff70;
}

/* Opens the rest of the message in place; the time and the receipt hold the
   right edge the way they do in the thread. */
.review-more {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
  padding: 0;
  color: var(--colors--first-color);
  font-family: var(--font--primary-font);
  font-size: var(--text-field);
  letter-spacing: -.2px;
  background: none;
  border: 0;
  cursor: pointer;
  opacity: .8;
  transition: opacity .3s var(--ease-soft);
}

.review-more:hover {
  opacity: 1;
}

.review-more[hidden] {
  display: none;
}

.review-more svg {
  width: 13px;
  height: 13px;
  transition: transform .4s var(--ease-out-expo);
}

.review-more[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

.review-foot .tg-check {
  color: #6ac0f5;
}

/* --------------------------------------------------------------------------
   3d. Lead popup
   Every enrolment CTA opens this instead of jumping to the form at the bottom
   of the page. One sheet of dark glass, one column: the ask, a rule, three
   fields and the button. The form is the page's own markup, so course.js picks
   it up with no special case.
   -------------------------------------------------------------------------- */

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.lead-modal[hidden] {
  display: none;
}

.lead-modal-backdrop {
  position: absolute;
  inset: 0;
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
  background-color: #050505cc;
  animation: lead-fade .4s var(--ease-soft) both;
}

/* The panel carries the glass itself: a tinted fill, a hairline, an inner top
   highlight for the edge, and a wide low-opacity drop so it reads as lifted
   rather than glowing. */
.lead-modal-panel {
  position: relative;
  width: 100%;
  max-width: 470px;
  max-height: calc(100dvh - 56px);
  overflow: auto;
  background-color: #12121299;
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid #ffffff1f;
  border-radius: 16px;
  padding: 40px 34px 34px;
  box-shadow: inset 0 1px 0 #ffffff1a, 0 40px 90px -30px #000000b8;
  animation: lead-rise .6s var(--ease-out-expo) both;
}

/* A single soft light source at the top-left corner, well under the content. */
.lead-modal-panel:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: radial-gradient(120% 90% at 6% 0%, #ffffff14, #ffffff00 58%);
  pointer-events: none;
}

@keyframes lead-fade {
  from {
    opacity: 0;
  }
}

@keyframes lead-rise {
  from {
    opacity: 0;
    transform: translateY(22px) scale(.985);
  }
}

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

.lead-modal-body {
  position: relative;
  animation: lead-in .6s var(--ease-out-expo) .1s both;
}

/* The ask is the display face, centred over the stack, and it is the one place
   on the page a heading drops the leading copyright mark: it is a sentence
   spoken to the reader, not a section title. */
.lead-modal-title {
  margin: 0;
  text-align: center;
  font-size: var(--font--h2);
  font-weight: var(--font-weight--500);
  line-height: 1.02;
  letter-spacing: -.03em;
}

.lead-modal-rule {
  height: 1px;
  margin: 26px 0 24px;
  background-image: linear-gradient(90deg, #ffffff00, #ffffff2e 18%, #ffffff2e 82%, #ffffff00);
}

.lead-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--colors--first-color);
  background-color: #ffffff12;
  border: 1px solid #ffffff1f;
  border-radius: 100%;
  cursor: pointer;
  transition: background-color .3s var(--ease-soft), transform .3s var(--ease-soft);
}

.lead-modal-close svg {
  width: 15px;
  height: 15px;
}

.lead-modal-close:hover {
  background-color: #ffffff29;
}

.lead-modal-close:active {
  transform: scale(.94);
}

.lead-modal .hero-form {
  height: auto;
  row-gap: 0;
  grid-row-gap: 0;
  padding-bottom: 0;
}

.lead-modal .field-main {
  min-height: 54px;
  padding: 14px 18px;
  font-size: var(--text-field);
  background-color: #ffffff12;
  border: 1px solid #ffffff17;
}

.lead-modal .field-main::placeholder {
  color: #ffffff8a;
}

.lead-modal .field-main:focus {
  background-color: #0f0f0f;
  border-color: #ffffff45;
}

.lead-modal .field-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

/* The last field carries the gap up to the button. */
.lead-modal .field-block:last-of-type {
  margin-bottom: 18px;
}

.lead-modal .submit-button {
  width: 100%;
  min-height: 54px;
  padding-top: 0;
  padding-bottom: 0;
}

.lead-modal-note {
  margin-top: 14px;
  text-align: center;
  color: var(--colors--third-color);
  font-size: var(--text-field);
  line-height: var(--line-height--paragraph-line-height);
}

.lead-modal .success-message,
.lead-modal .error-message-2 {
  background-color: #ffffff0f;
  border: 1px solid #ffffff1f;
  border-radius: 10px;
  padding: 22px;
}

.lead-modal .error-message-2 {
  background-color: #fa242a;
  border-color: #ffffff00;
}

/* Held by course.js while the popup is open. --scrollbar-gap replaces the
   width the hidden scrollbar gave back, so the page does not jump sideways. */
.is-modal-open,
.is-modal-open body {
  overflow: hidden;
}

.is-modal-open body,
.is-modal-open .navigation-top {
  padding-right: var(--scrollbar-gap, 0px);
}

/* --------------------------------------------------------------------------
   4. Plans and contact block
   -------------------------------------------------------------------------- */

.pricing-grid.is-three {
  grid-template-columns: 1fr 1fr 1fr;
}

.plan-1 {
  height: 100%;
}

.plan-1.is-feature {
  background-color: #2b2b2b;
}

.plan-cta {
  margin-top: auto;
}

/* The plan CTA is a real button, not a text link with an arrow beside it.
   Altrum already has one - the "fill" variant of .button-arrow, which the
   template uses for its own primary calls: a light pill that inverts the
   label and the arrow onto it. The markup carries that variant, so all this
   adds is the width and the height, because a plan CTA should span its card
   and be the weight of the submit button the contact form uses. */
.plan-cta .button-arrow {
  justify-content: center;
  width: 100%;
  min-height: 50px;
  transition: background-color .4s var(--ease-soft), transform .3s var(--ease-soft);
}

.plan-cta .button-arrow:hover {
  background-color: #fff;
}

.plan-cta .button-arrow:active {
  transform: scale(.98);
}

/* The tag rides the Pro title's own row rather than sitting above it, so all
   three plan headings start on the same line and the feature card is not
   pushed down by its own badge. */
.plan-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.plan-tag {
  flex: none;
  color: #ffffffb3;
  font-size: var(--font--h6);
  background-color: #414141;
  border-radius: 5px;
  padding: 7px 8px 6px;
}

.contact-block {
  grid-column-gap: 15px;
  grid-row-gap: 15px;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  display: grid;
}

.contact-form-card {
  background-color: #232323;
  border-radius: 10px;
  padding: 30px;
}

.contact-form-card .field-main {
  min-height: 56px;
  background-color: #181818;
}

.contact-form-card .field-main:focus {
  background-color: #121212;
}

.contact-form-card .field-main.large {
  min-height: 130px;
  padding-top: 16px;
  resize: vertical;
}

/* Each block here holds a single field, and the template's .field-block is a
   two-column grid, so without this every input sat in column one at half the
   form's width. */
.contact-form-card .field-block {
  grid-template-columns: 1fr;
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   5. Gallery card meta
   -------------------------------------------------------------------------- */

.blog-main-wrapper .button-icon-main .buton-icon-svg svg {
  width: 15px;
  height: 15px;
}

.gallery-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   6. Keyboard focus - the template ships no visible focus state
   -------------------------------------------------------------------------- */

a:focus-visible,
button:focus-visible,
.field-main:focus-visible,
.video-grid:focus-visible,
.case-rail:focus-visible,
.review-rail:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid var(--colors--second-color);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   6b. Collapsing navbar
   Kasier's header move, kept after its intro band was dropped: the bar spans
   the page transparently at the top, then condenses into a floating glass pill
   as you scroll. It carries only the wordmark and the menu control, the way
   Kasier's does; the full menu lives in Altrum's hamburger panel.

   course.js sets one number, --nav-progress (0 at the top of the page, 1
   collapsed), scrubbed 1:1; everything below is interpolated from it, so the
   bar tracks the scroll with no second animation loop. The default is 1, not
   0, so a page that never boots its JS still shows a usable pill rather than
   a bar stuck mid-transition.

   Nothing here transforms .navigation-top or introduces a transformed wrapper
   inside it. .fixed-menu is position:fixed and already takes its containing
   block from the transform Webflow stamps on .navigation-top; a second
   transformed ancestor would drag the whole menu panel into the pill.
   -------------------------------------------------------------------------- */

:root {
  --nav-collapsed-w: 360px;
  --nav-top-end: 12px;
  --nav-progress: 1;
  --nav-rest: calc(1 - var(--nav-progress));
  --nav-pad-x-rest: var(--page-gutter);
  --nav-pad-x-end: 20px;
  /* Altrum's own bar is 30px tall in padding at rest and has no min-height;
     below 992px it swaps both for a 1% / 8vh bar, so the two live in
     variables and only the breakpoint changes them. */
  --nav-pad-y-rest: 30px;
  --nav-pad-y-end: 13px;
  --nav-min-h-rest: 0px;
}

/* Resting values match Altrum's own navbar exactly - full width, page gutter,
   30px vertical - so the top of the page looks untouched. */
.navbar-shell {
  position: relative;
  top: calc(var(--nav-progress) * var(--nav-top-end));
  width: calc(var(--nav-collapsed-w) + var(--nav-rest) * (100% - var(--nav-collapsed-w)));
  margin-left: auto;
  margin-right: auto;
}

.navbar-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: var(--nav-progress);
  border: 1px solid #ffffff1c;
  border-radius: 14px;
  background-color: #101010a8;
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
  box-shadow: inset 0 1px 0 #ffffff17, 0 22px 55px -26px #000000cc;
  pointer-events: none;
}

.navbar {
  position: relative;
  z-index: 1;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(var(--nav-rest) * var(--nav-min-h-rest));
  padding-top: calc(var(--nav-pad-y-end) + var(--nav-rest) * (var(--nav-pad-y-rest) - var(--nav-pad-y-end)));
  padding-bottom: calc(var(--nav-pad-y-end) + var(--nav-rest) * (var(--nav-pad-y-rest) - var(--nav-pad-y-end)));
  padding-left: calc(var(--nav-pad-x-end) + var(--nav-rest) * (var(--nav-pad-x-rest) - var(--nav-pad-x-end)));
  padding-right: calc(var(--nav-pad-x-end) + var(--nav-rest) * (var(--nav-pad-x-rest) - var(--nav-pad-x-end)));
}

/* The bar carries the wordmark and the menu control and nothing else, so it
   reads the same wide as it does collapsed. The row of inline links it used to
   hold is dropped rather than hidden mid-scroll: every one of them is already
   in the hamburger panel, which is where Kasier keeps its menu too. Left in
   the markup, out of the layout and out of the tab order. */
.navbar .make-grid {
  display: none;
}

/* Webflow gives .w-nav a clearfix ::before/::after. They were inert while the
   navbar was a grid, but as a flex container they become two zero-width flex
   items, and space-between then spaces four things instead of two - which
   parks the wordmark a third of the way in. */
.navbar:before,
.navbar:after {
  display: none;
}

.navbar .logo-first {
  flex: none;
}

/* Altrum blurs the strip its full-width navbar sits on. Once the bar has
   condensed the pill carries its own glass, and a full-width strip behind it
   would read as a band with something floating in the middle of it. */
.blur-effect {
  opacity: var(--nav-rest);
  pointer-events: none;
}

/* The menu control is Altrum's own - two bare lines, no frame - so it reads
   the same as the template does. It is a real button now, and its lines are
   ours: the template's .hamburger-wrapper class is the IX3 click trigger for
   the full-height panel, and this page opens a dropdown instead. */
.last-item {
  flex: none;
}

.menu-toggle {
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--colors--first-color);
}

.menu-lines {
  display: flex;
  flex-flow: column;
  justify-content: space-between;
  width: 50px;
  height: 15px;
}

.menu-line {
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transition: transform .45s var(--ease-out-expo);
}

/* Open: the two lines cross where they meet. 6.5px is half the gap, so each
   travels to the centre line before it turns. */
.menu-toggle[aria-expanded="true"] .menu-line:first-child {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-line:last-child {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6c. The menu
   Kasier opens its menu as a card under the navbar pill rather than a
   full-screen takeover, so this one does the same: same glass as .navbar-bg,
   the pill's width when collapsed, hung from the right so it stays under the
   control that opened it. Altrum's own slide-in panel and its IX3 timeline are
   gone with the markup; the timeline's trigger class no longer exists on the
   page, so it simply never runs.
   -------------------------------------------------------------------------- */

.nav-drop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 2;
  width: min(100%, 420px);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .35s var(--ease-soft), transform .5s var(--ease-out-expo), visibility 0s .45s;
}

.nav-drop.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .35s var(--ease-soft), transform .5s var(--ease-out-expo), visibility 0s;
}

.nav-drop-inner {
  max-height: calc(100dvh - 140px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px;
  border: 1px solid #ffffff1c;
  border-radius: 14px;
  background-color: #101010d9;
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  backdrop-filter: blur(30px) saturate(150%);
  box-shadow: inset 0 1px 0 #ffffff17, 0 30px 70px -28px #000000e0;
}

.nav-drop-label {
  text-align: center;
  color: var(--colors--third-color);
  font-size: var(--font--h6);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav-drop-rule {
  height: 1px;
  margin: 14px 0 6px;
  background-image: linear-gradient(90deg, #ffffff00, #ffffff2e 18%, #ffffff2e 82%, #ffffff00);
}

.nav-drop-links {
  display: flex;
  flex-flow: column;
}

.nav-drop-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 6px;
  color: var(--colors--first-color);
  text-decoration: none;
  border-bottom: 1px solid #ffffff0f;
  transition: color .3s var(--ease-soft), padding-left .4s var(--ease-out-expo);
}

.nav-drop-link:last-child {
  border-bottom: 0;
}

.nav-drop-link:hover {
  padding-left: 12px;
}

.nav-drop-name {
  font-size: var(--font--h5);
  font-weight: var(--font-weight--500);
  letter-spacing: -.5px;
}

.nav-drop-num {
  color: var(--colors--third-color);
  font-size: var(--font--h6);
}

/* The rows arrive one after another, the way Kasier's links scale in. */
.nav-drop.is-open .nav-drop-link,
.nav-drop.is-open .nav-drop-cta {
  animation: nav-drop-in .5s var(--ease-out-expo) both;
  animation-delay: calc(var(--i, 9) * 30ms + 60ms);
}

@keyframes nav-drop-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.nav-drop-cta {
  display: block;
  margin-top: 14px;
  padding: 13px 22px;
  text-align: center;
  text-decoration: none;
  color: var(--colors--fourth-color);
  background-color: var(--colors--second-color);
  border-radius: 60px;
  font-size: var(--button--font-size);
  font-weight: var(--font-weight--500);
  letter-spacing: -.5px;
  transition: background-color .4s var(--ease-soft), transform .3s var(--ease-soft);
}

.nav-drop-cta:hover {
  background-color: #fff;
}

.nav-drop-cta:active {
  transform: scale(.98);
}

/* Altrum's overlay is still on the page and costs nothing until it is asked
   for; the menu fades it in behind the card. IX3 registered it as a target and
   stamped opacity:0 inline during the ready sequence, so this needs the
   !important to win - the same reason the reduced-motion block below does. */
.page-overlay-main {
  transition: opacity .4s var(--ease-soft);
}

html.is-menu-open .page-overlay-main {
  opacity: 1 !important;
}

/* Altrum's marker row is a four-column grid and each plus sits at the start of
   its cell, so the row runs out well before the right edge. Centring them in
   their columns spreads the four evenly across the page with equal air at both
   ends. */
.grid-plus {
  justify-items: center;
}

/* --------------------------------------------------------------------------
   6b. Footer
   -------------------------------------------------------------------------- */

/* .grid-title.make-4 is a four-column grid. The contact card is placed on row
   1 by a Webflow node id, and .grid-title .h1.full-section spans 1 / -1, which
   conflicts with it and pushed the heading down into a second row - the card
   ended up floating a whole heading above "Let's Talk". Putting the heading on
   row 1 columns 1-3 seats the two side by side, and both start at the row's
   top edge so their tops line up. The align-self override needs the node id
   because the template sets align-self: center at that specificity. */
.grid-title.make-4 .h1.full-section {
  grid-area: 1 / 1 / 2 / 3;
  align-self: start;
}

#w-node-da49b1d2-431a-4e8e-b6c3-f4888cad9fea-8cad9fd8 {
  align-self: start;
}

/* The footer's two columns are the same height, but the left one only filled
   the top third, leaving the address, the phone number and the copyright
   stranded mid-page. The column now runs full height and that block is pushed
   to its foot, so it finishes level with the last row of the page index. */
.footer-grid > div:first-child {
  display: flex;
  flex-flow: column;
}

.footer-grid .max-left {
  flex: 1 1 auto;
  display: flex;
  flex-flow: column;
}

.footer-grid .max-left .small-vt-flex {
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   7. Reduced motion
   Webflow writes its timeline values inline, so these need !important to win.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .nav-drop,
  .nav-drop.is-open,
  .menu-line {
    transition-duration: .01ms;
  }

  .nav-drop.is-open .nav-drop-link,
  .nav-drop.is-open .nav-drop-cta {
    animation: none;
  }

  .intro {
    display: none !important;
  }

  .navigation-top,
  .hero-content,
  .hero-image {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Scroll-coupled movement, so the deck lies flat instead. */
  .case-row {
    position: static;
  }

  .case-row:before {
    display: none;
  }

  * {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* --------------------------------------------------------------------------
   8. Responsive - mirrors the template's own 991 / 767 / 479 stops
   -------------------------------------------------------------------------- */

@media screen and (max-width: 991px) {
  :root {
    --page-gutter: 48px;
  }

  /* The hero gains a form Altrum never had, so the bottom band stacks and the
     section is allowed to grow instead of clipping at its fixed height. The
     row gap is the template's own. */
  .logo-hero {
    display: flex;
    flex-flow: column;
    align-items: stretch;
    grid-row-gap: 30px;
  }

  /* Altrum pins the hero to a fixed 800/700px here so hero-content's
     space-between has room to work. This page's hero has to grow around the
     form instead, so the height floor moves onto hero-content itself: it
     fills the screen at minimum, the two bands still push apart, and a taller
     form simply extends the section. Without this the wrapper collapses to
     its content, space-between has nothing to distribute, and the bottom band
     ends up welded to the service list. */
  .hero {
    height: auto;
    min-height: 100dvh;
    align-items: stretch;
  }

  .hero-content {
    height: auto;
    min-height: 100dvh;
    /* Altrum's own mobile hero padding is 78px, and its hero has nothing above
       the wordmark but air. This one carries the intake line, the wordmark and
       the five-line service list, so the block is pulled up towards the bar:
       64px here and no top padding on the grid below puts the intake line
       about 20px under the wordmark in the header instead of 50. */
    padding-top: 64px;
    padding-bottom: 20px;
  }

  .plus-grid.flex {
    padding-top: 0;
  }

  /* The header is Altrum's mobile bar at rest: a 8vh strip with 1% of the
     page width above and below the wordmark, condensing into the pill on
     scroll exactly as it does on desktop. */
  :root {
    --nav-pad-y-rest: 1%;
    --nav-min-h-rest: 8vh;
  }

  html {
    scroll-padding-top: 96px;
  }

  /* The pill spans the page on tablet instead of holding a fixed width. */
  :root {
    --nav-collapsed-w: calc(100% - 2 * var(--page-gutter));
    --nav-pad-x-end: 18px;
  }

  .hero-form-cell {
    grid-area: auto;
  }

  .video-tile {
    flex-basis: 260px;
  }

  .module-result {
    grid-template-columns: 1fr;
  }

  /* A blurred layer per card is the wrong trade on a phone. */
  .case-glass {
    display: none;
  }

  /* The deck becomes a pan. Four reels stacked two deep are taller than a
     phone, so instead of stacking rows the eight cases flatten into one track
     that travels sideways while the viewport is held still: scrolling down
     walks the set across the screen.

     .case-pan is the runway. Its height is one screen plus --case-runway, and
     course.js sets that variable to the exact horizontal distance the track
     has to cover, so the pan runs 1:1 with the scroll. The variable defaults
     to 0px, which is also where it stays when the page has no JS or the reader
     asked for less motion - the runway then collapses to a single screen and
     .case-viewport is an ordinary swipe rail, with every card still reachable.

     No ScrollTrigger pin is involved: position:sticky does the holding, so the
     only height this adds to .main-content is the runway, a number set here
     rather than one GSAP inserts. That matters because the hero's wipe is
     scrubbed against .main-content's height. */
  /* The floating nav pill ends about 80px down, so the held window starts
     below it rather than at the top of the screen. Two things come out of
     that. The cards are never half-covered by the header while the set pans,
     and the hold begins as soon as the pan's top reaches this line instead of
     the top of the screen - so the sideways travel starts a header's worth of
     scroll earlier, rather than after the cards have ridden all the way up
     under the bar. course.js reads this value back off the viewport and
     starts its scrub on the same line. */
  :root {
    --case-hold-top: 96px;
  }

  .case-pan {
    display: block;
    position: relative;
    /* One held window plus the runway. The window is a screen less the hold
       offset, so the stuck distance works out at exactly the runway and the
       pan still tracks the scroll 1:1.

       svh, not dvh: the pan is held by sticky for the length of the runway,
       and a viewport unit that grows and shrinks with the address bar would
       reflow the runway underneath it mid-pan. */
    height: calc(100vh - var(--case-hold-top) + var(--case-runway, 0px));
    height: calc(100svh - var(--case-hold-top) + var(--case-runway, 0px));
    /* The track bleeds to both screen edges; .case-stack puts the gutter back
       in front of the first card and behind the last. */
    margin-left: calc(-1 * var(--page-gutter));
    margin-right: calc(-1 * var(--page-gutter));
  }

  .case-viewport {
    display: flex;
    align-items: center;
    position: sticky;
    top: var(--case-hold-top);
    height: calc(100vh - var(--case-hold-top));
    height: calc(100svh - var(--case-hold-top));
    /* A last nudge up, so the block does not sit low in the window it is
       held in. It costs nothing in the runway maths, which only ever measures
       the outer height. */
    padding-bottom: 48px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .case-viewport::-webkit-scrollbar {
    display: none;
  }

  /* Once course.js has measured the track and taken the pan over, the native
     scroll is switched off: two things moving the same track fight. */
  .case-pan.is-panning .case-viewport {
    overflow-x: hidden;
  }

  .case-stack {
    display: flex;
    gap: 15px;
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
  }

  /* Out of the box tree, so its four cards join the other four as direct
     children of the one flat track. */
  .case-row {
    display: contents;
  }

  /* display:contents drops the element's own box but still generates its
     pseudo-elements, so the opaque bed each row carried for the stack would
     otherwise turn up in the track as two blank cards. */
  .case-row:before {
    display: none;
  }

  /* A short phone leaves less room than the reel wants, and the window clips
     what does not fit. The frame gives up its 9:16 first - the still is
     object-fit: cover, so it simply crops - rather than the caption under it
     going missing. The subtrahend covers the caption, the card padding and
     the nudge above. */
  .case-media {
    max-height: calc(100svh - var(--case-hold-top) - 170px);
  }

  /* Section 07's cut log is the same card on a rail, and it gets the same pan:
     .case-rail is already a flex row, so it only has to stop being its own
     scroll container and let .case-viewport above it do the scrolling. */
  .case-pan.is-rail .case-rail {
    overflow: visible;
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
  }

  .case-card,
  .case-card.is-rail {
    flex: 0 0 min(70vw, 320px);
    scroll-snap-align: start;
  }

  /* The pan already ends on a screen with a band of air under the cards, so
     the template's 100px on top of that reads as a hole rather than a break,
     and the heading above it needs less room for the same reason. */
  .section.for-work {
    padding-bottom: 30px;
  }

  .section.for-work-section {
    padding-bottom: 16px;
  }

  .case-bar {
    padding: 13px 2px 9px;
  }

  .review-card {
    flex-basis: 400px;
  }

  /* The reel keeps its shape and the proof stays beside it; only the column
     narrows, because a full-width 9:16 frame would be taller than the page. */
  .rate-pair {
    grid-template-columns: minmax(190px, 240px) 1fr;
  }

  .rate-shot {
    min-height: 300px;
  }

  .pricing-grid.is-three {
    grid-template-columns: 1fr 1fr;
  }

  .contact-block {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 767px) {
  :root {
    --page-gutter: 26px;
  }

  /* The bottom band tightens up. It is pinned to the foot of the hero either
     way - hero-content is space-between - but with the service list gone the
     band started at 46% of the screen with a quarter-screen of empty portrait
     above it, which read as floating in the middle rather than sitting at the
     bottom. Nothing here moves the band down; it makes it shorter, so its
     first line starts lower. The field heights stay at 46px: they are the
     touch targets and are not part of the saving. */
  /* The hero runs a screen and a half-form deep. The lead form is the point
     of the first screen, and a form that is fully in view reads as finished;
     one cut off by the fold reads as something to scroll into. So the hero
     floor is a screen plus 150px, space-between hands that to the gap above
     the bottom band, and the band ends about 140px past the fold - roughly
     half the form. */
  .hero-content {
    min-height: calc(100dvh + 150px);
  }

  .hero-content .divider-s {
    height: 14px;
  }

  .logo-hero {
    grid-row-gap: 16px;
  }

  .hero-content {
    padding-bottom: 16px;
  }

  .hero-form-cell {
    padding: 14px;
  }

  .hero-form-cell .form-head {
    margin-bottom: 8px;
  }

  .hero-form-cell .field-block {
    grid-row-gap: 10px;
    row-gap: 10px;
    margin-bottom: 10px;
  }

  /* The five-line service list comes out of the hero here. Stacked under the
     wordmark it was the tallest thing on the first screen and pushed the lead
     form off it; the rotating subhead below already says what the course
     covers. It keeps its place from 768px up, where it sits in its own column
     beside the wordmark instead of underneath it. */
  .hero-content .service-flex-small {
    display: none;
  }

  .video-tile {
    flex-basis: min(72vw, 300px);
  }

  .review-card {
    flex-basis: min(84vw, 420px);
  }

  /* The row of plus markers closes the page, and Altrum's 20px dividers either
     side of it leave it sitting on top of the footer wordmark rather than
     apart from it. */
  .grid-plus {
    margin-top: 26px;
    margin-bottom: 26px;
  }

  /* The footer heading is short enough to hold one line at this size, and the
     template's break leaves "Talk" alone on the second. */
  .break-wide {
    display: none;
  }

  .module-head {
    grid-template-columns: 34px 1fr auto 20px;
    gap: 10px;
    padding: 20px 0;
  }

  .lead-modal {
    padding: 16px;
  }

  .lead-modal-panel {
    padding: 32px 20px 26px;
  }

  .last-item {
    width: 42px;
    height: 42px;
  }

  /* Altrum's logo hover swap is switched off at this breakpoint, so its
     partner word never gets an initial state and both words print. */
  .top-text.logo.animated {
    display: none;
  }

  .module-mark {
    width: 20px;
    height: 20px;
  }

  .module-body {
    padding-bottom: 26px;
  }

  .module-tags {
    margin-bottom: 22px;
  }

  .pricing-grid.is-three {
    grid-template-columns: 1fr;
  }

  /* The clip and the transfer that paid for it are one item, and side by side
     in two columns this narrow they stopped reading as one: a capped reel on
     the left, a separate dark panel under it, no visible tie between them.
     Below the tablet stop the pair becomes a single card - the clip runs the
     full width across the top of it, the thread and the amount carry on over
     the same surface with no seam and no gap - so the video and the message
     underneath are plainly the same story.

     The frame turns 4:5 rather than staying 9:16, because a full-width 9:16
     reel is 640px tall on a phone and would push the thread out of the same
     screen as the clip, which is the whole point of joining them. */
  .rate-pair {
    grid-template-columns: 1fr;
    grid-row-gap: 0;
    background-color: #232323;
    border-radius: 10px;
    overflow: hidden;
  }

  .rate-media {
    max-width: none;
    aspect-ratio: 4 / 5;
    border-radius: 0;
  }

  /* On the card's own surface now, so it drops its panel background and its
     corners - and its inset too, because the thread underneath the clip is a
     screenshot of the same width and reads as one column with it only if it
     runs edge to edge the way the clip does. The inset moves onto the text
     block below the thread, which is the only part that still wants it. */
  .rate-proof {
    background-color: #0000;
    border-radius: 0;
    padding: 0;
    grid-row-gap: 0;
    row-gap: 0;
  }

  .rate-shot {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .rate-proof > :last-child {
    padding: 20px;
  }

  .contact-form-card {
    padding: 20px;
  }

  .rate-media-meta {
    padding: 28px 20px 20px;
  }

  .hero-form-cell .field-block {
    grid-template-columns: 1fr;
  }

  .form-submit-row {
    flex-flow: column;
    align-items: stretch;
  }

  .submit-button {
    width: 100%;
  }
}

@media screen and (max-width: 479px) {
  :root {
    --page-gutter: 16px;
  }

  /* Altrum drops the six-column title row into a stacked flex column here, so
     the edition stamp lands directly under the section label, hard left. Two
     grey-on-black lines in a column read as one label that wrapped, not as a
     label and a marker. The row stays a row instead, and the stamp goes to the
     right edge, which is where it sits at every other width. */
  .title-small-main {
    flex-flow: row;
    flex-wrap: wrap;
    align-items: center;
    grid-column-gap: 12px;
  }

  .title-small-main > :has(> .top-text.gray) {
    margin-left: auto;
    text-align: right;
  }

  /* The arrow inside these cells is already hidden at this width, but the cell
     itself is not, and an empty flex item at the end of the row is what the
     stamp would otherwise be pushed against. */
  .title-small-main > :has(> .arrow-gray.hide-mobile) {
    display: none;
  }

  .hero-form-cell {
    padding: 14px;
  }

  .lead-modal {
    padding: 12px;
  }

  .form-head {
    flex-flow: column;
    align-items: flex-start;
    gap: 4px;
  }

  .video-tile-meta {
    padding: 14px;
  }

  .rate-media-meta {
    padding: 24px 20px 20px;
  }

  .video-tile-run {
    top: 10px;
    right: 10px;
  }

  .rate-shot {
    min-height: 270px;
  }

  .tg-feed {
    padding: 12px 11px 14px;
  }

  .rate-amount .numver-block {
    font-size: var(--counter-title-2);
  }
}

/* ==========================================================================
   9. Монтажер 360° additions
   Client round 1: After Effects keyframes instead of the template's plus
   marks, one light accent (Telegram blue) for highlighted items, looping
   lesson clips in the programme, the about + curators block, who-it-is-for,
   guarantees, priced plans and the floating CTA.
   ========================================================================== */

:root {
  --accent: #2aabee;
  --accent-soft: #8fd4ff;
  --accent-bg: rgba(42, 171, 238, .12);
  --accent-line: rgba(42, 171, 238, .42);
}

/* --- Keyframe icons ------------------------------------------------------
   Drawn like the After Effects timeline: the left half a shade lighter than
   the right. The selected state is AE's own - blue with a pale outline. */
.kf-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.kf-icon {
  --kf-l: #e9e9e9;
  --kf-d: #8e8e8e;
  --kf-s: transparent;
  --kf-sw: 0;
  flex: none;
  display: inline-flex;
  width: 14px;
  height: 14px;
}

.kf-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.kf-icon.is-selected {
  --kf-l: #9fd2ff;
  --kf-d: #2f8be6;
  --kf-s: #d6ecff;
  --kf-sw: 1;
  filter: drop-shadow(0 0 6px rgba(47, 139, 230, .45));
}

.kf-icon.is-lg {
  width: 26px;
  height: 26px;
}

.kf-icon.is-xl {
  width: 44px;
  height: 44px;
  opacity: .5;
}

.flex-small-title .kf-icon {
  margin-right: 2px;
}

/* A plain row of plus marks under the footer title becomes a strip of
   timeline: four keyframes sitting on one hairline. */
.kf-timeline {
  position: relative;
}

.kf-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #ffffff1a;
}

.kf-timeline > div {
  position: relative;
  display: flex;
  justify-content: center;
}

.kf-bullet {
  flex: none;
  display: inline-flex;
  width: 11px;
  height: 11px;
  margin-top: 3px;
  --kf-l: #e9e9e9;
  --kf-d: #8e8e8e;
  --kf-s: transparent;
  --kf-sw: 0;
}

.kf-bullet svg {
  width: 100%;
  height: 100%;
}

.item-flex {
  align-items: flex-start;
}

/* Section title rows written for this page place their cells on the same
   tracks as the template's own w-node ids. */
.title-small-main > .title-a {
  grid-area: 1 / 1 / 2 / 3;
}

.title-small-main > .title-c {
  grid-area: 1 / 4 / 2 / 5;
}

.title-small-main > .title-b {
  grid-area: 1 / 6 / 2 / 7;
  justify-self: end;
}

/* --- Hero word ------------------------------------------------------------ */
.h1.hero-word {
  white-space: nowrap;
  font-size: clamp(3.4rem, 13.2vw, 13.5rem);
  letter-spacing: -.05em;
}

.hero-dot {
  color: var(--accent);
}

/* --- Highlighted items: one light accent ---------------------------------- */
.module-tags li {
  color: #cdeeff;
  background-color: var(--accent-bg);
  border-color: var(--accent-line);
}

/* --- Programme: tags and outcome on the left, a looping lesson clip right -- */
.module-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 34%);
  gap: 32px;
  align-items: start;
}

.module-main {
  min-width: 0;
}

.module-result {
  grid-template-columns: 1fr;
}

.module-loop {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #111 center / cover no-repeat;
  border: 1px solid #ffffff14;
}

.module-loop-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.module-loop-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  color: #fff;
  font-size: var(--font--h6);
  line-height: 1;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 40px;
  padding: 6px 9px 5px;
}

.module-extra {
  margin: 28px 0 0;
  color: #ffffffb3;
  font-size: var(--button--font-size);
  line-height: var(--line-height--paragraph-line-height);
}

.module-extra strong {
  color: #fff;
  font-weight: var(--font-weight--500);
}

.module-extra.is-soon {
  margin-top: 10px;
}

.module-extra.is-soon strong {
  color: var(--accent-soft);
}

/* --- Plans --------------------------------------------------------------- */
.plan-price {
  margin: 14px 0 10px;
  font-size: 3rem;
  font-weight: var(--font-weight--600);
  letter-spacing: -.04em;
  line-height: 1;
}

.plan-currency {
  opacity: .45;
  font-size: .55em;
  vertical-align: .55em;
  margin-right: 2px;
}

.plan-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-pay {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  color: var(--colors--fourth-color);
  background-color: var(--colors--second-color);
  border-radius: 60px;
  font-size: var(--button--font-size);
  font-weight: var(--font-weight--500);
  text-decoration: none;
  transition: background-color .4s var(--ease-soft), transform .3s var(--ease-soft);
}

.plan-1.is-feature .plan-pay {
  color: #04121b;
  background-color: var(--accent-soft);
}

.plan-pay:hover {
  background-color: #fff;
}

.plan-pay:active {
  transform: scale(.98);
}

.plan-alt {
  color: #ffffffa6;
  font-size: var(--text-field);
  text-align: center;
  text-decoration: none;
  transition: color .3s var(--ease-soft);
}

.plan-alt:hover {
  color: #fff;
}

.plan-seats {
  color: var(--accent-soft);
  font-size: var(--text-field);
  text-align: center;
}

.plan-tag {
  color: #04121b;
  background-color: var(--accent-soft);
}

.plan-note {
  margin: 22px 0 0;
  color: #ffffff80;
  font-size: var(--text-field);
  text-align: center;
}

/* --- Guarantees ---------------------------------------------------------- */
.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-top: 40px;
}

.guarantee-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background-color: #232323;
  border-radius: 10px;
  padding: 26px;
}

.guarantee-title {
  margin: 8px 0 0;
  font-size: var(--font--h4);
  font-weight: var(--font-weight--500);
  letter-spacing: -.02em;
  line-height: 1.15;
}

.guarantee-text {
  margin: 0;
  color: #ffffffb3;
  line-height: var(--line-height--paragraph-line-height);
}

/* --- About + curators ---------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  align-items: stretch;
}

.about-photo {
  position: relative;
  min-height: 460px;
  border-radius: 10px;
  overflow: hidden;
  background: #232323;
}

.about-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.about-photo::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .78));
}

.about-photo-cap {
  position: absolute;
  z-index: 1;
  left: 22px;
  right: 22px;
  bottom: 20px;
}

.about-photo-name {
  font-size: var(--font--h4);
  font-weight: var(--font-weight--600);
}

.about-photo-role {
  opacity: .7;
  font-size: var(--text-field);
  margin-top: 4px;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.about-lead {
  margin: 0;
  font-size: 1.6rem;
  font-weight: var(--font-weight--500);
  letter-spacing: -.02em;
  line-height: 1.25;
}

.about-lead strong {
  color: var(--accent-soft);
  font-weight: var(--font-weight--500);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #ffffff1f;
}

.about-stat {
  padding: 22px 20px 22px 0;
  border-bottom: 1px solid #ffffff1f;
}

.about-stat:nth-child(odd) {
  border-right: 1px solid #ffffff1f;
}

.about-stat:nth-child(even) {
  padding-left: 20px;
}

.about-stat-num {
  font-size: 2.6rem;
  font-weight: var(--font-weight--600);
  letter-spacing: -.04em;
  line-height: 1;
}

.about-stat-num span {
  opacity: .45;
  font-size: .4em;
  letter-spacing: 0;
  margin-left: 6px;
}

.about-stat p {
  margin: 10px 0 0;
  color: #ffffffa6;
  font-size: var(--text-field);
  line-height: var(--line-height--paragraph-line-height);
}

.about-clients-label {
  opacity: .45;
  font-size: var(--text-field);
  margin-bottom: 12px;
}

.about-clients-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-clients-list li {
  color: #cdeeff;
  background-color: var(--accent-bg);
  border: 1px solid var(--accent-line);
  border-radius: 60px;
  padding: 10px 15px 9px;
  font-size: var(--text-field);
  line-height: 1;
}

.curators-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  align-items: end;
  margin-bottom: 30px;
}

.curators-head .h1 {
  margin: 0;
}

.curator-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.curator-card {
  background-color: #232323;
  border-radius: 10px;
  overflow: hidden;
}

.curator-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  background: repeating-linear-gradient(90deg, #1d1d1d 0 1px, transparent 1px 22px), #272727;
}

.curator-meta {
  padding: 14px 14px 16px;
}

.curator-name {
  font-weight: var(--font-weight--500);
}

.curator-role {
  opacity: .5;
  font-size: var(--font--h6);
  margin-top: 4px;
}

/* --- Who it is for + money ----------------------------------------------- */
.bridge {
  max-width: 900px;
}

.bridge-q {
  margin: 0 0 16px;
  font-size: var(--font--h2);
  font-weight: var(--font-weight--600);
  letter-spacing: -.03em;
  line-height: 1.1;
}

.fit-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 15px;
}

.fit-col {
  background-color: #151515;
  border: 1px solid #ffffff14;
  border-radius: 10px;
  padding: 32px;
}

.fit-col.is-yes {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, rgba(42, 171, 238, .08), rgba(42, 171, 238, 0) 60%), #151515;
}

.fit-title {
  margin: 0 0 22px;
  font-size: var(--font--h4);
  font-weight: var(--font-weight--500);
  letter-spacing: -.02em;
}

.fit-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fit-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: var(--line-height--paragraph-line-height);
}

.fit-item .kf-icon {
  margin-top: 3px;
}

.fit-item.is-no {
  color: #ffffffa6;
}

.money {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid #ffffff1f;
}

.money-figure {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: var(--font-weight--600);
  letter-spacing: -.05em;
  line-height: 1;
  color: var(--accent-soft);
}

.money-cur {
  opacity: .55;
  font-size: .55em;
  vertical-align: .6em;
}

.money-per {
  display: block;
  margin-top: 10px;
  color: #ffffff80;
  font-size: var(--text-field);
  font-weight: var(--font-weight--400);
  letter-spacing: 0;
}

.money-text {
  margin: 22px 0 0;
  color: #ffffffcc;
  line-height: var(--line-height--paragraph-line-height);
}

.money-text.is-muted {
  margin-top: 12px;
  color: #ffffff80;
  font-size: var(--text-field);
}

/* --- Lead popup: the plan the visitor picked ------------------------------ */
.lead-modal-plan {
  margin: 10px 0 0;
  color: var(--accent-soft);
  font-size: var(--text-field);
}

/* --- Floating CTA ---------------------------------------------------------
   Appears once the first screen is behind, leaves before the closing call
   to action in the footer. */
.float-cta {
  position: fixed;
  z-index: 900;
  left: 50%;
  bottom: 22px;
  width: min(520px, calc(100% - 32px));
  transform: translate(-50%, calc(100% + 40px));
  opacity: 0;
  pointer-events: none;
  transition: transform .6s var(--ease-out-expo), opacity .4s var(--ease-soft);
}

.float-cta.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.is-modal-open .float-cta,
html.is-menu-open .float-cta {
  opacity: 0;
  pointer-events: none;
}

.float-cta-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 62px;
  padding: 8px 8px 8px 26px;
  color: #04121b;
  background: linear-gradient(100deg, #8fd4ff, #2aabee);
  border-radius: 60px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .18) inset;
  font-weight: var(--font-weight--600);
  text-decoration: none;
  transition: transform .3s var(--ease-soft), box-shadow .3s var(--ease-soft);
}

.float-cta-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .3) inset;
}

.float-cta-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.float-cta-sub {
  opacity: .7;
  font-size: var(--font--h6);
  font-weight: var(--font-weight--500);
  margin-top: 3px;
}

.float-cta-go {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: #fff;
  background: #04121b;
  border-radius: 50%;
}

.float-cta-go svg {
  width: 18px;
  height: 18px;
}

@media (prefers-reduced-motion: reduce) {
  .float-cta {
    transition: opacity .2s linear;
  }
}

@media screen and (max-width: 991px) {
  .module-body {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .module-loop {
    order: -1;
    max-width: 560px;
  }

  .guarantee-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-photo {
    min-height: 0;
    aspect-ratio: 4 / 4.2;
    max-width: 520px;
  }

  .curator-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fit-grid,
  .money,
  .curators-head {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 767px) {
  .plan-price {
    font-size: 2.5rem;
  }

  .guarantee-grid {
    grid-template-columns: 1fr;
  }

  .about-lead {
    font-size: 1.25rem;
  }

  .about-stat-num {
    font-size: 2rem;
  }

  /* The curators travel sideways on a phone instead of stacking six tall. */
  .curator-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-right: calc(var(--page-gutter) * -1);
    padding-right: var(--page-gutter);
    scrollbar-width: none;
  }

  .curator-grid::-webkit-scrollbar {
    display: none;
  }

  .curator-card {
    flex: 0 0 44%;
    scroll-snap-align: start;
  }

  .fit-col {
    padding: 22px;
  }

  .bridge-q {
    font-size: 1.6rem;
  }

  .float-cta {
    bottom: 14px;
  }

  .float-cta-link {
    min-height: 56px;
    padding-left: 20px;
  }

  .float-cta-go {
    width: 42px;
    height: 42px;
  }
}

/* --- Media round: self-hosted clips, briefs, proof ------------------------ */
video.case-frame {
  object-fit: contain;
  z-index: 3;
}

.hero-loop {
  height: 100%;
  opacity: .7;
}

.section-note {
  max-width: 62ch;
  margin: -10px 0 28px;
  color: #ffffff8c;
  font-size: var(--text-field);
  line-height: var(--line-height--paragraph-line-height);
}

/* The client card that replaced the demo Telegram thread: who, what, how much. */
.rate-shot.client-brief {
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  background: linear-gradient(160deg, rgba(42, 171, 238, .1), rgba(42, 171, 238, 0) 55%), #171717;
}

.brief-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}

.brief-name {
  font-size: var(--font--h2);
  font-weight: var(--font-weight--600);
  letter-spacing: -.03em;
  line-height: 1;
}

.brief-ig {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-soft);
  font-size: var(--text-field);
  text-decoration: none;
}

.brief-ig:hover {
  text-decoration: underline;
}

.brief-ig .review-ig {
  width: 15px;
  height: 15px;
  display: inline-flex;
}

.brief-list {
  display: grid;
  gap: 0;
  margin: auto 0 0;
  border-top: 1px solid #ffffff1a;
}

.brief-list > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #ffffff1a;
}

.brief-list dt {
  color: #ffffff73;
  font-size: var(--text-field);
}

.brief-list dd {
  margin: 0;
  line-height: var(--line-height--paragraph-line-height);
}

/* Amounts the client asked to keep private. */
.is-blur {
  filter: blur(11px);
  user-select: none;
  -webkit-user-select: none;
}

.proof-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 22px;
}

.proof-title {
  margin: 0;
  font-size: var(--font--h2);
  font-weight: var(--font-weight--600);
  letter-spacing: -.03em;
}

.proof-sub {
  margin: 0;
  color: #ffffff80;
  font-size: var(--text-field);
}

.proof-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: #ffffff33 transparent;
}

.proof-receipt {
  flex: 0 0 300px;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid #ffffff14;
}

.proof-receipt img,
.proof-chat img {
  display: block;
  width: 100%;
  height: auto;
}

.proof-chats {
  columns: 4 220px;
  column-gap: 12px;
}

.proof-chat {
  break-inside: avoid;
  margin: 0 0 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #ffffff14;
}

.divider-l {
  height: 50px;
}

.review-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #04121b;
  background: linear-gradient(135deg, #cdeeff, var(--accent));
  font-size: 1.15rem;
  font-weight: var(--font-weight--600);
  letter-spacing: -.02em;
}

.review-badge {
  align-self: center;
  margin-left: auto;
  color: #cdeeff;
  background-color: var(--accent-bg);
  border: 1px solid var(--accent-line);
  border-radius: 60px;
  padding: 7px 11px 6px;
  font-size: var(--font--h6);
  line-height: 1;
}

@media screen and (max-width: 767px) {
  .proof-receipt {
    flex-basis: 76%;
  }

  .proof-chats {
    columns: 2 140px;
    column-gap: 8px;
  }

  .proof-chat {
    margin-bottom: 8px;
  }

  .brief-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .brief-name {
    font-size: 1.6rem;
  }
}

/* --- Round 1 polish ------------------------------------------------------ */
.module-tags li {
  color: #e3f5ff;
  background-color: rgba(42, 171, 238, .22);
  border-color: rgba(143, 212, 255, .55);
}

/* The Ukrainian closing word is one long word, so the contact card moves
   under it instead of sharing its line. */
.for-ftr .grid-title.make-4 {
  grid-template-columns: 1fr;
  row-gap: 30px;
}

.for-ftr #w-node-da49b1d2-431a-4e8e-b6c3-f4888cad9fea-8cad9fd8 {
  grid-area: 2 / 1 / 3 / 2;
  width: 100%;
  max-width: 460px;
}

.for-ftr .img-team {
  object-fit: cover;
  object-position: 50% 25%;
}

/* Ukrainian hero slides run longer than the template's English ones; on a
   phone they would wrap into the line above, so they stay on one line at a
   size that fits. */
.slide-wrapper .subhead.slide {
  white-space: nowrap;
}

@media screen and (max-width: 767px) {
  /* The slide window has to be exactly one line tall: the animation moves each
     line by 100% of its own height, so any spare pixels show the next one. */

  .hero-loop {
    opacity: .85;
  }
}


@media screen and (min-width: 768px) and (max-width: 1199px) {
  .logo-hero .subhead {
    font-size: 21px;
    line-height: 26px;
  }

  .logo-hero .slide-wrapper {
    height: 29px;
    padding-bottom: 0;
  }
}

/* No sideways page scroll on any width. clip, unlike hidden, does not make
   a scroll container, so the sticky rows and pans keep working. */
html,
body {
  overflow-x: clip;
}

.about-grid > *,
.about-stats > * {
  min-width: 0;
}

@media screen and (max-width: 380px) {
  .about-stat-num {
    font-size: 1.7rem;
  }

  .about-stat:nth-child(even) {
    padding-left: 14px;
  }

  .about-stat {
    padding-right: 14px;
  }
}

/* ==========================================================================
   Round 2: mobile polish
   ========================================================================== */

/* The intro line under "Студенти в кадрі" reads as one line wherever it fits. */
@media screen and (min-width: 992px) {
  .section-note {
    max-width: none;
    white-space: nowrap;
  }
}

/* About: every figure stays on one line; the unit drops under it as a small
   caption, so a long number like $10 000+ never breaks. */
.about-stat-num {
  white-space: nowrap;
}

@media screen and (max-width: 767px) {
  .about-stat-num {
    font-size: clamp(1.55rem, 7.6vw, 2.1rem);
    letter-spacing: -.045em;
  }

  .about-stat-num span {
    display: block;
    margin: 8px 0 0;
    font-size: 10.5px;
    font-weight: var(--font-weight--500);
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .about-stat p {
    margin-top: 6px;
    font-size: 12.5px;
  }

  .about-stat {
    padding: 18px 12px 18px 0;
  }

  .about-stat:nth-child(even) {
    padding-left: 14px;
  }
}

/* Plans: tighter cards on a phone. */
@media screen and (max-width: 767px) {
  .plan-1 {
    grid-row-gap: 12px;
    padding: 20px 18px 20px;
  }

  .plan-1 .card-max {
    max-width: 100%;
  }

  .plan-1 .card-max p {
    margin-bottom: 0;
    font-size: 13.5px;
    line-height: 1.35;
    opacity: .8;
  }

  .plan-head {
    align-items: center;
  }

  .plan-price {
    margin: 8px 0 6px;
    font-size: 2.1rem;
  }

  .plan-1 .add-max-w {
    margin-bottom: 0;
    font-size: 12px;
  }

  .plan-1 .margin-20 {
    margin-top: 10px;
  }

  .plan-1 .item-flex {
    margin-bottom: 7px;
  }

  .plan-1 .item-flex.no-btm {
    margin-bottom: 0;
  }

  .plan-1 .p-no-bottom {
    font-size: 13px;
    line-height: 1.3;
  }

  .plan-cta {
    gap: 8px;
    margin-top: 6px;
  }

  .plan-pay {
    min-height: 46px;
    font-size: 15px;
  }

  .plan-alt,
  .plan-seats {
    font-size: 12px;
  }

  .pricing-grid.is-three {
    row-gap: 10px;
  }

  .plan-note {
    margin-top: 14px;
    font-size: 12px;
  }
}

/* Guarantees: on a phone the cards stack onto each other as the page
   scrolls, each one sliding over the last and leaving its top edge showing. */
@media screen and (max-width: 767px) {
  .guarantee-grid {
    display: block;
    margin-top: 26px;
  }

  .guarantee-item {
    position: sticky;
    top: calc(96px + var(--stack, 0) * 14px);
    min-height: 210px;
    margin-bottom: 16px;
    background-color: #262626;
    border: 1px solid #ffffff17;
    box-shadow: 0 -12px 30px rgba(0, 0, 0, .5);
  }

  .guarantee-item:nth-child(2) { --stack: 1; }
  .guarantee-item:nth-child(3) { --stack: 2; }
  .guarantee-item:nth-child(4) { --stack: 3; margin-bottom: 0; }
}

/* Reviews: on a phone every card is clamped to the same short height, with
   "Читати далі" to open the rest in place. */
@media screen and (max-width: 767px) {
  .review-body.is-clamped {
    max-height: 8.2em;
  }

  .review-body {
    padding-top: 16px;
  }

  .review-body p {
    font-size: 14.5px;
  }

  .review-name {
    font-size: 1.1rem;
    line-height: 1.15;
  }

  .review-head {
    padding: 12px;
    gap: 12px;
  }

  .review-head .review-avatar {
    width: 48px;
    height: 48px;
  }
}

/* Footer: on narrow screens the contacts, the copyright and the credit close
   the block, after the page index, instead of sitting above it. */
@media screen and (max-width: 991px) {
  .footer-grid {
    display: flex;
    flex-direction: column;
  }

  .footer-grid > div:first-child,
  .footer-grid .max-left {
    display: contents;
  }

  .footer-grid .logo-first { order: 1; }
  .footer-grid .h1.for-h2 { order: 2; }
  .footer-grid .divider-xxl { display: none; }
  .footer-grid .max-w-right { order: 3; width: 100%; }

  .footer-grid .small-vt-flex {
    order: 4;
    margin-top: 14px;
  }
}

/* ==========================================================================
   Round 3
   ========================================================================== */

/* --- Mobile hero: the brand block sits lower, the offer outweighs the link.
   The slide window stays exactly one line: font and line box are set in px
   together, and the window is that line plus the 3px top padding. */
@media screen and (max-width: 767px) {
  .hero-content {
    padding-top: 150px;
  }

  .logo-hero .subhead {
    font-size: 21px;
    line-height: 25px;
    letter-spacing: -.01em;
  }

  .logo-hero .slide-wrapper {
    height: 28px;
    padding-bottom: 0;
  }


  .logo-hero .divider-s {
    height: 16px;
  }
}

@media screen and (max-width: 389px) {
  .hero-content {
    padding-top: 132px;
  }

  .logo-hero .subhead {
    font-size: 19.5px;
    line-height: 23px;
  }

  .logo-hero .slide-wrapper {
    height: 26px;
  }
}

@media screen and (max-width: 350px) {
  .logo-hero .subhead {
    font-size: 16.8px;
    line-height: 20px;
  }

  .logo-hero .slide-wrapper {
    height: 23px;
  }
}

/* --- Mobile rhythm: 80px between every two blocks. ----------------------- */
@media screen and (max-width: 767px) {
  #stories {
    padding-top: 80px;
    padding-bottom: 0;
  }

  .section.for-work-section {
    padding-top: 80px;
  }

  .section.for-work {
    padding-bottom: 80px;
  }

  .section.for-services {
    padding-bottom: 80px;
  }

  .section.for-services.for-ftr {
    padding-bottom: 30px;
  }
}

/* --- Lead popup, round 3 ---------------------------------------------------- */
.lead-modal-panel {
  max-width: 500px;
  padding: 30px 30px 26px;
  background-color: #141414e6;
}

.lead-modal-panel:focus {
  outline: none;
}

.lead-modal-panel:after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 160px;
  border-radius: inherit;
  background: radial-gradient(80% 100% at 50% 0%, rgba(42, 171, 238, .16), rgba(42, 171, 238, 0));
  pointer-events: none;
}

.lead-modal-top {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 18px;
  padding-right: 44px;
}

.lead-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cdeeff;
  background-color: var(--accent-bg);
  border: 1px solid var(--accent-line);
  border-radius: 60px;
  padding: 7px 12px 6px 10px;
  font-size: 12px;
  font-weight: var(--font-weight--500);
  line-height: 1;
}

.lead-modal-badge .kf-icon {
  width: 11px;
  height: 11px;
}

.lead-modal .lead-modal-title {
  text-align: left;
  font-size: 2.1rem;
  font-weight: var(--font-weight--600);
  letter-spacing: -.035em;
}

.lead-modal-sub {
  margin: 12px 0 22px;
  color: #ffffff99;
  font-size: 14.5px;
  line-height: 1.4;
}

.lead-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.lead-plans-label {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  padding: 0;
  color: #ffffff73;
  font-size: 12px;
}

.lead-plan {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.lead-plan input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lead-plan-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 12px 12px 11px;
  background-color: #1d1d1d;
  border: 1px solid #ffffff17;
  border-radius: 10px;
  transition: border-color .3s var(--ease-soft), background-color .3s var(--ease-soft);
}

.lead-plan:hover .lead-plan-box {
  border-color: #ffffff33;
}

.lead-plan-name {
  font-size: 13.5px;
  font-weight: var(--font-weight--500);
  line-height: 1.1;
}

.lead-plan-price {
  color: #ffffff80;
  font-size: 12.5px;
  line-height: 1;
}

.lead-plan input:checked + .lead-plan-box {
  background-color: rgba(42, 171, 238, .14);
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent-soft) inset;
}

.lead-plan input:checked + .lead-plan-box .lead-plan-price {
  color: var(--accent-soft);
}

.lead-plan input:focus-visible + .lead-plan-box {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

.lead-modal .field-block.is-single {
  margin-bottom: 10px;
}

.lead-modal .submit-button.lead-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 58px;
  margin-top: 6px;
  padding: 6px 6px 6px 22px;
  color: #04121b;
  background: linear-gradient(100deg, #8fd4ff, #2aabee);
  border: 0;
  border-radius: 60px;
  font-size: 16px;
  font-weight: var(--font-weight--600);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18) inset;
  transition: transform .3s var(--ease-soft), filter .3s var(--ease-soft);
}

.lead-modal .submit-button.lead-submit:hover {
  filter: brightness(1.06);
}

.lead-modal .submit-button.lead-submit:active {
  transform: scale(.985);
}

.lead-submit-go {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: #fff;
  background: #04121b;
  border-radius: 50%;
}

.lead-submit-go svg {
  width: 18px;
  height: 18px;
}

.lead-modal .lead-modal-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  color: #ffffff80;
  font-size: 12.5px;
  line-height: 1.4;
  text-align: left;
}

.lead-modal .lead-modal-note .kf-icon {
  width: 12px;
  height: 12px;
  margin-top: 2px;
}

.lead-success-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.lead-success-icon .kf-icon.is-xl {
  opacity: 1;
}

/* On a phone the popup is a bottom sheet: it rises from the edge the thumb
   is on, with a grab handle, and the fields sit within reach. */
@media screen and (max-width: 767px) {
  .lead-modal {
    align-items: flex-end;
    padding: 0;
  }

  .lead-modal-panel {
    max-width: none;
    max-height: calc(100dvh - 24px);
    border-radius: 22px 22px 0 0;
    border-bottom: 0;
    padding: 26px 18px calc(18px + env(safe-area-inset-bottom));
    animation: lead-sheet .55s var(--ease-out-expo) both;
  }

  .lead-modal-panel .lead-modal-body:before {
    content: "";
    position: absolute;
    top: -16px;
    left: 50%;
    width: 40px;
    height: 4px;
    margin-left: -20px;
    border-radius: 4px;
    background: #ffffff38;
  }

  .lead-modal-close {
    top: 16px;
    right: 14px;
  }

  .lead-modal .lead-modal-title {
    font-size: 1.75rem;
  }

  .lead-modal-sub {
    margin-bottom: 18px;
    font-size: 14px;
  }

  .lead-plan-box {
    padding: 10px 10px 9px;
  }

  .lead-plan-name {
    font-size: 13px;
  }
}

@keyframes lead-sheet {
  from {
    transform: translateY(100%);
  }
}

/* The intake badge lines up with the left edge of the wordmark on a phone. */
@media screen and (max-width: 767px) {
  .hero #w-node-_50f1b65b-3db5-8a4c-bd9e-9011522aeed6-86e38a65.since-text {
    align-self: flex-start;
    justify-self: start;
    padding-right: 0;
    margin-left: 0;
  }
}

/* Arrow buttons carry two copies of their label for the hover roll; the
   window has to be exactly one line tall or the top of the second copy shows
   under the first. Line box and window are both 1.2em of the label size. */
.button-title-flex {
  font-size: var(--button--font-size);
  height: 1.2em;
}

.button-title-flex .button-small-name {
  font-size: 1em;
  line-height: 1.2em;
}

@media screen and (max-width: 767px) {
  .logo-hero .button-title-flex {
    font-size: 14px;
  }
}

/* The Alpha Digital credit sits on the left edge, in line with the contacts
   and the copyright above it. */
.copywrith-dark .ad-credit-row {
  justify-content: flex-start;
}

/* --- Round 2 (06.11.2026): client edits from Notion ---------------------- */
/* Hero: the wordmark is now «Монтажер 360°», three letters longer than
   «Hoida.Prod», so the size steps down to keep it on one line. */
.h1.hero-word {
  font-size: clamp(2.6rem, 9.6vw, 9.8rem);
}

/* The note under a paid amount: half the size and quieter (GrowUp). */
.rate-note.card-text {
  font-size: .8rem;
  line-height: 1.45;
  opacity: .5;
}

/* Brief cards no longer stretch to the reel's height, so the client's name
   and "Що робимо" sit together instead of a hole opening between them. */
.rate-shot.client-brief {
  flex: 0 0 auto;
  min-height: 0;
}

.rate-shot.client-brief .brief-list {
  margin-top: 0;
}

/* Guest lecturers: four real cards with photos. */
.curator-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.curator-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-photo-img {
  object-position: 50% 30%;
}

/* Reviews: no A/B row and no badge any more, so the cards can be shorter. */
.review-head {
  padding: 12px 14px;
}

.review-avatar {
  width: 52px;
  height: 52px;
}

.review-body {
  padding-top: 14px;
}

.review-body.is-clamped {
  max-height: 9.5em;
}

/* Legal links in the footer and inline links in FAQ / guarantees. */
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 8px;
}

.legal-links a,
.guarantee-text a,
.toggle-space .paragraph a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #ffffff59;
  text-underline-offset: 3px;
}

.legal-links a:hover,
.guarantee-text a:hover,
.toggle-space .paragraph a:hover {
  text-decoration-color: currentColor;
}

@media screen and (max-width: 991px) {
  .curator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 767px) {
  .curator-grid {
    display: flex;
  }
}

.curators-head {
  grid-template-columns: 1fr;
}

/* --- Portfolio: two horizontal reels share the first vertical zone ------ */
/* Nine zones now (the pair + eight reels), so the deck is three rows of
   three. The frame gives up a little height on short screens so a whole row
   still fits under the nav pill while it is pinned. */
.case-row.is-three {
  grid-template-columns: repeat(3, 1fr);
}

.case-row.is-three .case-media {
  max-height: calc(100vh - 96px - 130px);
}

.case-duo {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
}

.case-card.is-wide {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.case-card.is-wide .case-media,
.case-row.is-three .case-card.is-wide .case-media {
  aspect-ratio: auto;
  flex: 1 1 auto;
  min-height: 150px;
  max-height: none;
}

.case-card.is-wide .case-bar {
  padding-top: 11px;
  padding-bottom: 8px;
}

.case-card.is-wide .case-name {
  margin-top: 3px;
}

@media screen and (max-width: 991px) {
  /* In the flat phone track the pair is one stop, as tall as the reels. */
  .case-duo {
    flex: 0 0 min(70vw, 320px);
    scroll-snap-align: start;
  }

  .case-duo .case-card.is-wide {
    flex: 1 1 0;
  }
}

/* Modal: the submit splits in two, one per WayForPay link */
.lead-pay-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.lead-modal .lead-pay-row .submit-button.lead-submit {
  justify-content: center;
  margin-top: 0;
  padding: 6px 10px;
  font-size: 15px;
  text-align: center;
}

.lead-modal .lead-pay-row .submit-button.lead-submit:disabled {
  opacity: .7;
}

@media screen and (max-width: 339px) {
  .lead-pay-row {
    grid-template-columns: 1fr;
  }
}

/* m360-discount */
:root { --deal: #3ee07f; }
.plan-price.is-deal { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.plan-old { position: relative; color: #ffffff66; font-size: .58em; }
.plan-old::after { content: ""; position: absolute; left: -4%; right: -4%; top: 50%; height: 3px;
  background: var(--deal); border-radius: 2px; transform: rotate(-9deg); }
.plan-new { color: var(--deal); }
.plan-new .plan-currency { opacity: .7; }
.deal-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 8px 12px 7px;
  border: 1px solid #3ee07f59; border-radius: 6px; background: #3ee07f14; color: var(--deal);
  font-size: var(--text-field); line-height: 1.3; }
.deal-badge b { font-weight: var(--font-weight--600); }
.lead-plan-price s { text-decoration-color: var(--deal); text-decoration-thickness: 2px; opacity: .6; margin-right: 4px; }
.lead-plan-price .lead-plan-new, .lead-plan input:checked + .lead-plan-box .lead-plan-price .lead-plan-new { color: var(--deal); }

/* m360-swipe (12.11.2026): on phones and tablets the two case tracks are a
   plain swipe slider - no sticky window, no scroll-driven pan. */
@media screen and (max-width: 991px) {
  .case-pan { height: auto; }
  .case-viewport {
    position: relative;
    top: auto;
    height: auto;
    padding-bottom: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--page-gutter);
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
  }

  .case-card, .case-card.is-rail { scroll-snap-stop: always; }
}

/* m360-about-photo (12.11.2026): Safari/WebKit sizes a grid item with
   aspect-ratio and only absolutely-placed content from its own ratio, so with
   no explicit width the photo box collapsed to 0x0 on iPhones. */
.about-photo,
.rate-media { width: 100%; }
