:root {
  --plum: #2f1933;
  --plum-soft: #49264e;
  --shoot: #dceb77;
  --clay: #d56f4b;
  --paper: #fff4d8;
  --ink: #231e1c;
  --line: rgba(35, 30, 28, 0.72);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --space-1: clamp(0.5rem, 0.8vw, 0.75rem);
  --space-2: clamp(0.9rem, 1.5vw, 1.4rem);
  --space-3: clamp(1.5rem, 3vw, 3rem);
  --space-4: clamp(2.5rem, 6vw, 6rem);
  --space-5: clamp(4rem, 9vw, 9rem);
  --header-height: 4.75rem;
  --body-size: clamp(0.98rem, 0.2vw + 0.94rem, 1.12rem);
  --ease-field: cubic-bezier(0.22, 0.72, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--plum);
  color: var(--ink);
  overflow-x: hidden;
  scroll-padding-top: calc(var(--header-height) + 0.75rem);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--plum);
  font-family: var(--font-sans);
  font-size: var(--body-size);
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--paper);
  outline-offset: -6px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 0.7rem clamp(1rem, 3.5vw, 4rem);
  border-bottom: 2px solid var(--ink);
  background: var(--shoot);
  color: var(--ink);
}

.brand {
  max-width: 19rem;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}

.main-nav {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  align-items: center;
  gap: clamp(0.25rem, 1.8vw, 1.8rem);
}

.main-nav a {
  position: relative;
  min-height: 2.75rem;
  display: grid;
  place-items: center;
  padding: 0.25rem 0.15rem;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.2rem;
  left: 0;
  height: 0.3rem;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(16rem, 0.7fr);
  grid-template-rows: 1fr auto;
  border-bottom: 2px solid var(--ink);
  background: var(--plum);
  overflow: hidden;
}

.hero-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: grid;
  grid-template-columns: 13fr 7fr 9fr;
  grid-template-rows: 9fr 5fr 7fr;
}

.plot {
  display: block;
  border: 1px solid var(--ink);
}

.plot-a {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  background: var(--shoot);
  clip-path: polygon(0 0, 92% 0, 100% 78%, 71% 100%, 0 90%);
}

.plot-b {
  grid-column: 3;
  grid-row: 1 / 3;
  margin-left: -11%;
  background: var(--clay);
  clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 82%);
}

.plot-c {
  grid-column: 1;
  grid-row: 3;
  margin-top: -8%;
  background: var(--paper);
  clip-path: polygon(0 0, 100% 13%, 84% 100%, 0 100%);
}

.plot-d {
  grid-column: 2;
  grid-row: 3;
  margin: -16% -15% 0 -18%;
  background: var(--plum-soft);
  clip-path: polygon(18% 0, 100% 17%, 88% 100%, 0 100%);
}

.plot-e {
  grid-column: 3;
  grid-row: 3;
  margin-top: -9%;
  background: var(--paper);
  clip-path: polygon(0 14%, 100% 0, 100% 100%, 11% 100%);
}

.hero-copy {
  position: relative;
  isolation: isolate;
  align-self: end;
  max-width: 54rem;
  padding: var(--space-5) var(--space-3) var(--space-4) clamp(1rem, 5vw, 6rem);
}

.hero-copy::before,
.hero-insight::before,
.hero-subtitle::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-copy::before {
  background: var(--shoot);
  clip-path: polygon(0 0, 96% 0, 100% 90%, 88% 100%, 0 96%);
}

