:root {
  --pw-ink: #101820;
  --pw-snow: #f7f5ef;
  --pw-ice: #bfeaf2;
  --pw-ocean: #123b5d;
  --pw-aurora: #20d9c2;
  --pw-coral: #ff6b4a;
  --pw-mist: #e8f1f2;
  --pw-border: rgba(16, 24, 32, 0.16);
  --pw-shadow: 0 24px 70px rgba(16, 24, 32, 0.12);
  --pw-radius: clamp(1.25rem, 2.5vw, 2.5rem);
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  text-wrap: pretty;
}

body::before {
  background:
    radial-gradient(circle at 12% 5%, rgba(32, 217, 194, 0.11), transparent 28rem),
    linear-gradient(180deg, rgba(191, 234, 242, 0.12), transparent 28rem);
  content: "";
  inset: 0 0 auto;
  height: 42rem;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

::selection {
  background: var(--pw-aurora);
  color: var(--pw-ink);
}

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid var(--pw-coral);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--pw-ink);
}

a {
  text-underline-offset: 0.18em;
}

.wp-site-blocks {
  padding-left: 0;
  padding-right: 0;
}

.site-header {
  background: color-mix(in srgb, var(--pw-snow) 90%, transparent);
  border-bottom: 1px solid var(--pw-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

@supports (backdrop-filter: blur(16px)) {
  .site-header {
    backdrop-filter: blur(16px);
  }
}

.site-header__inner {
  min-height: 5.25rem;
}

.pw-brand {
  align-items: center;
  color: var(--pw-ink);
  display: inline-flex;
  gap: 0.7rem;
  text-decoration: none;
}

.pw-brand img {
  display: block;
  height: 3.35rem;
  width: 3.35rem;
}

.pw-brand span {
  display: grid;
  line-height: 1;
}

.pw-brand strong {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.35rem;
  letter-spacing: -0.045em;
}

.pw-brand small {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-top: 0.25rem;
  text-transform: uppercase;
}

.site-header .wp-block-navigation-item__content {
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.55rem 0.8rem;
  text-decoration: none;
}

.site-header .wp-block-navigation-item__content:hover {
  background: rgba(32, 217, 194, 0.14);
}

.site-header .wp-block-navigation__responsive-container.is-menu-open {
  background: var(--pw-ink) !important;
  color: var(--pw-snow) !important;
  padding: 1.5rem;
}

.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  padding-top: 5rem;
}

.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(2rem, 1.7rem + 3vw, 3rem);
  line-height: 1.05;
}

.pw-main {
  margin-top: 0;
}

.pw-section {
  padding-bottom: clamp(4rem, 7vw, 7rem);
  padding-top: clamp(4rem, 7vw, 7rem);
}

.pw-section--ink {
  background: var(--pw-ink);
  color: var(--pw-snow);
}

.pw-section--ice {
  background: var(--pw-mist);
}

