/* Wasem Works — fluid layout (GAA-like breakpoints) */

:root {
  --ww-pad: 48px;
  --ww-pad-y: 56px;
  --ww-max: 1728px;
  --ww-radius: 15px;
  --ww-header-gap: 12px;
  --ww-sans: Inter, system-ui, sans-serif;
  --ww-kern-wo: -0.05em;
  --ww-kern-em: -0.022em;
  --ww-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ww-motion: 0.55s var(--ww-ease);
}

@media (max-width: 1199px) {
  :root {
    --ww-pad: 24px;
    --ww-pad-y: 32px;
  }
}

@media (max-width: 809px) {
  :root {
    --ww-pad: 16px;
    --ww-pad-y: 24px;
  }
}

html {
  overflow-y: auto;
  scroll-behavior: smooth;
  /* Keep left/right edges visually equal when a classic scrollbar is present */
  scrollbar-gutter: stable both-edges;
}

body {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
  background: var(--ww-bg, #fff);
  font-family: var(--ww-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

input,
textarea {
  text-transform: none;
  letter-spacing: 0;
}

img,
video {
  image-rendering: auto;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/InterVariable.woff2") format("woff2");
}

@font-face {
  font-family: "ANAGRAM Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/ANAGRAM_DISPLAY-Regular.woff2") format("woff2"),
    url("../assets/fonts/ANAGRAM_DISPLAY-Regular.otf") format("opentype");
}

.page {
  width: 100%;
  max-width: var(--ww-max);
  margin: 0 auto;
  padding: 0;
  padding-left: var(--ww-pad);
  padding-right: var(--ww-pad);
  padding-bottom: 80px;
  position: relative;
  background: var(--ww-bg, #fff);
  box-sizing: border-box;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ——— Header: scrolls with the page; pills pin, then latch back in place ——— */

.site-header {
  position: relative;
  top: 0;
  z-index: 20;
  background-color: color-mix(in srgb, var(--ww-bg, #fff) 88%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  /* Same inset as page content — no negative margins (avoids L/R drift) */
  margin: 0;
  padding-top: var(--ww-pad-y);
  padding-bottom: 12px;
  padding-left: 0;
  padding-right: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--ww-header-gap);
}

.site-header--sticky {
  position: sticky;
}

.site-header__bar-slot {
  display: block;
  width: 100%;
}

html.ww-nav-pinned .site-header {
  z-index: auto;
  background: transparent;
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html.ww-nav-pinned.ww-theme-blending .site-header {
  background-color: transparent !important;
}

html.ww-nav-pinned .site-header__bar {
  position: fixed;
  top: var(--ww-bar-pin-top, 12px);
  left: var(--ww-bar-left, 0px);
  width: var(--ww-bar-width, 100%);
  margin: 0;
  z-index: 21;
  transform: none;
}

html.ww-nav-pinned .site-nav,
html.ww-nav-pinned .theme-toggle,
html.ww-nav-pinned .grid-dots,
html.ww-nav-pinned .project-switch {
  animation: ww-nav-in 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes ww-nav-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.ww-nav-pinned .site-nav,
  html.ww-nav-pinned .theme-toggle,
  html.ww-nav-pinned .grid-dots,
  html.ww-nav-pinned .project-switch {
    animation: none;
  }
}

.ww-brand {
  display: block;
  text-align: center;
  font-size: 15px;
  font-family: var(--ww-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  text-transform: none;
  line-height: 1.2;
  color: var(--ww-text);
  width: max-content;
  margin: 0 auto;
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  transition: opacity var(--ww-motion);
}

.ww-brand:hover {
  opacity: 0.55;
}

.ww-brand__m {
  margin-left: var(--ww-kern-em);
}

.ww-brand__o {
  margin-left: var(--ww-kern-wo);
}

.site-header__bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 0;
}

.site-header__controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  order: 2;
  opacity: 0.42;
  transition: opacity var(--ww-motion);
}

.site-header__controls:hover,
.site-header__controls:focus-within {
  opacity: 1;
}

.site-header__bar .site-nav {
  order: 1;
  justify-self: center;
}

/* Theme toggle — in-flow inside header */
.theme-toggle {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  flex-shrink: 0;
}

.site-header .theme-toggle {
  overflow: visible;
}

/* Nav pill — in-flow */
.site-nav {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 2px;
  row-gap: 2px;
  padding: 4px;
  border-radius: 980px;
  background: var(--ww-surface);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 3;
  width: max-content;
  max-width: 100%;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-family: var(--ww-sans);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ww-text);
  padding: 7px 14px;
  border-radius: 980px;
  white-space: nowrap;
  line-height: 1.2;
  opacity: 1 !important;
  transition:
    background-color var(--ww-motion),
    transform 0.3s var(--ww-ease),
    box-shadow var(--ww-motion);
  -webkit-tap-highlight-color: transparent;
}

.site-nav__link:hover {
  background: var(--ww-surface-hover);
  opacity: 1 !important;
  transform: none;
}

.site-nav__link:active {
  transform: scale(0.96);
  background: var(--ww-surface-active);
  opacity: 1 !important;
}

.site-nav__link.is-current {
  background: var(--ww-pill);
  box-shadow: var(--ww-pill-shadow);
}

.site-nav__link.is-current:hover {
  background: var(--ww-pill);
}

/* Grid dots — in-flow next to theme toggle */
.grid-dots {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  column-gap: 10px;
  height: 32px;
  padding: 0 12px;
  border-radius: 980px;
  background: var(--ww-surface);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 4;
}

.grid-dots__btn {
  width: 6px;
  height: 6px;
  min-width: 6px;
  min-height: 6px;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  border-radius: 6px;
  background: var(--ww-control-dot);
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: block;
  flex-shrink: 0;
  position: relative;
  transform: none;
  transition: background-color 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.grid-dots__btn::before {
  content: "";
  position: absolute;
  inset: -9px;
}

.grid-dots__btn:hover {
  background: var(--ww-control-dot-hover);
}

.grid-dots__btn:active {
  background: var(--ww-control-dot-hover);
}

.grid-dots__btn.is-active,
.grid-dots__btn.is-active:hover,
.grid-dots__btn.is-active:active {
  background: var(--ww-control-dot-active);
}

/* Project switch — prev / next arrows */
.project-switch {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  column-gap: 2px;
  height: 28px;
  padding: 2px;
  border-radius: 980px;
  background: var(--ww-surface);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 4;
  flex-shrink: 0;
}

.project-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 24px;
  border-radius: 980px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  color: var(--ww-text);
  background: transparent;
  opacity: 1 !important;
  transition:
    background-color 0.35s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1),
    color 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  -webkit-tap-highlight-color: transparent;
}

.project-switch__btn:hover {
  background: var(--ww-surface-hover);
  opacity: 1 !important;
  transform: none;
}

.project-switch__btn:active {
  transform: scale(0.94);
  background: var(--ww-surface-active);
}

.project-switch__btn.is-disabled {
  color: var(--ww-muted);
  pointer-events: none;
  cursor: default;
}

/* Desktop: 4/6/8/10 — Mobile (<810): 2/4/6/8 */
.grid-dots__btn--mobile-only {
  display: none;
}

@media (max-width: 809px) {
  .grid-dots__btn--mobile-only {
    display: block;
  }

  .grid-dots__btn--desktop-only {
    display: none;
  }
}

/* ——— Main content ——— */

.site-main {
  padding-top: 40px;
  flex: 1 0 auto;
}

.page-intro {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ww-muted);
  margin: 0 0 56px;
  max-width: 48em;
  position: relative;
  left: auto;
  top: auto;
  width: auto;
}

.status-online__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 0.4em 0 0.15em;
  border-radius: 50%;
  background: #22c55e;
  vertical-align: 0.12em;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  animation: status-online-pulse 2.4s ease-out infinite;
}

@keyframes status-online-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-online__dot {
    animation: none;
  }

  .home-feed__item img,
  .home-feed__item video,
  .work-card__media img,
  .work-card__media video {
    transition: none !important;
    transform: none !important;
  }
}

