/*
Theme Name: Iron Lantern Studio
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cracoviensis-studio
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts a margin-block-start equal to the block gap (24px unless
   theme.json sets styles.spacing.blockGap) between the template's top-level
   sections (header part, main, footer part) — a gap that exists even when no
   markup asks for it. Zero it so sections butt edge-to-edge and own their
   vertical rhythm via padding; this does not affect block gaps inside nested
   layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* With that gap gone, main carries its own vertical padding so templates this
   theme does not author (WooCommerce shop, product, cart…) still clear the
   header and footer. A descendant selector, not a child one: WooCommerce wraps
   the single-product main in an extra group. Templates built from full-bleed
   sections opt out with is-flush and let the sections own the rhythm. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}

/* FIGMA MAKE STYLES */
:root {
  --ink: #101010;
  --bone: #eeeae1;
  --paper: #f5f2eb;
  --accent: var(--wp--preset--color--primary);
  --line: rgba(16, 16, 16, 0.2);
}


html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: "Space Grotesk", sans-serif; }
a, button { color: inherit; }
button { cursor: pointer; }
::selection { background: var(--accent); color: white; }
* {
  border-radius: 0;
}
.site-shell {
  overflow: clip;
}
.section {
  padding: 9rem clamp(1.25rem, 4.5vw, 5rem);
}
.display-heading {
  font:
    400 clamp(4rem, 10vw, 10rem)/0.82 "Archivo Black",
    sans-serif;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}
.display-heading em,
.contact-section h2 em,
.hero-bottom h2 em {
  color: var(--accent);
  font-style: normal;
}
.display-heading.light {
  color: var(--bone);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow > span {
  width: 2.25rem;
  height: 1px;
  background: currentColor;
}
.eyebrow.light {
  color: var(--bone);
}
.arrow {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: transform 0.3s ease;
}
.arrow.diagonal {
  transform: rotate(-45deg);
}
.text-link {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.text-link:hover .arrow {
  transform: translateX(0.35rem);
}
.text-link:hover .arrow.diagonal {
  transform: rotate(-45deg) translate(0.3rem);
}
.text-link.light {
  color: var(--bone);
}

.header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  height: 6.5rem;
  padding: 0 clamp(1.25rem, 4.5vw, 5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  transition:
    height 0.35s,
    background 0.35s;
}
.header-solid {
  height: 5rem;
  background: rgba(16, 16, 16, 0.96);
  backdrop-filter: blur(14px);
}
.wordmark {
  position: relative;
  z-index: 52;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font:
    400 0.67rem/1.05 "Archivo Black",
    sans-serif;
  letter-spacing: -0.02em;
}
.wordmark-mark {
  position: relative;
  flex: 0 0 2.6rem;
  width: 2.6rem;
  height: 3.25rem;
  overflow: hidden;
  margin: 0;
}
.wordmark-mark a {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}
.wordmark-mark img {
  display: block;
  position: absolute;
  top: 0;
  left: 50%;
  width: auto;
  max-width: none;
  height: 100%;
  transform: translateX(-50%);
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 2.5vw, 3.25rem);
  font-size: 0.72rem;
  font-weight: 500;
}
.desktop-nav a {
  position: relative;
  padding: 0.75rem 0;
}
.desktop-nav a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.4rem;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s;
}
.desktop-nav a:hover:after {
  transform: scaleX(1);
  transform-origin: left;
}
.menu-button,
.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  color: white;
  background: #111;
  isolation: isolate;
}
.hero-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(7, 7, 7, 0.82) 0%,
      rgba(7, 7, 7, 0.28) 55%,
      rgba(7, 7, 7, 0.54) 100%
    ),
    linear-gradient(0deg, rgba(7, 7, 7, 0.85), transparent 48%);
}
.hero-grid {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.22;
  background-image: linear-gradient(
    to right,
    transparent calc(100% - 1px),
    rgba(255, 255, 255, 0.25) 1px
  );
  background-size: 25% 100%;
}
.hero-content {
  min-height: 100svh;
  padding: 8.7rem clamp(1.25rem, 4.5vw, 5rem) 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero h1 {
  margin-top: 6vh;
  font:
    400 clamp(4.2rem, 12.9vw, 12.8rem)/0.74 "Archivo Black",
    sans-serif;
  letter-spacing: -0.09em;
  text-transform: uppercase;
}
.hero h1 span {
  display: block;
}
.hero h1 span:last-child {
  margin-left: 27%;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.9);
}
.hero-bottom {
  display: grid;
  grid-template-columns: 1fr minmax(17rem, 30rem);
  align-items: end;
  gap: 4rem;
  margin-top: 6rem;
}
.hero-bottom h2 {
  font:
    400 clamp(1.65rem, 2.7vw, 3.2rem)/0.95 "Archivo Black",
    sans-serif;
  letter-spacing: -0.055em;
}
.hero-copy {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.hero-copy p {
  max-width: 29rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.88rem, 1vw, 1rem);
  line-height: 1.6;
}
.scroll-cue {
  position: absolute;
  right: 1.1rem;
  bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  writing-mode: vertical-rl;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
}
.scroll-cue i {
  height: 3.5rem;
  width: 1px;
  background: rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
}
.scroll-cue i:after {
  content: "";
  position: absolute;
  width: 1px;
  height: 50%;
  background: white;
  left: 0;
  animation: scroll-line 2s infinite;
}

