/*
Theme Name: Salom
Theme URI: https://salomchange.com/
Author: Salom Change Dynamics
Description: Custom classic theme. DESIGN.md visual system (6 / 12 / 16).
Version: 0.3.46
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: salom
*/

/* Salom Change Dynamics — 2026 brand tokens.
   Official chromatic source: #329B83, #949594, #000000, #FFFFFF.
   All other hexes are mixes of those values. Soft geometry: 6 / 12 / 16. */

:root {
  --primary: #329b83;
  --primary-strong: #287c69;
  --primary-stronger: #236c5c;
  --primary-soft: #eaf5f3;
  --secondary: #949594;
  --black: #000000;
  --white: #ffffff;
  --surface: #ffffff;
  --surface-subtle: #f6f7f6;
  --surface-muted: #eeeeee;
  --on-surface: #000000;
  --on-surface-muted: #3b3c3b;
  --on-surface-subtle: #606160;
  --on-primary: #ffffff;
  --on-primary-dark: #000000;
  --border: #dfdfdf;
  --border-strong: #949594;
  --focus: #329b83;
  --success: #329b83;
  --success-strong: #287c69;
  --overlay: #00000066;
  --surface-dark: #0c0c0c;
  --surface-dark-raised: #181818;
  --surface-dark-overlay: #242424;
  --on-surface-dark: #ffffff;
  --on-surface-dark-muted: #e1e1e1;
  --on-surface-dark-subtle: #b5b5b5;
  --border-dark: #2f302f;
  --primary-soft-dark: #12231f;

  --display: "Outfit", sans-serif;
  --sans: "Manrope", "Nexa Text", "Segoe UI", sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header: 72px;
  --gutter: clamp(24px, 4vw, 24px);
  --max: 1200px;
  --measure: 720px;
  --control: 40px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

h1,
h2,
h3,
.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0;
}

h1 {
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 32px;
}

h3 {
  font-size: 24px;
  line-height: 1.3;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  background: var(--black);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}

.skip:focus {
  top: 16px;
}

.wrap,
.wide {
  width: min(100% - var(--gutter) * 2, var(--max));
  margin-inline: auto;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--primary-stronger);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
}

.kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--primary);
}

.lede {
  color: var(--on-surface-muted);
  font-size: 18px;
  line-height: 1.55;
  max-width: var(--measure);
}

.section {
  padding: var(--space-3xl) 0;
}

body.home .section {
  padding: var(--space-2xl) 0;
}

.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: var(--space-xl);
  max-width: var(--measure);
}

body.home .section-head {
  gap: 8px;
  margin-bottom: var(--space-lg);
}

.section-head h2 {
  font-size: clamp(24px, 3.4vw, 32px);
}

.rule {
  display: block;
  height: 1px;
  background: var(--primary);
  transform-origin: left center;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

body.is-scrolled .site-header {
  background: var(--surface);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - var(--gutter) * 2, var(--max));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
}

.brand-type {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-type strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.015em;
}

.brand-type span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-surface-subtle);
}

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

.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--on-surface-muted);
  padding: 8px 16px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
}

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

.nav-cta {
  color: var(--primary-stronger) !important;
  background: transparent;
}

.nav-cta:hover {
  background: var(--primary-soft);
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--on-surface);
  position: relative;
  margin-inline: auto;
  transition: transform 0.2s var(--ease), top 0.2s var(--ease), background 0.2s var(--ease);
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-btn span::before {
  top: -5px;
}

.menu-btn span::after {
  top: 5px;
}

.menu-btn[aria-expanded="true"] span {
  background: transparent;
}

