:root {
  --bg: #0b0f14;
  --bg-elevated: rgba(20, 27, 36, 0.82);
  --bg-soft: #101722;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef2f7;
  --text-soft: #b7c0cc;
  --text-muted: #8e98a7;
  --accent: #d6b88a;
  --accent-hover: #e0c89e;
  --accent-soft: rgba(214, 184, 138, 0.14);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --hero-gradient:
    radial-gradient(
      circle at top left,
      rgba(212, 180, 131, 0.14),
      transparent 38%
    ),
    radial-gradient(
      circle at 85% 20%,
      rgba(125, 145, 180, 0.14),
      transparent 28%
    );
  --max-width: 1180px;
  --radius: 20px;
  --radius-sm: 14px;
  --transition: 220ms ease;
  --sq1: rgba(214, 184, 138, 0.55);
  --sq2: rgba(183, 192, 204, 0.38);
  --sq3: rgba(142, 152, 167, 0.42);
  --sq4: rgba(214, 184, 138, 0.25);
}

html[data-theme="light"] {
  --bg: #f5f2eb;
  --bg-elevated: rgba(255, 255, 255, 0.82);
  --bg-soft: #ebe6dc;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --border: rgba(25, 33, 45, 0.08);
  --border-strong: rgba(25, 33, 45, 0.14);
  --text: #16202b;
  --text-soft: #475465;
  --text-muted: #6d7786;
  --accent: #8a6540;
  --accent-hover: #7a5838;
  --accent-soft: rgba(138, 101, 64, 0.12);
  --shadow: 0 24px 60px rgba(27, 38, 51, 0.08);
  --sq1: rgba(138, 101, 64, 0.50);
  --sq2: rgba(71, 84, 101, 0.30);
  --sq3: rgba(109, 119, 134, 0.35);
  --sq4: rgba(138, 101, 64, 0.22);
  --hero-gradient:
    radial-gradient(
      circle at top left,
      rgba(138, 101, 64, 0.07),
      transparent 38%
    ),
    radial-gradient(
      circle at 85% 20%,
      rgba(124, 142, 167, 0.08),
      transparent 28%
    );
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    var(--hero-gradient),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
  overflow-x: clip;
  transition:
    background var(--transition),
    color var(--transition);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

.container {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  background: rgba(20, 27, 36, 0.6);
  border-bottom: 1px solid var(--border);
  transition:
    box-shadow var(--transition),
    border-color var(--transition),
    background var(--transition);
}

html[data-theme="light"] .site-header {
  background: rgba(245, 242, 235, 0.65);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border-strong);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a,
.mobile-nav a {
  position: relative;
  color: var(--text-soft);
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition:
    color var(--transition),
    opacity var(--transition);
}

.site-nav a::after,
.mobile-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
  opacity: 0.75;
}

.site-nav a:hover,
.mobile-nav a:hover {
  color: var(--text);
}

.site-nav a:hover::after,
.mobile-nav a:hover::after {
  transform: scaleX(1);
}

.site-nav a[aria-current="page"],
.mobile-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a[aria-current="page"]::after,
.mobile-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

html[data-theme="light"] .site-nav a {
  color: #5a6472;
}

html[data-theme="light"] .concept-visual {
  background:
    radial-gradient(ellipse at 30% 60%, rgba(138, 101, 64, 0.06), transparent 70%),
    #e8e2d6;
}

html[data-theme="light"] .concept-bar {
  background: rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .cv-block {
  background: var(--accent);
  border-color: rgba(138, 101, 64, 0.3);
}

html[data-theme="light"] .site-nav a:hover,
html[data-theme="light"] .site-nav a[aria-current="page"] {
  color: #16202b;
}

/* Logo */

/* Revert logo: restore overflow:hidden, width:min(340px,100%), remove gap/text-decoration,
   swap HTML back to <img> tags, remove .logo-bulb/.logo-sep/.logo-name rules below */
.logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  height: 42px;
  gap: 10px;
  padding: 0;
  overflow: visible;
  text-decoration: none;
}

