/* ==========================================================================
   医数科技 MEDATA · 医疗健康数字化工具开发服务商
   Design system: Clinical Editorial / 临床编辑
   - 宋体标题 + 无衬线正文 + 等宽技术标注
   - 墨绿 / 暖纸 / 医疗信号绿
   - 细线、网格、心电脉冲、UI 微缩模型
   ========================================================================== */

/* ---------- 0. Fonts (OFL) ---------- */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
}

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #0a1410;
  --ink-2: #102019;
  --ink-3: #192b23;
  --paper: #f1ede2;
  --paper-2: #f8f5ed;
  --paper-3: #e9e4d7;
  --white: #ffffff;
  --mint: #5be7b0;
  --mint-2: #9ff4d2;
  --green: #0f6a50;
  --green-2: #0a4e3a;
  --green-ink: #06251c;

  --text: #14211b;
  --muted: #5e6b64;
  --muted-2: #8a948e;

  --line: rgba(20, 33, 27, 0.15);
  --line-soft: rgba(20, 33, 27, 0.08);
  --line-dark: rgba(241, 237, 226, 0.16);
  --line-dark-soft: rgba(241, 237, 226, 0.08);

  --font-display: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC",
    "SimSun", serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
    "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --font-latin: "Instrument Serif", "Songti SC", Georgia, serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 84px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 4px;
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.section--ink :focus-visible,
.cta :focus-visible,
.footer :focus-visible,
.hero :focus-visible,
.mobile-menu :focus-visible {
  outline-color: var(--mint);
}

/* grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 3. Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(84px, 10vw, 150px);
}

.section--paper {
  background: var(--paper);
  color: var(--text);
}
.section--light {
  background: var(--paper-2);
  color: var(--text);
}
.section--ink {
  background: var(--ink);
  color: var(--paper);
}
.section--green {
  background: var(--green-ink);
  color: var(--paper);
}

.section--ink .muted,
.section--green .muted {
  color: rgba(241, 237, 226, 0.58);
}

.mono {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}

.section--ink .eyebrow,
.section--green .eyebrow,
.cta .eyebrow {
  color: var(--mint);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.serif-accent {
  font-family: var(--font-latin);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.muted {
  color: var(--muted);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 10000;
  padding: 10px 18px;
  background: var(--mint);
  color: var(--ink);
  font-size: 14px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus {
  transform: none;
}

/* section header */
.sec-head {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 340px;
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  margin-bottom: clamp(48px, 6vw, 84px);
}

.section--ink .sec-head,
.section--green .sec-head,
.cta .sec-head {
  border-color: var(--line-dark);
}

.sec-label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}

.section--ink .sec-label,
.section--green .sec-label {
  color: var(--mint);
}

.sec-label .cross {
  font-size: 16px;
  line-height: 1;
  color: var(--muted-2);
}

.sec-title {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  color: inherit;
}

.sec-title .thin {
  color: var(--muted-2);
}

.sec-desc {
  max-width: 360px;
  justify-self: end;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.section--ink .sec-desc,
.section--green .sec-desc {
  color: rgba(241, 237, 226, 0.58);
}

/* reveal (only when JS is active; content stays visible for crawlers/no-JS) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 4. Buttons & links ---------- */
.btn {
  --btn-bg: var(--mint);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn:active {
  transform: scale(0.985);
}

.btn--mint {
  background: var(--mint);
  color: var(--ink);
}
.btn--mint:hover {
  background: var(--mint-2);
}

.btn--green {
  background: var(--green);
  color: var(--paper);
}
.btn--green:hover {
  background: var(--ink);
}

.btn--ghost-light {
  background: transparent;
  border-color: rgba(241, 237, 226, 0.28);
  color: var(--paper);
}
.btn--ghost-light:hover {
  background: rgba(241, 237, 226, 0.08);
  border-color: rgba(241, 237, 226, 0.5);
}

.btn--ghost-dark {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost-dark:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn--header {
  min-height: 40px;
  padding: 0 18px;
  font-size: 13px;
  background: transparent;
  border-color: rgba(241, 237, 226, 0.3);
  color: var(--paper);
}
.btn--header:hover {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--ink);
}

body.page-inner .btn--header {
  border-color: var(--line);
  color: var(--text);
}
body.page-inner .btn--header:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  transition: color 0.25s var(--ease), gap 0.25s var(--ease);
}

.link-arrow svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover {
  color: var(--green);
  gap: 14px;
}

.section--ink .link-arrow:hover,
.section--green .link-arrow:hover,
.cta .link-arrow:hover {
  color: var(--mint);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: var(--muted);
  white-space: nowrap;
}

.section--ink .tag,
.cta .tag {
  border-color: var(--line-dark);
  color: rgba(241, 237, 226, 0.6);
}

.tag--mint {
  border-color: rgba(91, 231, 176, 0.35);
  color: var(--green);
}
.section--ink .tag--mint {
  color: var(--mint);
  border-color: rgba(91, 231, 176, 0.32);
}

/* ---------- 5. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  color: var(--paper);
  transition: color 0.3s var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 16, 0.78);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  opacity: 0;
  transition: opacity 0.35s var(--ease), border-color 0.35s var(--ease);
}

.site-header.is-scrolled::before {
  opacity: 1;
  border-bottom-color: var(--line-dark);
}

body.page-inner .site-header {
  color: var(--text);
}

body.page-inner .site-header::before {
  background: rgba(248, 245, 237, 0.84);
}

body.page-inner .site-header.is-scrolled::before {
  border-bottom-color: var(--line-soft);
}

body.menu-open .site-header {
  color: var(--paper);
}
body.menu-open .site-header::before {
  opacity: 0;
}

.header-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  color: currentColor;
}

.brand-mark .pulse {
  stroke: var(--mint);
}

body.page-inner .brand-mark .pulse {
  stroke: var(--green);
}

body.menu-open .brand-mark .pulse {
  stroke: var(--mint);
}

.brand-type {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1;
}

.brand-type strong {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-type small {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.3em;
  opacity: 0.52;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.45vw, 24px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  font-size: 13.5px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  opacity: 0.75;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  opacity: 1;
}

.nav-link.is-active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-dd {
  position: relative;
}

.nav-dd-btn svg {
  width: 11px;
  height: 11px;
  transition: transform 0.3s var(--ease);
}

.nav-dd.is-open .nav-dd-btn svg {
  transform: rotate(180deg);
}

.nav-dd-panel {
  position: absolute;
  top: calc(100% + 20px);
  left: -22px;
  width: 470px;
  padding: 12px;
  background: var(--paper-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 30px 70px rgba(4, 14, 10, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
    visibility 0.28s;
}

.nav-dd-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -22px;
  height: 22px;
}

.nav-dd.is-open .nav-dd-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

@media (hover: hover) {
  .nav-dd:hover .nav-dd-panel {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-dd:hover .nav-dd-btn svg {
    transform: rotate(180deg);
  }
}

.nav-dd-label {
  padding: 8px 12px 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav-dd-link {
  display: grid;
  grid-template-columns: 34px 1fr 18px;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-top: 1px solid var(--line-soft);
  transition: background 0.2s var(--ease);
}

.nav-dd-link:hover {
  background: var(--paper);
}

.nav-dd-link .num {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--green);
}

.nav-dd-link strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.nav-dd-link small {
  display: block;
  margin-top: 1px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
}

.nav-dd-link .go {
  font-size: 14px;
  color: var(--muted);
  transition: transform 0.25s var(--ease);
}

.nav-dd-link:hover .go {
  transform: translateX(3px);
  color: var(--green);
}

.nav-dd-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  padding: 14px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  font-size: 13px;
}

.nav-dd-cta span {
  transition: transform 0.25s var(--ease);
}

.nav-dd-cta:hover span {
  transform: translateX(4px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  opacity: 0.85;
  transition: opacity 0.2s var(--ease);
}

.menu-btn:hover {
  opacity: 1;
}

.menu-btn span {
  display: block;
  width: 16px;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}

.menu-btn[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* mobile drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: calc(var(--header-h) + 40px) var(--gutter) 40px;
  background: var(--ink);
  color: var(--paper);
  overflow-y: auto;
  visibility: hidden;
  transform: translateY(-102%);
  transition: transform 0.55s var(--ease-out), visibility 0.55s;
}

.mobile-menu.is-open {
  visibility: visible;
  transform: none;
}

.mobile-menu .mobile-nav {
  display: flex;
  flex-direction: column;
}

.mobile-nav > a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-display);
  font-size: clamp(28px, 7vw, 38px);
  font-weight: 500;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.mobile-menu.is-open .mobile-nav > a {
  opacity: 1;
  transform: none;
}

.mobile-menu.is-open .mobile-nav > a:nth-child(1) {
  transition-delay: 0.08s;
}
.mobile-menu.is-open .mobile-nav > a:nth-child(2) {
  transition-delay: 0.12s;
}
.mobile-menu.is-open .mobile-nav > a:nth-child(3) {
  transition-delay: 0.16s;
}
.mobile-menu.is-open .mobile-nav > a:nth-child(4) {
  transition-delay: 0.2s;
}
.mobile-menu.is-open .mobile-nav > a:nth-child(5) {
  transition-delay: 0.24s;
}
.mobile-menu.is-open .mobile-nav > a:nth-child(6) {
  transition-delay: 0.28s;
}

.mobile-nav > a span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--mint);
}

.mobile-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 14px 0 18px;
  border-bottom: 1px solid var(--line-dark);
}

.mobile-sub a {
  font-size: 12px;
  color: rgba(241, 237, 226, 0.55);
  transition: color 0.2s;
}

.mobile-sub a:hover {
  color: var(--mint);
}

.mobile-menu-foot {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu-foot .btn {
  align-self: flex-start;
}

.mobile-menu-foot p {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 2;
  letter-spacing: 0.1em;
  color: rgba(241, 237, 226, 0.45);
}

/* ---------- 6. Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 110;
  width: 100%;
  height: 2px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      ellipse 55% 48% at 78% 16%,
      rgba(91, 231, 176, 0.13),
      transparent 62%
    ),
    linear-gradient(rgba(241, 237, 226, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 237, 226, 0.04) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22%;
  background: linear-gradient(to bottom, transparent, var(--ink));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--header-h) + 36px);
  padding-bottom: 28px;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(241, 237, 226, 0.48);
}

.hero-meta .mid {
  color: rgba(241, 237, 226, 0.66);
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(40px, 7vh, 92px);
}

.hero-copy {
  grid-column: 1 / span 7;
  min-width: 0;
}

.hero-title {
  margin-top: 26px;
  font-size: clamp(2.6rem, 4.6vw, 4.35rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.hero-kicker {
  display: block;
  margin-bottom: clamp(18px, 2.2vw, 28px);
  font-family: var(--font-mono);
  font-size: clamp(9.5px, 0.9vw, 11px);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mint);
  opacity: 0;
  transform: translateY(10px);
  animation: fade-up 0.8s var(--ease-out) 0.08s forwards;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}

.hero-title .line > span {
  display: block;
  transform: translateY(110%);
  animation: hero-line 1.05s var(--ease-out) forwards;
}
.hero-title .line:nth-child(2) > span {
  animation-delay: 0.15s;
}
.hero-title .line:nth-child(3) > span {
  animation-delay: 0.28s;
}

.hero-title .mark {
  background: linear-gradient(transparent 64%, rgba(91, 231, 176, 0.28) 64%);
  padding: 0 0.06em;
  margin: 0 -0.02em;
}

.hero-eng {
  margin-top: 22px;
  font-family: var(--font-latin);
  font-style: italic;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.3;
  color: var(--mint);
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 0.55s forwards;
}

.hero-sub {
  max-width: 560px;
  margin-top: 22px;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.95;
  color: rgba(241, 237, 226, 0.64);
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 0.65s forwards;
}

.hero-sub strong {
  font-weight: 500;
  color: rgba(241, 237, 226, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 0.76s forwards;
}

.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
}

.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(241, 237, 226, 0.5);
}

.scroll-hint .line {
  display: block;
  width: 48px;
  height: 1px;
  background: linear-gradient(to right, var(--mint), transparent);
  transform-origin: left;
  animation: scroll-line 2.4s var(--ease) infinite;
}

.hero-foot-meta {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(241, 237, 226, 0.38);
  text-align: right;
}

.hero-side-label {
  position: absolute;
  z-index: 2;
  right: 14px;
  top: 50%;
  transform: rotate(90deg) translateX(50%);
  transform-origin: right center;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.24em;
  color: rgba(241, 237, 226, 0.25);
  white-space: nowrap;
  pointer-events: none;
}

/* vitals panel */
.vitals {
  grid-column: 9 / span 4;
  justify-self: end;
  width: 100%;
  max-width: 416px;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.055),
    rgba(255, 255, 255, 0.012) 55%,
    rgba(91, 231, 176, 0.04)
  );
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 80px rgba(4, 14, 10, 0.45);
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 0.7s forwards;
}