/* ——— Home feed ——— */

.home-feed {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: 100% !important;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(6, 1fr);
  align-items: start;
  padding-bottom: 56px;
}

.home-feed[data-cols="2"] {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.home-feed[data-cols="4"] {
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.home-feed[data-cols="6"] {
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.home-feed[data-cols="8"] {
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
}

.home-feed[data-cols="10"] {
  grid-template-columns: repeat(10, 1fr);
  gap: 12px;
}

@supports (grid-template-rows: masonry) {
  .home-feed {
    grid-template-rows: masonry;
  }
}

.home-feed__item {
  overflow: hidden;
  border-radius: var(--ww-radius);
  background-color: var(--ww-placeholder);
  position: relative;
  min-width: 0;
  height: auto;
  color: inherit;
}

a.home-feed__item:hover {
  opacity: 1;
}

.home-feed__item img,
.home-feed__item video {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: auto;
  transition: transform var(--ww-motion);
}

@media (hover: hover) {
  a.home-feed__item:hover img,
  a.home-feed__item:hover video {
    transform: scale(1.015);
  }
}

.home-feed__item--slot .slot-grid {
  gap: 4px;
  grid-template-columns: repeat(2, 1fr);
}

.home-feed__item--slot .slot-grid > .slot-col:nth-child(n + 3) {
  display: none;
}

.home-feed__item--slot .slot-col {
  height: calc((((100cqw - 4px) / 2) * 4 / 3) * 2 + 4px);
}

.home-feed__item--slot .slot-col__cell {
  margin-bottom: 4px;
  border-radius: 10px;
}

.home-feed__item--slot .slot-col__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* ——— Work grid ——— */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 72px 28px;
  width: 100%;
}

.work-card {
  display: flex;
  flex-direction: column;
  row-gap: 12px;
  align-items: flex-start;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  position: relative;
  left: auto !important;
  top: auto !important;
  width: auto !important;
}

a.work-card:hover {
  opacity: 1;
}

.work-card__media {
  overflow: hidden;
  border-radius: var(--ww-radius);
  width: 100%;
  aspect-ratio: 3 / 4;
  position: relative;
  background: var(--ww-placeholder);
}

.work-card__media img,
.work-card__media video {
  inset: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
  display: block;
  image-rendering: auto;
  transition: transform var(--ww-motion);
}

@media (hover: hover) {
  .work-card:hover .work-card__media img,
  .work-card:hover .work-card__media video {
    transform: scale(1.015);
  }
}

.work-card__copy {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.work-card__title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  line-height: inherit;
  color: var(--ww-text);
}

.work-card__meta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  line-height: inherit;
  color: var(--ww-muted);
}

.work-card--soon {
  cursor: default;
}

.work-card__soon,
.home-feed__soon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--ww-motion);
}

