/*
 * Axis: Swiss Grid Monochrome (docs/design/templates-research.md, concept 8).
 * A Zurich typographer's contact sheet: one 12-column grid (4 on phones), ink on white, one red
 * for numbers and marks, photographs in colour. Inter Tight set tight, IBM Plex Mono figures.
 * The moment: the column lines draw down the hero on load and the type snaps into its columns.
 * CSS only. Tokens only.
 */

.tpl-axis {
  --cols: 12;
  --m: clamp(16px, 2.6vw, 40px);
  --g: clamp(12px, 1.5vw, 24px);
  --sec: clamp(88px, 10vw, 168px);
  --kit-bg: color-mix(in oklab, var(--bg) 98%, transparent);
  --kit-fg: var(--ink);
  --kit-muted: var(--muted);
  --kit-font: var(--mono);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.006em;
  font-feature-settings: 'ss01', 'cv11';

  & a {
    color: inherit;
    text-decoration: none;
  }
  & :is(h1, h2, h3, p, figure, blockquote, dl, dd, ul) {
    margin: 0;
  }
  & ul {
    list-style: none;
    padding: 0;
  }
  & button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
  }
  & button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }
  & :focus-visible {
    outline-offset: 2px;
  }
}

.tpl-axis .ax-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--g);
}
.tpl-axis .ax-mono {
  font: 400 11px/1.45 var(--mono);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.tpl-axis .ax-red {
  color: var(--accent-text);
}
.tpl-axis .ax-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---------- controls ---------- */
.tpl-axis .ax-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 0 16px 0 18px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 500;
  font-size: 15px;
  border: 1px solid var(--ink);
  transition:
    background-color 150ms var(--ease-soft),
    color 150ms var(--ease-soft),
    border-color 150ms var(--ease-soft);
  & svg {
    width: 18px;
    height: 18px;
    transition: transform var(--d-hover) var(--ease-out);
  }
  &:hover,
  &:focus-visible {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
    & svg {
      transform: translateX(3px);
    }
  }
  &:active {
    transform: translateY(1px);
  }
}
.tpl-axis .ax-btn--line {
  background: transparent;
  color: var(--ink);
}
.tpl-axis .ax-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 150ms;
  &:hover,
  &:focus-visible {
    color: var(--accent-text);
  }
}

