/* ============================================================
   ApexGame — 北京一小从心网络科技有限公司
   Art direction: "Blueprint & Board"
   纸白底 + 发丝网格 + 等宽小标签 + 棋盘四色点缀
   ============================================================ */

:root {
  /* ink & paper */
  --ink: #0a1120;
  --ink-2: #16202f;
  --body: #47546a;
  --muted: #5b677a;
  /* 最小号等宽字用色：白底 4.86:1、浅灰底 4.61:1，压线过 AA */
  --faint: #667287;
  --line: #e4eaf3;
  --line-soft: #eff3f8;
  --paper: #ffffff;
  --paper-2: #f7f9fc;
  --night: #0b1220;
  --night-2: #101a2c;

  /* brand blue：白字压在上面 4.76:1，兼作白底小字色（原 #3f6ff3 只有 4.39:1） */
  --blue: #3b68ef;
  --blue-deep: #1f49c4;
  --blue-soft: #edf2ff;

  /* board tokens */
  --red: #f2415a;
  --cyan: #17c0d8;
  --lime: #7cd35b;
  --gold: #ffc53d;

  /* shape */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-1: 0 1px 2px rgba(10, 17, 32, .04), 0 18px 36px -28px rgba(10, 17, 32, .28);
  --shadow-2: 0 30px 64px -38px rgba(10, 17, 32, .34);

  --ease: cubic-bezier(.22, .68, .24, 1);

  --sans: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Noto Sans SC",
          "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* 等宽族在前只作用于拉丁字符；等宽字体都没有中文字形，中文会自动落到后面的黑体族，
     与正文一致（此前末位是 monospace 通用族，中文被系统等宽/宋体接管，和别处不一致） */
  --mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, Consolas,
          "Liberation Mono", "Courier New",
          "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Noto Sans SC",
          "Source Han Sans SC", "Microsoft YaHei", monospace;
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }

h1, h2, h3, h4, h5 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.03em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

::selection { background: rgba(63, 111, 243, .2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- layout ---------- */
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
/* 大屏（≥1920）放宽栏宽，避免 2560 显示器上正文只占中间一条 */
@media (min-width: 1920px) { .wrap { width: min(1320px, calc(100% - 120px)); } }
@media (max-width: 1100px) { .wrap { width: calc(100% - 64px); } }
@media (max-width: 720px) { .wrap { width: calc(100% - 40px); } }

[id] { scroll-margin-top: 108px; }

/* ---------- type helpers ---------- */
/* ---------- section ---------- */
.section { position: relative; padding: clamp(80px, 9vw, 124px) 0; }
.section--mist {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  gap: 24px 56px;
  align-items: end;
  padding-top: 28px;
  margin-bottom: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.section-head::before {
  content: ""; position: absolute; top: -1px; left: 0;
  width: 56px; height: 1px; background: var(--ink);
}

.section-num {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
}
.section-num::after {
  content: ""; width: 28px; height: 1px; background: var(--line); flex: none;
}

.section-head h2 { font-size: clamp(30px, 3.5vw, 46px); letter-spacing: -.035em; }

.section-head .lede {
  max-width: 460px; justify-self: end;
  font-size: 15px; line-height: 1.85; color: var(--muted);
  text-align: right;
}

@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
  .section-head .lede { justify-self: start; text-align: left; max-width: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 12px;
  font-family: inherit; font-size: 14.5px; font-weight: 600; letter-spacing: .01em;
  cursor: pointer; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background .22s, color .22s, border-color .22s;
}
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 12px 26px -16px rgba(63, 111, 243, .95);
}
.btn--primary:hover {
  background: var(--blue-deep); transform: translateY(-2px);
  box-shadow: 0 18px 34px -18px rgba(31, 73, 196, .9);
}
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: #c3d5f7; color: var(--blue-deep); transform: translateY(-2px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 80;
  background: var(--night);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  transition: background .3s, box-shadow .3s, border-color .3s;
}
.nav.is-scrolled {
  background: rgba(11, 18, 32, .97);
  border-bottom-color: rgba(255, 255, 255, .11);
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, .95);
}
.nav__inner { position: relative; height: 88px; display: flex; align-items: center; gap: 30px; }