.home-feed__soon {
  font-size: 12px;
}

.home-feed__item--soon {
  cursor: default;
}

@media (hover: hover) {
  .work-card--soon:hover .work-card__soon,
  .home-feed__item--soon:hover .home-feed__soon {
    opacity: 1;
  }
}

/* ——— Info ——— */

.info-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 520px);
  gap: 48px 40px;
  align-items: start;
  width: 100%;
}

.info-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.info-copy {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ww-text);
  line-height: 1.5;
  width: 100%;
  max-width: none;
  text-align: left;
  min-width: 0;
  position: relative;
  left: auto !important;
  top: auto !important;
  box-sizing: border-box;
  padding: 20px 22px 24px;
  border-radius: 16px;
  background: var(--ww-surface);
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
}

.info-portrait-block {
  min-width: 0;
  width: 100%;
  justify-self: stretch;
}

.info-portrait {
  overflow: hidden;
  border-radius: var(--ww-radius);
  width: 100%;
  max-width: none;
  aspect-ratio: 3 / 4;
  position: relative;
  background: var(--ww-placeholder);
  left: auto !important;
  top: auto !important;
  height: auto !important;
}

.info-credit {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ww-muted);
  margin: 10px 0 0;
  line-height: 1.4;
}

.info-portrait img {
  inset: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
  object-position: center top;
  display: block;
  image-rendering: auto;
}

