/* ============================================================
   DigitalNasi — design tokens & base system (dark + light)
   Port-ready: mirrors wordpress/tokens.css
   ============================================================ */

:root {
  /* color — dark (default) */
  --bg: #060606;
  --bg-panel: #0e0e0e;
  --bg-raise: #0c0c0c;
  --ink: #f4f4f2;
  --muted: #8f8d88;
  --line: rgba(244, 244, 242, 0.12);
  --line-soft: rgba(244, 244, 242, 0.05);
  --accent: #fc460c;
  --accent-bright: #ff5a24;
  --accent-ink: #0a0a0a;

  /* derived */
  --stroke: rgba(244, 244, 242, 0.28);
  --dot: #2a2a2a;
  --noise-o: 0.05;
  --nav-bg: rgba(6, 6, 6, 0.72);
  --thumb: #1e1e1e;
  --thumb-hover: #2c2c2c;
  --card-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --card-grad: linear-gradient(160deg, #121212 0%, #0a0a0a 62%);
  --photo-o: 0.55;
  --photo-blend: normal;
  --photo-fade-a: rgba(6, 6, 6, 0.42);
  --photo-fade-b: rgba(6, 6, 6, 0.8);

  /* type */
  --font-display: 'Archivo Variable', 'Archivo', 'Helvetica Neue', sans-serif;
  --font-body: 'Instrument Sans Variable', 'Instrument Sans', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono Variable', 'JetBrains Mono', ui-monospace, monospace;

  /* rhythm */
  --pad: clamp(20px, 4.5vw, 72px);
  --section-y: clamp(96px, 14vh, 168px);
  --nav-h: 84px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
}

html[data-theme=light], html.is-light {
  --bg: #f5f3ef;
  --bg-panel: #ffffff;
  --bg-raise: #fbfaf7;
  --ink: #141412;
  --muted: #6e6b66;
  --line: rgba(20, 20, 18, 0.14);
  --line-soft: rgba(20, 20, 18, 0.06);
  --accent: #fc460c;
  --accent-bright: #e63a05;
  --accent-ink: #ffffff;

  --stroke: rgba(20, 20, 18, 0.26);
  --dot: #cfcac0;
  --noise-o: 0.035;
  --nav-bg: rgba(245, 243, 239, 0.8);
  --thumb: #d9d4ca;
  --thumb-hover: #c6c0b4;
  --card-shadow: 0 24px 60px rgba(20, 20, 18, 0.1);
  --card-grad: linear-gradient(160deg, #ffffff 0%, #f1efe9 62%);
  --photo-o: 0.42;
  --photo-blend: normal;
  --photo-fade-a: rgba(245, 243, 239, 0.35);
  --photo-fade-b: rgba(245, 243, 239, 0.72);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

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

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--thumb);
  border-radius: 8px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--thumb-hover);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

/* ---------- layout primitives ---------- */

.dn-container {
  width: 100%;
  max-width: 1560px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.dn-section {
  position: relative;
  padding-block: var(--section-y);
}

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.92;
}

.hairline-t {
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 400px);
  gap: clamp(32px, 5vw, 96px);
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 96px);
}

.section-title {
  font-size: clamp(40px, 6.4vw, 104px);
  margin-top: 20px;
}

.section-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  padding-bottom: 8px;
}

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

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 17px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.35s var(--ease),
    color 0.35s var(--ease),
    border-color 0.35s var(--ease);
  will-change: transform;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  background: var(--accent-bright);
}

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

/* ---------- fixed chrome ---------- */

.noise {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: var(--noise-o);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.6'/></svg>");
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform-origin: 0 50%;
  z-index: 80;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: difference;
  z-index: 90;
}
.cursor-dot {
  width: 5px;
  height: 5px;
  background: #f4f4f2;
}
.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(244, 244, 242, 0.6);
}
html[data-theme=light] .cursor-dot, html.is-light .cursor-dot {
  background: #141412;
}
html[data-theme=light] .cursor-ring, html.is-light .cursor-ring {
  border-color: rgba(20, 20, 18, 0.6);
}

