/* ==========================================================================
   Miirae Core — Concept site design system
   Palette + type carried over from the V2 IR deck for brand continuity.
   ========================================================================== */

:root {
  /* surfaces */
  --bg: #F2F4F7;
  --bg-soft: #F8FAFC;
  --bg-deep: #0D1117;
  --card: #FFFFFF;
  --card-soft: #F5F7FA;

  /* ink */
  --ink: #0D1117;
  --ink-2: #1E2330;
  --body: #2C3140;
  --muted: #5A6072;
  --soft: #8A8F9C;
  --dim: #B6BAC4;

  /* lines */
  --line: #DCE0E6;
  --line-strong: #B8BDC6;

  /* brand accents */
  --cyan: #16BFCB;
  --cyan-deep: #0FA6B1;
  --cyan-soft: #9DE3EA;
  --cyan-tint: rgba(22, 191, 203, 0.10);
  --blue: #6CA8D7;
  --blue-soft: #CFE5F4;
  --magenta: #DE3F95;
  --magenta-tint: rgba(222, 63, 149, 0.08);
  --mint: #5BC181;
  --purple: #7A4FB6;

  --grad: linear-gradient(120deg, var(--cyan) 0%, var(--blue) 50%, var(--magenta) 100%);
  --grad-soft: linear-gradient(135deg, rgba(22, 191, 203, 0.14), rgba(108, 168, 215, 0.12), rgba(222, 63, 149, 0.10));

  --font: "Inter", system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --mono: "JetBrains Mono", Menlo, Consolas, monospace;

  --shadow-sm: 0 1px 2px rgba(13, 17, 23, 0.05);
  --shadow-md: inset 0 0 0 1px var(--line), 0 1px 2px rgba(13, 17, 23, 0.05), 0 10px 28px rgba(13, 17, 23, 0.07);
  --shadow-lg: inset 0 0 0 1px var(--line), 0 2px 6px rgba(13, 17, 23, 0.06), 0 24px 60px rgba(13, 17, 23, 0.12);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ------------------------------- reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--cyan-soft); color: var(--ink); }

/* language visibility: JS sets [data-lang] on <html> */
[data-i18n] [lang]:not([hidden]) { display: revert; }
html[data-lang="en"] [lang="kr"] { display: none; }
html[data-lang="kr"] [lang="en"] { display: none; }