.info__cta a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.info__cta a:hover {
  opacity: 0.55;
}

/* ——— Inquiry ——— */

.inquiry {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: 100% !important;
  max-width: none;
  text-align: left;
  font-family: var(--ww-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.5;
  color: var(--ww-text);
  box-sizing: border-box;
  padding: 20px 22px 24px;
  border-radius: 16px;
  background: var(--ww-surface);
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
}

.inquiry__intro {
  margin: 0 0 28px;
}

.page-intro.inquiry__lede {
  margin: 0;
  max-width: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.inquiry__capacity {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  line-height: 1.5;
  color: var(--ww-muted);
}

.inquiry__capacity .status-online__dot {
  margin: 0.45em 0 0;
  flex-shrink: 0;
}

.inquiry__capacity > span:last-child {
  flex: 1;
  min-width: 0;
}

.inquiry__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px 64px;
  align-items: start;
}

.inquiry__col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.field,
.pill-set {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
}

.field__label {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  line-height: 1.2;
  color: var(--ww-muted);
}

.field__input,
.field__textarea,
.inquiry__submit,
.pill-choice span {
  font-size: 12px;
  font-family: var(--ww-sans);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ww-text);
  border-radius: 980px;
  transition:
    background-color 0.35s cubic-bezier(0.25, 0.1, 0.25, 1),
    box-shadow 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.field__input,
.field__textarea,
.inquiry__submit {
  background: var(--ww-pill);
  box-shadow: var(--ww-pill-shadow);
}

.pill-choice span {
  background: var(--ww-surface-active);
  box-shadow: none;
}

.field__input,
.inquiry__submit,
.pill-choice span {
  min-height: 0;
  padding: 7px 14px;
}

.field__input,
.field__textarea {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  outline: none;
  box-sizing: border-box;
}

.field__input:focus,
.field__textarea:focus {
  background: var(--ww-pill);
  box-shadow: var(--ww-pill-shadow);
}

.field__textarea {
  resize: vertical;
  min-height: 88px;
  padding: 7px 14px;
  border-radius: 18px;
  line-height: 1.5;
}

.pill-track {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.pill-choice {
  position: relative;
  display: flex;
  flex: 1 1 calc((100% - 16px) / 3);
  margin: 0;
  min-width: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.pill-track--four .pill-choice {
  flex: 1 1 calc((100% - 24px) / 4);
}

.pill-choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
}

.pill-choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
}

.pill-choice:hover span {
  background: var(--ww-surface-active);
}

.pill-choice:active span,
.inquiry__submit:active {
  transform: scale(0.98);
}

.pill-choice:active span {
  background: var(--ww-surface-active);
}

.pill-choice input:checked + span,
.pill-choice:hover input:checked + span,
.inquiry__submit {
  background: var(--ww-pill);
  box-shadow: var(--ww-pill-shadow);
}

.pill-choice input:focus-visible + span,
.field__input:focus-visible,
.field__textarea:focus-visible,
.inquiry__submit:focus-visible {
  outline: 2px solid var(--ww-text);
  outline-offset: 2px;
}

.inquiry__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin: 8px 0 0;
  border: none;
  cursor: pointer;
}

.inquiry__submit:disabled {
  opacity: 0.45;
  pointer-events: none;
}

.inquiry__thanks {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  line-height: 1.5;
  color: var(--ww-muted);
}

.inquiry__other[hidden] {
  display: none !important;
}

/* ——— Project detail ——— */

.project-meta {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.project-meta__copy {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ww-text);
  line-height: 1.5;
  max-width: none;
  width: 100%;
  text-align: left;
  box-sizing: border-box;
  padding: 20px 22px 24px;
  border-radius: 16px;
  background: var(--ww-surface);
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
}

