:root {
  --ink: #171815;
  --muted: rgba(23, 24, 21, 0.62);
  --line: rgba(23, 24, 21, 0.15);
  --paper: #eeeade;
  --blue: #b9cdf5;
  --green: #b8d9c7;
  --orange: #eaad70;
  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: "Bricolage Grotesque", "Noto Sans SC", sans-serif;
  --mx: 0;
  --my: 0;
  color-scheme: light;
  font-family: var(--sans);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at calc(78% + var(--mx) * 3%) calc(8% + var(--my) * 2%), rgba(185, 205, 245, 0.92), transparent 34rem),
    linear-gradient(145deg, #eeeade 0 43%, #dfe8df 72%, #d5dfef 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  z-index: 90;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.64) 0 .45px, transparent .7px),
    radial-gradient(circle, rgba(0,0,0,.38) 0 .4px, transparent .7px);
  background-position: 0 0, 2px 2px;
  background-size: 4px 4px, 5px 5px;
  mix-blend-mode: soft-light;
  opacity: .18;
}

a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid #285f55; outline-offset: 4px; }

.intro-head {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 4.6rem;
  padding: 0 clamp(1.1rem, 2.8vw, 3.2rem);
  border-bottom: 1px solid var(--line);
  background: rgba(238, 234, 222, .72);
  backdrop-filter: blur(18px);
}

.intro-head p,
.intro-back {
  margin: 0;
  color: var(--muted);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.intro-head p:first-of-type { justify-self: center; }
.intro-head p:last-child { justify-self: end; }
.intro-back { justify-self: start; color: var(--ink); text-decoration: none; }
.intro-back span { margin-right: .52rem; color: #285f55; font-size: 1rem; transition: transform 200ms ease; }
.intro-back:hover span { display: inline-block; transform: translateX(-.22rem); }

main { padding-top: 4.6rem; }

.intro-hero {
  display: grid;
  grid-template-columns: minmax(28rem, .92fr) minmax(32rem, 1.08fr);
  min-height: calc(100svh - 4.6rem);
  scroll-margin-top: 4.6rem;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(3rem, 6vw, 7.2rem) clamp(1.4rem, 4.4vw, 5.8rem);
  background:
    linear-gradient(126deg, rgba(255,255,255,.36), transparent 46%),
    rgba(238,234,222,.44);
}

.eyebrow {
  margin: 0 0 clamp(1.35rem, 3vh, 2.4rem);
  color: #285f55;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .18em;
}

.hero-copy h1 {
  max-width: 8em;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.1rem, 4vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -.075em;
  line-height: 1.03;
}

.hero-lead {
  max-width: 41rem;
  margin: clamp(1.4rem, 3.6vh, 2.8rem) 0 0;
  color: rgba(23,24,21,.76);
  font-size: clamp(.88rem, 1.08vw, 1.08rem);
  line-height: 1.9;
}

.hero-actions {
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) minmax(11rem, .8fr);
  gap: 1rem;
  align-items: stretch;
  max-width: 43rem;
  margin-top: clamp(1.7rem, 4vh, 3.3rem);
}

.enter-examples {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.7rem;
  padding: 1rem 1.2rem;
  color: #fff;
  background: #1d5a4f;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  transition: color 220ms ease, background-color 220ms ease, transform 300ms cubic-bezier(.2,.8,.2,1);
}

.enter-examples b { font-size: 1.35rem; font-weight: 400; }
.enter-examples:hover { color: var(--ink); background: var(--orange); transform: translateY(-3px); }

.hero-actions p {
  margin: 0;
  padding: .9rem 0 .8rem .95rem;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: .63rem;
  letter-spacing: .06em;
  line-height: 1.7;
}

.hero-actions strong { color: var(--ink); font-size: .58rem; letter-spacing: .12em; }

.hero-workflow {
  position: relative;
  min-width: 0;
  min-height: 38rem;
  margin: 0;
  overflow: hidden;
  background: #171b1c;
  isolation: isolate;
}

.hero-workflow::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(30,90,79,.42), transparent 32%),
    linear-gradient(0deg, rgba(7,9,9,.7), transparent 23%);
  mix-blend-mode: screen;
}

.hero-workflow img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.035) translate3d(calc(var(--mx) * -9px), calc(var(--my) * -7px), 0);
  filter: saturate(.7) contrast(1.04);
  transition: transform 1.1s cubic-bezier(.2,.8,.2,1);
}