/* ----------------------------- layout ----------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.2rem); }
.section { padding-block: clamp(3.4rem, 8vw, 6.5rem); position: relative; }
.section--tight { padding-block: clamp(2.4rem, 5vw, 4rem); }
.section--deep { background: var(--bg-deep); color: #C6CCD8; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan-deep);
  padding: 0.3rem 0.7rem; border-radius: 999px;
  background: var(--cyan-tint); box-shadow: inset 0 0 0 1px rgba(22, 191, 203, 0.30);
}
.section--deep .eyebrow { color: var(--cyan-soft); background: rgba(22, 191, 203, 0.12); box-shadow: inset 0 0 0 1px rgba(22, 191, 203, 0.30); }

.h-title { color: var(--ink); font-weight: 850; letter-spacing: -0.02em; line-height: 1.12; font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
.section--deep .h-title { color: #F2F5FA; }
.h-sub { color: var(--muted); font-size: clamp(1.02rem, 1.7vw, 1.2rem); line-height: 1.6; max-width: 60ch; }
.section--deep .h-sub { color: #9AA3B2; }
.lead-block { display: grid; gap: 0.9rem; margin-bottom: clamp(1.8rem, 4vw, 3rem); }

.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ----------------------------- buttons ---------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 700; font-size: 0.98rem; letter-spacing: 0.005em;
  padding: 0.82rem 1.4rem; border-radius: 999px; border: 0;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { color: #fff; background: var(--ink); box-shadow: 0 8px 22px rgba(13, 17, 23, 0.22); }
.btn--primary:hover { box-shadow: 0 12px 30px rgba(13, 17, 23, 0.30); transform: translateY(-2px); }
.btn--grad { color: #06262A; background: var(--grad); box-shadow: 0 10px 26px rgba(22, 191, 203, 0.30); }
.btn--grad:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(22, 191, 203, 0.38); }
.btn--ghost { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-2px); }
.btn--sm { padding: 0.55rem 1rem; font-size: 0.9rem; }
.section--deep .btn--ghost { color: #EAF0F7; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.25); }
.section--deep .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }

.arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow, a:hover > .arrow { transform: translateX(3px); }

/* ------------------------------ header ---------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(248, 250, 252, 0.78);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.site-header.is-stuck { border-color: var(--line); box-shadow: 0 6px 24px rgba(13, 17, 23, 0.05); }
.nav { display: flex; align-items: center; gap: 1.4rem; height: 68px; }
.brand { display: flex; align-items: center; gap: 0.6rem; flex: 0 0 auto; }
.brand img { width: 34px; height: 34px; }
.brand .wm { display: flex; flex-direction: column; line-height: 1; }
.brand .wm b { font-weight: 850; color: var(--ink); letter-spacing: 0.04em; font-size: 1.04rem; }
.brand .wm span { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--soft); margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 0.3rem; margin-left: auto; }
.nav-links a {
  font-size: 0.94rem; font-weight: 600; color: var(--ink-2);
  padding: 0.5rem 0.78rem; border-radius: 999px; transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: var(--card-soft); color: var(--ink); }
.nav-links a.active { color: var(--cyan-deep); background: var(--cyan-tint); }

.nav-tools { display: flex; align-items: center; gap: 0.6rem; flex: 0 0 auto; }

.lang-toggle {
  display: inline-flex; align-items: center; padding: 3px; border-radius: 999px;
  background: var(--card-soft); box-shadow: inset 0 0 0 1px var(--line); position: relative;
}
.lang-toggle button {
  position: relative; z-index: 1; border: 0; background: transparent;
  font-size: 0.8rem; font-weight: 700; color: var(--muted);
  padding: 0.32rem 0.7rem; border-radius: 999px; transition: color 0.2s;
}
.lang-toggle button[aria-pressed="true"] { color: #06262A; }
.lang-toggle .pill {
  position: absolute; top: 3px; bottom: 3px; border-radius: 999px;
  background: var(--grad); transition: left 0.28s var(--ease), width 0.28s var(--ease);
  z-index: 0;
}

.nav-toggle { display: none; border: 0; background: transparent; padding: 8px; border-radius: 10px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.25s; }
.nav-toggle span + span { margin-top: 5px; }

/* ------------------------------- hero ----------------------------------- */
.hero { position: relative; padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.5rem, 6vw, 5rem); overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.9; }
.hero__glow {
  position: absolute; z-index: 0; pointer-events: none; filter: blur(60px); opacity: 0.5;
  width: 46vw; height: 46vw; max-width: 560px; max-height: 560px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(22, 191, 203, 0.45), transparent 70%);
  top: -10%; right: -6%;
}
.hero__glow.two { background: radial-gradient(circle at 70% 70%, rgba(222, 63, 149, 0.30), transparent 70%); left: -10%; top: 30%; right: auto; }
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(1.6rem, 4vw, 3.2rem); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 850; letter-spacing: -0.03em; line-height: 1.06; color: var(--ink); }
.hero .kicker { margin-bottom: 1.1rem; }
.hero p.dek { margin-top: 1.3rem; font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--ink-2); max-width: 40ch; line-height: 1.5; }
.hero .cta-row { margin-top: 1.9rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero .trust { margin-top: 1.7rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; color: var(--muted); font-size: 0.86rem; }
.hero .trust b { color: var(--ink-2); font-weight: 700; }

/* ----------------------- living CCI panel ------------------------------- */
.cci-panel {
  position: relative; border-radius: var(--radius-lg); background: var(--card);
  box-shadow: var(--shadow-lg); padding: 1.3rem 1.3rem 1.5rem; overflow: hidden;
}
.cci-panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); }
.cci-head { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-bottom: 1rem; }
.cci-head .label { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.cci-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(91, 193, 129, 0.18); }
.cci-live { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.74rem; font-weight: 700; color: var(--muted); }