.vitals-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(241, 237, 226, 0.55);
}

.vitals-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--mint);
}

.vitals-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  animation: blink 2s ease-in-out infinite;
}

.vitals-ecg {
  position: relative;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--line-dark);
}

.vitals-ecg svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.ecg-grid-line {
  stroke: rgba(241, 237, 226, 0.09);
  stroke-width: 0.6;
}

.ecg-line {
  fill: none;
  stroke: var(--mint);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 640;
  stroke-dashoffset: 640;
  filter: drop-shadow(0 0 5px rgba(91, 231, 176, 0.45));
  animation: ecg-draw 2.8s var(--ease-out) 0.9s forwards;
}

.ecg-dot {
  fill: var(--mint);
  filter: drop-shadow(0 0 6px rgba(91, 231, 176, 0.9));
}

.ecg-readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 4px 2px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(241, 237, 226, 0.4);
}

.ecg-readout b {
  font-weight: 500;
  color: rgba(241, 237, 226, 0.85);
}

.vitals-rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.vitals-row {
  padding: 16px 16px 15px;
  border-right: 1px solid var(--line-dark);
}

.vitals-row:last-child {
  border-right: 0;
}

.vitals-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.vitals-row span {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(241, 237, 226, 0.45);
}

.vitals-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(241, 237, 226, 0.45);
}

.vitals-foot .pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  animation: blink 2.4s ease-in-out infinite;
}

.vitals-foot .code {
  margin-left: auto;
  color: rgba(241, 237, 226, 0.28);
}

/* ---------- 8. Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 18px;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee 36s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-inline: 26px;
  white-space: nowrap;
}

.marquee-item::after {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--mint);
  transform: rotate(45deg);
  opacity: 0.7;
}

.marquee-item:last-child::after {
  display: none;
}

.marquee-item--serif {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.marquee-item--mono {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(241, 237, 226, 0.55);
}

/* ---------- 9. Intro ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(44px, 7vw, 104px);
  align-items: start;
}

.intro-title {
  font-size: clamp(2.1rem, 4.2vw, 3.9rem);
  line-height: 1.18;
}

.intro-title .muted-line {
  color: var(--muted-2);
}

.intro-lead {
  font-size: 17px;
  line-height: 1.95;
  color: var(--muted);
}

.intro-lead + .intro-lead {
  margin-top: 20px;
}

.intro-quote {
  margin-top: 34px;
  padding: 20px 0 20px 22px;
  border-left: 2px solid var(--mint);
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.65;
  color: var(--text);
}

.intro-quote small {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.adv-list {
  margin-top: clamp(44px, 6vw, 72px);
  border-top: 1px solid var(--line);
}

.adv-row {
  display: grid;
  grid-template-columns: 46px 168px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 40px);
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.adv-row .idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--green);
  padding-top: 4px;
}

.adv-row h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}

.adv-row h3 small {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--muted-2);
}

.adv-row p {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted);
}

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

.intro-figure {
  position: relative;
  aspect-ratio: 4 / 3.4;
  border: 1px solid var(--line);
  background: var(--paper-2);
  overflow: hidden;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.intro-figure::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.9;
}

.intro-figure .fig-meta {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.intro-figure .fig-center {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  padding-block: 28px;
}

.intro-figure .rings {
  position: relative;
  width: min(78%, 300px);
  aspect-ratio: 1;
}

.intro-figure .ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.intro-figure .ring:nth-child(2) {
  inset: 13%;
  border-color: rgba(15, 106, 80, 0.3);
}

.intro-figure .ring:nth-child(3) {
  inset: 27%;
  border-color: rgba(15, 106, 80, 0.45);
}

.intro-figure .ring:nth-child(4) {
  inset: 42%;
  background: var(--green);
  border-color: var(--green);
}

.intro-figure .ring-label {
  position: absolute;
  inset: 0;
  animation: spin-slow 40s linear infinite;
}

.intro-figure .ring-label span {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--muted);
  white-space: nowrap;
}

.intro-figure .ring-label span:nth-child(1) {
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
}
.intro-figure .ring-label span:nth-child(2) {
  right: 0;
  top: 50%;
  transform: rotate(90deg) translateX(50%);
  transform-origin: right center;
}
.intro-figure .ring-label span:nth-child(3) {
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
}
.intro-figure .ring-label span:nth-child(4) {
  left: 0;
  top: 50%;
  transform: rotate(-90deg) translateX(-50%);
  transform-origin: left center;
}

.intro-figure .fig-foot {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.intro-figure .fig-foot strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.intro-figure .fig-foot span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  text-align: right;
  white-space: nowrap;
}

/* ---------- 10. Services ---------- */
.services-list {
  border-top: 1px solid var(--line);
}

.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 58px 56px minmax(180px, 0.85fr) minmax(240px, 1.4fr) 52px;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  padding: 28px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
    padding 0.4s var(--ease);
}

.service-row:hover {
  background: var(--ink);
  color: var(--paper);
  padding-left: 34px;
  padding-right: 28px;
}

.service-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  transition: color 0.3s var(--ease);
}

.service-row:hover .service-num {
  color: var(--mint);
}

.service-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color 0.3s var(--ease), transform 0.4s var(--ease);
}

.service-icon svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  stroke-width: 1.25;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-row:hover .service-icon {
  border-color: rgba(91, 231, 176, 0.4);
  color: var(--mint);
  transform: rotate(-6deg);
}

.service-name h3 {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.3s var(--ease);
}

.service-name .eng {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  transition: color 0.3s var(--ease);
}

.service-row:hover .service-name .eng {
  color: rgba(241, 237, 226, 0.48);
}