.pw-eyebrow {
  align-items: center;
  display: flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pw-eyebrow::before {
  background: var(--pw-aurora);
  border-radius: 999px;
  content: "";
  height: 0.65rem;
  width: 0.65rem;
}

.pw-hero {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 5vw, 6rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
  min-height: calc(100svh - 5.25rem);
  padding-bottom: clamp(4rem, 8vw, 8rem);
  padding-top: clamp(3rem, 7vw, 7rem);
}

.pw-hero h1 {
  font-size: var(--wp--preset--font-size--hero);
  margin: 1.25rem 0 1.5rem;
  max-width: 11ch;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.pw-hero__lead {
  font-size: var(--wp--preset--font-size--large);
  line-height: 1.55;
  max-width: 36rem;
}

.pw-hero__art {
  isolation: isolate;
  position: relative;
}

.pw-hero__art::before {
  background: var(--pw-aurora);
  border-radius: 48% 52% 60% 40% / 42% 48% 52% 58%;
  content: "";
  inset: 12% 10% 4%;
  opacity: 0.18;
  position: absolute;
  transform: rotate(-6deg);
  z-index: -1;
}

.pw-hero__art img {
  filter: drop-shadow(0 28px 30px rgba(16, 24, 32, 0.16));
  height: auto;
  width: 100%;
}

.pw-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.pw-button,
.pw-button:visited {
  align-items: center;
  background: var(--pw-ink);
  border: 2px solid var(--pw-ink);
  border-radius: 999px;
  color: var(--pw-snow);
  display: inline-flex;
  font-weight: 800;
  gap: 0.7rem;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.7rem 1.25rem;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.pw-button::after {
  content: "↗";
}

.pw-button:hover {
  background: var(--pw-aurora);
  color: var(--pw-ink);
  transform: translateY(-2px);
}

.pw-button--ghost,
.pw-button--ghost:visited {
  background: transparent;
  color: var(--pw-ink);
}

.pw-button--light,
.pw-button--light:visited {
  background: var(--pw-snow);
  border-color: var(--pw-snow);
  color: var(--pw-ink);
}

.pw-display {
  font-size: var(--wp--preset--font-size--x-large);
  max-width: 18ch;
  text-wrap: balance;
}

.pw-intro-grid {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 6vw, 7rem);
  grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
}

.pw-intro-grid > :last-child {
  border-left: 1px solid currentColor;
  padding-left: clamp(1.5rem, 4vw, 3rem);
}

.pw-project-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(12, 1fr);
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
}

.pw-project-card {
  grid-column: span 6;
}

.pw-project-card:nth-child(3n + 1) {
  grid-column: span 7;
}

.pw-project-card:nth-child(3n + 2) {
  grid-column: span 5;
}

.pw-project-card__link {
  background: #fff;
  border: 1px solid var(--pw-border);
  border-radius: var(--pw-radius);
  color: var(--pw-ink);
  display: block;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.pw-project-card__link:hover {
  box-shadow: var(--pw-shadow);
  transform: translateY(-4px);
}

.pw-project-card__visual {
  align-items: flex-end;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, transparent 58%, rgba(255, 255, 255, 0.35) 58%),
    var(--project-color, var(--pw-ice));
  display: flex;
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(2.75rem, 2rem + 4vw, 6rem);
  font-weight: 800;
  justify-content: flex-end;
  letter-spacing: -0.08em;
  line-height: 0.72;
  overflow: hidden;
  padding: 1.25rem;
}

.pw-project-card:nth-child(3n + 2) .pw-project-card__visual {
  --project-color: var(--pw-aurora);
}

.pw-project-card:nth-child(3n + 3) .pw-project-card__visual {
  --project-color: var(--pw-coral);
}

.pw-project-card__body {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.pw-project-card__meta {
  color: var(--pw-ocean);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pw-project-card h3 {
  font-size: clamp(1.45rem, 1.2rem + 1vw, 2.25rem);
  line-height: 1.08;
  margin: 0.55rem 0 0.8rem;
  text-wrap: balance;
}

.pw-project-card p {
  margin-bottom: 0;
}

.pw-capability-grid,
.pw-process-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 3rem;
}

.pw-capability,
.pw-process-step {
  border: 1px solid currentColor;
  border-radius: var(--pw-radius);
  padding: clamp(1.4rem, 3vw, 2.4rem);
}

.pw-capability__number,
.pw-process-step__number {
  color: var(--pw-aurora);
  font-family: var(--wp--preset--font-family--display);
  font-size: 0.85rem;
  font-weight: 800;
}

.pw-capability h3,
.pw-process-step h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.75rem);
  line-height: 1.12;
  margin: 2rem 0 0.8rem;
  text-wrap: balance;
}

.pw-process-step {
  border-color: var(--pw-border);
}

.pw-process-step__number {
  color: var(--pw-ocean);
}

.pw-callout {
  background: var(--pw-aurora);
  border-radius: var(--pw-radius);
  color: var(--pw-ink);
  overflow: hidden;
  padding: clamp(2rem, 7vw, 6rem);
  position: relative;
}

.pw-callout::after {
  border: clamp(2rem, 5vw, 5rem) solid rgba(247, 245, 239, 0.25);
  border-radius: 50%;
  content: "";
  height: 14rem;
  position: absolute;
  right: -5rem;
  top: -6rem;
  width: 14rem;
}

.pw-callout h2 {
  font-size: clamp(2.35rem, 1.85rem + 2.4vw, 5rem);
  line-height: 0.98;
  margin: 0;
  max-width: 13ch;
  text-wrap: balance;
}

.pw-page-hero {
  border-bottom: 1px solid var(--pw-border);
  padding-bottom: clamp(3rem, 7vw, 7rem);
  padding-top: clamp(4rem, 8vw, 8rem);
}

