/* ============================================================
   ATLAS STUDIO — the home page (rebuilt 14.09.2026)
   Loaded by index.html only, after style.css. Every class here starts with
   "h-", so the other pages are untouched. The previous home page is kept in
   _versions/home-redesign-prev/.
   Photo-first: a headline with a changing ending, a moving wall of our own
   frames, the numbers, two running lines of platforms, three direction panels
   that open under the cursor, an editorial "why", the four steps and a final
   call with the camera that prints polaroids.
   ============================================================ */

/* ---------- 1. First screen ---------- */
.h-hero { overflow-x: clip; }
.h-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(28px, 4.5vw, 72px);
  align-items: center;
}
.h-hero-copy { display: grid; gap: clamp(20px, 2.4vw, 30px); min-width: 0; }
@media (max-width: 1000px) {
  .h-hero-grid { grid-template-columns: minmax(0, 1fr); }
}

/* a small pill over the headline; its dot is cut in the three colours of the studio */
.h-kicker {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 8px 16px 8px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--glass-brd);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: var(--inner-hi);
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-2);
}
.h-kicker-dot {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(#17A66C 0 33.3%, #A855F7 0 66.6%, #E0576E 0);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .12);
}

/* The headline: a fixed start and an ending that changes every three seconds —
   brands, AI, stock — each in the colour of its own page. The three endings
   share one grid cell, so the line keeps the height of the longest one and
   nothing under it jumps. */
.h-title {
  margin: 0;
  max-width: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 4.2vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  color: var(--text);
}
.h-title-a { display: block; }
.h-rotor { display: grid; }
.h-word {
  grid-area: 1 / 1;
  padding: .02em 0 .1em;          /* room for descenders inside the clipped gradient */
  opacity: 0;
  transform: translateY(.3em);
  filter: blur(6px);
  animation: hWord 9s var(--ease) infinite;
}
.h-word:nth-child(2) { animation-delay: 3s; }
.h-word:nth-child(3) { animation-delay: 6s; }
@keyframes hWord {
  0%       { opacity: 0; transform: translateY(.3em);  filter: blur(6px); }
  6%, 30%  { opacity: 1; transform: none;              filter: blur(0); }
  36%, 100% { opacity: 0; transform: translateY(-.25em); filter: blur(6px); }
}

.h-lead {
  margin: 0;
  max-width: none;
  font-size: clamp(1.04rem, 1.4vw, 1.22rem);
  line-height: 1.65;
  color: var(--text-2);
  text-align: justify;
  text-align-last: left;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* buttons fill their row, as everywhere on the site */
.h-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.h-cta .btn { flex: 1 1 auto; justify-content: center; min-height: 62px; }   /* both buttons one height, side by side and stacked */
@media (max-width: 620px) {
  .h-cta .btn { white-space: normal; line-height: 1.3; text-align: center; overflow-wrap: anywhere; }
}

/* The wall: three columns of our frames drifting up and down, masked soft at
   the top and bottom; it stops under the cursor. */
.h-wall { --wall-gap: clamp(10px, 1.1vw, 16px); position: relative; min-width: 0; }
.h-wall-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--wall-gap);
  height: clamp(540px, 46vw, 680px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.h-col { position: relative; min-width: 0; overflow: hidden; }
.h-track {
  display: flex;
  flex-direction: column;
  gap: var(--wall-gap);
  padding-bottom: var(--wall-gap);   /* both halves the same length, so the loop has no seam */
  animation: hWallUp 62s linear infinite;
  will-change: transform;
}
/* the middle column starts at the same line as the others, in the same soft fade; its
   frames are staggered against theirs by starting its drift a little further on */
.h-col:nth-child(2) .h-track { animation-name: hWallDown; animation-duration: 74s; animation-delay: -9s; }
.h-col:nth-child(3) .h-track { animation-duration: 56s; animation-delay: -18s; }
.h-wall:hover .h-track { animation-play-state: paused; }
@keyframes hWallUp   { from { transform: translate3d(0, 0, 0); }    to { transform: translate3d(0, -50%, 0); } }
@keyframes hWallDown { from { transform: translate3d(0, -50%, 0); } to { transform: translate3d(0, 0, 0); } }

.h-tile {
  position: relative;
  flex: none;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: clamp(16px, 1.6vw, 24px);
  border: 1px solid var(--glass-brd);
  background: var(--bg-deep);
  box-shadow: var(--glass-shadow);
  isolation: isolate;
}
.h-tile--sq   { aspect-ratio: 1; }
.h-tile--wide { aspect-ratio: 4 / 3; }
.h-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s var(--ease);
}
.h-tile:hover img { transform: scale(1.07); }

.h-wall-tag {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px 11px 14px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: .86rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  box-shadow: var(--glass-shadow-lg), var(--inner-hi);
  animation: hFloat 7s ease-in-out infinite;
  pointer-events: none;
}
.h-wall-tag svg { width: 17px; height: 17px; flex: none; color: var(--accent-text); }
.h-wall-tag--live { left: clamp(-28px, -2vw, -12px); top: 15%; }
.h-wall-tag--dl { right: clamp(-24px, -1.6vw, -10px); bottom: 13%; animation-delay: -3.5s; }
.h-live {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: #FF4D5E;
  animation: hLive 1.6s ease-out infinite;
}
@keyframes hLive {
  0%        { box-shadow: 0 0 0 0 rgba(255, 77, 94, .55); }
  80%, 100% { box-shadow: 0 0 0 9px rgba(255, 77, 94, 0); }
}
@keyframes hFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 1000px) {
  .h-wall-cols { height: clamp(380px, 66vw, 560px); }
  .h-wall-tag--live { left: 12px; }
  .h-wall-tag--dl { right: 12px; }
}
@media (max-width: 560px) {
  .h-wall-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); height: 420px; }
  .h-col:nth-child(3) { display: none; }
  .h-wall-tag { font-size: .74rem; padding: 9px 14px 9px 11px; gap: 8px; }
}

