
:is(.ix, .ixs) {
  --ix-soft: color-mix(in srgb, var(--ink) 62%, transparent);
  --ix-line: color-mix(in srgb, var(--ink) 25%, transparent);
  --ix-rule: color-mix(in srgb, var(--ink) 15%, transparent);
  --ix-out: cubic-bezier(.215, .61, .355, 1);
  --ix-io: cubic-bezier(.645, .045, .355, 1);
  --ix-theme: cubic-bezier(.785, .135, .15, .86);
  padding-inline: var(--gutter);
  padding-block-end: var(--space-3);
}

.ix-head { padding-block-start: var(--space-2); }
.ix-head hgroup { margin: 0; }
.ix-head hgroup > p {
  margin: 0 0 1.5rem;
  overflow-y: clip;
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ix-soft);
}
.ix-head h1 {
  margin: 0;
  overflow-y: clip;
  font-size: var(--text-h1);
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
  word-break: auto-phrase;
}
.ix-head hgroup > * > span { display: inline-block; transition: translate 1.2s var(--ix-out); }
.ix-head hgroup > h1 > span { transition-delay: .1s; }

.ix-head hgroup::after {
  content: "";
  display: block;
  inline-size: clamp(63px, calc(63px + (100vw - 390px) * 39 / 1050), 102px);
  block-size: 1px;
  margin-block-start: 2rem;
  background-color: var(--rule);
  transform-origin: left center;
  transition: scale 1.2s var(--ix-io) .3s;
}
.ix-head > p {
  max-inline-size: 700px;
  margin: 2rem 0 0;
  font-size: var(--text-base);
  line-height: 1.8;
}

[data-motion="on"] .ix-head[data-pre] hgroup > * > span { translate: 0 105%; }
[data-motion="on"] .ix-head[data-pre] hgroup::after { scale: 0 1; }
.ix-head[data-still] hgroup > * > span,
.ix-head[data-still] hgroup::after { transition: none; }
[data-motion="on"] .ix-head[data-out] hgroup > h1 > span { translate: 0 -105%; transition: translate .6s cubic-bezier(.55, .055, .675, .19); }
[data-motion="on"] .ix-head[data-out] hgroup::after { scale: 0 1; transform-origin: right center; transition: scale .6s var(--ix-io); }

.ix > nav { margin-block-start: var(--space-2); }
.ix > nav ul {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ix > nav a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--ix-line);
  border-radius: 999px;
  font-size: var(--text-sm);
  line-height: 1.4;
  transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out), color .3s var(--ease-out), scale .15s var(--ease-out);
}
.ix > nav a > span { font-size: var(--text-xs); font-variant-numeric: tabular-nums; opacity: .6; }
.ix > nav a:hover { border-color: var(--ink); }
.ix > nav a:active { scale: .96; }
.ix > nav a[aria-current="page"] { background-color: var(--ink); border-color: var(--ink); color: var(--paper); }

.ix > nav[data-slide] a[aria-current="page"] {
  background-color: transparent;
  transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out) .3s, color .3s var(--ease-out) .3s, scale .15s var(--ease-out);
}
.ix > nav[data-slide] ul::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  inline-size: var(--w, 0);
  block-size: var(--h, 0);
  translate: var(--x, 0) var(--y, 0);
  border-radius: 999px;
  background-color: var(--ink);
  transition: translate .6s var(--ix-io), inline-size .6s var(--ix-io), block-size .6s var(--ix-io);
}
.ix > nav[data-instant] ul::before { transition: none; }

.ix > section { margin-block-start: calc(var(--space-2) * 2); }
.ix > section > h2 {
  margin: 0 0 1.5rem;
  overflow-y: clip;
  font-size: var(--text-h3);
  font-weight: 700;
  line-height: 1.4;
}
.ix > section > h2 > span { display: inline-block; }

.ix > section > ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ix > section > ul > li { min-inline-size: 0; }

@media (max-width: 767px) {
  .ix > section > ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
}