.menu-btn[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-btn[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 820px) {
  .site-header {
    background: var(--surface);
    overflow: visible;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .site-header {
    border-bottom-color: var(--border);
  }

  .menu-btn {
    display: grid;
    place-items: center;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
    background: var(--surface);
    color: var(--on-surface);
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.3s ease-out,
      transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0.3s;
  }

  .nav.is-open {
    max-height: 80dvh;
    opacity: 1;
    overflow: hidden;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
  }

  .nav .menu {
    padding: 8px 24px 0;
  }

  .nav a {
    padding: 12px 16px;
    height: auto;
    min-height: 48px;
    border-radius: var(--radius-sm);
    color: var(--on-surface-muted);
    opacity: 0;
    transform: translateX(-10px);
  }

  .nav.is-open a {
    animation: salom-nav-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--nav-delay, 0.05s);
  }

  .nav a[aria-current="page"],
  .nav a:hover {
    background: var(--surface-subtle);
    color: var(--primary-stronger);
  }

  .nav-cta {
    color: var(--primary-stronger) !important;
    justify-content: center;
    margin: 8px 24px 24px;
    border: 1px solid var(--border);
  }

  .header-tools {
    margin-left: auto;
  }
}

@keyframes salom-nav-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 820px) and (prefers-reduced-motion: reduce) {
  .nav {
    transform: none;
    transition: none;
  }

  .nav a,
  .nav.is-open a {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Buttons — 6px, never pill, never square. One earned green fill. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--control);
  height: var(--control);
  padding: 0 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--primary-strong);
  color: var(--on-primary);
}

.btn-primary:hover {
  background: var(--primary-stronger);
}

.btn-ghost {
  background: var(--surface);
  color: var(--on-surface);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  background: var(--surface-subtle);
}

.btn-tertiary {
  background: transparent;
  color: var(--primary-stronger);
  padding: 0 8px;
}

.btn-tertiary:hover {
  background: var(--primary-soft);
}

.band-dark .btn-ghost,
.btn-on-dark {
  background: var(--surface-dark-raised);
  color: var(--on-surface-dark);
  border-color: var(--border-dark);
}

.band-dark .btn-ghost:hover,
.btn-on-dark:hover {
  background: var(--surface-dark-overlay);
}

.band-dark .btn-primary {
  background: var(--primary);
  color: var(--on-primary-dark);
}

.band-dark .btn-primary:hover {
  background: var(--primary-strong);
  color: var(--white);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  padding: var(--space-2xl) 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(32px, 5.4vw, 56px);
  max-width: 16ch;
  margin: 16px 0 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary-stronger);
}

.hero-copy {
  display: grid;
  gap: 16px;
}

.hero-copy h1 {
  margin: 0;
}

.portrait,
.panel {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--surface-dark);
  color: var(--on-surface-dark);
  overflow: hidden;
  border: 1px solid var(--border-dark);
}

.portrait,
.portrait-inner {
  min-height: 360px;
}

.portrait-inner,
.panel {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.portrait-inner {
  justify-content: space-between;
}

.panel {
  min-height: 352px;
  justify-content: flex-end;
  gap: 8px;
}

.media-mark {
  position: absolute;
  right: -24px;
  bottom: -16px;
  width: 280px;
  height: 280px;
  color: var(--secondary);
  opacity: 0.22;
  pointer-events: none;
}

.portrait-name {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.portrait-meta {
  font-size: 14px;
  line-height: 1.45;
  color: var(--on-surface-dark-muted);
  max-width: 18rem;
}

.ring {
  width: 120px;
  height: 120px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px;
  color: var(--on-surface-dark);
}

@media (max-width: 900px) {
  .hero {
    padding: var(--space-xl) 0;
  }

  .hero-grid,
  .split,
  .cards-3,
  .cards-4,
  .quote-grid,
  .cluster-grid {
    grid-template-columns: 1fr !important;
  }

  .portrait,
  .portrait-inner {
    min-height: 280px;
  }

  .panel {
    min-height: 280px;
  }
}

/* Proof / logo wall */
.proof {
  border-block: 1px solid var(--border);
  background: var(--surface-subtle);
  padding: 24px 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.proof-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  will-change: transform;
  padding-inline: 24px;
}

.proof-item {
  display: grid;
  place-items: center;
  height: 40px;
  flex: 0 0 auto;
}

.proof-item img {
  height: 32px;
  width: auto;
  max-width: 144px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.proof-item:hover img {
  filter: none;
  opacity: 1;
}

/* Cards — 12px, tonal, 1px border, no shadow */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: grid;
  gap: 12px;
  min-height: 100%;
  text-decoration: none;
  color: var(--on-surface);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  border-color: var(--primary);
  background: var(--surface-subtle);
}

.card .num {
  font-variant-numeric: tabular-nums;
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.card h3 {
  font-size: 24px;
}

.card p,
.muted {
  color: var(--on-surface-muted);
}

.quote-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 16px;
}

.quote {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  display: grid;
  gap: 24px;
  align-content: space-between;
  border: 1px solid var(--border);
}

.quote blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.quote footer {
  display: grid;
  gap: 4px;
  font-size: 14px;
}

.quote footer strong {
  font-weight: 700;
}

.quote .lang {
  justify-self: start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--primary-stronger);
  background: var(--primary-soft);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  height: 28px;
  display: inline-flex;
  align-items: center;
}

.cred-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.cred {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease);
}