/* Easter egg + Tic Tac Toe under About */
.ww-egg {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.ww-egg__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 7px 14px;
  border: 0;
  border-radius: 980px;
  background: var(--ww-surface);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: none;
  font-family: var(--ww-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ww-muted);
  cursor: pointer;
  transition:
    background-color var(--ww-motion),
    color var(--ww-motion),
    transform 0.3s var(--ww-ease),
    box-shadow var(--ww-motion);
  -webkit-tap-highlight-color: transparent;
}

.ww-egg__trigger:hover {
  background: var(--ww-surface-hover);
  color: var(--ww-text);
}

.ww-egg__trigger:active {
  transform: scale(0.96);
  background: var(--ww-surface-active);
}

.ww-ttt {
  display: block;
  width: 200px;
  margin: 0;
  box-sizing: border-box;
  padding: 14px 16px 16px;
  border-radius: 16px;
  background: var(--ww-surface);
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--ww-text);
}

.ww-ttt[hidden] {
  display: none !important;
}

.info-stack .ww-egg {
  align-self: flex-start;
}

.ww-egg.is-open .ww-egg__trigger {
  display: none;
}

.ww-ttt__label {
  margin: 0 0 10px;
  color: var(--ww-muted);
  font-size: 12px;
}

.ww-ttt__board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 100%;
}

.ww-ttt__cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 980px;
  background: var(--ww-pill);
  box-shadow: var(--ww-pill-shadow);
  font-family: var(--ww-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ww-text);
  cursor: pointer;
  transition:
    background-color var(--ww-motion),
    transform 0.3s var(--ww-ease),
    box-shadow var(--ww-motion);
  -webkit-tap-highlight-color: transparent;
}

.ww-ttt__cell:hover:not(:disabled) {
  background: var(--ww-surface-hover);
  box-shadow: none;
}

.ww-ttt__cell:active:not(:disabled) {
  transform: scale(0.96);
}

.ww-ttt__cell:disabled {
  cursor: default;
}

.ww-ttt__cell.is-o {
  color: var(--ww-muted);
}

.ww-ttt__status {
  margin: 10px 0 0;
  color: var(--ww-muted);
  min-height: 1.4em;
  font-size: 12px;
}

.ww-ttt__reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0 0;
  padding: 7px 14px;
  border: 0;
  border-radius: 980px;
  background: var(--ww-pill);
  box-shadow: var(--ww-pill-shadow);
  font-family: var(--ww-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ww-text);
  cursor: pointer;
  transition:
    background-color var(--ww-motion),
    transform 0.3s var(--ww-ease);
}

.ww-ttt__reset:hover {
  background: var(--ww-surface-hover);
  box-shadow: none;
}

.ww-ttt__reset:active {
  transform: scale(0.96);
}

.project-meta__nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ww-muted-soft);
}

/* ——— Project gallery (GAA-style row stack) ——— */

.project-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  container-type: inline-size;
  container-name: project-gallery;
}

.project-gallery__row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

.project-gallery__item {
  overflow: hidden;
  border-radius: var(--ww-radius);
  position: relative;
  background: var(--ww-placeholder);
  min-width: 0;
  flex: 1 1 0;
}

.project-gallery__item picture {
  position: absolute;
  inset: 0;
  display: block;
}

.project-gallery__item img,
.project-gallery__item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
  image-rendering: auto;
}

/* Full-width hero — same height as 2-up portrait (01) */
.project-gallery__item--hero {
  flex: 1 1 100%;
  aspect-ratio: auto;
  /* portrait width = (gallery - gap) / 2; height = width × 5/4 */
  height: calc(((100cqw - 12px) / 2) * 5 / 4);
}

/* Full-width letter strip — 4860×2160 (9:4) */
.project-gallery__item--letter {
  aspect-ratio: 4860 / 2160;
  flex: 1 1 100%;
}

