/* ============================================================
   TURQUOISE Inc. — Dark Tech Design System
   ============================================================ */

:root {
  /* Base palette */
  --bg: #07090C;
  --bg-1: #0B0E12;
  --bg-2: #11151B;
  --surface: #161B22;
  --surface-2: #1C222B;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  /* Brand */
  --tq: #40C0C0;
  --tq-bright: #5BE6E6;
  --tq-dim: #2E8A8A;
  --tq-glow: rgba(64, 192, 192, 0.45);

  /* Text */
  --fg: #F5F7FA;
  --fg-dim: #A8B0BC;
  --fg-mute: #6E7684;
  --fg-faint: #4A5260;

  /* Type */
  --f-sans: 'Inter', 'Noto Sans JP', system-ui, -apple-system, sans-serif;
  --f-jp:   'Noto Sans JP', 'Inter', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);

  /* Header */
  --header-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-feature-settings: 'palt';
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; }

::selection { background: var(--tq); color: #07090C; }

/* ============================================================
   GRID OVERLAY (subtle)
   ============================================================ */
.grid-bg {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: -1px -1px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 50;
  display: flex; align-items: center;
  padding: 0 var(--gutter);
  background: rgba(7, 9, 12, 0.6);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  z-index: 51;
}
.brand__mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  position: relative;
  flex-shrink: 0;
}
.brand__mark img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.brand__name {
  display: flex; flex-direction: column; line-height: 1;
}
.brand__name b {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--fg);
  white-space: nowrap;
}
.brand__name small {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--fg-mute);
  margin-top: 4px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.nav {
  display: flex; align-items: center; gap: 4px;
}
.nav a {
  position: relative;
  padding: 10px 14px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
  transition: color 0.2s var(--ease);
  display: inline-flex; align-items: center; gap: 8px;
}
.nav a::before {
  content: attr(data-num);
  font-size: 10px;
  color: var(--fg-faint);
  font-weight: 500;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--fg);
}
.nav a:hover::before, .nav a[aria-current="page"]::before {
  color: var(--tq);
}
.nav .cta {
  margin-left: 12px;
  padding: 10px 18px;
  border: 1px solid var(--tq);
  color: var(--tq);
  background: rgba(64, 192, 192, 0.06);
  transition: all 0.2s var(--ease);
}
.nav .cta::before { display: none; }
.nav .cta:hover {
  background: var(--tq);
  color: #07090C;
  box-shadow: 0 0 24px var(--tq-glow);
}