.games-section {
  background: var(--paper);
}
.section-intro {
  display: grid;
  grid-template-columns: 1fr 3fr auto;
  align-items: end;
  margin-bottom: 6rem;
}
.section-count {
  align-self: start;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
}
.section-count span {
  opacity: 0.35;
  padding: 0 0.6rem;
}
.game-feature {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}
.game-art {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin: 0;
}
.game-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.game-sun {
  position: absolute;
  width: 23%;
  aspect-ratio: 1;
  border-radius: 50% !important;
  background: #f6572f;
  left: 59%;
  top: 16%;
  box-shadow: 0 0 90px rgba(246, 87, 47, 0.3);
}
.game-mountains {
  position: absolute;
  width: 100%;
  height: 55%;
  bottom: 13%;
  background: #233773;
  clip-path: polygon(
    0 65%,
    9% 43%,
    18% 64%,
    29% 18%,
    42% 63%,
    55% 38%,
    66% 65%,
    78% 22%,
    89% 51%,
    100% 28%,
    100% 100%,
    0 100%
  );
}
.game-mountains.front {
  background: #151b38;
  bottom: 4%;
  scale: 1.1;
  transform-origin: bottom;
  clip-path: polygon(
    0 52%,
    13% 31%,
    22% 54%,
    36% 15%,
    48% 64%,
    62% 30%,
    75% 71%,
    88% 34%,
    100% 53%,
    100% 100%,
    0 100%
  );
}
.game-ground {
  position: absolute;
  inset: auto 0 0;
  height: 23%;
  background: #111529;
}
.placeholder-label {
  position: absolute;
  z-index: 2;
  left: 1rem;
  bottom: 1rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
}
.game-info {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 6rem;
  padding-top: 2.2rem;
}
.item-index,
.genre {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.game-info h3 {
  margin-top: 1.25rem;
  font:
    400 clamp(2.8rem, 5.4vw, 6.5rem)/0.88 "Archivo Black",
    sans-serif;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}
.game-details {
  padding-top: 1.7rem;
}
.game-details > p:nth-child(2) {
  max-width: 31rem;
  margin: 2rem 0 2.5rem;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.55;
}

.about-section {
  background: var(--ink);
  color: var(--bone);
}
.about-lead {
  display: grid;
  grid-template-columns: 0.75fr 2fr;
  gap: 5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.location-stamp {
  margin-top: 15rem;
  font-size: 0.65rem;
  line-height: 1.6;
  letter-spacing: 0.12em;
}
.about-copy {
  max-width: 41rem;
  margin: 4rem 0 0 auto;
  font-size: clamp(1.15rem, 2vw, 1.75rem);
  line-height: 1.45;
}
.team-wrap {
  padding-top: 7rem;
}
.team-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 4rem;
}
.team-heading h3 {
  font:
    400 clamp(2.4rem, 5vw, 5rem)/0.9 "Archivo Black",
    sans-serif;
  letter-spacing: -0.05em;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.team-member:nth-child(2) {
  margin-top: 6rem;
}
.portrait-placeholder {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #262626;
}
.member-2 .portrait-placeholder {
  background: #183a3d;
}
.member-3 .portrait-placeholder {
  background: #29233e;
}
.portrait-placeholder:before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 28%);
}
.team-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}
.team-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portrait-number {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  opacity: 0.6;
}
.member-meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin-top: 1.3rem;
}
.member-meta h4 {
  font:
    400 clamp(1.2rem, 1.7vw, 1.65rem)/1 "Archivo Black",
    sans-serif;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.member-meta p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
}

