:root {
  --py-ink: #231815;
  --py-black: #0d0c0c;
  --py-paper: #f8f7f5;
  --py-warm: #f4efee;
  --py-grey: #d8d6d2;
  --py-white: #ffffff;
  --py-line: rgba(35, 24, 21, 0.18);
  --py-pad: clamp(24px, 4.2vw, 72px);
  --py-content-max: 1080px;
  --py-reading-max: 780px;
  --py-page-gutter: clamp(24px, 4vw, 56px);
  --py-content-pad: max(var(--py-page-gutter), calc((100vw - var(--py-content-max)) / 2));
  --py-space-section: clamp(88px, 9vw, 144px);
  --py-font-latin: "Futura", "Futura PT", "Century Gothic", "Avenir Next", sans-serif;
  --py-font-ja: -apple-system, BlinkMacSystemFont, "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --py-pill-height: 52px;
  --py-pill-font-size: 18px;
  --py-pill-padding: 26px;
  --py-pill-radius: 9999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  background: var(--py-paper);
}

html.py-nav-open,
html.py-nav-open body {
  overflow: hidden;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--py-ink);
  background: var(--py-paper);
  font-family: var(--py-font-ja);
  font-size: 16px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
button,
a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

::selection {
  color: var(--py-white);
  background: var(--py-ink);
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

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

.py-home {
  min-width: 0;
  background: var(--py-paper);
}

.py-skip-link {
  position: fixed;
  z-index: 2000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--py-white);
  background: var(--py-ink);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.py-skip-link:focus {
  transform: translateY(0);
}

.py-kicker,
.py-section-index {
  font-family: var(--py-font-latin);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.16em;
}

.py-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--py-line);
  padding-bottom: clamp(20px, 2.2vw, 36px);
}

.py-section-heading h2 {
  margin-top: 18px;
  font-family: var(--py-font-latin);
  font-size: clamp(3rem, 5.2vw, 4.5rem);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.055em;
}

.py-section-heading > p {
  font-size: 14px;
  letter-spacing: 0.08em;
}

.py-section-heading--light {
  border-color: rgba(255, 255, 255, 0.24);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* HEADER */
.py-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  height: 78px;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--py-pad);
  background: transparent;
  transition: height 240ms ease, color 200ms ease, background-color 240ms ease, border-color 240ms ease;
}

.py-header.is-theme-light {
  color: var(--py-white);
}

.py-header.is-theme-dark {
  color: var(--py-ink);
}

.py-header__brand img {
  transition: filter 200ms ease;
}

.py-header.is-theme-light .py-header__brand img {
  filter: invert(1);
}

.py-header.is-scrolled.is-theme-light {
  height: 66px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(13, 12, 12, 0.9);
}

.py-header.is-scrolled.is-theme-dark {
  height: 66px;
  border-bottom: 1px solid rgba(35, 24, 21, 0.1);
  background: rgba(248, 247, 245, 0.96);
}

.py-header__brand {
  position: relative;
  z-index: 1002;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--py-font-latin);
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
}

.py-header__brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.py-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.2vw, 52px);
  font-family: var(--py-font-latin);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
}

.py-header__nav > a,
.py-header__works-button {
  position: relative;
  padding: 8px 0;
}

.py-header__nav > a::after,
.py-header__works-button::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms ease;
}

.py-header__nav > a:hover::after,
.py-header__nav > a:focus-visible::after,
.py-header__works-button:hover::after,
.py-header__works-button:focus-visible::after,
.py-header__works.is-current .py-header__works-button::after {
  transform: scaleX(1);
  transform-origin: left;
}

.py-header__works {
  position: relative;
}

.py-header__works-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: inherit;
  background: transparent;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.py-header__works-button svg {
  width: 9px;
  height: 6px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  transition: transform 180ms ease;
}

.py-header__works-button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.py-header__submenu {
  position: fixed;
  z-index: 1001;
  top: 78px;
  left: var(--py-works-menu-left, 0px);
  width: calc(100vw - var(--py-works-menu-left, 0px));
  min-width: 0;
  border: 0;
  padding: 0;
  color: var(--py-white);
  background: var(--py-black);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transform-origin: 0 0;
  visibility: hidden;
  transition: opacity 180ms ease, transform 240ms cubic-bezier(0.22, 1, 0.36, 1), visibility 180ms ease;
}

.py-header.is-scrolled .py-header__submenu {
  top: 66px;
}