.brand { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.brand__mark { position: relative; width: 60px; height: 33px; overflow: hidden; flex-shrink: 0; }
/* height:auto 不能省：HTML 上的 width/height 属性会作为表现提示参与级联，
   这里只覆盖了 width，height 就会取属性值（256），把方图拉成 60×256 再裁进 33px 高的框 */
.brand__mark img { position: absolute; width: 61px; height: auto; left: -1.1px; top: -7.6px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.brand__text b {
  font-family: var(--sans); font-size: 20px; font-weight: 600;
  letter-spacing: .002em; color: #fff;
}
.brand__text i {
  font-style: normal; font-size: 10px; letter-spacing: .06em;
  color: rgba(255, 255, 255, .5); margin-top: 5px;
}

.nav__links {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 2px;
}
.nav__links a {
  position: relative; padding: 9px 16px;
  font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .56);
  border-radius: 8px; transition: color .2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: -2px;
  height: 2px; border-radius: 2px; background: #7ea3ff;
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { color: #fff; }

.nav__toggle {
  display: none; width: 40px; height: 40px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px;
  background: transparent; cursor: pointer; position: relative;
}
.nav__toggle span {
  position: absolute; left: 11px; width: 18px; height: 1.5px;
  background: #fff; border-radius: 2px;
  transition: transform .3s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 15px; }
.nav__toggle span:nth-child(2) { top: 23px; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.nav__mobile {
  display: none; padding: 8px 0 22px;
  background: var(--night); border-top: 1px solid rgba(255, 255, 255, .07);
}
.nav__mobile a {
  display: block; padding: 13px 4px; font-size: 15px;
  color: rgba(255, 255, 255, .7);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav__mobile a:last-child { border-bottom: 0; }

@media (max-width: 940px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; margin-left: auto; }
  .nav__mobile.is-open { display: block; }
  .nav__inner { height: 76px; gap: 16px; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--paper); }

.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(63, 111, 243, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(63, 111, 243, .05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 48%, transparent 92%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 48%, transparent 92%);
}

.hero__glow {
  position: absolute; right: -8%; top: 0; width: 54%; height: 86%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(63, 111, 243, .1), transparent 72%);
}

.hero__art {
  position: absolute; top: 0; right: 0; bottom: 0; width: 58%;
  pointer-events: none;
  mask-image: linear-gradient(to right, transparent 0%, #000 32%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 32%);
}
.hero__art img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: right center;
  opacity: .96;
  filter: saturate(1.06) contrast(1.03);
}
.hero__art::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%;
  background: linear-gradient(to top, #fff 6%, rgba(255, 255, 255, 0));
}

.hero__inner {
  position: relative; z-index: 2;
  display: flex; align-items: center;
  padding: clamp(64px, 9vh, 108px) 0 clamp(44px, 6vh, 76px);
}
.hero__copy { max-width: 730px; }

.hero__kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.hero__kicker .dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--blue); flex: none;
  box-shadow: 0 0 0 3px rgba(63, 111, 243, .12);
}

.hero h1 {
  margin-top: 24px;
  font-size: clamp(38px, 5.6vw, 70px);
  line-height: 1.06;
  letter-spacing: -.045em;
  font-weight: 700;
}
.hero h1 .hl {
  color: var(--blue);
  background-image: linear-gradient(to top, rgba(63, 111, 243, .16) 0 .12em, transparent .12em);
  background-repeat: no-repeat; background-size: 100% 100%;
  padding-bottom: .04em;
}

.hero__desc {
  max-width: 478px; margin-top: 26px;
  font-size: 16.5px; line-height: 1.92; color: var(--body);
}
.hero__desc strong {
  font-size: 1.08em; font-weight: 800; letter-spacing: -.01em;
  color: var(--blue-deep);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

/* hero rail */
.hero__rail {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.hero__rail li { padding: 22px 28px 26px; border-left: 1px solid var(--line); }
.hero__rail li:first-child { padding-left: 0; border-left: 0; }
.hero__rail b {
  display: block;
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: .24em; color: var(--faint);
}
.hero__rail span { display: block; margin-top: 8px; font-size: 14px; font-weight: 500; color: var(--ink); }

@media (max-width: 1080px) {
  .hero__art { width: 72%; opacity: .7; }
}
@media (max-width: 860px) {
  .hero__rail { grid-template-columns: repeat(2, 1fr); }
  .hero__rail li { padding: 18px 20px 22px; }
  .hero__rail li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .hero__rail li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .hero__art {
    position: relative; top: auto; right: auto; bottom: auto;
    width: 100%; height: clamp(180px, 40vw, 240px);
    opacity: 1; overflow: hidden;
    mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 100%);
  }
  .hero__art img {
    object-fit: cover; object-position: 74% 22%; opacity: .95;
    transform: scale(1.06); transform-origin: 72% 22%;
  }
  .hero__art::after {
    height: 42%;
    background: linear-gradient(to top, #fff 4%, rgba(255, 255, 255, 0));
  }
}
/* 761–900 的平板竖屏：插画被压成 16:9 的横条，只露出中间一窄条。
   这一段按原画幅显示完整图片，宽度收到 760 以内，避免把首屏文字挤出视口 */
@media (min-width: 761px) and (max-width: 900px) {
  .hero__art {
    height: auto; aspect-ratio: 16 / 9;
    width: 100%; max-width: 760px; margin: 0 auto;
    mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 100%);
  }
  .hero__art img { object-fit: contain; object-position: center; transform: none; }
  /* 画幅变高后，底部压白只需很薄一层就能融进纸面 */
  .hero__art::after { height: 24%; }
}

@media (max-width: 760px) {
  .hero__inner { display: block; padding: 34px 0 26px; }
  .hero__copy { max-width: none; }
  .hero__desc { max-width: none; font-size: 15.5px; }
  .hero h1 { font-size: clamp(27px, 8.2vw, 46px); }
}

/* ---------- ticker ---------- */
.marquee {
  overflow: hidden;
  background: var(--night);
  border-top: 1px solid rgba(255, 255, 255, .06);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  padding: 15px 0;
}
.marquee__track { display: flex; width: max-content; animation: scrollX 42s linear infinite; }
.marquee__track span {
  position: relative;
  display: flex; align-items: center;
  padding: 0 34px; white-space: nowrap;
  font-family: var(--mono); font-size: 10px; letter-spacing: .26em;
  text-transform: uppercase; color: rgba(255, 255, 255, .56);
}
/* 圆点定位于两项交界处：right 补偿字距在末字后留下的空隙，使左右留白相等；
   margin-top 里减去 0.05em，抵消大写字母视觉重心高于行盒中心带来的偏高 */
.marquee__track span::after {
  content: ""; position: absolute; top: 50%;
  right: calc(.13em - 2px); margin-top: calc(-2px - .07em);
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255, 255, 255, .22);
}
.marquee__track span:nth-child(4n + 1)::after { background: var(--red); }
.marquee__track span:nth-child(4n + 2)::after { background: var(--cyan); }
.marquee__track span:nth-child(4n + 3)::after { background: var(--lime); }
.marquee__track span:nth-child(4n + 4)::after { background: var(--gold); }
@keyframes scrollX { to { transform: translateX(-50%); } }

/* ---------- products ---------- */
.flagship {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-1);
}
.flagship + .flagship { margin-top: clamp(22px, 2.6vw, 34px); }
/* 第二部作品图片置于右侧，形成左右交替的节奏；列宽同步交换，图片仍占宽的那一栏 */
.flagship--flip { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
.flagship--flip .flagship__media {
  order: 2; border-right: 0; border-left: 1px solid var(--line);
}
.flagship--flip .flagship__body { order: 1; }
.flagship__media {
  display: flex; flex-direction: column; min-width: 0;
  border-right: 1px solid var(--line);
  background-color: var(--paper-2);
  /* 图片与缩略条之间的留白铺一层极淡坐标纸，避免大片空白显得没做完 */
  background-image:
    linear-gradient(to right, rgba(63, 111, 243, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(63, 111, 243, .06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.flagship__stage { position: relative; overflow: hidden; }
.flagship__shot {
  display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 9; object-fit: cover;
}
/* 叠在上层的下一张：淡入盖住旧图，完成后再把底层换成同一张，形成交叉渐变 */
.flagship__shot--next {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0; pointer-events: none;
  /* 均匀缓动，避免前 200ms 就冲到半透明、双影一闪而过 */
  transition: opacity 1s cubic-bezier(.45, .05, .55, .95);
}
.flagship__shot--next.is-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .flagship__shot--next { transition: none; }
}

.flagship__thumbs {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px;
  margin-top: auto; padding: 12px;
  background: var(--paper-2);
}
.shot {
  position: relative; padding: 0; cursor: pointer;
  border: 0; border-radius: 10px; overflow: hidden;
  background: #fff; opacity: .5;
  transition: opacity .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.shot:hover { opacity: .82; transform: translateY(-1px); }
.shot.is-active { opacity: 1; box-shadow: 0 0 0 2px var(--blue); }
.shot:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 2px; }

.flagship__no {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 24px; padding: 0 9px;
  background: rgba(10, 17, 32, .66);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; font-family: var(--mono); font-size: 10px;
  letter-spacing: .16em; border-radius: 7px;
}

.flagship__body {
  display: flex; flex-direction: column; justify-content: center;
  min-width: 0; padding: clamp(26px, 3.2vw, 46px);
}
.flagship__idx {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--blue);
}
.flagship h3 { margin-top: 14px; font-size: clamp(26px, 2.8vw, 38px); letter-spacing: -.035em; }
.flagship h3 span {
  display: block; margin-top: 10px;
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase; color: var(--faint);
}
.flagship__body > p { margin-top: 18px; font-size: 14.5px; line-height: 1.95; color: var(--body); }

.flagship .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }

/* 单栏阈值放在 1024：再窄两栏就会挤，正文会碎成四行 */
@media (max-width: 1024px) {
  .flagship { grid-template-columns: minmax(0, 1fr); }
  .flagship__media,
  .flagship--flip .flagship__media {
    order: 0; border-right: 0; border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .flagship--flip .flagship__body { order: 0; }
}
@media (max-width: 520px) {
  .flagship__thumbs { gap: 8px; padding: 10px; }
}

/* ---------- chips ---------- */
.chip {
  display: inline-flex; align-items: center;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: 11.5px; letter-spacing: .02em; color: var(--ink-soft, #33415a);
}
.chip--soft { background: #f8fafd; border-color: var(--line); color: var(--muted); }
/* ---------- about ---------- */
/* the three paragraphs are one statement: keep them in a single column and
   build the structure out of hairlines instead of splitting them in two */
.about-body { margin-top: clamp(34px, 3.8vw, 52px); }

/* label row: mono caption + a rule that runs to the page edge */
.about-label { margin-bottom: clamp(18px, 2vw, 26px); }
.about-label .section-num { margin-bottom: 0; }

.about-board {
  position: relative;
  padding: clamp(30px, 3.6vw, 52px) 0 clamp(28px, 3.2vw, 44px);
}

/* graph paper: only on the right half, so it never sits under the text */
.about-board__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(63, 111, 243, .085) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(63, 111, 243, .085) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: linear-gradient(90deg, transparent 40%, #000 60%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000 60%, #000 100%);
}

/* the frame opens and closes with a rule that fades out to the right */
.about-board__ticks::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--line) 0%, var(--line) 72%, rgba(228, 234, 243, 0) 100%);
}

/* the right half is empty by design of the measure, so it carries the mark */
.about-board__mark {
  position: absolute;
  right: clamp(28px, 6vw, 92px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(150px, 15vw, 190px);
  opacity: .14;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.about-board__mark img { width: 100%; height: auto; display: block; }

/* ...and closes with a matching rule at the bottom */
.about-board::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, var(--line) 0%, var(--line) 72%, rgba(228, 234, 243, 0) 100%);
}

/* the text hangs off a vertical spine: one statement, three beats */
/* the spine hangs in the page margin so the text stays flush with the
   heading above; --about-gutter is the overhang, not an indent */
.about-copy {
  --about-gutter: clamp(18px, 2vw, 30px);
  position: relative;
  max-width: calc(672px + var(--about-gutter));
  margin-left: calc(var(--about-gutter) * -1);
  padding-left: var(--about-gutter);
}
.about-copy::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 3px;
  width: 1px;
  background: linear-gradient(180deg,
    var(--blue) 0%, rgba(63, 111, 243, .3) 26%, var(--line) 58%, var(--line) 100%);
}
.about-p {
  position: relative;
  font-size: 17px; line-height: 1.92; color: var(--ink-2);
  text-wrap: wrap;
}
.about-p + .about-p { margin-top: 15px; }

/* a dot marks each of the three sentences, sitting on the spine */
.about-p::before {
  content: "";
  position: absolute;
  left: calc(var(--about-gutter) * -1 - 3.5px);
  top: .74em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue-deep);
  box-shadow: 0 0 0 3px var(--paper-2);
}