.cred::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: 4px;
  background: var(--primary);
  transform: translateX(-50%) scaleX(0.16);
  transform-origin: center;
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}

.cred:hover,
.cred:focus-within {
  border-color: var(--primary);
  transform: translateY(-10px);
}

.cred:hover::before,
.cred:focus-within::before {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

.cred-icon {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin-bottom: 12px;
  border-radius: var(--radius-full);
  background: var(--primary-soft);
  color: var(--primary);
  transition: transform 0.45s var(--ease);
}

.cred:hover .cred-icon,
.cred:focus-within .cred-icon {
  transform: scale(1.1) rotate(5deg);
}

.cred-icon svg {
  width: 32px;
  height: 32px;
}

.cred-label {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--on-surface);
}

.cred-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--on-surface-muted);
}

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

@media (max-width: 640px) {
  .cred-grid {
    gap: 16px;
  }

  .cred {
    padding: 24px 16px;
  }
}

/* Dark authority band */
.principles,
.band-dark {
  background: var(--surface-dark);
  color: var(--on-surface-dark);
}

.principles .kicker,
.band-dark .kicker {
  color: var(--primary);
}

.principles .kicker::before,
.band-dark .kicker::before {
  background: var(--primary);
}

.principles .section-head h2 {
  max-width: 12ch;
}

.principle {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--border-dark);
}

.principle .n {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
}

.principle h3 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 8px;
}

.principle p {
  color: var(--on-surface-dark-muted);
  max-width: var(--measure);
}

.principles .steps {
  max-width: 44rem;
}

.principles .steps li span {
  color: var(--on-surface-dark-muted);
}

.principles .steps li::before {
  color: var(--primary);
}

.card-on-dark {
  background: var(--surface-dark-raised);
  color: var(--on-surface-dark);
  border-color: var(--border-dark);
}

.card-on-dark:hover {
  background: var(--primary-soft-dark);
  border-color: var(--primary);
}

.card-on-dark p,
.card-on-dark .muted {
  color: var(--on-surface-dark-subtle);
}

/* Omar band */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.panel .kicker {
  color: var(--primary);
}

.panel .portrait-meta {
  max-width: 22rem;
}

.panel .portrait-name {
  margin-top: 8px;
}

.for-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.for-card {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
}

.for-card h3 {
  font-size: 18px;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  margin-bottom: 8px;
}

.link-next {
  color: var(--primary-stronger);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.link-next:hover {
  text-decoration: underline;
}

/* Contact */
.contact-band {
  background: var(--primary-soft);
}

.form {
  display: grid;
  gap: 16px;
  max-width: 34rem;
}

.form label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--on-surface-muted);
}

.form input,
.form textarea,
.form select {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--on-surface);
  border-radius: var(--radius-sm);
  padding: 12px;
  height: var(--control);
  outline: none;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

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

.form input:focus,
.form textarea:focus,
.form select:focus {
  border-color: var(--focus);
}

.form-success {
  display: none;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--surface-dark-raised);
  color: var(--on-surface-dark);
}

.form.is-sent .form-success {
  display: block;
}

.form.is-sent .form-fields {
  display: none;
}

/* Footer */
.site-footer {
  padding: 32px 0 24px;
  border-top: 1px solid var(--border);
  color: var(--on-surface-muted);
  font-size: 14px;
}

.site-footer a {
  color: var(--on-surface-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--primary-stronger);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1.4fr) minmax(200px, 1fr);
  align-items: center;
  gap: 24px;
}