.hero-workflow figcaption {
  position: absolute;
  z-index: 5;
  right: clamp(1.2rem, 3vw, 3rem);
  bottom: clamp(1.2rem, 3vw, 3rem);
  left: clamp(1.2rem, 3vw, 3rem);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255,255,255,.82);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.workflow-marker {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: .45rem;
  color: #fff;
  font-size: .5rem;
  font-weight: 700;
  letter-spacing: .12em;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.45));
}

.workflow-marker i { width: .55rem; height: .55rem; border: 1px solid #fff; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 .35rem rgba(234,173,112,.17); }
.marker-a { top: 28%; left: 15%; }
.marker-b { top: 50%; left: 48%; }
.marker-c { top: 31%; right: 11%; }

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: rgba(247,245,238,.64);
}

.advantage-grid article { min-height: 17rem; padding: clamp(1.4rem, 2.5vw, 2.8rem); border-right: 1px solid var(--line); }
.advantage-grid article:last-child { border-right: 0; }
.advantage-grid p { margin: 0 0 3.8rem; color: #285f55; font-size: .6rem; font-weight: 700; letter-spacing: .15em; }
.advantage-grid h2 { margin: 0 0 1rem; font-family: var(--serif); font-size: clamp(1.35rem, 2.1vw, 2.2rem); font-weight: 500; letter-spacing: -.04em; }
.advantage-grid span { display: block; max-width: 23rem; color: var(--muted); font-size: .78rem; line-height: 1.75; }

.future {
  display: grid;
  grid-template-columns: minmax(24rem, .82fr) minmax(34rem, 1.18fr);
  min-height: 84svh;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 22%, rgba(234,173,112,.45), transparent 24rem),
    linear-gradient(135deg, #ebd8be, #c6d7ce 55%, #afc3e8);
}

.future-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 6vw, 7rem) clamp(1.4rem, 4.4vw, 5.8rem); border-right: 1px solid var(--line); }
.future-copy h2 { max-width: 9ch; margin: 0; font-family: var(--serif); font-size: clamp(3rem, 5.2vw, 6.5rem); font-weight: 500; letter-spacing: -.07em; line-height: 1.06; }
.future-copy > p:last-child { max-width: 34rem; margin: 2rem 0 0; color: rgba(23,24,21,.72); font-size: .92rem; line-height: 1.86; }

