/* Serviam Rex: black, cream and gold, taken from the logo. */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/manrope.a30ddcd349.woff2) format('woff2');
}
@font-face {
  font-family: 'Michroma';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/michroma.754fdb31c9.woff2) format('woff2');
}

:root {
  --bg: #0e100f;
  --bg-raised: #15171a;
  --surface: #1a1c1f;
  --surface-2: #212428;
  --line: rgba(236, 232, 224, 0.12);
  --line-strong: rgba(236, 232, 224, 0.22);
  --text: #ece8e0;
  --muted: #aaa59b;
  --gold: #d4b484;
  --gold-bright: #e6cc9f;
  --gold-deep: #7a5a24;
  --paper: #f3efe7;
  --ink: #16181a;
  --ink-muted: #4e4a43;
  --danger: #f2a39b;
  --success: #a7d7b0;

  --display: 'Michroma', 'Eurostile', 'Arial Narrow', sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --section: clamp(64px, 9vw, 120px);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--gold-bright);
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1,
h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.3;
}
h1 {
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.1rem);
}
h2 {
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem);
}
h3 {
  font-size: 1.25rem;
}
p {
  margin: 0 0 1.1em;
}
ul,
ol {
  margin: 0 0 1.1em;
  padding-left: 1.2em;
}
li + li {
  margin-top: 0.35em;
}
strong {
  color: #fff;
  font-weight: 700;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.narrow {
  max-width: 760px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 8px;
  font-weight: 700;
}
.skip-link:focus {
  top: 12px;
}

/* ---- Eyebrows, rules and type helpers ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: currentColor;
}
.lead {
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem);
  color: var(--text);
  line-height: 1.6;
}
.muted {
  color: var(--muted);
}
.gold {
  color: var(--gold);
}

/* ---- Buttons ---- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font: 700 0.95rem/1.2 var(--body);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}
.button:hover {
  background: var(--gold-bright);
  color: var(--ink);
  transform: translateY(-1px);
}
.button-ghost {
  background: transparent;
  color: var(--gold);
}
.button-ghost:hover {
  background: rgba(212, 180, 132, 0.12);
  color: var(--gold-bright);
}
.button-small {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 0.875rem;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
}
.arrow-link::after {
  content: '\2192';
  transition: transform 0.2s;
}
.arrow-link:hover::after {
  transform: translateX(4px);
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 16, 15, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}
.brand:hover {
  color: #fff;
}
.brand-crown {
  width: 40px;
  height: auto;
}
.brand-name {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav ul {
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav li + li {
  margin: 0;
}
.site-nav ul a {
  position: relative;
  padding: 6px 0;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}
.site-nav ul a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.site-nav ul a:hover::after,
.site-nav ul a[aria-current='page']::after {
  transform: scaleX(1);
}
.site-nav ul a[aria-current='page'] {
  color: var(--gold);
}
.nav-toggle {
  display: none;
}

@media (max-width: 880px) {
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -8px;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
  }
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.25s;
  }
  .nav-toggle-bars {
    position: relative;
  }
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    content: '';
    position: absolute;
    left: 0;
  }
  .nav-toggle-bars::before {
    top: -7px;
  }
  .nav-toggle-bars::after {
    top: 7px;
  }
  .nav-toggle[aria-expanded='true'] .nav-toggle-bars {
    background: transparent;
  }
  .nav-toggle[aria-expanded='true'] .nav-toggle-bars::before {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded='true'] .nav-toggle-bars::after {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Without JavaScript the links simply wrap below the brand. */
  .header-inner {
    flex-wrap: wrap;
  }
  .site-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding-bottom: 14px;
  }
  .site-nav ul {
    flex-wrap: wrap;
    gap: 6px 20px;
  }
  .js .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 22px;
  }
  .js .site-nav.is-open {
    display: flex;
  }
  .js .site-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .js .site-nav ul a {
    display: block;
    padding: 14px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--line);
  }
  .js .site-nav ul a::after {
    display: none;
  }
  .js .site-nav .button {
    margin-top: 18px;
  }
}