.philosophy-section {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 10vw;
  background: var(--bone);
}
.philosophy-title {
  position: sticky;
  top: 8rem;
  align-self: start;
}
.philosophy-title h2 {
  margin-top: 3rem;
  font-size: clamp(3.4rem, 6.5vw, 7.5rem);
}
.principles {
  border-top: 1px solid var(--ink);
}
.principle {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}
.principle > span {
  font-size: 0.65rem;
  opacity: 0.55;
}
.principle h3 {
  font:
    400 clamp(1.45rem, 2.4vw, 2.5rem)/1 "Archivo Black",
    sans-serif;
  letter-spacing: -0.045em;
}
.principle p {
  grid-column: 2;
  max-width: 26rem;
  margin-top: 0.4rem;
  line-height: 1.55;
  opacity: 0.7;
}

.news-section {
  background: var(--paper);
}
.news-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 5rem;
}
.news-heading h2 {
  margin-top: 2.5rem;
}
.news-heading > p {
  margin-bottom: 0.8rem;
  line-height: 1.5;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.4rem;
}
.news-item {
  grid-column: span 4;
}
.news-item:nth-child(2) {
  margin-top: 7rem;
}
.news-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--accent);
}
.news-image:after {
  content: "";
  position: absolute;
  width: 60%;
  height: 160%;
  top: -30%;
  left: 20%;
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(25deg);
}
.news-image.tone-warm {
  background: #b9ac92;
}
.news-image.tone-dark {
  background: #202020;
}
.news-number {
  position: absolute;
  z-index: 2;
  top: 1.2rem;
  left: 1.2rem;
  color: white;
  font: 400 clamp(3rem, 6vw, 6rem)/1 "Archivo Black";
  opacity: 0.4;
}
.news-date {
  margin-top: 1.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  opacity: 0.55;
}
.news-item h3 {
  max-width: 24rem;
  margin-top: 1.1rem;
  font:
    400 clamp(1.25rem, 2vw, 2rem)/1.05 "Archivo Black",
    sans-serif;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.read-more {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  width: fit-content;
  margin-top: 1.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
}

.contact-section {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: white;
}
.contact-inner {
  position: relative;
  z-index: 1;
}
.contact-section h2 {
  margin: 6rem 0 7rem;
  font:
    400 clamp(4.2rem, 11vw, 11rem)/0.8 "Archivo Black",
    sans-serif;
  letter-spacing: -0.08em;
}
.contact-section h2 em {
  color: var(--ink);
}
.contact-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 4rem;
}
.contact-bottom > p {
  max-width: 34rem;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.45;
}
.contact-button {
  justify-self: end;
  width: min(100%, 24rem);
  min-height: 7rem;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.7);
  font: 400 1.1rem "Archivo Black";
  text-transform: uppercase;
  transition:
    color 0.3s,
    background 0.3s;
}
.contact-button:hover {
  color: var(--ink);
  background: white;
}
.contact-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 5rem;
  margin-top: 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}