/* ---------- 2. The numbers ---------- */
.h-stats-sec { padding-block: clamp(10px, 2vw, 24px) clamp(34px, 5vw, 64px); }
.h-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: clamp(22px, 3vw, 38px) clamp(10px, 2vw, 24px);
  border-radius: var(--r-xl);
}
.h-stat {
  position: relative;
  display: grid;
  gap: 8px;
  justify-items: center;
  align-content: start;
  min-width: 0;
  padding: 6px clamp(8px, 1.6vw, 22px);
  text-align: center;
}
.h-stat + .h-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(var(--accent-rgb), .28), transparent);
}
.h-stat-n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -.04em;
  padding-bottom: .06em;
  white-space: nowrap;
}
.h-stat-l { font-size: clamp(.78rem, 1vw, .92rem); font-weight: 500; line-height: 1.35; color: var(--text-2); }
@media (max-width: 760px) {
  .h-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .h-stat:nth-child(3)::before { display: none; }
}

/* ---------- 3. Two running lines: where our work is licensed, who we shoot for ---------- */
.h-mq-sec { padding-block: 0 clamp(40px, 6vw, 90px); overflow-x: clip; }
.h-mq-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 6px;
  padding-inline: var(--pad);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-3);
}
.h-mq-label::before,
.h-mq-label::after {
  content: "";
  flex: 0 1 64px;
  height: 1px;
  background: rgba(var(--accent-rgb), .32);
}
.h-mq-label--2 { margin-top: clamp(12px, 1.6vw, 20px); }
.h-mq {
  overflow: hidden;
  padding-block: 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.h-mq-track { display: flex; width: max-content; animation: hMarquee 110s linear infinite; }   /* one long line of all the brands, unhurried */
.h-mq--rev .h-mq-track { animation-direction: reverse; animation-duration: 56s; }
.h-mq:hover .h-mq-track { animation-play-state: paused; }
.h-mq-set {
  display: flex;
  align-items: center;
  flex: none;
  gap: clamp(16px, 2vw, 30px);
  padding-right: clamp(16px, 2vw, 30px);
}
.h-mq-item {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.15rem, 2.1vw, 1.85rem);
  letter-spacing: -.02em;
  line-height: 1.15;
  white-space: nowrap;
  color: var(--text);
  opacity: .34;
  transition: opacity var(--t) var(--ease);
}
.h-mq-item:hover { opacity: .9; }
.h-mq--rev .h-mq-item { font-weight: 700; color: var(--text-3); opacity: .62; }
.h-mq--rev .h-mq-item:hover { color: var(--text); opacity: .9; }
.h-mq-sep { width: clamp(15px, 1.5vw, 20px); height: clamp(15px, 1.5vw, 20px); flex: none; animation: hSpin 9s linear infinite; }   /* a camera aperture, turning slowly */
.h-mq-sep:nth-of-type(3n+1) { color: #17A66C; }
.h-mq-sep:nth-of-type(3n+2) { color: #A855F7; }
.h-mq-sep:nth-of-type(3n)   { color: #E0576E; }
@keyframes hMarquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ---------- 4. Section heads: title on the left, lead on the right ---------- */
.h-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(14px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.h-head-main { display: grid; gap: 12px; justify-items: start; }
.h-head .h1 { margin: 0; }
.h-head .lead {
  max-width: none;
  margin: 0;
  text-align: justify;
  text-align-last: left;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.h-head:not(:has(> .lead)) { grid-template-columns: minmax(0, 1fr); }
.h-head--center { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.h-head--center .h-head-main { justify-items: center; }
@media (max-width: 1000px) {
  .h-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

/* ---------- 5. The three directions ---------- */
/* On a wide screen the panels stand side by side; the one under the cursor (or
   keyboard focus, or a tap) opens at once and the other two step back to a title.
   Why it runs smooth: no text re-wraps while the panels change width. home.js
   measures the open and the closed inner width (again on resize) and the title and
   the details are set at exactly those widths; the title swaps its width under a
   short fade, the details unfold through a grid row (0fr -> 1fr, no max-height
   guess) and fade in a beat later. Below 1000px the panels stack, all open. */
.h-dirs {
  --dir-t: .6s;
  --dir-ease: cubic-bezier(.22, 1, .36, 1);
  display: flex;
  gap: clamp(12px, 1.4vw, 18px);
  height: clamp(600px, 52vw, 680px);
}
.h-dir {
  --dir-rgb: 23, 166, 108;
  --dir-deep: 2, 26, 17;
  --dir-light: #9BEDC6;
  position: relative;
  isolation: isolate;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  padding: clamp(20px, 2.2vw, 30px);
  border-radius: var(--r-xl);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: var(--glass-shadow-lg);
  color: #FFFFFF;
  cursor: pointer;
  outline: none;
  transition: flex-grow var(--dir-t) var(--dir-ease), border-color .4s var(--dir-ease), box-shadow .4s var(--dir-ease);
}
.h-dir--data    { --dir-rgb: 168, 85, 247; --dir-deep: 17, 7, 40;  --dir-light: #E1CFFF; }
.h-dir--premium { --dir-rgb: 224, 87, 110; --dir-deep: 38, 6, 14;  --dir-light: #F8C3CD; }
.h-dir.is-open {
  flex-grow: 2.4;
  cursor: default;
  border-color: rgba(var(--dir-rgb), .60);
  box-shadow: var(--glass-shadow-lg), 0 30px 70px -40px rgba(var(--dir-rgb), .9);
}
.h-dir:focus-visible { border-color: #FFFFFF; }
.h-dir-img {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(.8);
  transition: transform 1.2s var(--dir-ease), filter var(--dir-t) var(--dir-ease);
}
.h-dir.is-open .h-dir-img { transform: scale(1); filter: none; }
.h-dir::before {                  /* the colour of the direction rising from the bottom */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(var(--dir-deep), .30) 0%, rgba(var(--dir-deep), .10) 30%, rgba(var(--dir-deep), .72) 62%, rgba(var(--dir-deep), .96) 100%),
    linear-gradient(0deg, rgba(var(--dir-rgb), .30), rgba(var(--dir-rgb), 0) 55%);
}
.h-dir::after {                   /* a closed panel sits a little darker */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(var(--dir-deep), .22);
  transition: opacity var(--dir-t) var(--dir-ease);
}
.h-dir.is-open::after { opacity: 0; }

.h-dir-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.h-dir-no {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px 7px 10px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.h-dir-no i { width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--dir-rgb)); box-shadow: 0 0 0 3px rgba(var(--dir-rgb), .3); }
.h-dir-ico {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--dir-light);
  transition: transform var(--dir-t) var(--ease-liquid), background .4s var(--dir-ease), color .4s var(--dir-ease);
}
.h-dir-ico svg { width: 21px; height: 21px; }
.h-dir.is-open .h-dir-ico { transform: rotate(-10deg); background: rgba(var(--dir-rgb), .55); color: #FFFFFF; }

.h-dir-body { display: grid; min-width: 0; }
.h-dir-title {
  width: var(--w-closed, auto);
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.1vw, 2.05rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  text-wrap: balance;
  animation: hDirTitleA .5s var(--dir-ease) both;
}
.h-dir.is-open .h-dir-title { width: var(--w-open, auto); animation-name: hDirTitleB; }
/* two names for the same fade, so it runs again each time a panel opens or closes */
@keyframes hDirTitleA { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes hDirTitleB { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.h-dir-more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dir-t) var(--dir-ease);
}
.h-dir.is-open .h-dir-more { grid-template-rows: 1fr; }
.h-dir-more-in {
  width: var(--w-open, auto);
  min-height: 0;
  overflow: hidden;
  display: grid;
  gap: 14px;
  /* room round the content for the button's glow: the clip (needed while the panel
     slides open) used to cut it off in a dark rectangle; the extra padding is taken
     back by the negative margins, so nothing moves */
  padding: 14px 0 34px 22px;
  margin: 0 0 -34px -22px;
  box-sizing: content-box;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .3s var(--dir-ease), visibility 0s linear .18s;
}
.h-dir.is-open .h-dir-more-in {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .35s ease .12s, transform .5s var(--dir-ease) .08s, visibility 0s;
}
.h-dir-more p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .88);
  text-align: left;               /* one short line: set flush, no stretched word gaps */
}
.h-dir-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 20px;
}
.h-dir-list li { display: flex; gap: 9px; font-size: .88rem; line-height: 1.4; color: rgba(255, 255, 255, .94); }
.h-dir-list svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--dir-light); }
/* The button of each direction is cut from the same lit glass as the main call of the
   first screen, in the direction's own colour: a light sweeps across it on hover, the
   label reads from the left, and the arrow sits in a small glass disc at the right end,
   nudging forward on hover. */
.h-dir-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 56px;
  margin-top: 4px;
  padding: 6px 6px 6px 24px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, .30);
  background:
    radial-gradient(120% 160% at 10% 0%, rgba(255, 255, 255, .28), transparent 55%),
    linear-gradient(135deg, rgba(var(--dir-rgb), 1) 0%, rgba(var(--dir-rgb), .86) 55%, rgba(var(--dir-rgb), .70) 100%);
  box-shadow:
    0 16px 34px -16px rgba(var(--dir-rgb), .90),
    inset 0 1px 0 rgba(255, 255, 255, .42),
    inset 0 -1px 0 rgba(0, 0, 0, .18);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--t) var(--ease-liquid), box-shadow var(--t) var(--ease);
}
.h-dir-btn::after {                 /* the light that sweeps across on hover */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 35%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}
.h-dir-btn-label { flex: 1 1 auto; min-width: 0; text-align: left; line-height: 1.25; text-wrap: balance; }   /* on a phone a long label takes two tight lines */
.h-dir-btn-key {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .32);
  background: linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38);
  transition: transform .5s var(--ease-liquid);
}
.h-dir-btn-key svg { width: 17px; height: 17px; }
.h-dir-btn:hover { transform: translateY(-2px); box-shadow: 0 22px 42px -16px rgba(var(--dir-rgb), 1), inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(0, 0, 0, .18); }
.h-dir-btn:hover::after { animation: mailSheen 1.1s var(--ease); }
.h-dir-btn:hover .h-dir-btn-key { transform: translateX(3px); }
.h-dir-btn:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .h-dir-btn:hover::after { animation: none; } }