.section-kicker {
  margin: 0 0 var(--space-1);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.hero h1 {
  max-width: 9em;
  margin: 0;
  color: var(--ink);
  font-size: clamp(3.1rem, 8.2vw, 8.8rem);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 0.94;
}

.hero-insight {
  position: relative;
  isolation: isolate;
  align-self: center;
  justify-self: stretch;
  margin: var(--space-4) var(--space-3) var(--space-4) 0;
  padding: var(--space-3);
  color: var(--ink);
  font-size: clamp(1.35rem, 2.6vw, 2.8rem);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.22;
}

.hero-insight::before {
  background: var(--clay);
  clip-path: polygon(7% 0, 100% 5%, 100% 92%, 0 100%, 3% 20%);
}

.hero-subtitle {
  position: relative;
  isolation: isolate;
  grid-column: 2;
  align-self: end;
  margin: 0;
  padding: var(--space-3);
  color: var(--ink);
  font-size: clamp(0.98rem, 1.3vw, 1.35rem);
  font-weight: 650;
  line-height: 1.6;
}

.hero-subtitle::before {
  background: var(--paper);
  clip-path: polygon(4% 7%, 100% 0, 100% 100%, 0 94%);
}

.section-anchor {
  scroll-margin-top: calc(var(--header-height) + 0.5rem);
}

.section-heading h2,
.about-heading h2 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.95;
}

.advantages {
  display: grid;
  grid-template-columns: minmax(12rem, 0.42fr) minmax(0, 1.58fr);
  min-height: 44rem;
  background: var(--clay);
  border-bottom: 2px solid var(--ink);
}

.advantages-heading {
  padding: var(--space-4) var(--space-3);
  align-self: center;
}

.advantage-field {
  display: flex;
  min-width: 0;
  border-left: 2px solid var(--ink);
  overflow: hidden;
}

.advantage-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-2);
  padding: var(--space-4) clamp(1rem, 2vw, 2.25rem);
  border-right: 2px solid var(--ink);
  background: var(--paper);
  transition: flex-grow 520ms var(--ease-field), background-color 520ms var(--ease-field), color 520ms var(--ease-field);
}

.advantage-item:nth-child(even) {
  background: var(--plum);
  color: var(--paper);
}

.advantage-item:last-child {
  border-right: 0;
}

.advantage-item:hover,
.advantage-item:focus-visible {
  flex-grow: 1.65;
  background: var(--shoot);
  color: var(--ink);
}

.advantage-item h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 2.45rem);
  line-height: 1.18;
  letter-spacing: -0.05em;
}

.advantage-item p {
  margin: 0;
  font-size: clamp(0.88rem, 0.25vw + 0.82rem, 1.02rem);
}

.services {
  padding: var(--space-4) clamp(1rem, 4vw, 4rem) var(--space-5);
  background: var(--plum);
  color: var(--paper);
}

.services-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.services-heading .section-kicker {
  order: 2;
}

.business-field {
  --col-a: 7fr;
  --col-b: 5fr;
  --row-a: 1.1fr;
  --row-b: 0.9fr;
  min-height: 48rem;
  display: grid;
  grid-template-columns: var(--col-a) var(--col-b);
  grid-template-rows: var(--row-a) var(--row-b);
  border: 2px solid var(--paper);
  transition: grid-template-columns 520ms var(--ease-field), grid-template-rows 520ms var(--ease-field);
}

.business-field:has(.business-one:hover),
.business-field:has(.business-one:focus-visible) {
  --col-a: 8fr;
  --col-b: 4fr;
  --row-a: 1.25fr;
  --row-b: 0.75fr;
}

.business-field:has(.business-two:hover),
.business-field:has(.business-two:focus-visible) {
  --col-a: 6fr;
  --col-b: 6fr;
  --row-a: 1.25fr;
  --row-b: 0.75fr;
}

.business-field:has(.business-three:hover),
.business-field:has(.business-three:focus-visible) {
  --col-a: 8fr;
  --col-b: 4fr;
  --row-a: 0.8fr;
  --row-b: 1.2fr;
}

.business-field:has(.business-four:hover),
.business-field:has(.business-four:focus-visible) {
  --col-a: 5fr;
  --col-b: 7fr;
  --row-a: 0.8fr;
  --row-b: 1.2fr;
}

.business-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.25rem, 3vw, 3.2rem);
  outline-color: var(--shoot);
}

.business-one {
  background: var(--shoot);
  color: var(--ink);
  border-right: 2px solid var(--paper);
  border-bottom: 2px solid var(--paper);
}

.business-two {
  background: var(--plum-soft);
  border-bottom: 2px solid var(--paper);
}

.business-three {
  background: var(--clay);
  color: var(--ink);
  border-right: 2px solid var(--paper);
}

.business-four {
  background: var(--paper);
  color: var(--ink);
}