.pw-page-hero h1 {
  font-size: var(--wp--preset--font-size--hero);
  margin: 1rem 0;
  max-width: 16ch;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.pw-page-hero p {
  font-size: var(--wp--preset--font-size--large);
  line-height: 1.55;
  max-width: 38rem;
}

.pw-prose {
  font-size: 1.08rem;
  padding-bottom: clamp(4rem, 8vw, 8rem);
  padding-top: clamp(3rem, 6vw, 6rem);
}

.pw-prose h2 {
  font-size: clamp(1.75rem, 1.5rem + 1.3vw, 3.25rem);
  line-height: 1.05;
  margin-top: 4rem;
  text-wrap: balance;
}

.pw-placeholder {
  background: #fff4d8;
  border-left: 4px solid var(--pw-coral);
  font-size: 0.92rem;
  padding: 1rem 1.2rem;
}

.pw-contact-grid {
  display: grid;
  gap: clamp(2rem, 6vw, 6rem);
  grid-template-columns: minmax(0, 0.75fr) minmax(20rem, 1.25fr);
}

.pw-contact-form {
  background: #fff;
  border: 1px solid var(--pw-border);
  border-radius: var(--pw-radius);
  padding: clamp(1.4rem, 4vw, 3rem);
}

.pw-field {
  margin-bottom: 1.25rem;
}

.pw-field label {
  display: block;
  font-weight: 750;
  margin-bottom: 0.45rem;
}

.pw-field input,
.pw-field textarea {
  background: var(--pw-snow);
  border: 1px solid rgba(16, 24, 32, 0.38);
  border-radius: 0.75rem;
  box-sizing: border-box;
  color: var(--pw-ink);
  font: inherit;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  width: 100%;
}

.pw-field textarea {
  min-height: 10rem;
  resize: vertical;
}

.pw-required {
  color: #9f260d;
}

.pw-form-note {
  color: #40505c;
  font-size: 0.84rem;
}

.pw-form-status {
  border: 2px solid var(--pw-ocean);
  border-radius: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
}

.pw-form-status--success {
  background: #dff8f1;
}

.pw-form-status--error {
  background: #fff0ec;
  border-color: #a72a10;
}

.pw-honeypot {
  left: -10000px;
  position: absolute;
  top: auto;
}

.site-footer {
  background: var(--pw-ink);
  color: var(--pw-snow);
}

.site-footer a {
  color: var(--pw-snow);
}

.site-footer .pw-button--light,
.site-footer .pw-button--light:visited {
  color: var(--pw-ink);
}

.site-footer__inner {
  padding-bottom: 2rem;
  padding-top: clamp(4rem, 8vw, 7rem);
}

.site-footer__title {
  font-size: clamp(2.35rem, 1.85rem + 2.4vw, 5rem);
  line-height: 0.98;
  margin: 0;
  max-width: 12ch;
  text-wrap: balance;
}

.site-footer__links {
  align-items: flex-end;
  border-top: 1px solid rgba(247, 245, 239, 0.3);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  margin-top: 4rem;
  padding-top: 1.5rem;
}

.site-footer__links nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
}

.site-footer__links a {
  font-weight: 700;
  text-decoration: none;
}

.pw-js .pw-reveal {
  opacity: 1;
  transform: translateY(12px);
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pw-js .pw-reveal.is-visible {
  transform: none;
}

@supports (view-transition-name: none) {
  @view-transition {
    navigation: auto;
  }

  .pw-project-card__visual {
    view-transition-name: none;
  }
}

@media (max-width: 880px) {
  .pw-hero,
  .pw-intro-grid,
  .pw-contact-grid {
    grid-template-columns: 1fr;
  }

  .pw-hero {
    min-height: auto;
  }

  .pw-hero__art {
    margin-inline: auto;
    max-width: 42rem;
    order: -1;
  }

  .pw-intro-grid > :last-child {
    border-left: 0;
    border-top: 1px solid currentColor;
    padding-left: 0;
    padding-top: 2rem;
  }

  .pw-project-card,
  .pw-project-card:nth-child(3n + 1),
  .pw-project-card:nth-child(3n + 2) {
    grid-column: span 12;
  }

  .pw-capability-grid,
  .pw-process-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .site-header__inner {
    min-height: 4.5rem;
  }

  .pw-brand {
    gap: 0.45rem;
  }

  .pw-brand img {
    height: 2.85rem;
    width: 2.85rem;
  }

  .pw-brand strong {
    font-size: 1.08rem;
  }

  .pw-brand small {
    font-size: 0.55rem;
  }

  .pw-section {
    padding-bottom: 4.5rem;
    padding-top: 4.5rem;
  }

  .pw-hero {
    padding-top: 2rem;
  }

  .pw-hero__art {
    max-width: 26rem;
  }

  .pw-actions > * {
    width: 100%;
  }

  .pw-project-card__visual {
    aspect-ratio: 4 / 3;
  }
}

@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;
  }

  .pw-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (prefers-reduced-data: reduce) {
  body::before {
    display: none;
  }
}