.contact-orbit {
  position: absolute;
  width: 55vw;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50% !important;
  right: -18vw;
  top: -25vw;
}
.contact-orbit span {
  position: absolute;
  inset: 15%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50% !important;
}
.contact-orbit span:last-child {
  inset: 32%;
}

footer {
  background: var(--ink);
  color: var(--bone);
  padding: 5rem clamp(1.25rem, 4.5vw, 5rem) 2rem;
}
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  min-height: 17rem;
}
.footer-main nav,
.footer-social {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 1rem;
  font-size: 0.82rem;
}
.footer-main nav a:hover,
.footer-social a:hover {
  color: var(--accent);
}
.footer-social p {
  margin-bottom: 0.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  opacity: 0.55;
}
.footer-social a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-social .arrow {
  width: 0.8rem;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

@keyframes hero-in {
  from {
    opacity: 0;
    scale: 1.12;
  }
  to {
    opacity: 1;
    scale: 1.04;
  }
}
@keyframes scroll-line {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(200%);
  }
}

@media (max-width: 900px) {
  .section {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
  .desktop-nav {
    display: none;
  }
  .menu-button {
    position: relative;
    z-index: 52;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.45rem;
  }
  .menu-button span {
    width: 100%;
    height: 1px;
    background: currentColor;
    transition: transform 0.3s;
  }
  .menu-button.active span:first-child {
    transform: translateY(0.25rem) rotate(45deg);
  }
  .menu-button.active span:last-child {
    transform: translateY(-0.25rem) rotate(-45deg);
  }
  .mobile-menu {
    position: fixed;
    z-index: 51;
    inset: 0;
    padding: 8rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--bone);
    background: var(--ink);
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.18, 1);
  }
  .mobile-menu.open {
    transform: translateY(0);
  }
  .mobile-menu nav {
    display: flex;
    flex-direction: column;
  }
  .mobile-menu nav a {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font: 400 clamp(2.2rem, 9vw, 4rem)/1 "Archivo Black";
    text-transform: uppercase;
  }
  .mobile-menu nav span {
    font: 400 0.6rem "Space Grotesk";
    opacity: 0.5;
  }
  .mobile-menu > p {
    font-size: 0.6rem;
    line-height: 1.5;
    letter-spacing: 0.12em;
  }
  .hero h1 span:last-child {
    margin-left: 12%;
  }
  .hero-bottom {
    grid-template-columns: 1fr 1fr;
  }
  .section-intro {
    grid-template-columns: 1fr 2fr;
  }
  .section-count {
    display: none;
  }
  .game-info {
    gap: 2rem;
  }
  .about-lead {
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
  }
  .philosophy-section {
    grid-template-columns: 1fr;
    gap: 5rem;
  }
  .philosophy-title {
    position: static;
  }
  .news-item {
    grid-column: span 6;
  }
  .news-item:last-child {
    grid-column: 7 / span 6;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 5.5rem 1.25rem;
  }
  .header {
    height: 5rem;
    padding: 0 1.25rem;
  }
  .hero-grid {
    background-size: 50% 100%;
  }
  .hero-content {
    padding: 7rem 1.25rem 3.5rem;
  }
  .hero .eyebrow {
    max-width: 16rem;
    line-height: 1.5;
  }
  .hero h1 {
    margin-top: 10vh;
    font-size: clamp(3.15rem, 15.2vw, 5rem);
    line-height: 0.8;
  }
  .hero h1 span:last-child {
    margin: 0.35rem 0 0;
  }
  .hero-bottom {
    display: block;
    margin-top: auto;
  }
  .hero-bottom h2 {
    margin-bottom: 1.5rem;
    font-size: 1.65rem;
  }
  .hero-copy {
    gap: 1.5rem;
  }
  .hero-copy p {
    font-size: 0.84rem;
  }
  .scroll-cue {
    display: none;
  }
  .display-heading {
    font-size: clamp(3.4rem, 18vw, 5.5rem);
  }
  .section-intro {
    display: block;
    margin-bottom: 3.5rem;
  }
  .section-intro .display-heading {
    margin-top: 2.5rem;
  }
  .game-art {
    aspect-ratio: 4/3;
  }
  .game-info {
    display: block;
  }
  .game-details {
    padding-top: 2.5rem;
  }
  .about-lead {
    display: block;
  }
  .location-stamp {
    margin-top: 3rem;
  }
  .about-lead .display-heading {
    margin-top: 5rem;
  }
  .about-copy {
    margin-top: 2.5rem;
  }
  .team-heading {
    display: block;
  }
  .team-heading h3 {
    margin-top: 2.5rem;
  }
  .team-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .team-member:nth-child(2) {
    margin-top: 0;
  }
  .portrait-placeholder {
    aspect-ratio: 4/5;
  }
  .principle {
    grid-template-columns: 2.3rem 1fr;
  }
  .news-heading {
    display: block;
  }
  .news-heading > p {
    margin-top: 2rem;
  }
  .news-grid {
    display: block;
  }
  .news-item,
  .news-item:nth-child(2),
  .news-item:last-child {
    margin: 0 0 4rem;
  }
  .contact-section h2 {
    margin: 4rem 0;
    font-size: 16vw;
  }
  .contact-bottom {
    display: block;
  }
  .contact-button {
    justify-self: auto;
    margin-top: 3rem;
    min-height: 5.5rem;
  }
  .contact-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 4rem 2rem;
  }
  .footer-main > .wordmark {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-wrap: wrap;
    gap: 1rem 2rem;
  }
  .footer-bottom a {
    width: 100%;
    margin-top: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* WordPress block wrappers and native navigation */
:root {
  --ink: var(--wp--preset--color--text);
  --bone: var(--wp--preset--color--bone);
  --paper: var(--wp--preset--color--background);
  --accent: var(--wp--preset--color--primary);
}
*, *::before, *::after { box-sizing: border-box; }
.wp-site-blocks { overflow: clip; }
.wp-site-blocks :is(h1,h2,h3,h4,p) { margin-block: 0; }
.wp-site-blocks .wp-block-group > * + * { margin-block-start: 0; }
.wp-site-blocks a { text-decoration: none; }
.wp-site-blocks :where(a,button):focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.wp-site-blocks main.is-flush { padding-block: 0; }
.wp-site-blocks main.is-flush > .wp-block-post-content { margin: 0; }
.wp-block-post-content > .alignfull { margin-inline: 0; }
.section, .footer-site { padding-inline: clamp(1.25rem, 4.5vw, 5rem); }

.header { position: fixed; margin: 0; }
.header .wordmark { margin: 0; }
.wordmark { gap: .85rem; }
.wordmark p { margin: 0; }
.wordmark-name { font: 400 .67rem/1.05 "Archivo Black", sans-serif; letter-spacing: -.02em; }
.site-nav { font-size: .72rem; font-weight: 500; }
.site-nav .wp-block-navigation-item__content { color: inherit; }
.site-nav .wp-block-navigation__container { gap: clamp(1.5rem,2.5vw,3.25rem); }
.site-nav .wp-block-navigation__responsive-container-open { display: none; }
.header .wp-block-navigation__responsive-container { color: white; }
.header .wp-block-navigation__responsive-container-close { color: white; }

.hero { padding: 0; }
.hero-photo { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; margin: 0; scale: 1.04; animation: hero-in 1.7s cubic-bezier(.2,.7,.2,1) both; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 61% center; }
.hero::after { content: ''; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(90deg,rgba(7,7,7,.82),rgba(7,7,7,.28) 55%,rgba(7,7,7,.54)),linear-gradient(0deg,rgba(7,7,7,.85),transparent 48%),repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgba(255,255,255,.07) 25%); }
.hero-content { position: relative; z-index: 2; }
.hero h1 { margin-top: 6vh !important; }
.hero h1 span { display: block; }
.hero-bottom { margin-top: 6rem !important; }
.hero-copy > * + * { margin-top: 2rem !important; }
.hero .scroll-cue { position: absolute; }
.hero .scroll-cue a { color: inherit; }
.scroll-cue::after { content: ''; display: block; width: 1px; height: 3.5rem; background: rgba(255,255,255,.65); animation: scroll-line 2s infinite; }
.eyebrow::before { content: ''; display: inline-block; width: 2.25rem; height: 1px; background: currentColor; margin-right: .8rem; vertical-align: middle; }
.text-link a { width: fit-content; display: flex; align-items: center; gap: 1.75rem; padding-bottom: .65rem; border-bottom: 1px solid currentColor; }
.text-link a span { transition: transform .3s; }
.text-link a:hover span { transform: translateX(.35rem); }
.text-link.light a { color: var(--bone); }
.display-heading em { color: var(--accent); font-style: normal; }
.placeholder-label { z-index: 3; }
.news-grid { display: block; }
.news-grid > .wp-block-post-template { display: grid; grid-template-columns: repeat(12,1fr); gap: 1.4rem; list-style: none; padding: 0; margin: 0; }
.news-grid > .wp-block-post-template > li { grid-column: span 4; margin: 0; }
.news-grid > .wp-block-post-template > li:nth-child(2) { margin-top: 7rem; }
.news-image { min-height: 1px; }
.news-image .wp-block-post-featured-image { position: absolute; inset: 0; margin: 0; z-index: 1; }
.news-image img { width: 100%; height: 100%; object-fit: cover; }
.news-item .wp-block-post-title a { color: inherit; }
.news-item .wp-block-read-more { color: inherit; text-transform: uppercase; font-size: .68rem; font-weight: 600; }
.news-item .wp-block-post-date { margin-top: 1.5rem; }
.news-item .wp-block-post-date a { color: inherit; }
.contact-button a { display: flex; min-height: 7rem; width: 100%; align-items: center; justify-content: space-between; padding: 1.5rem 2rem; border: 1px solid rgba(255,255,255,.7); color: white; }
.contact-button a:hover { color: var(--ink); background: white; }
.footer-site { background: var(--ink); color: var(--bone); padding-top: 5rem; padding-bottom: 2rem; }
.footer-links { display: flex; flex-direction: column; gap: 1rem; font-size: .82rem; }
.footer-social { gap: 1rem; }
.footer-main .wordmark { align-self: start; }
.footer-bottom { padding-top: 1.5rem; }