.page-hero {
  padding: var(--space-3xl) 0 var(--space-xl);
}

.page-hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  max-width: 14ch;
  margin: 16px 0 16px;
}

.cluster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.list {
  margin: 0;
  padding-left: 18px;
  color: var(--on-surface-muted);
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--display);
  color: var(--primary-strong);
  font-size: 18px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(256px, 1fr));
  gap: 16px;
}

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

  .principle {
    grid-template-columns: 56px 1fr;
  }
}

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

  .cred,
  .cred::before,
  .cred-icon {
    transition: none;
  }

  .cred:hover,
  .cred:focus-within {
    transform: none;
  }

  .cred:hover .cred-icon,
  .cred:focus-within .cred-icon {
    transform: none;
  }
}

/* WordPress extras: blueprint look with SITE.md nav */

:root {
  --display: "Outfit", sans-serif;
  --sans: "Manrope", sans-serif;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

#main {
  flex: 1 0 auto;
}

.site-header,
.site-footer {
  flex-shrink: 0;
}

.site-footer {
  margin-top: auto;
}

html,
body,
p,
li,
a,
.lede,
.muted,
.kicker,
.btn,
.nav,
.quote,
.quote footer,
.entry,
.portrait-meta,
input,
textarea,
button {
  font-family: var(--sans);
}

h1,
h2,
h3,
.display {
  font-family: var(--display);
  font-weight: 400;
}

.quote blockquote,
.principle .n,
.steps li::before,
.card .num {
  font-family: var(--sans);
  letter-spacing: 0;
}

.portrait-name,
.principle h3,
.section-head h2,
.hero h1,
.page-hero h1,
.card h3 {
  font-family: var(--display);
  font-weight: 400;
}

.cred-label {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: 160px;
}

.footer-brand {
  display: block;
  justify-self: start;
  line-height: 0;
}

.footer-logo {
  display: block;
  height: 80px;
  width: auto;
  max-width: min(220px, 100%);
}

.footer-claim {
  margin: 0;
  justify-self: center;
  max-width: 28ch;
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--on-surface-muted);
}

.footer-meta {
  display: grid;
  gap: 12px;
  justify-self: end;
  justify-items: end;
}

.footer-meta p {
  margin: 0;
  text-align: right;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--on-surface);
  background: var(--surface);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-social-btn:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-stronger);
}

.footer-social-btn svg {
  display: block;
}

@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .footer-brand,
  .footer-claim,
  .footer-meta {
    justify-self: center;
  }

  .footer-meta {
    justify-items: center;
  }

  .footer-meta p {
    text-align: center;
  }
}

body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--on-surface-muted);
  cursor: pointer;
}

.search-btn:hover,
.search-btn:focus-visible {
  color: var(--primary-stronger);
  border-color: var(--primary);
  background: var(--primary-soft);
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-content: start;
  justify-items: center;
  padding: 18vh 24px 24px;
  background: var(--overlay);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease-out, visibility 0.3s;
}

.search-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.search-dialog {
  width: min(100%, 640px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  transform: translateY(-12px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-overlay.is-open .search-dialog {
  transform: none;
}

.site-search {
  margin: 0;
}

.site-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.site-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 6px 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
}

.site-search-row:focus-within {
  border-color: var(--primary);
  background: var(--surface);
}

.site-search-icon {
  flex-shrink: 0;
  color: var(--on-surface-subtle);
}

.site-search input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--on-surface);
  font: inherit;
  font-size: 16px;
  outline: none;
  appearance: none;
}

.site-search input[type="search"]::-webkit-search-decoration,
.site-search input[type="search"]::-webkit-search-cancel-button {
  appearance: none;
}

.site-search-submit {
  flex-shrink: 0;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--primary-strong);
  color: var(--on-primary);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.site-search-submit:hover,
.site-search-submit:focus-visible {
  background: var(--primary-stronger);
}

body.search-open {
  overflow: hidden;
}

@media (max-width: 820px) {
  .search-overlay {
    padding-top: 12vh;
  }
}

.header-inner .nav {
  margin-left: auto;
}

