:root {
  --neox-primary: #625187;
  --neox-accent: #aa8e69;
  --neox-ink: #252326;
  --neox-muted: #625f63;
  --neox-sand: #dedede;
  --neox-line: rgba(23, 32, 30, 0.15);
  --neox-white: #fff;
  --neox-shell: min(1180px, calc(100vw - 48px));
  --neox-narrow: min(760px, calc(100vw - 48px));
  --neox-header-height: 82px;
  --neox-transition: 260ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--neox-header-height);
}

body {
  margin: 0;
  color: var(--neox-ink);
  background: var(--neox-white);
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.has-open-menu {
  overflow: hidden;
}

body.home {
  --neox-home-content-gutter: clamp(28px, 6vw, 96px);
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  color: inherit;
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.7rem, 7vw, 6.6rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

p {
  margin-top: 0;
}

.screen-reader-text,
.skip-link:not(:focus) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link:focus {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--neox-white);
  background: var(--neox-primary);
}

.shell {
  width: var(--neox-shell);
  margin-inline: auto;
}

.shell--narrow {
  width: var(--neox-narrow);
}

.section {
  padding-block: clamp(76px, 10vw, 144px);
}

.section--sand {
  background: var(--neox-sand);
}

.eyebrow,
.neox-eyebrow {
  margin-bottom: 18px;
  color: var(--neox-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.75);
}

.button,
.wp-element-button,
.wp-block-button__link {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 12px 22px;
  border: 1px solid var(--neox-primary);
  border-radius: 0;
  color: var(--neox-white);
  background: var(--neox-primary);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-decoration: none;
  transition: color var(--neox-transition), background var(--neox-transition), border-color var(--neox-transition);
}

.button:hover,
.button:focus-visible,
.wp-element-button:hover,
.wp-element-button:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
  color: var(--neox-white);
  background: var(--neox-accent);
  border-color: var(--neox-accent);
}

.button--light {
  color: var(--neox-ink);
  background: var(--neox-white);
  border-color: var(--neox-white);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  color: var(--neox-primary);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.site-header {
  position: absolute;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  color: var(--neox-white);
  transition: color var(--neox-transition), background var(--neox-transition), box-shadow var(--neox-transition);
}

.site-header.is-scrolled,
body:not(.home) .site-header {
  position: fixed;
  color: var(--neox-ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 var(--neox-line);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  display: flex;
  width: min(1380px, calc(100vw - 48px));
  min-height: var(--neox-header-height);
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-inline: auto;
}

.site-brand {
  display: inline-flex;
  flex-shrink: 0;
  min-width: 0;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.site-brand__logo {
  width: auto;
  height: auto;
  max-width: 190px;
  max-height: 48px;
  object-fit: contain;
}

.site-brand__wordmark,
.site-footer__brand {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.site-nav__list,
.site-nav .sub-menu {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 44px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-nav a {
  position: relative;
  display: block;
  padding-block: 28px;
  color: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--neox-transition);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav .current-menu-item > a::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
}

.site-nav-toggle > span:not(.screen-reader-text) {
  display: block;
  width: 24px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
  transition: transform var(--neox-transition);
}

.site-nav-toggle[aria-expanded="true"] > span:nth-of-type(2) {
  transform: translateY(3.5px) rotate(45deg);
}

.site-nav-toggle[aria-expanded="true"] > span:nth-of-type(3) {
  transform: translateY(-3.5px) rotate(-45deg);
}

.home-hero,
.project-hero {
  position: relative;
  display: grid;
  min-height: max(700px, 100svh);
  align-items: end;
  overflow: hidden;
  color: var(--neox-white);
  background: var(--neox-primary);
}

.home-hero__media,
.project-hero__media,
.home-hero__placeholder,
.project-hero__placeholder,
.home-hero__overlay,
.project-hero__overlay {
  position: absolute;
  inset: 0;
}

.home-hero__media img,
.project-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero__placeholder,
.project-hero__placeholder {
  background:
    linear-gradient(120deg, rgba(183, 134, 75, 0.22), transparent 44%),
    radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.13), transparent 0 22%, transparent 23%),
    var(--neox-primary);
}

.home-hero__placeholder::after,
.project-hero__placeholder::after {
  position: absolute;
  top: 10%;
  right: 11%;
  width: min(48vw, 680px);
  height: 78%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  content: "";
  transform: skewX(-8deg);
}

.home-hero__overlay,
.project-hero__overlay {
  background: linear-gradient(90deg, rgba(10, 22, 19, 0.79) 0%, rgba(10, 22, 19, 0.42) 54%, rgba(10, 22, 19, 0.18) 100%);
}

.home-hero__content,
.project-hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(92px, 13vh, 150px);
}

.home-hero__content h1,
.project-hero__content h1 {
  max-width: 880px;
  margin-bottom: 24px;
  color: var(--neox-white);
}

.home-hero__lead,
.project-hero__content > p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

.home-hero__scroll {
  position: absolute;
  z-index: 2;
  right: max(24px, calc((100vw - min(1380px, calc(100vw - 48px))) / 2));
  bottom: 50px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
}

.home-hero__scroll span {
  display: block;
  width: 1px;
  height: 54px;
  background: rgba(255, 255, 255, 0.5);
}

.home .site-brand {
  width: min(74px, calc(var(--neox-header-height) - 8px));
  height: min(74px, calc(var(--neox-header-height) - 8px));
  justify-content: center;
  padding: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 28px rgba(25, 20, 18, 0.08);
}

.home .site-brand__logo {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
}

.home-hero {
  align-items: center;
  background: #383133;
}

.home-hero__media img {
  object-position: center center;
}

.home-hero__overlay {
  background:
    linear-gradient(90deg, rgba(31, 25, 22, 0.2), rgba(31, 25, 22, 0.08) 42%, rgba(31, 25, 22, 0.38)),
    linear-gradient(0deg, rgba(22, 18, 17, 0.34), transparent 56%);
}

.home-hero__content {
  display: flex;
  max-width: 760px;
  min-height: 100svh;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--neox-header-height) + 46px);
  padding-bottom: 54px;
  text-align: center;
}

