/* PLEDGE Inc. Corporate v2 — white editorial, pledge.im design language */
:root {
  --bg: #fbfaf7;
  --ink: #16140f;
  --sub: #6f6a60;
  --line: #e3dfd4;
  --card: #ffffff;
  --pledge: #16140f;
  --wavist: oklch(0.46 0.17 264);
  --wavist-deep: oklch(0.26 0.1 264);
  --witch: oklch(0.74 0.17 162);
  --witch-deep: #0d1511;
  --maxw: 1320px;
  --pad: clamp(20px, 4vw, 56px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.en { font-family: "Archivo", Pretendard, sans-serif; }
.mono { font-family: "IBM Plex Mono", monospace; }
a { color: inherit; }
img { max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 24px;
}
.brandlock { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.brandlock img { height: 17px; width: auto; display: block; }
.brandlock .inc {
  font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.14em;
  color: var(--sub);
}
.site-nav { display: flex; gap: clamp(14px, 2.5vw, 32px); align-items: center; }
.site-nav a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: var(--sub);
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--ink); }
.lang-toggle {
  display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  background: var(--card);
}
.lang-toggle button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.06em;
  padding: 6px 12px; color: var(--sub);
}
.lang-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

@media (max-width: 760px) {
  .site-nav a.nav-link { display: none; }
}

/* ---------- section scaffolding ---------- */
section { padding: clamp(76px, 11vw, 150px) 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
.sec-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sub); display: flex; align-items: center; gap: 14px;
  margin-bottom: clamp(32px, 4.6vw, 60px);
}
.sec-label::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.sec-label b, .sec-label span { white-space: nowrap; }
.sec-label b { color: var(--ink); font-weight: 500; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(60px, 8vw, 110px); padding-bottom: clamp(56px, 7vw, 96px); border-bottom: 0; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.1em;
  color: var(--sub); text-transform: uppercase; margin-bottom: clamp(24px, 3vw, 40px);
}
.hero-eyebrow .dot { color: var(--ink); font-size: 10px; }
.hero h1 {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: clamp(46px, 8.6vw, 128px);
  line-height: 0.97;
  letter-spacing: -0.028em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero h1 .accent-row { display: block; }
.hero h1 em {
  font-style: italic; font-weight: 500; letter-spacing: -0.02em;
}
.hero-cols {
  margin-top: clamp(32px, 4.6vw, 64px);
  display: grid; grid-template-columns: 1fr minmax(300px, 560px);
  gap: 32px; align-items: end;
}
@media (max-width: 880px) {
  .hero-cols { grid-template-columns: 1fr; }
  .hero-cols .hero-sub { order: -1; }
}
.hero-meta {
  display: grid; gap: 10px;
  font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.08em;
  color: var(--sub); text-transform: uppercase;
}
.hero-meta b { color: var(--ink); font-weight: 500; }
.hero-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.7;
  text-wrap: pretty;
}