.nav .menu,
.nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav .menu a,
.nav ul a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--on-surface-muted);
  padding: 8px 16px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
}

.nav .menu a:hover,
.nav .current-menu-item > a,
.nav .current_page_item > a,
.nav a[aria-current="page"] {
  color: var(--primary-stronger);
}

.nav .menu-item-has-children {
  position: relative;
}

.nav .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  min-width: 240px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  z-index: 30;
}

.nav .menu-item-has-children:hover > .sub-menu,
.nav .menu-item-has-children:focus-within > .sub-menu {
  display: grid;
}

.nav .sub-menu a {
  height: 40px;
  width: 100%;
}

.nav .sub-menu a:hover {
  background: var(--surface-subtle);
}

.nav-cta {
  color: var(--primary-stronger) !important;
}

@media (max-width: 820px) {
  .nav .menu,
  .nav ul {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .nav .sub-menu {
    position: static;
    display: grid;
    background: transparent;
    border: 0;
    padding: 0 0 0 12px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition:
      max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.25s ease-out,
      transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav .menu-item-has-children:hover > .sub-menu,
  .nav .menu-item-has-children:focus-within > .sub-menu {
    display: grid;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
  }

  .nav .menu-item-has-children.is-expanded > .sub-menu,
  .nav .menu-item-has-children.is-expanded:hover > .sub-menu,
  .nav .menu-item-has-children.is-expanded:focus-within > .sub-menu {
    max-height: 280px;
    opacity: 1;
    transform: none;
    padding: 0 0 8px 12px;
    pointer-events: auto;
  }

  .nav .menu-item-has-children > a {
    justify-content: space-between;
  }

  .nav .menu-item-has-children > a::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
  }

  .nav .menu-item-has-children.is-expanded > a::after {
    transform: rotate(-135deg);
  }

  .nav .menu a,
  .nav ul a {
    color: var(--on-surface-muted);
  }

  .nav .sub-menu a {
    min-height: 40px;
    height: auto;
    font-weight: 400;
  }

  .nav .menu a:hover,
  .nav .current-menu-item > a,
  .nav .current_page_item > a {
    background: var(--surface-subtle);
    color: var(--primary-stronger);
  }
}

.entry {
  display: grid;
  gap: 16px;
  max-width: var(--measure);
  color: var(--on-surface-muted);
  font-size: 18px;
  line-height: 1.55;
}

.entry h2 {
  color: var(--on-surface);
}

.entry h2,
.entry h3,
.entry .wp-block-heading {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--on-surface);
}

.entry p,
.entry .wp-block-paragraph {
  margin: 0;
}

.entry p:empty {
  display: none;
}

.entry .wp-block-image,
.entry-hero-media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.entry .wp-block-image img,
.entry-hero-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

.entry figcaption {
  font-size: 14px;
  color: var(--on-surface-subtle);
  margin-top: 8px;
}

.post-hero {
  position: relative;
  min-height: min(72vh, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--surface-dark);
  color: var(--on-surface-dark);
}

.post-hero-media {
  position: absolute;
  inset: -18% 0;
  z-index: 0;
}

.post-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
}

.post-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--overlay);
}

.post-hero-copy {
  position: relative;
  z-index: 2;
  padding: var(--space-3xl) 0 var(--space-2xl);
  max-width: var(--measure);
}

.post-hero .kicker {
  color: var(--primary);
}

.post-hero .kicker::before {
  background: var(--primary);
}

.post-hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  max-width: 16ch;
  margin: 16px 0;
  color: var(--on-surface-dark);
}

.post-hero .muted {
  margin-top: 16px;
  color: var(--on-surface-dark-subtle);
}

.post-hero .rule {
  background: var(--primary);
}

.post-body {
  padding-top: var(--space-3xl);
}

.post-body .entry {
  margin-inline: auto;
}

.post-body .entry > p:first-child,
.post-body .entry > .wp-block-paragraph:first-of-type {
  font-size: 20px;
  color: var(--on-surface);
  line-height: 1.5;
}