/* ---------- header and menu ---------- */
.tpl-axis .ax-top {
  align-items: center;
  padding: 14px var(--m);
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 500;
}
.tpl-axis .ax-mark {
  grid-column: 1 / span 3;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding-block: 4px;
}
.tpl-axis .ax-nav {
  grid-column: 4 / span 6;
  display: flex;
  gap: var(--g);
  & a {
    padding-block: 4px;
    background: linear-gradient(currentColor 0 0) left 100% / 0 1px no-repeat;
    transition: background-size 150ms var(--ease-out);
    &:hover,
    &:focus-visible {
      background-size: 100% 1px;
    }
  }
}
.tpl-axis .ax-top__book {
  grid-column: 10 / span 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 4px;
  & i {
    width: 9px;
    height: 9px;
    background: var(--accent);
    transition: transform 150ms var(--ease-out);
  }
  &:hover i,
  &:focus-visible i {
    transform: rotate(45deg);
  }
}
.tpl-axis .ax-burger {
  display: none;
  justify-self: end;
  min-height: 44px;
  font-weight: 500;
  font-size: 14px;
}
.tpl-axis .ax-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  padding: 0 var(--m) 32px;
  background: var(--bg);
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 200ms var(--ease-out),
    visibility 0s linear 200ms;
  & nav {
    display: grid;
    margin-top: 32px;
  }
  & nav a {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font: 600 clamp(2rem, 10vw, 2.8rem) / 1.1 var(--display);
    letter-spacing: -0.045em;
    & .ax-mono {
      color: var(--accent-text);
      letter-spacing: 0.02em;
    }
    &:hover,
    &:focus-visible {
      color: var(--accent-text);
    }
  }
}
.tpl-axis.menu-open .ax-menu {
  visibility: visible;
  opacity: 1;
  transition: opacity 200ms var(--ease-out);
}
.tpl-axis .ax-menu__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 8px;
  border-bottom: 1px solid var(--ink);
  & .ax-burger {
    display: inline-flex;
    align-items: center;
  }
}
.tpl-axis .ax-menu__foot {
  display: flex;
  gap: 24px;
  margin-top: auto;
  & a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

.tpl-axis .ax-pagehead {
  padding: clamp(48px, 8vw, 120px) var(--m) 0;
  align-items: end;
  & .ax-head__no {
    grid-column: 1 / span 3;
  }
}
.tpl-axis .ax-pagehead__t {
  grid-column: 1 / -1;
  font: 600 clamp(4rem, 16vw, 16rem) / 0.82 var(--display);
  letter-spacing: -0.06em;
}

/* ---------- hero, with the drawn grid ---------- */
.tpl-axis .ax-hero {
  position: relative;
  padding: 0 var(--m) clamp(40px, 5vw, 80px);
  isolation: isolate;
}
.tpl-axis .ax-lines {
  position: absolute;
  inset: 0 var(--m);
  z-index: -1;
  pointer-events: none;
  & i {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    left: clamp(
      0px,
      calc((100% + var(--g)) * var(--i) / var(--cols) - var(--g) / 2),
      calc(100% - 1px)
    );
    background: var(--line);
    transform-origin: top;
  }
  & i:nth-child(n + 14) {
    display: none;
  }
}
.tpl-axis .ax-meta {
  padding-top: 14px;
  & > div {
    grid-column: span 3;
    padding-top: 10px;
    border-top: 1px solid var(--ink);
  }
  & dt {
    color: var(--muted);
  }
  & dd {
    margin-top: 2px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
  }
}
.tpl-axis .ax-hero__body {
  row-gap: 0;
}
.tpl-axis .ax-hero__h {
  grid-column: 1 / span 11;
  margin: clamp(48px, 7vw, 120px) 0 clamp(32px, 4vw, 64px);
  font: 600 clamp(3rem, 9vw, 10.5rem) / 0.88 var(--display);
  letter-spacing: -0.055em;
  text-wrap: balance;
  max-width: 11ch;
}
.tpl-axis .ax-hero__side {
  grid-column: 1 / span 5;
  grid-row: 2;
  align-self: end;
  display: grid;
  gap: 18px;
  padding-bottom: 4px;
}
.tpl-axis .ax-hero__sub {
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  max-width: 30ch;
}
.tpl-axis .ax-hero__acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 12px;
}
.tpl-axis .ax-hero__fig {
  grid-column: 6 / -1;
  grid-row: 2;
  margin-right: calc(-1 * var(--m));
  & figcaption {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    color: var(--muted);
    & span {
      color: var(--accent-text);
    }
  }
}

/* The wow: lines draw down, then the type snaps into its columns. Only under html.fx, so with
   reduced motion, no JS or a robot the finished grid is simply there. The hero image is the LCP
   element: it is never hidden, only clipped from 88% visible. */