@media (max-width: 1000px) {
  .h-dirs { flex-direction: column; height: auto; }
  .h-dir, .h-dir.is-open {
    --band: clamp(190px, 44vw, 320px);
    flex: none;
    justify-content: flex-start;
    padding-top: calc(var(--band) - 6px);
    background: rgb(var(--dir-deep));
    cursor: default;
  }
  .h-dir-top { position: absolute; top: clamp(20px, 2.2vw, 30px); left: clamp(20px, 2.2vw, 30px); right: clamp(20px, 2.2vw, 30px); }
  .h-dir-img, .h-dir.is-open .h-dir-img { bottom: auto; height: calc(var(--band) + 70px); transform: none; filter: none; }
  .h-dir::before {
    background:
      linear-gradient(180deg, rgba(var(--dir-deep), .25) 0, rgba(var(--dir-deep), .04) 32%, rgba(var(--dir-deep), .72) calc(var(--band) - 30px), rgb(var(--dir-deep)) calc(var(--band) + 60px)),
      linear-gradient(0deg, rgba(var(--dir-rgb), .24), rgba(var(--dir-rgb), 0) 45%);
  }
  .h-dir::after { opacity: 0; }
  .h-dir-title, .h-dir.is-open .h-dir-title { width: auto; animation: none; }
  .h-dir-more, .h-dir.is-open .h-dir-more { grid-template-rows: 1fr; transition: none; }
  .h-dir-more-in, .h-dir.is-open .h-dir-more-in { width: auto; opacity: 1; visibility: visible; transform: none; transition: none; }
}
@media (max-width: 560px) {
  .h-dir-list { grid-template-columns: minmax(0, 1fr); }
  .h-dir-btn { justify-self: stretch; }
}