.future-cards { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); }
.future-card { display: grid; grid-template-columns: minmax(9rem,.65fr) minmax(15rem,1fr); grid-template-rows: auto 1fr; column-gap: clamp(1.4rem,3vw,3.6rem); padding: clamp(1.5rem,3vw,3.5rem); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.08); transition: background-color 250ms ease, transform 350ms cubic-bezier(.2,.8,.2,1); }
.future-card:last-child { border-bottom: 0; }
.future-card:hover { background: rgba(255,255,255,.24); transform: translateX(-.35rem); }
.future-card header { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 1rem; margin-bottom: clamp(1.2rem,2.5vh,2.2rem); font-size: .58rem; font-weight: 700; letter-spacing: .14em; }
.future-card header b { color: #285f55; }
.future-card h3 { margin: 0; font-family: var(--serif); font-size: clamp(1.45rem,2.3vw,2.6rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.2; }
.future-card p { align-self: end; margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.75; }

.reference-strip { display: grid; grid-template-columns: minmax(9rem,.5fr) minmax(24rem,1.4fr) minmax(15rem,.7fr); gap: 1.4rem; align-items: center; min-height: 9rem; padding: 1.4rem clamp(1.1rem,2.8vw,3.2rem) 3.5rem; background: #f2efe6; }
.reference-strip > p { margin: 0; color: var(--muted); font-size: .58rem; font-weight: 700; letter-spacing: .14em; }
.reference-strip > div { display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; }
.reference-strip > div a { color: var(--ink); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-underline-offset: .28rem; }
.enter-examples-bottom { justify-self: end; width: min(100%, 19rem); min-height: 3.8rem; }

.intro-foot { position: fixed; z-index: 55; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-between; gap: 1rem; padding: .65rem clamp(1.1rem,2.8vw,3.2rem); border-top: 1px solid rgba(23,24,21,.1); background: rgba(238,234,222,.74); backdrop-filter: blur(14px); pointer-events: none; }
.intro-foot p { margin: 0; color: rgba(23,24,21,.5); font-size: .5rem; font-weight: 700; letter-spacing: .13em; }

.reveal-item { opacity: 0; transform: translateY(1.6rem); transition: opacity 700ms ease, transform 900ms cubic-bezier(.18,.82,.18,1); }
.reveal-item.is-visible { opacity: 1; transform: none; }

.intro-wipe { position: fixed; z-index: 100; inset: 0; visibility: hidden; overflow: hidden; pointer-events: none; }
.intro-wipe i { position: absolute; inset: 0; display: block; transform: translateX(-105%); }
.intro-wipe i:nth-child(1) { background: #b9cdf5; }
.intro-wipe i:nth-child(2) { background: #b8d9c7; }
.intro-wipe i:nth-child(3) { background: var(--paper); }
body.is-arriving .intro-wipe, body.is-leaving .intro-wipe { visibility: visible; }
body.is-arriving .intro-wipe i { animation: wipe-in 940ms cubic-bezier(.72,0,.18,1) both; }
body.is-arriving .intro-wipe i:nth-child(2) { animation-delay: 65ms; }
body.is-arriving .intro-wipe i:nth-child(3) { animation-delay: 130ms; }
body.is-leaving .intro-wipe i { animation: wipe-out 680ms cubic-bezier(.68,0,.22,1) both; }
body.is-leaving .intro-wipe i:nth-child(2) { animation-delay: 55ms; }
body.is-leaving .intro-wipe i:nth-child(3) { animation-delay: 110ms; }
body.is-arriving main { animation: main-in 980ms cubic-bezier(.18,.82,.18,1) both; }

@keyframes wipe-in { 0% { transform: translateX(-105%); } 50% { transform: translateX(0); } 100% { transform: translateX(105%); } }
@keyframes wipe-out { from { transform: translateX(105%); } to { transform: translateX(0); } }
@keyframes main-in { 0%,35% { opacity: 0; transform: translateY(.8rem); } 100% { opacity: 1; transform: none; } }

@media (max-width: 1180px) {
  .advantage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .advantage-grid article { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .advantage-grid article:nth-child(even) { border-right: 0; }
  .advantage-grid article:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
}

@media (max-width: 980px) {
  .intro-hero { grid-template-columns: 1fr; }
  .hero-workflow { min-height: 58svh; }
  .future { grid-template-columns: 1fr; }
  .future-copy { min-height: 62svh; border-right: 0; border-bottom: 1px solid var(--line); }
  .reference-strip { grid-template-columns: 1fr; }
  .enter-examples-bottom { justify-self: start; }
}

@media (max-width: 620px) {
  .intro-head,
  .intro-foot {
    background: rgba(238, 234, 222, .94);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .intro-head { grid-template-columns: 1fr auto; height: 4.2rem; padding: 0 1rem; }
  .intro-head p:first-of-type { display: none; }
  .intro-head p:last-child { font-size: .52rem; }
  main { padding-top: 4.2rem; }
  .intro-hero { scroll-margin-top: 4.2rem; }
  .hero-copy { padding: 3.2rem 1.05rem 2.4rem; }
  .hero-copy h1 { font-size: clamp(2.8rem,13.2vw,4.2rem); }
  .hero-lead { font-size: .8rem; line-height: 1.75; }
  .hero-actions { grid-template-columns: 1fr; }
  .hero-actions p { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .hero-workflow { min-height: 46svh; }
  .hero-workflow figcaption { font-size: .48rem; }
  .workflow-marker { font-size: .42rem; }
  .advantage-grid { grid-template-columns: 1fr; }
  .advantage-grid article { min-height: 13rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .advantage-grid article:last-child { grid-column: auto; border-bottom: 0; }
  .advantage-grid p { margin-bottom: 2.6rem; }
  .future-copy { min-height: 56svh; padding: 3rem 1.05rem; }
  .future-copy h2 { font-size: 3rem; }
  .future-card { grid-template-columns: 1fr; row-gap: 1rem; padding: 2rem 1.05rem; }
  .future-card p { margin-top: 1rem; }
  .reference-strip { padding: 2.3rem 1rem 4rem; }
  .intro-foot { padding-right: 1rem; padding-left: 1rem; }
  .intro-foot p:first-child { display: none; }
  .intro-foot p:last-child { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal-item { opacity: 1; transform: none; }
  .hero-workflow img { transform: none; }
}