html.fx .tpl-axis .ax-lines i {
  animation: ax-draw 900ms var(--ease-inout) both;
  animation-delay: calc(var(--i) * 40ms);
}
html.fx .tpl-axis .ax-snap {
  animation: ax-snap 700ms var(--ease-editorial) both;
  animation-delay: calc(420ms + var(--s, 0) * 90ms);
}
html.fx .tpl-axis .ax-hero__fig.ax-snap {
  animation-name: ax-snap-img;
}
@keyframes ax-draw {
  from {
    transform: scaleY(0);
  }
}
@keyframes ax-snap {
  from {
    opacity: 0;
    transform: translate3d(-14px, 0, 0);
    clip-path: inset(0 100% 0 0);
  }
  to {
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 0 0);
  }
}
@keyframes ax-snap-img {
  from {
    clip-path: inset(0 0 0 12%);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

/* ---------- section head ---------- */
.tpl-axis .ax-sec {
  padding: var(--sec) var(--m) 0;
}
.tpl-axis .ax-head {
  align-items: start;
  padding-top: 12px;
  margin-bottom: clamp(40px, 5vw, 80px);
  border-top: 1px solid var(--ink);
}
.tpl-axis .ax-head__no {
  grid-column: 1 / span 1;
  color: var(--accent-text);
  padding-top: 0.5em;
}
.tpl-axis .ax-h2 {
  grid-column: 2 / span 7;
  font: 600 clamp(2rem, 4.6vw, 4.75rem) / 0.94 var(--display);
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.tpl-axis .ax-head__intro {
  grid-column: 9 / span 4;
  padding-top: 0.4em;
  color: var(--muted);
  font-size: 15px;
  max-width: 44ch;
}
.tpl-axis .ax-head__count {
  grid-column: 12;
  justify-self: end;
  padding-top: 0.5em;
  grid-row: 1;
  white-space: nowrap;
}

/* ---------- intro ---------- */
.tpl-axis .ax-intro .ax-head {
  margin-bottom: 0;
}
.tpl-axis .ax-intro__eye {
  grid-column: 2 / span 6;
  padding-top: 0.5em;
}
.tpl-axis .ax-intro__s {
  grid-column: 2 / span 8;
  margin-top: clamp(24px, 3vw, 48px);
  font: 500 clamp(1.6rem, 3.1vw, 3.1rem) / 1.08 var(--display);
  letter-spacing: -0.035em;
  text-wrap: pretty;
}
.tpl-axis .ax-intro__b {
  grid-column: 10 / span 3;
  align-self: end;
  color: var(--muted);
  font-size: 15px;
}
.tpl-axis .ax-facts {
  margin-top: clamp(56px, 7vw, 112px);
  & > div {
    grid-column: span 3;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
  & dt {
    color: var(--muted);
  }
  & dd {
    margin-top: 8px;
    font: 600 clamp(2.6rem, 5vw, 5rem) / 0.95 var(--display);
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
  }
}

/* ---------- work: an index table; rows open in place ---------- */
.tpl-axis .ax-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 2.3fr) minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1.2fr) 92px;
  gap: var(--g);
  align-items: baseline;
  padding: 14px 10px;
}
.tpl-axis .ax-index__cols {
  color: var(--muted);
  padding-block: 8px;
  border-bottom: 1px solid var(--ink);
}
.tpl-axis .ax-index__item {
  border-bottom: 1px solid var(--line);
  & summary {
    list-style: none;
    cursor: pointer;
    transition:
      background-color 150ms var(--ease-soft),
      color 150ms var(--ease-soft);
    &::-webkit-details-marker {
      display: none;
    }
    &:hover,
    &:focus-visible {
      background: var(--ink);
      color: var(--bg);
      & .ax-red {
        color: var(--bg);
      }
    }
    &:active {
      background: color-mix(in oklab, var(--ink) 88%, var(--bg));
    }
  }
  &[open] summary {
    border-bottom: 1px solid var(--line);
  }
}
.tpl-axis .ax-index__t {
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.tpl-axis .ax-plus {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 12px;
  &::before,
  &::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: currentColor;
    transition: transform 200ms var(--ease-out);
  }
  &::after {
    transform: rotate(90deg);
  }
}
.tpl-axis [open] .ax-plus::after {
  transform: rotate(0deg);
}
.tpl-axis .ax-index__open {
  padding: 24px 10px 40px;
  row-gap: 16px;
}
.tpl-axis .ax-index__cover {
  grid-column: 3 / span 6;
}
.tpl-axis .ax-index__info {
  grid-column: 9 / span 4;
  display: grid;
  align-content: start;
  gap: 18px;
  font-size: 15px;
  & > .ax-mono {
    color: var(--muted);
  }
}
.tpl-axis .ax-index__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

/* ---------- films: four columns, tabular durations ---------- */
.tpl-axis .ax-films__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px var(--g);
}
.tpl-axis .ax-film {
  display: grid;
  gap: 4px;
  &:hover .ax-film__t,
  &:focus-visible .ax-film__t {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  &:hover .ax-film__play,
  &:focus-visible .ax-film__play {
    color: var(--accent-text);
  }
  &:active {
    opacity: 0.8;
  }
}
.tpl-axis .ax-film__bar {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 6px;
  border-top: 1px solid var(--ink);
}
.tpl-axis .ax-film__t {
  margin-top: 4px;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}
.tpl-axis .ax-film__s {
  font-size: 13px;
  color: var(--muted);
}
.tpl-axis .ax-film__play {
  margin-top: 6px;
  transition: color 150ms;
}

/* ---------- gallery: square contact sheet, numbered ---------- */
.tpl-axis .ax-squares__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px calc(var(--g) / 2);
  & figcaption {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    color: var(--muted);
  }
}
.tpl-axis .ax-squares a.pm-media {
  cursor: zoom-in;
  &:hover img {
    opacity: 0.88;
  }
}