.logo-image {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  width: auto;
  height: 42px;
  max-width: 100%;
  object-fit: contain;
  opacity: 0;
  transition:
    opacity 200ms ease,
    transform 200ms ease,
    filter 220ms ease;
  pointer-events: none;
}

.logo-image-dark {
  opacity: 0.92;
}

html[data-theme="light"] .logo-image-dark {
  opacity: 0;
}

html[data-theme="light"] .logo-image-light {
  opacity: 0.96;
}

html[data-theme="dark"] .logo-image-dark {
  filter: drop-shadow(0 0 10px rgba(212, 180, 131, 0.1));
}

html[data-theme="dark"] .logo-wrap:hover .logo-image-dark {
  opacity: 1;
  transform: translateY(-1px);
  filter:
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.18))
    drop-shadow(0 0 20px rgba(214, 184, 138, 0.18));
}

html[data-theme="light"] .logo-wrap:hover .logo-image-light {
  opacity: 1;
  transform: translateY(-1px);
}

/* Inline SVG logo */

.logo-bulb {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  overflow: visible;
  --glass: #d6b88a;
  --cap: #d6b88a;
  --circuit: #e2c97e;
  --nodes: #f0d888;
  transition: transform 200ms ease, filter 220ms ease;
  transform: translateZ(0);
  will-change: filter;
}

html[data-theme="light"] .logo-bulb {
  --glass: #1e2535;
  --cap: #1e2535;
  --circuit: #c9a96e;
  --nodes: #b08030;
}

/* Dark mode: incandescent glow */
html[data-theme="dark"] .logo-bulb {
  --glass: #f0d888;
  --cap: #c9a96e;
  --circuit: #ffe8a0;
  --nodes: #fff4cc;
  animation: logo-glow 3.5s ease-in-out infinite;
}

/* Warm fill inside the glass in dark mode */
html[data-theme="dark"] .logo-bulb path:first-child {
  fill: rgba(255, 210, 120, 0.1);
}

/* Ambient light halo behind the bulb */
html[data-theme="dark"] .logo-wrap::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: radial-gradient(
    circle,
    rgba(255, 210, 120, 0.14) 0%,
    rgba(214, 184, 138, 0.06) 40%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: halo-pulse 3.5s ease-in-out infinite;
}

@keyframes halo-pulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

@keyframes logo-glow {
  0%, 100% {
    filter:
      drop-shadow(0 0 5px rgba(255,210,120,0.7))
      drop-shadow(0 0 14px rgba(214,184,138,0.4))
      drop-shadow(0 0 28px rgba(214,184,138,0.15));
  }
  50% {
    filter:
      drop-shadow(0 0 8px rgba(255,220,130,1))
      drop-shadow(0 0 22px rgba(255,200,100,0.6))
      drop-shadow(0 0 44px rgba(214,184,138,0.25));
  }
}

.logo-wrap:hover .logo-bulb {
  transform: translateZ(0) translateY(-1px);
}

.logo-sep {
  width: 1px;
  height: 24px;
  flex-shrink: 0;
}

html[data-theme="dark"] .logo-sep {
  background: rgba(214,184,138,0.28);
}

html[data-theme="light"] .logo-sep {
  background: rgba(15,19,26,0.18);
}

.logo-name {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}

html[data-theme="dark"] .logo-name {
  color: #f0ead8;
}

html[data-theme="light"] .logo-name {
  color: #0f131a;
}

/* Theme toggle */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.theme-toggle:hover {
  border-color: var(--border-strong);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 22px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.theme-toggle-track {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform var(--transition);
}

html[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(20px);
}

.theme-toggle-label {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  min-width: 34px;
  text-align: left;
}

/* Mobile menu */

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition:
    border-color var(--transition),
    background var(--transition);
  flex-shrink: 0;
}

.menu-toggle:hover {
  border-color: var(--border-strong);
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 999px;
  transition:
    transform var(--transition),
    opacity var(--transition);
}

.menu-toggle.is-active span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle.is-active span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-nav {
  display: grid;
  gap: 18px;
  padding: 18px 20px 22px;
}