/* Dropdown groups (SERVICES / INSIGHTS) */
.nav-group { position: relative; display: inline-flex; align-items: center; }
.nav-group__btn {
  position: relative;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
  padding: 10px 14px;
  background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  transition: color 0.2s var(--ease);
}
.nav-group__btn::after {
  content: '▾'; font-size: 9px; color: var(--fg-faint);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-group__btn:hover, .nav-group__btn.is-active { color: var(--fg); }
.nav-group__btn:hover::after, .nav-group__btn.is-active::after { color: var(--tq); }
.nav-group__menu {
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: rgba(7, 9, 12, 0.96);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 8px; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 60;
}
.nav-group__menu a {
  padding: 11px 12px; font-family: var(--f-mono); font-size: 12px;
  color: var(--fg-dim); letter-spacing: 0.03em; white-space: nowrap;
  border-radius: 6px; transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-group__menu a::before { display: none; }
.nav-group__menu a:hover, .nav-group__menu a[aria-current="page"] {
  color: var(--fg); background: rgba(64, 192, 192, 0.08);
}
@media (hover: hover) and (min-width: 901px) {
  .nav-group:hover .nav-group__menu { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-group:hover .nav-group__btn::after { transform: rotate(180deg); }
}
.nav-group.is-open .nav-group__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-group.is-open .nav-group__btn::after { transform: rotate(180deg); }

.menu-btn {
  display: none;
  width: 40px; height: 40px;
  position: relative;
  z-index: 52;
}
.menu-btn span {
  position: absolute; left: 8px; right: 8px;
  height: 1px; background: var(--fg);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.menu-btn span:nth-child(1) { top: 14px; }
.menu-btn span:nth-child(2) { top: 20px; }
.menu-btn span:nth-child(3) { top: 26px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .menu-btn { display: block; }
  .brand__name small { display: none; }
  .nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #07090C;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: calc(96px + env(safe-area-inset-top)) 24px calc(40px + env(safe-area-inset-bottom));
    transform: translateY(-100%);
    transition: transform 0.4s var(--ease);
    visibility: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 49;
  }
  .nav.is-open {
    transform: translateY(0);
    visibility: visible;
  }
  .nav a {
    padding: 20px 12px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
    justify-content: space-between;
    text-align: left;
    border-radius: 0;
  }
  .nav a::before { font-size: 11px; order: 2; color: var(--fg-faint); }
  .nav .cta {
    margin-left: 0; margin-top: 24px;
    justify-content: center;
    border-bottom: none;
    border: 1px solid var(--tq);
    border-radius: 999px;
    padding: 18px 24px;
  }
  /* Dropdown groups → accordion inside mobile panel */
  .nav-group { display: block; width: 100%; }
  .nav-group__btn {
    width: 100%; justify-content: space-between;
    padding: 20px 12px; font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav-group__menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    min-width: 0; border: 0; background: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    padding: 0; gap: 0; z-index: auto;
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s var(--ease);
  }
  .nav-group.is-open .nav-group__menu { max-height: 420px; }
  .nav-group__menu a {
    padding: 16px 12px 16px 28px; font-size: 15px;
    border-bottom: 1px solid var(--line); border-radius: 0;
    color: var(--fg-dim);
  }
}
@media (max-width: 480px) {
  .brand__mark { width: 28px; height: 28px; }
  .brand__mark span { font-size: 11px; }
  .brand__name b { font-size: 13px; }
}

/* ============================================================
   MAIN / SECTIONS
   ============================================================ */
main { position: relative; z-index: 2; }

.section {
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  position: relative;
}
.section--tight { padding: clamp(60px, 8vw, 100px) var(--gutter); }
.container {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}

/* Section header */
.sec-head {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 60px;
  margin-bottom: 80px;
  align-items: end;
}
.sec-head__meta {
  display: flex; flex-direction: column; gap: 14px;
  padding-top: 8px;
  border-top: 1px solid var(--line-strong);
}
.sec-head__index {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--tq);
  letter-spacing: 0.15em;
}
.sec-head__label {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: 0.08em;
}
.sec-head h2 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  white-space: pre-line;
}
.sec-head h2 em {
  font-style: normal;
  color: var(--tq);
}
.sec-head h2 .jp {
  display: block;
  font-family: var(--f-jp);
  font-size: 0.45em;
  color: var(--fg-dim);
  margin-top: 16px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .sec-head {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 48px;
  }
}

/* ============================================================
   TICKER / MARQUEE
   ============================================================ */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  background: var(--bg-1);
  position: relative;
  z-index: 2;
}
.ticker__track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
  width: max-content;
}
.ticker span {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
  display: inline-flex; align-items: center; gap: 16px;
}
.ticker span::after {
  content: '●';
  color: var(--tq);
  font-size: 8px;
}
@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 80px var(--gutter) 32px;
  background: var(--bg-1);
  position: relative;
  z-index: 2;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 48px;
  max-width: var(--container);
  margin: 0 auto 64px;
}
.site-footer__brand {
  display: flex; flex-direction: column; gap: 20px;
}
.site-footer__brand .brand { margin-bottom: 8px; }
.site-footer__brand p {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.8;
  max-width: 280px;
}
.site-footer h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.site-footer ul li {
  margin-bottom: 12px;
}
.site-footer ul a, .site-footer address a {
  font-size: 13px;
  color: var(--fg-dim);
  transition: color 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
  font-style: normal;
}
.site-footer ul a:hover, .site-footer address a:hover { color: var(--tq); }
.site-footer address {
  font-style: normal;
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.9;
}
.site-footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.08em;
}
.site-footer__bottom .meta {
  display: flex; gap: 24px;
}
@media (max-width: 900px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 28px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg);
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  width: 6px; height: 6px;
  background: var(--tq);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--tq);
}
.btn:hover {
  border-color: var(--tq);
  background: rgba(64, 192, 192, 0.06);
  transform: translateY(-2px);
}
.btn--primary {
  background: var(--tq);
  color: #07090C;
  border-color: var(--tq);
  font-weight: 600;
}
.btn--primary::after { background: #07090C; box-shadow: none; }
.btn--primary:hover {
  background: var(--tq-bright);
  border-color: var(--tq-bright);
  box-shadow: 0 8px 32px var(--tq-glow);
}

/* Tag pill */
.tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  border: 1px solid var(--line-strong);
  color: var(--fg-dim);
  border-radius: 999px;
}
.tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--tq);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--tq);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal][data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-reveal-delay="4"] { transition-delay: 0.32s; }
[data-reveal][data-reveal-delay="5"] { transition-delay: 0.40s; }

