/* ═══════════════════════════════════════════════════════════
   Orffian — design tokens
   Palette sampled directly from the pitch deck.
   ═══════════════════════════════════════════════════════════ */
:root {
  --violet-100: #EFEAFB;
  --violet-200: #DDD2F6;
  --violet-500: #7C3AED;
  --violet-600: #6D31D0;
  --violet-700: #5B269F;
  --periwinkle: #7B7CF0;
  --grape:      #7D43CA;

  --gold:       #F7D685;
  --gold-soft:  #FBE7B4;
  --gold-deep:  #E9BE5C;

  --orange-top: #FFCC6B;
  --orange-bot: #F89A3C;

  --ink:    #1A1726;
  --ink-2:  #514A63;
  --ink-3:  #7E7690;
  --line:   #E7E3F0;
  --paper:  #FFFFFF;
  --paper-2:#F7F5FC;

  /* 12 note colors, straight off the hardware */
  --n-c:  #EE2E40;  --n-cs: #8B4D2B;
  --n-d:  #FB7F27;  --n-ds: #FC8CCA;
  --n-e:  #F7D33A;
  --n-f:  #1EB06C;  --n-fs: #D1BE9C;
  --n-g:  #24BAD6;  --n-gs: #E2E2E2;
  --n-a:  #123A7E;  --n-as: #CBA640;
  --n-b:  #54226A;

  --violet-grad: linear-gradient(170deg, var(--periwinkle) 0%, #7A62E4 45%, var(--grape) 100%);
  --orange-grad: linear-gradient(170deg, var(--orange-top) 0%, var(--orange-bot) 100%);

  --r-sm: 12px;  --r-md: 20px;  --r-lg: 28px;  --r-xl: 40px;
  --shadow-card: 0 18px 44px -20px rgba(45, 26, 85, .28), 0 2px 6px rgba(45, 26, 85, .05);
  --shadow-lift: 0 30px 64px -24px rgba(45, 26, 85, .38);

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);

  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
          'Apple SD Gothic Neo', 'Noto Sans KR', system-ui, sans-serif;
  color-scheme: light;
}

/* ─── reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  word-break: keep-all;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.02em; font-weight: 800; }
p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ─── bilingual switching ───────────────────────────────── */
html[data-lang="ko"] [lang="en"],
html[data-lang="en"] [lang="ko"] { display: none !important; }

/* ─── a11y helpers ──────────────────────────────────────── */
.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;
}
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  padding: 10px 18px; border-radius: 999px;
  background: var(--violet-500); color: #fff; font-weight: 700;
  transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus-visible { transform: none; }
:focus-visible { outline: 3px solid var(--violet-500); outline-offset: 3px; border-radius: 6px; }