.mobile-nav a {
  font-size: 1rem;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 68px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 38px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker,
.panel-topline {
  font-family: 'DM Sans', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

.hero h1 {
  margin: 18px 0 20px;
  max-width: 900px;
  font-size: clamp(2.8rem, 5vw, 5.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero-text,
.section-heading p,
.split-copy p,
.panel-card p,
.card p,
.footer-note {
  color: var(--text-soft);
  font-family: 'DM Sans', Arial, sans-serif;
}

.hero-text {
  max-width: 760px;
  font-size: 1.12rem;
  line-height: 1.72;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #0f0f0f;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition:
    transform var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.button:hover {
  transform: translateY(-2px);
  background: var(--accent-hover);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: none;
  opacity: 0.8;
}
.button-secondary:hover {
  opacity: 1;
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: none;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
  max-width: 640px;
}

.meta-item {
  position: relative;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}

.meta-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.meta-value {
  font-family: 'DM Sans', Arial, sans-serif;
  font-weight: 600;
  color: var(--text);
}

.hero-panel {
  position: relative;
}

.panel-card {
  position: relative;
  padding: 34px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, var(--surface-strong), var(--surface)),
    rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-card h2 {
  margin: 18px 0 14px;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.15;
}

.panel-list {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.panel-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-soft);
  font-family: 'DM Sans', Arial, sans-serif;
}

.panel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
  flex-shrink: 0;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.35;
  pointer-events: none;
}

.hero-glow-1 {
  width: 240px;
  height: 240px;
  background: var(--accent-soft);
  top: 40px;
  right: 18%;
}

.hero-glow-2 {
  width: 180px;
  height: 180px;
  background: rgba(102, 123, 152, 0.14);
  bottom: 40px;
  left: 10%;
}

/* Proof strip */

.proof-strip {
  padding: 28px 0 12px;
}

.proof-strip-inner {
  display: grid;
  gap: 14px;
  padding: 24px 28px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.proof-eyebrow {
  font-family: 'DM Sans', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.85;
}

.proof-statement {
  margin: 0;
  max-width: 680px;
  color: var(--text);
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.02em;
}

/* turn your lines into designed list */

.proof-inline {
  display: grid;
  gap: 5px;
  margin-top: 4px;
}

.proof-inline span {
  position: relative;
  padding-left: 14px;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
  transition: opacity 0.2s ease;
}

.proof-inline span:hover {
  opacity: 0.75;
}

/* subtle bullet */
.proof-inline span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

/* Content sections */

.section {
  padding: 84px 0;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-heading {
  max-width: 760px;
}

.section-heading h2,
.split-section h2,
.cta-copy h2 {
  max-width: 720px;
  margin: 0px 0 12px;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  line-height: 1.2;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
  align-items: stretch;
}

.card-grid--2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 272px;
  padding: 26px 26px 24px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  box-shadow: 0 14px 32px rgba(27, 38, 51, 0.045);
  overflow: hidden;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.16),
    rgba(255, 255, 255, 0)
  );
  opacity: 0.22;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 40px rgba(27, 38, 51, 0.065);
}

.card-icon {
  width: 28px;
  height: 2px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.75;
  flex-shrink: 0;
}

/* Corner square grid decoration */
.corner-squares {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  grid-template-columns: 7px 7px;
  gap: 4px;
  pointer-events: none;
}

.corner-sq {
  width: 7px;
  height: 7px;
  border-radius: 1px;
}

/* v0 — default */
.corner-sq:nth-child(1) { background: var(--sq1); }
.corner-sq:nth-child(2) { background: var(--sq2); }
.corner-sq:nth-child(3) { background: var(--sq3); }
.corner-sq:nth-child(4) { background: var(--sq4); }

/* v1 — shifted */
.sq-v1 .corner-sq:nth-child(1) { background: var(--sq2); }
.sq-v1 .corner-sq:nth-child(2) { background: var(--sq4); }
.sq-v1 .corner-sq:nth-child(3) { background: var(--sq1); }
.sq-v1 .corner-sq:nth-child(4) { background: var(--sq3); }

/* v2 — shifted again */
.sq-v2 .corner-sq:nth-child(1) { background: var(--sq4); }
.sq-v2 .corner-sq:nth-child(2) { background: var(--sq1); }
.sq-v2 .corner-sq:nth-child(3) { background: var(--sq2); }
.sq-v2 .corner-sq:nth-child(4) { background: var(--sq3); }

/* Meta-item overrides — smaller boxes need smaller squares */
.meta-item .corner-squares {
  top: 13px;
  right: 14px;
  grid-template-columns: 5px 5px;
  gap: 3px;
}

.meta-item .corner-sq {
  width: 5px;
  height: 5px;
}

@keyframes sq-twinkle {
  0%   { opacity: 1;    transform: scale(1);    animation-timing-function: ease-in; }
  30%  { opacity: 0.12; transform: scale(0.6);  animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
  100% { opacity: 1;    transform: scale(1); }
}

.corner-sq.is-twinkling {
  animation: sq-twinkle 580ms;
}

.card h3 {
  margin: 0 0 14px;
  max-width: 11ch;
  font-size: clamp(1.38rem, 1.8vw, 1.58rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  max-width: 27ch;
  font-size: 0.98rem;
  line-height: 1.62;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  align-items: start;
}

.split-copy {
  display: grid;
  gap: 14px;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;

  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);

  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.cta-copy {
  max-width: 760px;
}
.cta-copy .section-kicker {
  margin-bottom: 10px;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* Footer */

.site-footer {
  padding: 22px 0 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}

.site-footer p {
  margin: 0;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-note {
  letter-spacing: 0.02em;
  font-style: italic;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-nav {
  display: flex;
  gap: 18px;
}

.footer-nav a {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--accent);
}

/* FAQ accordion */

.faq-list {
  display: grid;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  transition: color var(--transition);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::marker {
  content: "";
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform 300ms ease, opacity 300ms ease;
}

.faq-icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  transform: translateY(-50%);
}

.faq-icon::after {
  top: 0;
  left: 50%;
  width: 1.5px;
  height: 100%;
  transform: translateX(-50%);
}

.faq-item[open] .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  padding: 0 0 24px;
}

.faq-answer p {
  margin: 0;
  max-width: 680px;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.96rem;
  line-height: 1.68;
  color: var(--text-soft);
}

.faq-answer a {
  color: var(--accent);
  font-weight: 600;
  transition: opacity var(--transition);
}

.faq-answer a:hover {
  opacity: 0.75;
}

/* Homepage work cards */

.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition:
    border-color var(--transition),
    transform var(--transition);
}

.work-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.work-card:hover .work-card-link {
  border-bottom-color: var(--accent);
}

.work-card-tag {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  opacity: 0.85;
}

.work-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin-bottom: 16px;
  flex-grow: 1;
}

.work-card-link {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
  align-self: flex-start;
}

/* Selected Work index */

.work-list {
  display: grid;
  gap: 0;
}

.work-item {
  display: block;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: opacity var(--transition);
}

.work-item:first-child {
  border-top: 1px solid var(--border);
}

.work-item:hover {
  opacity: 0.8;
}

.work-item:hover .work-item-link {
  border-bottom-color: var(--accent);
}

.work-item-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
}

.work-item-meta span {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.work-item-meta span + span::before {
  content: "—";
  margin-right: 16px;
  opacity: 0.4;
}

.work-item-title {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  margin-bottom: 8px;
}

.work-item-hook {
  color: var(--text-soft);
  max-width: 680px;
  margin-bottom: 14px;
}

.work-item-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.work-disclaimer {
  margin-top: 14px;
  font-size: 0.84rem;
  font-style: italic;
  color: var(--text-muted);
}

/* Case study pages */

.case-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.case-meta span {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.case-meta span + span::before {
  content: "—";
  margin-right: 16px;
  opacity: 0.4;
}

.case-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 12px;
}

.case-list li {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-soft);
  padding-left: 20px;
  position: relative;
}

.case-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--accent);
  opacity: 0.7;
}