.home-hero__logo {
  display: flex;
  flex-shrink: 0;
  width: 108px;
  height: 108px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 50px rgba(25, 18, 14, 0.16);
}

.home-hero__logo img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.home-hero__content h1 {
  max-width: none;
  margin-bottom: 38px;
  font-family: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  font-size: clamp(2.2rem, 4.3vw, 4.15rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.18);
}

.home-hero__lead {
  max-width: none;
  margin-bottom: 34px;
  color: var(--neox-white);
  font-size: clamp(1.1rem, 1.8vw, 1.55rem);
  letter-spacing: 0.04em;
  line-height: 1.85;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.24);
}

.home-hero__projects {
  width: min(620px, 100%);
}

.home-hero__projects--many {
  width: min(720px, 100%);
}

.home-hero__project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.home-hero__project-grid--single {
  grid-template-columns: minmax(0, 300px);
  justify-content: center;
}

.home-hero__project-grid--many {
  gap: 12px 18px;
}

.home-hero__project-grid--many .home-project-link {
  min-height: 76px;
  padding-block: 12px;
}

.home-project-link {
  position: relative;
  display: grid;
  min-height: 92px;
  place-items: center;
  align-content: center;
  padding: 15px 46px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  color: var(--neox-white);
  background: rgba(26, 22, 20, 0.08);
  text-decoration: none;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(2px);
  transition: color var(--neox-transition), background var(--neox-transition), border-color var(--neox-transition);
}

.home-project-link span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.home-project-link strong {
  font-family: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.35;
}

.home-project-link i {
  position: absolute;
  right: 16px;
  bottom: 12px;
  font-style: normal;
  opacity: 0;
  transform: translate(-5px, 5px);
  transition: opacity var(--neox-transition), transform var(--neox-transition);
}

.home-project-link:hover,
.home-project-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.9);
  color: var(--neox-ink);
  background: rgba(255, 255, 255, 0.9);
  text-shadow: none;
}

.home-project-link:hover i,
.home-project-link:focus-visible i {
  opacity: 1;
  transform: translate(0, 0);
}

.home-project-link--empty {
  width: min(300px, 100%);
  margin-inline: auto;
}