/* ---------- preloader ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader-logo {
  overflow: hidden;
  width: min(560px, 68vw);
}
.preloader-count {
  position: absolute;
  right: var(--pad);
  bottom: calc(var(--pad) - 8px);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.preloader-count .pct {
  font-size: 0.35em;
  color: var(--accent);
  vertical-align: super;
}
.preloader-meta {
  position: absolute;
  left: var(--pad);
  bottom: var(--pad);
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  border-bottom: 1px solid transparent;
  transition:
    background 0.4s var(--ease),
    border-color 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
}
.nav.is-scrolled {
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 24px;
}
.nav-logo img {
  height: clamp(24px, 2.1vw, 31px);
  width: auto;
}
.nav-links {
  display: flex;
  gap: clamp(20px, 2.6vw, 40px);
  list-style: none;
}
.nav-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav-link:hover {
  color: var(--ink);
}
.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  z-index: 96;
}
.nav-burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.nav-burger span:nth-child(1) {
  top: 17px;
}
.nav-burger span:nth-child(2) {
  top: 24px;
}
.nav-burger.is-open span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}
.nav-burger.is-open span:nth-child(2) {
  top: 20px;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.mobile-menu a {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  font-size: clamp(21px, 5.8vw, 32px);
  line-height: 1.14;
  color: var(--ink);
  text-decoration: none;
}
.mobile-menu a:hover {
  color: var(--accent);
}
.mobile-menu .mono {
  margin-top: 24px;
  font-size: 10px;
  letter-spacing: 0.12em;
  display: block;
  overflow-wrap: anywhere;
}
.mobile-menu .btn {
  margin-top: 28px;
}

/* ---------- image-backed hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: calc(var(--nav-h) + clamp(44px, 8vh, 92px));
  padding-bottom: clamp(48px, 8vh, 88px);
}
.hero-photo {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background-color: var(--bg);
  background-size: cover;
  background-position: center center;
}
.hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: calc(1 - var(--photo-o));
  mix-blend-mode: var(--photo-blend);
}
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--photo-fade-b) 0%, var(--photo-fade-a) 46%, transparent 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 36%);
}
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-inline: auto;
}
.hero-eyebrow {
  margin: 0 0 clamp(18px, 2.5vw, 30px);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .14em;
}
.hero-title {
  max-width: 10ch;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(54px, 8vw, 112px);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .96;
  text-transform: none;
}
.hero-title span { display: block; }
.hero-sub {
  max-width: 40ch;
  margin: clamp(20px, 2.7vw, 30px) 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(24px, 3.2vw, 36px);
}
.hero-cta {
  min-height: 48px;
  padding-inline: 22px;
}
.hero-cta span { font-size: 15px; }

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  display: flex;
  user-select: none;
}
.marquee--solid {
  background: var(--accent);
  color: var(--accent-ink);
  padding-block: clamp(14px, 1.6vw, 22px);
}
html[data-theme=light] .marquee--solid, html.is-light .marquee--solid {
  color: #ffffff;
}
.marquee--outline {
  padding-block: clamp(8px, 1vw, 14px);
}
.marquee-track {
  display: flex;
  flex-shrink: 0;
  min-width: 100%;
  align-items: center;
  will-change: transform;
}
.mq-item {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(26px, 3.6vw, 54px);
  line-height: 1;
  white-space: nowrap;
  padding-inline: 0.35em;
}
.marquee--outline .mq-item {
  color: transparent;
  -webkit-text-stroke: 1px var(--stroke);
}
.mq-sep {
  width: 0.28em;
  height: 0.28em;
  background: currentColor;
  transform: rotate(45deg);
  display: inline-block;
  flex-shrink: 0;
}
.marquee--outline .mq-sep {
  background: var(--stroke);
}

/* ---------- manifesto ---------- */

.statement {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(22px, 3.3vw, 42px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  max-width: 24em;
}
.statement .word {
  will-change: opacity;
}
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 72px);
  margin-top: clamp(56px, 8vw, 112px);
}
.mv-card {
  border-left: 1px solid var(--accent);
  padding-left: clamp(20px, 2.4vw, 36px);
}
.mv-card p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 46ch;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(56px, 8vw, 104px);
  padding-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--line);
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 5.6vw, 84px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block;
  margin-top: 12px;
}

/* ---------- capabilities ---------- */