.case-outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.case-outcome {
  position: relative;
  background: var(--surface);
  padding: 28px 24px;
  overflow: hidden;
}

.case-outcome p {
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  color: var(--text-soft) !important;
  margin-bottom: 0 !important;
}

.case-outcome p::before {
  content: "↗";
  display: block;
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 10px;
  opacity: 0.75;
}

.case-pattern {
  margin-top: 40px;
  padding: 24px 28px;
  border-left: 2px solid var(--accent);
  font-size: 0.95rem !important;
  line-height: 1.7 !important;
  color: var(--text-soft) !important;
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.case-pattern strong {
  display: block;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

@media (max-width: 640px) {
  .case-outcomes {
    grid-template-columns: 1fr;
  }

  .work-item-meta {
    flex-direction: column;
    gap: 4px;
  }

  .work-item-meta span + span::before {
    display: none;
  }

  .case-meta {
    flex-direction: column;
    gap: 4px;
  }

  .case-meta span + span::before {
    display: none;
  }
}

/* Thinking index */

.thinking-list {
  display: grid;
  gap: 0;
}

.thinking-item {
  display: block;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: opacity var(--transition);
}

.thinking-item:first-child {
  border-top: 1px solid var(--border);
}

.thinking-item:hover {
  opacity: 0.8;
}

.thinking-item:hover .thinking-link {
  border-bottom-color: var(--accent);
}

.thinking-title {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  margin-bottom: 8px;
}

.thinking-hook {
  color: var(--text-soft);
  max-width: 680px;
  margin-bottom: 14px;
}

.thinking-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

/* Article pages */

.article-header {
  padding: 100px 0 40px;
}

.article-back {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 20px;
  transition: opacity var(--transition);
}

.article-back:hover {
  opacity: 0.7;
}

.article-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 20px;
}

.article-header .page-intro {
  max-width: 640px;
}

.article-body {
  max-width: 700px;
  padding-bottom: 60px;
}

.article-body p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-soft);
  margin-bottom: 22px;
}