/* ---------- packages: a comparison table ---------- */
.tpl-axis .ax-pk__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
  & th,
  & td {
    text-align: left;
    vertical-align: top;
    padding: 14px var(--g) 14px 0;
    border-top: 1px solid var(--line);
    font-weight: 400;
  }
  & thead th {
    border-top: 0;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 16px;
    vertical-align: bottom;
  }
  & tbody th {
    width: 14%;
    color: var(--muted);
  }
  & thead th:first-child {
    width: 14%;
    color: var(--muted);
  }
  & th.is-badge {
    box-shadow: inset 0 3px 0 var(--accent);
    padding-top: 14px;
  }
  & li + li {
    margin-top: 4px;
  }
}
.tpl-axis .ax-pk__t {
  display: block;
  font: 600 clamp(1.2rem, 1.7vw, 1.6rem) / 1.05 var(--display);
  letter-spacing: -0.035em;
}
.tpl-axis .ax-pk__badge {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-text);
}
.tpl-axis .ax-pk__price td {
  font: 600 clamp(1.6rem, 2.6vw, 2.6rem) / 1 var(--display);
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  padding-block: 18px;
}
.tpl-axis .ax-pk__muted {
  color: var(--muted);
}
.tpl-axis .ax-pk__cta td {
  padding-top: 18px;
}
.tpl-axis .ax-pk__cards {
  display: none;
}
.tpl-axis .ax-pk__note {
  margin-top: 20px;
  color: var(--muted);
  text-transform: none;
}

/* ---------- testimonials: three text columns ---------- */
.tpl-axis .ax-quotes__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px var(--g);
}
.tpl-axis .ax-quotes__cols[data-count='1'] {
  grid-template-columns: minmax(0, 720px);
}
.tpl-axis .ax-q {
  display: grid;
  align-content: start;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  & blockquote {
    font-size: clamp(1.1rem, 1.35vw, 1.3rem);
    line-height: 1.38;
    letter-spacing: -0.018em;
  }
  & figcaption {
    display: grid;
    gap: 2px;
    & .ax-mono {
      color: var(--muted);
      text-transform: none;
    }
  }
}
.tpl-axis .ax-q__n {
  font-weight: 600;
  font-size: 14px;
}

/* ---------- about: text and a team table ---------- */
.tpl-axis .ax-about__body {
  align-items: start;
}
.tpl-axis .ax-about__text {
  grid-column: 2 / span 7;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.tpl-axis .ax-about__img {
  grid-column: 10 / span 3;
}
.tpl-axis .ax-team {
  width: 100%;
  margin-top: clamp(48px, 6vw, 96px);
  border-collapse: collapse;
  font-size: 15px;
  & th,
  & td {
    text-align: left;
    vertical-align: baseline;
    padding: 12px var(--g) 12px 0;
    border-top: 1px solid var(--line);
  }
  & thead th {
    font-weight: 400;
    color: var(--muted);
    border-top: 0;
    border-bottom: 1px solid var(--ink);
    padding-block: 8px;
  }
  & tbody th {
    font-weight: 500;
  }
  & tbody tr {
    transition:
      background-color 150ms,
      color 150ms;
    &:hover {
      background: var(--ink);
      color: var(--bg);
      & .ax-red,
      & .ax-team__bio {
        color: var(--bg);
      }
    }
  }
  & td:first-child,
  & thead th:first-child {
    width: 64px;
    padding-left: 10px;
  }
}
.tpl-axis .ax-team__bio {
  color: var(--muted);
  width: 44%;
}

/* ---------- booking: a form-like row ---------- */
.tpl-axis .ax-book__row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.tpl-axis .ax-book__cell {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 168px;
  padding: 14px var(--g) 18px;
  border-left: 1px solid var(--line);
  & > .ax-mono {
    color: var(--muted);
  }
}
.tpl-axis .ax-book__cell--text {
  grid-column: 1 / span 6;
  border-left: 0;
  padding-left: 0;
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
  & p {
    max-width: 46ch;
  }
}
.tpl-axis .ax-book__row:not(:has(.ax-book__wa)) .ax-book__cell--text {
  grid-column: 1 / span 8;
}
.tpl-axis .ax-book__wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 500;
  font-size: 1.15rem;
  & svg {
    width: 20px;
    height: 20px;
  }
  &:hover,
  &:focus-visible {
    color: var(--accent-text);
  }
}
.tpl-axis .ax-book__cta {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--g) 18px;
  background: var(--ink);
  color: var(--bg);
  transition:
    background-color 150ms var(--ease-soft),
    color 150ms var(--ease-soft);
  & .ax-mono {
    opacity: 0.7;
  }
  &:hover,
  &:focus-visible {
    background: var(--accent);
    color: var(--accent-ink);
  }
  &:hover svg,
  &:focus-visible svg {
    transform: translateX(6px);
  }
  &:active {
    background: color-mix(in oklab, var(--accent) 85%, var(--ink));
  }
}
.tpl-axis .ax-book__label {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  font: 600 clamp(1.5rem, 2.4vw, 2.4rem) / 1 var(--display);
  letter-spacing: -0.045em;
  & svg {
    flex: none;
    width: 32px;
    height: 32px;
    transition: transform 200ms var(--ease-out);
  }
}