/* Char-split reveal for headings — 3D flip-up per character */.split { perspective: 900px; }
.split .word { display: inline-block; vertical-align: top; }
.split .char {
  display: inline-block;
  opacity: 0;
  transform: rotateX(-92deg) translateY(28%);
  transform-origin: 50% 100%;
  transition: transform 0.78s var(--ease-out), opacity 0.5s var(--ease-out);
  backface-visibility: hidden;
  will-change: transform, opacity;
}
.split.is-in .char {
  opacity: 1;
  transform: rotateX(0deg) translateY(0);
}

/* ============================================================
   PAGE HERO (sub pages)
   ============================================================ */
.page-hero {
  padding: calc(var(--header-h) + 80px) var(--gutter) 80px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  right: -200px; top: -200px;
  background: radial-gradient(circle, var(--tq-glow), transparent 60%);
  pointer-events: none;
  opacity: 0.5;
}
.page-hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}
.page-hero__crumb {
  display: flex; gap: 12px; align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.1em;
  margin-bottom: 40px;
}
.page-hero__crumb a:hover { color: var(--tq); }
.page-hero__crumb span { color: var(--fg-faint); }
.page-hero__index {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--tq);
  letter-spacing: 0.15em;
  margin-bottom: 24px;
  display: block;
}
.page-hero h1 {
  font-size: clamp(48px, 9vw, 120px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
  white-space: pre-line;
}
.page-hero h1 em { font-style: normal; color: var(--tq); }
.page-hero h1 .jp {
  display: block;
  font-family: var(--f-jp);
  font-size: 0.32em;
  color: var(--fg-dim);
  margin-top: 20px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
}
.page-hero__lead {
  max-width: 640px;
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--fg-dim);
  line-height: 1.9;
}

/* ============================================================
   SHARED CARD STYLES
   ============================================================ */
.card-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card-grid > * { background: var(--bg); padding: 40px; }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feat-card {
  border: 1px solid var(--line);
  padding: 32px 28px;
  position: relative;
  background: var(--bg-1);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.feat-card:hover {
  border-color: var(--tq);
  transform: translateY(-4px);
}
.feat-card__num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--tq);
  letter-spacing: 0.12em;
  margin-bottom: 32px;
}
.feat-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.feat-card p {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.8;
}

/* ============================================================
   PROCESS / STEPS
   ============================================================ */
.steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  display: grid;
  grid-template-columns: 100px 1fr 1.5fr;
  gap: 48px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background 0.3s;
}
.step:hover { background: var(--bg-1); }
.step__num {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--tq);
  letter-spacing: 0.1em;
}
.step h3 {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.step p {
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.9;
}
@media (max-width: 768px) {
  .step {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 32px 0;
  }
}

/* ============================================================
   CTA BLOCK (shared at page bottom)
   ============================================================ */
.cta-block {
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background: var(--bg-1);
}
.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, var(--tq-glow), transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(64, 192, 192, 0.2), transparent 50%);
  opacity: 0.5;
  pointer-events: none;
}
.cta-block__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: end;
  position: relative;
}
.cta-block h2 {
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: pre-line;
}

