body[data-page="works"] .brand-disciplines {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
}

html:not(.is-ready) body[data-page="works"] #works .brand-title > span,
html:not(.is-ready) body[data-page="works"] #works .brand-statement,
html:not(.is-ready) body[data-page="works"] #works .brand-disciplines {
  opacity: 0;
}

html:not(.is-ready) body[data-page="works"] #works .brand-title > span:first-child {
  transform: translate3d(0, 38px, 0) scale(.985);
}

html:not(.is-ready) body[data-page="works"] #works .brand-title > span:nth-child(2) {
  transform: translate3d(-42px, 0, 0) scale(.985);
}

html:not(.is-ready) body[data-page="works"] #works .brand-statement,
html:not(.is-ready) body[data-page="works"] #works .brand-disciplines {
  transform: translate3d(0, 18px, 0);
}

html.is-ready body[data-page="works"] #works .brand-title > span:first-child {
  animation: home-hero-title-enter 1050ms ease-out 150ms both;
}

html.is-ready body[data-page="works"] #works .brand-title > span:nth-child(2) {
  animation: home-hero-emotion-enter 1250ms ease-out 550ms both;
}

html.is-ready body[data-page="works"] #works .brand-statement {
  animation: home-hero-copy-enter 850ms ease-out 1550ms both;
}

html.is-ready body[data-page="works"] #works .brand-disciplines {
  animation: home-hero-copy-enter 750ms ease-out 2200ms both;
}

body[data-page="works"] #works .brand-title {
  text-wrap: balance;
}

body[data-page="works"] #works .brand-title .pixel-text {
  color: #d7f204;
}

body[data-page="works"] #works .brand-statement,
body[data-page="works"] #works .brand-disciplines {
  text-wrap: pretty;
}

@keyframes home-hero-title-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 38px, 0) scale(.985);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes home-hero-emotion-enter {
  from {
    opacity: 0;
    transform: translate3d(-42px, 0, 0) scale(.985);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes home-hero-copy-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (min-width: 1280px) {
  body[data-page="works"] #works .brand-story {
    width: min(100%, 1600px);
  }

  body[data-page="works"] #works .brand-title {
    font-size: clamp(128px, 8.6vw, 176px);
    line-height: .9;
  }

  body[data-page="works"] #works .brand-title > span {
    white-space: nowrap;
  }

  body[data-page="works"] #works .brand-title .pixel-text {
    margin-top: clamp(10px, .75vw, 16px);
  }

  body[data-page="works"] #works .brand-statement {
    margin-top: clamp(56px, 4vw, 72px);
    font-size: clamp(28px, 1.7vw, 32px);
    line-height: 1.34;
  }

  body[data-page="works"] #works .brand-disciplines {
    margin-top: clamp(20px, 1.4vw, 28px);
    font-size: 22px;
    line-height: 1.45;
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  body[data-page="works"] #works .brand-story {
    width: min(100%, 980px);
  }

  body[data-page="works"] #works .brand-title {
    font-size: clamp(96px, 10.5vw, 120px);
    line-height: .92;
  }

  body[data-page="works"] #works .brand-title > span {
    white-space: nowrap;
  }

  body[data-page="works"] #works .brand-statement {
    margin-top: clamp(44px, 5vw, 60px);
    font-size: 24px;
    line-height: 1.4;
  }

  body[data-page="works"] #works .brand-disciplines {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.5;
  }
}

body[data-page="works"] .system-showcase {
  border-top: 0;
}

body[data-page="works"] .system-layout {
  align-items: center;
}

body[data-page="works"] .system-copy {
  position: relative;
  top: auto;
  min-height: 0;
  padding-block: 8px;
  justify-content: center;
}

body[data-page="works"] .system-kicker {
  font-size: clamp(12px, .72vw, 14px);
  line-height: 1.35;
  letter-spacing: .08em;
}

body[data-page="works"] .system-copy .catalog-title {
  margin-top: clamp(22px, 1.7vw, 30px);
  font-size: clamp(54px, 4.2vw, 76px);
  line-height: .88;
  text-wrap: balance;
}

.system-description {
  max-width: 22ch;
  margin: clamp(20px, 1.5vw, 28px) 0 0;
  color: var(--ink);
  font-size: clamp(16px, 1.05vw, 20px);
  font-weight: 600;
  line-height: 1.42;
  text-wrap: balance;
}

