/* Home page. Blue opening, night story, mist work, night product, white contact. */

.page-home {
  background: var(--blue);
}

.page-home main {
  background: var(--paper);
}

/* ---------------------------------------------------------------- 1. hero */

.hero {
  --hp: 0;
  position: relative;
  height: 140svh;
  background: var(--blue);
  color: #fff;
}

.hero__stage {
  position: sticky;
  top: 0;
  display: grid;
  place-items: center;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero__lotus {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: min(118vw, 1500px);
  transform: translate(calc(-50% + var(--mx, 0) * 14px), calc(-54% + var(--my, 0) * 10px)) scale(calc(1 + var(--hp) * 0.35));
  transition: transform 0.6s var(--ease-out);
  opacity: calc(1 - var(--hp) * 0.9);
  pointer-events: none;
}

.hero__lotus .lotus {
  width: 100%;
  height: auto;
  overflow: visible;
}

.hero__lotus path {
  fill: url(#hero-petal);
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 0.12;
  transform: translate(calc(var(--dx, 0) * var(--hp) * 1px), calc(var(--dy, 0) * var(--hp) * 1px)) rotate(calc(var(--rot, 0) * var(--hp) * 1deg));
}

.hero__lotus path:nth-child(3n) {
  fill: url(#hero-petal-2);
}

/* the lotus opens: petals unfold from the base, the centre first and the outer ones last */
.lotus-bloom path {
  transform-box: view-box;
  transform-origin: 75.5px 78px;
  rotate: var(--r, 0deg);
  scale: 0.2;
  opacity: 0;
  transition:
    rotate 1.5s var(--ease-out) var(--d, 0s),
    scale 1.5s var(--ease-out) var(--d, 0s),
    opacity 1s var(--ease) var(--d, 0s);
}

.lotus-bloom .p4 { --r: 0deg; --d: 0s; }
.lotus-bloom .p5 { --r: -14deg; --d: 0.06s; }
.lotus-bloom .p6 { --r: 14deg; --d: 0.06s; }
.lotus-bloom .p0 { --r: -22deg; --d: 0.14s; }
.lotus-bloom .p1 { --r: 22deg; --d: 0.14s; }
.lotus-bloom .p9 { --r: -30deg; --d: 0.21s; }
.lotus-bloom .p10 { --r: 30deg; --d: 0.21s; }
.lotus-bloom .p2 { --r: -40deg; --d: 0.28s; }
.lotus-bloom .p3 { --r: 40deg; --d: 0.28s; }
.lotus-bloom .p7 { --r: -55deg; --d: 0.36s; }
.lotus-bloom .p8 { --r: 55deg; --d: 0.36s; }

.lotus-bloom.is-open path {
  rotate: 0deg;
  scale: 1;
  opacity: 1;
}

html:not(.js) .lotus-bloom path {
  rotate: 0deg;
  scale: 1;
  opacity: 1;
}

.hero__copy {
  width: min(1100px, 100% - var(--gutter) * 2);
  text-align: center;
  transform: translateY(calc(var(--hp) * -18vh)) scale(calc(1 - var(--hp) * 0.08));
  opacity: calc(1 - var(--hp) * 0.85);
}

.hero__title {
  display: grid;
  justify-items: center;
  font-size: clamp(38px, 6.4vw, 92px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero__title span {
  display: block;
  overflow: hidden;
  padding: 0 0.04em 0.06em;
}

.hero__title i {
  display: block;
  font-style: normal;
  animation: line-up 1.2s var(--ease-out) 0.15s both;
}

.hero__title span + span i {
  animation-delay: 0.28s;
}

@keyframes line-up {
  from {
    transform: translateY(105%);
  }
}

.hero__lead {
  margin-top: clamp(18px, 2.4vw, 28px);
  color: var(--peri);
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 700;
  letter-spacing: 0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
  animation: rise 1.2s var(--ease-out) 0.45s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

.hero__down {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 5vh, 48px);
  display: grid;
  place-items: center;
  width: 52px;
  height: 36px;
  margin-left: -26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  opacity: calc(1 - var(--hp) * 3);
  transition: background 0.2s var(--ease);
  animation: rise 1s var(--ease-out) 0.8s both;
}

.hero__down:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero__down svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: nudge 2.4s ease-in-out infinite;
}

@keyframes nudge {
  50% {
    transform: translateY(3px);
  }
}

/* ---------------------------------------------------------------- 2. two doors */

.intro {
  position: relative;
  z-index: 1;
  margin-top: -40svh;
  padding: 0 var(--gutter) clamp(96px, 12vw, 160px);
  background: linear-gradient(180deg, transparent 0, var(--blue) 40svh);
  color: #fff;
}

.intro__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
  max-width: 1240px;
  margin-inline: auto;
}

.door__label {
  margin-bottom: 14px;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.door__card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 0.86;
  border-radius: var(--radius);
  background: var(--night-2);
  isolation: isolate;
}

.door__card--chips {
  background: linear-gradient(160deg, #0d2140 0%, #07111f 100%);
}

.door__text {
  max-width: 34em;
  margin-top: 22px;
  color: var(--peri);
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 700;
  line-height: 1.75;
}

.door__text b {
  color: #fff;
}

.door__toggle {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.35s var(--ease-out), background 0.2s;
}

.door__toggle:hover {
  background: var(--blue-3);
}

.door__toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.door__toggle[aria-expanded="true"] {
  transform: rotate(45deg);
  background: #fff;
  color: var(--blue);
}

.door__menu {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: end;
  gap: 4px;
  padding: 24px 24px 84px;
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.55), rgba(7, 17, 31, 0.94) 45%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.door.is-open .door__menu {
  opacity: 1;
  visibility: visible;
}

.door__menu a {
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(12px);
  opacity: 0;
  transition: background 0.2s, transform 0.45s var(--ease-out), opacity 0.45s var(--ease-out);
}

.door.is-open .door__menu a {
  transform: none;
  opacity: 1;
}

.door.is-open .door__menu a:nth-child(2) {
  transition-delay: 0.04s;
}

.door.is-open .door__menu a:nth-child(3) {
  transition-delay: 0.08s;
}

.door.is-open .door__menu a:nth-child(4) {
  transition-delay: 0.12s;
}

.door__menu a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.door__menu b {
  font-size: 17px;
}

.door__menu span {
  color: var(--peri);
  font-size: 13px;
}

/* the orbit: who we work with, circling the mark */
.orbit {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.orbit__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1px solid rgba(167, 200, 255, 0.16);
  transform: translate(-50%, -50%);
}

.orbit__ring--1 {
  width: 34%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(11, 92, 255, 0.4), transparent 70%);
}

.orbit__ring--2 {
  width: 58%;
  aspect-ratio: 1;
}

.orbit__ring--3 {
  width: 84%;
  aspect-ratio: 1;
  border-style: dashed;
  border-color: rgba(167, 200, 255, 0.12);
}

.orbit__core {
  position: relative;
  width: 17%;
  height: auto;
  filter: drop-shadow(0 0 24px rgba(96, 211, 210, 0.45));
  animation: breathe 5s ease-in-out infinite;
}

@keyframes breathe {
  50% {
    transform: scale(1.06);
  }
}

.orbit__body {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--d);
  aspect-ratio: 1;
  margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2);
  animation: spin var(--t) linear infinite;
  animation-delay: var(--o);
}

.orbit__body i {
  position: absolute;
  left: 50%;
  top: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: clamp(11px, 1vw, 14px);
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  animation: spin var(--t) linear infinite reverse;
  animation-delay: var(--o);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.orbit__body--a {
  --d: 58%;
  --t: 38s;
  --o: -4s;
}

.orbit__body--b {
  --d: 58%;
  --t: 38s;
  --o: -23s;
}

.orbit__body--c {
  --d: 84%;
  --t: 56s;
  --o: -10s;
}

.orbit__body--c i {
  background: var(--mint);
  color: var(--ink);
}

.orbit__body--d {
  --d: 84%;
  --t: 56s;
  --o: -38s;
}

.orbit__body--d i {
  background: var(--aqua);
  color: var(--ink);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* the chips: what we do, scattered like notes on a desk */
.chips {
  position: absolute;
  inset: 0;
}

.chip {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: inline-grid;
  gap: 1px;
  padding: 10px 18px 12px;
  border-radius: 14px;
  font-size: clamp(16px, 1.9vw, 26px);
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  transform: rotate(var(--r));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
  animation: float 7s ease-in-out infinite;
  animation-delay: calc(var(--r) * -0.4s / 1deg);
  transition: transform 0.6s var(--ease-out);
}

.chip small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.65;
}

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

.chip--aqua {
  background: var(--aqua);
  color: var(--ink);
}

.chip--sky {
  background: var(--sky);
  color: var(--ink);
}

.chip--blue {
  background: var(--blue);
  color: #fff;
}

.chip--navy {
  background: #0d2a6b;
  color: #fff;
}

.chip--white {
  background: #fff;
  color: var(--blue);
}

@keyframes float {
  50% {
    translate: 0 -8px;
  }
}

.door__card--chips:hover .chip {
  transform: rotate(calc(var(--r) * -0.6));
}

/* ---------------------------------------------------------------- 3. story */

.story {
  --sp: 0;
  position: relative;
  height: 320svh;
  background: var(--night);
  color: #fff;
}

.story__stage {
  position: sticky;
  top: 0;
  display: grid;
  place-items: center;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.story__ripples {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: grid;
  place-items: center;
}

.story__ripples i {
  position: absolute;
  width: 40vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(96, 211, 210, 0.16);
  animation: ripple 9s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
  opacity: 0;
}

.story__ripples i:nth-child(2) {
  animation-delay: 2.25s;
}

.story__ripples i:nth-child(3) {
  animation-delay: 4.5s;
}

.story__ripples i:nth-child(4) {
  animation-delay: 6.75s;
}

@keyframes ripple {
  0% {
    transform: scale(0.15);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

.story__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(60% 50% at 50% 50%, rgba(11, 92, 255, 0.22), transparent 70%),
    radial-gradient(40% 30% at 50% 100%, rgba(96, 211, 210, 0.08), transparent 70%);
}

.story__stars {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.story__lines {
  display: grid;
  width: min(1040px, 100% - var(--gutter) * 2);
  text-align: center;
}

.story__line {
  grid-area: 1 / 1;
  display: grid;
  justify-items: center;
  align-content: center;
  font-size: clamp(24px, 3.6vw, 52px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  opacity: 0;
  transform: translateY(30px);
  filter: blur(6px);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease-out), filter 0.7s var(--ease);
}

.story__line span:last-child {
  color: rgba(255, 255, 255, 0.92);
}

.story__line em {
  font-style: normal;
  background: var(--lotus);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.story__line.is-on {
  opacity: 1;
  transform: none;
  filter: none;
}

.story__line.is-past {
  opacity: 0;
  transform: translateY(-30px);
  filter: blur(6px);
}

.story__meter {
  position: absolute;
  left: 50%;
  bottom: 40px;
  display: grid;
  justify-items: center;
  gap: 12px;
  transform: translateX(-50%);
}

.story__count {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
}

.story__count b {
  color: #fff;
}

.story__progress {
  display: block;
  width: 120px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.story__progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--lotus);
  transform-origin: left;
  transform: scaleX(var(--sp));
}

/* ---------------------------------------------------------------- 4. work: stacking cards */

.work {
  padding: clamp(120px, 14vw, 200px) 0 clamp(80px, 10vw, 140px);
  background: var(--mist);
}

.work__title {
  max-width: 11em;
  margin-bottom: clamp(64px, 9vw, 120px);
  color: var(--blue);
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.stack {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
}

.stack__card {
  --dim: 0;
  position: sticky;
  top: calc(var(--header-h) + 32px + var(--n, 0) * 14px);
  transform: scale(calc(1 - var(--dim) * 0.06));
  transform-origin: 50% 0;
}

/* a card that is being covered fades toward the background instead of turning see-through */
.stack__card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: var(--mist);
  opacity: calc(var(--dim) * 0.7);
  pointer-events: none;
}

.stack__link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "top num"
    "title desc"
    "title points"
    "more points";
  position: relative;
  overflow: hidden;
  align-items: start;
  gap: 16px clamp(24px, 4vw, 64px);
  min-height: min(68svh, 560px);
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 1px 2px rgba(6, 29, 82, 0.04), 0 30px 80px rgba(6, 29, 82, 0.08);
  transition: box-shadow 0.3s var(--ease);
}

.stack__link:hover {
  box-shadow: 0 1px 2px rgba(6, 29, 82, 0.04), 0 30px 80px rgba(6, 29, 82, 0.16);
}

.stack__top {
  grid-area: top;
  display: flex;
  align-items: center;
  gap: 14px;
}

.stack__num {
  grid-area: num;
  justify-self: end;
  margin: -0.12em -0.04em 0 0;
  color: var(--mist);
  font-size: clamp(88px, 13vw, 200px);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
  transition: color 0.4s var(--ease);
  pointer-events: none;
}

.stack__link:hover .stack__num {
  color: var(--mist-2);
}

.stack__link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--lotus);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}

.stack__link:hover::before {
  transform: scaleX(1);
}

.stack__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
}

.stack__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stack__kicker {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.stack__title {
  grid-area: title;
  align-self: end;
  padding-top: clamp(40px, 8vw, 120px);
  color: var(--blue);
  font-size: clamp(32px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.stack__desc {
  grid-area: desc;
  align-self: end;
  padding-top: clamp(40px, 8vw, 120px);
  color: var(--ink);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 700;
  line-height: 1.7;
}

.stack__points {
  grid-area: points;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 8px;
}

.stack__points li {
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.stack__more {
  grid-area: more;
  align-self: end;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.stack__more::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}

.stack__link:hover .stack__more::after {
  transform: translateX(4px) rotate(45deg);
}

/* ---------------------------------------------------------------- 5. bloom: the mark becomes the night */

.pager {
  display: none;
}

.bloom {
  --bp: 0;
  position: relative;
  height: 230svh;
  background: var(--mist);
}

.bloom__stage {
  position: sticky;
  top: 0;
  display: grid;
  place-items: center;
  height: 100svh;
  overflow: hidden;
}

.bloom__mark {
  width: min(56vw, 640px);
  transform: scale(calc(1 + var(--bp) * var(--bp) * var(--bp) * var(--bp) * 110));
  transform-origin: 49.93% 51.5%;
}

.bloom__mark .lotus {
  width: 100%;
  height: auto;
}

.bloom__mark path {
  fill: var(--navy);
}

.bloom__mark .p4 {
  fill: var(--night);
}

.bloom__veil {
  position: absolute;
  inset: 0;
  background: var(--night);
  opacity: clamp(0, calc((var(--bp) - 0.9) * 10), 1);
  pointer-events: none;
}

/* ---------------------------------------------------------------- 6. product */

.product {
  padding: clamp(96px, 12vw, 160px) 0 clamp(80px, 10vw, 120px);
  background: var(--night);
  color: #fff;
}

.product__head {
  max-width: 900px;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.product__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
}

.product__brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.product__brand span {
  background: var(--lotus);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.product__title {
  display: grid;
  font-size: clamp(30px, 4.6vw, 64px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.product__dim {
  color: rgba(255, 255, 255, 0.42);
}

.product__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}

.badge-link img {
  width: 132px;
  height: auto;
}

.panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.panel {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: 24px;
  border: 1px solid var(--line-dark);
  background: var(--night-card);
}

.panel--wide {
  grid-column: 1 / -1;
}

.panel__title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.panel__shot {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.panel__note {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.7;
}

.panel--partner {
  align-content: space-between;
  background: linear-gradient(160deg, var(--blue) 0%, #0040c8 100%);
  border-color: transparent;
}

.panel__body {
  color: var(--peri-2);
  font-size: 14px;
  line-height: 1.85;
}

.panel--partner .btn {
  justify-self: start;
}

.review {
  display: grid;
  gap: 12px;
  min-height: 228px;
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
}

.review__stars {
  color: #f6b83c;
  letter-spacing: 0.1em;
  font-size: 14px;
}

.review__quote {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.review__reply {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: 12px;
  background: var(--mist);
}

.review__reply img {
  border-radius: 6px;
}

.review__reply p {
  min-height: 4.8em;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}

.review__reply p.is-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--blue);
  animation: caret 1s steps(1) infinite;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

.review__approve {
  justify-self: end;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.35;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.review.is-ready .review__approve {
  opacity: 1;
  transform: scale(1.04);
}

.tasks {
  display: grid;
  gap: 14px;
  min-height: 228px;
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
}

.tasks__head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
}

.tasks__head b {
  color: var(--blue);
}

.tasks__list {
  display: grid;
  gap: 8px;
}

.tasks__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  transition: color 0.3s;
}

.tasks__list i {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  transition: background 0.3s, border-color 0.3s;
}

.tasks__list li.is-doing i {
  border-color: var(--blue);
  border-right-color: transparent;
  animation: spin 0.9s linear infinite;
}

.tasks__list li.is-done {
  color: var(--ink);
}

.tasks__list li.is-done i {
  border-color: var(--blue);
  background: var(--blue);
}

.tasks__list li.is-done i::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2.5px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.tasks__bar {
  height: 6px;
  border-radius: 6px;
  background: var(--mist);
  overflow: hidden;
}

.tasks__bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 6px;
  background: var(--lotus);
  transition: width 0.6s var(--ease);
}

/* ---------------------------------------------------------------- 7. for whom */

.for {
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  background: var(--night);
  color: #fff;
}

.for__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.32fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 48px);
  max-width: 1240px;
  margin-inline: auto;
}

.for__label {
  position: sticky;
  top: 50svh;
  align-self: start;
  transform: translateY(-50%);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.for__list {
  display: grid;
  padding-block: 30svh;
}

.for__list li {
  --f: 0;
  font-size: clamp(36px, 6.4vw, 92px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.for__list a {
  display: inline-block;
  color: rgb(255 255 255 / calc(0.16 + var(--f) * 0.84));
  transition: color 0.25s linear;
}

.for__list a::after {
  content: "→";
  display: inline-block;
  margin-left: 0.25em;
  opacity: 0;
  transform: translateX(-0.3em);
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease-out);
}

.for__list li.is-active a::after {
  opacity: 1;
  transform: none;
}

.for__list li.is-active a {
  background: var(--lotus);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.for__list a:hover {
  color: #fff;
}

/* ---------------------------------------------------------------- 8. mission */

.mission {
  padding: clamp(40px, 6vw, 80px) 0 clamp(96px, 12vw, 160px);
  background: var(--night);
  color: #fff;
}

.mission__mark {
  width: clamp(96px, 11vw, 140px);
  margin-bottom: clamp(28px, 4vw, 44px);
}

.mission__mark .lotus {
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 28px rgba(96, 211, 210, 0.35));
}

.mission__title {
  margin-bottom: clamp(48px, 7vw, 96px);
  font-size: clamp(32px, 5.4vw, 76px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.founder {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  background: var(--night-card);
}

.founder__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 20px;
}

.founder__role {
  color: var(--peri);
  font-size: 13px;
  font-weight: 700;
}

.founder__name {
  margin: 6px 0 18px;
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 700;
}

.founder__bio {
  max-width: 40em;
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
  line-height: 2;
}

.founder__more {
  display: inline-flex;
  margin-top: 22px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.founder__more:hover {
  border-color: #fff;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.facts div {
  padding: 22px 24px;
  border-radius: 22px;
  border: 1px solid var(--line-dark);
}

.facts dt {
  color: var(--peri);
  font-size: 12px;
  font-weight: 700;
}

.facts dd {
  margin-top: 6px;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.facts small {
  margin-left: 4px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------------------------------------------------------------- 9. record */

.record {
  padding: clamp(96px, 12vw, 160px) 0 clamp(64px, 8vw, 100px);
  background: var(--mist);
}

.record__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.record__title,
.faq__title {
  color: var(--blue);
  font-size: clamp(36px, 5.6vw, 76px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.records {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}

.rec {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 10px;
  padding: 12px 12px 22px;
  border-radius: 24px;
  background: #fff;
}

.rec__img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 6px;
}

.rec > :not(.rec__img) {
  margin-inline: 10px;
}

.rec--plain {
  background: var(--blue);
  color: #fff;
}

.rec__glyph {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  margin: 0 0 6px !important;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.rec__glyph svg {
  width: 30%;
  fill: none;
  stroke: #fff;
  stroke-width: 1.2;
}

.rec__meta {
  display: flex;
  gap: 10px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
}

.rec__meta span {
  color: var(--blue);
}

.rec--plain .rec__meta,
.rec--plain .rec__meta span {
  color: var(--peri);
}

.rec__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.rec__desc {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.75;
}

.rec--plain .rec__desc {
  color: var(--peri-2);
}

.rec__link {
  justify-self: start;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid currentColor;
}

.rec--plain .rec__link {
  color: #fff;
}

/* ---------------------------------------------------------------- 10. faq */

.faq {
  padding: clamp(48px, 6vw, 80px) 0 clamp(96px, 12vw, 160px);
  background: var(--mist);
}

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.faq__title {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

.faq__list {
  display: grid;
  gap: 10px;
}

.faq details {
  border-radius: 20px;
  background: #fff;
  transition: box-shadow 0.25s var(--ease);
}

.faq details[open] {
  box-shadow: var(--shadow);
}

.faq summary {
  position: relative;
  padding: 22px 64px 22px 26px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 26px;
  top: 50%;
  width: 14px;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: var(--blue);
  transition: transform 0.3s var(--ease);
}

.faq summary::after {
  transform: rotate(90deg);
}

.faq details[open] summary::after {
  transform: rotate(0deg);
}

.faq details p {
  padding: 0 26px 24px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.9;
}

/* ---------------------------------------------------------------- 11. contact */

.contact {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(110svh, 1000px);
  padding: clamp(96px, 12vw, 160px) var(--gutter);
  overflow: hidden;
  background: #fff;
  isolation: isolate;
}

.contact__petals {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  --size: min(150vw, 1500px);
  width: var(--size);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  animation: turn 160s linear infinite;
}

@keyframes turn {
  to {
    rotate: 360deg;
  }
}

.contact__petals span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--w, 9%);
  height: var(--h, 30%);
  margin-left: calc(var(--w, 9%) / -2);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(140, 190, 255, 0.55) 45%, rgba(11, 92, 255, 0.7) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 20px 40px rgba(11, 92, 255, 0.18);
  transform-origin: 50% 0;
  transform: rotate(var(--a)) translateY(calc(var(--size) * var(--r, 0.2) * var(--rk, 1)));
  filter: blur(var(--b, 0px));
  opacity: var(--o, 0.9);
}

.contact__card {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: min(480px, 100%);
  padding: clamp(32px, 4vw, 48px) clamp(24px, 3vw, 40px);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(6, 29, 82, 0.18);
  text-align: center;
}

.contact__title {
  color: var(--blue);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.contact__lead {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.8;
}

.contact__btn {
  width: 100%;
  margin-top: 10px;
}

.contact__line {
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid rgba(11, 92, 255, 0.3);
}

.contact__line:hover {
  border-color: var(--blue);
}

.page-home .gf {
  background: #fff;
}

/* ---------------------------------------------------------------- promo */

.promo {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 300px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(4, 18, 48, 0.3);
  overflow: hidden;
  transform: translateY(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease-out), visibility 0.5s;
}

.promo.is-on {
  transform: none;
  opacity: 1;
  visibility: visible;
}

.promo__link {
  display: grid;
}

.promo__visual {
  display: block;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: var(--mist);
}

.promo__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transition: transform 0.6s var(--ease-out);
}

.promo__link:hover .promo__visual img {
  transform: scale(1.04);
}

.promo__body {
  display: grid;
  gap: 6px;
  padding: 14px 18px 18px;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.6;
}

.promo__body b {
  color: var(--ink);
  font-size: 14px;
}

.promo__body em {
  color: var(--blue);
  font-style: normal;
  font-weight: 700;
}

.promo__close {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
}

.promo__close svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1100px) {
  .records {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .intro__grid {
    grid-template-columns: 1fr;
  }

  .stack__link {
    grid-template-columns: 1fr;
    grid-template-areas:
      "top"
      "title"
      "desc"
      "points"
      "more";
    min-height: 0;
  }

  .stack__num {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 88px;
  }

  .stack__title,
  .stack__desc {
    padding-top: 0;
  }

  .stack__title {
    padding-top: 24px;
  }

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

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

  .faq__title {
    position: static;
  }

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

  .founder__photo {
    width: 160px;
  }
}

@media (max-width: 640px) {
  /* phones: no pinned scene, the next card peeks in at the bottom instead */
  .hero {
    height: 100svh;
  }

  .hero__copy {
    margin-top: -14svh;
    transform: none;
    opacity: 1;
  }

  .hero__lotus {
    top: 40%;
    opacity: 1;
  }

  .hero__down {
    display: none;
  }

  .hero__lotus {
    width: 190vw;
  }

  .intro {
    margin-top: -22svh;
    background: linear-gradient(180deg, transparent 0, var(--blue) 22svh);
  }

  .door__card {
    aspect-ratio: 1 / 1.05;
  }

  .chip {
    padding: 8px 12px 10px;
    font-size: 15px;
  }

  .chip small {
    font-size: 10px;
  }

  .story {
    height: 280svh;
  }

  .story__line {
    font-size: min(5.6vw, 26px);
    line-height: 1.45;
    word-break: normal;
    line-break: strict;
  }

  @supports (word-break: auto-phrase) {
    .story__line {
      word-break: auto-phrase;
    }
  }

  .hero__title {
    font-size: min(10.8vw, 48px);
  }

  /* service cards and records become swipeable rows with a pager */
  .stack,
  .records {
    display: flex;
    gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .stack::-webkit-scrollbar,
  .records::-webkit-scrollbar {
    display: none;
  }

  .stack__card {
    position: relative;
    top: 0;
    flex: 0 0 86%;
    transform: none;
    scroll-snap-align: start;
  }

  .stack__card::after {
    content: none;
  }

  .stack__link {
    height: 100%;
    padding: 26px 22px;
    gap: 14px;
  }

  .stack__num {
    top: 14px;
    right: 16px;
    font-size: 72px;
  }

  .stack__title {
    padding-top: 36px;
    font-size: 30px;
  }

  .stack__desc {
    font-size: 15px;
  }

  .rec {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }

  .work__title {
    margin-bottom: 40px;
  }

  .pager {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
  }

  .pager i {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(11, 92, 255, 0.2);
    transition: width 0.35s var(--ease-out), background 0.35s var(--ease);
  }

  .pager i.is-on {
    width: 22px;
    background: var(--blue);
  }

  .bloom {
    height: 170svh;
  }

  .bloom__mark {
    width: 72vw;
  }

  .product {
    padding-top: 72px;
  }

  .panel--wide {
    padding: 14px;
  }

  .mission__mark {
    width: 88px;
  }

  .founder {
    padding: 18px;
  }

  .founder__photo {
    width: 96px;
    border-radius: 16px;
  }

  .stack__points {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .stack__points li {
    padding: 10px 0;
  }

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

  .for__label {
    position: static;
    transform: none;
  }

  .for__list {
    padding-block: 24px 30svh;
  }

  .facts {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .facts div {
    padding: 14px 12px;
    border-radius: 16px;
  }

  .facts dd {
    font-size: 22px;
  }

  .facts small {
    display: block;
    margin: 2px 0 0;
    font-size: 11px;
  }

  .promo {
    display: none;
  }

  .contact {
    min-height: 100svh;
  }

  .contact__petals {
    --size: 250vw;
    --rk: 1.45;
  }

  .contact__card {
    padding: 30px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero {
    height: auto;
  }

  .hero__stage {
    position: relative;
  }

  .intro {
    margin-top: 0;
    background: var(--blue);
  }

  .story {
    height: auto;
  }

  .story__stage {
    position: relative;
    height: auto;
    padding: 120px 0;
  }

  .story__lines {
    gap: 48px;
  }

  .story__line {
    grid-area: auto;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .story__meter {
    display: none;
  }

  .bloom {
    display: none;
  }

  .stack__card {
    position: relative;
    top: 0;
  }
}