.service-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.service-row:hover .service-desc {
  color: rgba(241, 237, 226, 0.62);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.service-row:hover .tag {
  border-color: var(--line-dark);
  color: rgba(241, 237, 226, 0.55);
}

.service-arrow {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    transform 0.35s var(--ease), color 0.35s var(--ease);
}

.service-arrow svg {
  width: 16px;
  height: 16px;
}

.service-row:hover .service-arrow {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--ink);
  transform: rotate(-45deg);
}

/* ---------- 11. Clients tabs ---------- */
.clients-frame {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.018);
}

.client-tabs {
  border-right: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.012);
}

.client-tab {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  padding: 23px 22px;
  border-bottom: 1px solid var(--line-dark);
  text-align: left;
  color: rgba(241, 237, 226, 0.5);
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}

.client-tab:last-child {
  border-bottom: 0;
}

.client-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--mint);
  transition: height 0.35s var(--ease);
}

.client-tab .num {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.client-tab .name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
}

.client-tab .hint {
  grid-column: 2;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(241, 237, 226, 0.25);
  margin-top: -6px;
}

.client-tab:hover {
  color: rgba(241, 237, 226, 0.78);
  background: rgba(255, 255, 255, 0.022);
}

.client-tab.is-active {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.04);
}

.client-tab.is-active::before {
  height: 100%;
}

.client-tab.is-active .num {
  color: var(--mint);
}

.client-panels {
  position: relative;
  min-height: 430px;
}

.client-panel {
  position: relative;
  padding: clamp(28px, 4.4vw, 58px);
  min-height: 100%;
  animation: fade-up 0.5s var(--ease) both;
}

.client-panel[hidden],
.js .client-panel:not(.is-active) {
  display: none;
}

.client-panel .ghost-num {
  position: absolute;
  right: clamp(18px, 3vw, 44px);
  top: clamp(10px, 2vw, 26px);
  font-family: var(--font-latin);
  font-style: italic;
  font-size: clamp(90px, 12vw, 170px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(241, 237, 226, 0.12);
  pointer-events: none;
}

.client-panel .file-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
}

.client-panel .file-meta::after {
  content: "";
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: rgba(91, 231, 176, 0.3);
}

.client-panel h3 {
  margin-top: 18px;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  color: var(--paper);
}

.client-panel .scenario {
  max-width: 620px;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.9;
  color: rgba(241, 237, 226, 0.65);
}

.client-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  margin-top: clamp(28px, 4vw, 42px);
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}

.client-col h4 {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(241, 237, 226, 0.4);
}

.client-col .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.client-panel .panel-ecg {
  margin-top: 36px;
  opacity: 0.5;
}

.client-panel .panel-ecg svg {
  width: min(100%, 420px);
  height: 34px;
}

.client-panel .panel-ecg path {
  fill: none;
  stroke: var(--mint);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 12. Cases ---------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.case-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  color: var(--text);
  transition: border-color 0.35s var(--ease), transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}

.case-card:hover {
  border-color: rgba(15, 106, 80, 0.45);
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(20, 33, 27, 0.12);
}

.case-card--feature {
  grid-column: span 7;
}

.case-card--side {
  grid-column: span 5;
}

.case-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: clamp(20px, 2.6vw, 34px);
  background: var(--ink);
  overflow: hidden;
}

.case-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(241, 237, 226, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 237, 226, 0.035) 1px, transparent 1px);
  background-size: 30px 30px;
}

.case-visual::after {
  content: "";
  position: absolute;
  width: 70%;
  height: 70%;
  top: 5%;
  right: -10%;
  background: radial-gradient(
    circle,
    rgba(91, 231, 176, 0.1),
    transparent 65%
  );
  pointer-events: none;
}

.case-visual .mock {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  transform: translateY(6px) scale(0.99);
  transition: transform 0.6s var(--ease-out);
}

.case-card:hover .case-visual .mock {
  transform: translateY(0) scale(1.01);
}

.case-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
  padding: clamp(20px, 2.4vw, 28px);
}

.case-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.case-kicker .cat {
  color: var(--green);
}

.case-body h3 {
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 600;
}

.case-body p {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
  padding-top: 8px;
}

.case-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

.case-link .arrow {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.case-link svg {
  width: 12px;
  height: 12px;
}

.case-card:hover .case-link {
  color: var(--green);
}

.case-card:hover .case-link .arrow {
  background: var(--green);
  border-color: var(--green);
  color: var(--paper);
  transform: rotate(-45deg);
}

.cases-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.cases-foot p {
  font-size: 13px;
  color: var(--muted);
}

/* ---- UI micro mockups ---- */
.mock {
  background: var(--paper-2);
  color: var(--text);
  border-radius: 6px;
  overflow: hidden;
  font-family: var(--font-sans);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.38);
  font-size: 9px;
  line-height: 1.5;
  user-select: none;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  background: #e9e4d7;
  border-bottom: 1px solid #d9d3c4;
}

.mock-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c3bcab;
}

.mock-url {
  display: flex;
  align-items: center;
  flex: 1;
  height: 13px;
  margin-left: 6px;
  padding: 0 7px;
  background: var(--paper-2);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.04em;
  color: #8a948e;
  white-space: nowrap;
  overflow: hidden;
}

.mock-body {
  padding: 12px;
}

.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.mock-head strong {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.mock-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(15, 106, 80, 0.1);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* CRM */
.mock--dark {
  background: var(--ink-2);
  color: var(--paper);
}
.mock--dark .mock-bar {
  background: var(--ink);
  border-bottom-color: rgba(241, 237, 226, 0.1);
}
.mock--dark .mock-dot {
  background: rgba(241, 237, 226, 0.22);
}
.mock--dark .mock-url {
  background: rgba(241, 237, 226, 0.07);
  color: rgba(241, 237, 226, 0.4);
}
.mock--dark .mock-head strong {
  color: var(--paper);
}

.mock-crm .mock-body {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  min-height: 190px;
}

.mock-side {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 8px 6px;
  background: rgba(241, 237, 226, 0.035);
  border: 1px solid rgba(241, 237, 226, 0.07);
  border-radius: 4px;
}

.mock-side-logo {
  width: 14px;
  height: 14px;
  margin-bottom: 4px;
  border: 1px solid var(--mint);
  border-radius: 3px;
  position: relative;
}
.mock-side-logo::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--mint);
  opacity: 0.7;
}

.mock-side-item {
  height: 5px;
  width: 80%;
  border-radius: 2px;
  background: rgba(241, 237, 226, 0.13);
}

.mock-side-item.is-active {
  width: 100%;
  height: 14px;
  border-radius: 3px;
  background: rgba(91, 231, 176, 0.16);
  border-left: 2px solid var(--mint);
}

.mock-main {
  min-width: 0;
}

.mock-table {
  border: 1px solid rgba(241, 237, 226, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.mock-tr {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 0.7fr 0.55fr;
  align-items: center;
  gap: 6px;
  padding: 6px 7px;
  border-bottom: 1px solid rgba(241, 237, 226, 0.06);
}

.mock-tr:last-child {
  border-bottom: 0;
}

.mock-tr--head {
  background: rgba(241, 237, 226, 0.04);
  font-family: var(--font-mono);
  font-size: 5.8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(241, 237, 226, 0.38);
}

.mock-cell {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(241, 237, 226, 0.68);
  font-size: 6.5px;
}

.mock-avatar {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(91, 231, 176, 0.3);
}

.mock-status {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(91, 231, 176, 0.13);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 5.5px;
  letter-spacing: 0.03em;
}

.mock-status--warn {
  background: rgba(241, 237, 226, 0.08);
  color: rgba(241, 237, 226, 0.55);
}

.mock-bar-cell {
  height: 4px;
  border-radius: 2px;
  background: rgba(241, 237, 226, 0.1);
  overflow: hidden;
  width: 100%;
}

.mock-bar-cell i {
  display: block;
  height: 100%;
  background: var(--mint);
  opacity: 0.75;
  border-radius: inherit;
}

.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 42px;
  margin-top: 8px;
  padding: 6px 8px;
  border: 1px solid rgba(241, 237, 226, 0.08);
  border-radius: 4px;
}

.mock-chart i {
  flex: 1;
  border-radius: 1px 1px 0 0;
  background: rgba(91, 231, 176, 0.4);
}

.mock-chart i:nth-child(2n) {
  background: rgba(91, 231, 176, 0.75);
}

/* appointment */
.mock-appt .mock-body {
  padding: 12px;
}

.mock-date-row {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}

.mock-date {
  flex: 1;
  padding: 6px 2px;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  text-align: center;
  color: var(--muted);
  font-size: 6.5px;
  line-height: 1.5;
}

.mock-date b {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--text);
}

.mock-date.is-active {
  background: var(--green);
  border-color: var(--green);
  color: rgba(255, 255, 255, 0.7);
}
.mock-date.is-active b {
  color: #fff;
}

.mock-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.mock-slot {
  padding: 7px 2px;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 6.5px;
  color: var(--text);
  background: #fff;
}

.mock-slot.is-muted {
  color: #b4b0a6;
  background: transparent;
  text-decoration: line-through;
}

.mock-slot.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.mock-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 4px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
}

.mock-summary small {
  display: block;
  font-size: 6px;
  color: var(--muted-2);
}

.mock-summary strong {
  font-size: 8px;
  font-weight: 500;
}

.mock-summary .mock-btn {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 6px;
}

/* follow-up */
.mock-follow .mock-body {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
  min-height: 190px;
}