.system-palette {
  display: grid;
  width: 100%;
  margin-top: clamp(34px, 3vw, 52px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}

.system-palette__option {
  display: inline-flex;
  min-width: 0;
  min-height: 42px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  background: transparent;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .025em;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition-property: color, background-color, transform;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.system-palette__option::before {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
}

.system-palette__option:hover {
  color: var(--ink);
}

.system-palette__option:active {
  transform: scale(.96);
}

.system-palette__option:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.system-palette__option.is-active,
.system-palette__option[aria-pressed="true"] {
  color: var(--surface);
  background: var(--ink);
}

.system-palette__option.is-active::before,
.system-palette__option[aria-pressed="true"]::before {
  background: currentColor;
}

body[data-page="works"] .system-copy .page-number {
  margin-top: clamp(26px, 2vw, 38px);
}

.system-stage {
  display: grid;
  min-width: 0;
  place-items: center;
}

.system-live-frame {
  position: relative;
  width: 100%;
  opacity: 1;
  background: transparent;
  transition-property: opacity;
  transition-duration: 180ms;
  transition-timing-function: ease-out;
}

.system-live-frame.is-switching {
  opacity: .52;
}

.system-live-frame--material {
  height: clamp(300px, 25vw, 440px);
}

.system-live-frame--material::after {
  position: absolute;
  top: 50%;
  left: 13.5%;
  z-index: 1;
  width: clamp(64px, 4.4vw, 78px);
  height: 48px;
  border-radius: 14px;
  background: #fff;
  content: "";
  pointer-events: none;
}

.system-live-frame--motion {
  --motion-card-half-height: clamp(64px, 9vw, 73px);
  --motion-card-radius: clamp(32px, 4.8vw, 42px);
  height: clamp(280px, 22vw, 380px);
}

.system-live-frame--interaction {
  --response-card-half-height: 116.22px;
  --response-card-radius: clamp(38px, 4.8vw, 60px);
  height: clamp(310px, 26vw, 450px);
}

.system-live-frame iframe {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.system-live-frame--motion iframe {
  clip-path: inset(
    calc(50% - var(--motion-card-half-height))
    max(24px, calc(50% - 310px))
    calc(50% - var(--motion-card-half-height))
    max(24px, calc(50% - 310px))
    round var(--motion-card-radius)
  );
}

.system-live-frame--interaction iframe {
  clip-path: inset(
    calc(50% - var(--response-card-half-height))
    max(18px, calc(50% - 430px))
    calc(50% - var(--response-card-half-height))
    max(18px, calc(50% - 430px))
    round var(--response-card-radius)
  );
}

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

@media (min-width: 1280px) {
  body[data-page="works"] .system-showcase {
    width: min(92vw, 1680px);
    max-width: 1680px;
    min-height: calc(100svh - var(--header-height));
    padding-block: clamp(58px, 7vh, 88px);
  }

  body[data-page="works"] .system-copy {
    grid-column: 1 / span 3;
  }

  body[data-page="works"] .system-stage {
    grid-column: 4 / -1;
  }

  body[data-page="works"] .system-showcase--material .system-stage,
  body[data-page="works"] .system-showcase--motion .system-stage {
    padding-inline: clamp(6px, .75vw, 14px);
  }

  .system-live-frame--material iframe {
    min-width: 100%;
    opacity: 1;
    visibility: visible;
  }

  .system-live-frame--motion iframe {
    transform: scale(1.26);
    transform-origin: center;
  }
}

@media (min-width: 1600px) {
  .system-live-frame--motion iframe {
    transform: scale(1.45);
  }
}

@media (max-width: 1279px) {
  body[data-page="works"] .system-showcase {
    min-height: auto;
    padding-block: clamp(48px, 8vw, 76px);
  }

  body[data-page="works"] .system-layout {
    display: flex;
    margin-block: 0;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(28px, 5vw, 52px);
  }

  body[data-page="works"] .system-copy {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  body[data-page="works"] .system-copy .catalog-title {
    margin-top: 22px;
  }

  .system-description {
    margin-top: 20px;
  }

  .system-palette {
    display: flex;
    width: 100%;
    margin-top: 28px;
    padding: 2px 2px 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    gap: 6px;
  }

  .system-palette__option {
    flex: 0 0 auto;
    min-height: 42px;
  }

  body[data-page="works"] .system-copy .page-number {
    display: block;
    margin-top: 24px;
  }

  .system-stage {
    width: 100%;
  }

  .system-live-frame--material {
    height: clamp(240px, 45vw, 360px);
  }

  .system-live-frame--motion {
    height: clamp(220px, 40vw, 320px);
  }

  .system-live-frame--interaction {
    height: clamp(250px, 48vw, 370px);
  }
}

@media (max-width: 720px) {
  .system-live-frame--interaction {
    --response-card-half-height: clamp(82px, 15.833vw, 103.34px);
  }

  .system-live-frame--interaction iframe {
    clip-path: inset(
      calc(50% - var(--response-card-half-height))
      max(2.5%, calc(50% - 310px))
      calc(50% - var(--response-card-half-height))
      max(2.5%, calc(50% - 310px))
      round var(--response-card-radius)
    );
  }
}

@media (max-width: 640px) {
  body[data-page="works"] .system-copy .catalog-title {
    font-size: clamp(46px, 14vw, 62px);
  }

  .system-description {
    font-size: 16px;
  }

  .system-live-frame--material {
    height: 230px;
  }

  .system-live-frame--material::after {
    left: 16%;
    width: 64px;
  }

  .system-live-frame--motion {
    --motion-card-half-height: 64px;
    --motion-card-radius: 34px;
    height: 210px;
  }

  .system-live-frame--motion iframe {
    clip-path: inset(
      calc(50% - var(--motion-card-half-height))
      14px
      calc(50% - var(--motion-card-half-height))
      14px
      round var(--motion-card-radius)
    );
  }

  .system-live-frame--interaction {
    height: 250px;
  }
}

@media (max-width: 560px) {
  .system-live-frame--motion {
    --motion-card-half-height: 62px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .system-live-frame {
    transition-duration: 160ms;
  }

  html:not(.is-ready) body[data-page="works"] #works .brand-title > span:first-child,
  html:not(.is-ready) body[data-page="works"] #works .brand-title > span:nth-child(2),
  html:not(.is-ready) body[data-page="works"] #works .brand-statement,
  html:not(.is-ready) body[data-page="works"] #works .brand-disciplines {
    opacity: 0;
    transform: none;
  }

  html.is-ready body[data-page="works"] #works .brand-title > span:first-child,
  html.is-ready body[data-page="works"] #works .brand-title > span:nth-child(2),
  html.is-ready body[data-page="works"] #works .brand-statement,
  html.is-ready body[data-page="works"] #works .brand-disciplines {
    transform: none;
    animation: home-hero-reduced-fade 160ms ease-out both;
  }

  .system-palette__option {
    transition-duration: 120ms;
  }

  .system-palette__option:active {
    transform: none;
  }
}

@keyframes home-hero-reduced-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
