:root {
  --bg: #ffffff;
  --ink: #0b0b0b;
  --muted: #626262;
  --line: #d6d6d2;
  --soft: #f6f6f4;
  --soft-2: #ecece8;
  --dark: #0b0b0b;
  --dark-muted: #b8b8b8;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.shell {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 20;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: var(--ink);
  color: var(--bg);
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid rgba(214, 214, 210, 0.86);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
}

.header-inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 680;
}

.brand-logo {
  display: block;
  width: auto;
  height: 42px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 38px;
  color: #262626;
  font-size: 0.9rem;
  font-weight: 560;
}

.site-nav a,
.site-footer a {
  text-underline-offset: 7px;
  text-decoration-thickness: 1px;
}

.site-nav a:hover,
.site-footer a:hover {
  text-decoration: underline;
}

.nav-toggle {
  display: none;
}

.section {
  padding: 112px 0;
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.62fr);
  align-items: end;
  gap: 88px;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow,
.meta,
.index,
.status {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1 {
  max-width: 790px;
  margin-top: 22px;
  font-size: clamp(3.2rem, 7vw, 6.9rem);
  line-height: 0.99;
  letter-spacing: 0;
}

.lead {
  max-width: 610px;
  margin-top: 30px;
  color: #3f3f3f;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.6;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 36px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-size: 0.9rem;
  font-weight: 620;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  background: var(--bg);
  color: var(--ink);
  transform: translateY(-1px);
}

.hero-panel {
  border-top: 1px solid var(--ink);
}

.panel-row {
  display: grid;
  grid-template-columns: 48px 1fr 22px;
  gap: 18px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: color 180ms ease, padding-left 180ms ease;
}

.panel-row span {
  color: var(--muted);
}

.panel-row em,
.card-heading span,
.portfolio-arrow {
  font-style: normal;
  transition: transform 180ms ease;
}

.panel-row:hover {
  padding-left: 8px;
}

.panel-row:hover em {
  transform: translateX(4px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 52px;
}

h2 {
  margin-top: 12px;
  font-size: clamp(2.1rem, 4vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.business-card {
  min-height: 330px;
  padding: 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  transition: background 180ms ease;
}

.business-card.featured {
  background: var(--soft);
}

.business-card:hover {
  background: #fafafa;
}

.business-card.featured:hover {
  background: var(--soft-2);
}

.card-heading {
  display: flex;
  margin-top: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.card-heading h3 {
  font-size: 1.55rem;
  line-height: 1.15;
}

.business-card:hover .card-heading span {
  transform: translateX(4px);
}

.business-card > p {
  max-width: 460px;
  margin-top: 20px;
  color: #454545;
  line-height: 1.65;
}

.sub-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.art-slot {
  min-height: 84px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, transparent 49.5%, #d8d8d4 50%, transparent 50.5%),
    linear-gradient(45deg, transparent 49.5%, #d8d8d4 50%, transparent 50.5%);
}

.product-thumb {
  width: 84px;
  height: 84px;
  min-height: 0;
  overflow: hidden;
  background: var(--soft-2);
}

.product-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-logo-thumb {
  display: grid;
  place-items: center;
  background: #fffaf3;
}

.product-logo-thumb img {
  width: 100%;
  height: 100%;
  padding: 8px;
  object-fit: contain;
}

.sub-item h4 {
  font-size: 1.12rem;
  line-height: 1.2;
}

.sub-item p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.dark-section {
  background: var(--dark);
  color: #fff;
  padding: 132px 0;
}

.dark-section .eyebrow,
.dark-section p {
  color: var(--dark-muted);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: 96px;
  align-items: start;
}

.about-copy {
  display: grid;
  max-width: 610px;
  gap: 26px;
  align-content: end;
  font-size: clamp(1.08rem, 1.5vw, 1.26rem);
  line-height: 1.75;
}

.portfolio-wrap {
  border-bottom: 1px solid var(--line);
}

.portfolio-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 32px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  transition: padding-left 180ms ease, background 180ms ease;
}

.portfolio-item:hover {
  padding-left: 12px;
}

.portfolio-main {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.portfolio-item h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.6rem);
  line-height: 1.1;
}

.portfolio-item p:last-child {
  max-width: 560px;
  margin-top: 10px;
  color: #454545;
}

.portfolio-item:hover .portfolio-arrow {
  transform: translateX(4px);
}

.status {
  display: inline-flex;
  width: fit-content;
  padding: 8px 10px;
  border: 1px solid var(--line);
  color: #333;
  background: #fff;
  white-space: nowrap;
}

.contact-section {
  background: var(--soft);
  padding: 76px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 64px;
  align-items: center;
}

.contact-section p:not(.eyebrow) {
  margin-top: 16px;
  color: #454545;
  font-size: 1.02rem;
}

.contact-card {
  display: grid;
  gap: 10px;
  color: #333;
  font-style: normal;
}

.contact-card a {
  width: fit-content;
  color: var(--ink);
  font-size: clamp(1.2rem, 2.1vw, 1.72rem);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-thickness: 1px;
}

.brand-signature {
  padding: 8px 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.brand-signature img {
  display: block;
  width: min(82%, 780px);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.product-link {
  color: inherit;
}

.product-link:hover h4,
.portfolio-item:hover h3,
.detail-list a:hover,
.back-link:hover {
  text-decoration: underline;
  text-underline-offset: 7px;
}

.product-page {
  --product-bg: #fff7df;
  --product-soft: #f5edcf;
  --product-line: #d5c799;
  --forest: #1e5534;
  --forest-deep: #0e351f;
  --forest-mid: #2f7046;
  --forest-light: #dceccb;
  --forest-muted: #60785c;
  --gold: #c69b36;
}

.product-hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--product-line);
  background:
    linear-gradient(145deg, rgba(14, 53, 31, 0.98) 0%, rgba(30, 85, 52, 0.96) 46%, rgba(218, 232, 196, 0.9) 100%);
  overflow: hidden;
}

.fairy-forest-page main {
  background: var(--product-bg);
  font-family: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.product-hero::before,
.product-hero::after {
  position: absolute;
  z-index: 0;
  content: "";
  pointer-events: none;
}

.product-hero::before {
  width: 42vw;
  height: 18vw;
  right: -10vw;
  top: 14%;
  border: 1px solid rgba(246, 222, 151, 0.16);
  border-radius: 72% 28% 68% 32%;
  background: linear-gradient(120deg, rgba(246, 222, 151, 0.18), rgba(255, 247, 223, 0.02));
  transform: rotate(-18deg);
}

.product-hero::after {
  width: 34vw;
  height: 12vw;
  left: -12vw;
  bottom: 9%;
  border-radius: 28% 72% 30% 70%;
  background: linear-gradient(120deg, rgba(220, 236, 203, 0.18), rgba(220, 236, 203, 0));
  transform: rotate(16deg);
}

.product-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.72fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: center;
}

.product-hero-copy {
  max-width: 680px;
}

.fairy-forest-page main h1,
.fairy-forest-page main h2 {
  font-family: "Lilita One", "Nunito Sans", ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  color: var(--forest-deep);
  letter-spacing: 0;
}

.fairy-forest-page main h1 {
  max-width: 760px;
  color: #fff8df;
  font-size: clamp(4.8rem, 10vw, 9.8rem);
  line-height: 0.86;
  text-shadow: 0 6px 0 rgba(14, 53, 31, 0.34);
}

.fairy-forest-page main .game-logo-title {
  max-width: min(100%, 560px);
  margin-top: 22px;
  line-height: 1;
  text-shadow: none;
}

.game-logo-title img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(14, 53, 31, 0.32));
}

.fairy-forest-page main h2 {
  font-size: clamp(2.8rem, 5.2vw, 5.7rem);
  line-height: 0.92;
}

.fairy-forest-page .lead,
.fairy-forest-page .product-copy {
  color: #354235;
}

.fairy-forest-page .product-hero .lead {
  max-width: 560px;
  color: #fff6dd;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 700;
}

.fairy-forest-page .eyebrow,
.fairy-forest-page .meta,
.fairy-forest-page .index {
  color: var(--forest-muted);
  font-family: "Nunito Sans", ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
}

.fairy-forest-page .status {
  border-color: rgba(198, 155, 54, 0.6);
  background: #fff7df;
  color: var(--forest-deep);
  border-radius: 999px;
  font-weight: 800;
}

.product-hero .status {
  margin-top: 30px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 46px;
  color: rgba(255, 248, 223, 0.88);
  font-size: 0.9rem;
  font-weight: 800;
}

.product-section {
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.product-page .product-section {
  padding: clamp(82px, 9vw, 126px) 0;
}

.product-soft {
  background:
    linear-gradient(180deg, #fff7df 0%, var(--product-soft) 100%);
}

.product-forest {
  background:
    linear-gradient(135deg, #dceccb 0%, #edf4dc 48%, #fff7df 100%);
}

.product-two-column,
.product-index {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(320px, 0.82fr);
  gap: 80px;
  align-items: start;
}

.product-two-column {
  grid-template-areas:
    "heading image"
    "copy image";
}

.product-two-column > div:first-child {
  grid-area: heading;
}

.product-two-column > .product-copy {
  grid-area: copy;
}

.product-two-column > .game-phone-frame {
  grid-area: image;
  justify-self: center;
}

.product-copy {
  display: grid;
  max-width: 650px;
  gap: 22px;
  color: #3f3f3f;
  font-size: clamp(1.12rem, 1.5vw, 1.28rem);
  font-weight: 600;
  line-height: 1.72;
}

.editable-copy {
  border-left: 5px solid var(--gold);
  padding-left: 28px;
}

.detail-list {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--product-line);
  color: var(--forest-deep);
  font-style: normal;
}

.detail-list div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--product-line);
}

.detail-list dt {
  color: var(--forest-muted);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0;
  font-weight: 800;
}

.detail-list a {
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-thickness: 1px;
}

.game-phone-frame {
  display: block;
  margin: 0;
}

.game-phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid rgba(255, 247, 223, 0.86);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(14, 53, 31, 0.28);
}

.hero-screenshot {
  width: min(100%, 430px);
  justify-self: center;
  transform: rotate(1.5deg);
}

.about-screenshot,
.collection-screenshot {
  width: min(100%, 340px);
}

.about-screenshot {
  transform: rotate(-1deg);
}

.collection-screenshot {
  transform: rotate(1deg);
}

.collection-grid {
  grid-template-areas: "image copy";
  align-items: center;
}

.collection-grid > .game-phone-frame {
  grid-area: image;
}

.collection-copy {
  grid-area: copy;
  max-width: 620px;
}

.collection-copy h2 {
  margin-top: 12px;
}

.collection-copy p:last-child {
  margin-top: 22px;
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 38px);
  align-items: center;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid rgba(34, 85, 52, 0.12);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(220, 236, 203, 0.72), rgba(255, 247, 223, 0.9));
}