.cci-stage { position: relative; border-radius: var(--radius); background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line); padding: 1.1rem; min-height: 196px; }
.cci-card { position: absolute; inset: 1.1rem; opacity: 0; transform: translateY(10px) scale(0.985); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); pointer-events: none; }
.cci-card.active { opacity: 1; transform: none; }
.cci-card .tag { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.05em; color: var(--cyan-deep); text-transform: uppercase; }
.cci-card h4 { font-size: 1.45rem; font-weight: 850; color: var(--ink); letter-spacing: -0.01em; margin-top: 0.35rem; }
.cci-card .role { font-size: 0.92rem; font-weight: 700; color: var(--magenta); margin-top: 0.15rem; }
.cci-card p { font-size: 0.96rem; color: var(--body); margin-top: 0.6rem; line-height: 1.5; }
.cci-out { margin-top: 0.85rem; font-size: 0.84rem; color: var(--muted); font-family: var(--mono); }
.cci-out b { color: var(--ink-2); }

.cci-tabs { display: flex; gap: 6px; margin-top: 1rem; }
.cci-tabs .t { flex: 1; height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; position: relative; }
.cci-tabs .t i { position: absolute; inset: 0; width: 0; background: var(--grad); border-radius: 999px; }
.cci-tabs .t.active i { width: 100%; transition: width 2.6s linear; }
.cci-foot { margin-top: 0.9rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: var(--soft); }

/* ------------------------------ marquee --------------------------------- */
.ticker { border-block: 1px solid var(--line); background: var(--bg-soft); overflow: hidden; }
.ticker__track { display: flex; gap: 3rem; white-space: nowrap; width: max-content; padding-block: 0.85rem; animation: ticker 38s linear infinite; }
.ticker__track span { font-size: 0.86rem; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 0.7rem; }
.ticker__track span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan-deep); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ------------------------------ cards ----------------------------------- */
.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow-md); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .ic {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad-soft); box-shadow: inset 0 0 0 1px rgba(22, 191, 203, 0.25); margin-bottom: 1rem;
}
.card .ic svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.18rem; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.card p { margin-top: 0.5rem; color: var(--body); font-size: 0.97rem; }
.card .kicker { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan-deep); }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.stat { background: var(--card); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.5rem; box-shadow: var(--shadow-md); }
.stat .n { font-size: clamp(2rem, 4.2vw, 2.9rem); font-weight: 850; letter-spacing: -0.02em; line-height: 1; }
.stat .n .grad-text, .stat .n.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .k { margin-top: 0.5rem; font-weight: 750; color: var(--ink-2); font-size: 0.96rem; }
.stat .d { margin-top: 0.3rem; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }

/* ------------------------- engine flow ---------------------------------- */
.engine { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; position: relative; }
.engine__svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.engine .node { position: relative; z-index: 1; background: var(--card); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-md); }
.engine .node .step { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.engine .node h3 { font-size: 1.3rem; font-weight: 850; color: var(--ink); margin-top: 0.3rem; }
.engine .node .pp { font-size: 0.8rem; font-weight: 700; margin-top: 0.1rem; }
.engine .node.skill .pp { color: var(--cyan-deep); }
.engine .node.task .pp { color: var(--blue); }
.engine .node.human .pp { color: var(--magenta); }
.engine .node p { margin-top: 0.7rem; font-size: 0.94rem; color: var(--body); }
.engine .node .out { margin-top: 0.8rem; font-size: 0.8rem; color: var(--muted); font-family: var(--mono); }

/* ------------------------- split feature -------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; }
.split.flip > :first-child { order: 2; }
.feature-visual { border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-lg); padding: 1.4rem; position: relative; overflow: hidden; min-height: 280px; }

/* ------------------------- CTA band ------------------------------------- */
.cta-band { border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.4rem); background: linear-gradient(135deg, #0F1622, #14323B); color: #EAF0F7; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 3px; background: var(--grad); }
.cta-band h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 850; letter-spacing: -0.02em; color: #fff; }
.cta-band p { margin-top: 0.7rem; color: #9FB0C0; max-width: 56ch; }
.cta-band .cta-row { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ------------------------- footer --------------------------------------- */
.site-footer { background: var(--bg-deep); color: #9AA3B2; padding-block: clamp(2.6rem, 5vw, 3.6rem) 1.8rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 1.6rem; }
.site-footer h5 { color: #EAF0F7; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.9rem; font-weight: 800; }
.site-footer a { color: #9AA3B2; font-size: 0.92rem; display: block; padding: 0.2rem 0; transition: color 0.2s; }
.site-footer a:hover { color: var(--cyan-soft); }
.site-footer .brand .wm b { color: #F2F5FA; }
.site-footer .brand .wm span { color: #5E6877; }
.foot-tag { margin-top: 0.9rem; font-size: 0.92rem; color: #7E8896; max-width: 34ch; }
.foot-bottom { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; justify-content: space-between; font-size: 0.82rem; color: #5E6877; }

/* ------------------------- reveal motion -------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* pulse for live dots */
@keyframes softpulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.pulse { animation: softpulse 2.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

/* page intro band */
.page-head { padding-block: clamp(3rem, 7vw, 5rem) clamp(1.6rem, 4vw, 2.6rem); position: relative; overflow: hidden; }
.page-head .wrap { position: relative; z-index: 2; }

/* ==========================================================================
   EDITORIAL HOME — flowing, human, non-grid visual language
   ========================================================================== */
.editorial { position: relative; overflow: hidden; }

/* the human thread: a quiet luminous spine the eye follows down the page */
.thread { position: absolute; top: 0; bottom: 0; left: clamp(20px, 6vw, 96px); width: 2px; z-index: 0; pointer-events: none; }
.thread::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, var(--cyan) 8%, var(--blue) 50%, var(--magenta) 92%, transparent); opacity: 0.16; }
.thread .spark {
  position: absolute; left: 50%; top: 0; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 18px 5px rgba(22, 191, 203, 0.55); transform: translateY(-50%);
  transition: top 0.12s linear, background 0.4s;
}
@media (prefers-reduced-motion: reduce) { .thread .spark { display: none; } }
@media (max-width: 900px) { .thread { display: none; } }

.ed { position: relative; z-index: 1; }
.ed-wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.2rem); }
@media (min-width: 901px) { .ed-wrap { padding-left: clamp(72px, 12vw, 200px); } }

.block { padding-block: clamp(3.2rem, 9vw, 7rem); position: relative; }
.block--lead { padding-top: clamp(2rem, 5vw, 3rem); }

/* section node on the thread */
.block[data-node]::before {
  content: ""; position: absolute; left: clamp(20px, 6vw, 96px); top: clamp(3.8rem, 9vw, 7.6rem);
  width: 11px; height: 11px; margin-left: -5px; border-radius: 50%;
  background: var(--bg); box-shadow: inset 0 0 0 2px var(--blue); z-index: 2;
}
@media (max-width: 900px) { .block[data-node]::before { display: none; } }

/* kicker — small, human, lowercase, never a system label */
.mark { display: inline-block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em; color: var(--cyan-deep); margin-bottom: 1.1rem; }
.mark::before { content: ""; display: inline-block; width: 26px; height: 1.5px; background: var(--cyan-deep); vertical-align: middle; margin-right: 0.6rem; opacity: 0.8; }

/* editorial type scale */
.display { font-size: clamp(2.4rem, 6.4vw, 4.9rem); font-weight: 850; letter-spacing: -0.035em; line-height: 1.02; color: var(--ink); }
.statement { font-size: clamp(1.8rem, 4.4vw, 3.1rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; color: var(--ink); max-width: 20ch; }
.statement.wide { max-width: 26ch; }
.prose { font-size: clamp(1.08rem, 1.7vw, 1.32rem); line-height: 1.62; color: var(--body); max-width: 56ch; }
.prose.lg { font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--ink-2); max-width: 30ch; }
.prose + .prose { margin-top: 1.1rem; }
.muted-line { color: var(--muted); }
.lede-row { margin-top: 1.6rem; }

/* inline figures — numbers live inside sentences, not in boxes */
.fig { font-weight: 850; color: var(--ink); white-space: nowrap; position: relative; }
.fig::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 0.34em; background: linear-gradient(90deg, var(--cyan), var(--magenta)); opacity: 0.16; border-radius: 3px; z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease); }
.reveal.in .fig::after, .in .fig::after { transform: scaleX(1); }

/* hero (editorial) */
.hero-ed { position: relative; min-height: clamp(82vh, 90vh, 980px); display: flex; align-items: center; overflow: hidden; }
.hero-ed .hero__canvas, .hero-ed .hero__glow { z-index: 0; }
.hero-ed .ed-wrap { position: relative; z-index: 2; }
.hero-ed h1 { font-size: clamp(2.7rem, 8vw, 6.2rem); font-weight: 850; letter-spacing: -0.045em; line-height: 0.98; color: var(--ink); max-width: 15ch; }
.hero-ed .sub { margin-top: 1.7rem; font-size: clamp(1.12rem, 2vw, 1.5rem); line-height: 1.5; color: var(--ink-2); max-width: 40ch; }
.hero-ed .since { margin-top: 1rem; font-size: 1.02rem; color: var(--muted); max-width: 46ch; }
.hero-ed .cta-row { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* living rotator — one line, the subject keeps changing on its own */
.rotator-wrap { margin-top: 0.4rem; }
.rotator { display: inline-grid; vertical-align: bottom; }
.rotator > span { grid-area: 1 / 1; opacity: 0; transform: translateY(0.5em); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; white-space: nowrap; }
.rotator > span.on { opacity: 1; transform: none; }
.rotator > span.out { opacity: 0; transform: translateY(-0.5em); }
.rotator-note { min-height: 1.6em; margin-top: 1.3rem; font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: var(--muted); transition: opacity 0.4s; max-width: 48ch; }

/* the journey — alternating waypoints along the thread, no boxes */
.journey { display: grid; gap: clamp(2.6rem, 6vw, 4.6rem); margin-top: clamp(2rem, 5vw, 3.4rem); }
.way { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.2rem, 3vw, 2.4rem); align-items: start; position: relative; }
.way .idx { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 850; line-height: 0.8; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px var(--line-strong); }
.way .who { font-size: 0.86rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan-deep); }
.way h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin-top: 0.4rem; line-height: 1.15; }
.way p { margin-top: 0.7rem; font-size: 1.06rem; line-height: 1.6; color: var(--body); max-width: 54ch; }
.way:nth-child(even) .idx { -webkit-text-stroke-color: var(--blue); opacity: 0.6; }

/* outcomes — value, plainly stated, divided by hairlines (not cards) */
.outcomes { margin-top: clamp(1.6rem, 4vw, 2.6rem); border-top: 1px solid var(--line); }
.outcome { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1rem, 4vw, 3rem); padding-block: clamp(1.6rem, 3.5vw, 2.4rem); border-bottom: 1px solid var(--line); align-items: baseline; }
.outcome h3 { font-size: clamp(1.4rem, 2.8vw, 2rem); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1.12; }
.outcome p { font-size: 1.06rem; line-height: 1.62; color: var(--body); }
@media (max-width: 720px) { .outcome { grid-template-columns: 1fr; gap: 0.6rem; } }

/* manifesto — full-bleed human belief */
.manifesto { background: var(--bg-deep); color: #EAF0F7; position: relative; overflow: hidden; }
.manifesto .ed-wrap { padding-block: clamp(4rem, 11vw, 8.5rem); }
.manifesto q, .manifesto .q { display: block; font-size: clamp(1.9rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.16; color: #F4F7FB; max-width: 22ch; quotes: none; }
.manifesto .q .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.manifesto .by { margin-top: 1.8rem; font-size: 1rem; color: #8C97A8; }
.manifesto .halo { position: absolute; width: 60vw; max-width: 720px; aspect-ratio: 1; border-radius: 50%; filter: blur(80px); opacity: 0.32; background: radial-gradient(circle, rgba(22,191,203,0.5), transparent 70%); right: -12%; top: -20%; }

/* editorial post list (no card grid) */
.posts { margin-top: clamp(1.4rem, 4vw, 2.4rem); border-top: 1px solid var(--line); }
.post-row { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(1rem, 4vw, 2.6rem); align-items: center; padding-block: clamp(1.3rem, 3vw, 1.9rem); border-bottom: 1px solid var(--line); transition: padding-left 0.3s var(--ease); }
.post-row:hover { padding-left: 0.6rem; }
.post-row .yr { font-family: var(--mono); font-size: 0.82rem; color: var(--soft); }
.post-row h3 { font-size: clamp(1.2rem, 2.4vw, 1.7rem); font-weight: 750; letter-spacing: -0.015em; color: var(--ink); line-height: 1.2; }
.post-row .ex { margin-top: 0.35rem; font-size: 1rem; color: var(--muted); max-width: 64ch; }
.post-row .go { color: var(--cyan-deep); flex: 0 0 auto; opacity: 0; transform: translateX(-6px); transition: 0.3s var(--ease); }
.post-row:hover .go { opacity: 1; transform: none; }
@media (max-width: 640px) { .post-row { grid-template-columns: 1fr; gap: 0.3rem; } .post-row .go { display: none; } }

/* closing invitation */
.invite { text-align: left; position: relative; }
.invite h2 { font-size: clamp(2.1rem, 5.4vw, 4rem); font-weight: 850; letter-spacing: -0.035em; line-height: 1.04; color: var(--ink); max-width: 18ch; }
.invite p { margin-top: 1.1rem; font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--muted); max-width: 50ch; }
.invite .cta-row { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ------------------------- responsive ----------------------------------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cci-panel { max-width: 520px; }
  .split, .split.flip > :first-child { grid-template-columns: 1fr; order: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav { gap: 0.7rem; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  /* once the hamburger shows, the inline CTA would overflow narrow phones */
  .nav-tools .btn--primary { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0.2rem;
    position: absolute; top: 68px; left: 0; right: 0; padding: 0.8rem 1rem 1.2rem;
    background: var(--bg-soft); border-bottom: 1px solid var(--line); box-shadow: 0 18px 40px rgba(13, 17, 23, 0.10);
  }
  .nav-links.open a { padding: 0.7rem 0.9rem; }
}
/* belt-and-braces: never allow a sideways scroll */
html { overflow-x: hidden; }
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4, .stats, .engine { grid-template-columns: 1fr; }
  .engine__svg { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .brand .wm span { display: none; }
}

/* ==========================================================================
   METAMORPHOSIS BACKGROUND + IMAGERY + PRODUCT FRAME
   ========================================================================== */
.bg-field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
body { position: relative; }
.editorial { position: relative; z-index: 1; }
.site-footer { position: relative; z-index: 1; }

/* the climax: butterfly glows through a translucent dark belief section */
.manifesto { background: linear-gradient(180deg, rgba(11, 15, 21, 0.90), rgba(14, 28, 34, 0.86)); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }

/* ambient section imagery — the disruption, treated and faded into the page */
.has-media { position: relative; }
.section-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.section-media::before {
  content: ""; position: absolute; inset: 0; background-image: var(--img);
  background-size: cover; background-position: center; opacity: 0.12;
  filter: grayscale(0.35) contrast(1.04) saturate(0.9);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 32%, #000 64%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 32%, #000 64%, transparent);
}
.section-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(22, 191, 203, 0.06), transparent 55%, rgba(222, 63, 149, 0.05));
}

/* product reveal — the real CCI, framed like a quiet window, floating */
.reveal-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; }
@media (max-width: 900px) { .reveal-grid { grid-template-columns: 1fr; } }
.device {
  position: relative; border-radius: 16px; overflow: hidden; background: #fff;
  box-shadow: 0 2px 6px rgba(13, 17, 23, 0.06), 0 34px 80px rgba(13, 17, 23, 0.20);
  transform: perspective(1600px) rotateY(-7deg) rotateX(2deg); transform-origin: center;
  transition: transform 0.5s var(--ease);
}
.device:hover { transform: perspective(1600px) rotateY(-2deg) rotateX(1deg); }
.device::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); z-index: 3; }
.device .bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #F5F7FA; border-bottom: 1px solid var(--line); }
.device .bar i { width: 9px; height: 9px; border-radius: 50%; background: #D6DBE2; }
.device .bar i:nth-child(1) { background: #E1899B; }
.device .bar i:nth-child(2) { background: #E7C77A; }
.device .bar i:nth-child(3) { background: #8FD0A6; }
.device .bar span { margin-left: 10px; font-family: var(--mono); font-size: 0.72rem; color: var(--soft); }
.device img, .device video { display: block; width: 100%; height: auto; }
.device .play {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(13, 17, 23, 0.55); color: #fff; z-index: 2;
  backdrop-filter: blur(4px); pointer-events: none; opacity: 0; transition: opacity 0.3s;
}
.device.paused .play { opacity: 1; }
@media (max-width: 900px) { .device { transform: none; } .device:hover { transform: none; } }

/* dark-bg logo glyph sizing parity */
.site-footer .brand img { width: 32px; height: 32px; }

/* ==========================================================================
   SHARED EDITORIAL COMPONENTS (products, about, team, contact, blog, skill)
   ========================================================================== */

/* framed editorial image — quiet window, floats slightly */
.ed-figure { border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: var(--shadow-lg); position: relative; }
.ed-figure::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); z-index: 2; }
.ed-figure img { display: block; width: 100%; height: auto; }
.ed-figure figcaption { padding: 0.8rem 1.1rem; font-size: 0.86rem; color: var(--muted); border-top: 1px solid var(--line); background: var(--bg-soft); }

/* two-column editorial split that reuses ed rhythm */
.ed-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; }
.ed-split.lead { grid-template-columns: 1.05fr 0.95fr; }
.ed-split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .ed-split, .ed-split.lead { grid-template-columns: 1fr; } .ed-split.flip > :first-child { order: 0; } }

/* small inline tag chips, human not systemy */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.3rem; }
.chip-tag { font-size: 0.84rem; font-weight: 650; color: var(--ink-2); padding: 0.4rem 0.85rem; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }

/* a labelled in/out pair */
.io { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-top: 1.4rem; }
.io > div { padding: 0.9rem 1.1rem; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.io .lab { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan-deep); }
.io p { margin-top: 0.25rem; font-size: 0.98rem; color: var(--ink-2); }
@media (max-width: 540px) { .io { grid-template-columns: 1fr; } }

/* people grid (team + founders) */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.4rem, 4vw, 2.6rem); margin-top: clamp(1.8rem, 4vw, 3rem); }
.person { display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; align-items: start; }
.person .avatar { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; box-shadow: inset 0 0 0 1px var(--line), 0 12px 30px rgba(13,17,23,0.12); background: var(--card-soft); }
.person .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.person .nm { font-size: 1.35rem; font-weight: 850; color: var(--ink); letter-spacing: -0.01em; }
.person .role { font-size: 0.92rem; font-weight: 700; color: var(--cyan-deep); margin-top: 0.15rem; }
.person .bio { margin-top: 0.6rem; font-size: 1rem; line-height: 1.6; color: var(--body); }
.person .links { margin-top: 0.7rem; display: flex; gap: 0.8rem; font-size: 0.88rem; }
.person .links a { color: var(--muted); font-weight: 600; }
.person .links a:hover { color: var(--cyan-deep); }
@media (max-width: 760px) { .people { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .person { grid-template-columns: 1fr; } .person .avatar { width: 80px; height: 80px; } }

/* hires / small fact rows */
.fact-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.fact { font-size: 0.86rem; font-weight: 650; color: var(--ink-2); padding: 0.45rem 0.9rem; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.fact b { color: var(--cyan-deep); }

/* contact methods */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: clamp(1.8rem, 4vw, 2.6rem); }
.contact-card { display: block; padding: 1.4rem 1.5rem; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-md); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.contact-card .lab { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contact-card .val { font-size: 1.2rem; font-weight: 800; color: var(--ink); margin-top: 0.3rem; letter-spacing: -0.01em; }
.contact-card .sub { font-size: 0.9rem; color: var(--muted); margin-top: 0.2rem; }
@media (max-width: 620px) { .contact-grid { grid-template-columns: 1fr; } }

/* blog article body */
.article { max-width: 720px; margin-inline: auto; }
.article .meta { font-family: var(--mono); font-size: 0.82rem; color: var(--soft); letter-spacing: 0.04em; }
.article h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 850; letter-spacing: -0.03em; line-height: 1.08; color: var(--ink); margin-top: 0.8rem; }
.article .stand { margin-top: 1.2rem; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.5; color: var(--ink-2); font-weight: 500; }
.article .body { margin-top: clamp(1.8rem, 4vw, 2.6rem); }
.article .body p { font-size: 1.12rem; line-height: 1.75; color: var(--body); margin-bottom: 1.3rem; }
.article .body h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; color: var(--ink); letter-spacing: -0.02em; margin: 2.2rem 0 0.9rem; }
.article .body ul { margin: 0 0 1.3rem 1.1rem; }
.article .body li { font-size: 1.08rem; line-height: 1.7; color: var(--body); margin-bottom: 0.5rem; }
.article .body strong { color: var(--ink); }
.article .pull { margin: 2rem 0; padding-left: 1.4rem; border-left: 3px solid var(--cyan); font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 750; line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); }
.article .pull .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* steps reused from .journey but allow non-numbered list of capabilities */
.bridge-list { margin-top: 1.4rem; columns: 2; column-gap: 2.4rem; }
.bridge-list li { break-inside: avoid; margin-bottom: 0.55rem; font-size: 1.02rem; color: var(--body); list-style: none; padding-left: 1.3rem; position: relative; }
.bridge-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan-deep); }
@media (max-width: 620px) { .bridge-list { columns: 1; } }