/* Full-width landscape ~ GAA ~1.75 */
.project-gallery__item--wide {
  aspect-ratio: 16 / 9;
  flex: 1 1 100%;
}

.project-gallery__item.project-gallery__item--type-cycle,
.home-feed__item.home-feed__item--type-cycle {
  flex: 1 1 100%;
  container-type: size;
  overflow: visible;
  background: transparent;
  background-color: transparent;
  color: #000000;
  transition: color var(--ww-theme-duration) var(--ww-theme-ease);
}

.project-gallery__item.project-gallery__item--type-cycle {
  aspect-ratio: 16 / 9;
}

.home-feed__item.home-feed__item--type-cycle {
  aspect-ratio: 4 / 5;
}

html[data-theme="dark"] .project-gallery__item--type-cycle,
html[data-theme="dark"] .home-feed__item--type-cycle {
  color: #ffffff;
}

.home-feed__item--type-cycle::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
}

.type-cycle {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-family: "ANAGRAM Display", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: min(62cqh, 46cqw);
  line-height: 1.28;
  letter-spacing: normal;
  text-transform: none;
  padding: 0 0.14em;
  color: inherit;
  user-select: none;
  pointer-events: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.project-gallery__item--rood-hero {
  aspect-ratio: 2320 / 1476;
  flex: 1 1 100%;
}

.project-gallery__item--rood-skizze {
  aspect-ratio: 3508 / 2480;
  flex: 1 1 100%;
}

.project-gallery__item--entwuerfe {
  aspect-ratio: 7016 / 4960;
  flex: 1 1 100%;
}

.project-gallery__item--labels {
  aspect-ratio: 3233 / 2323;
  flex: 1 1 100%;
}

/* Typography specimens — white field, no crop */
.project-gallery__item.project-gallery__item--specimen {
  background: #fff;
  background-color: #fff;
}

.project-gallery__item--specimen img {
  object-fit: contain;
}

/* Full-width cinematic ~ GAA ~1.81 */
.project-gallery__item--cinema {
  aspect-ratio: 181 / 100;
  flex: 1 1 100%;
}

/* Pair / trio portraits ~ GAA 4:5 */
.project-gallery__item--portrait {
  aspect-ratio: 4 / 5;
}

/* 3-up frames in 3:4 */
.project-gallery__item--portrait-34 {
  aspect-ratio: 3 / 4;
}

.gallery-snap {
  display: contents;
}

.gallery-snap__dots {
  display: none;
}

.project-gallery__item--fit {
  align-self: flex-start;
}

.project-gallery__grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  overflow: hidden;
  container-type: inline-size;
}

.slot-col {
  overflow: hidden;
  height: calc((((100cqw - 24px) / 4) * 4 / 3) * 2 + 8px);
}

.slot-col__track {
  display: flex;
  flex-direction: column;
}

.slot-col__cell {
  overflow: hidden;
  border-radius: var(--ww-radius);
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  flex-shrink: 0;
  margin-bottom: 8px;
  background: var(--ww-placeholder);
}

.slot-col__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
  image-rendering: auto;
}

@keyframes ww-slot-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, -50%, 0);
  }
}

.slot-grid.is-ready .slot-col:nth-child(odd) .slot-col__track {
  animation: ww-slot-marquee 32s linear infinite;
}

.slot-grid.is-ready .slot-col:nth-child(even) .slot-col__track {
  animation: ww-slot-marquee 32s linear infinite reverse;
}

@media (prefers-reduced-motion: reduce) {
  .slot-grid.is-ready .slot-col__track {
    animation: none;
  }
}