.screenshot-gallery .game-phone-frame:nth-child(2) {
  transform: translateY(-24px);
}

.screenshot-gallery .game-phone-frame:nth-child(1),
.screenshot-gallery .game-phone-frame:nth-child(3) {
  transform: translateY(18px);
}

.site-footer {
  background: var(--ink);
  color: #fff;
}

.footer-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.9rem;
}

.footer-inner p {
  color: var(--dark-muted);
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.policy-page {
  min-height: calc(100vh - 164px);
}

.policy-content {
  max-width: 820px;
}

.policy-content h1 {
  font-size: clamp(2.6rem, 6vw, 5.4rem);
}

.policy-box {
  margin-top: 44px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.policy-box p + p {
  margin-top: 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero {
    min-height: auto;
    padding-top: 92px;
  }

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

  .portfolio-item {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .portfolio-item .status,
  .portfolio-arrow {
    grid-column: 2;
  }

  .product-hero {
    min-height: auto;
    padding: 82px 0;
  }

  .product-hero-grid,
  .product-two-column,
  .product-index {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .product-two-column,
  .collection-grid {
    grid-template-areas:
      "heading"
      "copy"
      "image";
  }

  .collection-grid {
    grid-template-areas:
      "copy"
      "image";
  }

  .screenshot-gallery {
    gap: 18px;
  }

}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 28px, var(--max));
  }

  .header-inner {
    min-height: 64px;
  }

  .brand-logo {
    height: 34px;
  }

  .nav-toggle {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
  }

  .nav-toggle-line {
    display: block;
    width: 18px;
    height: 1px;
    background: currentColor;
  }

  .site-nav {
    position: fixed;
    inset: 64px 0 auto;
    display: none;
    padding: 24px 14px 28px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    animation: nav-in 180ms ease;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.1rem;
  }

  .section {
    padding: 72px 0;
  }

  .contact-section {
    padding: 58px 0;
  }

  .brand-signature {
    padding: 10px 0;
  }

  .brand-signature img {
    width: min(84%, 360px);
  }

  .hero {
    padding-top: 66px;
  }

  .product-hero {
    padding: 64px 0;
  }

  .fairy-forest-page main h1 {
    font-size: clamp(4rem, 19vw, 5.9rem);
    line-height: 0.9;
  }

  .fairy-forest-page main .game-logo-title {
    max-width: min(100%, 330px);
  }

  .game-logo-title img {
    max-height: 190px;
  }

  .fairy-forest-page main h2 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
    line-height: 1.02;
  }

  .business-grid {
    grid-template-columns: 1fr;
  }

  .business-card {
    min-height: auto;
    padding: 24px;
  }

  .card-heading {
    margin-top: 44px;
  }

  .sub-item {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .sub-item .status {
    grid-column: 2;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .portfolio-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .portfolio-main {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .portfolio-item .status,
  .portfolio-arrow {
    grid-column: 1;
  }

  .status {
    white-space: normal;
  }

  .back-link {
    margin-bottom: 34px;
  }

  .editable-copy {
    border-left: 0;
    padding-left: 0;
  }

  .hero-screenshot {
    width: min(86%, 310px);
    transform: none;
  }

  .about-screenshot,
  .collection-screenshot {
    width: min(82%, 280px);
    transform: none;
  }

  .screenshot-gallery {
    grid-template-columns: 1fr;
    gap: 22px;
    justify-items: center;
    padding: 20px;
    border-radius: 24px;
  }

  .screenshot-gallery .game-phone-frame {
    width: min(82%, 280px);
  }

  .screenshot-gallery .game-phone-frame:nth-child(1),
  .screenshot-gallery .game-phone-frame:nth-child(2),
  .screenshot-gallery .game-phone-frame:nth-child(3) {
    transform: none;
  }

  .detail-list div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@keyframes nav-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
