/* Foundation: shared tokens, base elements and reusable site components. */

/* Shared primitives. Theme and component tokens below preserve their existing scope. */

:root {
  /* Brand colors */
  --color-brand-primary-hover: #3610b3;
  --color-brand-primary: #4c18df;
  --color-brand-signal: #03b9fc;
  --color-white: #fff;
  /* Blueprint surfaces and typography colors */
  --color-blueprint-light: #99aaff;
  --color-blueprint-ground: #f5f3ff;
  --color-blueprint-ink: #211b4c;
  --color-blueprint-accent: #39569c;
  --color-blueprint-paper: #eeecfb;
  --color-blueprint-paper-ink: #25214c;
  /* Dark surfaces and scene colors */
  --color-link-on-dark: #a3eaff;
  --color-chapter-signal: #a2e5ff;
  --color-night-heading: #f5f4ff;
  --color-night-copy: #edf2ff;
  --color-night-signal: #a5f0ff;
  --color-header-ground: #111426;
  --color-header-border: #354066;
  --color-back-top: #315cd0;
  --color-chapter-border: #354762;
  --color-scene-ground: #080a19;
  --color-action-on-dark: #eef2ff;
  /* Shared shadow colors */
  --color-shadow-soft: #0003;
  --color-copper-shadow: #a7795140;
  /* Portfolio palette */
  --color-portfolio-ink: #172938;
  --color-copper: #9b603e;
  --color-portfolio-paper: #ece7df;
  /* Font families */
  --font-blueprint-display: "Fraunces", Georgia, serif;
  --font-blueprint-body: "DM Sans", system-ui, sans-serif;
  --title-font: "DM Sans", Inter, system-ui, -apple-system, Arial, sans-serif;
  --body-font: Inter, system-ui, -apple-system, Arial, sans-serif;
  /* Type sizes and weights */
  --font-size-label: 13px;
  --font-size-caption: 12px;
  --font-size-eyebrow: 11px;
  --tracking-heading-tight: -0.045em;
  --tracking-label: 0.12em;
  --font-weight-bold: 700;
  --font-weight-strong: 750;
  --font-weight-heavy: 800;
  --font-weight-display: 850;
  /* Spacing: retain pixel and font-relative units independently */
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-text: 1rem;
  --space-block: 2rem;
  /* Component radii */
  --radius-xs: 10px;
  --radius-sm: 12px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-xl: 18px;
  --radius-card: 26px;
  --radius-scene: 25px;
  --radius-pill: 100px;
  --radius-round: 50%;
  /* Layout dimensions */
  --shell: min(1360px, calc(100% - clamp(36px, 6vw, 110px)));
  --header-height-default: 78px;
  --header-height-mobile: 72px;
  /* Semantic foundation aliases; themes may override these roles */
  --primary: var(--color-brand-primary);
  --secondary: var(--color-brand-signal);
  --ter: #ff816e;
  --ground: #f9f5f2;
  --ink: #1c1b2b;
  --night: #1a1527;
  --muted: #607086;
  --line: #d9e1ee;
}

/* Base elements and accessibility */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/1.7 var(--body-font);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

svg,
img {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
h3,
h4 {
  margin: 0;
}

p {
  color: var(--muted);
}

h1,
h2,
h3 {
  font-family: var(--title-font);
  line-height: 1.08;
  letter-spacing: -0.052em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 4px;
}

.skip {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 999;
  padding: var(--space-3);
  background: var(--primary);
  color: var(--color-white);
}

.skip:focus {
  top: 12px;
}

/* Shared navigation */

.site-header {
  position: sticky;
  z-index: 80;
  top: 0;
  background: rgba(250, 252, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  height: var(--header-height-default);
  display: flex;
  align-items: center;
  gap: 25px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: var(--font-weight-heavy);
  letter-spacing: -0.035em;
  font-size: var(--font-size-label);
  max-width: 270px;
  line-height: 1.28;
}

.logo-symbol {
  flex: 0 0 37px;
  height: 37px;
  border-radius: 11px;
  background: var(--night);
  position: relative;
  overflow: hidden;
}

.logo-symbol span {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: var(--radius-round);
  background: var(--secondary);
  left: 8px;
  top: 21px;
}

.logo-symbol span:nth-child(2) {
  left: 17px;
  top: 13px;
  background: var(--primary);
}

.logo-symbol span:nth-child(3) {
  left: 27px;
  top: 7px;
  background: var(--ter);
}

.desktop-menu {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-4), 2vw, 35px);
  margin-left: auto;
}