@media (max-width: 1199px) {
  .home-feed[data-cols="4"] {
    gap: 20px;
  }

  .home-feed[data-cols="6"] {
    gap: 16px;
  }

  .home-feed[data-cols="8"] {
    gap: 12px;
  }

  .home-feed[data-cols="10"] {
    gap: 10px;
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 28px;
  }

  .info-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .info-stack {
    display: contents;
  }

  .info-copy {
    order: 1;
  }

  .info-portrait-block {
    order: 2;
    max-width: 420px;
  }

  .info-layout .ww-egg,
  .info-stack .ww-egg {
    order: 3;
    align-self: center;
    align-items: center;
    width: min(400px, 100%);
  }

  .ww-egg__trigger {
    align-self: center;
  }

  .info-layout .ww-ttt,
  .info-stack .ww-ttt {
    width: min(400px, 100%);
    margin-left: auto;
    margin-right: auto;
    padding: 18px 20px 20px;
  }

  .ww-ttt__label {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .ww-ttt__board {
    gap: 8px;
  }

  .ww-ttt__cell {
    font-size: 22px;
  }

  .ww-ttt__status,
  .ww-ttt__reset {
    font-size: 13px;
  }

  .ww-ttt__reset {
    padding: 8px 16px;
  }
}

@media (max-width: 809px) {
  .site-nav__link {
    padding: 7px 12px;
  }

  .page-intro {
    margin-bottom: 28px;
  }

  .inquiry__capacity {
    margin-top: 6px;
  }

  .inquiry__form {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .pill-choice,
  .pill-track--four .pill-choice {
    flex-basis: calc((100% - 8px) / 2);
  }

  .grid-dots__btn[data-cols="6"],
  .grid-dots__btn[data-cols="8"] {
    display: none;
  }

  .home-feed[data-cols="2"] {
    gap: 12px;
  }

  .home-feed[data-cols="4"] {
    gap: 10px;
  }

  .home-feed[data-cols="6"] {
    gap: 8px;
  }

  .home-feed[data-cols="8"] {
    gap: 6px;
  }

  .slot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .slot-grid > .slot-col:nth-child(n + 3) {
    display: none;
  }

  .slot-col {
    height: calc((((100cqw - 8px) / 2) * 4 / 3) * 2 + 8px);
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .info-portrait-block {
    max-width: none;
  }

  .project-meta {
    flex-direction: column;
    gap: 20px;
  }

  .info-copy,
  .project-meta__copy {
    padding: 18px 18px 20px;
    border-radius: 14px;
  }

  .site-header__controls {
    opacity: 0.7;
  }

  .work-grid {
    gap: 48px;
  }

  .project-gallery,
  .project-gallery__row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  /* flex-basis: 0 collapses stacked rows — aspect-ratio never gets a height */
  .project-gallery__item {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
  }

  .project-gallery__item.project-gallery__item--type-cycle,
  .home-feed__item.home-feed__item--type-cycle,
  .home-feed__item--type-cycle::before {
    aspect-ratio: 3 / 4;
  }

  .project-gallery__item.project-gallery__item--type-cycle,
  .home-feed__item.home-feed__item--type-cycle {
    overflow: hidden;
  }

  .type-cycle {
    font-size: min(82cqh, 92cqw);
    line-height: 1.08;
    padding: 0.03em 0.05em;
  }

  /* Stacked: 01 is full width → hero matches that height */
  .project-gallery__item--hero {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .project-gallery__item--rood-hero {
    aspect-ratio: 4147 / 5887;
  }

  /* Same 3:4 tile as portrait-34; layout sheet rotated 90° CW inside */
  .project-gallery__item--labels {
    aspect-ratio: 3 / 4;
  }

  .project-gallery__item--labels img {
    inset: auto;
    top: 50%;
    left: 50%;
    width: 133.333%;
    height: 75%;
    transform: translate(-50%, -50%) rotate(90deg);
  }

  .project-gallery__grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-snap {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .gallery-snap__track.project-gallery__row {
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    -webkit-overflow-scrolling: touch;
    position: relative;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .gallery-snap__track::-webkit-scrollbar {
    display: none;
  }

  .gallery-snap__track > .project-gallery__item {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .gallery-snap__dots {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    column-gap: 12px;
    height: 20px;
  }

  .gallery-snap__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ww-control-dot);
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: block;
    flex-shrink: 0;
    position: relative;
    border: 0;
    appearance: none;
    -webkit-appearance: none;
    transition:
      background-color 0.35s cubic-bezier(0.25, 0.1, 0.25, 1),
      transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .gallery-snap__dot::before {
    content: "";
    position: absolute;
    inset: -10px;
  }

  .gallery-snap__dot.is-active {
    background: var(--ww-control-dot-active);
    transform: scale(1.28);
  }
}

/* ——— Footer ——— */

.site-footer {
  margin-top: auto;
  padding-top: 72px;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.site-footer__link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ww-muted);
  line-height: 1.2;
  transition: opacity var(--ww-motion);
}

.site-footer__link:hover {
  opacity: 0.55;
}

/* ——— Legal pages ——— */

.legal {
  max-width: 42em;
}

.legal__label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ww-muted);
  margin: 0 0 48px;
  line-height: 1.2;
}

.legal__block {
  margin: 0 0 32px;
}

.legal__block:last-child {
  margin-bottom: 0;
}

.legal__heading {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ww-muted);
  margin: 0 0 12px;
  line-height: 1.2;
}

.legal__block p {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ww-text);
  line-height: 1.45;
  margin: 0;
}

.legal__block a {
  color: inherit;
}

/* ——— GEO / content pages (services, FAQ, case-study fields) ——— */

h1.page-intro {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  color: inherit;
}

.geo-lede {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.5;
  color: var(--ww-muted);
  margin: -40px 0 48px;
  max-width: 48em;
}

.page-intro.inquiry__lede + .page-intro.inquiry__lede {
  margin-top: 8px;
}

.geo-block {
  width: 100%;
  max-width: 52rem;
  box-sizing: border-box;
  padding: 20px 22px 24px;
  border-radius: 16px;
  background: var(--ww-surface);
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.5;
  color: var(--ww-text);
  margin: 0 0 28px;
}

.geo-block h1,
.geo-block h2,
.geo-block h3 {
  font-size: inherit;
  font-weight: 500;
  letter-spacing: inherit;
  line-height: inherit;
  margin: 0 0 12px;
  color: var(--ww-text);
}

.geo-block h2,
.geo-block h3 {
  color: var(--ww-muted);
  margin-top: 22px;
}

.geo-block h2:first-child,
.geo-block h3:first-child,
.geo-block h1 + h2 {
  margin-top: 0;
}

.geo-block p,
.geo-block ul {
  margin: 0 0 12px;
}

.geo-block p:last-child,
.geo-block ul:last-child {
  margin-bottom: 0;
}

.geo-block ul {
  padding-left: 1.15em;
}

.geo-block a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.geo-block a:hover {
  opacity: 0.55;
}

.geo-faq {
  margin-top: 48px;
}

.geo-faq__item {
  margin: 0 0 18px;
}

.geo-faq__item:last-child {
  margin-bottom: 0;
}

.geo-faq__item h3 {
  margin: 0 0 6px;
  color: var(--ww-text);
}

.geo-noscript {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.5;
  color: var(--ww-muted);
  margin: 24px 0 0;
}

.geo-noscript ul {
  margin: 8px 0 0;
  padding-left: 1.15em;
}

.info-copy h1,
.info-copy h2,
.project-meta__copy h1,
.project-meta__copy h2 {
  font-size: inherit;
  font-weight: 500;
  letter-spacing: inherit;
  line-height: inherit;
  margin: 0 0 1em;
  color: var(--ww-text);
}

.info-copy h2,
.project-meta__copy h2 {
  color: var(--ww-muted);
  margin-top: 1.25em;
}

.info-copy p {
  margin: 0 0 1em;
}

.info-copy p:last-child {
  margin-bottom: 0;
}

.info-copy__links {
  margin-top: 1em;
}

.case-meta {
  list-style: none;
  margin: 0 0 1em;
  padding: 0;
}

.case-meta li {
  margin: 0 0 4px;
}

.case-meta strong {
  font-weight: 500;
  color: var(--ww-muted);
}