.article-body ul {
  margin: 0 0 22px 1.25rem;
  color: var(--text-soft);
}

.article-body li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.article-body h2 {
  font-size: 1.35rem;
  color: var(--text);
  margin-top: 48px;
  margin-bottom: 16px;
}

.article-body strong {
  color: var(--text);
  font-weight: 600;
}

.article-body em {
  font-style: italic;
}

.article-cta {
  padding-bottom: 80px;
}

/* Page header (sub-pages) */

.page-header {
  padding: 78px 0 42px;
}

.page-header h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.page-intro {
  max-width: 600px;
  color: var(--text-soft);
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
}


/* Contact layout */

.contact-hero {
  padding: 72px 0 84px;
}

.contact-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-h1 {
  margin: 10px 0 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.contact-hero-copy .page-intro {
  margin-bottom: 24px;
}

.contact-copy {
  color: var(--text-soft);
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 1.02rem;
  line-height: 1.7;
}

.contact-copy p + p {
  margin-top: 14px;
}

.contact-faq-link {
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.contact-faq-link a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.contact-faq-link a:hover {
  border-bottom-color: var(--accent);
}

/* Contact meta block */
.contact-meta {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.contact-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-meta-label {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-meta-item span:not(.contact-meta-label),
.contact-meta-item a {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.contact-meta-item a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.contact-meta-item a:hover {
  border-bottom-color: var(--accent);
}

/* Contact form */
.contact-form-wrap {
  display: flex;
  flex-direction: column;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-required {
  color: var(--accent);
  font-size: 0.85em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.94rem;
  line-height: 1.5;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-input[aria-invalid="true"],
.form-select[aria-invalid="true"],
.form-textarea[aria-invalid="true"],
.form-input:user-invalid,
.form-select:user-invalid,
.form-textarea:user-invalid {
  border-color: #b85050;
  box-shadow: 0 0 0 3px rgba(184, 80, 80, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 128px;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
  cursor: pointer;
}

.form-field-error {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.8rem;
  color: #b85050;
  min-height: 1em;
}

.form-error-global {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.88rem;
  color: #b85050;
  margin-bottom: 4px;
}

.form-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
}

.form-note {
  margin: 0;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Form success state */
.form-success {
  padding: 48px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.form-success-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.form-success h3 {
  margin: 0 0 10px;
  font-size: 1.4rem;
}

.form-success p {
  margin: 0;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.94rem;
  color: var(--text-soft);
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }

}


/* Privacy policy */

.policy-date {
  display: block;
  margin-bottom: 24px;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.policy-summary {
  margin-bottom: 36px;
  padding: 20px 24px;
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface);
}

.policy-summary p {
  margin: 0;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-soft);
}

.policy-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

/* 404 page */

.not-found-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.not-found-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 24px;
  background: var(--surface);
  text-decoration: none;
  transition: background var(--transition);
}

.not-found-link:hover {
  background: var(--surface-strong);
}

.not-found-label {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.01em;
}

.not-found-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 720px) {
  .not-found-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .not-found-links {
    grid-template-columns: 1fr;
  }
}

/* Back to top */

.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(20, 27, 36, 0.22);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: var(--text-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 300ms ease,
    transform 300ms ease,
    border-color var(--transition),
    color var(--transition),
    box-shadow var(--transition);
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(20, 27, 36, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .back-to-top {
  background: rgba(245, 242, 235, 0.28);
}

html[data-theme="light"] .back-to-top:hover {
  background: rgba(245, 242, 235, 0.48);
}

/* Process steps (Services page) */

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 52px;
}

.process-step {
  padding: 28px 32px 0 0;
  border-top: 2px solid var(--border);
  transition: border-color var(--transition);
}

.process-step:first-child {
  border-top-color: var(--accent);
}

.process-step:hover {
  border-top-color: var(--accent);
}

.process-num {
  display: block;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 16px;
}

.process-step h3 {
  margin: 0 0 12px;
  font-size: 1.18rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.process-step p {
  margin: 0;
  color: var(--text-soft);
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.94rem;
  line-height: 1.65;
}

@media (max-width: 860px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 0;
  }

  .process-step {
    padding-right: 24px;
  }
}

@media (max-width: 520px) {
  .process-steps {
    grid-template-columns: 1fr;
    gap: 28px 0;
  }
}

/* Concept visuals (Logic & Theory page) */

.concept-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  box-shadow: 0 14px 32px rgba(27, 38, 51, 0.045);
  overflow: hidden;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.concept-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 40px rgba(27, 38, 51, 0.065);
}

.concept-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
}

.concept-text {
  padding: 24px 26px;
}

.concept-text h3 {
  margin: 0 0 10px;
  font-size: clamp(1.38rem, 1.8vw, 1.58rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.concept-text p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.62;
  color: var(--text-soft);
  font-family: 'DM Sans', Arial, sans-serif;
}

.concept-detail {
  position: relative;
  padding: 24px 26px;
  border-left: 2px solid var(--border);
  display: flex;
  align-items: center;
  transition: border-color 450ms ease;
}

.concept-detail.has-active {
  border-left-color: var(--accent);
}

/* Chevron indicator */
.concept-detail::after {
  content: "▾";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%) translateY(-3px);
  font-size: 1.5rem;
  color: var(--accent);
  opacity: 0;
  transition: opacity 400ms ease, transform 400ms ease;
  z-index: 2;
  pointer-events: none;
}

.concept-detail.has-active::after {
  opacity: 0.28;
  transform: translateX(-50%) translateY(0);
}

.concept-detail.is-pulsing::after {
  animation: chevron-pulse 600ms ease;
}

@keyframes chevron-pulse {
  0%   { opacity: 0.28; transform: translateX(-50%) translateY(0) scale(1); }
  40%  { opacity: 0.36; transform: translateX(-50%) translateY(-1px) scale(1.08); }
  75%  { opacity: 0.24; transform: translateX(-50%) translateY(0) scale(0.98); }
  100% { opacity: 0.28; transform: translateX(-50%) translateY(0) scale(1); }
}

.concept-detail p {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 24px 26px;
  display: flex;
  align-items: center;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--accent);
  opacity: 0;
  transition: opacity 600ms ease;
  z-index: 1;
}

.concept-detail p.is-visible {
  opacity: 1;
  animation: detail-pulse 600ms ease;
}

@keyframes detail-pulse {
  0%   { opacity: 0; }
  60%  { opacity: 0.85; }
  80%  { opacity: 0.95; }
  100% { opacity: 1; }
}

.concept-visual {
  aspect-ratio: 5 / 3;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 30% 60%, var(--accent-soft), transparent 70%),
    var(--bg);
  display: flex;
  flex-direction: column;
}

.concept-bar {
  display: flex;
  gap: 5px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.12);
}

.concept-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-strong);
}