/* ---------- 6. Why Atlas: the argument on the left, six numbered points on the right ---------- */
.h-why {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 5vw, 84px);
  align-items: start;
}
.h-why-side {
  position: sticky;
  top: calc(var(--nav-h) + 30px);
  display: grid;
  gap: 16px;
  justify-items: start;
}
.h-why-side .h1 { margin: 0; font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.08; letter-spacing: -.03em; }
.h-why-side .lead {
  max-width: none;
  margin: 0;
  font-size: clamp(.98rem, 1.15vw, 1.08rem);
  line-height: 1.65;
  text-align: justify;
  text-align-last: left;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.h-why-photo {
  justify-self: stretch;
  position: relative;
  margin: 12px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  border-radius: var(--r-xl);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--glass-shadow-lg);
}
.h-why-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.4s var(--ease); }
.h-why-photo:hover img { transform: scale(1.05); }

.h-why-list { list-style: none; margin: 0; padding: 0; display: grid; }
.h-why-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(14px, 1.8vw, 24px);
  align-items: center;
  padding: clamp(16px, 1.9vw, 24px) clamp(8px, 1.2vw, 16px);
  border-top: 1px solid rgba(var(--accent-rgb), .20);
  transition: border-color .35s var(--ease);
}
.h-why-item:last-child { border-bottom: 1px solid rgba(var(--accent-rgb), .20); }
.h-why-item::before {              /* on hover the row becomes a pane of light liquid glass, rounded at both ends */
  content: "";
  position: absolute;
  inset: 3px 0;
  z-index: -1;
  border-radius: 24px;
  border: 1px solid var(--glass-brd);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .08)),
    rgba(var(--accent-rgb), .05);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
          backdrop-filter: blur(18px) saturate(170%);
  box-shadow:
    0 16px 34px -24px rgba(var(--accent-rgb), .55),
    inset 0 1px 0 rgba(255, 255, 255, .80),
    inset 0 -1px 0 rgba(var(--accent-rgb), .08);
  opacity: 0;
  transform: scale(.985);
  transition: opacity .35s var(--ease), transform .5s var(--ease-liquid);
}
[data-theme="dark"] .h-why-item::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02)),
    rgba(var(--accent-rgb), .06);
  box-shadow:
    0 18px 38px -24px rgba(0, 0, 0, .70),
    inset 0 1px 0 rgba(255, 255, 255, .18);
}
.h-why-item:hover::before { opacity: 1; transform: none; }
/* the hairlines above and below the lit row step aside, so the pane stands on its own */
.h-why-item:hover,
.h-why-item:hover + .h-why-item { border-top-color: transparent; }
.h-why-item:last-child:hover { border-bottom-color: transparent; }
/* the numbers are coins like the seven in the pill above: a rim in the three
   colours of the studio turning slowly, the figure in the same gradient */