.desktop-menu a {
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-bold);
  color: #42526d;
  transition: color 0.2s;
}

.desktop-menu a:hover,
.desktop-menu a[aria-current="page"] {
  color: var(--primary);
}

.nav-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  color: var(--color-white);
  background: var(--primary);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-strong);
  padding: 13px var(--space-5);
  transition: transform 0.25s ease,
    box-shadow 0.25s ease;
}

.nav-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -18px var(--primary);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  background: var(--color-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span {
  height: 2px;
  width: 22px;
  background: var(--ink);
  transition: transform 0.2s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: var(--header-height-default);
  left: 0;
  right: 0;
  padding: 18px max(var(--space-6), 4vw) 28px;
  background: var(--ground);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 45px -32px rgba(8, 22, 38, 0.4);
}

.mobile-menu[hidden] {
  display: none !important;
}

.mobile-menu > a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: var(--font-weight-strong);
  color: var(--ink);
}

.mobile-menu .mobile-cta {
  display: block;
  background: var(--primary);
  color: var(--color-white);
  text-align: center;
  border-radius: var(--radius-md);
  margin-top: 14px;
}

/* Hero layout and actions */

.page-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 8% 20%, rgba(76, 24, 223, 0.1), transparent 45%),
    radial-gradient(ellipse at 90% 10%, rgba(3, 185, 252, 0.13), transparent 33%), var(--ground);
  padding: clamp(70px, 7vw, 126px) 0 clamp(82px, 9vw, 138px);
}

.page-hero:before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image: linear-gradient(90deg, rgba(15, 26, 44, 0.055) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  align-items: center;
  gap: clamp(var(--space-6), 4vw, 70px);
  position: relative;
}

