: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;
  overflow-x: clip;
  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;
}

.language-menu {
  display: inline-flex;
  align-items: center;
}

.language-menu select {
  min-height: 34px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 560;
}

.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);
}

.text-link {
  display: inline-flex;
  gap: 9px;
  margin-top: 28px;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.text-link span {
  text-decoration: none;
}

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

/* Unisarvi's company pages use a photographic profile-cover treatment. */
.unisarvi-home-page .site-header,
.consulting-page .site-header {
  background: rgba(255, 255, 255, 0.94);
}

.profile-hero {
  position: relative;
  min-height: min(770px, calc(100vh - 78px));
  display: grid;
  overflow: hidden;
  color: #0b0b0b;
  background: #253940;
}

.profile-cover,
.profile-cover-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.profile-cover {
  object-fit: cover;
}

.profile-cover-shade {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.34) 62%, rgba(255, 255, 255, 0.12));
}

.profile-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: inherit;
  padding-top: 52px;
  padding-bottom: 56px;
  flex-direction: column;
  justify-content: space-between;
}

.profile-branding {
  max-width: 330px;
}

.profile-brand-logo {
  display: block;
  width: min(300px, 62vw);
  height: auto;
}

.profile-branding p {
  margin-top: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profile-hero-copy {
  max-width: 760px;
}

.profile-hero-copy .eyebrow,
.profile-hero-copy p {
  color: rgba(11, 11, 11, 0.88);
}

.unisarvi-home-page .profile-hero .button-light {
  border-color: #0b0b0b;
  background: #0b0b0b;
  color: #fff;
}

.unisarvi-home-page .profile-hero .button-light:hover {
  background: transparent;
  color: #0b0b0b;
}

.profile-hero-copy h1 {
  max-width: 740px;
  margin-top: 14px;
  font-size: clamp(3.3rem, 7vw, 6.5rem);
}

.profile-hero-copy > p:last-of-type {
  max-width: 620px;
  margin-top: 24px;
  font-size: 1.12rem;
}

.button-light {
  border-color: #fff;
  background: #fff;
  color: #111;
}

.button-light:hover {
  background: transparent;
  color: #fff;
}

.consulting-hero {
  position: relative;
  min-height: min(760px, calc(100vh - 78px));
  display: grid;
  overflow: hidden;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: #1d2a30 url("/assets/havisto-hero-wide.png") center / cover no-repeat;
  color: #fff;
}

.consulting-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 17, 22, 0.78) 0%, rgba(8, 17, 22, 0.5) 48%, rgba(8, 17, 22, 0.08) 100%);
}

.consulting-landscape-branding {
  position: absolute;
  z-index: 2;
  top: 32px;
  left: 50%;
  display: flex;
  width: min(calc(100% - 48px), var(--max));
  justify-content: space-between;
  color: #0b0b0b;
  transform: translateX(-50%);
}

.consulting-landscape-brand-left img {
  display: block;
  width: 260px;
  height: auto;
}

.consulting-landscape-brand-right span {
  display: block;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.consulting-landscape-brand-left p {
  display: block;
  margin-top: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.consulting-landscape-brand-left span {
  display: block;
  margin-top: 4px;
  color: rgba(11, 11, 11, 0.62);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.consulting-landscape-brand-right {
  max-width: 310px;
  text-align: right;
}

.consulting-landscape-brand-right strong {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.consulting-landscape-brand-right i {
  display: block;
  width: 38px;
  height: 1px;
  margin: 12px 0 12px auto;
  background: currentColor;
}

.consulting-hero-grid {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: flex;
  padding-top: 72px;
  padding-bottom: 68px;
  align-items: flex-end;
}

.consulting-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.65fr);
  gap: clamp(48px, 9vw, 140px);
  align-items: end;
}

.consulting-hero-copy {
  max-width: 720px;
}

.consulting-hero .eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.consulting-hero h1 {
  margin-top: 15px;
  font-size: clamp(4.5rem, 10vw, 8.5rem);
  line-height: 0.86;
}

.consulting-hero h2 {
  max-width: 680px;
  margin-top: 26px;
  color: #fff;
  font-size: clamp(1.75rem, 3.2vw, 3.2rem);
  line-height: 1.06;
}

.consulting-lead {
  max-width: 620px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.87);
  font-size: 1.1rem;
}

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

.consulting-area {
  min-height: 235px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  transition: background 180ms ease, transform 180ms ease;
}

.consulting-area:hover {
  z-index: 1;
  background: var(--soft);
  transform: translateY(-4px);
}

.consulting-area h2 {
  margin-top: 52px;
  font-size: 1.55rem;
}

.consulting-area p {
  margin-top: 14px;
  color: #454545;
}

.consulting-approach {
  background: #edf1f2;
}

.consulting-approach .about-copy {
  color: #314047;
}

.consulting-contact {
  padding: 78px 0;
  background: #111;
  color: #fff;
}

.consulting-contact p {
  color: #c8c8c8;
}

.consulting-contact .button {
  border-color: #fff;
  background: #fff;
  color: #111;
}

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

.policy-subheading {
  margin-top: 28px;
  font-size: 1.15rem;
  line-height: 1.3;
}

.policy-subheading + p {
  margin-top: 10px;
}

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

  .language-menu {
    padding-top: 16px;
  }

  .language-menu select {
    width: 100%;
  }

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

  .profile-hero {
    min-height: 620px;
  }

  .profile-hero-content {
    padding-top: 34px;
    padding-bottom: 42px;
  }

  .profile-branding strong {
    font-size: 1.6rem;
  }

  .profile-hero-copy h1 {
    font-size: clamp(3rem, 14vw, 4.4rem);
  }

  .consulting-hero {
    min-height: 670px;
    background-position: 61% center;
  }

  .consulting-landscape-branding {
    top: 24px;
    width: calc(100% - 40px);
  }

  .consulting-landscape-brand-left img {
    width: 190px;
  }

  .consulting-landscape-brand-left p {
    font-size: 0.58rem;
  }

  .consulting-landscape-brand-left span {
    font-size: 0.5rem;
  }

  .consulting-landscape-brand-right {
    display: none;
  }

  .consulting-hero-grid {
    padding-top: 54px;
    padding-bottom: 48px;
  }

  .consulting-intro-grid,
  .consulting-areas {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .consulting-area {
    min-height: 0;
  }

  .consulting-hero h1 {
    font-size: clamp(4rem, 22vw, 6.2rem);
  }

  .consulting-hero h2 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }
}

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