.py-header.is-theme-dark .py-header__submenu {
  color: var(--py-ink);
  background: var(--py-white);
}

.py-header__submenu[hidden] {
  display: none;
}

.py-header__submenu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.py-header__submenu::before {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 12px;
  content: "";
}

.py-header__submenu ul {
  display: flex;
  flex-direction: column;
}

.py-header__submenu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.py-header.is-theme-dark .py-header__submenu li {
  border-color: rgba(35, 24, 21, 0.16);
}

.py-header__submenu a {
  display: flex;
  min-height: 66px;
  align-items: center;
  padding: 10px clamp(10px, 1vw, 16px);
  font-family: var(--py-font-ja);
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.py-header__submenu a:hover,
.py-header__submenu a:focus-visible,
.py-header__submenu a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.1);
}

.py-header.is-theme-dark .py-header__submenu a:hover,
.py-header.is-theme-dark .py-header__submenu a:focus-visible,
.py-header.is-theme-dark .py-header__submenu a[aria-current="page"] {
  background: var(--py-warm);
}

.py-header:not(.is-scrolled).is-theme-light .py-header__submenu {
  color: var(--py-white);
  background: transparent;
}

.py-header:not(.is-scrolled).is-theme-light .py-header__submenu li {
  border-color: rgba(255, 255, 255, 0.3);
}

.py-header:not(.is-scrolled).is-theme-light .py-header__submenu a:hover,
.py-header:not(.is-scrolled).is-theme-light .py-header__submenu a:focus-visible,
.py-header:not(.is-scrolled).is-theme-light .py-header__submenu a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.1);
}

.py-header:not(.is-scrolled).is-theme-dark .py-header__submenu {
  color: var(--py-ink);
  background: transparent;
}

.py-header:not(.is-scrolled).is-theme-dark .py-header__submenu li {
  border-color: rgba(35, 24, 21, 0.16);
}

.py-menu-button,
.py-mobile-nav {
  display: none;
}

[data-nav-item="service"][hidden] {
  display: none !important;
}

/* HERO */
.py-hero {
  position: relative;
  min-height: max(720px, 100svh);
  overflow: clip;
  color: var(--py-white);
  background: var(--py-black);
}

.py-hero__mosaic {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
}

.py-mosaic {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(12, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.py-mosaic__slot {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow: hidden;
  border: 0;
  outline: 0;
  background: var(--py-black);
}

.py-mosaic__slot[data-mosaic-slot="0"] { grid-area: 1 / 7 / 13 / 13; }
.py-mosaic__slot[data-mosaic-slot="1"] { grid-area: 1 / 1 / 7 / 7; }
.py-mosaic__slot[data-mosaic-slot="2"] { grid-area: 7 / 4 / 13 / 7; }
.py-mosaic__slot[data-mosaic-slot="3"] { grid-area: 7 / 1 / 10 / 4; }
.py-mosaic__slot[data-mosaic-slot="4"] { grid-area: 10 / 1 / 13 / 4; }

.py-mosaic__image {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  max-width: none;
  height: calc(100% + 2px);
  object-fit: cover;
  object-position: 50% 50%;
  user-select: none;
}

.py-mosaic__image[data-image-id="01"] { object-position: 52% 52%; }
.py-mosaic__image[data-image-id="02"] { object-position: 48% 50%; }
.py-mosaic__image[data-image-id="03"] { object-position: 50% 46%; }
.py-mosaic__image[data-image-id="04"] { object-position: 50% 50%; }
.py-mosaic__image[data-image-id="05"] { object-position: 50% 48%; }

.py-mosaic__movers {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.py-mosaic__mover {
  position: absolute;
  contain: layout paint;
  overflow: hidden;
  will-change: width, height, transform;
}

.py-hero__shade,
.py-hero__dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.py-hero__shade {
  z-index: 2;
  background: linear-gradient(90deg, rgba(13, 12, 12, 0.82) 0%, rgba(13, 12, 12, 0.62) 42%, rgba(13, 12, 12, 0.12) 78%);
}

.py-hero__dots {
  z-index: 3;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 0.7px, transparent 0.7px);
  background-size: 8px 8px;
  opacity: 0.28;
}

.py-hero__copy {
  position: absolute;
  z-index: 4;
  right: var(--py-pad);
  bottom: clamp(112px, 13vh, 154px);
  left: var(--py-pad);
  max-width: 1180px;
}

.py-hero__copy .py-kicker {
  margin-bottom: clamp(22px, 3vh, 38px);
}

.py-hero h1 {
  max-width: 1180px;
  font-size: clamp(4.15rem, 5.75vw, 6.4rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.07em;
  overflow-wrap: normal;
  word-break: keep-all;
}

.py-hero h1 > span {
  display: block;
}

.py-hero__lead {
  max-width: 630px;
  margin-top: clamp(28px, 3.6vh, 46px);
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(15px, 1.18vw, 18px);
  font-weight: 500;
  line-height: 1.95;
}

.py-mosaic__toggle {
  position: absolute;
  z-index: 5;
  right: var(--py-pad);
  bottom: 34px;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--py-white);
  background: rgba(13, 12, 12, 0.38);
  font-family: var(--py-font-latin);
  font-size: 9px;
  letter-spacing: 0.11em;
  cursor: pointer;
}

.py-mosaic__toggle span {
  min-width: 10px;
  font-size: 10px;
}

.py-hero__scroll {
  position: absolute;
  z-index: 5;
  bottom: 40px;
  left: var(--py-pad);
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--py-font-latin);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
}

.py-hero__scroll span {
  font-size: 18px;
  font-weight: 300;
}

/* GREETING */
.py-greeting {
  padding: var(--py-space-section) var(--py-content-pad);
  color: var(--py-white);
  background: var(--py-black);
}

.py-greeting__body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(56px, 10vw, 180px);
  align-items: start;
  margin-top: clamp(60px, 8vw, 128px);
}