.h-why-no {
  position: relative;
  isolation: isolate;
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: transform var(--t) var(--ease-liquid);
}
.h-why-no::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #17A66C, #A855F7, #E0576E, #17A66C);
  animation: hSpin 12s linear infinite;
}
.h-why-no::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: 50%;
  background: var(--bg-top);
}
.h-why-no b {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #17A66C, #A855F7 55%, #E0576E);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.h-why-item:nth-child(2) .h-why-no::before { animation-delay: -2s; }
.h-why-item:nth-child(3) .h-why-no::before { animation-delay: -4s; }
.h-why-item:nth-child(4) .h-why-no::before { animation-delay: -6s; }
.h-why-item:nth-child(5) .h-why-no::before { animation-delay: -8s; }
.h-why-item:nth-child(6) .h-why-no::before { animation-delay: -10s; }
.h-why-item:hover .h-why-no { transform: scale(1.08) rotate(-6deg); }
.h-why-txt h3 { margin: 0 0 5px; font-size: clamp(1.02rem, 1.3vw, 1.14rem); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.h-why-txt p { margin: 0; font-size: .9rem; line-height: 1.6; color: var(--text-2); }
.h-why-ico {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--glass-brd);
  background: var(--glass-bg);
  box-shadow: var(--inner-hi);
  color: var(--accent-text);
  transition: transform var(--t) var(--ease-liquid);
}
.h-why-ico svg { width: 18px; height: 18px; }
.h-why-item:hover .h-why-ico { transform: rotate(-8deg) scale(1.06); }
@media (max-width: 1000px) {
  .h-why { grid-template-columns: minmax(0, 1fr); }
  .h-why-side { position: static; }
}
@media (max-width: 520px) {
  .h-why-item { grid-template-columns: auto minmax(0, 1fr); }
  .h-why-ico { display: none; }
}

/* "7 years of daily production" set like the pill over the headline; the seven
   sits in a coin whose rim turns slowly in the three colours of the studio */
.h-why-kicker { padding: 5px 18px 5px 5px; gap: 12px; }
.h-seven {
  position: relative;
  isolation: isolate;
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.h-seven::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #17A66C, #A855F7, #E0576E, #17A66C);
  animation: hSpin 6s linear infinite;
}
.h-seven::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: 50%;
  background: var(--bg-top);
}
.h-seven b {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  background: linear-gradient(135deg, #17A66C, #A855F7 55%, #E0576E);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes hSpin { to { transform: rotate(360deg); } }

/* ---------- 7. From brief to delivery: four steps on one coloured line ---------- */
.h-steps {
  --step-a: #0E7C52; --step-b: #7C3AED; --step-c: #A8283C; --step-d: var(--blue-500);
  --gap: clamp(16px, 2.4vw, 32px);
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}
[data-theme="dark"] .h-steps { --step-a: #3FC98E; --step-b: #B794FF; --step-c: #E0576E; --step-d: #5B92FF; }
/* the line runs between the coins and stops a little short of each (the coins
   are glass, so it must not show through them); the four centres sit at 0, ⅓, ⅔
   and the end of the line */
.h-steps::before,
.h-steps::after {
  --hole: 40px;
  -webkit-mask-image: linear-gradient(90deg,
      transparent 0 var(--hole), #000 var(--hole) calc(33.333% - var(--hole)),
      transparent calc(33.333% - var(--hole)) calc(33.333% + var(--hole)), #000 calc(33.333% + var(--hole)) calc(66.667% - var(--hole)),
      transparent calc(66.667% - var(--hole)) calc(66.667% + var(--hole)), #000 calc(66.667% + var(--hole)) calc(100% - var(--hole)),
      transparent calc(100% - var(--hole)));
          mask-image: linear-gradient(90deg,
      transparent 0 var(--hole), #000 var(--hole) calc(33.333% - var(--hole)),
      transparent calc(33.333% - var(--hole)) calc(33.333% + var(--hole)), #000 calc(33.333% + var(--hole)) calc(66.667% - var(--hole)),
      transparent calc(66.667% - var(--hole)) calc(66.667% + var(--hole)), #000 calc(66.667% + var(--hole)) calc(100% - var(--hole)),
      transparent calc(100% - var(--hole)));
}
.h-steps::before {
  content: "";
  position: absolute;
  left: calc((100% - 3 * var(--gap)) / 8);     /* from the centre of the first circle */
  right: calc((100% - 3 * var(--gap)) / 8);    /* to the centre of the last */
  top: 31px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--step-a), var(--step-b) 40%, var(--step-c) 72%, var(--step-d));
  opacity: .55;
}
/* a soft light runs along the line, from the brief to the delivery */
.h-steps::after {
  content: "";
  position: absolute;
  left: calc((100% - 3 * var(--gap)) / 8);
  right: calc((100% - 3 * var(--gap)) / 8);
  top: 29px;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, transparent 0, rgba(255, 255, 255, .95) 50%, transparent 100%) no-repeat;
  background-size: 18% 100%;
  filter: blur(1.5px);
  mix-blend-mode: overlay;
  animation: hStepRun 5.5s cubic-bezier(.45, 0, .25, 1) infinite;
  pointer-events: none;
}
[data-theme="dark"] .h-steps::after { mix-blend-mode: normal; opacity: .55; }
@keyframes hStepRun { from { background-position: -30% 0; } to { background-position: 130% 0; } }
.h-step { position: relative; display: grid; gap: 10px; align-content: start; justify-items: center; min-width: 0; text-align: center; }