/* ---------- contact ---------- */
.tpl-axis .ax-contact__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px var(--g);
  font-size: 15px;
  & .pm-contact__item {
    padding-top: 10px;
    border-top: 1px solid var(--line);
    overflow-wrap: anywhere;
  }
  & .pm-contact__label {
    display: block;
    margin-bottom: 6px;
    font: 400 11px/1.45 var(--mono);
    text-transform: uppercase;
    color: var(--muted);
  }
  & a {
    text-decoration: underline;
    text-decoration-color: var(--line);
    text-underline-offset: 3px;
    transition:
      text-decoration-color 150ms,
      color 150ms;
    &:hover,
    &:focus-visible {
      color: var(--accent-text);
      text-decoration-color: currentColor;
    }
  }
}

/* ---------- footer on the grid ---------- */
.tpl-axis .ax-foot {
  margin-top: var(--sec);
  padding: 14px var(--m) 28px;
  border-top: 1px solid var(--ink);
  row-gap: 8px;
  & > span:nth-child(1) {
    grid-column: 1 / span 3;
  }
  & > span:nth-child(2) {
    grid-column: 4 / span 2;
    color: var(--muted);
  }
  & a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    &:hover,
    &:focus-visible {
      color: var(--accent-text);
    }
  }
}
.tpl-axis .ax-foot__links {
  grid-column: 6 / span 5;
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}
.tpl-axis .ax-foot__end {
  grid-column: 11 / span 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 18px;
}
.tpl-axis .ax-badge {
  display: inline-flex;
  gap: 6px;
  & i {
    width: 7px;
    height: 7px;
    margin-top: 4px;
    background: var(--accent);
  }
}
.tpl-axis .pm-sticky-bar__cta {
  background: var(--ink);
  color: var(--bg);
}

/* ---------- tablet ---------- */
@media (max-width: 1023px) {
  .tpl-axis .ax-films__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tpl-axis .ax-squares__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .tpl-axis .ax-quotes__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tpl-axis .ax-nav {
    grid-column: 4 / span 7;
    gap: 14px;
  }
  .tpl-axis .ax-top__book {
    grid-column: 11 / span 2;
  }
  .tpl-axis .ax-row {
    grid-template-columns: 40px minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.6fr) 80px;
  }
  .tpl-axis .ax-row > :nth-child(5) {
    display: none;
  }
}