/* the brand name is the one element allowed to break the uniform setting */
.about-p strong {
  font-size: 1.13em;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--blue-deep);
}

/* four board dots close the statement — a quiet signature */
.about-sign {
  display: flex; align-items: center; gap: 6px;
  margin-top: clamp(20px, 2.2vw, 26px);
}
.about-sign i { display: block; width: 6px; height: 6px; border-radius: 50%; }
.about-sign i:nth-child(1) { background: var(--red); }
.about-sign i:nth-child(2) { background: var(--cyan); }
.about-sign i:nth-child(3) { background: var(--lime); }
.about-sign i:nth-child(4) { background: var(--gold); }

@media (max-width: 760px) {
  .about-label { margin-bottom: 22px; }
  .about-board { padding: 26px 0 24px; }
  .about-board__grid { display: none; }
  .about-board__mark { display: none; }
  /* on a phone the spine goes back inside the page instead of overhanging */
  .about-copy { max-width: none; --about-gutter: 18px; margin-left: 0; }
  .about-p { font-size: 14.5px; line-height: 1.95; }
}

/* ---------- contact ---------- */
#contact { padding-bottom: clamp(64px, 6vw, 96px); }

/* right slot of the section head: four board dots + mono caption */
.contact-meta {
  justify-self: end;
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 8px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--faint);
}
.contact-meta__dots { display: flex; gap: 5px; }
.contact-meta__dots i { display: block; width: 5px; height: 5px; border-radius: 50%; }
.contact-meta__dots i:nth-child(1) { background: var(--red); }
.contact-meta__dots i:nth-child(2) { background: var(--cyan); }
.contact-meta__dots i:nth-child(3) { background: var(--lime); }
.contact-meta__dots i:nth-child(4) { background: var(--gold); }