/* skill-research launch panel */
.launch { margin-top: clamp(1.8rem, 4vw, 2.6rem); padding: clamp(1.6rem, 4vw, 2.4rem); border-radius: 20px; background: linear-gradient(135deg, #0F1622, #14323B); color: #EAF0F7; position: relative; overflow: hidden; }
.launch::after { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 3px; background: var(--grad); }
.launch h3 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 850; color: #fff; letter-spacing: -0.02em; }
.launch p { margin-top: 0.6rem; color: #9FB0C0; max-width: 56ch; }
.launch .cta-row { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }
.launch .meta { margin-top: 1rem; font-family: var(--mono); font-size: 0.8rem; color: #6E7B8C; }

/* simple page hero for inner pages */
.page-hero { padding-top: clamp(3rem, 8vw, 6rem); padding-bottom: clamp(1rem, 3vw, 2rem); }
.page-hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); font-weight: 850; letter-spacing: -0.04em; line-height: 1.0; color: var(--ink); max-width: 16ch; }
.page-hero .sub { margin-top: 1.4rem; font-size: clamp(1.1rem, 2vw, 1.45rem); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */
.mc-form { margin-top: clamp(1.6rem, 4vw, 2.4rem); max-width: 680px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px) { .field-grid { grid-template-columns: 1fr; } }
.field { display: block; margin-top: 1rem; }
.field .lab { display: block; font-size: 0.84rem; font-weight: 700; color: var(--ink-2); margin-bottom: 0.4rem; }
.mc-form input, .mc-form select, .mc-form textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--card);
  border: 0; border-radius: 12px; padding: 0.85rem 1rem;
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.2s var(--ease);
}
.mc-form textarea { resize: vertical; min-height: 120px; }
.mc-form input:focus, .mc-form select:focus, .mc-form textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--cyan-deep); }
.form-actions { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.form-note { font-size: 0.86rem; color: var(--muted); }
.form-status { margin-top: 1.4rem; padding: 1rem 1.2rem; border-radius: 14px; font-weight: 650; }
.form-status .ok, .form-status .err { margin: 0; }
.form-status[data-ok] { background: rgba(91,193,129,0.12); box-shadow: inset 0 0 0 1px rgba(91,193,129,0.4); color: #1d6b3f; }
.form-status[data-ok] .err { display: none; }
.form-status[data-err] { background: rgba(222,63,149,0.08); box-shadow: inset 0 0 0 1px rgba(222,63,149,0.4); color: #a01e63; }
.form-status[data-err] .ok { display: none; }

/* ==========================================================================
   COOKIE / ANALYTICS CONSENT BANNER
   ========================================================================== */
.consent {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 90; width: min(680px, calc(100% - 32px));
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem;
  padding: 0.95rem 1.2rem; border-radius: 16px;
  background: rgba(13, 17, 23, 0.92); color: #C6CCD8;
  backdrop-filter: blur(10px); box-shadow: 0 16px 44px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
}
.consent p { margin: 0; font-size: 0.88rem; line-height: 1.5; flex: 1 1 280px; }
.consent a { color: var(--cyan-soft); text-decoration: underline; }
.consent .row { display: flex; gap: 0.5rem; flex: 0 0 auto; }
.consent button { border: 0; border-radius: 999px; font: inherit; font-weight: 700; font-size: 0.86rem; padding: 0.55rem 1.1rem; cursor: pointer; }
.consent .accept { color: #04121a; background: linear-gradient(135deg, var(--cyan), var(--cyan-deep)); }
.consent .decline { color: #C6CCD8; background: rgba(255,255,255,0.08); }
.consent .decline:hover { background: rgba(255,255,255,0.16); }
@media print { .consent { display: none; } }