.home-hero__project-status {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.home-hero__scroll {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
}

.home-hero__scroll b {
  font-weight: 500;
}

.home-philosophy {
  overflow: hidden;
  background: #d9d9d9;
}

.home-philosophy__list,
.home .home-contact__grid,
.home .site-footer__inner {
  width: min(1180px, calc(100% - var(--neox-home-content-gutter) - var(--neox-home-content-gutter)));
  margin-inline: auto;
}

.philosophy-item {
  display: grid;
  min-height: min(820px, 82svh);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(40px, 5vw, 88px);
  padding-block: clamp(84px, 10vw, 150px);
  border-top: 1px solid rgba(37, 35, 38, 0.11);
}

.philosophy-item:first-child {
  border-top: 0;
}

.philosophy-item:nth-child(even) .philosophy-item__media {
  order: 2;
}

.philosophy-item__media {
  min-width: 0;
}

.philosophy-item__media img,
.philosophy-item__placeholder {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.philosophy-item__placeholder {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.72);
  background: var(--neox-primary);
}

.philosophy-item__content {
  min-width: 0;
  max-width: 520px;
}

.philosophy-item__issue {
  margin-bottom: 16px;
  font-family: Didot, "Times New Roman", serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.philosophy-item__content h2 {
  margin-bottom: 18px;
  font-family: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  font-size: clamp(2.25rem, 4vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.06em;
}

.philosophy-item__headline {
  margin-bottom: 30px;
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  letter-spacing: 0.02em;
  line-height: 1.7;
}

.philosophy-item__text {
  color: #3f3c40;
  font-size: clamp(0.98rem, 1.15vw, 1.12rem);
  line-height: 2;
}

.philosophy-item__text p {
  margin-bottom: 0;
  white-space: pre-line;
}

.home-about__grid,
.home-contact__grid,
.project-form__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(48px, 9vw, 130px);
}

.home-about__copy h2 {
  margin-bottom: 30px;
}

.prose {
  max-width: 590px;
  margin-bottom: 34px;
  color: var(--neox-muted);
}

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

.home-about__media {
  position: relative;
}

.home-about__media::before {
  position: absolute;
  z-index: -1;
  top: -26px;
  right: -26px;
  width: 48%;
  height: 48%;
  border-top: 1px solid var(--neox-accent);
  border-right: 1px solid var(--neox-accent);
  content: "";
}

.home-about__media img,
.home-about__placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.home-about__placeholder {
  display: grid;
  place-items: center;
  padding: 30px;
  color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(145deg, var(--neox-primary), #2f544c);
  text-align: center;
}

.section-heading {
  margin-bottom: clamp(42px, 6vw, 76px);
}

.section-heading h1,
.section-heading h2 {
  margin-bottom: 0;
}

.section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: 48px;
}

.section-heading--split > p {
  max-width: 480px;
  margin-bottom: 8px;
  color: var(--neox-muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 70px) clamp(24px, 4vw, 54px);
}

.project-card {
  min-width: 0;
}

.project-card:nth-child(even) {
  margin-top: clamp(0px, 5vw, 72px);
}

.project-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-card__media {
  position: relative;
  aspect-ratio: 1.36 / 1;
  overflow: hidden;
  background: #d8d4ca;
}

.project-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.project-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: rgba(255, 255, 255, 0.62);
  background:
    linear-gradient(135deg, transparent 49.8%, rgba(255, 255, 255, 0.14) 50%, transparent 50.2%),
    var(--neox-primary);
}

.project-card__placeholder span {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
}

.project-card__action {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--neox-white);
  background: var(--neox-accent);
  font-size: 1.25rem;
  transition: color var(--neox-transition), background var(--neox-transition);
}

.project-card__body {
  padding-top: 22px;
}

.project-card__body h3 {
  margin-bottom: 8px;
}

.project-card__body p {
  margin-bottom: 12px;
  color: var(--neox-muted);
}

.project-card__type {
  color: var(--neox-accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.project-card__link:hover .project-card__image,
.project-card__link:focus-visible .project-card__image {
  transform: scale(1.045);
}

.project-card__link:hover .project-card__action,
.project-card__link:focus-visible .project-card__action {
  color: var(--neox-white);
  background: var(--neox-primary);
}

.empty-projects {
  display: grid;
  min-height: 320px;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 40px;
  border: 1px solid var(--neox-line);
  text-align: center;
}

.empty-projects > span {
  color: var(--neox-accent);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
}

.empty-projects p {
  margin-bottom: 0;
}

.home-contact,
.project-form {
  color: var(--neox-white);
  background: var(--neox-primary);
}

.home-contact h2,
.project-form h2 {
  color: var(--neox-white);
}

.home-contact__lead,
.project-form header > p:not(.eyebrow) {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.72);
}

.contact-list {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-list > a,
.contact-list > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding-block: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--neox-white);
  text-decoration: none;
}