.py-greeting__message {
  max-width: 940px;
  margin: clamp(58px, 7vw, 104px) 0 0 auto;
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 500;
  line-height: 1.72;
  letter-spacing: -0.025em;
}

.py-greeting h2 {
  font-size: clamp(3rem, 5.2vw, 4.5rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.07em;
}

.py-greeting__copy {
  padding-top: clamp(4px, 1vw, 20px);
}

.py-greeting__statement {
  margin-bottom: 44px;
  font-size: clamp(1.45rem, 2.4vw, 2.45rem);
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: -0.03em;
}

.py-greeting__copy > p:last-child {
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 2;
}

/* BUSINESS */
.py-business {
  padding: var(--py-space-section) var(--py-content-pad);
}

.py-business__intro {
  max-width: 760px;
  margin: clamp(48px, 6vw, 92px) 0 0 auto;
}

.py-business__intro > p:first-child {
  font-size: clamp(1rem, 1.35vw, 1.3rem);
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: -0.025em;
}

.py-business__summary {
  margin-top: clamp(22px, 2.2vw, 34px);
  color: rgba(35, 24, 21, 0.7);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 2;
}

.py-pill {
  display: inline-flex;
  width: fit-content;
  min-height: var(--py-pill-height);
  align-items: center;
  justify-content: center;
  border: 1px solid var(--py-ink);
  border-radius: var(--py-pill-radius);
  padding: 0 var(--py-pill-padding);
  font-family: var(--py-font-ja);
  font-size: var(--py-pill-font-size);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.py-pill--category {
  color: var(--py-white);
  background: var(--py-ink);
}

.py-pill--service {
  color: var(--py-ink);
  background: transparent;
}

.py-business__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: clamp(40px, 4.5vw, 64px);
}

.py-business__tags li {
  display: flex;
  flex: 0 0 auto;
  max-width: 100%;
}

/* WORKS */
.py-works {
  padding: var(--py-space-section) var(--py-pad);
  color: var(--py-white);
  background: var(--py-black);
}

.py-works__top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  margin: clamp(46px, 5.5vw, 84px) 0 clamp(60px, 8vw, 120px);
}

.py-works__top > p {
  max-width: 920px;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  font-weight: 500;
  line-height: 1.95;
}

.py-works__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(64px, 9vw, 148px) clamp(24px, 4.4vw, 72px);
  align-items: start;
}

.py-work {
  grid-column: span 6;
  min-width: 0;
}

.py-work__link,
.py-work__static {
  display: block;
}

.py-work__image {
  position: relative;
  aspect-ratio: 1.42 / 1;
  overflow: hidden;
  background: #272220;
}

.py-work__image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.py-work:nth-child(1) .py-work__image > img { object-position: 50% 48%; }
.py-work:nth-child(2) .py-work__image > img { object-position: 50% 55%; }