/* the panel is the object of this section: one bordered block, two cells
   side by side so the wide format never looks half-empty */
.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
  margin-top: clamp(36px, 4vw, 54px);
  padding: 0 clamp(22px, 3.4vw, 46px);
  background: linear-gradient(180deg, #fff 0%, var(--paper-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
/* blueprint registration marks in two opposite corners */
.contact-panel::before,
.contact-panel::after {
  content: ""; position: absolute; width: 18px; height: 18px;
  border: 1px solid var(--line); pointer-events: none;
}
.contact-panel::before { top: 15px; left: 15px; border-right: 0; border-bottom: 0; border-radius: 5px 0 0 0; }
.contact-panel::after { bottom: 15px; right: 15px; border-left: 0; border-top: 0; border-radius: 0 0 5px 0; }

.contact-cell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: start;
  gap: 10px;
  padding: clamp(24px, 2.8vw, 34px) 0 clamp(26px, 3vw, 38px);
}
/* keep the value off the divider line */
.contact-cell:not(.contact-cell--static) { padding-right: clamp(16px, 2vw, 30px); }
.contact-cell--static {
  border-left: 1px solid var(--line);
  padding-left: clamp(24px, 3vw, 42px);
}

.contact-cell__label {
  grid-column: 1; grid-row: 1;
  display: flex; align-items: baseline; gap: 10px;
  font-size: 12.5px; letter-spacing: .06em; color: var(--body);
  transition: color .3s;
}
.contact-cell__label em {
  font-family: var(--mono); font-style: normal;
  font-size: 9px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--faint);
}