@media (max-width:900px) {
  .site-nav .wp-block-navigation__responsive-container-open { display: flex; }
  .site-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
  .site-nav .wp-block-navigation__responsive-container.is-menu-open { position: fixed; inset: 0; background: var(--ink); color: var(--bone); padding: 8rem 1.5rem 2rem; animation: menu-in .5s cubic-bezier(.77,0,.18,1); }
  .site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: stretch; }
  .site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: stretch; gap: 0; }
  .site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { border-bottom: 1px solid rgba(255,255,255,.15); padding: .75rem 0; font: 400 clamp(2.2rem,9vw,4rem)/1 "Archivo Black",sans-serif; text-transform: uppercase; }
  .site-nav .wp-block-navigation__responsive-container-close { top: 2rem; right: 1.25rem; }
  .hero-bottom { margin-top: 6rem !important; }
  .news-grid > .wp-block-post-template > li { grid-column: span 6; }
  .news-grid > .wp-block-post-template > li:last-child { grid-column: 7 / span 6; }
}
@media (max-width:600px) {
  .hero h1 { margin-top: 10vh !important; }
  .hero-bottom { margin-top: auto !important; }
  .hero-copy > * + * { margin-top: 1.5rem !important; }
  .news-grid > .wp-block-post-template { display: block; }
  .news-grid > .wp-block-post-template > li, .news-grid > .wp-block-post-template > li:nth-child(2), .news-grid > .wp-block-post-template > li:last-child { margin: 0 0 4rem; }
  .contact-button a { min-height: 5.5rem; }
}
@keyframes menu-in { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion:reduce) { .hero-photo, .scroll-cue::after { animation: none; } .site-nav .wp-block-navigation__responsive-container.is-menu-open { animation: none; } }