/* ─── layout ────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(72px, 10vw, 128px); }

.eyebrow {
  font-size: .82rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--violet-500); margin-bottom: 14px;
}
.eyebrow--light { color: var(--gold); }

.section-title {
  font-size: clamp(1.75rem, 4.2vw, 2.9rem);
  font-weight: 800; color: #fff; margin-bottom: clamp(32px, 5vw, 56px);
}
.section-title--dark { color: var(--ink); }
.section-title em { font-style: normal; color: var(--violet-500); }
.section-title:not(.section-title--dark) em { color: var(--gold); }

/* ─── buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 800; font-size: 1rem; letter-spacing: -.01em;
  transition: transform .18s, box-shadow .18s, background-color .18s, color .18s;
  white-space: nowrap;
}
.btn--sm { padding: 9px 18px; font-size: .88rem; }
.btn--gold  { background: var(--gold); color: #4A3410; box-shadow: 0 10px 28px -12px rgba(233, 190, 92, .9); }
.btn--violet{ background: var(--violet-500); color: #fff; box-shadow: 0 10px 28px -12px rgba(124, 58, 237, .8); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.btn:hover  { transform: translateY(-2px); }
.btn--gold:hover  { background: var(--gold-soft); }
.btn--violet:hover{ background: var(--violet-600); }
.btn--ghost:hover { background: rgba(255,255,255,.22); }
.btn:active { transform: translateY(0); }

/* ─── header ────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.header-inner { display: flex; align-items: center; gap: clamp(12px, 3vw, 32px); height: 72px; }
.brand { flex: none; }
.brand img { width: clamp(96px, 12vw, 128px); }
.site-nav { display: flex; gap: clamp(14px, 2.2vw, 28px); margin-inline-start: auto; }
.site-nav a {
  font-size: .94rem; font-weight: 700; color: rgba(255,255,255,.88);
  padding: 6px 2px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.site-nav a:hover { color: #fff; border-bottom-color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.lang-switch {
  display: flex; padding: 3px; border-radius: 999px;
  background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
}
.lang-switch button {
  padding: 5px 12px; border-radius: 999px;
  font-size: .76rem; font-weight: 800; letter-spacing: .05em;
  color: rgba(255,255,255,.82); transition: background-color .2s, color .2s;
}
.lang-switch button[aria-pressed="true"] { background: #fff; color: var(--violet-600); }

/* scrolled state: light bar */
.site-header.is-stuck {
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 12px 32px -26px rgba(45,26,85,.5);
}
.site-header.is-stuck .brand img { content: url('../img/orffian-wordmark-violet.png'); }
.site-header.is-stuck .site-nav a { color: var(--ink-2); }
.site-header.is-stuck .site-nav a:hover { color: var(--violet-500); border-bottom-color: var(--violet-500); }
.site-header.is-stuck .lang-switch { background: var(--violet-100); box-shadow: inset 0 0 0 1px var(--violet-200); }
.site-header.is-stuck .lang-switch button { color: var(--ink-3); }
.site-header.is-stuck .lang-switch button[aria-pressed="true"] { background: var(--violet-500); color: #fff; }

.nav-toggle { display: none; width: 40px; height: 40px; place-items: center; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s, opacity .2s, background-color .3s;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ''; position: absolute; }
.nav-toggle__bars::before { transform: translateY(-6px); }
.nav-toggle__bars::after  { transform: translateY(6px); }
.site-header.is-stuck .nav-toggle__bars,
.site-header.is-stuck .nav-toggle__bars::before,
.site-header.is-stuck .nav-toggle__bars::after { background: var(--ink); }
.site-header.is-open .nav-toggle__bars { background: transparent !important; }
.site-header.is-open .nav-toggle__bars::before { transform: rotate(45deg); }
.site-header.is-open .nav-toggle__bars::after  { transform: rotate(-45deg); }

/* ─── organic edges ─────────────────────────────────────── */
.edge {
  position: absolute; left: 0; bottom: -1px; width: 100%;
  height: clamp(44px, 5.5vw, 78px); display: block;
  transform: scaleY(-1);                   /* wavy edge up, flat edge down */
  filter: drop-shadow(0 7px 16px rgba(226, 158, 96, .5));
}
.edge--hero     { fill: var(--orange-top); }
.edge--problem  { fill: var(--paper-2); }
.edge--business { fill: var(--orange-top); }
.edge--team     { fill: var(--paper-2); }

/* ═══════════════════ HERO ═══════════════════ */
.hero {
  position: relative; background: var(--violet-grad); color: #fff;
  padding-top: calc(120px + env(safe-area-inset-top, 0px));
  padding-bottom: clamp(110px, 14vw, 180px);
  overflow: hidden; isolation: isolate;
}
.hero::before {
  content: ''; position: absolute; inset: -30% -10% auto; height: 70%;
  background: radial-gradient(60% 60% at 50% 0%, rgba(255,255,255,.28), transparent 70%);
  pointer-events: none; z-index: -1;
}
.hero-inner { text-align: center; }
.hero-kicker {
  font-size: clamp(1rem, 2.4vw, 1.4rem); font-weight: 700;
  color: rgba(255,255,255,.94); margin-bottom: clamp(18px, 3vw, 30px);
}
.hero-logo { margin: 0 0 clamp(22px, 3.5vw, 34px); }
.hero-logo img { width: min(620px, 82%); margin-inline: auto; }
.hero-sub {
  font-size: clamp(.98rem, 1.9vw, 1.16rem); line-height: 1.75;
  color: rgba(255,255,255,.86); max-width: 46em; margin-inline: auto;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: clamp(28px, 4vw, 40px); }
.hero-device { margin: clamp(40px, 6vw, 68px) auto 0; max-width: 760px; }
.hero-device img {
  width: 100%;
  filter: drop-shadow(0 34px 44px rgba(40, 18, 80, .45));
  animation: float 7s ease-in-out infinite;
}
.hero-device figcaption {
  margin-top: 18px; font-size: .88rem; color: rgba(255,255,255,.72);
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ═══════════════════ PROBLEM ═══════════════════ */
.section--problem { background: var(--orange-grad); padding-bottom: clamp(100px, 12vw, 150px); }
.section--problem .section-title { color: #2A1A05; text-align: center; }
.section--problem .section-title em { color: var(--violet-600); }
.problem-stack { display: grid; gap: clamp(14px, 2vw, 20px); max-width: 940px; margin-inline: auto; }
.pcard {
  background: #fff; border-radius: var(--r-lg);
  padding: clamp(22px, 3.4vw, 34px) clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-card);
  font-size: clamp(1rem, 2.1vw, 1.22rem); font-weight: 600; color: var(--ink-2);
}
.pcard b { color: var(--violet-600); font-weight: 800; }
.pcard-sub { margin-top: 6px; font-size: .92em; font-weight: 500; color: var(--ink-3); }
.pcard--a { justify-self: start;  width: min(100%, 640px); }
.pcard--b { justify-self: end;    width: min(100%, 720px); text-align: right; }
.pcard--c { justify-self: start;  width: min(100%, 690px); }

/* ═══════════════════ COMPARE ═══════════════════ */
.section--compare { background: var(--paper-2); }
.table-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-card);
  padding: clamp(14px, 2.4vw, 28px);
}
.compare { min-width: 800px; }
.compare th, .compare td { padding: 14px 10px; text-align: center; vertical-align: middle; }
.compare thead th {
  font-size: .95rem; font-weight: 800; color: var(--ink-2); line-height: 1.35;
  border-bottom: 2px solid var(--line);
}
.compare thead th.is-us { border-bottom-color: var(--violet-500); }
.compare thead th.is-us img { width: 110px; margin-inline: auto; content: url('../img/orffian-wordmark-violet.png'); }
.compare tbody th {
  text-align: left; font-size: .95rem; font-weight: 700; color: var(--ink);
  width: 27%; min-width: 190px; padding-inline-start: 4px;
}
.compare tbody tr + tr th, .compare tbody tr + tr td { border-top: 1px solid var(--line); }
.compare td.is-us { background: var(--violet-100); }
.compare tbody tr:first-child td.is-us { border-radius: var(--r-sm) var(--r-sm) 0 0; }
.compare tbody tr:last-child  td.is-us { border-radius: 0 0 var(--r-sm) var(--r-sm); }
.compare td[data-yes] { position: relative; }
.compare td[data-yes]::before {
  content: ''; display: inline-block; width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(160deg, #FFB44D, #F6812C);
  box-shadow: 0 4px 10px -4px rgba(246,129,44,.9);
}
.compare td[data-yes]::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 12px; height: 7px; border: 2.6px solid #fff; border-top: 0; border-right: 0;
  transform: translateY(-2px) rotate(-45deg); border-radius: 1px;
}
.table-hint { margin-top: 14px; font-size: .84rem; color: var(--ink-3); text-align: center; }
@media (min-width: 860px) { .section--compare .table-hint { display: none; } }
@media (min-width: 800px) { .ensemble .table-hint { display: none; } }