.cap-list {
  border-bottom: 1px solid var(--line);
}
.cap-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1.05fr) minmax(0, 1fr) 44px;
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  padding: clamp(26px, 3.2vw, 44px) 0;
  border-top: 1px solid var(--line);
  position: relative;
  cursor: default;
}
.cap-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  font-size: clamp(24px, 3.1vw, 48px);
  transition:
    transform 0.55s var(--ease),
    color 0.35s var(--ease);
}
.cap-row:hover .cap-title {
  transform: translateX(16px);
  color: var(--accent);
}
.cap-desc {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
}
.cap-row:hover .cap-desc {
  opacity: 1;
  transform: none;
}
.cap-arrow {
  justify-self: end;
  color: var(--muted);
  transform: rotate(-45deg);
  transition:
    transform 0.5s var(--ease),
    color 0.35s var(--ease);
}
.cap-row:hover .cap-arrow {
  transform: rotate(0deg);
  color: var(--accent);
}
.cap-card {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  pointer-events: none;
  width: 264px;
  height: 190px;
  border: 1px solid var(--line);
  background: var(--bg-raise);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
}
.cap-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: var(--accent);
}
.cap-card-index {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.04em;
}
.cap-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

/* ---------- approach ---------- */

.approach-grid {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 120px);
}
.approach-left {
  position: sticky;
  top: calc(var(--nav-h) + 36px);
  align-self: start;
}
.approach-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(88px, 10vw, 156px);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--accent);
  margin-top: 40px;
  font-variant-numeric: tabular-nums;
}
.approach-total {
  margin-top: 8px;
}
.approach-steps {
  position: relative;
  padding-left: clamp(28px, 3vw, 56px);
}
.approach-line {
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}
.approach-line-fill {
  position: absolute;
  left: 0;
  top: 8px;
  width: 1px;
  bottom: 8px;
  background: var(--accent);
  transform-origin: top;
}
.step {
  min-height: 56vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  position: relative;
  opacity: 0.28;
  transition: opacity 0.6s var(--ease);
  padding-block: 24px;
}
.step.is-active {
  opacity: 1;
}
.step::before {
  content: '';
  position: absolute;
  left: calc(-1 * clamp(28px, 3vw, 56px) - 3.5px);
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot);
  transition:
    background 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.step.is-active::before {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(252, 70, 12, 0.16);
}
.step-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(30px, 4vw, 60px);
  line-height: 1;
}
.step-desc {
  color: var(--muted);
  max-width: 46ch;
  font-size: 15.5px;
  line-height: 1.7;
}

/* ---------- operating model ---------- */

.model-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.model-panel {
  padding: clamp(28px, 3.4vw, 56px) clamp(28px, 3.6vw, 64px);
  border-left: 1px solid var(--line);
  position: relative;
  transition: background 0.5s var(--ease);
}
.model-panel:first-child {
  border-left: none;
  padding-left: 0;
}
.model-panel:hover {
  background: var(--bg-raise);
}
.model-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(30px, 3.8vw, 56px);
  line-height: 1;
  margin-top: 18px;
  transition: color 0.35s var(--ease);
}
.model-panel:hover .model-title {
  color: var(--accent);
}
.model-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin-top: 18px;
  max-width: 44ch;
}
.model-list {
  list-style: none;
  margin-top: 28px;
  display: grid;
  gap: 12px;
}
.model-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 14.5px;
  color: var(--ink);
}
.model-list li::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
  transform: translateY(-4px);
}

/* ---------- principles (stacked cards) ---------- */

.principle-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.principle-card {
  position: sticky;
  top: calc(var(--nav-h) + 28px + var(--i) * 26px);
  background: var(--card-grad);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(32px, 4.6vw, 68px);
  min-height: min(480px, 62vh);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  box-shadow: 0 -18px 60px rgba(0, 0, 0, 0.28);
}
html[data-theme=light] .principle-card, html.is-light .principle-card {
  box-shadow: 0 -18px 60px rgba(20, 20, 18, 0.08);
}
.principle-card::after {
  content: '';
  position: absolute;
  top: -180px;
  right: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 70, 12, 0.14) 0%, transparent 65%);
  pointer-events: none;
}
.principle-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.principle-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  font-size: clamp(32px, 5vw, 76px);
  line-height: 0.95;
  max-width: 12em;
}
.principle-desc {
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.65;
  max-width: 52ch;
  margin-top: 22px;
}
.principle-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.principle-ghost {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(72px, 9vw, 148px);
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px var(--stroke);
}

/* ---------- cta ---------- */