.hero-scroll {
  margin-top: clamp(36px, 5vw, 72px);
  display: flex; align-items: center; gap: 14px;
  font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--sub);
}
.hero-scroll::after { content: ""; width: 56px; height: 1px; background: var(--ink); }
[data-motion="on"] .hero-scroll::after { animation: scrollhint 2.2s ease-in-out infinite; transform-origin: left; }
@keyframes scrollhint { 0%, 100% { transform: scaleX(0.4); } 50% { transform: scaleX(1); } }

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  overflow: hidden; white-space: nowrap;
  padding: 14px 0;
  background: var(--card);
}
.marquee-track { display: inline-flex; gap: 0; will-change: transform; }
[data-motion="on"] .marquee-track { animation: marquee 84s linear infinite; }
.marquee span {
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: 15px;
  letter-spacing: 0.06em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 28px; padding-right: 28px;
}
.marquee span i { font-style: normal; color: var(--sub); font-size: 11px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- loop section ---------- */
.loop-grid {
  display: grid; grid-template-columns: minmax(300px, 5fr) minmax(340px, 6fr);
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
@media (max-width: 920px) { .loop-grid { grid-template-columns: 1fr; } }
.sec-h {
  font-family: "Archivo", sans-serif; font-weight: 800;
  font-size: clamp(34px, 4.8vw, 64px); line-height: 1.0;
  letter-spacing: -0.025em; text-transform: uppercase; text-wrap: balance;
}
.sec-h em { font-style: italic; font-weight: 500; }
.sec-h .ko-sub {
  display: block; font-family: "Pretendard Variable", Pretendard, sans-serif;
  font-weight: 600; font-size: clamp(15px, 1.5vw, 19px); letter-spacing: 0;
  text-transform: none; color: var(--sub); margin-top: 14px; line-height: 1.5;
}
.loop-copy .loop-desc { margin-top: 22px; max-width: 46ch; text-wrap: pretty; }

.loop-steps { margin-top: 36px; display: grid; border-top: 1px solid var(--line); }
.loop-step {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  cursor: pointer; transition: opacity 0.3s;
  opacity: 0.4;
}
.loop-step .n { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; color: var(--sub); letter-spacing: 0.06em; }
.loop-step .t { font-size: 15.5px; line-height: 1.5; }
.loop-step.active { opacity: 1; }
.loop-step.active .n { color: var(--ink); }

/* diagram */
.loop-stage { position: relative; aspect-ratio: 1; max-width: 640px; margin: 0 auto; width: 100%; }
.loop-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring-base { fill: none; stroke: var(--line); stroke-width: 1.5; }
.ring-flow {
  fill: none; stroke: var(--ink); stroke-width: 1.5;
  stroke-dasharray: 3 9; opacity: 0.5;
}
[data-motion="on"] .ring-flow { animation: ringflow 2.4s linear infinite; }
@keyframes ringflow { to { stroke-dashoffset: -12; } }
.flow-dot { transition: opacity 0.3s; }

.loop-node {
  position: absolute; width: clamp(96px, 19%, 128px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--card);
  border: 1.5px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; padding: 10px;
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s;
}
.loop-node img { height: 13px; width: auto; max-width: 76%; object-fit: contain; display: block; }
.loop-node[data-node="pledge"] img { height: 11px; }
.loop-node .role {
  font-family: "IBM Plex Mono", monospace; font-size: clamp(8.5px, 1vw, 10px);
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--sub);
}
.loop-node.is-active { transform: translate(-50%, -50%) scale(1.07); }
.loop-node[data-node="pledge"].is-active { border-color: var(--pledge); box-shadow: 0 0 0 5px color-mix(in srgb, var(--pledge) 10%, transparent); }
.loop-node[data-node="wavist"].is-active { border-color: var(--wavist); box-shadow: 0 0 0 5px color-mix(in srgb, var(--wavist) 14%, transparent); }
.loop-node[data-node="witchbox"].is-active { border-color: var(--witch); box-shadow: 0 0 0 5px color-mix(in srgb, var(--witch) 22%, transparent); }
/* dark logo chips for wavist/witchbox (white logos) */
.loop-node .chip {
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; padding: 5px 8px;
}
.loop-node[data-node="wavist"] .chip { background: var(--wavist-deep); }
.loop-node[data-node="witchbox"] .chip { background: var(--witch-deep); }

.loop-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 56%; text-align: center; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.loop-center .kicker {
  font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--sub);
}
.loop-center .caption {
  font-size: clamp(13.5px, 1.5vw, 16px); line-height: 1.55; font-weight: 600;
  min-height: 3.2em; text-wrap: balance;
  transition: opacity 0.35s;
}
.loop-center .caption.fading { opacity: 0; }
.loop-center .stepno { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--sub); }

