:root {
  --ink: #111111;
  --muted: #5c5c5c;
  --line: #e6e6e6;
  --paper: #f6f6f6;
  --white: #ffffff;
  --mint: #2ee6a6;
  --mint-2: #1ed296;
  --yellow: #ffe14a;
  --blue: #2f62ff;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --num: Manrope, "Noto Sans SC", sans-serif;
  --wrap: min(1160px, calc(100% - 80px));
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.lock { overflow: hidden; }

h1, h2, h3, p { text-wrap: pretty; }

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

a { color: inherit; }

.keep { white-space: nowrap; }

::selection {
  background: var(--mint);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 80;
  background: var(--mint);
  color: var(--ink);
  padding: 8px 12px;
  text-decoration: none;
}

.skip:focus { top: 12px; }

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.num { font-family: var(--num); letter-spacing: -0.04em; }

.kicker {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 2px;
  background: var(--mint);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn:hover { background: var(--mint-2); }

.btn-plus::before {
  content: "+";
  margin-right: 8px;
  font-family: var(--num);
  font-weight: 800;
}

.text-link {
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 4px;
}

.text-link.light { color: #fff; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  width: var(--wrap);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.mark {
  width: 32px;
  height: 32px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 26px;
}

.nav-links a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover { color: #000; text-decoration: underline; text-underline-offset: 5px; }

.nav .btn { min-height: 40px; padding: 0 16px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease;
}

body.lock .nav-toggle span:first-child { transform: translateY(4px) rotate(40deg); }
body.lock .nav-toggle span:last-child { transform: translateY(-4px) rotate(-40deg); }

.menu {
  position: fixed;
  inset: 72px 0 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 24px;
  background: #111;
  color: #fff;
  transform: translateY(-110%);
  transition: transform 0.35s ease;
}

.menu.open { transform: none; }

.menu a {
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.menu-cta {
  align-self: flex-start;
  margin-top: 12px;
  background: var(--mint);
  color: #111 !important;
  font-size: 16px !important;
  padding: 12px 18px;
}

.hero {
  background: #111;
  color: #fff;
  padding: 72px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 48px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(56px, 6.6vw, 92px);
  line-height: 0.98;
}

.hero .kicker { color: rgba(255, 255, 255, 0.62); }

.lead {
  max-width: 36em;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  font-weight: 400;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 32px;
}

.mosaic {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 0.9fr;
  grid-template-rows: 150px 132px 118px;
  gap: 10px;
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 14px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.tile-yellow { background: var(--yellow); color: #111; grid-row: 1 / 3; }
.tile-blue { background: var(--blue); color: #fff; }
.tile-ink { background: #1c1c1c; color: #fff; border: 1px solid #2a2a2a; }
.tile-mint { background: var(--mint); color: #111; grid-column: 2 / 4; }
.tile-white { background: #f3f3f3; color: #111; grid-column: 1 / 4; flex-direction: row; align-items: center; }

.tile-ink strong {
  font-size: 36px;
  line-height: 1;
}

.tile-ink span,
.tile-white span,
.tile-yellow span,
.tile-blue span,
.tile-mint span { font-weight: 700; }

.glyph { width: 54px; height: auto; }
.glyph.small { width: 42px; }
.glyph.wide { width: 88px; height: 48px; }
.bars { width: min(180px, 100%); height: 48px; }

.mosaic {
  transition:
    grid-template-columns 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    grid-template-rows 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.tile {
  transition: box-shadow 0.45s ease;
}

.tile svg,
.tile .num {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (min-width: 681px) and (prefers-reduced-motion: no-preference) {
  .mosaic:has(.tile-yellow:hover) {
    grid-template-columns: 1.7fr 0.65fr 0.65fr;
    grid-template-rows: 178px 156px 96px;
  }

  .mosaic:has(.tile-blue:hover) {
    grid-template-columns: 0.85fr 1.5fr 0.65fr;
    grid-template-rows: 196px 108px 96px;
  }

  .mosaic:has(.tile-ink:hover) {
    grid-template-columns: 0.85fr 0.65fr 1.5fr;
    grid-template-rows: 196px 108px 96px;
  }

  .mosaic:has(.tile-mint:hover) {
    grid-template-columns: 0.8fr 1.1fr 1.1fr;
    grid-template-rows: 118px 186px 96px;
  }

  .mosaic:has(.tile-white:hover) {
    grid-template-rows: 128px 108px 168px;
  }

  .tile:hover {
    position: relative;
    z-index: 2;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  }

  .tile:hover svg,
  .tile:hover .num { transform: scale(1.12); }
}

.services,
.cases,
.about,
.contact { padding: 96px 0; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(200px, 0.7fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 36px;
}

.section-head:not(:has(.section-note)) {
  grid-template-columns: 1fr;
}

.section-head h2,
.about h2,
.contact h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
}

.section-note {
  max-width: 22em;
  margin: 0 0 6px;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-grid li {
  min-height: 220px;
  padding: 24px;
  background: var(--paper);
}

#services,
#solutions,
#formats,
#cases,
#about,
#contact { scroll-margin-top: 88px; }

.formats { padding: 12px 0 80px; }

.format-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.format-grid li {
  padding: 0;
  background: transparent;
}

.format-shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--paper);
  cursor: pointer;
  outline: none;
}

.format-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 898 / 1000;
  object-fit: cover;
  object-position: center;
}

.format-shot figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 16px 18px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 32px rgba(17, 17, 17, 0.14);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.format-shot figcaption h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.format-shot figcaption p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.format-shot:hover figcaption,
.format-shot:focus-visible figcaption,
.format-shot.open figcaption {
  opacity: 1;
  transform: none;
}

.format-shot:focus-visible {
  box-shadow: 0 0 0 3px var(--mint);
}

.service-grid .num {
  display: block;
  margin-bottom: 28px;
  color: #8a8a8a;
  font-size: 20px;
  font-weight: 700;
}

.service-grid h3 {
  margin: 0 0 10px;
  font-size: 26px;
}

.service-grid p {
  margin: 0;
  color: var(--muted);
}

.solutions { padding-top: 20px; }

.chapter { padding: 28px 0 72px; }

.chapter-alt { background: var(--paper); }

.chapter-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.chapter-grid.flip { grid-template-columns: 0.95fr 1.05fr; }

.chapter-grid.flip .reveal:first-child { order: 2; }

.index {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: var(--num);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.chapter h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 3.4vw, 44px);
}

.chapter p { margin: 0 0 16px; color: #333; }

.chapter ul {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.chapter li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.chapter-alt .chapter li { border-top-color: #ddd; }

.stage {
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 32px;
}

.stage-yellow { background: var(--yellow); }
.stage-mint { background: var(--mint); }
.stage-blue { background: var(--blue); }

.phone-mini {
  width: 180px;
  padding: 8px;
  border-radius: 28px;
  background: #111;
}

.phone-screen {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  height: 300px;
  padding: 20px 16px;
  border-radius: 22px;
  background: #fff;
  color: #111;
}

.phone-screen span { font-size: 12px; letter-spacing: 0.08em; }
.phone-screen strong { font-size: 28px; line-height: 1.2; }
.phone-screen em {
  align-self: flex-start;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 99px;
  background: #111;
  color: #fff;
  font-style: normal;
  font-size: 12px;
}

.mini-card {
  width: min(280px, 100%);
  padding: 22px;
  background: #fff;
  color: #111;
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 72px;
  margin-bottom: 20px;
}

.mini-grid i {
  display: block;
  height: 28px;
  background: var(--mint);
}

.mini-grid i:last-child { background: var(--blue); }

.mini-card strong { display: block; font-size: 28px; }
.mini-card span { display: block; margin: 6px 0 16px; color: #444; }
.mini-card em {
  display: inline-block;
  padding: 6px 10px;
  background: #111;
  color: #fff;
  font-style: normal;
  font-size: 12px;
}

.game-win {
  width: min(340px, 100%);
  background: #111;
  color: #fff;
}

.game-win header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: #1c1c1c;
  font-size: 13px;
}

.game-win header i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6d6d6d;
}

.game-win header i:first-child { background: var(--yellow); }
.game-body {
  padding: 36px 20px 28px;
}

.game-body strong { display: block; font-size: 32px; }
.game-body span { color: rgba(255, 255, 255, 0.72); }

.band {
  background: #111;
  color: #fff;
}

.band ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.band li {
  padding: 36px 20px 36px 0;
  border-right: 1px solid #2a2a2a;
}

.band li:last-child { border-right: 0; }
.band li + li { padding-left: 28px; }

.band strong {
  display: block;
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
}

.band span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.case {
  padding: 24px;
  background: var(--paper);
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.case-tag {
  margin: 0 0 16px;
  color: #666;
  font-family: var(--num);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.case h3 { margin: 0 0 8px; font-size: 28px; }
.case > p { margin: 0; color: var(--muted); }

.case dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: auto 0 0;
  padding-top: 24px;
}

.case dt { color: #777; font-size: 13px; }
.case dd {
  margin: 4px 0 0;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.about { background: #fff; }

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.about p,
.contact-lead {
  margin: 0 0 14px;
  color: #333;
  font-size: 17px;
}

.contact { background: var(--paper); }

.mail {
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact label {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.contact input,
.contact select,
.contact textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid #cfcfcf;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.contact textarea { min-height: 96px; resize: vertical; }

.contact select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #111 50%), linear-gradient(135deg, #111 50%, transparent 50%);
  background-position: calc(100% - 12px) 22px, calc(100% - 7px) 22px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.contact button { margin-top: 24px; }

.form-note { margin: 14px 0 0; font-weight: 700; }

.footer {
  background: #111;
  color: #fff;
  padding: 48px 0 28px;
}

.foot-top {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid #2a2a2a;
}

.footer .logo { color: #fff; margin-right: 0; }
.foot-top p {
  margin: 0 auto 0 8px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 28px 0;
}

.foot-grid h3 {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
}

.foot-grid a {
  display: block;
  margin: 6px 0;
  color: #fff;
  text-decoration: none;
}

.foot-grid a:hover { color: var(--mint); }

.legal {
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (max-width: 980px) {
  .nav-links,
  .nav .btn { display: none; }

  .nav-toggle { display: flex; }

  .hero-grid,
  .chapter-grid,
  .chapter-grid.flip,
  .service-grid,
  .format-grid,
  .case-grid,
  .about-grid,
  .contact-grid,
  .band ul,
  .section-head {
    grid-template-columns: 1fr;
  }

  .chapter-grid.flip .reveal:first-child { order: 0; }

  .band ul { grid-template-columns: 1fr 1fr; }

  .band li:nth-child(2) { border-right: 0; }
  .band li:nth-child(odd) { padding-left: 0; }
  .band li:nth-child(n + 3) { border-top: 1px solid #2a2a2a; }

  .mosaic { max-width: 520px; }

  .foot-top { align-items: flex-start; flex-direction: column; }

  .foot-top p { margin: 0; }
}

@media (max-width: 680px) {
  :root { --wrap: min(1160px, calc(100% - 40px)); }

  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 52px; }

  .mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 140px 110px 100px;
  }

  .tile-yellow { grid-row: 1 / 3; }
  .tile-mint,
  .tile-white { grid-column: 1 / 3; }

  .services,
  .cases,
  .about,
  .contact { padding: 64px 0; }

  .stage { min-height: 280px; }

  .form-row,
  .band ul,
  .foot-grid,
  .case dl { grid-template-columns: 1fr; }

  .band li,
  .band li + li {
    padding: 22px 0;
    border-right: 0;
    border-top: 1px solid #2a2a2a;
  }

  .band li:first-child { border-top: 0; }

  .contact button,
  .foot-top .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js .reveal,
  .menu {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .menu { transform: translateY(-110%); }
  .menu.open { transform: none; }
}