.hero-text {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-size: var(--font-size-eyebrow);
  line-height: 1.5;
  font-weight: var(--font-weight-display);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.glow-dot {
  width: 7px;
  height: 7px;
  background: var(--secondary);
  border-radius: var(--radius-round);
  box-shadow: 0 0 0 4px rgba(3, 185, 252, 0.12);
}

.hero-text h1 {
  font-size: clamp(3rem, 5.7vw, 7rem);
  line-height: 0.99;
  letter-spacing: -0.078em;
  max-width: 13ch;
  margin: var(--space-6) 0 23px;
  text-wrap: balance;
}

.hero-deck {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  max-width: 54ch;
  color: #52637d;
  line-height: 1.74;
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: 51px;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-heavy);
  padding: 14px 22px;
  transition: transform 0.27s ease,
    box-shadow 0.27s ease,
    background 0.27s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  background: linear-gradient(120deg, var(--primary), #5128f2 60%, #157ded);
  color: var(--color-white);
  box-shadow: 0 18px 30px -21px rgba(76, 24, 223, 0.6);
}

.button-quiet {
  border: 1px solid #cad5e6;
  background: rgba(255, 255, 255, 0.8);
}

.button-light {
  background: var(--color-white);
  color: var(--night);
}

/* Hero illustration primitives */

.hero-art-wrap {
  width: 100%;
  min-height: 520px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(200, 225, 249, 0.16);
  background: radial-gradient(circle at 72% 24%, rgba(76, 24, 223, 0.22), transparent 35%),
    linear-gradient(135deg, var(--night), #172840 85%);
  box-shadow: 0 44px 105px -60px rgba(8, 17, 35, 0.72);
  isolation: isolate;
}

.hero-art-wrap:before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: linear-gradient(90deg, rgba(180, 221, 255, 0.13) 1px, transparent 1px),
    linear-gradient(0deg, rgba(180, 221, 255, 0.13) 1px, transparent 1px);
  background-size: 55px 55px;
}

.hero-artwork {
  width: 100%;
  height: 100%;
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.art-stamp,
.art-bottom-caption {
  z-index: 2;
  position: absolute;
  font: 700 10px ui-monospace,
    Consolas,
    monospace;
  letter-spacing: var(--tracking-label);
  color: #c3e8fa;
}

.art-stamp {
  top: 28px;
  left: 30px;
}

.art-bottom-caption {
  bottom: 28px;
  left: 30px;
  right: 30px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #47607b;
  padding-top: var(--space-3);
}

.art-orb {
  fill: rgba(76, 24, 223, 0.15);
  stroke: rgba(3, 185, 252, 0.55);
  stroke-width: 2;
}

.art-orb-two {
  fill: rgba(3, 185, 252, 0.12);
}

.orbit-alt,
.map-rings circle {
  fill: none;
  stroke: rgba(3, 185, 252, 0.24);
  stroke-width: 1.5;
}

.pulse-line,
.flow-line {
  fill: none;
  stroke: url(#studio-grad);
  stroke-width: 7;
  stroke-linecap: round;
  filter: drop-shadow(0 0 16px rgba(3, 185, 252, 0.4));
}

.flow-line {
  stroke-width: 4;
}

.flow-line-2 {
  opacity: 0.48;
}

.flow-line-3 {
  opacity: 0.22;
}

.hud-frame rect,
.mock-layer rect,
.mock-alt rect {
  fill: rgba(210, 235, 255, 0.05);
  stroke: rgba(190, 217, 248, 0.27);
  stroke-width: 2;
}

.hud-frame path,
.mock-alt path,
.mock-layer path {
  fill: none;
  stroke: rgba(190, 217, 248, 0.15);
  stroke-width: 1.4;
}

.hud-dots circle {
  fill: var(--ter);
  stroke: #d5f9ff;
  stroke-width: 2;
}

.ledger-bars rect {
  fill: rgba(76, 24, 223, 0.22);
  stroke: rgba(3, 185, 252, 0.52);
}

.signal-line path {
  fill: none;
  stroke: url(#studio-grad);
  stroke-width: 3;
}

.signal-line path:nth-child(2) {
  opacity: 0.35;
}

.signal-line path:nth-child(3) {
  opacity: 0.18;
}

.editor-page {
  fill: rgba(255, 255, 255, 0.09);
  stroke: rgba(255, 255, 255, 0.16);
}

.editor-big {
  font-weight: var(--font-weight-display);
  letter-spacing: -0.1em;
  font-size: 98px;
  fill: var(--color-white);
}

.editor-kicker {
  font-size: var(--font-size-label);
  fill: var(--ter);
  letter-spacing: var(--tracking-label);
  font-weight: var(--font-weight-heavy);
}

.editor-line {
  stroke: rgba(255, 255, 255, 0.27);
}

.art-micro {
  fill: #cdf2fa;
  font: 700 12px ui-monospace,
    monospace;
  letter-spacing: 0.15em;
}

.mock-alt rect {
  fill: rgba(3, 185, 252, 0.06);
}

.page-hero-compact {
  padding: 66px 0 76px;
}

.page-hero-compact .hero-text h1 {
  font-size: clamp(2.7rem, 4.65vw, 5.1rem);
}

.page-hero-compact .hero-art-wrap {
  min-height: 395px;
}

.page-hero-compact .hero-artwork {
  max-height: 400px;
}

/* Sections and resource cards */

.section {
  padding: clamp(72px, 7vw, 125px) 0;
}

.section-alt {
  background: var(--color-white);
}

.section-dark {
  background: var(--night);
  color: var(--color-white);
}

.section-intro {
  max-width: 850px;
  margin-bottom: 40px;
}

.section-intro h2 {
  font-size: clamp(2.25rem, 4.2vw, 4.6rem);
  margin: var(--space-4) 0;
}

.section-intro > p {
  max-width: 66ch;
  font-size: 1.07rem;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.resource-card {
  position: relative;
  background: var(--color-white);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  min-height: 290px;
  box-shadow: 0 15px 55px -43px rgba(13, 30, 53, 0.3);
  transition: transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 60px -36px rgba(13, 30, 53, 0.22);
  border-color: rgba(76, 24, 223, 0.23);
}

.resource-card h3 {
  font-size: clamp(1.3rem, 1.6vw, 1.7rem);
  margin: 26px 0 15px;
  line-height: 1.23;
}

.resource-card h3 a:after {
  content: "";
  position: absolute;
  inset: 0;
}

.resource-card > p {
  font-size: 0.92rem;
}

.card-type {
  color: var(--primary);
  font: 850 11px ui-monospace,
    monospace;
  letter-spacing: 0.13em;
}

.card-arrow {
  position: absolute;
  right: 26px;
  bottom: 20px;
  color: var(--primary);
  font-weight: 900;
  font-size: 22px;
}

.case-resource {
  background: linear-gradient(160deg, #0c192c, #142847);
  border-color: #264160;
  color: var(--color-white);
}

.case-resource h3 {
  color: var(--color-white);
  margin: 10px 0;
}

.case-resource .card-type {
  color: #8fe8ff;
}

.case-resource .card-arrow {
  color: #89e6ff;
}

.case-resource .card-strap {
  color: #b8ccde;
}

.card-num {
  font: 800 clamp(2.8rem, 4vw, 4.2rem)/1 var(--title-font);
  letter-spacing: -0.06em;
  color: var(--ter);
  margin-top: 26px;
}

.case-resource .card-num {
  color: var(--ter);
}

/* Long-form reading and article navigation */

.editorial {
  max-width: 880px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #2f4058;
}

.editorial p {
  margin-bottom: 1.45em;
}

.editorial h2 {
  font-size: clamp(1.8rem, 2.65vw, 2.8rem);
  margin: 2.4em 0 0.7em;
  scroll-margin-top: 110px;
}

.editorial h3 {
  font-size: 1.4rem;
  margin: 1.8em 0 0.55em;
}

.editorial li {
  margin: 0.4em 0;
}

.editorial strong {
  color: var(--ink);
}

.editorial a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.editorial table {
  border-collapse: collapse;
  width: 100%;
  min-width: 620px;
}

.editorial th,
.editorial td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.editorial th {
  background: #f2f6fb;
}

.table-scroll {
  overflow-x: auto;
  max-width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(35px, 6vw, 110px);
  align-items: start;
}

.article-toc {
  position: sticky;
  top: 110px;
  max-height: calc(100vh - 135px);
  overflow: auto;
}

.article-toc .eyebrow {
  display: block;
  margin-bottom: 15px;
}

.article-toc a {
  display: block;
  padding: 9px var(--space-3);
  margin-bottom: 5px;
  font-size: var(--font-size-label);
  line-height: 1.45;
  border-radius: var(--radius-xs);
  font-weight: 650;
  color: #5f7189;
  transition: background 0.2s,
    color 0.2s;
}

.article-toc a:hover,
.article-toc a.active {
  background: #eaeaff;
  color: var(--primary);
}

.article-toc .toc-cta {
  display: flex;
  margin-top: 26px;
  background: var(--primary);
  color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 14px 15px;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--font-size-caption);
}

.stats {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  margin: 26px 0;
}

.stat {
  min-width: 155px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: var(--radius-xl);
  padding: 14px var(--space-5);
  color: var(--color-white);
}

.stat strong {
  display: block;
  color: var(--ter);
  font-size: clamp(1.8rem, 2.5vw, 2.7rem);
  letter-spacing: var(--tracking-heading-tight);
  line-height: 1.15;
}

.stat span {
  display: block;
  color: #d3e0ef;
  font-size: var(--font-size-caption);
  line-height: 1.5;
}

.case-study-lead {
  font-size: 1.2rem;
  line-height: 1.75;
  margin-bottom: 35px;
}

/* Conversion components and forms */

.bottom-cta {
  background: var(--night);
  padding: 76px 0;
  color: var(--color-white);
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.bottom-cta h2 {
  font-size: clamp(2.3rem, 4vw, 4.5rem);
  max-width: 17ch;
  margin: 15px 0;
}

.bottom-cta p {
  color: #b9cbe0;
  max-width: 60ch;
}

.form-wrap {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: clamp(25px, 4vw, 50px);
  border: 1px solid var(--line);
  box-shadow: 0 25px 80px -55px rgba(0, 0, 0, 0.28);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field.span-2 {
  grid-column: span 2;
}

.field label {
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-strong);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #cbd5e4;
  border-radius: 13px;
  background: #f8fafd;
  color: var(--ink);
  padding: 14px var(--space-4);
}

.field textarea {
  min-height: 125px;
}

.form-note {
  font-size: var(--font-size-caption);
  margin: var(--space-4) 0;
}

/* Footer and back-to-top control */

.site-footer {
  background: #071321;
  color: var(--color-white);
  padding-top: 65px;
}

.foot-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 55px;
}

.foot-logo {
  font-size: 17px;
  color: var(--color-white);
  font-weight: var(--font-weight-display);
  line-height: 1.25;
  max-width: 300px;
}

.foot-columns > div > p:nth-child(2) {
  font-size: var(--font-size-label);
  color: #b5c7d9;
  max-width: 32ch;
  margin-top: var(--space-4);
}

.foot-columns nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.foot-columns nav a {
  font-size: var(--font-size-label);
  color: #cbd7e4;
}

.foot-columns nav a:hover {
  color: var(--color-white);
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
  border-top: 1px solid #2a3849;
  padding: 22px 0;
  font-size: var(--font-size-eyebrow);
  color: #aebece;
}

.foot-bottom a {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: none;
  border-radius: var(--radius-round);
  background: var(--color-brand-primary);
  color: var(--color-white);
  box-shadow: 0 15px 45px -20px var(--color-brand-primary);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s,
    transform 0.25s;
}

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

.back-top[hidden] {
  display: none;
}

.back-top svg.progress {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.back-top circle {
  fill: none;
  stroke-width: 2.6;
}

.back-top circle.track {
  stroke: rgba(255, 255, 255, 0.22);
}

.back-top circle.trace {
  stroke: var(--color-white);
  stroke-linecap: round;
  stroke-dasharray: 144.51;
  stroke-dashoffset: 144.51;
}

.back-top svg.arrow {
  position: relative;
  width: 20px;
  height: 20px;
  z-index: 2;
}

/* Distinct visual signatures */

.theme-editorial .page-hero {
  background: linear-gradient(120deg, #fdf9f1, #f4f0fb);
}

.theme-editorial .hero-art-wrap {
  background: linear-gradient(145deg, #171628, #251c3d);
}

.theme-studio .hero-art-wrap {
  border-radius: 42% 15% 20% 12%;
  transform: rotate(-1.5deg);
}

.theme-cinema .page-hero {
  background: radial-gradient(circle at 80% 10%, #fde7e4, transparent 40%), var(--ground);
}

.theme-flight .page-hero {
  background: linear-gradient(180deg, #f5f8fc, #ecf3fa);
}

.theme-darkroom .page-hero {
  background: radial-gradient(ellipse at 74% 20%, rgba(3, 185, 252, 0.16), transparent 46%), #091827;
  color: var(--color-white);
}

.theme-darkroom .hero-deck {
  color: #b6c7dc;
}

.theme-darkroom .hero-text h1 {
  color: var(--color-white);
}

.theme-darkroom .site-header {
  background: #edf3fa;
}

.theme-darkroom .page-hero .button-quiet {
  color: var(--ink);
}

.theme-warm .hero-art-wrap {
  border-radius: 40px 40px 140px 40px;
}

.theme-calm .hero-art-wrap {
  border-radius: 90px 26px 110px 28px;
}

.theme-ledger .hero-art-wrap {
  border-radius: var(--radius-sm);
}

.theme-beacon .hero-art-wrap {
  border-radius: 45px 12px 45px 12px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-artwork {
    animation: art-arrive 1.15s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .pulse-line,
  .flow-line {
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500;
    animation: path-arrive 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s forwards,
      glow-breathe 4s ease-in-out 2.7s infinite alternate;
  }
  .art-orb,
  .orbit-alt,
  .map-rings circle {
    transform-origin: 50% 50%;
    animation: soft-drift 7s ease-in-out infinite alternate;
  }
  .hero-art-wrap:hover .hero-artwork {
    transform: scale(1.025);
  }
  .hero-artwork {
    transition: transform 0.6s ease;
  }
  .resource-card:hover .card-arrow {
    transform: translate(3px, -3px);
  }
  .card-arrow {
    transition: transform 0.3s ease;
  }
}

@keyframes art-arrive {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes path-arrive {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes glow-breathe {
  from {
    filter: drop-shadow(0 0 4px rgba(3, 185, 252, 0.35));
  }
  to {
    filter: drop-shadow(0 0 22px rgba(3, 185, 252, 0.7));
  }
}

@keyframes soft-drift {
  to {
    transform: translateY(-14px) scale(1.035);
  }
}

@media (max-width: 1060px) {
  .nav-ready .desktop-menu,
  .nav-contact {
    display: none;
  }
  .nav-ready .nav-toggle {
    display: flex;
  }
  html:not(.nav-ready) .nav-inner {
    flex-wrap: wrap;
  }
  html:not(.nav-ready) .desktop-menu {
    flex-wrap: wrap;
  }
  .mobile-menu:not([hidden]) {
    display: block;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-text h1 {
    max-width: 18ch;
  }
  .hero-art-wrap {
    max-width: 850px;
    min-height: 460px;
  }
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 35px;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: calc(100% - 36px);
  }
  .site-logo {
    font-size: var(--font-size-caption);
    max-width: 230px;
  }
  .nav-inner {
    height: var(--header-height-mobile);
  }
  .mobile-menu {
    top: var(--header-height-mobile);
  }
  .page-hero,
  .page-hero-compact {
    padding: 64px 0 65px;
  }
  .hero-text h1,
  .page-hero-compact .hero-text h1 {
    font-size: clamp(2.85rem, 10.5vw, 5.2rem);
    max-width: none;
  }
  .hero-art-wrap,
  .page-hero-compact .hero-art-wrap {
    min-height: 350px;
    border-radius: var(--radius-scene) !important;
    transform: none !important;
  }
  .art-stamp {
    font-size: 8px;
    left: 20px;
    top: 19px;
  }
  .art-bottom-caption {
    left: 20px;
    right: 20px;
    bottom: 15px;
    font-size: 8px;
  }
  .hero-buttons {
    gap: var(--space-3);
  }
  .hero-buttons a {
    width: 100%;
  }
  .resource-grid {
    grid-template-columns: 1fr;
  }
  .resource-card {
    min-height: 235px;
  }
  .article-layout {
    display: block;
  }
  .article-toc {
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
    margin-bottom: 35px;
  }
  .article-toc nav {
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
    padding: 6px 0;
  }
  .article-toc nav a {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .article-toc .toc-cta {
    max-width: 280px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.span-2 {
    grid-column: auto;
  }
  .cta-inner {
    flex-direction: column;
    align-items: start;
  }
  .foot-columns {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .foot-columns > div {
    grid-column: span 2;
  }
  .editorial {
    font-size: 1rem;
  }
  .case-study-lead {
    font-size: 1.1rem;
  }
}

@media (max-width: 420px) {
  .hero-text h1 {
    font-size: clamp(2.55rem, 10vw, 4rem);
  }
  .hero-art-wrap,
  .page-hero-compact .hero-art-wrap {
    min-height: 300px;
  }
  .foot-columns {
    grid-template-columns: 1fr;
  }
  .foot-columns > div {
    grid-column: span 1;
  }
  .foot-bottom {
    display: block;
  }
  .foot-bottom span {
    display: block;
    margin-bottom: 7px;
  }
}

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

/* Hero composition variants */

@media (min-width: 1061px) {
  .theme-editorial .hero-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
  .theme-editorial .hero-art-wrap {
    min-height: 590px;
    transform: translateY(15px);
  }
  .theme-editorial .hero-text h1 {
    font-size: clamp(4.2rem, 5.3vw, 7.2rem);
    max-width: 12ch;
  }
  .theme-flight .page-hero {
    background: radial-gradient(ellipse at 25% 0%, rgba(76, 24, 223, 0.28), transparent 48%),
      linear-gradient(130deg, #071421, #112742 100%);
    color: var(--color-white);
  }
  .theme-flight .hero-deck {
    color: #c9d8eb;
  }
  .theme-flight .hero-text h1 {
    max-width: 13ch;
  }
  .theme-flight .button-quiet {
    background: rgba(255, 255, 255, 0.08);
    border-color: #41566f;
    color: var(--color-white);
  }
  .theme-flight .eyebrow {
    color: #96e6ff;
  }
  .theme-cinema .page-hero {
    background: radial-gradient(circle at 92% 5%, rgba(255, 122, 89, 0.22), transparent 36%),
      linear-gradient(135deg, #160e22, #121a33 100%);
    color: var(--color-white);
  }
  .theme-cinema .hero-deck {
    color: #e2d0de;
  }
  .theme-cinema .eyebrow {
    color: #ffc0a8;
  }
  .theme-cinema .button-quiet {
    background: rgba(255, 255, 255, 0.11);
    border-color: #635678;
    color: var(--color-white);
  }
  .theme-cinema .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
  .theme-ledger .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .theme-ledger .hero-text {
    order: 2;
  }
  .theme-ledger .hero-art-wrap {
    order: 1;
    min-height: 600px;
    border-radius: 32px;
  }
  .theme-ledger .hero-text h1 {
    font-size: clamp(3.5rem, 5.2vw, 6.5rem);
  }
  .theme-studio .hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
  .theme-studio .hero-art-wrap {
    min-height: 590px;
    transform: rotate(-2deg) translateY(18px);
    box-shadow: 0 55px 120px -75px #0b1730;
  }
  .theme-warm .hero-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }
  .theme-warm .hero-art-wrap {
    min-height: 570px;
    transform: translateY(18px);
  }
  .theme-calm .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  }
  .theme-calm .hero-art-wrap {
    min-height: 530px;
    transform: translateY(10px);
  }
  .theme-darkroom .hero-art-wrap {
    min-height: 570px;
    border: 1px solid rgba(3, 185, 252, 0.3);
    box-shadow: 0 0 90px rgba(3, 185, 252, 0.09);
  }
  .theme-beacon .hero-art-wrap {
    min-height: 570px;
  }
}

@media (max-width: 1060px) {
  .theme-ledger .hero-text,
  .theme-ledger .hero-art-wrap {
    order: unset;
  }
}
