:root {
  --sand: #fbf0dc;
  --sand-strong: #f3ddbd;
  --cream: #fffaf0;
  --ink: #4b372d;
  --muted: #7c6658;
  --orange: #f58b3f;
  --coral: #ef625d;
  --yellow: #ffd66d;
  --teal: #29a79c;
  --teal-dark: #177a73;
  --clay: #b96e52;
  --white: #ffffff;
  --shadow: 0 22px 55px rgba(111, 72, 45, 0.13);
  --soft-shadow: 0 14px 34px rgba(111, 72, 45, 0.1);
  --sunset: linear-gradient(135deg, #ffd66d 0%, #ffb15f 44%, #ef625d 100%);
  --teal-glow: linear-gradient(135deg, #e4f8f5 0%, #b7efe8 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.82), rgba(251, 240, 220, 0.92)),
    var(--sand);
  color: var(--ink);
  font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: var(--teal-dark);
  text-decoration: none;
}

a:hover {
  color: var(--coral);
}

::selection {
  background: rgba(255, 214, 109, 0.7);
  color: var(--ink);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 250, 240, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(75, 55, 45, 0.08);
}

.navbar {
  padding: 0.85rem 0;
}

.navbar-brand {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  margin-right: 0.65rem;
  color: var(--ink);
  background: var(--sunset);
  border: 2px solid rgba(75, 55, 45, 0.08);
  border-radius: 16px 22px 14px 24px;
  box-shadow: 0 10px 20px rgba(239, 98, 93, 0.16);
}

.navbar-toggler {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  border: 0;
  border-radius: 16px;
  background: rgba(41, 167, 156, 0.11);
  box-shadow: none;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.16rem rgba(41, 167, 156, 0.25);
}

.navbar-toggler-icon {
  position: relative;
  width: 24px;
  height: 18px;
  background-image: none;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

.navbar-toggler-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  border-top: 3px solid var(--ink);
  transform: translateY(-50%);
}

.nav-link {
  color: var(--ink);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.45rem 0.85rem !important;
}

.nav-link:hover,
.nav-link.active {
  color: var(--teal-dark);
  background: rgba(41, 167, 156, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0;
  padding: 0.85rem 1.25rem;
}

.btn-sun {
  color: var(--ink);
  background: var(--sunset);
  border: 0;
  box-shadow: 0 14px 28px rgba(239, 98, 93, 0.2);
}

.btn-sun:hover {
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(239, 98, 93, 0.25);
}

.btn-ghost {
  color: var(--ink);
  background: rgba(255, 250, 240, 0.72);
  border: 2px solid rgba(75, 55, 45, 0.12);
}

.btn-ghost:hover {
  color: var(--ink);
  background: var(--cream);
  transform: translateY(-2px);
}

.hero-section {
  position: relative;
  min-height: min(760px, calc(100svh - 118px));
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.96) 0%, rgba(255, 242, 217, 0.88) 42%, rgba(255, 226, 188, 0.5) 100%),
    url("../img/hero.jpg") center / cover;
}

.hero-section::after,
.sub-hero::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -56px;
  left: -8%;
  height: 118px;
  background: var(--sand);
  border-radius: 52% 48% 0 0 / 82% 74% 0 0;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  padding: clamp(4.5rem, 9vw, 7rem) 0 clamp(4rem, 8vw, 6rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title,
.page-title {
  margin: 0 0 1rem;
  color: var(--ink);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-title {
  max-width: 720px;
  font-size: clamp(3rem, 7vw, 6.8rem);
}

.page-title {
  font-size: clamp(2.6rem, 6vw, 5.6rem);
}

.hero-lead,
.page-lead {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
  position: relative;
}

.section-tight {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section-title {
  margin-bottom: 0.8rem;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 900;
  line-height: 1.04;
}

.section-lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.1rem;
}

.soft-section {
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.72), rgba(243, 221, 189, 0.48));
}

.wave-top {
  border-radius: 46% 54% 0 0 / 7% 6% 0 0;
}

.wave-bottom {
  border-radius: 0 0 48% 52% / 0 0 7% 6%;
}

.story-card,
.value-card,
.journal-card,
.game-card,
.contact-card,
.legal-card,
.mini-card,
.process-step {
  background: rgba(255, 250, 240, 0.88);
  border: 1px solid rgba(75, 55, 45, 0.08);
  box-shadow: var(--soft-shadow);
}

.story-card {
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border-radius: 28px 54px 28px 44px;
}

.texture-note {
  position: relative;
  padding: 1.2rem 1.25rem 1.2rem 1.5rem;
  border-left: 7px solid var(--yellow);
  background: rgba(41, 167, 156, 0.09);
  border-radius: 0 24px 24px 0;
  color: var(--ink);
  font-weight: 700;
}

.image-frame {
  position: relative;
  overflow: hidden;
  border: 10px solid rgba(255, 250, 240, 0.9);
  border-radius: 38px 72px 34px 58px;
  box-shadow: var(--shadow);
}

.image-frame img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.image-frame.tilt-left {
  transform: rotate(-1.5deg);
}

.image-frame.tilt-right {
  transform: rotate(1.3deg);
}

.game-card {
  height: 100%;
  overflow: hidden;
  border-radius: 26px;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.game-card:hover {
  transform: translateY(-7px) scale(1.015);
  box-shadow: var(--shadow);
}

.game-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.game-card-body {
  padding: 1.35rem;
}

.game-card h3,
.journal-card h3,
.mini-card h3 {
  color: var(--ink);
  font-size: 1.24rem;
  font-weight: 900;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  margin-bottom: 0.8rem;
  padding: 0.28rem 0.72rem;
  color: var(--teal-dark);
  background: rgba(41, 167, 156, 0.12);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.process-ribbon {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.process-ribbon::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 2%;
  left: 2%;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--coral) 0 22px, var(--yellow) 22px 44px, var(--teal) 44px 66px);
  border-radius: 999px;
  transform: translateY(-50%);
  opacity: 0.42;
}

.process-step {
  position: relative;
  z-index: 1;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.3rem;
  border-radius: 28px 34px 26px 42px;
}

.process-step:nth-child(even) {
  transform: translateY(34px);
}

.step-number {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  background: var(--sunset);
  border-radius: 16px 20px 15px 22px;
  font-weight: 900;
}

.art-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: stretch;
}