/* Visual verification fixes */
.wp-block-post-content > .alignfull {
  width: calc(100% + var(--wp--style--root--padding-left) + var(--wp--style--root--padding-right));
  margin-left: calc(-1 * var(--wp--style--root--padding-left));
  margin-right: calc(-1 * var(--wp--style--root--padding-right));
}
.wp-block-post-content > * + * { margin-block-start: 0 !important; }
.wp-site-blocks a { color: inherit; }
.hero h1 { font-size: clamp(4rem, 9vw, 9rem); }
.principle .principle-number { grid-column: 1; grid-row: 1 / span 2; font-size: .65rem; opacity: .55; }
.principle > p:not(.principle-number) { grid-column: 2; }
.news-grid > .wp-block-post-template > li:nth-child(1) .news-image::before { content: '01'; }
.news-grid > .wp-block-post-template > li:nth-child(2) .news-image::before { content: '02'; }
.news-grid > .wp-block-post-template > li:nth-child(3) .news-image::before { content: '03'; }
.news-image::before { position: absolute; z-index: 2; top: 1.2rem; left: 1.2rem; color: white; font: 400 clamp(3rem,6vw,6rem)/1 'Archivo Black',sans-serif; opacity: .4; }
.contact-section::before { content: ''; position: absolute; width: 55vw; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; right: -18vw; top: -25vw; }
.contact-section::after { content: ''; position: absolute; width: 38vw; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; right: -9.5vw; top: -16.5vw; }
.footer-site { background: transparent; color: inherit; padding: 0; width: 100%; }
.wp-site-blocks main:not(.is-flush) { padding-block: 10rem 7rem; min-height: 60svh; }
.single .header, .page:not(.home) .header, .error404 .header, .archive .header { background: var(--ink); }
.single .wp-block-post-title { font-size: clamp(2rem,5vw,5rem); text-transform: uppercase; max-width: 17ch; }
.single .wp-block-post-date { margin-block: 1.5rem 3rem; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.single .wp-block-post-content { font-size: 1.1rem; line-height: 1.65; }
.game-info h3 { margin-top: 1.25rem !important; }
.about-copy { margin: 4rem 0 0 auto !important; }
.philosophy-title h2 { margin-top: 3rem !important; }
.news-heading h2 { margin-top: 2.5rem !important; }
.news-item h3 { margin-top: 1.1rem !important; }
.contact-section h2 { margin: 6rem 0 7rem !important; }
@media (max-width: 900px) {
  .site-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 8.5vw; }
  .philosophy-title h2 { font-size: 11vw; }
  .contact-section h2 { font-size: 12.5vw; margin: 4rem 0 !important; }
  .philosophy-section > * { min-width: 0; }
  .wp-site-blocks main:not(.is-flush) { padding-block: 8rem 5rem; }
  .section-intro .display-heading, .team-heading h3 { margin-top: 2.5rem !important; }
  .about-lead .display-heading { margin-top: 5rem !important; }
  .about-copy { margin-top: 2.5rem !important; }
  .news-heading > p { margin-top: 2rem !important; }
}