.py-work__hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 24px;
  color: var(--py-white);
  background: rgba(13, 12, 12, 0.64);
  font-family: var(--py-font-latin);
  font-size: 11px;
  letter-spacing: 0.12em;
  opacity: 0;
  transition: opacity 300ms ease;
}

.py-work__hover span:last-child {
  font-size: 22px;
}

.py-work__link:hover .py-work__image > img,
.py-work__link:focus-visible .py-work__image > img {
  transform: scale(1.025);
}

.py-work__link:hover .py-work__hover,
.py-work__link:focus-visible .py-work__hover {
  opacity: 1;
}

.py-work__meta {
  padding-top: 18px;
}

.py-work__meta p {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--py-font-latin);
  font-size: 10px;
  letter-spacing: 0.13em;
}


.py-text-link {
  display: inline-flex;
  width: fit-content;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid currentColor;
  border-radius: var(--py-pill-radius);
  margin-top: clamp(92px, 12vw, 180px);
  padding: 0 28px;
  font-family: var(--py-font-latin);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.06em;
  transition: color 220ms ease, background-color 220ms ease;
}

.py-text-link span {
  font-size: 1.25em;
  transition: transform 220ms ease;
}

.py-text-link:not(.is-disabled):hover span {
  transform: translateX(4px);
}

.py-text-link--light:hover {
  color: var(--py-ink);
  background: var(--py-white);
}

.py-text-link.is-disabled {
  cursor: default;
  opacity: 0.48;
}

/* SERVICE LP */
.py-service-lp[hidden] {
  display: none !important;
}

/* CONTACT */
.py-contact {
  padding: var(--py-space-section) var(--py-content-pad) clamp(88px, 8vw, 128px);
  color: var(--py-ink);
  background: var(--py-warm);
}

.py-contact--light {
  color: var(--py-ink);
  background: var(--py-warm);
}

.py-contact--dark {
  color: var(--py-white);
  background: var(--py-black);
}

.py-contact__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 50px;
  align-items: end;
  margin-top: clamp(52px, 7vw, 106px);
}

.py-contact__link > span:first-child {
  grid-column: 1 / -1;
  font-size: clamp(15px, 1.2vw, 18px);
}

.py-contact h2 {
  font-family: var(--py-font-latin);
  font-size: clamp(4rem, 8.5vw, 8rem);
  font-weight: 400;
  line-height: 0.76;
  letter-spacing: -0.08em;
}

.py-contact__action {
  display: inline-flex;
  width: fit-content;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid var(--py-ink);
  border-radius: var(--py-pill-radius);
  padding: 0 28px;
  font-family: var(--py-font-latin);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
  transition: color 220ms ease, background-color 220ms ease;
}

.py-contact__action b {
  font-size: 18px;
  font-weight: 300;
  transition: transform 220ms ease;
}

.py-contact__link:hover .py-contact__action,
.py-contact__link:focus-visible .py-contact__action {
  color: var(--py-white);
  background: var(--py-ink);
}

.py-contact__link:hover .py-contact__action b,
.py-contact__link:focus-visible .py-contact__action b {
  transform: translate(3px, -3px);
}

.py-contact--dark .py-contact__action {
  border-color: currentColor;
}

.py-contact--dark .py-contact__link:hover .py-contact__action,
.py-contact--dark .py-contact__link:focus-visible .py-contact__action {
  color: var(--py-ink);
  background: var(--py-white);
}

/* FOOTER */
.py-footer {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(64px, 10vw, 160px);
  padding: clamp(72px, 8vw, 120px) var(--py-pad) 34px;
  color: var(--py-white);
  background: var(--py-black);
}

.py-footer__brand > a {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.py-footer__brand img {
  width: 42px;
  height: 42px;
  filter: invert(1);
  object-fit: contain;
}

.py-footer address {
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.95;
}

.py-footer address a {
  display: inline-block;
  margin-top: 12px;
  color: var(--py-white);
}

.py-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 20px 44px;
  font-family: var(--py-font-latin);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.py-footer__nav a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 13px;
  transition: border-color 180ms ease;
}

.py-footer__nav a:hover {
  border-color: var(--py-white);
}

.py-footer__bottom {
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  margin-top: 40px;
  padding-top: 24px;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--py-font-latin);
  font-size: 9px;
  letter-spacing: 0.14em;
}

@media (max-width: 1199px) {
  .py-hero h1 {
    font-size: clamp(3.9rem, 5.75vw, 5.4rem);
  }

  .py-greeting__body {
    grid-template-columns: minmax(0, 0.8fr) minmax(380px, 1.2fr);
    gap: 64px;
  }

}