/* ═══════════════════ FEATURES — shared ═══════════════════ */
.feature-head { max-width: 880px; margin-bottom: clamp(36px, 5vw, 60px); }
.feature-head .section-title { margin-bottom: 20px; }
.feature-lede { font-size: clamp(1rem, 2vw, 1.12rem); color: var(--ink-2); line-height: 1.8; }
.feature-points { display: grid; gap: 10px; }
.feature-points li {
  position: relative; padding-inline-start: 28px;
  font-size: clamp(.98rem, 1.9vw, 1.08rem); color: var(--ink-2); font-weight: 500;
}
.feature-points li::before {
  content: ''; position: absolute; inset-inline-start: 4px; top: .62em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--violet-500);
}
.feature--2 { background: var(--paper-2); }
.feature--4 { background: var(--paper-2); }
.flow-label { font-size: .88rem; font-weight: 800; color: var(--ink); margin-bottom: 16px; }

/* flow nodes, shared by the two diagrams */
.node {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 14px 16px; text-align: center; min-width: 0;
  box-shadow: 0 6px 16px -12px rgba(45,26,85,.5);
}
.node b { display: block; font-size: .95rem; font-weight: 700; color: var(--ink); }
.node small { display: block; margin-top: 3px; font-size: .78rem; color: var(--ink-3); }
.node code {
  display: block; margin-top: 10px; padding: 6px 8px; border-radius: 8px;
  background: rgba(30,176,108,.08); color: #14795A;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; letter-spacing: -.02em;
}
.node--ai { background: #F4EEFF; border-color: var(--violet-200); }
.node--ai b { color: var(--violet-600); }
.node--player { background: #EAF8F2; border-color: #C3E8D7; }
.node--player b { color: #14795A; }
.node--player small { color: #47876F; }
.node--sync { background: var(--paper-2); }

/* ── Feature 1: pipeline ── */
.pipeline { display: grid; grid-template-columns: minmax(230px, 300px) 1fr; gap: clamp(18px, 2.6vw, 30px); align-items: start; }
.pipe-side { display: grid; gap: 18px; }
.side-card {
  background: #fff; border-radius: var(--r-lg); padding: clamp(20px, 2.6vw, 28px);
  box-shadow: var(--shadow-card);
}
.side-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.side-card ul { display: grid; gap: 7px; font-size: .95rem; color: var(--ink-2); }
.side-card ul li::before { content: '· '; color: var(--violet-500); font-weight: 800; }
.side-card__logo { display: flex; align-items: baseline; gap: 2px; }
.side-card__logo img { width: 128px; align-self: center; content: url('../img/orffian-wordmark-violet.png'); }
.side-card__logo span { font-size: 1.15rem; font-weight: 900; color: var(--violet-600); letter-spacing: -.03em; }
.side-card--hw p { font-size: .95rem; color: var(--ink-2); }
.side-device { margin-top: 16px; width: 100%; filter: drop-shadow(0 14px 20px rgba(45,26,85,.18)); }
.pipe-arrow {
  justify-self: center; width: 44px; height: 28px;
  background: var(--violet-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 28'%3E%3Cpath d='M0 10h26V2l18 12-18 12v-8H0z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 28'%3E%3Cpath d='M0 10h26V2l18 12-18 12v-8H0z'/%3E%3C/svg%3E") center/contain no-repeat;
  transform: rotate(90deg);
}
.pipe-main {
  background: #fff; border-radius: var(--r-lg); padding: clamp(20px, 3vw, 34px);
  box-shadow: var(--shadow-card);
}
.pipe-main__head { margin-bottom: 22px; }
.pipe-main__head p { font-size: .92rem; color: var(--ink-3); margin-top: 2px; }
.flow-row { display: grid; gap: 12px; position: relative; }
.flow-row--4 { grid-template-columns: repeat(4, 1fr); margin-top: 34px; }
.flow-row--3 { grid-template-columns: repeat(3, 1fr); }
.flow-row--4 > .node + .node::before,
.flow-row--3 > .node + .node::before {
  content: ''; position: absolute; top: 50%; inset-inline-start: -12px;
  width: 12px; height: 1.5px; background: var(--ink-3);
}
.flow-row > .node { position: relative; }
.reprompt {
  position: absolute; top: -26px; inset-inline-end: 0; width: 50%;
  border: 1.5px dashed var(--violet-500); border-bottom: 0;
  border-radius: 8px 8px 0 0; height: 18px;
  font-size: .72rem; font-weight: 700; color: var(--violet-500);
  text-align: center; line-height: 0; padding-top: 0;
}
.reprompt::after { content: 're-prompt on fail'; position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: #fff; padding: 0 8px; white-space: nowrap; }
.fanout {
  position: relative; margin: 24px 0 26px; padding-bottom: 14px;
  text-align: center; font-size: .78rem; font-weight: 700; color: var(--ink-3);
}
.fanout::before {
  content: ''; position: absolute; left: 16.6%; right: 16.6%; bottom: 0;
  height: 12px; border: 1.5px solid var(--line); border-top: 0;
  border-radius: 0 0 8px 8px;
}
.fanout::after {
  content: ''; position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  width: 1.5px; height: 10px; background: var(--line);
}
.node--sync { margin-top: 22px; }

/* ── Feature 2: keyboard ── */
.kbd-demo { max-width: 1000px; }
.kbd-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 22px; }
.kbd-controls__label { font-size: .88rem; font-weight: 800; color: var(--ink-2); }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.seg button {
  padding: 8px 16px; border-radius: 999px; font-size: .9rem; font-weight: 800; color: var(--ink-3);
  transition: background-color .2s, color .2s;
}
.seg button[aria-pressed="true"] { background: var(--violet-500); color: #fff; }
.seg button:hover:not([aria-pressed="true"]) { color: var(--violet-500); }

.kbd-bed {
  background: linear-gradient(180deg, #363C47, #272B33);
  border-radius: clamp(14px, 2vw, 22px);
  padding: clamp(10px, 1.6vw, 18px);
  box-shadow: var(--shadow-lift), inset 0 1px 0 rgba(255,255,255,.12);
}
.kbd-keys { --gap: clamp(4px, .7vw, 8px); --w: calc((100% - 6 * var(--gap)) / 7);
  position: relative; display: flex; gap: var(--gap); }
.key {
  position: relative; border-radius: 10px;
  background: var(--c);
  transition: filter .25s, transform .12s, box-shadow .25s, opacity .25s;
  display: grid; align-items: end; justify-items: center;
}
.key span {
  font-size: clamp(.7rem, 1.4vw, .95rem); font-weight: 800;
  color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.4);
  padding-bottom: 8px; pointer-events: none;
}
.key--w { flex: 1; aspect-ratio: 1 / 2.9; }
.key--b {
  position: absolute; top: 0; z-index: 2;
  width: calc(var(--w) * .62);
  height: 58%;
  left: calc(var(--i) * (var(--w) + var(--gap)) - (var(--w) * .62) / 2 - var(--gap) / 2);
  align-items: end;
}
.key--b span { color: #2B2F38; text-shadow: 0 1px 2px rgba(255,255,255,.35); }

/* off = plain piano key; on = lit and colored */
.key { background: #EDEBF2; }
.key--b { background: #23262E; }
.key span { color: #ADA7B8; transition: color .25s; }
.key--b span { color: #5C616D; text-shadow: none; }
.key.is-on { background: var(--c); }
.key.is-on span { color: var(--fg, #fff); text-shadow: none; }
.key.is-on {
  box-shadow: 0 0 0 2px rgba(255,255,255,.28), 0 0 26px -4px var(--c), 0 6px 14px -6px rgba(0,0,0,.55);
}
.key.is-on::after {
  content: ''; position: absolute; inset: 4% 10% auto; height: 40%;
  border-radius: 8px 8px 40% 40%;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0));
  pointer-events: none;
}
.key.is-hit {
  transform: translateY(4px) scale(.985);
  box-shadow: 0 0 0 3px rgba(255,255,255,.55), 0 0 44px 2px var(--c);
}
.key:disabled { cursor: default; }

.kbd-caption { margin-top: 18px; font-size: .95rem; color: var(--ink-2); min-height: 1.7em; }
.kbd-caption b { color: var(--violet-600); }

/* ── Feature 3: ensemble ── */
.ensemble-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 20px; }
.ensemble-hint { font-size: .9rem; color: var(--ink-3); }
.ens-table { min-width: 720px; }
.ens-table th, .ens-table td {
  padding: 16px 12px; text-align: center; font-weight: 700;
  border: 1px solid var(--line); transition: background-color .18s, color .18s, box-shadow .18s, transform .18s;
}
.ens-table thead th { background: var(--paper-2); font-size: .95rem; color: var(--ink-2); }
.ens-table tbody th { text-align: left; font-weight: 700; color: var(--ink); min-width: 170px; }
.ens-table td { color: var(--ink-3); font-weight: 600; }
.ens-table td[data-on] { background: var(--c); color: #fff; font-weight: 800; }
.ens-table td[data-on][data-dark] { color: #2A1A05; }
.ens-table th.is-beat { background: var(--violet-100); color: var(--violet-600); box-shadow: inset 0 -3px 0 var(--violet-500); }
.ens-table td.is-beat { box-shadow: inset 0 0 0 2px var(--violet-500); }
.ens-table td[data-on].is-beat { transform: scale(1.04); box-shadow: 0 0 0 3px var(--violet-500), 0 10px 22px -10px var(--c); position: relative; z-index: 2; }

/* ── Feature 4: closed loop ── */
.loop-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  grid-template-rows: auto 46px auto;
  gap: 0 12px; align-items: center; position: relative;
}
.loop-grid > .node { position: relative; }
.loop-a { grid-area: 1 / 1; } .loop-b { grid-area: 1 / 2; } .loop-c { grid-area: 1 / 3; }
.loop-d { grid-area: 1 / 4; } .loop-e { grid-area: 1 / 5; }
.loop-f { grid-area: 3 / 4 / 4 / 6; }
.loop-g { grid-area: 3 / 1 / 4 / 3; }
.loop-caption { grid-area: 3 / 3; text-align: center; position: relative; }
.loop-caption__stat { display: block; font-size: .76rem; font-weight: 800; color: var(--ink-2); }
.loop-caption__title {
  display: block; margin-top: 4px; font-size: .7rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3);
}
/* horizontal arrows across the top row */
.loop-b::before, .loop-c::before, .loop-d::before, .loop-e::before {
  content: ''; position: absolute; top: 50%; inset-inline-start: -12px;
  width: 12px; height: 1.5px; background: var(--ink-3);
}
/* vertical legs of the return path */
.loop-down, .loop-up { position: relative; justify-self: center; width: 1.5px; height: 100%; background: var(--ink-3); }
.loop-down { grid-area: 2 / 5; }
.loop-up   { grid-area: 2 / 1; }
.loop-down::after, .loop-up::after {
  content: ''; position: absolute; left: 50%; width: 0; height: 0;
  border-inline: 5px solid transparent;
}
.loop-down::after { bottom: -1px; transform: translateX(-50%); border-top: 7px solid var(--ink-3); }
.loop-up::after   { top: -1px;    transform: translateX(-50%); border-bottom: 7px solid var(--ink-3); }
/* the long return arrow, drawn behind the caption */
.loop-caption::before {
  content: ''; position: absolute; left: -14%; right: -14%; top: calc(50% + 34px);
  height: 1.5px; background: var(--ink-3);
}
.loop-caption::after {
  content: ''; position: absolute; left: -14%; top: calc(50% + 34px);
  transform: translate(-1px, -50%); width: 0; height: 0;
  border-block: 5px solid transparent; border-right: 7px solid var(--ink-3);
}

/* ═══════════════════ MARKET ═══════════════════ */
.market-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(16px, 2.4vw, 26px); align-items: stretch; }
.stat-card {
  background: #fff; border-radius: var(--r-xl); padding: clamp(26px, 4vw, 44px);
  box-shadow: var(--shadow-card); display: flex; flex-direction: column;
}
.stat-card h3 { font-size: clamp(1.25rem, 2.6vw, 1.65rem); }
.stat { display: flex; align-items: baseline; gap: 10px; margin: clamp(12px, 2vw, 22px) 0 6px; }
.stat__num {
  font-size: clamp(3.4rem, 9vw, 5.6rem); font-weight: 900; line-height: 1;
  letter-spacing: -.045em; color: var(--violet-500);
  font-variant-numeric: tabular-nums;
}
.stat__unit { font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-weight: 800; color: var(--ink-2); }
.stat-label { font-size: clamp(1.05rem, 2.2vw, 1.35rem); font-weight: 800; color: var(--ink); }
.stat-note { margin-top: 14px; font-size: .84rem; color: var(--ink-3); }
.stat-body { margin-top: auto; padding-top: 22px; font-size: .98rem; color: var(--ink-2); line-height: 1.8; }
.market-steps { display: grid; gap: clamp(16px, 2.4vw, 26px); }
.step-card {
  background: #fff; border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow-card); border-inline-start: 5px solid var(--gold);
}
.step-card h3 { font-size: clamp(1.1rem, 2.2vw, 1.35rem); margin-bottom: 8px; }
.step-card p { font-size: .96rem; color: var(--ink-2); line-height: 1.75; }
.section--market { background: linear-gradient(160deg, #FFF8EC 0%, #FFEFD6 100%); }

/* ═══════════════════ BUSINESS ═══════════════════ */
.section--business { background: var(--violet-grad); color: #fff; padding-bottom: clamp(100px, 12vw, 150px); }
.biz-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(16px, 2.4vw, 26px); align-items: start; }
.biz-card {
  background: #fff; color: var(--ink); border-radius: var(--r-xl);
  padding: clamp(24px, 3.4vw, 40px); box-shadow: var(--shadow-lift);
}
.biz-card h3 { font-size: clamp(1.2rem, 2.5vw, 1.55rem); margin-bottom: 18px; }
.biz-card ul { display: grid; gap: 10px; }
.biz-card ul li { position: relative; padding-inline-start: 22px; font-size: .96rem; color: var(--ink-2); line-height: 1.75; }
.biz-card ul li::before { content: ''; position: absolute; inset-inline-start: 4px; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--violet-500); }
.biz-card--roadmap h3 { color: var(--violet-600); }
.biz-stack { display: grid; gap: clamp(16px, 2.4vw, 26px); }
.roadmap { display: grid; }
.roadmap li { position: relative; padding: 0 0 30px 74px; }
.roadmap li:last-child { padding-bottom: 0; }
.roadmap li::before {
  content: ''; position: absolute; left: 27px; top: 34px; bottom: 6px;
  width: 2px; background: var(--violet-200);
}
.roadmap li:last-child::before { display: none; }
.rd-tag {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 56px; height: 28px; border-radius: 999px;
  background: var(--violet-500); color: #fff;
  font-size: .82rem; font-weight: 900; letter-spacing: .04em;
}
.roadmap h4 { font-size: clamp(1.05rem, 2.2vw, 1.2rem); margin-bottom: 5px; }
.roadmap p { font-size: .95rem; color: var(--ink-2); line-height: 1.7; }

/* ═══════════════════ TEAM ═══════════════════ */
.section--team { background: var(--orange-grad); padding-bottom: clamp(100px, 12vw, 150px); }
.team-title { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: clamp(32px, 5vw, 52px); }
.team-title img {
  width: clamp(190px, 27vw, 300px);
  content: url('../img/orffian-wordmark-cream.png');
  filter: drop-shadow(0 3px 10px rgba(150, 82, 10, .3));
}
.team-title span {
  font-size: clamp(2.6rem, 7.2vw, 4.1rem); font-weight: 900; color: #FFF6E2;
  letter-spacing: -.06em; line-height: 1; margin-inline-start: .04em;
  -webkit-text-stroke: 5px #FFF6E2; paint-order: stroke fill;
  filter: drop-shadow(0 3px 10px rgba(150, 82, 10, .3));
}
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.4vw, 26px); }
.member {
  background: #fff; border-radius: var(--r-xl); padding: clamp(24px, 3.4vw, 38px);
  box-shadow: var(--shadow-card);
}
.member h3 { font-size: clamp(1.15rem, 2.4vw, 1.5rem); margin-bottom: 16px; }
.member .role { font-weight: 900; color: var(--ink); }
.member .name { font-weight: 500; color: var(--ink-2); }
.member ul { display: grid; gap: 6px; }
.member li { position: relative; padding-inline-start: 16px; font-size: .95rem; color: var(--ink-2); line-height: 1.7; }
.member li::before { content: ''; position: absolute; inset-inline-start: 2px; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--orange-bot); }

/* ═══════════════════ CONTACT + FOOTER ═══════════════════ */
.section--contact { background: var(--paper); text-align: center; }
.contact-inner h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); margin-bottom: 16px; }
.contact-inner p { font-size: clamp(.98rem, 2vw, 1.1rem); color: var(--ink-2); max-width: 38em; margin-inline: auto; line-height: 1.8; }
.contact-actions { margin-top: 30px; }

.site-footer { background: #2A1B45; color: rgba(255,255,255,.72); padding-block: clamp(44px, 6vw, 64px); }
.footer-inner { display: grid; justify-items: center; gap: 12px; text-align: center; }
.footer-logo { width: 140px; }
.footer-tag { font-size: .95rem; }
.footer-meta { font-size: .82rem; color: rgba(255,255,255,.46); }

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 1000px) {
  .pipeline { grid-template-columns: 1fr; }
  .pipe-side { grid-template-columns: 1fr 1fr; align-items: start; }
  .pipe-arrow { display: none; }
  .market-grid, .biz-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .site-nav {
    position: absolute; inset: 100% 0 auto; margin: 0;
    flex-direction: column; gap: 0;
    background: #fff; padding: 12px var(--gutter) 22px;
    box-shadow: 0 20px 40px -24px rgba(45,26,85,.6);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .site-header.is-open .site-nav { opacity: 1; transform: none; pointer-events: auto; }
  .site-header.is-open { background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
  .site-header.is-open .brand img { content: url('../img/orffian-wordmark-violet.png'); }
  .site-header.is-open .lang-switch { background: var(--violet-100); box-shadow: inset 0 0 0 1px var(--violet-200); }
  .site-header.is-open .lang-switch button { color: var(--ink-3); }
  .site-header.is-open .lang-switch button[aria-pressed="true"] { background: var(--violet-500); color: #fff; }
  .site-nav a { color: var(--ink-2) !important; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: grid; position: relative; }
  .team-grid { grid-template-columns: 1fr; }
  .pcard--b { text-align: left; }
  .flow-row--4 { grid-template-columns: 1fr 1fr; }
  .reprompt { display: none; }
}
@media (max-width: 680px) {
  .pipe-side { grid-template-columns: 1fr; }
  .flow-row--4, .flow-row--3 { grid-template-columns: 1fr; }
  .flow-row--4 > .node + .node::before,
  .flow-row--3 > .node + .node::before {
    top: -12px; inset-inline-start: 50%; width: 1.5px; height: 12px;
  }
  .fanout::before { display: none; }
  .loop-grid { grid-template-columns: 1fr; }
  .loop-grid > .node { grid-area: auto !important; }
  .loop-grid { grid-template-rows: none; gap: 12px; }
  .loop-down, .loop-up { display: none; }
  .loop-caption::before, .loop-caption::after { display: none; }
  .loop-b::before, .loop-c::before, .loop-d::before, .loop-e::before {
    top: -12px; inset-inline-start: 50%; width: 1.5px; height: 12px;
  }
  .loop-caption { grid-area: auto !important; order: 99; }
  .key span { display: none; }
  .key--w { aspect-ratio: 1 / 3.4; }
}