.concept-dot:first-child {
  background: var(--accent);
  opacity: 0.6;
}

.concept-canvas {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px;
  gap: 8px;
}

.cv-block {
  position: relative;
  border-radius: 6px;
  background: var(--accent);
  opacity: 0.18;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition:
    opacity 280ms ease,
    transform 280ms ease,
    box-shadow 280ms ease;
}

.cv-block:hover {
  opacity: 0.42;
  transform: scale(1.04);
  box-shadow: 0 4px 18px var(--accent-soft);
}

.cv-block[data-label]::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.cv-block[data-label]:hover::after,
.cv-block[data-label].is-active::after {
  opacity: 1;
  transition: opacity 450ms ease;
}

.cv-block.is-active {
  opacity: 0.55;
  transform: scale(1.04);
  box-shadow: 0 4px 18px var(--accent-soft);
}

/* Hold block visible while text dissolves, then block fades out after */
.cv-block.is-fading {
  opacity: 0.55;
  transform: scale(1.04);
  box-shadow: 0 4px 18px var(--accent-soft);
}

.cv-block.is-fading[data-label]::after {
  opacity: 0;
  transition: opacity 3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cv-block[data-label]:hover {
  opacity: 0.65;
}

.cv-row {
  display: flex;
  gap: 8px;
  flex: 1;
}

/* Hierarchy: large block → medium → 3 small columns */
.concept-canvas--hierarchy {
  gap: 8px;
}

.concept-canvas--hierarchy .cv-hero {
  flex: 2.4;
  opacity: 0.45;
  background:
    linear-gradient(135deg, var(--accent), transparent 70%);
  box-shadow: 0 4px 20px var(--accent-soft);
}

.concept-canvas--hierarchy .cv-hero:hover,
.concept-canvas--hierarchy .cv-hero.is-active {
  opacity: 0.75;
  transform: scale(1.03);
  box-shadow: 0 6px 28px var(--accent-soft), 0 0 40px var(--accent-soft);
}

.concept-canvas--hierarchy .cv-sub {
  flex: 1;
  opacity: 0.22;
}

.concept-canvas--hierarchy .cv-row {
  flex: 1.2;
}

.concept-canvas--hierarchy .cv-sm {
  flex: 1;
  opacity: 0.12;
}

.concept-canvas--hierarchy .cv-sm::after {
  font-size: 0.68rem;
}

/* Trust: symmetrical 2×2 grid */
.concept-canvas--trust {
  gap: 8px;
}

.concept-canvas--trust .cv-row {
  flex: 1;
}

.concept-canvas--trust .cv-square {
  flex: 1;
  opacity: 0.22;
}

.concept-canvas--trust .cv-row:first-child .cv-square:first-child {
  opacity: 0.4;
  background:
    linear-gradient(135deg, var(--accent), transparent 70%);
  box-shadow: 0 4px 20px var(--accent-soft);
}

.concept-canvas--trust .cv-row:first-child .cv-square:first-child:hover,
.concept-canvas--trust .cv-row:first-child .cv-square:first-child.is-active {
  opacity: 0.7;
  box-shadow: 0 6px 28px var(--accent-soft), 0 0 40px var(--accent-soft);
}


/* Conversion: wide → narrow → CTA button shape */
.concept-canvas--conversion {
  gap: 10px;
  align-items: center;
}

.concept-canvas--conversion .cv-wide {
  width: 100%;
  flex: 1.8;
  opacity: 0.16;
}

.concept-canvas--conversion .cv-narrow {
  width: 72%;
  flex: 1.2;
  opacity: 0.22;
}

.concept-canvas--conversion .cv-cta {
  width: 40%;
  flex: 0 0 auto;
  height: 28px;
  border-radius: 999px;
  background: var(--accent);
  border-color: transparent;
  opacity: 0.85;
  box-shadow:
    0 2px 12px var(--accent-soft),
    0 0 24px var(--accent-soft);
}

.concept-canvas--conversion .cv-cta::after {
  color: var(--bg);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-shadow: none;
}

.concept-canvas--conversion .cv-cta:hover,
.concept-canvas--conversion .cv-cta.is-active {
  opacity: 1;
  transform: scale(1.08) translateY(-2px);
  box-shadow:
    0 6px 20px var(--accent-soft),
    0 0 36px var(--accent-soft),
    0 0 60px var(--accent-soft);
}

/* Restraint: single centered element, lots of space */
.concept-canvas--restraint {
  align-items: center;
  justify-content: center;
}

.concept-canvas--restraint .cv-single {
  width: 48%;
  height: 36%;
  opacity: 0.38;
  background:
    linear-gradient(135deg, var(--accent), transparent 65%);
  border-color: var(--accent);
  box-shadow: 0 4px 24px var(--accent-soft);
}

.concept-canvas--restraint .cv-single:hover,
.concept-canvas--restraint .cv-single.is-active {
  opacity: 0.7;
  transform: scale(1.06);
  box-shadow: 0 6px 28px var(--accent-soft), 0 0 48px var(--accent-soft);
}

/* Responsive */

@media (max-width: 980px) {
  .hero-grid,
  .split-section,
  .contact-hero-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    padding-top: 72px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 8vw, 4rem);
  }

  .site-nav {
    gap: 18px;
  }
}