.contact-cell__value {
  grid-column: 1; grid-row: 2;
  font-size: clamp(18px, 2.1vw, 28px);
  font-weight: 700; line-height: 1.3; letter-spacing: -.02em;
  color: var(--ink);
  word-break: break-word;
  transition: color .28s;
}
.contact-cell__value--sm {
  font-size: clamp(14.5px, 1.55vw, 19px);
  font-weight: 600; letter-spacing: -.01em; color: var(--ink-2);
}

a.contact-cell:hover .contact-cell__value { color: var(--blue-deep); }
a.contact-cell:hover .contact-cell__label { color: var(--ink); }

@media (max-width: 860px) {
  .contact-meta { justify-self: start; padding-bottom: 0; }
  .contact-panel { grid-template-columns: 1fr; padding: 0 clamp(20px, 5vw, 32px); }
  .contact-cell { padding: 24px 0 26px; gap: 9px; }
  .contact-cell:not(.contact-cell--static) { padding-right: 0; }
  .contact-cell--static {
    border-left: 0; padding-left: 0;
    border-top: 1px solid var(--line);
  }
  /* the mail address must never wrap mid-word on a phone */
  .contact-cell__value { font-size: clamp(18px, 5vw, 24px); }
  .contact-cell__value--sm { font-size: 15.5px; }
}