/* Make Enter create line breaks in commonly-edited text blocks */
.why-item h3,
.step h3,
.feat-card h3,
.voice__title,
.prob-resolve__body,
.prob-cell__txt,
.tri__cell h3,
.use h3,
.value h3,
.message__body h3,
.product__info h3,
.format-body h3,
.split-2 h3,
.plan__title,
.mission__big {
  white-space: pre-line;
}
.cta-block h2 em { font-style: normal; color: var(--tq); }
.cta-block__side p {
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.9;
  margin-bottom: 32px;
}
.cta-block__actions {
  display: flex; flex-direction: column; gap: 12px;
}
@media (max-width: 900px) {
  .cta-block__inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================
   PLACEHOLDER (image slot)
   ============================================================ */
.ph {
  background:
    repeating-linear-gradient(135deg,
      rgba(64, 192, 192, 0.05) 0,
      rgba(64, 192, 192, 0.05) 1px,
      transparent 1px,
      transparent 12px),
    var(--bg-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.1em;
  text-align: center;
  padding: 24px;
  aspect-ratio: 4 / 3;
}
.ph::before {
  content: '[ IMAGE ]';
  display: block;
  color: var(--tq);
  margin-bottom: 6px;
}

/* ============================================================
   VIZ — on-brand generated visuals (charts, video frames, line art)
   Used to fill media slots without photography. Always render.
   ============================================================ */
.viz {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(64,192,192,0.10), transparent 60%),
    var(--bg-2);
}
.viz::before { display: none !important; }
.viz__svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  z-index: 0;
}
.viz__hud {
  position: absolute; left: 16px; right: 16px; bottom: 14px;
  z-index: 2;
  display: flex; justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.12em;
  color: var(--tq);
}
@media (prefers-reduced-motion: no-preference) {
  .viz__line {
    stroke-dasharray: 620;
    stroke-dashoffset: 620;
    animation: vizDraw 2.4s cubic-bezier(0.22,1,0.36,1) forwards;
  }
  .viz__dots circle { opacity: 0; animation: vizPop 0.5s ease forwards; }
  .viz__dots circle:nth-child(1) { animation-delay: 1.4s; }
  .viz__dots circle:nth-child(2) { animation-delay: 1.9s; }
  .viz__dots circle:nth-child(3) { animation-delay: 2.4s; }
}
@keyframes vizDraw { to { stroke-dashoffset: 0; } }
@keyframes vizPop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }

/* video-frame variant */
.viz--video .viz__play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(64,192,192,0.14);
  border: 1px solid rgba(64,192,192,0.5);
  backdrop-filter: blur(4px);
}
.viz--video .viz__play::after {
  content: '';
  width: 0; height: 0;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--tq);
  margin-left: 4px;
}
@media (prefers-reduced-motion: no-preference) {
  .viz--video .viz__play { animation: vizPulse 2.6s ease-in-out infinite; }
}
@keyframes vizPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(64,192,192,0.30); }
  50% { box-shadow: 0 0 0 16px rgba(64,192,192,0); }
}
.viz--video .viz__bars {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  z-index: 2;
  display: flex; align-items: flex-end; gap: 3px; height: 28px;
}
.viz--video .viz__bars i {
  flex: 1; background: linear-gradient(180deg, var(--tq), rgba(64,192,192,0.25));
  border-radius: 2px 2px 0 0;
  height: 30%;
}
@media (prefers-reduced-motion: no-preference) {
  .viz--video .viz__bars i { animation: vizEq 1.1s ease-in-out infinite alternate; }
}
@keyframes vizEq { from { height: 18%; } to { height: 95%; } }

/* ============================================================
   UTILITIES
   ============================================================ */
.mono { font-family: var(--f-mono); }
.tq { color: var(--tq); }
.dim { color: var(--fg-dim); }
.mute { color: var(--fg-mute); }
.center { text-align: center; }
.hr { height: 1px; background: var(--line); margin: 80px 0; }

/* ============================================================
   3D MOTION LAYER (paired with motion-3d.js)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  /* tilt cards get a perspective container feel + sheen */
  .why-item, .tri__cell, .format-thumb, .format-body, .split-2__media,
  .price-card, .plan, .stat-card, .value-card, .step, .proc-step,
  .faq-item, .info-card, .feature, .card3d, [data-tilt] {
    position: relative;
  }
  .tilt-sheen {
    position: absolute; inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    mix-blend-mode: screen;
  }
}

