/* Team Forest site styles (forest-hero redesign): homepage + Insights.
   Homepage: scroll-driven stage at the top (#home), sections below.
   The stage, nav, reveals and Ask panel are driven by assets/js/home.js. */

@font-face {
  font-family: Cygre;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/Cygre-Light.ttf") format("truetype");
}
@font-face {
  font-family: Cygre;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Cygre-Regular.ttf") format("truetype");
}
@font-face {
  font-family: Cygre;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/Cygre-Medium.ttf") format("truetype");
}

:root {
  --ink: #0c140f;
  --night: #0c0d0d;
  --forest: #12201a;
  --cream: #eee9dd;
  --muted: rgba(238, 233, 221, 0.62);
  /* 0.56 keeps small labels at ≥4.5:1 on --forest (0.4 was ~3:1) */
  --faint: rgba(238, 233, 221, 0.56);
  --line: rgba(238, 233, 221, 0.18);
  --red: #e5432f;
  --glass: rgba(22, 34, 27, 0.62);
  --gutter: clamp(18px, 4vw, 44px);
  --maxw: 1240px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 84px;
}
html,
body {
  margin: 0;
  background: var(--forest);
  color: var(--cream);
  font-family:
    Cygre,
    system-ui,
    -apple-system,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
img {
  max-width: 100%;
}
.abs {
  position: absolute;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--cream);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 8px;
}
.skip:focus {
  top: 12px;
}
:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--cream);
  background: rgba(238, 233, 221, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.pill:hover {
  background: rgba(238, 233, 221, 0.14);
  border-color: rgba(238, 233, 221, 0.35);
}
.pill.solid {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
.pill.solid:hover {
  background: #fff;
}

/* ---------------- nav ---------------- */
.site-nav {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 84px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
  font-size: 15px;
  transition: background 0.3s;
}
.site-nav.scrolled {
  background: rgba(12, 20, 15, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(238, 233, 221, 0.08);
}
.site-nav .brand img {
  height: 26px;
  display: block;
}
.site-nav .links {
  display: flex;
  gap: 34px;
  align-items: center;
  color: var(--muted);
}
.site-nav .links > a:not(.pill) {
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav .links > a:not(.pill):hover {
  color: var(--cream);
}
.menu-btn {
  display: none;
}
.menu-sheet {
  display: none;
}

/* language switcher */
.lang-switch {
  position: relative;
}
.lang-switch summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--cream);
}
.lang-switch summary::-webkit-details-marker {
  display: none;
}
.lang-switch summary::after {
  content: " ▾";
  font-size: 10px;
  color: var(--muted);
}
.lang-switch ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: rgba(12, 20, 15, 0.96);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.lang-switch li a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--muted);
  text-decoration: none;
}
.lang-switch li a:hover,
.lang-switch li a[aria-current] {
  color: var(--cream);
  background: rgba(238, 233, 221, 0.08);
}
.menu-langs {
  display: flex;
  gap: 8px;
  padding-top: 16px;
}
.menu-sheet .menu-langs a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
}
.menu-sheet .menu-langs a[aria-current] {
  background: var(--cream);
  color: var(--ink);
}

/* Chinese / Japanese: Cygre keeps the Latin, system CJK faces fill the rest */
:lang(zh) body,
:lang(zh) .pill,
:lang(zh) .q {
  font-family: Cygre, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
    "Microsoft YaHei", sans-serif;
}
:lang(ja) body,
:lang(ja) .pill,
:lang(ja) .q {
  font-family: Cygre, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic", sans-serif;
}
:lang(zh) .word,
:lang(ja) .word,
:lang(zh) h1,
:lang(ja) h1,
:lang(zh) h2,
:lang(ja) h2,
:lang(zh) .hl,
:lang(ja) .hl {
  letter-spacing: 0;
}
:lang(zh) .lede,
:lang(ja) .lede,
:lang(zh) p,
:lang(ja) p {
  line-height: 1.75;
}