.cta {
  text-align: center;
  padding-block: clamp(88px, 14vh, 168px);
}
.cta-title {
  font-size: clamp(44px, 8.6vw, 148px);
  margin: 28px 0 30px;
}
.cta-sub {
  color: var(--muted);
  max-width: 46ch;
  margin: 0 auto 44px;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.7;
}
.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- footer (compact, side-by-side) ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding-top: clamp(40px, 6vw, 72px);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(32px, 5vw, 80px);
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
}
.footer-brand img {
  width: clamp(150px, 14vw, 210px);
}
.footer-cols {
  display: flex;
  gap: clamp(40px, 6vw, 96px);
  flex-wrap: wrap;
}
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}
.footer-social {
  display: flex;
  gap: 18px;
}
.footer-social a {
  color: var(--accent);
  display: inline-flex;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.footer-social a:hover {
  color: var(--accent-bright);
  transform: translateY(-3px);
}
.footer-col h4 {
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}
.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.3s var(--ease);
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  border-top: 1px solid var(--line);
  margin-top: clamp(36px, 5vw, 64px);
  padding-block: 22px 30px;
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .section-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .approach-grid {
    grid-template-columns: 1fr;
  }
  .approach-left {
    position: static;
  }
  .step {
    min-height: 44vh;
  }
}

@media (max-width: 900px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .nav-burger {
    display: block;
  }
  .cap-row {
    grid-template-columns: 48px minmax(0, 1fr) 32px;
  }
  .cap-desc {
    grid-column: 2 / -1;
    opacity: 1;
    transform: none;
  }
  .model-grid {
    grid-template-columns: 1fr;
  }
  .model-panel {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--line);
  }
  .model-panel:first-child {
    border-top: none;
  }
  .mv-grid {
    grid-template-columns: 1fr;
  }
  .stats-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .hero-photo { background-position: 22% center; }
  .footer-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    width: 100%;
  }
  .principle-card {
    min-height: 0;
  }
}

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

/* ============================================================
   WordPress theme state layer (driven by assets/js/dn-motion.js).
   Mirrors the React reference: framer-motion states become
   CSS class states here. Everything respects the global
   prefers-reduced-motion kill-switch above.
   ============================================================ */

/* logo swap: white wordmark on dark, ink wordmark on light */
.dn-logo-ink { display: none; }
html[data-theme=light] .dn-logo-dark, html.is-light .dn-logo-dark { display: none; }
html[data-theme=light] .dn-logo-ink, html.is-light .dn-logo-ink { display: block; }

/* preloader exit curtain */
.preloader.is-exiting {
  transform: translateY(-100%);
  transition: transform 0.95s var(--ease-io);
}

/* scroll reveals */
[data-dn-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.9s var(--ease) var(--d, 0s),
    transform 0.9s var(--ease) var(--d, 0s);
}
[data-dn-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* masked headline lines */
.mask-line > span {
  transform: translateY(112%);
  transition: transform 1.05s var(--ease) var(--d, 0s);
}
.dn-loaded .mask-line[data-dn-mask-load] > span,
.mask-line[data-dn-mask].is-in > span {
  transform: translateY(0);
}

/* mobile menu: clip curtain + item stagger */
.mobile-menu {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-io);
}
.mobile-menu.is-open {
  clip-path: inset(0 0 0% 0);
}
.mobile-menu [data-dn-menu-item] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.55s var(--ease) calc(0.12s + var(--i, 0) * 0.07s),
    transform 0.55s var(--ease) calc(0.12s + var(--i, 0) * 0.07s);
}
.mobile-menu.is-open [data-dn-menu-item] {
  opacity: 1;
  transform: none;
}

/* scroll cue: accent sweep down the hairline */
.scroll-cue-line span {
  transform: translateY(-100%);
  animation: dn-cue 2s var(--ease-io) 1.8s infinite;
}
@keyframes dn-cue {
  0% { transform: translateY(-100%); }
  55%, 100% { transform: translateY(100%); }
}

/* outline marquee runs the opposite way */
.dn-marquee-reverse {
  animation-direction: reverse;
}

/* capability glyph carrier (source for the cursor card) */
.dn-cap-glyph { display: none; }

/* capability cursor card states */
.cap-card {
  opacity: 0;
  will-change: transform, opacity;
}
.cap-card-glyph { color: var(--accent); display: inline-flex; }
.cap-card-glyph svg { width: 42px; height: 42px; }

