:root {
  --paper: #f4f1eb;
  --ink: #111318;
  --muted: #5d6067;
  --brand: #ff4a24;
  --rule: rgba(17, 19, 24, 0.24);
  --rule-soft: rgba(17, 19, 24, 0.12);
  --display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --body: "DM Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(17, 19, 24, 0.018) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 12px;
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
.site-footer {
  width: min(100%, 1540px);
  margin: 0 auto;
  padding-inline: clamp(24px, 4.5vw, 72px);
}

.site-header {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--rule);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.brand img,
.footer-brand img {
  object-fit: contain;
}

.brand span {
  font-size: 1.35rem;
}

.site-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.site-nav {
  gap: clamp(20px, 4vw, 50px);
}

.site-nav a,
.site-footer nav a {
  position: relative;
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a::after,
.site-footer nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-footer nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  min-height: min(760px, calc(100svh - 94px));
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(500px, 1.1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 90px);
  padding-block: clamp(54px, 7vw, 100px) clamp(48px, 6vw, 84px);
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4.35rem, 8vw, 8rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.078em;
}

.hero h1 span {
  color: var(--brand);
}

.hero-copy > p {
  max-width: 500px;
  margin: 36px 0 0;
  color: #2c2f35;
  font-size: clamp(1.06rem, 1.5vw, 1.32rem);
  line-height: 1.55;
}

.primary-link {
  width: fit-content;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  margin-top: 34px;
  padding: 0 22px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: white;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.primary-link svg,
.product-index svg,
.product-link svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.primary-link:hover {
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-2px);
}

.hero-stage {
  position: relative;
  min-height: 610px;
}

.device {
  overflow: hidden;
  border: 10px solid #0c0d11;
  border-radius: 44px;
  background: #0c0d11;
  box-shadow:
    0 38px 80px rgba(17, 19, 24, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.device img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 34px;
}

.device.store-shot {
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.38);
  border-radius: 28px;
  background: white;
  box-shadow:
    0 38px 80px rgba(17, 19, 24, 0.24),
    0 0 0 1px rgba(17, 19, 24, 0.08);
}

.device.store-shot img {
  border-radius: 27px;
}

.hero-device {
  position: absolute;
  width: min(45%, 315px);
  aspect-ratio: 720 / 1560;
  top: 50%;
}

.hero-device--poke {
  z-index: 2;
  left: 7%;
  transform: translateY(-51%) rotate(-4.5deg);
}

.hero-device--gacha {
  z-index: 1;
  right: 3%;
  transform: translateY(-48%) rotate(3.5deg);
}

.hero-stage::after {
  content: "";
  position: absolute;
  right: 1%;
  bottom: 2%;
  left: 2%;
  height: 20%;
  border-radius: 50%;
  background: rgba(17, 19, 24, 0.16);
  filter: blur(34px);
}

.product-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-block: 1px solid var(--rule);
}

.product-index a {
  min-width: 0;
  min-height: 118px;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 2.3vw, 34px);
  padding: 20px clamp(20px, 3vw, 46px);
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.product-index a + a {
  border-left: 1px solid var(--rule);
}

.product-index a:hover {
  background: var(--ink);
  color: white;
}

.product-index .index-number {
  color: var(--brand);
  font-family: var(--display);
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.07em;
}

.product-index img {
  border-radius: 13px;
  box-shadow: 0 9px 24px rgba(17, 19, 24, 0.16);
}