/* ---------------- scroll stage ---------------- */
.scrolly {
  position: relative;
  height: 640vh;
  background: var(--night);
}
.scrolly .anchor {
  position: absolute;
  left: 0;
  width: 1px;
  height: 1px;
}
#stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
#bg {
  inset: 0;
  background: var(--night);
}
#bgshade {
  inset: 0;
  background: radial-gradient(
      120% 90% at 50% 40%,
      rgba(12, 20, 15, 0.15),
      rgba(12, 20, 15, 0.75)
    ),
    linear-gradient(180deg, rgba(12, 20, 15, 0.55), rgba(12, 20, 15, 0) 30%);
}
/* the "breathing" sun (assets/lottie/optimized/Homepage.json) */
#breath {
  left: 0;
  top: 0;
  z-index: 9;
  mix-blend-mode: screen;
  /* orb images are opaque squares on near-black; crush that to true black */
  filter: brightness(0.97) contrast(1.12);
  pointer-events: none;
  will-change: transform, opacity;
}
#breath svg {
  display: block;
}

.word {
  z-index: 12;
  margin: 0;
  font-weight: 300;
  font-size: 9.2vw;
  line-height: 0.9;
  letter-spacing: -0.035em;
  white-space: nowrap;
  will-change: transform, opacity, filter;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.25);
}
#w1 {
  left: 6vw;
  top: 15vh;
}
#w2 {
  right: 5vw;
  top: 39vh;
}
#w3 {
  left: 24vw;
  top: 65vh;
}
#herocopy {
  right: var(--gutter);
  bottom: 128px;
  width: 300px;
  z-index: 12;
}
#herocopy h1 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
#herocopy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
#scrollhint {
  left: var(--gutter);
  bottom: 128px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 12px;
}
#scrollhint i {
  display: block;
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--cream), transparent);
}

#card {
  z-index: 10;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  opacity: 0;
}
.slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
}
.slide .mock {
  will-change: transform;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
}
.slide .name {
  position: absolute;
  top: 6%;
  left: 0;
  right: 0;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.browser {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  will-change: transform;
}
.browser .bar {
  height: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: #ecebe8;
  color: #55554f;
  font-size: 11px;
}
.browser .bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cfcdc8;
}
.browser .bar span {
  margin: 0 auto;
  padding-right: 42px;
}
.browser img {
  display: block;
  width: 100%;
  height: auto; /* the height="1800" attribute would otherwise win over aspect-ratio */
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}
#cardcap {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  z-index: 3;
}
#cardcap .chip {
  background: rgba(12, 20, 15, 0.55);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 8px 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}
#cardcap .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}
#cardbar {
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  background: var(--cream);
  opacity: 0.7;
  z-index: 3;
}
#carddim {
  position: absolute;
  inset: 0;
  background: var(--forest);
  z-index: 4;
  opacity: 0;
}

#tint {
  inset: 0;
  background: var(--forest);
  z-index: 14;
  opacity: 0;
}
#statement {
  inset: 0;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  padding: 0 var(--gutter);
}
#statement h2 {
  margin: 0;
  font-weight: 300;
  font-size: 3.7vw;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
#statement h2 span {
  color: var(--muted);
}
#choices {
  margin-top: 46px;
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 15px;
  color: var(--muted);
}
#choices .x {
  text-decoration: line-through;
  text-decoration-color: rgba(229, 67, 47, 0.85);
  color: var(--muted);
  cursor: default;
}
#choices .third {
  color: var(--ink);
  background: var(--cream);
  border-radius: 999px;
  padding: 10px 18px;
}

#svc {
  inset: 0;
  z-index: 16;
  pointer-events: none;
  opacity: 0;
}
#tall {
  left: 50%;
  top: 50%;
  width: 27vw;
  height: 72vh;
  margin-left: -13.5vw;
  margin-top: -36vh;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
}
.tslide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-color: var(--forest);
  background-size: cover;
  background-position: center;
}
.tslide img {
  max-width: 86%;
  filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.5));
}
#svcleft {
  left: 6vw;
  top: 50%;
  margin-top: -9vw;
  width: 30vw;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
#svc .eyebrow {
  margin-bottom: 22px;
  height: 16px;
  position: relative;
  overflow: hidden;
}
#svc .eyebrow span,
.hl span {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
}
.hl {
  position: relative;
  height: 2.2em;
  margin: 0;
  font-weight: 300;
  font-size: 4.2vw;
  line-height: 1.05;
  letter-spacing: -0.03em;
  overflow: hidden;
}
#svcright {
  right: 6vw;
  top: 50%;
  margin-top: -4em;
  width: 22vw;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}