/* approach phase counter tick */
.approach-num.dn-tick {
  animation: dn-num 0.5s var(--ease-io);
}
@keyframes dn-num {
  from { transform: translateY(64%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* cursor (fine pointers only; injected by JS) */
.cursor-dot, .cursor-ring {
  will-change: transform;
}

/* WordPress chrome compatibility */
body.admin-bar .nav { top: 32px; }
body.admin-bar .mobile-menu { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .nav { top: 46px; }
  body.admin-bar .mobile-menu { top: 46px; }
}

/* WordPress content defaults inside theme pages */
.dn-page-content h2, .dn-page-content h3 {
  font-family: var(--font-display);
  color: var(--ink);
}
.dn-page-content a { color: var(--accent-bright); }
.dn-page-content img { height: auto; }

/* theme toggle icon swap */
.dn-icon-moon { display: none; }
html[data-theme=light] .dn-icon-sun, html.is-light .dn-icon-sun { display: none; }
html[data-theme=light] .dn-icon-moon, html.is-light .dn-icon-moon { display: inline-flex; }

/* marquee loop (framer-driven in React, CSS-driven here) */
.marquee-track { animation: dn-mq 28s linear infinite; }
.marquee--outline .marquee-track { animation-duration: 38s; }
@keyframes dn-mq {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* skip link (WP standard a11y pattern) */
.skip-link.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}
.skip-link.screen-reader-text:focus {
  position: fixed !important;
  top: 8px;
  left: 8px;
  z-index: 200;
  clip: auto;
  clip-path: none;
  width: auto;
  height: auto;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
}

/* ============================================================
   v1.0.1 — Elementor kit shield + custom-logo compatibility
   The Elementor site kit puts .elementor-kit-N on <body> and its
   global styles outrank bare element selectors. Re-assert the
   design system at body.dn-body specificity so the kit can never
   silently retype or recolor the PHP-rendered pages.
   ============================================================ */

body.dn-body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
body.dn-body h1,
body.dn-body h2,
body.dn-body h3,
body.dn-body h4,
body.dn-body h5,
body.dn-body h6 {
  font-family: var(--font-display);
  color: var(--ink);
}
body.dn-body .mono,
body.dn-body .stat-label,
body.dn-body .footer-col h4 {
  font-family: var(--font-mono);
}

/* custom logo (Customizer) participates in the nav sizing contract */
a.nav-logo.custom-logo-link {
  display: inline-flex;
  align-items: center;
  height: auto;
}
a.nav-logo.custom-logo-link .custom-logo {
  height: clamp(24px, 2.1vw, 31px);
  width: auto;
}
@media (max-width: 1024px) {
  a.nav-logo.custom-logo-link .custom-logo {
    height: 26px;
  }
}

/* ============================================================
   v1.0.2 — custom-logo dark-mode rescue.
   Dark artwork (black wordmark) on the dark theme is invisible;
   invert(1)+hue-rotate(180deg) flips luminance while keeping hues
   (black -> white, brand orange stays orange). Light theme and
   the "none" Customizer treatment are unaffected.
   ============================================================ */

:root:not([data-theme=light]):not(.is-light) body.dn-logo-invert a.nav-logo.custom-logo-link .custom-logo {
  filter: invert(1) hue-rotate(180deg);
}

/* ============================================================
   v1.0.3 — calm scale (Apple / Emil-minimal pass).
   Editorial type stays, but one notch quieter: smaller display
   clamps, more air, softer noise. Class/element selectors only
   (no attribute selectors) so server-side CSS optimizers cannot
   break this block.
   ============================================================ */

.section-title {
  font-size: clamp(30px, 3.6vw, 56px);
  letter-spacing: -0.025em;
}
.section-desc {
  font-size: clamp(13px, 1.05vw, 15px);
  max-width: 42ch;
}
.statement {
  font-size: clamp(19px, 2.2vw, 30px);
  max-width: 26em;
  line-height: 1.45;
}
.mq-item {
  font-size: clamp(18px, 2.2vw, 32px);
}
.marquee--solid {
  padding-block: clamp(10px, 1.2vw, 16px);
}
.stat-num {
  font-size: clamp(34px, 4vw, 60px);
}
.cap-title {
  font-size: clamp(19px, 2vw, 28px);
}
.cap-desc {
  font-size: 13px;
}
.approach-num {
  font-size: clamp(64px, 7vw, 108px);
}
.step-title {
  font-size: clamp(24px, 2.8vw, 40px);
}
.step-desc {
  font-size: 13px;
  max-width: 46ch;
}
.model-title {
  font-size: clamp(24px, 2.6vw, 38px);
}
.model-desc {
  font-size: 13px;
}
.principle-title {
  font-size: clamp(24px, 2.8vw, 40px);
}
.principle-desc {
  font-size: 13px;
  max-width: 52ch;
}
.cta-title {
  font-size: clamp(34px, 4.6vw, 72px);
}
.cta-sub {
  font-size: clamp(13px, 1.05vw, 15px);
  max-width: 44ch;
}
.footer-brand img {
  width: clamp(150px, 14vw, 210px);
  height: auto;
}
.footer-col a,
.footer-col li {
  font-size: 13px;
}
@media (max-width: 767px) {
  .cta-title {
    font-size: clamp(30px, 9vw, 44px);
  }
}

/* ============================================================
   v1.0.5 — repair layer for the imported Elementor document.
   (a) neutralize .e-con-inner boxed wrappers (kit 1140px cap),
   (b) restore the section-head two-column grid inside it,
   (c) structurally re-apply the typography the widget-level
       css_classes key dropped on import (_css_classes schema).
   No re-import needed: this matches the document as stored.
   ============================================================ */

body.elementor-page .e-con-inner {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.elementor-page .section-head > .e-con-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 400px);
  gap: clamp(32px, 5vw, 96px);
  align-items: end;
}
body.elementor-page .elementor-widget-heading .elementor-heading-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--ink);
  font-size: clamp(30px, 3.6vw, 56px);
  margin: 20px 0 0;
}
body.elementor-page .cta .elementor-widget-heading .elementor-heading-title {
  font-size: clamp(34px, 4.6vw, 72px);
  margin: 28px 0 30px;
}
body.elementor-page .hero .elementor-widget-text-editor p {
  color: var(--muted);
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.7;
  max-width: 46ch;
  margin: 0;
}
body.elementor-page .section-head .elementor-widget-text-editor p {
  color: var(--muted);
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.65;
  max-width: 42ch;
  margin: 0;
}
body.elementor-page .cta .elementor-widget-text-editor p {
  color: var(--muted);
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.7;
  max-width: 44ch;
  margin: 0 auto 44px;
}