/* The number: a light coin of tinted glass in the colour of its step — a fine
   gradient rim, a soft light from the top left, the figure in a gradient of the
   same colour, a gentle coloured glow under it. It stands still. */
.h-step-no {
  position: relative;
  isolation: isolate;
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(120% 120% at 30% 10%, rgba(255, 255, 255, .70), rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, rgba(var(--c-rgb), .08), rgba(var(--c-rgb), .18));
  -webkit-backdrop-filter: blur(14px) saturate(160%);
          backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 12px 26px -16px rgba(var(--c-rgb), .60), inset 0 1px 0 rgba(255, 255, 255, .80);
  transition: transform .6s var(--ease-liquid), box-shadow .6s var(--ease);
}
[data-theme="dark"] .h-step-no {
  background:
    radial-gradient(120% 120% at 30% 10%, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, rgba(var(--c-rgb), .18), rgba(var(--c-rgb), .07));
  box-shadow: 0 14px 30px -18px rgba(var(--c-rgb), .75), inset 0 1px 0 rgba(255, 255, 255, .20);
}
.h-step-no::before {                      /* the rim */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1.5px;
  border-radius: 50%;
  background: conic-gradient(from 200deg,
      rgba(var(--c-rgb), .95), rgba(var(--c-rgb), .25) 28%, rgba(var(--c-rgb), .70) 52%,
      rgba(var(--c-rgb), .20) 78%, rgba(var(--c-rgb), .95));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.h-step-no b {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(170deg, rgb(var(--c-rgb)) 0%, var(--c-lo) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[data-theme="dark"] .h-step-no b { background-image: linear-gradient(170deg, #FFFFFF 0%, var(--c-hi) 55%, rgb(var(--c-rgb)) 100%); }
.h-step:hover .h-step-no { transform: translateY(-3px); box-shadow: 0 18px 32px -14px rgba(var(--c-rgb), .75), inset 0 1px 0 rgba(255, 255, 255, .8); }
[data-theme="dark"] .h-step:hover .h-step-no { box-shadow: 0 18px 34px -14px rgba(var(--c-rgb), .85), inset 0 1px 0 rgba(255, 255, 255, .24); }
.h-step:nth-child(1) { --c: var(--step-a); --c-rgb: 14, 124, 82;  --c-hi: #4ADE9F; --c-lo: #064E36; }
.h-step:nth-child(2) { --c: var(--step-b); --c-rgb: 124, 58, 237; --c-hi: #B794FF; --c-lo: #3B0F8C; }
.h-step:nth-child(3) { --c: var(--step-c); --c-rgb: 168, 40, 60;  --c-hi: #F07A8E; --c-lo: #5A1522; }
.h-step:nth-child(4) { --c: var(--step-d); --c-rgb: 47, 107, 255; --c-hi: #8DB4FF; --c-lo: #173A99; }
[data-theme="dark"] .h-step:nth-child(1) { --c: #17A66C; --c-rgb: 63, 201, 142; }
[data-theme="dark"] .h-step:nth-child(2) { --c: #8B5CF6; --c-rgb: 183, 148, 255; }
[data-theme="dark"] .h-step:nth-child(3) { --c: #C43A52; --c-rgb: 224, 87, 110; }
[data-theme="dark"] .h-step:nth-child(4) { --c: #3F7BFF; --c-rgb: 91, 146, 255; }
.h-step .h3 { margin: 0; }
.h-step p { margin: 0; text-align: justify; text-align-last: center; -webkit-hyphens: auto; hyphens: auto; }
@media (max-width: 900px) {
  .h-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .h-steps::before, .h-steps::after { display: none; }
}
@media (max-width: 560px) {
  .h-steps { grid-template-columns: minmax(0, 1fr); }
  .h-steps::before {
    display: block;
    left: 31px;
    right: auto;
    top: 32px;
    bottom: 32px;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--step-a), var(--step-b) 40%, var(--step-c) 72%, var(--step-d));
    -webkit-mask-image: linear-gradient(180deg,
        transparent 0 var(--hole), #000 var(--hole) calc(33.333% - var(--hole)),
        transparent calc(33.333% - var(--hole)) calc(33.333% + var(--hole)), #000 calc(33.333% + var(--hole)) calc(66.667% - var(--hole)),
        transparent calc(66.667% - var(--hole)) calc(66.667% + var(--hole)), #000 calc(66.667% + var(--hole)) calc(100% - var(--hole)),
        transparent calc(100% - var(--hole)));
            mask-image: linear-gradient(180deg,
        transparent 0 var(--hole), #000 var(--hole) calc(33.333% - var(--hole)),
        transparent calc(33.333% - var(--hole)) calc(33.333% + var(--hole)), #000 calc(33.333% + var(--hole)) calc(66.667% - var(--hole)),
        transparent calc(66.667% - var(--hole)) calc(66.667% + var(--hole)), #000 calc(66.667% + var(--hole)) calc(100% - var(--hole)),
        transparent calc(100% - var(--hole)));
  }
  .h-step { grid-template-columns: 64px minmax(0, 1fr); column-gap: 18px; row-gap: 6px; justify-items: stretch; align-items: center; text-align: left; }
  .h-step p { text-align-last: left; }
  .h-step-no { margin: 0; }                      /* one row: the title sits on the middle of the number */
  .h-step p { grid-column: 2; }
}

/* ---------- 8. The final call ---------- */
.h-final {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--r-xl);
}
.h-final-aurora {
  position: absolute;
  inset: -30%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 46% at 16% 22%, rgba(23, 166, 108, .22), transparent 70%),
    radial-gradient(40% 50% at 52% 92%, rgba(168, 85, 247, .24), transparent 70%),
    radial-gradient(34% 44% at 88% 28%, rgba(224, 87, 110, .22), transparent 70%);
  animation: hAurora 18s ease-in-out infinite alternate;
}
@keyframes hAurora { to { transform: translate3d(4%, -3%, 0) rotate(8deg); } }
.h-final-copy { display: grid; gap: clamp(14px, 2vw, 22px); justify-items: start; min-width: 0; }
.h-final-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.8rem);
  line-height: 1.03;
  letter-spacing: -.035em;
}
.h-final-copy .lead {
  max-width: none;
  margin: 0;
  text-align: justify;
  text-align-last: left;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.h-final-copy .h-cta { justify-self: stretch; }
/* the pill takes the larger share of the row; both keep one height */
.h-final .h-cta .mail-split { flex: 1 1 380px; }
.h-final .h-cta > * { min-height: 65px; }
@media (max-width: 420px) { .h-final { padding: 24px 18px; } }

/* ---------- motion, for people who ask for less of it ---------- */
@media (prefers-reduced-motion: reduce) {
  .h-track, .h-mq-track, .h-final-aurora, .h-wall-tag, .h-live, .h-mq-sep, .h-seven::before, .h-dir-title, .h-why-no::before { animation: none; }
  .h-steps::after { display: none; }
  .h-dir-more, .h-dir-more-in, .h-dir.is-open .h-dir-more-in { transition: none; }
  .h-word { animation: none; }
  .h-word:not(:first-child) { display: none; }
  .h-word:first-child { opacity: 1; transform: none; filter: none; }
  .h-dir, .h-dir-img, .h-dir::after, .h-dir-more, .h-dir.is-open .h-dir-more { transition: none; }
}

/* Стена стоит, пока её не видно: класс ставит наблюдатель в home.js */
.h-wall.is-idle .h-track { animation-play-state: paused; }