/* ---------- footer ---------- */
.footer { position: relative; background: var(--night); color: #93a3bd; padding: 76px 0 0; }
.footer__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 56px; padding-bottom: 62px;
}
.footer__brand { max-width: 400px; }
.footer__mark { display: block; width: 96px; height: 53px; position: relative; overflow: hidden; }
.footer__mark img {
  position: absolute; width: 96px; height: auto; left: -1.6px; top: -11.2px;
  opacity: .96; mix-blend-mode: screen;
}
.footer__name {
  margin: 26px 0 0; font-size: 15px; font-weight: 500;
  letter-spacing: .02em; line-height: 1.5; color: #dde6f1;
}
.footer__slogan { margin: 10px 0 0; font-size: 13px; letter-spacing: .04em; line-height: 1.65; color: #7a8aa3; }

.footer__cols { display: flex; gap: 88px; }
.footer__cols li { margin-bottom: 15px; font-size: 14px; }
.footer__cols li:last-child { margin-bottom: 0; }
.footer__nav a { position: relative; color: #9dacbf; transition: color .2s; }
.footer__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: rgba(255, 255, 255, .5);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.footer__nav a:hover { color: #fff; }
.footer__nav a:hover::after { transform: scaleX(1); }
.footer__info li { color: #7a8aa3; }
.footer__info a { color: #bdcbdd; transition: color .2s; }
.footer__info a:hover { color: #fff; }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: 24px 0 26px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: #8a99ae;
}

@media (max-width: 900px) {
  .footer__top { flex-direction: column; align-items: flex-start; gap: 46px; }
  .footer__cols { gap: 72px; }
}
@media (max-width: 560px) {
  .footer { padding-top: 62px; }
  .footer__mark { width: 84px; height: 46px; }
  .footer__mark img { width: 84px; left: -1.4px; top: -9.8px; }
  .footer__cols { flex-direction: column; gap: 30px; }
  .footer__info { padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); }
  .footer__name { margin-top: 22px; font-size: 14.5px; }
}

/* ---------- reveal ---------- */
.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(20px); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }

@media (max-width: 560px) {
  .hero__actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}