@media (max-width: 900px) {
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

@media (max-width: 720px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .concept-body {
    grid-template-columns: 1fr;
  }

  .concept-detail {
    border-left: none;
    border-top: 2px solid var(--border);
    min-height: 80px;
  }

  .concept-detail.has-active {
    border-left-color: transparent;
    border-top-color: var(--accent);
  }

  .concept-detail::after {
    top: 6px;
  }

  .cv-block[data-label]::after {
    font-size: 0.9rem;
  }

  .cv-block[data-label].is-active {
    opacity: 0.78;
  }

  .cv-block[data-label].is-active::after {
    opacity: 1;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--max-width), calc(100% - 28px));
  }

  .site-header {
    width: 100%;
    overflow-x: clip;
  }

  .header-inner {
    min-height: auto;
    padding: 12px 0;
    gap: 10px;
    min-width: 0;
    width: 100%;
  }

  .header-actions {
    gap: 8px;
    flex: 0 0 auto;
    min-width: fit-content;
    align-items: center;
  }

  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
  }

  .logo-wrap {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 108px);
    height: 34px;
    width: auto;
    overflow: visible;
    gap: 8px;
  }

  .logo-image {
    height: 34px;
    max-width: min(260px, 52vw);
  }

  .logo-bulb {
    width: 34px;
    height: 34px;
  }

  .logo-sep {
    height: 18px;
  }

  .logo-name {
    font-size: 9px;
    letter-spacing: 2px;
  }

  .theme-toggle {
    flex: 0 0 auto;
    padding: 6px 8px;
    gap: 0;
  }

  .theme-toggle-track {
    width: 44px;
    height: 26px;
  }

  .theme-toggle-thumb {
    width: 18px;
    height: 18px;
    top: 3px;
    left: 3px;
  }

  html[data-theme="light"] .theme-toggle-thumb {
    transform: translateX(18px);
  }

  .panel-card,
  .cta-band,
  .card,
  .proof-strip-inner {
    padding: 22px;
  }

  .proof-statement {
    max-width: none;
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .button {
    width: 100%;
  }

  .hero-buttons,
  .cta-actions {
    width: 100%;
  }

  .theme-toggle-label {
    display: none;
  }

  .mobile-menu {
    width: 100%;
    overflow-x: hidden;
  }

  .mobile-nav {
    width: 100%;
    box-sizing: border-box;
  }
}

/* Phones: static glow instead of animated (prevents filter jitter) */
@media (max-width: 640px) {
  html[data-theme="dark"] .logo-bulb {
    animation: none;
    filter:
      drop-shadow(0 0 6px rgba(255,210,120,0.8))
      drop-shadow(0 0 16px rgba(214,184,138,0.35));
  }

  html[data-theme="dark"] .logo-wrap::before {
    animation: none;
    opacity: 0.85;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