.mock-patient-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-patient {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px;
  border-radius: 3px;
  border: 1px solid transparent;
}

.mock-patient.is-active {
  background: #fff;
  border-color: var(--line-soft);
}

.mock-patient .pa {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper-3);
  flex-shrink: 0;
}

.mock-patient span {
  display: block;
  font-size: 6.5px;
  line-height: 1.4;
  color: var(--text);
}

.mock-patient small {
  display: block;
  font-size: 5.5px;
  color: var(--muted-2);
}

.mock-chat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
}

.mock-chat-note {
  align-self: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(15, 106, 80, 0.08);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 5.5px;
  letter-spacing: 0.04em;
}

.mock-bubble {
  max-width: 84%;
  padding: 6px 8px;
  border-radius: 7px 7px 7px 2px;
  background: #fff;
  border: 1px solid var(--line-soft);
  font-size: 6.5px;
  line-height: 1.55;
  color: var(--text);
}

.mock-bubble--me {
  align-self: flex-end;
  border-radius: 7px 7px 2px 7px;
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.mock-chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  padding-top: 5px;
  border-top: 1px solid var(--line-soft);
  font-size: 6px;
  color: var(--muted-2);
}

.mock-chat-input span:last-child {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
}

/* nutrition */
.mock-nutrition .mock-body {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 170px;
}

.mock-ring {
  position: relative;
  width: 116px;
  height: 116px;
  margin-inline: auto;
  border-radius: 50%;
  background: conic-gradient(
    var(--green) 0 58%,
    var(--mint) 58% 82%,
    var(--paper-3) 82% 100%
  );
  display: grid;
  place-items: center;
}

.mock-ring::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--paper-2);
}

.mock-ring div {
  position: relative;
  text-align: center;
  line-height: 1.2;
}

.mock-ring strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.mock-ring small {
  font-size: 6px;
  color: var(--muted-2);
}

.mock-macros {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-macro {
  display: grid;
  grid-template-columns: 42px 1fr 32px;
  align-items: center;
  gap: 6px;
  font-size: 6.5px;
  color: var(--muted);
}

.mock-macro span:last-child {
  font-family: var(--font-mono);
  font-size: 5.8px;
  text-align: right;
  color: var(--muted-2);
}

.mock-macro-bar {
  height: 5px;
  border-radius: 3px;
  background: var(--paper-3);
  overflow: hidden;
}

.mock-macro-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.mock-meals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 9px;
}

.mock-meal {
  padding: 6px;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  background: #fff;
}

.mock-meal small {
  display: block;
  font-size: 5.5px;
  color: var(--muted-2);
}

.mock-meal span {
  display: block;
  margin-top: 3px;
  font-size: 6.5px;
  color: var(--text);
}

/* mall */
.mock-mall .mock-body {
  padding: 12px;
}

.mock-mall-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.mock-mall-tabs {
  display: flex;
  gap: 4px;
}

.mock-mall-tabs span {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--paper-3);
  color: var(--muted);
  font-size: 5.8px;
}

.mock-mall-tabs span:first-child {
  background: var(--ink);
  color: var(--paper);
}