.contact-list span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-list strong {
  font-weight: 500;
  overflow-wrap: anywhere;
}

.contact-list a:hover strong,
.contact-list a:focus-visible strong {
  color: #e4c595;
}

.site-footer {
  color: rgba(255, 255, 255, 0.68);
  background: #0f211d;
}

.site-footer__inner {
  display: grid;
  width: var(--neox-shell);
  min-height: 220px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px 60px;
  margin-inline: auto;
  padding-block: 48px;
}

.site-footer__brand {
  color: var(--neox-white);
}

.site-footer__inner p {
  margin: 8px 0 0;
}

.site-footer__nav ul {
  display: flex;
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer__nav a {
  color: inherit;
  font-size: 0.82rem;
  text-decoration: none;
}

.site-footer__copyright {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
}

.project-hero {
  min-height: min(860px, 88svh);
}

.project-hero__content h1 {
  font-size: clamp(3.2rem, 8vw, 7.6rem);
}

.project-content {
  overflow: hidden;
}

.project-content > *:not(.alignfull):not(.alignwide) {
  width: var(--neox-narrow);
  margin-right: auto;
  margin-left: auto;
}

.project-content > .alignwide {
  width: var(--neox-shell);
  max-width: none;
  margin-right: auto;
  margin-left: auto;
}

.project-content > .alignfull {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.project-content > :first-child {
  margin-top: 0;
}

.project-content > :last-child {
  margin-bottom: 0;
}

.project-content .neox-section,
.editor-styles-wrapper .neox-section {
  padding: clamp(70px, 9vw, 132px) max(24px, calc((100vw - 1180px) / 2));
}

.project-content .neox-section--light,
.project-content .is-style-neox-light-section,
.editor-styles-wrapper .is-style-neox-light-section {
  background: var(--neox-sand);
}

.project-content .is-style-neox-dark-section,
.editor-styles-wrapper .is-style-neox-dark-section {
  color: var(--neox-white);
  background: var(--neox-primary);
}

.project-content .is-style-neox-accent-section,
.editor-styles-wrapper .is-style-neox-accent-section {
  color: var(--neox-white);
  background: var(--neox-accent);
}

.project-content .is-style-neox-dark-section h1,
.project-content .is-style-neox-dark-section h2,
.project-content .is-style-neox-dark-section h3,
.project-content .is-style-neox-accent-section h1,
.project-content .is-style-neox-accent-section h2,
.project-content .is-style-neox-accent-section h3 {
  color: var(--neox-white);
}

.project-content .neox-module--media-text {
  gap: clamp(34px, 7vw, 96px);
  padding-block: clamp(70px, 9vw, 132px);
}

.project-content .wp-block-media-text__content {
  padding: clamp(24px, 5vw, 68px);
}

.project-content .wp-block-media-text__media img {
  min-height: 520px;
  object-fit: cover;
}

.project-content .is-style-neox-wide-image img {
  width: 100%;
  max-height: 82svh;
  object-fit: cover;
}

.project-content .wp-block-gallery {
  gap: clamp(8px, 1.5vw, 20px) !important;
}

.project-content .wp-block-gallery img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-content .wp-block-embed__wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
}

.project-content .wp-block-embed__wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.project-form__grid {
  align-items: start;
}

.project-form__embed {
  padding: clamp(24px, 4vw, 48px);
  color: var(--neox-ink);
  background: var(--neox-white);
}

.project-form__embed .ff-el-form-control {
  min-height: 48px;
  border-radius: 0 !important;
}

.project-form__embed .ff-btn-submit {
  min-height: 50px;
  padding: 12px 24px !important;
  border-radius: 0 !important;
  background: var(--neox-primary) !important;
}

.neox-form-notice {
  padding: 16px;
  border-left: 4px solid #dba617;
  background: #fff8dd;
}

.related-projects .project-card:nth-child(even) {
  margin-top: 0;
}

.related-projects .project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.archive-projects,
.default-content,
.error-page {
  min-height: 75svh;
  padding-top: calc(var(--neox-header-height) + clamp(70px, 8vw, 110px));
}

.entry__content > * {
  max-width: 100%;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 64px;
}

.page-numbers {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--neox-line);
  text-decoration: none;
}

.page-numbers.current {
  color: var(--neox-white);
  background: var(--neox-primary);
}