.business-item h3 {
  margin: 0 0 var(--space-1);
  font-size: clamp(1.65rem, 3vw, 3.6rem);
  letter-spacing: -0.06em;
  line-height: 1.05;
}

.business-insight {
  margin: 0 0 var(--space-2) !important;
  font-size: clamp(1.02rem, 1vw + 0.75rem, 1.45rem);
  font-weight: 800;
  line-height: 1.4;
}

.business-item p:last-child {
  max-width: 38em;
  margin: 0;
}

.about {
  display: grid;
  grid-template-columns: minmax(14rem, 0.58fr) minmax(0, 1.42fr);
  background: var(--paper);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.about-heading {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 32rem;
  padding: var(--space-4) var(--space-3);
  background: var(--shoot);
  border-right: 2px solid var(--ink);
}

.about-copy {
  align-self: center;
  padding: var(--space-5) clamp(1.5rem, 6vw, 7rem);
}

.about-copy p {
  max-width: 46em;
  margin: 0;
  font-size: clamp(1.1rem, 1vw + 0.8rem, 1.65rem);
  font-weight: 560;
  line-height: 2;
}

.site-footer {
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--space-3) 1rem;
  background: var(--plum);
  color: var(--paper);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--shoot);
  text-underline-offset: 0.3em;
}