.product-index strong {
  min-width: 0;
  font-family: var(--display);
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.portfolio {
  padding-top: clamp(84px, 10vw, 154px);
}

.product-section {
  display: grid;
  grid-template-columns: minmax(330px, 0.82fr) minmax(500px, 1.18fr);
  align-items: center;
  gap: clamp(42px, 6vw, 98px);
  padding-bottom: clamp(92px, 11vw, 170px);
}

.product-section--reverse .product-copy {
  order: 2;
}

.product-section--reverse {
  grid-template-columns: minmax(500px, 1.18fr) minmax(330px, 0.82fr);
}

.product-section--reverse .product-stage {
  order: 1;
}

.product-copy {
  min-width: 0;
}

.product-number {
  display: block;
  margin-bottom: 44px;
  color: var(--brand);
  font-family: var(--display);
  font-size: clamp(5.4rem, 10vw, 10.2rem);
  font-weight: 800;
  line-height: 0.64;
  letter-spacing: -0.085em;
}

.product-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.product-lockup img {
  flex: 0 0 auto;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(17, 19, 24, 0.2);
}

.product-lockup h2 {
  min-width: 0;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.25rem, 4.4vw, 4.8rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.068em;
}

.product-tagline {
  margin: 24px 0 0;
  color: var(--brand);
  font-family: var(--display);
  font-size: clamp(1.34rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.product-description {
  max-width: 560px;
  margin: 24px 0 0;
  color: #33363d;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.65;
}

.availability {
  margin: 34px 0 10px;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

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

.product-link {
  min-width: 0;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 12px;
  border-bottom: 1px solid var(--brand);
  color: var(--brand);
  font-size: 0.91rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, padding 160ms ease;
}

.product-link:nth-child(odd) {
  border-right: 1px solid var(--brand);
}

.product-link:hover {
  background: var(--brand);
  color: white;
  padding-inline: 16px 8px;
}

.product-link--feature {
  grid-column: 1 / -1;
  border-right: 0 !important;
}

.product-stage {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.3vw, 18px);
  align-items: start;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.product-stage::before {
  content: none;
}

.gallery-shot {
  width: 100%;
  aspect-ratio: 943 / 2048;
  min-width: 0;
}

.studio-note {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 8vw, 140px);
  align-items: start;
  padding-block: clamp(58px, 8vw, 112px);
  border-block: 1px solid var(--brand);
}

.studio-note h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.2rem, 6.4vw, 7rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.studio-note p {
  max-width: 520px;
  margin: 6px 0 0;
  color: #33363d;
  font-size: clamp(1.05rem, 1.6vw, 1.26rem);
  line-height: 1.65;
}

.studio-note > div {
  min-width: 0;
}

.studio-note .primary-link {
  margin-top: 30px;
}

.site-footer {
  min-height: 138px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 28px;
}

.footer-brand {
  color: var(--brand);
  font-size: 1.35rem;
}

.copyright {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer nav {
  justify-content: flex-end;
  gap: 28px;
}

.site-footer nav a {
  font-size: 0.8rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 680ms cubic-bezier(0.2, 0.75, 0.2, 1), transform 680ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

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

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(390px, 1.08fr);
  }

  .hero-stage {
    min-height: 540px;
  }

  .product-section {
    grid-template-columns: minmax(310px, 0.85fr) minmax(430px, 1.15fr);
    gap: 44px;
  }

  .product-section--reverse {
    grid-template-columns: minmax(430px, 1.15fr) minmax(310px, 0.85fr);
  }

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

  .site-footer {
    grid-template-columns: auto 1fr;
  }

  .site-footer nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-bottom: 26px;
  }

  .copyright {
    text-align: right;
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 78px;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero h1 {
    max-width: 650px;
  }

  .hero-stage {
    width: min(100%, 650px);
    min-height: 600px;
    margin: 0 auto;
  }

  .product-index {
    grid-template-columns: 1fr;
  }

  .product-index a + a {
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .product-section {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .product-section--reverse .product-copy,
  .product-section--reverse .product-stage {
    order: initial;
  }

  .product-stage {
    min-height: 0;
  }

  .studio-note {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  .site-footer {
    padding-inline: 18px;
  }

  .site-header {
    gap: 12px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .brand span {
    font-size: 1.08rem;
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav a {
    font-size: 0.83rem;
  }

  .hero {
    padding-top: 58px;
  }

  .hero h1 {
    font-size: clamp(3.55rem, 19vw, 5.8rem);
    line-height: 0.86;
  }

  .hero-copy > p {
    margin-top: 26px;
  }

  .primary-link {
    width: 100%;
  }

  .hero-stage {
    min-height: 430px;
  }

  .hero-device {
    width: min(50%, 224px);
    border-width: 7px;
    border-radius: 30px;
  }

  .hero-device img {
    border-radius: 23px;
  }

  .hero-device--poke {
    left: 1%;
  }

  .hero-device--gacha {
    right: 1%;
  }

  .product-index a {
    min-height: 92px;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    padding: 14px 8px;
  }

  .product-index img {
    width: 46px;
    height: 46px;
  }

  .product-index .index-number {
    font-size: 2.3rem;
  }

  .portfolio {
    padding-top: 86px;
  }

  .product-section {
    padding-bottom: 100px;
  }

  .product-number {
    margin-bottom: 32px;
    font-size: 6rem;
  }

  .product-lockup img {
    width: 58px;
    height: 58px;
    border-radius: 15px;
  }

  .product-lockup h2 {
    overflow-wrap: normal;
    word-break: normal;
    font-size: clamp(1.9rem, 9vw, 3.3rem);
  }

  .product-lockup {
    gap: 14px;
  }

  .product-links {
    grid-template-columns: 1fr;
  }

  .product-link:nth-child(odd) {
    border-right: 0;
  }

  .product-stage {
    min-height: 0;
    margin-inline: 0;
  }

  .device {
    border-width: 7px;
    border-radius: 30px;
  }

  .device img {
    border-radius: 23px;
  }

  .studio-note h2 {
    font-size: clamp(2.8rem, 12.5vw, 5.3rem);
  }

  .studio-note {
    grid-template-columns: minmax(0, 1fr);
  }

  .studio-note .primary-link {
    max-width: 100%;
    gap: 12px;
    font-size: clamp(0.78rem, 3.8vw, 0.98rem);
    overflow-wrap: anywhere;
  }

  .site-footer {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 16px;
    padding-block: 42px;
  }

  .copyright {
    text-align: left;
  }

  .site-footer nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 0;
  }
}

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

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