.art-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
}

.value-card,
.mini-card {
  height: 100%;
  padding: 1.45rem;
  border-radius: 24px;
}

.value-icon,
.mini-icon {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 1rem;
  color: var(--ink);
  background: var(--teal-glow);
  border-radius: 18px 24px 16px 22px;
  font-size: 1.3rem;
}

.value-card:nth-child(2n) .value-icon,
.mini-card:nth-child(2n) .mini-icon {
  background: linear-gradient(135deg, #fff0c4, #ffb67a);
}

.journal-card {
  height: 100%;
  padding: 1.45rem;
  border-radius: 24px 38px 24px 32px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.journal-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.journal-meta {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.cta-band {
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 214, 109, 0.96), rgba(255, 177, 95, 0.92) 48%, rgba(239, 98, 93, 0.82)),
    var(--sand-strong);
  border-radius: 46px 72px 44px 64px;
  padding: clamp(2rem, 6vw, 4rem);
  box-shadow: var(--shadow);
}

.cta-band p {
  max-width: 690px;
  color: rgba(75, 55, 45, 0.82);
  font-size: 1.1rem;
}

.sub-hero {
  position: relative;
  min-height: min(560px, calc(100svh - 160px));
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.95), rgba(255, 239, 210, 0.74)),
    var(--sand);
}

.sub-hero.hero-studio {
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.96), rgba(255, 239, 210, 0.62)),
    url("../img/studio.jpg") center / cover;
}

.sub-hero.hero-games {
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.96), rgba(255, 239, 210, 0.62)),
    url("../img/game1.jpg") center / cover;
}

.sub-hero.hero-journal {
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.96), rgba(255, 239, 210, 0.62)),
    url("../img/art.jpg") center / cover;
}

.sub-hero.hero-contact {
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.96), rgba(255, 239, 210, 0.62)),
    url("../img/hero.jpg") center / cover;
}

.page-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.studio-timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  position: relative;
  padding: 1.2rem 1.2rem 1.2rem 4.3rem;
  background: rgba(255, 250, 240, 0.76);
  border: 1px solid rgba(75, 55, 45, 0.08);
  border-radius: 24px;
}

.timeline-item i {
  position: absolute;
  top: 1.18rem;
  left: 1.2rem;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  background: var(--sunset);
  border-radius: 16px 20px 15px 22px;
}

.game-detail {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.contact-card {
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border-radius: 28px;
}

.form-label {
  color: var(--ink);
  font-weight: 800;
}

.form-control,
.form-select {
  min-height: 52px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.92);
  border: 2px solid rgba(75, 55, 45, 0.1);
  border-radius: 18px;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(41, 167, 156, 0.72);
  box-shadow: 0 0 0 0.2rem rgba(41, 167, 156, 0.14);
}

textarea.form-control {
  min-height: 150px;
}

.form-message {
  display: none;
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  color: var(--teal-dark);
  background: rgba(41, 167, 156, 0.13);
  border-radius: 18px;
  font-weight: 800;
}

.form-message.is-visible {
  display: block;
}

.contact-list {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  color: var(--muted);
}

.contact-list i {
  width: 40px;
  height: 40px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--ink);
  background: var(--teal-glow);
  border-radius: 14px 18px 14px 20px;
}

.legal-card {
  padding: clamp(1.4rem, 4vw, 2.6rem);
  border-radius: 28px;
}

.legal-card h2 {
  margin-top: 2rem;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 900;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.site-footer {
  padding: 4rem 0 2rem;
  color: rgba(255, 250, 240, 0.86);
  background: #4b372d;
}

.site-footer a {
  color: rgba(255, 250, 240, 0.82);
}

.site-footer a:hover {
  color: var(--yellow);
}

.footer-title {
  color: var(--cream);
  font-weight: 900;
}

.fw-black {
  font-weight: 900;
}

.footer-list {
  display: grid;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-bottom {
  margin-top: 2.8rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 250, 240, 0.16);
  color: rgba(255, 250, 240, 0.68);
}

.reveal {
  opacity: 1;
  transform: translateY(12px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@media (max-width: 991.98px) {
  .navbar-collapse {
    padding-top: 1rem;
  }

  .hero-section,
  .sub-hero {
    min-height: auto;
  }

  .process-ribbon {
    grid-template-columns: 1fr;
  }

  .process-ribbon::before {
    top: 0;
    bottom: 0;
    left: 28px;
    width: 8px;
    height: auto;
    transform: none;
    background: repeating-linear-gradient(180deg, var(--coral) 0 22px, var(--yellow) 22px 44px, var(--teal) 44px 66px);
  }

  .process-step,
  .process-step:nth-child(even) {
    transform: none;
    min-height: auto;
    margin-left: 3.2rem;
  }

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

@media (max-width: 575.98px) {
  .hero-title {
    font-size: clamp(2.45rem, 13.5vw, 3.45rem);
    line-height: 1.04;
  }

  .hero-lead,
  .page-lead {
    max-width: 22rem;
    font-size: 1rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding: 3.5rem 0;
  }

  .cta-band {
    border-radius: 30px;
  }

  .image-frame {
    border-width: 7px;
    border-radius: 28px;
  }
}