.ix-card > article > a { display: block; color: inherit; }
.ix-card figure {
  position: relative;
  margin: 0 0 12px;
  overflow: hidden;
  background-color: var(--paper-2);
}
.ix-card figure > :is(img, video) {
  position: absolute;
  top: 0;
  left: 0;
  inline-size: 100%;
  block-size: 100%;
  max-inline-size: none;
  object-fit: cover;
}
.ix-card figure > video { opacity: 0; transition: opacity .3s var(--ease-out); }
.ix-card[data-playing] figure > video { opacity: 1; }

.ix-card figure > span {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: .4em .75em;
  border-radius: 999px;
  background-color: #111;
  box-shadow: 0 0 0 1px rgba(238, 236, 230, .35);
  color: #eeece6;
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .12em;
}
@media (max-width: 767px) {
  .ix-card figure > span { top: 8px; left: 8px; padding: .35em .6em; }
}

.ix-card :is(h2, h3, h4) { margin: 0; font-size: var(--text-sm); font-weight: 700; line-height: 1.6; word-break: auto-phrase; }
.ix-card article > p {
  margin: 6px 0 0;
  font-size: var(--text-xs);
  line-height: 1.6;
  color: color-mix(in srgb, var(--ink) 70%, transparent);
}
.ix-card article > p > span { white-space: nowrap; }
.ix-card article > p > span::before { content: "\00ff0f"; margin: 0 .3em; }

.ix > section > p {
  margin: 40px 0 0;
  font-size: var(--text-base);
  line-height: 1.8;
}
.ix > section > p a[href] {
  text-decoration: underline;
  text-underline-offset: .2em;
  text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent);
  transition: text-decoration-color .3s var(--ease-out);
}
.ix > section > p a[href]:hover { text-decoration-color: currentColor; }

.ix > section > nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  margin-block-start: var(--space-2);
  padding-block-start: 10px;
  border-block-start: 2px solid var(--ink);
}
.ix > section > nav ul {
  grid-column: 2;
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ix > section > nav li > a,
.ix > section > nav li[aria-hidden] {
  display: block;
  padding: 12px 15px;
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ix-soft);
  transition: color .3s var(--ease-out);
}
.ix > section > nav li > a:hover,
.ix > section > nav a[aria-current="page"] { color: var(--ink); }
.ix > section > nav > a {
  grid-column: 3;
  justify-self: end;
  display: grid;
  place-items: center;
  inline-size: 54px;
  block-size: 48px;
  color: var(--ix-soft);
  transition: color .3s var(--ease-out);
}
.ix > section > nav > a svg {
  inline-size: 24px;
  block-size: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: translate .3s var(--ease-out);
}
.ix > section > nav > a:hover { color: var(--ink); }
.ix > section > nav > a:hover svg { translate: 4px 0; }
.ix > section > nav > a[rel="prev"] { grid-column: 1; grid-row: 1; justify-self: start; }
.ix > section > nav > a[rel="prev"]:hover svg { translate: -4px 0; }
.ix > section > nav > ul { grid-row: 1; }
@media (max-width: 767.98px) {
  .ix > section > nav li > a,
  .ix > section > nav li[aria-hidden] { min-inline-size: 28px; padding-inline: 5px; text-align: center; }
  .ix > section > nav > a { inline-size: 36px; }
}
@media (max-width: 379.98px) {
  .ix > section > nav li > a,
  .ix > section > nav li[aria-hidden] { min-inline-size: 24px; padding-inline: 2px; }
  .ix > section > nav > a { inline-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .ix-head hgroup > * > span,
  .ix-head hgroup::after,
  .ix > nav a,
  .ix > nav[data-slide] ul::before,
  .ix-card figure > video,
  .ix > section > nav :is(a, svg),
  .ix > section > p a[href] { transition: none; }
}

@media (max-width: 767.98px) {
  :is(.ix, .ixs) { padding-inline: var(--section-pad-x); padding-block-end: 0; }
  .ix > nav { margin-block-start: 0; padding-block: var(--section-pad-y); }
  .ix > section { margin-block-start: 0; padding-block: var(--section-pad-y); }
  .ix > section > h2 { margin-block-end: var(--gap-heading); }
  .ix > section > ul { gap: calc(var(--gap-block) * 2) var(--gap-block); }
  .ix > section > nav { margin-block-start: calc(var(--gap-block) * 2); }
  .ix > section > p { margin-block-start: var(--gap-block); }
}