.card-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface-muted);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.panel-photo-wrap {
  flex: 0 0 auto;
  aspect-ratio: 4 / 5;
  min-height: 0;
  max-height: 420px;
  margin: 0 0 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.panel-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.split-aside {
  align-items: start;
}

.split-aside .panel {
  height: auto;
  align-self: start;
  justify-content: flex-start;
  position: sticky;
  top: calc(var(--header) + 24px);
}

body.admin-bar .split-aside .panel {
  top: calc(var(--header) + 56px);
}

@media (max-width: 900px) {
  .split-aside .panel {
    position: static;
    top: auto;
  }
}

.post-list {
  display: grid;
  gap: 16px;
}

.empty {
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  color: var(--on-surface-subtle);
}

.competency-list {
  columns: 2;
  gap: 32px;
  margin: 0;
  padding-left: 1.25em;
  color: var(--on-surface-muted);
}

@media (max-width: 700px) {
  .competency-list {
    columns: 1;
  }
}

.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.proof-band {
  background: var(--surface-subtle);
  border-block: 1px solid var(--border);
  padding-top: var(--space-xl);
}

.proof-band .section-head {
  margin-bottom: var(--space-md);
}

.proof-band .proof {
  border: 0;
  background: transparent;
  padding: 8px 0 24px;
}

@media (max-width: 900px) {
  .cards-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .cards-4 {
    grid-template-columns: 1fr;
  }
}

.quotes-band {
  background: var(--surface-subtle);
  border-block: 1px solid var(--border);
}

.quotes-band .section-head {
  max-width: none;
}

.quote-stage {
  display: grid;
  gap: 24px;
}

.quote-stage:focus {
  outline: none;
}

.quote-stage:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: var(--radius-md);
}

.quote-frame {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  overflow: hidden;
}

.quote-stage .quote-frame {
  display: grid;
}

.quote-slide {
  display: none;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: center;
  min-height: 280px;
}

.quote-slide.is-active {
  display: grid;
}

.quote-stage .quote-slide {
  grid-area: 1 / 1;
  display: grid;
  visibility: hidden;
  pointer-events: none;
}

.quote-stage .quote-slide.is-active {
  visibility: visible;
  pointer-events: auto;
}

.quote-all {
  margin: 8px 0 0;
}

.quote-media {
  margin: 0;
  width: 280px;
  height: 280px;
  justify-self: center;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--primary);
  padding: 6px;
}

.quote-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: var(--radius-full);
}

.quote-copy {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
}

.quote-mark {
  font-family: var(--display);
  font-size: 56px;
  line-height: 0.7;
  color: var(--primary);
}

.quote-copy blockquote {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.55;
  color: var(--on-surface-muted);
  max-width: 40rem;
}

.quote-person {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.quote-person strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.quote-person .muted {
  display: block;
  font-size: 14px;
  line-height: 1.45;
}

.quote-person .lang {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--primary-stronger);
  background: var(--primary-soft);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  height: 28px;
  display: inline-flex;
  align-items: center;
}

.quote-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
}

.quote-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 5px;
  background: var(--primary-soft);
  overflow: hidden;
  opacity: 0;
}

.quote-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  backface-visibility: hidden;
}

.quote-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px;
  flex: 1;
  min-width: 0;
  scrollbar-width: thin;
}

.quote-thumb {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  opacity: 0.38;
  transform: scale(1);
  transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.quote-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.quote-thumb:hover {
  opacity: 0.85;
  transform: scale(1.06);
}

.quote-thumb.is-active {
  opacity: 1;
  border-color: var(--primary);
  transform: scale(1.1);
}

.quote-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.quote-nav {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--on-surface);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.quote-nav:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-stronger);
  transform: translateY(-1px);
}

.quote-nav:active {
  transform: translateY(0);
}

.quote-count {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--on-surface-subtle);
  min-width: 4.5rem;
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.quote-count b {
  display: inline-block;
  min-width: 1.35em;
}

@media (max-width: 800px) {
  .quote-slide.is-active {
    grid-template-columns: 1fr;
    min-height: 0;
    justify-items: center;
  }

  .quote-media {
    width: 200px;
    height: 200px;
  }

  .quote-mark {
    font-size: 40px;
  }
}

.quotes-archive {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