/* ============================================================
   v1.0.6 — Elementor cascade reclaim.
   Elementor frontend/base stylesheets load AFTER theme.css and
   drive .e-con layout through CSS vars (--min-height, --position,
   --overflow, 10px default padding), silently overriding the
   design rules. Re-assert the owned layout with !important and
   neutralize the vars. The image layer is absolute inside the hero;
   keep Elementor wrappers from becoming a zero-height containing block.
   ============================================================ */
:is(body.elementor-page, body.elementor-editor-active) .e-con {
  --min-height: auto;
  --position: relative;
  --overflow: visible;
  --row-gap: 0px;
  --column-gap: 0px;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
:is(body.elementor-page, body.elementor-editor-active) .hero {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 100vh !important;
  min-height: 100svh !important;
  padding-top: calc(var(--nav-h) + 48px) !important;
  padding-bottom: 32px !important;
  overflow: hidden !important;
}
:is(body.elementor-page, body.elementor-editor-active) .hero .elementor-widget-html,
:is(body.elementor-page, body.elementor-editor-active) .hero .elementor-widget-html > .elementor-widget-container {
  position: static !important;
}
:is(body.elementor-page, body.elementor-editor-active) .dn-section {
  padding-block: var(--section-y) !important;
}
:is(body.elementor-page, body.elementor-editor-active) .marquee {
  padding-inline: 0 !important;
  overflow: hidden !important;
}
:is(body.elementor-page, body.elementor-editor-active) .cta {
  padding-block: clamp(88px, 14vh, 168px) !important;
}
:is(body.elementor-page, body.elementor-editor-active) .dn-container {
  padding-inline: var(--pad) !important;
}

/* v1.1.2 — minimal responsive hero: image backdrop, short copy, one action. */
.hero .hero-title {
  max-width: 10ch;
  font-size: clamp(54px, 8vw, 112px);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .96;
  text-transform: none;
}
.hero .hero-sub {
  max-width: 40ch;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
}
.hero .hero-cta { min-height: 48px; color: #0a0a0a; }
@media (max-width: 767px) {
  .hero { min-height: max(620px, 100svh); }
  .hero-photo { background-position: 22% center; }
  .hero .hero-title { max-width: 10ch; font-size: clamp(40px, 12.5vw, 66px); }
  .hero .hero-sub { max-width: 34ch; }
  .hero .hero-cta { min-height: 48px; padding-inline: 20px; }
}
@media (max-width: 360px) {
  .hero .hero-title { font-size: 40px; }
  .hero-eyebrow { font-size: 9px; letter-spacing: .1em; }
}