#svcright .body {
  position: relative;
  height: 6.4em;
  overflow: hidden;
}
#svcright .body p {
  position: absolute;
  margin: 0;
  top: 0;
  left: 0;
}
#svcpill {
  margin-top: 18px;
  pointer-events: auto;
}
#steps {
  right: 6vw;
  bottom: 128px;
  display: flex;
  gap: 8px;
}
#steps i {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--line);
  overflow: hidden;
  position: relative;
}
#steps i b {
  position: absolute;
  inset: 0;
  background: var(--cream);
  transform-origin: left;
  transform: scaleX(0);
}

/* ---------------- content sections ---------------- */
.section {
  padding: clamp(80px, 12vw, 160px) var(--gutter);
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
}
.section h2 {
  margin: 14px 0 0;
  font-weight: 300;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.section h2.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1.4;
}
.lede {
  margin: 28px 0 0;
  max-width: 820px;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 300;
  line-height: 1.4;
  color: var(--muted);
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* stories / values */
.values {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.value {
  background: var(--forest);
  padding: 30px 26px 34px;
}
.value .icon {
  width: 72px;
  height: 72px;
  margin: -6px 0 18px -6px;
}
.value .num {
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.1em;
}
.value h3 {
  margin: 8px 0 10px;
  font-weight: 400;
  font-size: 22px;
}
.value p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

/* how we work */
.process {
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}
.process li {
  list-style: none;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.process li::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-size: 12px;
  color: var(--red);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.process h3 {
  margin: 0 0 8px;
  font-weight: 400;
  font-size: 20px;
}
.process p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

/* selected work */
.work-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.work {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  /* flex, not grid: a grid track would size itself to the 2880px screenshot */
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(238, 233, 221, 0.08);
}
.work .browser {
  width: 76%;
  margin-top: -6%;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}
.work .mock {
  max-height: 62%;
  margin-top: -6%;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
}
.work figcaption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 15px;
}
.work figcaption b {
  font-weight: 500;
}
.work figcaption span {
  color: var(--muted);
  font-size: 13px;
}

/* faq */
.faq-list {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: clamp(17px, 1.6vw, 21px);
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "+";
  font-weight: 300;
  font-size: 26px;
  line-height: 0.9;
  color: var(--muted);
  transition: transform 0.25s;
  flex: none;
}
.faq-list details[open] summary::after {
  transform: rotate(45deg);
}
.faq-list details p {
  margin: 0 0 26px;
  max-width: 820px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

/* insights */
.guides {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}
.guide {
  display: block;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  background: rgba(238, 233, 221, 0.03);
  transition:
    background 0.2s,
    border-color 0.2s;
}
.guide:hover {
  background: rgba(238, 233, 221, 0.07);
  border-color: rgba(238, 233, 221, 0.3);
}
.guide h3 {
  margin: 10px 0 12px;
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
}
.guide p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.55;
}
.guide .go {
  font-size: 14px;
}
.all-insights {
  display: inline-block;
  margin-top: 26px;
  color: var(--muted);
}

/* ---------------- inner pages (insights) ---------------- */
.page-hero {
  position: relative;
  min-height: 82vh;
  min-height: 82svh;
  display: flex;
  align-items: flex-end;
  padding: 140px var(--gutter) clamp(90px, 10vw, 130px);
  background: var(--night);
  overflow: hidden;
}
.hero-breath {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  filter: brightness(0.97) contrast(1.12);
  pointer-events: none;
}
.page-hero .wrap {
  position: relative;
  z-index: 2;
  width: 100%;
}
.crumbs {
  font-size: 13px;
  color: var(--muted);
}
.crumbs a {
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--cream);
}
.page-hero h1 {
  margin: 18px 0 0;
  font-weight: 300;
  font-size: clamp(72px, 13vw, 190px);
  line-height: 1.02; /* room for the "g" descender above the lede */
  letter-spacing: -0.045em;
}
.page-hero .lede {
  max-width: 640px;
  margin-top: clamp(30px, 3.4vw, 52px); /* clears the "g" descender */
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.section-intro {
  margin: 18px 0 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}
.guides.full {
  grid-template-columns: 1fr 1fr;
}
.guide .idx {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.guide .idx b {
  font-weight: 400;
  font-size: 12px;
  color: var(--red);
  letter-spacing: 0.1em;
}
.guides.full .guide {
  padding: 34px 34px 30px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}
.guides.full .guide h3 {
  font-size: clamp(26px, 2.6vw, 36px);
  margin-top: 22px;
}
.guides.full .guide .go {
  margin-top: auto;
}
.svc-links {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.cta .lede {
  margin: 0 auto 34px;
  font-size: clamp(17px, 1.6vw, 20px);
}

/* ---------------- guide articles (sp-* markup kept from the old pages) ---------------- */
.sp-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}
.sp-shell.sp-article {
  max-width: 760px;
}
.sp-hero.page-hero {
  min-height: 78vh;
  min-height: 78svh;
}
.sp-crumb {
  font-size: 13px;
  color: var(--muted);
}
.sp-crumb a {
  text-decoration: none;
}
.sp-crumb a:hover {
  color: var(--cream);
}
.sp-hero h1 {
  margin: 18px 0 0;
  max-width: 17ch;
  font-weight: 300;
  font-size: clamp(42px, 6.2vw, 92px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.sp-hero .sub {
  margin: clamp(22px, 2.6vw, 36px) 0 0;
  max-width: 680px;
  font-size: clamp(18px, 1.8vw, 23px);
  font-weight: 300;
  line-height: 1.5;
  color: var(--muted);
}
.tf-byline {
  margin: 22px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.tf-byline-name {
  color: var(--cream);
}
.tf-byline-meta {
  color: var(--faint);
}
.link-11 {
  display: inline-flex;
  align-items: center;
  margin: 30px 10px 0 0;
  padding: 12px 22px;
  border: 1px solid var(--cream);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.link-11:hover {
  background: #fff;
}
.link-11.sp-ghost {
  background: rgba(238, 233, 221, 0.06);
  border-color: var(--line);
  color: var(--cream);
}
.link-11.sp-ghost:hover {
  background: rgba(238, 233, 221, 0.14);
}
.sp-section {
  padding: clamp(64px, 9vw, 120px) var(--gutter);
}
.sp-section.alt {
  background: var(--ink);
}
.sp-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.sp-h2 {
  margin: 14px 0 0;
  font-weight: 300;
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.sp-lead {
  margin: 22px 0 0;
  max-width: 760px;
  font-size: clamp(19px, 1.9vw, 24px);
  font-weight: 300;
  line-height: 1.5;
  color: var(--muted);
}
.sp-article .sp-lead {
  margin: 0 0 1.2em;
  color: var(--cream);
}
.sp-article .sp-h2 + .sp-lead,
.sp-article .sp-eyebrow + .sp-h2 {
  margin-top: 14px;
}
.sp-article p:not(.sp-lead),
.sp-article li {
  font-size: 18px;
  line-height: 1.75;
  color: var(--muted);
}
.sp-article p:not(.sp-lead) {
  margin: 0 0 1.15em;
}
.sp-article .sp-h2 + p,
.sp-article .sp-lead + p,
.sp-article .sp-lead + ul {
  margin-top: 1.4em;
}
.sp-article ul {
  margin: 1.4em 0 1.6em;
  padding-left: 1.2em;
}
.sp-article li {
  margin: 0 0 0.75em;
  padding-left: 0.3em;
}
.sp-article li::marker {
  color: var(--red);
}
.sp-article b {
  color: var(--cream);
  font-weight: 500;
}
.sp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.sp-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  background: rgba(238, 233, 221, 0.03);
}
.sp-card-h3 {
  margin: 0 0 10px;
  font-weight: 400;
  font-size: 22px;
}
.sp-card-p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.link-13 {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: rgba(238, 233, 221, 0.35);
  text-underline-offset: 3px;
}
.link-13:hover {
  text-decoration-color: var(--cream);
}
.sp-section p[style] {
  color: var(--muted);
  line-height: 1.7;
}

/* closing cta (scoped: the guides reuse "cta" on their button and lead) */
.section.cta {
  text-align: center;
  background: radial-gradient(
      70% 90% at 50% 100%,
      rgba(229, 67, 47, 0.16),
      transparent 70%
    ),
    var(--forest);
}
.cta h2 {
  max-width: 900px;
  margin: 14px auto 36px;
}
.cta .pill {
  font-size: 16px;
  padding: 14px 26px;
}

/* footer */
.footer {
  padding: 72px var(--gutter) 140px;
  border-top: 1px solid var(--line);
  background: var(--ink);
}
.footer .wrap {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}
.footer h2 {
  margin: 0 0 10px;
  font-weight: 300;
  font-size: 28px;
}
.footer h3 {
  margin: 0 0 14px;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.footer p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 420px;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer li {
  margin: 0 0 10px;
}
.footer a {
  color: var(--muted);
  text-decoration: none;
}
.footer a:hover {
  color: var(--cream);
}
.footer .copy {
  max-width: var(--maxw);
  margin: 56px auto 0;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--faint);
}

/* ---------------- dock + ask ---------------- */
#dock {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}
#askbtn .av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--forest) url("../img/logo.svg") center/70% no-repeat;
  position: relative;
}
#askbtn .av::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 2px var(--glass);
}
#dim {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(5, 9, 7, 0.55);
  opacity: 0;
  pointer-events: none;
}
#ask {
  --askw: min(400px, calc(100vw - 24px));
  position: fixed;
  left: 50%;
  bottom: 96px;
  width: var(--askw);
  margin-left: calc(var(--askw) / -2);
  max-height: calc(100% - 96px - 16px);
  display: flex;
  flex-direction: column;
  z-index: 41;
  border-radius: 22px;
  background: rgba(20, 32, 25, 0.9);
  border: 1px solid var(--line);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  transform-origin: 50% 100%;
  opacity: 0;
  visibility: hidden;
}
#vid {
  position: relative;
  flex: 0 0 auto;
  height: clamp(132px, 26vh, 228px);
  background: url("../img/aedrian-E6dLG-Rcegk-unsplash-1.webp") center 30% /
    cover;
  overflow: hidden;
}
#vid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.8));
}
#vidtag {
  position: absolute;
  left: 14px;
  top: 12px;
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(12, 20, 15, 0.6);
  padding: 8px 12px;
  border-radius: 999px;
  display: flex;
  gap: 7px;
  align-items: center;
}
#vidtag .rec {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}
#caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
  z-index: 2;
  font-size: 15px;
  line-height: 1.4;
}
#caption .w {
  opacity: 0;
}
#vprog {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: var(--red);
  z-index: 2;
}
#askbody {
  padding: 18px 18px 20px;
  overflow-y: auto;
  min-height: 0;
}
#askbody h2 {
  margin: 0 0 4px;
  font-weight: 400;
  font-size: 17px;
}
#askbody .sub {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 14px;
}
.q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 8px;
  font: inherit;
  font-size: 14px;
  color: var(--cream);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.q:hover {
  border-color: rgba(238, 233, 221, 0.35);
}
.q.on {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
.q em {
  font-style: normal;
  font-size: 12px;
  opacity: 0.6;
}

/* ---------------- tablet ---------------- */
/* Portrait and squarish screens wider than a phone (iPads, narrow desktop
   windows): at 65vh "people use" sat ~25px above the hero copy, and its
   descenders, 4vh intro rise and scroll drift ran it into the tagline.
   Align it with "we build" on the left instead, so it ends before the copy
   starts (moving it up would cover the work card's label). */
@media (min-width: 701px) and (max-aspect-ratio: 4/3) {
  #w3 {
    left: 6vw;
  }
  #scrollhint {
    bottom: 100px; /* clear of the word's descenders, now above it */
  }
}
@media (max-width: 991px) {
  .values,
  .process {
    grid-template-columns: repeat(2, 1fr);
  }
  .guides {
    grid-template-columns: 1fr;
  }
  .footer .wrap {
    grid-template-columns: 1fr 1fr;
  }
  .footer .wrap > :first-child {
    grid-column: 1 / -1;
  }
}