/* Fairy Forest uses its own artwork-led campaign surface. */
.fairy-forest-page .fairy-forest-hero {
  min-height: min(820px, calc(100vh - 78px));
  background:
    linear-gradient(90deg, rgba(9, 38, 25, 0.91) 0%, rgba(11, 52, 34, 0.74) 45%, rgba(10, 40, 26, 0.28) 100%),
    url("/assets/fairy-forest/fairy_tausta4.png") center / cover;
}

.fairy-forest-page .fairy-forest-hero::before,
.fairy-forest-page .fairy-forest-hero::after {
  display: none;
}

.fairy-forest-page .fairy-forest-hero .back-link,
.fairy-forest-page .fairy-forest-hero .eyebrow,
.fairy-forest-page .fairy-forest-hero .lead {
  color: rgba(255, 250, 234, 0.94);
}

.fairy-forest-page .fairy-forest-hero .game-logo-title {
  max-width: 540px;
  margin-top: 20px;
}

.fairy-forest-page .fairy-forest-hero .game-logo-title img {
  filter: drop-shadow(0 7px 18px rgba(0, 0, 0, 0.38));
}

.fairy-forest-page .hero-tagline {
  margin-top: 16px;
  color: #f9db86;
  font-family: "Lilita One", "Nunito Sans", sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  letter-spacing: 0;
}

.fairy-forest-page .fairy-forest-hero .lead {
  max-width: 550px;
  margin-top: 12px;
}

.fairy-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.fairy-forest-page .button-primary {
  border-color: #f8dc82;
  background: #f8dc82;
  color: #173b26;
  box-shadow: 0 5px 0 rgba(10, 43, 26, 0.45);
}

.fairy-forest-page .button-primary:hover {
  background: #fff7d9;
  color: #173b26;
}

.fairy-forest-page .fairy-hero-actions .status {
  border-color: rgba(255, 249, 224, 0.64);
  background: rgba(12, 49, 31, 0.65);
  color: #fff9e5;
}

.fairy-forest-page .fairy-forest-hero .hero-screenshot {
  position: relative;
  z-index: 1;
  width: min(84%, 342px);
  justify-self: center;
  border-color: rgba(248, 220, 130, 0.75);
  box-shadow: 0 28px 55px rgba(0, 0, 0, 0.42);
}

.fairy-feature-strip {
  padding: 0;
  border-bottom: 1px solid #d5c799;
  background: #173b26;
  color: #fff8df;
}

.fairy-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fairy-feature-grid > div {
  display: grid;
  min-height: 132px;
  padding: 27px 32px;
  align-content: center;
  gap: 7px;
  border-right: 1px solid rgba(248, 220, 130, 0.22);
}

.fairy-feature-grid > div:first-child {
  border-left: 1px solid rgba(248, 220, 130, 0.22);
}

.fairy-feature-grid strong {
  color: #f8dc82;
  font-family: "Lilita One", "Nunito Sans", sans-serif;
  font-size: 1.45rem;
  font-weight: 400;
}

.fairy-feature-grid span {
  color: rgba(255, 248, 223, 0.82);
  font-size: 0.92rem;
}

@media (max-width: 720px) {
  .fairy-forest-page .fairy-forest-hero {
    min-height: auto;
    padding: 70px 0 55px;
    background-position: 58% center;
  }

  .fairy-forest-page .fairy-forest-hero .game-logo-title {
    max-width: 310px;
  }

  .fairy-forest-page .fairy-forest-hero .hero-screenshot {
    width: min(76%, 286px);
  }

  .fairy-feature-grid {
    grid-template-columns: 1fr;
  }

  .fairy-feature-grid > div,
  .fairy-feature-grid > div:first-child {
    min-height: 0;
    padding: 22px 4px;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid rgba(248, 220, 130, 0.22);
  }

  .fairy-feature-grid > div:last-child {
    border-bottom: 0;
  }
}