@media (max-width: 900px) {
  :root {
    --neox-header-height: 72px;
  }

  .site-header__inner {
    width: calc(100vw - 32px);
  }

  .site-nav-toggle {
    position: relative;
    z-index: 2;
    display: block;
  }

  .site-nav {
    position: fixed;
    z-index: 1;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 90px 24px 40px;
    color: var(--neox-white);
    background: var(--neox-primary);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-16px);
    transition: opacity var(--neox-transition), transform var(--neox-transition);
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-header:has(.site-nav.is-open) {
    color: var(--neox-white);
  }

  .site-nav__list,
  .site-nav .sub-menu {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .site-nav a {
    padding: 10px;
    font-size: clamp(1.35rem, 5vw, 2rem);
    font-weight: 500;
  }

  .site-nav a::after {
    bottom: 5px;
  }

  .home-about__grid,
  .home-contact__grid,
  .project-form__grid {
    grid-template-columns: 1fr;
  }

  .home-philosophy__list {
    max-width: 760px;
  }

  .philosophy-item {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 42px;
    padding-block: 88px;
  }

  .philosophy-item:nth-child(even) .philosophy-item__media {
    order: 0;
  }

  .philosophy-item__content {
    max-width: 650px;
  }

  .home-about__media {
    width: min(82%, 560px);
    margin-left: auto;
  }

  .related-projects .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  :root {
    --neox-shell: calc(100vw - 36px);
    --neox-narrow: calc(100vw - 36px);
  }

  .section {
    padding-block: 72px;
  }

  .home-hero,
  .project-hero {
    min-height: 760px;
  }

  .home .site-brand {
    width: 62px;
    height: 62px;
  }

  .home-hero {
    min-height: 860px;
  }

  .home-hero__overlay,
  .project-hero__overlay {
    background: linear-gradient(0deg, rgba(10, 22, 19, 0.86) 0%, rgba(10, 22, 19, 0.36) 72%, rgba(10, 22, 19, 0.3) 100%);
  }

  .home-hero__content,
  .project-hero__content {
    padding-bottom: 90px;
  }

  .home-hero__content {
    justify-content: center;
    padding-top: 118px;
    padding-bottom: 46px;
  }

  .home-hero__logo {
    width: 90px;
    height: 90px;
    margin-bottom: 10px;
  }

  .home-hero__content h1,
  .project-hero__content h1 {
    margin-bottom: 18px;
    font-size: clamp(2.75rem, 14vw, 4.6rem);
  }

  .home-hero__content h1 {
    margin-bottom: 24px;
    font-size: clamp(2.3rem, 11vw, 3.4rem);
  }

  .home-hero__lead {
    margin-bottom: 28px;
    font-size: 1.05rem;
  }

  .home-hero__projects {
    width: min(360px, 100%);
  }

  .home-hero__project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .home-hero__project-grid--single {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-project-link {
    min-width: 0;
    min-height: 76px;
    padding: 12px 14px;
    overflow-wrap: anywhere;
  }

  .home-hero__project-grid--many {
    gap: 8px;
  }

  .home-hero__project-grid--many .home-project-link {
    min-height: 68px;
    padding: 10px 12px;
  }

  .home-hero__scroll {
    display: none;
  }

  .home-about__media {
    width: calc(100% - 18px);
    margin-top: 14px;
  }

  .home-about__media::before {
    top: -18px;
    right: -18px;
  }

  .philosophy-item {
    gap: 34px;
    padding-block: 68px;
  }

  .philosophy-item__content h2 {
    font-size: 2.35rem;
  }

  .philosophy-item__headline {
    margin-bottom: 24px;
    font-size: 1.22rem;
  }

  .philosophy-item__text {
    font-size: 0.94rem;
  }

  .section-heading--split {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-grid,
  .related-projects .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card:nth-child(even) {
    margin-top: 0;
  }

  .project-content .neox-section,
  .editor-styles-wrapper .neox-section {
    padding: 68px 18px;
  }

  .project-content .wp-block-media-text.is-stacked-on-mobile {
    grid-template-columns: 100% !important;
  }

  .project-content .wp-block-media-text__media img {
    min-height: 340px;
  }

  .project-content .wp-block-media-text__content {
    padding: 34px 0 0;
  }

  .contact-list > a,
  .contact-list > div {
    grid-template-columns: 68px 1fr;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .site-footer__nav ul {
    flex-wrap: wrap;
  }

  .site-footer__copyright {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