/* ---- Sections ---- */
.section {
  padding: var(--section) 0;
}
.section-tight {
  padding: calc(var(--section) * 0.6) 0;
}
.section-raised {
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-paper {
  background: var(--paper);
  color: var(--ink);
}
.section-paper strong {
  color: var(--ink);
}
.section-paper .eyebrow,
.section-paper a {
  color: var(--gold-deep);
}
.section-paper .muted {
  color: var(--ink-muted);
}
.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head p:last-child {
  margin-bottom: 0;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head.center .eyebrow::after {
  content: '';
  width: 32px;
  height: 1px;
  background: currentColor;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 120px);
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 55% 50% at 50% 28%, rgba(212, 180, 132, 0.13), transparent 72%);
}
.hero-logo {
  width: min(560px, 100%);
  margin: 0 auto clamp(36px, 5vw, 56px);
}
.hero-copy {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.hero-copy .lead {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: #d9d4ca;
}
.hero-copy .button-row {
  justify-content: center;
}
.page-hero {
  padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse 60% 80% at 15% 0%, rgba(212, 180, 132, 0.1), transparent 70%);
}
.page-hero .lead {
  max-width: 760px;
}

/* ---- Proof strip ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stats li {
  margin: 0;
  padding: 28px 24px;
  background: var(--bg);
}
.stat-value {
  display: block;
  margin-bottom: 6px;
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem);
  color: var(--gold);
  line-height: 1.2;
}
.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
@media (max-width: 880px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 460px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

/* ---- Cards and grids ---- */
.grid {
  display: grid;
  gap: 20px;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 980px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 680px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    border-color 0.25s,
    transform 0.25s;
}
.card:hover {
  border-color: rgba(212, 180, 132, 0.45);
}
.card h3 {
  margin-bottom: 0.5em;
}
.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}
.card .arrow-link {
  margin-top: auto;
  padding-top: 18px;
}
.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border: 1px solid rgba(212, 180, 132, 0.4);
  border-radius: 12px;
  color: var(--gold);
}
.card-icon svg {
  width: 26px;
  height: 26px;
}
.card-num {
  font-family: var(--display);
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.check-list {
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding-left: 26px;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
.section-paper .check-list li::before {
  border-color: var(--gold-deep);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.tags li {
  margin: 0;
  padding: 4px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

/* ---- Split layouts ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.split-wide {
  grid-template-columns: 1.2fr 1fr;
}
.split-top {
  align-items: start;
}
@media (max-width: 880px) {
  .split,
  .split-wide {
    grid-template-columns: 1fr;
  }
}

/* ---- Approach steps ---- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}
.steps li::before {
  counter-increment: step;
  content: '0' counter(step);
  display: block;
  margin-bottom: 14px;
  font-family: var(--display);
  color: var(--gold);
}
.steps h3 {
  font-size: 1.1rem;
}
.steps p {
  color: var(--muted);
  margin: 0;
}
@media (max-width: 880px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---- Case studies ---- */
.case {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(32px, 5vw, 56px) 0;
  border-top: 1px solid var(--line);
}
.case:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.case-meta .eyebrow {
  margin-bottom: 12px;
}
.case-meta h2 {
  font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem);
}
.case-meta dl {
  margin: 20px 0 0;
  font-size: 0.92rem;
}
.case-meta dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.case-meta dd {
  margin: 2px 0 14px;
}
.case-body h3 {
  margin-top: 1.4em;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.case-body h3:first-child {
  margin-top: 0;
}
.case-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.case-results li {
  margin: 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
}
.case-results strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 4px;
}
@media (max-width: 880px) {
  .case {
    grid-template-columns: 1fr;
  }
  .case-results {
    grid-template-columns: 1fr;
  }
}

/* ---- Work index on the home page ---- */
.work-card .card-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

/* ---- Book ---- */
.book-figure {
  margin: 0;
  padding: clamp(18px, 3vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.section-paper .book-figure {
  background: #fff;
  border-color: rgba(22, 24, 26, 0.1);
}
.book-figure figcaption {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}
.section-paper .book-figure figcaption {
  color: var(--ink-muted);
}
.model-svg text {
  font-family: var(--body);
}
.book-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.book-badges li {
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(212, 180, 132, 0.14);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
}
.section-paper .book-badges li {
  background: rgba(122, 90, 36, 0.1);
  color: var(--gold-deep);
}

/* ---- Quote ---- */
.pull-quote {
  margin: 0;
  padding: clamp(28px, 4vw, 44px);
  border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, rgba(212, 180, 132, 0.08), transparent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.pull-quote p {
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  line-height: 1.5;
  margin: 0;
}
.pull-quote footer {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---- About ---- */
.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}
.timeline li {
  position: relative;
  margin: 0;
  padding: 0 0 32px 32px;
  border-left: 1px solid var(--line-strong);
}
.timeline li:last-child {
  padding-bottom: 0;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--bg);
}
.timeline .when {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.timeline h3 {
  margin: 4px 0 6px;
  font-size: 1.12rem;
}
.timeline p {
  margin: 0;
  color: var(--muted);
}
.cred-list {
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 32px;
}
.cred-list li {
  break-inside: avoid;
  padding: 10px 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 680px) {
  .cred-list {
    columns: 1;
  }
}
.portrait-card {
  padding: clamp(28px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.portrait-card img {
  width: 120px;
  margin-bottom: 22px;
}

/* ---- CTA band ---- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 96px) 0;
  text-align: center;
  background:
    radial-gradient(ellipse 50% 90% at 50% 100%, rgba(212, 180, 132, 0.16), transparent 70%),
    var(--bg-raised);
  border-top: 1px solid var(--line);
}
.cta-band img {
  width: 84px;
  margin: 0 auto 28px;
}
.cta-band p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  color: #d9d4ca;
}
.cta-band .button-row {
  justify-content: center;
}

/* ---- Contact form ---- */
.form {
  display: grid;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 700;
}
.field .optional {
  color: var(--muted);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field textarea {
  min-height: 160px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 180, 132, 0.22);
}
.field [aria-invalid='true'] {
  border-color: var(--danger);
}
.field-error {
  margin: 6px 0 0;
  color: var(--danger);
  font-size: 0.88rem;
}
.field-error:empty {
  display: none;
}
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
}
.form-status:empty {
  display: none;
}
.form-status.is-success {
  border-color: rgba(167, 215, 176, 0.5);
  background: rgba(167, 215, 176, 0.08);
  color: var(--success);
}
.form-status.is-error {
  border-color: rgba(242, 163, 155, 0.5);
  background: rgba(242, 163, 155, 0.08);
  color: var(--danger);
}
.form-status a {
  color: inherit;
}
.form-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}
.contact-aside {
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-aside h2 {
  font-size: 1.15rem;
}

/* ---- Footer ---- */
.site-footer {
  padding: clamp(48px, 6vw, 72px) 0 32px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 32px;
}
@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.footer-brand img {
  width: 56px;
  margin-bottom: 14px;
}
.footer-name {
  margin: 0;
  font-family: var(--display);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.footer-tagline {
  margin: 4px 0 0;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.footer-heading {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-footer ul {
  padding: 0;
  list-style: none;
}
.site-footer a {
  color: var(--text);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--gold);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-legal p {
  margin: 0;
}

/* ---- Reveal on scroll (only when JavaScript runs and motion is welcome) ---- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity 0.7s ease,
      transform 0.7s ease;
  }
  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ---- 404 ---- */
.not-found {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.not-found img {
  width: 120px;
  margin: 0 auto 28px;
}

@media print {
  .site-header,
  .site-footer,
  .cta-band,
  .button-row {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}

/* ---- The Ice Mold model diagram (HTML, so it reflows at any width) ---- */
.model {
  container-type: inline-size;
  display: grid;
  gap: 12px;
  color: #f3efe7;
  font-size: 0.9rem;
  line-height: 1.35;
}
.model-label {
  margin: 0 0 8px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-paper .model-label {
  color: var(--ink-muted);
}
.model-grid,
.model-export-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.m-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 84px;
  padding: 14px 16px;
  border-radius: 10px;
}
.m-box strong {
  color: inherit;
  font-size: 0.98rem;
}
.m-box span {
  opacity: 0.85;
  font-size: 0.82rem;
}
.m-ci {
  background: #16181a;
  border: 1px solid rgba(236, 232, 224, 0.16);
}
.m-virtues {
  background: #2b2e33;
}
.m-skills {
  background: #6e5020;
}
.m-behaviors {
  background: #8a6730;
}
.m-leadership {
  grid-column: 1 / -1;
  background: var(--gold);
  color: var(--ink);
}
.m-influence {
  background: #16181a;
  border: 1px solid rgba(236, 232, 224, 0.16);
}
.m-outputs {
  background: #3a3d42;
}
.model-flow {
  display: none;
}
@container (min-width: 640px) {
  .model {
    grid-template-columns: 1fr 28px 0.62fr;
    align-items: stretch;
  }
  .model-export-grid {
    grid-template-columns: 1fr;
    height: calc(100% - 26px);
  }
  .model-flow {
    display: block;
    align-self: center;
    width: 0;
    height: 0;
    margin: 26px auto 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 16px solid var(--gold);
  }
}
.h3-like {
  font-family: var(--body);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