/* Keep the text-only games introduction aligned with the game title. */
.games-section .section-intro {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  row-gap: 2.5rem;
}
.games-section .section-intro > .eyebrow { grid-column: 1; grid-row: 1; }
.games-section .section-intro > .display-heading { grid-column: 1; grid-row: 2; }
.games-section .section-intro > .section-count { grid-column: 2; grid-row: 1; }
/* A game image sits beside its title and description when present. */
.game-feature:has(> .game-art) {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(2rem, 4vw, 4rem);
  padding-top: 2rem;
}
.game-feature > .game-art {
  max-width: 440px;
  aspect-ratio: 16 / 9;
}
.game-feature:has(> .game-art) > .game-info {
  display: block;
  min-width: 0;
  margin-top: 0;
  padding-top: 0;
}
.game-feature:has(> .game-art) .game-info h3 {
  font-size: clamp(2.5rem, 4vw, 5rem);
}
.game-feature:has(> .game-art) .game-details {
  margin-top: 0;
  padding-top: 1.5rem;
}
@media (max-width: 600px) {
  .game-feature:has(> .game-art) { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .game-feature:has(> .game-art) .game-info h3 { font-size: 2.8rem; }
}
/* Keep the mobile navigation overlay attached to the viewport after scrolling. */
@media (max-width: 900px) {
  .header:has(.wp-block-navigation__responsive-container.is-menu-open) {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .header .site-nav .wp-block-navigation__responsive-container.is-menu-open {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    box-sizing: border-box;
    background: var(--ink);
    color: var(--bone);
    overflow-y: auto;
    z-index: 100;
  }
  .header .site-nav .is-menu-open .wp-block-navigation__responsive-close {
    width: 100%;
    max-width: none;
    margin: 0;
  }
  .header .site-nav .is-menu-open .wp-block-navigation__responsive-container-content {
    align-items: stretch;
    padding-top: 0;
  }
  .header .site-nav .is-menu-open .wp-block-navigation__container {
    width: 100%;
    align-items: stretch;
  }
  .header .site-nav .is-menu-open .wp-block-navigation-item__content {
    display: block;
    width: 100%;
    text-align: left;
  }
  .header .site-nav .is-menu-open .wp-block-navigation__responsive-container-close {
    position: fixed;
    top: 1.75rem;
    right: 1.5rem;
  }
}
/* Contact form: paper fields and a strong ink submit button. */
.contact-bottom { align-items: start; }
.contact-bottom .studio-contact-form { width: 100%; min-width: 0; margin: 0; padding-bottom: 3rem; }
.studio-contact-form form { display: grid; gap: 1.5rem; }
.studio-contact-form label { display: block; margin-bottom: .65rem; color: var(--bone); font: 600 .72rem/1.4 'Space Grotesk',sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.studio-contact-form input:not([type='hidden']):not([type='submit']),
.studio-contact-form textarea { width: 100%; max-width: 100%; border: 1px solid transparent; border-radius: 0; background: var(--paper); color: var(--ink); padding: 1rem 1.1rem; font: 400 1rem/1.5 'Space Grotesk',sans-serif; box-sizing: border-box; }
.studio-contact-form textarea { min-height: 160px; resize: vertical; }
.studio-contact-form input:focus-visible, .studio-contact-form textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.studio-contact-form .wp-element-button { display: inline-flex; justify-content: space-between; width: 100%; padding: 1.25rem 1.5rem; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--bone); font: 600 .8rem/1.4 'Space Grotesk',sans-serif; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.studio-contact-form .wp-element-button:hover { background: var(--bone); color: var(--ink); }
.studio-contact-form .wp-element-button:focus-visible { outline: 2px solid var(--bone); outline-offset: 4px; }
.studio-contact-form .contact-form-success { padding: 1.5rem; border: 1px solid var(--bone); }
@media (max-width: 600px) { .contact-bottom .studio-contact-form { margin-top: 2.5rem; } }
@media (max-width: 900px) {
  .header nav.site-nav.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) {
    background-color: var(--ink);
    color: var(--bone);
  }
}
.contact-section .studio-contact-form .wp-block-button { width: min(100%, 15rem); max-width: 15rem; flex: 0 0 auto; }