@media (max-width: 767px) {
  :root {
    --header-height: 6.6rem;
  }

  .site-header {
    align-items: stretch;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.45rem 0.75rem 0.55rem;
  }

  .brand {
    display: none;
  }

  .main-nav {
    flex: 1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }

  .main-nav a {
    min-width: 0;
    padding-inline: 0.1rem;
    font-size: clamp(0.73rem, 3.35vw, 0.9rem);
    line-height: 1.25;
    text-align: center;
  }

  .hero {
    min-height: calc(100svh - var(--header-height));
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto auto;
  }

  .hero-field {
    grid-template-columns: 8fr 5fr;
    grid-template-rows: 8fr 3fr 4fr;
  }

  .plot-a {
    grid-column: 1 / 3;
    grid-row: 1;
    clip-path: polygon(0 0, 100% 0, 92% 92%, 0 100%);
  }

  .plot-b {
    grid-column: 2;
    grid-row: 2 / 4;
    margin: -12% 0 0 -12%;
    clip-path: polygon(14% 0, 100% 8%, 100% 100%, 0 91%);
  }

  .plot-c {
    grid-column: 1;
    grid-row: 2;
    margin-top: -8%;
    clip-path: polygon(0 10%, 100% 0, 89% 100%, 0 94%);
  }

  .plot-d {
    grid-column: 1;
    grid-row: 3;
    margin: -7% -10% 0 0;
    clip-path: polygon(0 0, 100% 12%, 91% 100%, 0 100%);
  }

  .plot-e {
    display: none;
  }

  .hero-copy {
    align-self: end;
    padding: var(--space-4) 1rem var(--space-3);
  }

  .hero-copy::before {
    clip-path: polygon(0 0, 100% 0, 96% 94%, 80% 100%, 0 97%);
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 5.4rem);
  }

  .hero-insight,
  .hero-subtitle {
    grid-column: 1;
    justify-self: auto;
    margin: 0;
    padding: 1rem;
  }

  .hero-insight::before {
    clip-path: polygon(0 5%, 96% 0, 100% 88%, 8% 100%, 0 92%);
  }

  .hero-subtitle::before {
    clip-path: polygon(4% 0, 100% 7%, 100% 100%, 0 100%);
  }

  .hero-insight {
    align-self: stretch;
    display: flex;
    align-items: center;
    font-size: clamp(1.2rem, 6vw, 1.75rem);
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .advantages {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .advantages-heading {
    padding: var(--space-3) 1rem;
  }

  .advantage-field {
    min-height: 0;
    flex-direction: column;
    border-top: 2px solid var(--ink);
    border-left: 0;
  }

  .advantage-item {
    min-height: 13rem;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
    padding: var(--space-3) 1rem;
    transition: min-height 520ms var(--ease-field), background-color 520ms var(--ease-field), color 520ms var(--ease-field);
  }

  .advantage-item:hover,
  .advantage-item:focus-visible {
    min-height: 15.5rem;
  }

  .advantage-item:last-child {
    border-bottom: 0;
  }

  .services {
    padding-inline: 0;
  }

  .services-heading {
    padding-inline: 1rem;
  }

  .business-field {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    border-inline: 0;
  }

  .business-item {
    min-height: 19rem;
    padding: var(--space-3) 1rem;
    border-right: 0;
    border-bottom: 2px solid var(--paper);
  }

  .business-item:last-child {
    border-bottom: 0;
  }

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

  .about-heading {
    min-height: auto;
    padding: var(--space-3) 1rem;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .about-copy {
    padding: var(--space-4) 1rem;
  }

  .about-copy p {
    line-height: 1.85;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  :root {
    --header-height: 3.25rem;
  }

  .site-header {
    min-height: var(--header-height);
    flex-direction: row;
    align-items: center;
    padding: 0.2rem 0.8rem;
  }

  .brand {
    display: block;
    max-width: 13rem;
    font-size: 0.72rem;
  }

  .main-nav {
    flex: initial;
    grid-template-columns: repeat(4, max-content);
    gap: 0.8rem;
  }

  .main-nav a {
    min-height: 2.6rem;
    font-size: 0.72rem;
  }

  .hero {
    min-height: calc(100svh - var(--header-height));
    grid-template-columns: 1.35fr 0.65fr;
    grid-template-rows: 1fr auto;
  }

  .hero-copy {
    padding: 1rem 1.5rem;
  }

  .hero-copy::before {
    clip-path: polygon(0 0, 98% 0, 100% 90%, 86% 100%, 0 96%);
  }

  .hero h1 {
    font-size: clamp(2.8rem, 8vw, 4.5rem);
  }

  .hero-insight {
    grid-column: 2;
    align-self: center;
    margin: 0;
    padding: 0.75rem 1rem;
    font-size: clamp(1rem, 2.4vw, 1.45rem);
  }

  .hero-insight::before {
    clip-path: polygon(5% 0, 100% 4%, 100% 92%, 0 100%);
  }

  .hero-subtitle {
    grid-column: 2;
    padding: 0.65rem 1rem;
    font-size: 0.72rem;
    line-height: 1.45;
  }

  .hero-subtitle::before {
    clip-path: polygon(4% 0, 100% 0, 100% 100%, 0 92%);
  }
}

@media (min-width: 1100px) {
  .main-nav a {
    padding-inline: 0.45rem;
  }

  .business-one,
  .business-four {
    padding-right: clamp(3rem, 6vw, 7rem);
  }
}

@media (min-width: 1440px) {
  :root {
    --header-height: 5rem;
  }

  .site-header {
    padding-inline: clamp(4rem, 6vw, 7rem);
  }

  .hero-copy {
    padding-left: clamp(6rem, 8vw, 10rem);
  }

  .advantage-item {
    padding-inline: clamp(2rem, 2.5vw, 3.5rem);
  }
}

@media (min-aspect-ratio: 2 / 1) and (min-width: 1000px) {
  .hero {
    min-height: max(28rem, calc(100svh - var(--header-height)));
    grid-template-columns: 1.55fr 0.45fr;
  }

  .hero h1 {
    font-size: clamp(4.8rem, 6.8vw, 8.5rem);
  }

  .hero-copy {
    padding-block: var(--space-3);
  }

  .hero-insight,
  .hero-subtitle {
    padding-inline: var(--space-2);
  }
}

@media (max-aspect-ratio: 3 / 4) and (min-width: 768px) {
  .hero {
    min-height: calc(80svh - var(--header-height));
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto auto;
  }

  .hero-insight,
  .hero-subtitle {
    grid-column: 1;
    margin: 0;
    padding-inline: var(--space-3);
  }

  .hero h1 {
    font-size: clamp(5rem, 11vw, 7.5rem);
  }

  .advantages {
    grid-template-columns: 1fr;
    min-height: 56rem;
  }

  .advantage-field {
    border-top: 2px solid var(--ink);
    border-left: 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