/* ---------------- phones ---------------- */
@media (max-width: 700px) {
  html {
    scroll-padding-top: 64px;
  }
  .site-nav {
    height: 64px;
  }
  .site-nav .brand img {
    height: 22px;
  }
  .site-nav .links > a:not(.pill) {
    display: none;
  }
  .site-nav .links {
    gap: 10px;
  }
  .site-nav .links .pill {
    padding: 8px 14px;
    font-size: 13px;
  }
  .menu-btn {
    display: inline-flex;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(238, 233, 221, 0.06);
    color: var(--cream);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
  }
  .menu-btn svg {
    width: 16px;
    height: 16px;
  }
  .menu-sheet {
    position: fixed;
    inset: 64px 0 auto;
    z-index: 49;
    background: rgba(12, 20, 15, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 22px;
  }
  .menu-sheet.open {
    display: block;
  }
  .menu-sheet a {
    display: block;
    padding: 13px 0;
    font-size: 18px;
    text-decoration: none;
    border-bottom: 1px solid rgba(238, 233, 221, 0.08);
  }
  .site-nav .lang-switch {
    display: none; /* phones: languages live in the menu sheet */
  }
  .sp-grid {
    grid-template-columns: 1fr;
  }
  .sp-article p:not(.sp-lead),
  .sp-article li {
    font-size: 16px;
  }
  .sp-hero.page-hero {
    min-height: 0;
    padding-bottom: 72px;
  }
  :lang(ms) .word {
    font-size: 12vw;
  }
  /* CJK glyphs are a full em wide: smaller, and a touch more room under w1 */
  :lang(zh) .word,
  :lang(ja) .word {
    font-size: 11vw;
  }
  :lang(zh) #w2,
  :lang(ja) #w2 {
    top: 23vh;
  }
  :lang(zh) .page-hero h1,
  :lang(ja) .page-hero h1 {
    font-size: clamp(56px, 13vw, 120px);
  }
  .menu-sheet a.sub {
    padding-left: 16px;
    font-size: 16px;
    color: var(--muted);
  }

  /* hero stack, checked at 375×553 (Safari with toolbars) and 390×844:
     words above and below a card centred at 47% (see home.js), copy above the dock */
  .word {
    font-size: 14.5vw;
  }
  #w1 {
    left: 6vw;
    top: 12vh;
  }
  #w2 {
    right: 6vw;
    top: 22vh;
  }
  #w3 {
    left: 6vw;
    top: 63vh;
  }
  #herocopy {
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
    bottom: 80px;
  }
  #herocopy h1 {
    font-size: 11px;
    margin-bottom: 6px;
  }
  #herocopy p {
    font-size: 13px;
    line-height: 1.45;
  }
  #scrollhint {
    display: none;
  }
  #cardcap {
    font-size: 11px;
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
  #statement h2 {
    font-size: 7.4vw;
  }
  #choices {
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
    font-size: 13px;
  }
  #svcleft {
    left: 22px;
    right: 22px;
    top: calc(64px + 3vh);
    margin-top: 0;
    width: auto;
  }
  #svc .eyebrow {
    margin-bottom: 12px;
  }
  .hl {
    font-size: 9vw;
  }
  #tall {
    width: 64vw;
    height: 40vh;
    margin-left: -32vw;
    margin-top: -16vh;
  }
  #svcright {
    left: 22px;
    right: 22px;
    top: auto;
    bottom: 92px;
    margin-top: 0;
    width: auto;
    font-size: 14px;
  }
  #svcright .body {
    height: 4.8em;
  }
  #svcpill {
    display: none;
  }
  #steps {
    display: none;
  }
  .values,
  .process,
  .work-grid,
  .guides.full {
    grid-template-columns: 1fr;
  }
  .page-hero {
    min-height: 74vh;
    min-height: 74svh;
    padding-top: 110px;
  }
  .guides.full .guide {
    min-height: 0;
    padding: 26px 24px;
  }
  .footer .wrap {
    grid-template-columns: 1fr;
  }
  .footer .copy {
    flex-direction: column;
    gap: 6px;
  }
  #dock {
    bottom: 16px;
  }
  #dock .pill {
    font-size: 13px;
    padding: 9px 14px;
  }
  #ask {
    bottom: 74px;
    max-height: calc(100% - 74px - 12px);
  }
  .browser .bar {
    height: 20px;
    font-size: 9px;
  }
  .browser .bar i {
    width: 6px;
    height: 6px;
  }
}

/* short phones (Safari with both toolbars, ~553px tall) */
@media (max-width: 700px) and (max-height: 640px) {
  .word {
    font-size: 13vw;
  }
  #w1 {
    top: calc(64px + 2vh);
  }
  #w2 {
    top: 21vh;
  }
  #tall {
    height: 34vh;
    margin-top: -15vh;
  }
  /* BM / JA taglines run to 3–4 lines; keep the H1, drop the tagline here */
  :lang(ms) #herocopy p,
  :lang(ja) #herocopy p {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* dock speaker (ui sounds on/off) */
#sndbtn {
  padding: 0;
  width: 42px;
  justify-content: center;
  cursor: pointer;
}
#sndbtn[aria-pressed="false"] {
  color: var(--faint);
}
@media (max-width: 700px) {
  #dock #sndbtn {
    width: 40px;
    padding: 0;
  }
}