/* ---------- brand cards ---------- */
.brands-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: clamp(32px, 5vw, 60px); }
.brands-head p { color: var(--sub); max-width: 44ch; text-wrap: pretty; }
.brand-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
@media (max-width: 980px) { .brand-cards { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

.brand-card {
  border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  background: var(--card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.brand-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(20, 18, 12, 0.32); }
.b-visual { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.b-visual img.kv { width: 100%; height: 100%; object-fit: cover; display: block; }
.b-visual .b-no {
  position: absolute; top: 14px; right: 16px;
  font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.85);
}
.b-visual .b-logo {
  position: absolute; left: 20px; bottom: 16px;
  height: 22px; width: auto; max-width: 55%; object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}
.b-body { display: flex; flex-direction: column; flex: 1; padding: clamp(22px, 2.2vw, 32px); }
.b-tag { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.62; }
.b-def { margin-top: 14px; font-size: 15.5px; line-height: 1.65; text-wrap: pretty; }
.b-rev { margin-top: auto; padding-top: 26px; }
.b-rev dt {
  font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; opacity: 0.58; margin-bottom: 7px;
}
.b-rev dd { font-size: 14px; line-height: 1.6; }
.b-link {
  margin-top: 22px; padding-top: 16px; border-top: 1px solid;
  font-family: "IBM Plex Mono", monospace; font-size: 12.5px; letter-spacing: 0.05em;
  text-decoration: none; display: flex; justify-content: space-between; align-items: center;
}
.b-link::after { content: "→"; transition: transform 0.2s; }
.b-link:hover::after { transform: translateX(4px); }

/* full color mode: brand-toned card bodies */
[data-color="full"] .c-pledge { background: var(--pledge); color: #f6f4ee; border-color: var(--pledge); }
[data-color="full"] .c-wavist { background: var(--wavist-deep); color: oklch(0.95 0.01 264); border-color: var(--wavist-deep); }
[data-color="full"] .c-witchbox { background: var(--witch-deep); color: oklch(0.94 0.02 162); border-color: var(--witch-deep); }
[data-color="full"] .c-witchbox .b-tag { color: var(--witch); opacity: 1; }
[data-color="full"] .c-wavist .b-tag { color: oklch(0.74 0.1 264); opacity: 1; }
[data-color="full"] .b-link { border-top-color: color-mix(in srgb, currentColor 22%, transparent); }
/* subtle mode: white bodies, image headers carry the brand */
[data-color="subtle"] .b-link { border-top-color: var(--line); }
[data-color="subtle"] .c-wavist .b-tag { color: var(--wavist); opacity: 1; }
[data-color="subtle"] .c-witchbox .b-tag { color: oklch(0.5 0.12 162); opacity: 1; }

/* ---------- proof ---------- */
.proof-rows { display: grid; border-top: 1px solid var(--line); }
.proof-row {
  display: grid; grid-template-columns: minmax(170px, 300px) 1fr;
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(26px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--line);
  align-items: baseline;
}
@media (max-width: 720px) { .proof-row { grid-template-columns: 1fr; gap: 10px; } }
.proof-row .p-key {
  font-family: "Archivo", sans-serif; font-weight: 800;
  font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -0.02em; line-height: 1.05;
  text-transform: uppercase; white-space: nowrap;
}
.proof-row .p-key small {
  display: block; font-family: "IBM Plex Mono", monospace; font-weight: 400;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sub); margin-top: 8px; white-space: normal;
}
.proof-row .p-body { font-size: 16px; line-height: 1.7; max-width: 62ch; text-wrap: pretty; }
.proof-row .p-body .tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.proof-row .tag {
  font-family: "IBM Plex Mono", monospace; font-size: 11.5px; letter-spacing: 0.04em;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--sub);
  background: var(--card);
}

/* ---------- company ---------- */
.company-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
@media (max-width: 820px) { .company-grid { grid-template-columns: 1fr; } }
.company-grid h2 { margin-bottom: 28px; }
.co-facts { display: grid; border-top: 1px solid var(--line); }
.co-facts > div { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.co-facts dt { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sub); padding-top: 3px; }
.co-facts dd { font-size: 15.5px; line-height: 1.6; }
.contact-card {
  background: var(--ink); color: var(--bg); border-radius: 18px;
  padding: clamp(28px, 3.4vw, 48px);
  position: relative; overflow: hidden;
}
.contact-card .kicker { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.6; }
.contact-card h3 {
  font-family: "Archivo", sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -0.01em; line-height: 1.05;
  margin-top: 14px; text-wrap: balance;
}
.contact-card h3 em { font-style: italic; font-weight: 500; }
.contact-card p { margin-top: 16px; font-size: 15px; opacity: 0.78; max-width: 40ch; text-wrap: pretty; }
.contact-card .mailto {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  background: var(--bg); color: var(--ink); text-decoration: none;
  font-family: "IBM Plex Mono", monospace; font-size: 13.5px;
  padding: 13px 22px; border-radius: 999px;
}
.contact-card .mailto:hover { opacity: 0.9; }
.contact-card .monogram {
  position: absolute; right: -20px; bottom: -36px; height: 180px; width: auto;
  opacity: 0.12; pointer-events: none;
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #b9b4a8; padding: clamp(48px, 6vw, 80px) 0 36px; }
.site-footer .f-top {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start;
  gap: 28px; padding-bottom: 36px; margin-bottom: 28px;
  border-bottom: 1px solid rgba(251, 250, 247, 0.14);
}
.site-footer .f-brand img { height: 22px; width: auto; display: block; }
.site-footer .f-brand p { margin-top: 14px; font-size: 13.5px; max-width: 36ch; line-height: 1.7; }
.site-footer .f-links { display: flex; gap: clamp(28px, 4vw, 64px); flex-wrap: wrap; }
.site-footer .f-links h5 {
  font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: #7d786c; margin-bottom: 12px; font-weight: 500;
}
.site-footer .f-links ul { list-style: none; display: grid; gap: 8px; }
.site-footer .f-links a { font-size: 13.5px; text-decoration: none; color: #d8d4c8; }
.site-footer .f-links a:hover { color: #ffffff; }
.site-footer .f-bottom {
  display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between;
  font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: #7d786c;
}

/* ---------- reveal: visible by default; .pre is added by JS only to below-fold elements ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-motion="on"] .rv { transition: opacity 0.5s ease, transform 0.5s ease; }
  [data-motion="on"] .rv.pre { opacity: 0; transform: translateY(22px); }
}