@media (max-width: 900px) {
  .py-header__nav {
    gap: 22px;
  }

  .py-hero h1 {
    font-size: clamp(3.15rem, 6.4vw, 3.75rem);
  }

  .py-greeting__body {
    grid-template-columns: 1fr;
    gap: 72px;
  }

  .py-greeting__copy {
    width: min(100%, 680px);
    margin-left: auto;
  }

  .py-works__grid {
    gap: 82px 28px;
  }

  .py-works__top {
    align-items: start;
    flex-direction: column;
  }

  .py-footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  :root {
    --py-pad: 20px;
    --py-page-gutter: 20px;
    --py-content-pad: 20px;
    --py-space-section: 88px;
    --py-pill-height: 47px;
    --py-pill-font-size: 15px;
    --py-pill-padding: 19px;
  }

  body {
    font-size: 16px;
  }

  .py-desktop-only {
    display: none;
  }

  .py-header,
  .py-header.is-scrolled {
    height: 64px;
  }

  .py-header__brand {
    gap: 9px;
    font-size: 11px;
  }

  .py-header__brand img {
    width: 30px;
    height: 30px;
  }

  .py-header__nav {
    display: none;
  }

  .py-menu-button {
    position: relative;
    z-index: 1002;
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    padding: 0;
    background: transparent;
    cursor: pointer;
  }

  .py-menu-button span {
    display: block;
    width: 25px;
    height: 1px;
    background: currentColor;
    transition: transform 240ms ease;
  }

  .py-menu-button[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .py-menu-button[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .py-mobile-nav {
    position: fixed;
    z-index: 1001;
    inset: 0;
    display: flex;
    visibility: hidden;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    padding: 112px var(--py-pad) 30px;
    color: var(--py-white);
    background: var(--py-ink);
    opacity: 0;
    pointer-events: none;
    transition: opacity 260ms ease, visibility 260ms ease;
  }

  .py-mobile-nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .py-header:has(.py-mobile-nav.is-open) .py-header__brand,
  .py-header:has(.py-mobile-nav.is-open) .py-menu-button {
    color: var(--py-white);
  }

  .py-header:has(.py-mobile-nav.is-open) .py-header__brand img {
    filter: invert(1);
  }

  .py-mobile-nav nav {
    display: flex;
    flex-direction: column;
  }

  .py-mobile-nav nav > a,
  .py-mobile-nav__parent {
    display: flex;
    width: 100%;
    align-items: baseline;
    gap: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    padding: 14px 0 17px;
    color: inherit;
    background: transparent;
    font-family: var(--py-font-latin);
    font-size: clamp(2.5rem, 12vw, 4rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.05em;
    text-align: left;
    cursor: pointer;
  }

  .py-mobile-nav nav > a span,
  .py-mobile-nav__parent span {
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .py-mobile-nav__parent b {
    font: inherit;
  }

  .py-mobile-nav__parent svg {
    width: 18px;
    height: 12px;
    margin-left: auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1;
    transition: transform 180ms ease;
  }

  .py-mobile-nav__parent[aria-expanded="true"] svg {
    transform: rotate(180deg);
  }

  .py-mobile-nav__submenu[hidden] {
    display: none;
  }

  .py-mobile-nav__submenu {
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid transparent;
    padding: 0 0 0 39px;
    opacity: 0;
    transition: max-height 280ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease, padding 280ms ease, border-color 180ms ease;
  }

  .py-mobile-nav__submenu.is-open {
    max-height: 220px;
    border-bottom-color: rgba(255, 255, 255, 0.22);
    padding-top: 5px;
    padding-bottom: 5px;
    opacity: 1;
  }

  .py-mobile-nav__submenu a {
    display: flex;
    min-height: 40px;
    align-items: center;
    font-size: 15px;
    letter-spacing: 0.06em;
  }

  .py-mobile-nav > p {
    font-family: var(--py-font-latin);
    font-size: 9px;
    letter-spacing: 0.14em;
  }

  .py-section-heading {
    align-items: start;
  }

  .py-section-heading h2 {
    margin-top: 14px;
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .py-section-heading > p {
    padding-top: 23px;
    font-size: 11px;
  }

  .py-hero {
    min-height: max(700px, 100svh);
  }

  .py-hero__copy {
    right: var(--py-pad);
    bottom: 110px;
    left: var(--py-pad);
    max-width: none;
  }

  .py-hero__copy .py-kicker {
    margin-bottom: 30px;
  }

  .py-hero h1 {
    max-width: none;
    font-size: clamp(2.1rem, 8.8vw, 3.1rem);
    line-height: 1.17;
  }

  .py-hero__lead {
    margin-top: 38px;
    font-size: 15px;
    line-height: 1.9;
  }

  .py-hero__scroll {
    bottom: 28px;
  }

  .py-mosaic {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(10, minmax(0, 1fr));
  }

  .py-mosaic__slot[data-mosaic-slot="0"] { grid-area: 1 / 1 / 6 / 4; }
  .py-mosaic__slot[data-mosaic-slot="1"] { grid-area: 1 / 4 / 4 / 7; }
  .py-mosaic__slot[data-mosaic-slot="2"] { grid-area: 4 / 4 / 8 / 7; }
  .py-mosaic__slot[data-mosaic-slot="3"] { grid-area: 6 / 1 / 11 / 4; }
  .py-mosaic__slot[data-mosaic-slot="4"] { grid-area: 8 / 4 / 11 / 7; }

  .py-mosaic__image[data-image-id="01"] { object-position: 56% 50%; }
  .py-mosaic__image[data-image-id="02"] { object-position: 44% 50%; }
  .py-mosaic__image[data-image-id="03"] { object-position: 51% 48%; }
  .py-mosaic__image[data-image-id="04"] { object-position: 49% 50%; }
  .py-mosaic__image[data-image-id="05"] { object-position: 50% 50%; }

  .py-hero__shade {
    background: linear-gradient(0deg, rgba(13, 12, 12, 0.88) 0%, rgba(13, 12, 12, 0.66) 52%, rgba(13, 12, 12, 0.16) 100%);
  }

  .py-mosaic__toggle {
    right: var(--py-pad);
    bottom: 22px;
    min-height: 40px;
    padding: 0 14px;
  }

  .py-greeting h2 {
    font-size: clamp(2.75rem, 12.4vw, 4.4rem);
  }

  .py-greeting__message {
    margin-top: 54px;
    font-size: clamp(1.25rem, 5.8vw, 1.55rem);
    line-height: 1.72;
  }

  .py-greeting__body {
    gap: 64px;
    margin-top: 60px;
  }

  .py-greeting__statement {
    margin-bottom: 34px;
    font-size: 1.42rem;
    line-height: 1.8;
  }

  .py-greeting__copy > p:last-child {
    font-size: 15px;
  }

  .py-business__intro {
    margin: 52px 0 0;
  }

  .py-business__intro > p:first-child {
    font-size: 1rem;
  }

  .py-business__summary {
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.9;
  }

  .py-business__tags {
    gap: 10px 8px;
    margin-top: 36px;
  }

  .py-works__top {
    gap: 36px;
    margin: 48px 0 72px;
  }

  .py-works__top > p {
    font-size: 1rem;
    line-height: 1.9;
  }

  .py-works__grid {
    display: block;
  }

  .py-work {
    margin-bottom: 84px;
  }

  .py-work:last-child {
    margin-bottom: 0;
  }

  .py-work__image {
    aspect-ratio: 1.12 / 1;
  }

  .py-work__hover {
    display: none;
  }

  .py-work__meta {
    padding-top: 15px;
  }

  .py-text-link {
    margin-top: 100px;
    min-height: 46px;
    padding: 0 24px;
    font-size: 14px;
  }

  .py-contact {
    padding-bottom: 88px;
  }

  .py-contact__link {
    display: block;
    margin-top: 52px;
  }

  .py-contact__link > span:first-child {
    display: block;
    max-width: 18em;
    font-size: 15px;
  }

  .py-contact h2 {
    margin-top: 58px;
    font-size: clamp(3.7rem, 17.4vw, 6.7rem);
    line-height: 0.8;
  }

  .py-contact__action {
    width: fit-content;
    min-height: 46px;
    margin: 54px 0 0 auto;
    padding: 0 24px;
  }

  .py-footer {
    display: block;
    padding-top: 72px;
  }

  .py-footer__nav {
    margin-top: 70px;
    gap: 18px 24px;
    font-size: 11px;
  }

  .py-footer__bottom {
    align-items: flex-end;
    margin-top: 72px;
  }

  .py-footer__bottom p:first-child {
    max-width: 150px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