.mock-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.mock-product {
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.mock-product-visual {
  height: 52px;
  background: linear-gradient(135deg, #d9e6dd, #f3efe5);
}

.mock-product:nth-child(2) .mock-product-visual {
  background: linear-gradient(135deg, #f0d9cd, #f6eee4);
}

.mock-product:nth-child(3) .mock-product-visual {
  background: linear-gradient(135deg, #d7e4e1, #b9d8cd);
}

.mock-product:nth-child(4) .mock-product-visual {
  background: linear-gradient(135deg, #e7e1d0, #d6cdb8);
}

.mock-product-info {
  padding: 5px 6px 6px;
}

.mock-product-info span {
  display: block;
  font-size: 6px;
  line-height: 1.4;
  color: var(--text);
}

.mock-product-info strong {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 500;
  color: var(--green);
}

.mock-product-info small {
  display: inline-block;
  margin-top: 3px;
  padding: 1px 4px;
  border-radius: 999px;
  background: rgba(15, 106, 80, 0.08);
  color: var(--green);
  font-size: 5px;
}

/* ---------- 13. Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

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

.process-card {
  position: relative;
  padding: clamp(26px, 3.4vw, 40px);
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  overflow: hidden;
}

.process-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      circle at 100% 0,
      rgba(91, 231, 176, 0.14),
      transparent 55%
    ),
    linear-gradient(rgba(241, 237, 226, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 237, 226, 0.03) 1px, transparent 1px);
  background-size: auto, 36px 36px, 36px 36px;
}

.process-card > * {
  position: relative;
}

.process-card .mono {
  color: var(--mint);
}

.process-card h3 {
  margin-top: 18px;
  font-size: clamp(24px, 2.4vw, 30px);
  color: var(--paper);
}

.process-card p {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(241, 237, 226, 0.58);
}

.check-list {
  margin-top: 24px;
  border-top: 1px solid var(--line-dark);
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 12.5px;
  color: rgba(241, 237, 226, 0.7);
}

.check-list li::before {
  content: "✓";
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--mint);
}

.process-card .btn {
  margin-top: 26px;
}

.process-list {
  border-top: 1px solid var(--line);
}

.process-step {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: clamp(16px, 2.6vw, 36px);
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}

.step-num {
  font-family: var(--font-latin);
  font-size: 34px;
  line-height: 1;
  color: var(--muted-2);
  transition: color 0.3s var(--ease);
}

.process-step:hover .step-num {
  color: var(--green);
}

.step-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.step-title h3 {
  font-size: 21px;
  font-weight: 600;
}

.step-title .eng {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
  margin-top: 10px;
}

.step-tags span {
  position: relative;
  padding-left: 13px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.step-tags span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.5;
}

/* ---------- 14. Partners ---------- */
.partners-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: end;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
}

.partners-head h2 {
  margin-top: 20px;
  font-size: clamp(2rem, 3.8vw, 3.35rem);
  color: var(--paper);
}

.partners-head h2 .serif-accent {
  color: var(--mint);
}

.partners-head p {
  max-width: 360px;
  justify-self: end;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(241, 237, 226, 0.55);
}

.partner-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: clamp(44px, 6vw, 72px);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.partner {
  padding: 26px 16px;
  border-right: 1px solid var(--line-dark);
  text-align: center;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.partner:last-child {
  border-right: 0;
}

.partner strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: rgba(241, 237, 226, 0.7);
  transition: color 0.3s var(--ease);
}

.partner span {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.16em;
  color: rgba(241, 237, 226, 0.28);
}

.partner:hover {
  background: rgba(255, 255, 255, 0.025);
}

.partner:hover strong {
  color: var(--mint);
}

.partners-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.partners-foot p {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(241, 237, 226, 0.35);
  line-height: 1.9;
}

/* ---------- 15. FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}

.faq-intro h2 {
  font-size: clamp(1.8rem, 2.9vw, 2.6rem);
}

.faq-intro p {
  max-width: 360px;
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}

.faq-intro .link-arrow {
  margin-top: 28px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  text-align: left;
  color: inherit;
}

.faq-q > span:first-child {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.7vw, 20px);
  font-weight: 500;
  line-height: 1.6;
}

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.is-open .faq-icon {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  transform: rotate(90deg);
}

.faq-item.is-open .faq-icon::after {
  opacity: 0;
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
}

.faq-a-inner {
  overflow: hidden;
}

.faq-a p {
  max-width: 620px;
  padding: 0 0 24px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--muted);
}

/* ---------- 16. CTA / QR ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--green-ink);
  color: var(--paper);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      ellipse 50% 60% at 85% 20%,
      rgba(91, 231, 176, 0.16),
      transparent 65%
    ),
    linear-gradient(rgba(241, 237, 226, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 237, 226, 0.035) 1px, transparent 1px);
  background-size: auto, 60px 60px, 60px 60px;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
}

.cta-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.cta-title {
  margin-top: 22px;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: 1.12;
  color: var(--paper);
}

.cta-title .serif-accent {
  color: var(--mint);
}

.cta-copy > p {
  max-width: 520px;
  margin-top: 20px;
  font-size: 15.5px;
  line-height: 1.9;
  color: rgba(241, 237, 226, 0.62);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.cta-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(241, 237, 226, 0.45);
}

.cta-contact span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cta-contact span::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--mint);
  transform: rotate(45deg);
}

.qr-card {
  justify-self: end;
  width: min(100%, 320px);
  padding: 22px;
  background: var(--paper-2);
  color: var(--text);
  border-radius: 6px;
  transform: rotate(1.6deg);
  transition: transform 0.45s var(--ease-out);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
}

.qr-card:hover {
  transform: rotate(0deg);
}

.qr-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.qr-box {
  margin: 18px auto 14px;
  width: 174px;
  height: 174px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
}

.qr-box svg,
.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-card > strong {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  text-align: center;
}

.qr-card > p {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
}

.qr-note {
  display: block;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  text-align: center;
}

.cta-ecg {
  position: absolute;
  left: 0;
  bottom: 12px;
  width: 100%;
  height: 60px;
  opacity: 0.35;
  pointer-events: none;
}

.cta-ecg path {
  fill: none;
  stroke: var(--mint);
  stroke-width: 1;
}

/* ---------- 17. Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(56px, 7vw, 90px);
  overflow: hidden;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  padding-bottom: clamp(44px, 6vw, 64px);
  border-bottom: 1px solid var(--line-dark);
}

.footer-brand .brand {
  margin-bottom: 20px;
}

.footer-brand p {
  max-width: 330px;
  font-size: 13.5px;
  line-height: 1.9;
  color: rgba(241, 237, 226, 0.5);
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 6px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(241, 237, 226, 0.55);
}

.footer-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px rgba(91, 231, 176, 0.7);
}

.footer-col h4 {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(241, 237, 226, 0.35);
}

.footer-col a,
.footer-col span {
  display: block;
  padding: 4px 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(241, 237, 226, 0.62);
  transition: color 0.25s var(--ease);
}

.footer-col a:hover {
  color: var(--mint);
}

.footer-col span.muted-line {
  color: rgba(241, 237, 226, 0.35);
  font-size: 11.5px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 20px 0;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(241, 237, 226, 0.32);
}

.footer-bottom a {
  color: rgba(241, 237, 226, 0.45);
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--mint);
}

.footer-ghost {
  margin-top: 12px;
  margin-bottom: -0.12em;
  font-family: var(--font-display);
  font-size: clamp(84px, 19.5vw, 268px);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.045em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(241, 237, 226, 0.12);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

/* ---------- 18. Inner page hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(148px, 16vw, 208px);
  padding-bottom: clamp(58px, 8vw, 96px);
  background: var(--paper);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-ghost {
  position: absolute;
  right: -0.03em;
  bottom: -0.16em;
  z-index: 0;
  font-family: var(--font-latin);
  font-size: clamp(120px, 23vw, 340px);
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(20, 33, 27, 0.1);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.breadcrumb a,
.breadcrumb span {
  white-space: nowrap;
}

.breadcrumb a {
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--green);
}

.breadcrumb .sep {
  color: var(--line);
}

.page-hero h1 {
  max-width: 1000px;
  margin-top: clamp(30px, 4vw, 48px);
  font-size: clamp(2.8rem, 6.8vw, 6.4rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.page-hero h1 .mark {
  background: linear-gradient(transparent 64%, rgba(91, 231, 176, 0.3) 64%);
  padding: 0 0.04em;
}

.page-hero .lead {
  max-width: 660px;
  margin-top: 26px;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.95;
  color: var(--muted);
}

.page-hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: clamp(38px, 5vw, 64px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.page-hero-foot .facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
}

.page-hero-foot .fact {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-hero-foot .fact b {
  margin-right: 6px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text);
}

/* ---------- 19. Services page ---------- */
.svc-index {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.svc-index a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 18px;
  border-right: 1px solid var(--line);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.svc-index a:last-child {
  border-right: 0;
}

.svc-index a:hover,
.svc-index a.is-active {
  background: var(--ink);
  color: var(--paper);
}

.svc-index .num {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--green);
}

.svc-index a:hover .num,
.svc-index a.is-active .num {
  color: var(--mint);
}

.page-hero .svc-index {
  margin-top: clamp(32px, 4vw, 48px);
  border: 1px solid var(--line);
}

.svc-index a:hover .num {
  color: var(--mint);
}

.svc-index strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
}

.svc-detail {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: clamp(40px, 7vw, 100px);
  padding-block: clamp(56px, 7vw, 92px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.svc-side {
  position: relative;
}

.svc-num {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: clamp(70px, 8vw, 104px);
  line-height: 0.8;
  color: var(--green);
}

.svc-side h2 {
  margin-top: 14px;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
}

.svc-eng {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.svc-icon-box {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin-top: 30px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--green);
}

.svc-icon-box svg {
  width: 42px;
  height: 42px;
  stroke: currentColor;
  stroke-width: 1.1;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svc-side .svc-note {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}

.svc-main > .lead {
  max-width: 720px;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.9;
  color: var(--text);
}

.svc-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  margin-top: 38px;
}

.svc-block h3 {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.svc-list {
  margin-top: 6px;
}

.svc-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.svc-list li::before {
  content: "—";
  flex-shrink: 0;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 10px;
}

.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.svc-main .link-arrow {
  margin-top: 32px;
}

.svc-combos {
  margin-top: clamp(56px, 7vw, 88px);
  padding: clamp(26px, 4vw, 44px);
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
}

.svc-combos h2 {
  margin-top: 14px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--paper);
}

.svc-combo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 30px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.svc-combo {
  padding: 22px;
  background: var(--ink);
}

.svc-combo span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--mint);
}

.svc-combo strong {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--paper);
}

.svc-combo p {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.8;
  color: rgba(241, 237, 226, 0.55);
}

/* ---------- 20. Cases page ---------- */
.case-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: clamp(32px, 4vw, 48px) 0 clamp(28px, 4vw, 40px);
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.filter-btn:hover {
  border-color: var(--green);
  color: var(--green);
}

.filter-btn[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

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

.cases-page-grid .case-card {
  grid-column: auto;
}

.case-card--full {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

.case-card--full .case-visual {
  min-height: 380px;
  border-right: 1px solid var(--line);
}

.case-card--full .case-body {
  padding: clamp(28px, 4vw, 48px);
  justify-content: center;
}

.case-card--full .case-body h3 {
  font-size: clamp(26px, 3vw, 34px);
}

.case-card--full .case-body p {
  font-size: 15px;
  line-height: 1.9;
}

.case-detail-list {
  display: grid;
  gap: 10px;
  margin: 10px 0;
}

.case-detail-list li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.case-detail-list li span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-top: 3px;
}

.case-card.is-hidden {
  display: none;
}

.cases-note {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted-2);
  text-align: center;
}

/* ---------- 21. About page ---------- */
.about-statement {
  max-width: 1040px;
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1.35;
}

.about-statement .muted-line {
  color: var(--muted-2);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}

.about-body p {
  font-size: 16px;
  line-height: 1.95;
  color: var(--muted);
}

.about-body p + p {
  margin-top: 18px;
}

.about-body strong {
  font-weight: 500;
  color: var(--text);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.fact-cell {
  padding: 24px 22px;
  border-right: 1px solid var(--line);
}

.fact-cell:last-child {
  border-right: 0;
}

.fact-cell strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.5vw, 56px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.fact-cell span {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.principle {
  padding: 28px 26px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principle:first-child {
  border-left: 1px solid var(--line);
}

.principle .idx {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--green);
}

.principle h3 {
  margin-top: 18px;
  font-size: 22px;
}

.principle p {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.role {
  padding: 24px;
  background: var(--paper-2);
  transition: background 0.25s var(--ease);
}

.role:hover {
  background: var(--paper);
}

.role span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--green);
}

.role h3 {
  margin-top: 10px;
  font-size: 19px;
}

.role p {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- 22. News page ---------- */
.featured-article {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 380px;
  margin-bottom: clamp(36px, 5vw, 56px);
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  overflow: hidden;
}

.featured-copy {
  padding: clamp(30px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-copy .meta {
  display: flex;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
}

.featured-copy h2 {
  margin-top: 18px;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  color: var(--paper);
}

.featured-copy p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(241, 237, 226, 0.6);
}

.featured-copy .link-arrow {
  align-self: flex-start;
  margin-top: 28px;
  color: var(--paper);
}

.featured-copy .link-arrow:hover {
  color: var(--mint);
}

.featured-visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ink-2);
  border-left: 1px solid var(--line-dark);
}

.featured-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(241, 237, 226, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 237, 226, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
}

.featured-visual .big-word {
  position: relative;
  font-family: var(--font-latin);
  font-style: italic;
  font-size: clamp(80px, 12vw, 170px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(91, 231, 176, 0.55);
}

.featured-visual .tag {
  position: absolute;
  left: 24px;
  bottom: 24px;
}

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

.article-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-2);
  overflow: hidden;
  color: var(--text);
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.4s var(--ease);
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 106, 80, 0.4);
  box-shadow: 0 20px 44px rgba(20, 33, 27, 0.1);
}

.article-thumb {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: var(--ink);
  display: grid;
  place-items: center;
}

.article-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(241, 237, 226, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 237, 226, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

.article-thumb .word {
  position: relative;
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 58px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(241, 237, 226, 0.45);
  transition: transform 0.5s var(--ease-out);
}

.article-card:hover .article-thumb .word {
  transform: scale(1.06);
}

.article-thumb .cat {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
}

.article-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.article-body .date {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
}

.article-body h3 {
  margin-top: 9px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
}

.article-body p {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}

.article-body .read {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

.article-body .read svg {
  width: 13px;
  height: 13px;
  transition: transform 0.25s var(--ease);
}

.article-card:hover .read svg {
  transform: translateX(4px);
}

.article-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: 88vh;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--paper-2);
  color: var(--text);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

.article-dialog::backdrop {
  background: rgba(10, 20, 16, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.dialog-scroll {
  max-height: 88vh;
  overflow-y: auto;
  padding: clamp(28px, 5vw, 54px);
}

.dialog-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}

.dialog-close:hover {
  background: var(--ink);
  color: var(--paper);
}

.dialog-meta {
  display: flex;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.dialog-scroll h2 {
  margin-top: 16px;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.35;
}

.dialog-lead {
  margin-top: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}

.dialog-body p {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--text);
}

.dialog-body h3 {
  margin-top: 28px;
  font-size: 20px;
}

/* ---------- 23. Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.form-card {
  padding: clamp(24px, 4vw, 44px);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.form-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.form-head h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.form-head span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}

.contact-form {
  margin-top: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}

.field label .req {
  color: var(--green);
  margin-left: 2px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.field input {
  height: 48px;
}

.field select {
  height: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235e6b64' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a3a99f;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 106, 80, 0.1);
}

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.form-foot p {
  max-width: 360px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted-2);
}

.form-foot p strong {
  font-weight: 500;
  color: var(--green);
}

.form-success {
  display: none;
  padding: 32px 8px;
  text-align: center;
}

.form-success.is-visible {
  display: block;
  animation: fade-up 0.45s var(--ease);
}

.form-success .ok {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--green);
  color: var(--paper);
}

.form-success .ok svg {
  width: 24px;
  height: 24px;
}

.form-success h3 {
  font-size: 24px;
}

.form-success p {
  max-width: 440px;
  margin: 10px auto 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.form-success .btn {
  margin-top: 22px;
}

.contact-card {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  overflow: hidden;
}

.contact-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(241, 237, 226, 0.5);
}

.contact-card-head span:last-child {
  color: var(--mint);
}

.contact-rows {
  padding: 6px 22px;
}

.contact-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-dark);
}

.contact-row:last-child {
  border-bottom: 0;
}

.contact-row span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(241, 237, 226, 0.4);
  white-space: nowrap;
}

.contact-row strong {
  font-size: 13px;
  font-weight: 400;
  color: rgba(241, 237, 226, 0.85);
  text-align: right;
}

.contact-qr {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 8px 22px 22px;
  padding: 16px;
  background: var(--paper-2);
  color: var(--text);
  border-radius: 4px;
}

.contact-qr .qr-mini {
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  background: #fff;
  padding: 6px;
  border: 1px solid var(--line);
}

.contact-qr strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}

.contact-qr p {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}

.contact-qr small {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: 3px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
}

.privacy-note svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--green);
}

.prepare-list {
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.prepare-list h3 {
  font-size: 20px;
}

.prepare-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 18px;
  background: var(--line);
  border: 1px solid var(--line);
}

.prepare-item {
  padding: 18px;
  background: var(--paper-2);
}

.prepare-item span {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--green);
}

.prepare-item strong {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
}

.prepare-item p {
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 24. Keyframes ---------- */
@keyframes hero-line {
  to {
    transform: translateY(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ecg-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@keyframes scroll-line {
  0% {
    transform: scaleX(0);
    opacity: 0.4;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
  100% {
    transform: scaleX(1);
    opacity: 0.2;
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

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

/* ---------- 25. Responsive ---------- */
@media (max-width: 1180px) {
  .hero-title {
    font-size: clamp(2.7rem, 6vw, 4.7rem);
  }

  .vitals {
    max-width: 380px;
  }

  .service-row {
    grid-template-columns: 48px 52px minmax(160px, 0.8fr) minmax(220px, 1.3fr) 46px;
    gap: 18px;
  }

  .clients-frame {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .client-tab {
    padding: 20px 18px;
  }

  .client-tab .name {
    font-size: 18px;
  }

  .svc-detail {
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 48px;
  }
}

@media (max-width: 1080px) {
  .desktop-nav {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .header-actions .btn--header {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 36px;
  }

  .hero-copy {
    grid-column: 1;
  }

  .vitals {
    grid-column: 2;
    max-width: none;
  }

  .hero-title {
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  }

  .process-grid {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 44px;
  }

  .partner strong {
    font-size: 17px;
  }
}

@media (max-width: 980px) {
  .sec-head {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 20px 32px;
  }

  .sec-desc {
    grid-column: 2;
    justify-self: start;
    max-width: 520px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-block: 54px 46px;
  }

  .hero-copy,
  .vitals {
    grid-column: auto;
  }

  .hero-title {
    font-size: clamp(2.6rem, 7.5vw, 4.4rem);
  }

  .vitals {
    justify-self: start;
    max-width: 460px;
    margin-top: 12px;
  }

  .hero-side-label {
    display: none;
  }

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

  .intro-side {
    position: static;
    max-width: 520px;
  }

  .service-row {
    grid-template-columns: 44px 48px 1fr 46px;
    padding: 22px 16px;
    gap: 14px;
  }

  .service-desc {
    grid-column: 3;
  }

  .service-arrow {
    grid-column: 4;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .service-icon {
    width: 46px;
    height: 46px;
  }

  .clients-frame {
    grid-template-columns: 1fr;
  }

  .client-tabs {
    display: flex;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
    scrollbar-width: none;
  }

  .client-tabs::-webkit-scrollbar {
    display: none;
  }

  .client-tab {
    flex: 0 0 auto;
    width: auto;
    min-width: 132px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 18px;
    border-bottom: 0;
    border-right: 1px solid var(--line-dark);
  }

  .client-tab::before {
    top: auto;
    bottom: 0;
    width: 0;
    height: 2px;
    transition: width 0.35s var(--ease);
  }

  .client-tab.is-active::before {
    width: 100%;
    height: 2px;
  }

  .client-tab .hint {
    display: none;
  }

  .client-tab .name {
    font-size: 16px;
  }

  .client-panels {
    min-height: 0;
  }

  .cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-card,
  .case-card--feature,
  .case-card--side {
    grid-column: span 1;
  }

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

  .process-sticky {
    position: static;
  }

  .process-card {
    max-width: 620px;
  }

  .partners-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .partners-head p {
    justify-self: start;
    max-width: 520px;
  }

  .partner-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .partner {
    border-bottom: 1px solid var(--line-dark);
  }

  .partner:nth-child(3n) {
    border-right: 0;
  }

  .partner:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .faq-intro {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 20px;
  }

  .faq-intro h2,
  .faq-intro p {
    grid-column: 1 / -1;
  }

  .faq-intro .link-arrow {
    margin-top: 0;
  }

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

  .qr-card {
    justify-self: start;
    width: min(100%, 360px);
  }

  .footer-top {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0 28px;
    align-items: baseline;
  }

  .footer-col:last-child h4 {
    width: 100%;
  }

  .footer-col:last-child a,
  .footer-col:last-child span {
    display: inline-block;
  }

  .svc-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .svc-side {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: end;
    gap: 16px 24px;
  }

  .svc-num {
    font-size: 64px;
  }

  .svc-side h2 {
    margin-top: 0;
  }

  .svc-eng {
    margin-top: 0;
    padding-bottom: 6px;
  }

  .svc-icon-box {
    grid-column: 3;
    grid-row: 1 / span 2;
    width: 84px;
    height: 84px;
    margin-top: 0;
  }

  .svc-icon-box svg {
    width: 32px;
    height: 32px;
  }

  .svc-side .svc-note {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .svc-index {
    grid-template-columns: repeat(3, 1fr);
  }

  .svc-index a:nth-child(3) {
    border-right: 0;
  }

  .svc-index a:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

  .svc-combo-grid {
    grid-template-columns: 1fr;
  }

  .cases-page-grid {
    grid-template-columns: 1fr;
  }

  .case-card--full {
    grid-template-columns: 1fr;
  }

  .case-card--full .case-visual {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: 300px;
  }

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

  .facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fact-cell:nth-child(2) {
    border-right: 0;
  }

  .fact-cell:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

  .principle {
    border-left: 1px solid var(--line);
  }

  .roles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-article {
    grid-template-columns: 1fr;
  }

  .featured-visual {
    min-height: 220px;
    border-left: 0;
    border-top: 1px solid var(--line-dark);
    order: -1;
  }

  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .contact-card {
    position: static;
  }

  .prepare-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 72px;
  }

  .hero-inner {
    padding-top: calc(var(--header-h) + 26px);
  }

  .hero-meta {
    font-size: 8px;
  }

  .hero-meta .mid {
    display: none;
  }

  .hero-title {
    font-size: clamp(2.1rem, 9vw, 3.4rem);
  }

  .hero-sub {
    font-size: 14.5px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    min-width: 150px;
  }

  .hero-foot-meta {
    display: none;
  }

  .vitals-row strong {
    font-size: 30px;
  }

  .marquee-item--serif {
    font-size: 17px;
  }

  .sec-head {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .sec-label {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .sec-desc {
    grid-column: 1;
  }

  .intro-title {
    font-size: clamp(2rem, 8vw, 2.7rem);
  }

  .adv-row {
    grid-template-columns: 34px 1fr;
    gap: 6px 14px;
    padding: 20px 0;
  }

  .adv-row h3 {
    font-size: 19px;
  }

  .adv-row p {
    grid-column: 2;
  }

  .service-row {
    grid-template-columns: 36px 1fr 42px;
    padding: 20px 12px;
    gap: 8px 12px;
  }

  .service-icon {
    display: none;
  }

  .service-num {
    grid-column: 1;
    grid-row: 1;
  }

  .service-name {
    grid-column: 2;
    grid-row: 1;
  }

  .service-name h3 {
    font-size: 22px;
  }

  .service-desc {
    grid-column: 2;
    grid-row: 2;
    font-size: 13px;
  }

  .service-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
    width: 40px;
    height: 40px;
  }

  .service-row:hover {
    padding-left: 18px;
    padding-right: 16px;
  }

  .client-panel {
    padding: 24px 20px;
  }

  .client-panel .ghost-num {
    font-size: 90px;
    top: 8px;
    right: 14px;
  }

  .client-cols {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .case-visual {
    min-height: 260px;
  }

  .cases-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .process-step {
    grid-template-columns: 42px 1fr;
  }

  .step-num {
    font-size: 28px;
  }

  .step-title h3 {
    font-size: 19px;
  }

  .partner-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .partner:nth-child(2n) {
    border-right: 0;
  }

  .partner:nth-child(3n) {
    border-right: 1px solid var(--line-dark);
  }

  .partner:nth-child(2n) {
    border-right: 0;
  }

  .partner:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line-dark);
  }

  .partner:last-child {
    border-bottom: 0;
  }

  .partner:nth-child(5) {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .faq-intro {
    display: block;
  }

  .faq-intro .link-arrow {
    margin-top: 20px;
  }

  .cta-title {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
  }

  .qr-card {
    transform: none;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-hero {
    padding-top: calc(var(--header-h) + 78px);
  }

  .page-hero h1 {
    font-size: clamp(2.3rem, 10vw, 3.6rem);
  }

  .page-ghost {
    font-size: 100px;
    bottom: -0.1em;
  }

  .svc-index {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .svc-index::-webkit-scrollbar {
    display: none;
  }

  .svc-index a {
    flex: 0 0 auto;
    min-width: 120px;
    border-top: 0 !important;
  }

  .svc-side {
    grid-template-columns: auto 1fr;
  }

  .svc-icon-box {
    display: none;
  }

  .svc-cols {
    grid-template-columns: 1fr;
  }

  .case-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .case-filter::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex: 0 0 auto;
  }

  .about-statement {
    font-size: clamp(1.9rem, 7.5vw, 2.7rem);
  }

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

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

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

  .field--full {
    grid-column: auto;
  }

  .form-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .form-foot .btn {
    width: 100%;
  }

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

  .contact-qr {
    align-items: flex-start;
  }

  .qr-card {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-meta .last {
    display: none;
  }

  .hero-title {
    font-size: clamp(2.05rem, 10.5vw, 2.8rem);
  }

  .vitals-row {
    padding: 14px 12px;
  }

  .vitals-row strong {
    font-size: 26px;
  }

  .vitals-row span {
    font-size: 10px;
  }

  .vitals-ecg {
    padding-inline: 10px;
  }

  .client-tab {
    min-width: 118px;
  }

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

  .fact-cell {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .fact-cell:last-child {
    border-bottom: 0;
  }

  .footer-ghost {
    font-size: 23vw;
  }
}

/* ---------- 26. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal],
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-title .line > span,
  .hero-eng,
  .hero-sub,
  .hero-actions,
  .vitals {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .marquee-track {
    animation: none;
  }

  .intro-figure .ring-label {
    animation: none;
  }

  .ecg-line {
    stroke-dashoffset: 0;
  }
}

/* ==========================================================================
   27. Additions · SEO pages, service cards, consult dialog, articles, cases
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

section[id],
article[id],
div[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.section--tight {
  padding-block: clamp(58px, 7vw, 96px);
}

.band-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 18px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted-2);
}

.band-note::before {
  content: "※";
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 10px;
}

/* Header: 8 top-level items */
@media (max-width: 1140px) {
  .desktop-nav {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .header-actions .btn--header {
    display: none;
  }
}

/* Mobile drawer: 8 items */
.mobile-menu.is-open .mobile-nav > a:nth-child(7) {
  transition-delay: 0.32s;
}
.mobile-menu.is-open .mobile-nav > a:nth-child(8) {
  transition-delay: 0.36s;
}

/* ---------- Home services cards ---------- */
@media (max-width: 980px) {
  .service-card__viz {
    display: none;
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}

.service-card {
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  color: var(--text);
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
    border-color 0.4s var(--ease), transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.service-card--wide {
  grid-column: span 3;
  min-height: 330px;
}

.service-card:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  transform: translateY(-4px);
  box-shadow: 0 26px 54px rgba(20, 33, 27, 0.16);
}

.service-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.service-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.service-card__num {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  transition: color 0.3s var(--ease);
}

.service-card:hover .service-card__num {
  color: var(--mint);
}

.service-card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease),
    transform 0.4s var(--ease);
}

.service-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card:hover .service-card__icon {
  color: var(--mint);
  border-color: rgba(91, 231, 176, 0.4);
  transform: rotate(-6deg);
}

.service-card h3 {
  margin-top: 26px;
  font-size: clamp(22px, 2.2vw, 27px);
  line-height: 1.3;
}

.service-card__eng {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  transition: color 0.3s var(--ease);
}

.service-card:hover .service-card__eng {
  color: rgba(241, 237, 226, 0.45);
}

.service-card p {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.service-card:hover p {
  color: rgba(241, 237, 226, 0.6);
}

.service-card .service-tags {
  margin-top: 16px;
}

.service-card:hover .tag {
  border-color: var(--line-dark);
  color: rgba(241, 237, 226, 0.55);
}

.service-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
  font-size: 12px;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.service-card__link .arrow {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    color 0.3s var(--ease), transform 0.3s var(--ease);
}

.service-card__link svg {
  width: 12px;
  height: 12px;
}

.service-card:hover .service-card__link {
  color: var(--mint);
}

.service-card:hover .service-card__link .arrow {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--ink);
  transform: rotate(-45deg);
}

.service-card__viz {
  position: absolute;
  right: -26px;
  bottom: -26px;
  width: 180px;
  height: 180px;
  color: var(--line);
  opacity: 0.8;
  pointer-events: none;
  transition: color 0.4s var(--ease), transform 0.6s var(--ease-out),
    opacity 0.4s var(--ease);
}

.service-card__viz svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1;
  fill: none;
}

.service-card:hover .service-card__viz {
  color: rgba(91, 231, 176, 0.25);
  opacity: 1;
  transform: rotate(5deg) scale(1.04);
}

/* ---------- Consult rail & dialog ---------- */
.consult-rail {
  position: fixed;
  right: 18px;
  bottom: 30px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rail-btn {
  position: relative;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: rgba(10, 20, 16, 0.9);
  color: var(--paper);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(4, 14, 10, 0.22);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.rail-btn svg {
  width: 20px;
  height: 20px;
}

.rail-btn:hover {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--ink);
  transform: translateY(-2px);
}

.rail-btn--consult::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(91, 231, 176, 0.14);
  animation: blink 2.2s ease-in-out infinite;
}

.rail-btn--consult:hover::after {
  background: var(--ink);
  box-shadow: none;
}

.rail-label {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  padding: 6px 10px;
  border-radius: 3px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-50%) translateX(6px);
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.rail-btn:hover .rail-label {
  opacity: 1;
  transform: translateY(-50%);
}

.consult-dialog {
  display: none;
  width: min(780px, calc(100vw - 32px));
  max-height: 90vh;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--paper-2);
  color: var(--text);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

.consult-dialog[open] {
  display: block;
  animation: fade-up 0.35s var(--ease);
}

.consult-dialog::backdrop {
  background: rgba(10, 20, 16, 0.74);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.consult-inner {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  min-height: 430px;
}

.consult-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--text);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.consult-close:hover {
  background: var(--ink);
  color: var(--paper);
}

.consult-qr-side {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 34px 24px;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.consult-qr-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(241, 237, 226, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 237, 226, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.consult-qr-side .qr-box {
  position: relative;
  width: 194px;
  height: 194px;
  margin: 0;
  background: #fff;
  padding: 10px;
  border: 0;
}

.consult-qr-side .qr-caption {
  position: relative;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(241, 237, 226, 0.45);
  text-align: center;
}

.consult-copy {
  padding: clamp(30px, 4.5vw, 46px);
}

.consult-copy .mono {
  color: var(--green);
}

.consult-copy h2 {
  margin-top: 14px;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.3;
}

.consult-copy > p {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
}

.consult-list {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.consult-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
}

.consult-list span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}

.consult-list strong {
  font-weight: 400;
  color: var(--text);
  text-align: right;
}

.consult-note {
  margin-top: 16px;
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--muted-2);
}

/* ---------- Service detail page blocks ---------- */
.subservice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.subservice {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: clamp(20px, 2.6vw, 28px);
  background: var(--paper-2);
  transition: background 0.25s var(--ease);
}

.subservice:hover {
  background: var(--paper);
}

.subservice .num {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  color: var(--green);
}

.subservice h3 {
  margin-top: 14px;
  font-size: 20px;
}

.subservice p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.subservice ul {
  margin-top: auto;
  padding-top: 14px;
}

.subservice li {
  position: relative;
  padding: 3px 0 3px 12px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--text);
}

.subservice li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9em;
  width: 4px;
  height: 1px;
  background: var(--green);
}

.scenario-table {
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.scenario-row {
  display: grid;
  grid-template-columns: 150px 1.15fr 1fr;
  gap: 22px;
  padding: 16px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.scenario-row--head {
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.scenario-row strong {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.7;
}

.scenario-row span {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.capability {
  padding: clamp(20px, 2.4vw, 26px);
  background: var(--paper);
}

.capability .num {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  color: var(--green);
}

.capability h3 {
  margin-top: 12px;
  font-size: 18px;
}

.capability p {
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}

.related-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.related-service {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.related-service:hover {
  background: var(--ink);
  color: var(--paper);
}

.related-service span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--green);
}

.related-service:hover span {
  color: var(--mint);
}

.related-service strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
}

.related-service .go {
  margin-top: auto;
  font-size: 14px;
  color: var(--muted-2);
  transition: transform 0.25s var(--ease);
}

.related-service:hover .go {
  transform: translateX(4px);
  color: var(--mint);
}

/* Related case teasers on service pages */
.case-teaser-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.case-teaser {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-2);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.case-teaser:hover {
  border-color: rgba(15, 106, 80, 0.4);
  background: var(--paper);
  transform: translateY(-2px);
}

.case-teaser .num {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 44px;
  line-height: 1;
  color: var(--green);
}

.case-teaser h3 {
  font-size: 19px;
  line-height: 1.4;
}

.case-teaser p {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
}

.case-teaser .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.case-teaser .go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--green);
}

.case-teaser .go svg {
  width: 12px;
  height: 12px;
  transition: transform 0.25s var(--ease);
}

.case-teaser:hover .go svg {
  transform: translateX(3px);
}

@media (max-width: 720px) {
  .case-teaser-grid {
    grid-template-columns: 1fr;
  }
}

.step-tags .key {
  padding: 1px 6px;
  border-radius: 2px;
  background: rgba(91, 231, 176, 0.2);
  color: var(--green);
  font-weight: 500;
}

.step-tags .key::before {
  background: var(--green);
  opacity: 1;
}

/* Advantages */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.advantage {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--ink);
}

.advantage .idx {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
}

.advantage h3 {
  margin-top: 18px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--paper);
}

.advantage p {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.9;
  color: rgba(241, 237, 226, 0.58);
}

.advantage .icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-top: auto;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--mint);
}

.advantage .icon svg {
  width: 19px;
  height: 19px;
}

/* Light partners */
.partners-head--light {
  border-color: var(--line);
}

.partners-head--light h2 {
  color: var(--text);
}

.partners-head--light p {
  color: var(--muted);
}

.partner-row--light {
  border-color: var(--line);
}

.partner-row--light .partner {
  border-color: var(--line);
}

.partner-row--light .partner strong {
  color: var(--text);
  opacity: 0.68;
}

.partner-row--light .partner span {
  color: var(--muted-2);
}

.partner-row--light .partner:hover {
  background: var(--paper);
}

.partner-row--light .partner:hover strong {
  color: var(--green);
  opacity: 1;
}

.partners-foot--light p {
  color: var(--muted-2);
}

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

  .advantage {
    min-height: 0;
  }
}


/* ---------- Article detail ---------- */
.page-hero--article {
  padding-bottom: clamp(42px, 6vw, 64px);
}

.page-hero--article h1 {
  max-width: 940px;
  font-size: clamp(2.15rem, 4.6vw, 4rem);
  line-height: 1.2;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-meta .cat {
  color: var(--green);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.article-main {
  min-width: 0;
}

.article-lead {
  font-size: clamp(16.5px, 1.6vw, 18.5px);
  line-height: 1.95;
  color: var(--text);
}

.article-content {
  margin-top: 30px;
}

.article-content h2 {
  margin-top: 44px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  margin-top: 28px;
  font-size: 19px;
}

.article-content p {
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 2;
  color: var(--muted);
}

.article-content strong {
  font-weight: 500;
  color: var(--text);
}

.article-content ul,
.article-content ol {
  margin-top: 16px;
  padding-left: 22px;
}

.article-content ul {
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}

.article-content li::marker {
  color: var(--green);
}

.article-content blockquote {
  margin: 30px 0;
  padding: 18px 22px;
  border-left: 2px solid var(--mint);
  background: var(--paper-2);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
}

.article-content table {
  width: 100%;
  margin-top: 22px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.7;
}

.article-content th,
.article-content td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-content th {
  background: var(--paper-2);
  font-weight: 500;
  color: var(--text);
}

.article-content td {
  color: var(--muted);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 42px;
}

.article-nav a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-2);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.article-nav a:hover {
  background: var(--paper);
  border-color: var(--green);
}

.article-nav a:last-child {
  text-align: right;
}

.article-nav span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.article-nav strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.article-aside {
  position: sticky;
  top: calc(var(--header-h) + 30px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.toc {
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.toc h2 {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.toc ol {
  margin-top: 10px;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
  border-bottom: 1px solid var(--line-soft);
}

.toc li:last-child {
  border-bottom: 0;
}

.toc a {
  display: flex;
  gap: 8px;
  padding: 7px 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  transition: color 0.2s;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--green);
  padding-top: 2px;
}

.toc a:hover {
  color: var(--green);
}

.aside-card {
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.aside-card h2 {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.aside-card ul {
  margin-top: 10px;
}

.aside-card li {
  border-bottom: 1px solid var(--line-soft);
}

.aside-card li:last-child {
  border-bottom: 0;
}

.aside-card a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text);
  transition: color 0.2s;
}

.aside-card a:hover {
  color: var(--green);
}

.aside-card a span {
  color: var(--muted-2);
}

.aside-card--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.aside-card--dark h2 {
  color: var(--mint);
}

.aside-card--dark p {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.75;
  color: rgba(241, 237, 226, 0.55);
}

.aside-card--dark .btn {
  width: 100%;
  margin-top: 16px;
}

/* ---------- Case library details ---------- */
.case-detail {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(40px, 6vw, 72px) 0;
  border-bottom: 1px solid var(--line);
}

.case-detail:last-of-type {
  border-bottom: 0;
}

.case-detail--reverse .case-detail-body {
  order: 2;
}

.case-detail--reverse .case-detail-visual {
  order: 1;
}

.case-detail-visual {
  position: relative;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 6px;
  background: var(--ink);
  overflow: hidden;
}

.case-detail-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(241, 237, 226, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 237, 226, 0.035) 1px, transparent 1px);
  background-size: 30px 30px;
}

.case-detail-visual .mock {
  position: relative;
  z-index: 1;
  width: 100%;
}

.case-detail-body .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.case-detail-body h2 {
  margin-top: 14px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.case-detail-body > p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

.case-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 22px;
  background: var(--line);
  border: 1px solid var(--line);
}

.case-fact {
  padding: 13px 15px;
  background: var(--paper-2);
}

.case-fact span {
  display: block;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.case-fact strong {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.6;
}

.case-detail-body .link-arrow {
  margin-top: 20px;
}

.case-detail.is-hidden,
.news-item.is-hidden {
  display: none;
}

/* ---------- About additions ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.cert {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 160px;
  padding: 24px;
  background: var(--paper-2);
}

.cert .mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green);
}

.cert .mark svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cert strong {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
}

.cert p {
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
}

.about-photo { display: none; }

.address-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.address-main {
  padding: clamp(24px, 4vw, 38px);
}

.address-main h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.address-main p {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--muted);
}

.address-list {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.address-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
}

.address-list span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.address-map {
  position: relative;
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.address-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(241, 237, 226, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 237, 226, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}

.address-map .pin {
  position: relative;
  text-align: center;
}

.address-map .pin svg {
  width: 34px;
  height: 34px;
  margin: 0 auto 10px;
  color: var(--mint);
}

.address-map .pin span {
  display: block;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(241, 237, 226, 0.5);
}

.address-map .pin strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--paper);
}

/* ---------- Contact additions ---------- */
.form-demo-note {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 3px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}

.form-demo-note strong {
  font-weight: 500;
  color: var(--green);
}

.contact-page-faq {
  margin-top: clamp(48px, 6vw, 72px);
}

/* ---------- News additions ---------- */
.news-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.news-head h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

.news-head p {
  max-width: 360px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.empty-state {
  display: none;
  padding: 40px 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.empty-state.is-visible {
  display: block;
}

/* ---------- Responsive additions ---------- */
@media (max-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card,
  .service-card--wide {
    grid-column: auto;
  }

  .subservice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .case-detail,
  .case-detail--reverse {
    grid-template-columns: 1fr;
  }

  .case-detail--reverse .case-detail-body,
  .case-detail--reverse .case-detail-visual {
    order: 0;
  }

  .cert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .address-card {
    grid-template-columns: 1fr;
  }

  .address-map {
    min-height: 200px;
  }

  .scenario-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .scenario-row--head {
    display: none;
  }
}

@media (max-width: 720px) {
  .consult-rail {
    right: 12px;
    bottom: 16px;
  }

  .rail-btn {
    width: 46px;
    height: 46px;
  }

  .consult-rail .rail-btn:not(.rail-btn--consult) {
    display: none;
  }

  .consult-inner {
    grid-template-columns: 1fr;
    max-height: 88vh;
    overflow-y: auto;
  }

  .consult-qr-side {
    padding: 26px 20px;
  }

  .consult-qr-side .qr-box {
    width: 160px;
    height: 160px;
  }

  .consult-copy {
    padding: 26px 22px 30px;
  }

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

  .service-card {
    min-height: 270px;
  }

  .subservice-grid,
  .capability-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .related-services {
    grid-template-columns: 1fr 1fr;
  }

  .article-aside {
    grid-template-columns: 1fr;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .article-nav a:last-child {
    text-align: left;
  }

  .case-facts {
    grid-template-columns: 1fr;
  }

  .article-content p,
  .article-content li {
    font-size: 14.5px;
  }

  .news-head {
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .related-services {
    grid-template-columns: 1fr;
  }

  .rail-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-kicker {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .rail-btn--consult::after {
    animation: none;
  }

  .consult-dialog[open] {
    animation: none;
  }
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.pagination a,
.pagination span {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.pagination .is-current {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.pagination .is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