/* ---------- phones: a 4-column grid ---------- */
@media (max-width: 767px) {
  .tpl-axis {
    --cols: 4;
  }
  .tpl-axis .ax-nav,
  .tpl-axis .ax-top__book,
  .tpl-axis .ax-lines i:nth-child(n + 6) {
    display: none;
  }
  .tpl-axis .ax-top .ax-mark {
    grid-column: 1 / span 3;
  }
  .tpl-axis .ax-burger {
    display: inline-flex;
    align-items: center;
    grid-column: 4;
  }
  .tpl-axis .ax-meta > div {
    grid-column: span 2;
    margin-bottom: 12px;
  }
  .tpl-axis .ax-hero__h {
    grid-column: 1 / -1;
    font-size: clamp(3rem, 15vw, 4.5rem);
    margin-block: 40px 28px;
  }
  .tpl-axis .ax-hero__fig {
    grid-column: 1 / -1;
    grid-row: auto;
    margin-inline: 0 calc(-1 * var(--m));
    & .pm-media {
      aspect-ratio: 4 / 5 !important;
    }
  }
  .tpl-axis .ax-hero__side {
    grid-column: 1 / -1;
    grid-row: auto;
    margin-top: 28px;
  }
  .tpl-axis .ax-head__no {
    grid-column: 1;
  }
  .tpl-axis .ax-h2 {
    grid-column: 2 / -1;
  }
  .tpl-axis .ax-head__intro {
    grid-column: 2 / -1;
    margin-top: 16px;
  }
  .tpl-axis .ax-head__count {
    display: none;
  }
  .tpl-axis .ax-intro__eye {
    grid-column: 2 / -1;
  }
  .tpl-axis .ax-intro__s,
  .tpl-axis .ax-intro__b {
    grid-column: 1 / -1;
  }
  .tpl-axis .ax-intro__b {
    margin-top: 24px;
  }
  .tpl-axis .ax-facts > div {
    grid-column: span 2;
    margin-bottom: 24px;
  }
  .tpl-axis .ax-index__cols {
    display: none;
  }
  .tpl-axis .ax-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    row-gap: 2px;
    padding: 14px 4px;
    & > :nth-child(1) {
      grid-row: 1 / span 3;
    }
    & > :nth-child(2) {
      grid-column: 2;
    }
    & > :nth-child(6) {
      grid-column: 3;
      grid-row: 1;
    }
    & > :nth-child(3) {
      grid-column: 2;
      grid-row: 2;
      font-size: 13px;
      color: var(--muted);
    }
    & > :nth-child(5) {
      display: block;
      grid-column: 3;
      grid-row: 2;
      text-align: right;
      color: var(--muted);
    }
    & > :nth-child(4) {
      grid-column: 2 / -1;
      grid-row: 3;
      font-size: 13px;
      color: var(--muted);
    }
  }
  .tpl-axis .ax-index__item summary:is(:hover, :focus-visible) > * {
    color: var(--bg);
  }
  .tpl-axis .ax-index__cover,
  .tpl-axis .ax-index__info {
    grid-column: 1 / -1;
  }
  .tpl-axis .ax-films__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .tpl-axis .ax-squares__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 6px;
  }
  .tpl-axis .ax-pk__wrap {
    display: none;
  }
  .tpl-axis .ax-pk__cards {
    display: grid;
  }
  .tpl-axis .ax-pk__card {
    display: grid;
    gap: 14px;
    padding: 16px 0 24px;
    border-top: 1px solid var(--ink);
    & dl {
      display: grid;
      gap: 10px;
      font-size: 14px;
    }
    & dt {
      color: var(--muted);
    }
    & .ax-btn {
      justify-self: start;
    }
  }
  .tpl-axis .ax-pk__cardhead {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    & .ax-pk__badge {
      margin: 0;
    }
  }
  .tpl-axis .ax-pk__amount {
    font: 600 2.4rem/1 var(--display);
    letter-spacing: -0.045em;
  }
  .tpl-axis .ax-quotes__cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .tpl-axis .ax-about__text {
    grid-column: 1 / -1;
  }
  .tpl-axis .ax-about__img {
    grid-column: 1 / span 3;
    margin-top: 32px;
  }
  .tpl-axis .ax-team__bio {
    display: none;
  }
  .tpl-axis .ax-book__row {
    display: block;
  }
  .tpl-axis .ax-book__cell {
    min-height: 0;
    padding-inline: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .tpl-axis .ax-book__cell--text {
    border-top: 0;
  }
  .tpl-axis .ax-book__cta {
    min-height: 140px;
  }
  .tpl-axis .ax-contact__list {
    grid-template-columns: minmax(0, 1fr);
  }
  .tpl-axis .ax-foot {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
    & > span:nth-child(n) {
      grid-column: 1 / -1;
      justify-content: flex-start;
    }
  }
}

.sp.tpl-axis {
  --sp-r: 0px;
  --sp-r-lg: 0px;
}
