/* =========================================================
   Christopher Wyse — Corporate Affairs Microsite
   Design System: Framework-led, institutional, boardroom
   ========================================================= */

:root {
  --ink:          #0B1E3F;
  --ink-deep:     #05122A;
  --accent:       #8E6F3A;
  --accent-dark:  #6B5229;
  --paper:        #F6F2EB;
  --paper-alt:    #EEE8DD;
  --line:         #C9BFA8;
  --line-soft:    #E3DCCC;
  --text:         #141A26;
  --text-soft:    #3B4458;
  --muted:        #5C6578;
  --white:        #FFFFFF;

  --font-serif:   'Fraunces', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --container:    1280px;
  --gutter:       28px;
  --rail:         64px;

  --radius-sm:    2px;
  --radius-md:    4px;

  --shadow-fine:  0 1px 2px rgba(11, 30, 63, 0.06), 0 2px 12px rgba(11, 30, 63, 0.04);
  --shadow-mid:   0 4px 24px rgba(11, 30, 63, 0.08);

  --ease:         cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  font-weight: 400;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 180ms var(--ease); }
a:hover { color: var(--accent); }

/* ============ TYPOGRAPHY ============ */
.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.eyebrow-ink { color: var(--ink); }

h1, h2, h3, h4 { margin: 0; font-family: var(--font-serif); font-weight: 400; color: var(--ink); letter-spacing: -0.015em; }
h1 { font-size: clamp(38px, 4.8vw, 64px); line-height: 1.05; }
h2 { font-size: clamp(30px, 3.3vw, 44px); line-height: 1.1; }
h3 { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.25; }
h4 { font-size: 17px; line-height: 1.3; font-weight: 500; }

p { margin: 0 0 1em; color: var(--text-soft); }
p.lead { font-size: 18px; line-height: 1.65; color: var(--text); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.rule-soft { height: 1px; background: var(--line-soft); border: 0; margin: 0; }
.rule-dbl { height: 3px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 1px 0; margin: 0; background: transparent; }

/* ============ LAYOUT ============ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--rail);
}
@media (max-width: 900px) { .container { padding: 0 24px; } }

.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
@media (max-width: 900px) { .grid-12 { grid-template-columns: repeat(6, 1fr); gap: 16px; } }

.section { padding: 110px 0; }
.section-sm { padding: 72px 0; }
@media (max-width: 900px) { .section { padding: 72px 0; } .section-sm { padding: 56px 0; } }

/* ============ NAVIGATION ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 242, 235, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 var(--rail);
  max-width: none;
}
.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-brand .name {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--ink);
  letter-spacing: 0.02em;
  font-weight: 500;
}
.nav-brand .tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.nav-menu {
  display: flex;
  list-style: none;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--text);
  letter-spacing: 0.02em;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}
.nav-menu a::before {
  content: attr(data-num);
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-right: 6px;
  opacity: 0.7;
  position: relative;
  top: -4px;
}
.nav-menu a.active,
.nav-menu a:hover { color: var(--ink); }
.nav-menu a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--accent);
}
.nav-cta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 10px 18px;
  transition: all 180ms var(--ease);
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 32px; height: 32px; padding: 0; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px auto; transition: all 200ms var(--ease); }

@media (max-width: 1080px) {
  .nav-menu { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-inner { padding: 0 24px; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--paper);
    padding: 24px;
    gap: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-menu.open li { border-bottom: 1px solid var(--line-soft); }
  .nav-menu.open a { padding: 16px 0; display: block; font-size: 14px; }
}

/* ============ HERO / OPENING ============ */
.opening {
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.opening .meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 64px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 18px;
}
.opening .meta .ref { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

.opening h1 { margin-top: 16px; }
.opening h1 em { font-style: italic; color: var(--accent); font-weight: 300; }

/* ============ FRAMEWORK PILLARS ============ */
.pillars {
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--line-soft);
}
.pillar {
  padding: 48px 28px 56px;
  border-right: 1px solid var(--line-soft);
  background: var(--paper);
  position: relative;
  transition: background 300ms var(--ease);
}
.pillar:hover { background: var(--white); }
.pillar .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 40px;
  display: block;
}
.pillar h3 {
  font-size: 22px;
  margin-bottom: 16px;
  min-height: 56px;
}
.pillar p {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 32px;
}
.pillar .arrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pillar .arrow::after { content: '→'; transition: transform 200ms var(--ease); }
.pillar:hover .arrow::after { transform: translateX(4px); }

@media (max-width: 900px) {
  .pillar-grid { grid-template-columns: 1fr; border-left: 0; }
  .pillar { border-bottom: 1px solid var(--line-soft); border-right: 0; }
}

/* ============ DATA BAND (Credentials) ============ */
.databand {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 0;
}
.databand .grid-12 { gap: 24px; }
.datacard { grid-column: span 3; padding-right: 16px; border-left: 1px solid rgba(246,242,235,0.25); padding-left: 24px; }
.datacard .k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.22em; color: var(--accent); display: block; margin-bottom: 12px; text-transform: uppercase; }
.datacard .v { font-family: var(--font-serif); font-size: 30px; font-weight: 300; line-height: 1.1; letter-spacing: -0.01em; }
.datacard .sub { font-size: 12.5px; color: rgba(246,242,235,0.7); margin-top: 8px; }
@media (max-width: 900px) { .datacard { grid-column: span 6; } }

/* ============ DOSSIER (Two-column with sidebar) ============ */
.dossier { display: grid; grid-template-columns: 1fr 3fr; gap: 80px; align-items: start; }
.dossier-side { position: sticky; top: 104px; }
.dossier-side .label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.22em; color: var(--accent); display: block; margin-bottom: 14px; text-transform: uppercase; }
.dossier-side h2 { font-size: 34px; line-height: 1.1; }
.dossier-main p { font-size: 15.5px; line-height: 1.8; color: var(--text-soft); max-width: 640px; }
.dossier-main h3 { margin: 40px 0 14px; font-size: 22px; }
.dossier-main h3:first-child { margin-top: 0; }
@media (max-width: 900px) {
  .dossier { grid-template-columns: 1fr; gap: 32px; }
  .dossier-side { position: static; }
}

/* ============ PORTRAIT FRAMES ============ */
.portrait {
  background: var(--paper-alt);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line-soft);
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.portrait-tall { aspect-ratio: 3/4; }
.portrait-wide { aspect-ratio: 16/10; }
.portrait-square { aspect-ratio: 1/1; }

/* Special class: guarantee no face cropping for hero portrait */
.portrait-safe img { object-fit: cover; object-position: 50% 20%; }

/* ============ SPLIT HERO (home) ============ */
.split-hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  min-height: 82vh;
  border-bottom: 1px solid var(--line-soft);
}
.split-hero-text {
  padding: 96px var(--rail) 96px var(--rail);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line-soft);
}
.split-hero-text .ref { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.22em; color: var(--muted); text-transform: uppercase; margin-bottom: 48px; }
.split-hero-text h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.02; max-width: 640px; }
.split-hero-text h1 em { font-style: italic; color: var(--accent); font-weight: 300; }
.split-hero-text .sub { margin-top: 32px; max-width: 520px; color: var(--text-soft); font-size: 17px; line-height: 1.65; }
.split-hero-text .credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 56px;
  max-width: 560px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
}
.split-hero-text .credentials div { font-size: 13px; line-height: 1.5; }
.split-hero-text .credentials b { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; font-weight: 500; }
.split-hero-image { background: var(--paper-alt); overflow: hidden; position: relative; }
.split-hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.split-hero-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11,30,63,0.12));
  pointer-events: none;
}
@media (max-width: 1080px) {
  .split-hero { grid-template-columns: 1fr; min-height: auto; }
  .split-hero-text { padding: 64px 24px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .split-hero-image { aspect-ratio: 4/5; }
}

/* ============ INLINE CITATION / STATEMENT ============ */
.statement {
  padding: 88px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper);
}
.statement blockquote {
  margin: 0;
  max-width: 920px;
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.35;
  color: var(--ink);
  font-weight: 300;
  letter-spacing: -0.01em;
}
.statement blockquote::before { content: '"'; color: var(--accent); font-size: 1.2em; margin-right: 6px; }
.statement .cite { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 32px; }

/* ============ INDEX LIST (Insights) ============ */
.index-list { border-top: 1px solid var(--line); }
.index-item {
  display: grid;
  grid-template-columns: 80px 1fr 200px 120px;
  gap: 32px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: padding 200ms var(--ease);
}
.index-item:hover { padding-left: 12px; background: var(--paper-alt); }
.index-item .no { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--accent); }
.index-item .title { font-family: var(--font-serif); font-size: 22px; color: var(--ink); line-height: 1.25; }
.index-item .tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; }
.index-item .date { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; color: var(--muted); text-align: right; }
@media (max-width: 900px) {
  .index-item { grid-template-columns: 40px 1fr; padding: 20px 0; }
  .index-item .tag, .index-item .date { display: none; }
}

/* ============ PRACTICE DETAIL GRID ============ */
.practice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.practice-cell { background: var(--paper); padding: 48px 40px; }
.practice-cell .num { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.22em; color: var(--accent); text-transform: uppercase; }
.practice-cell h4 { margin: 16px 0 14px; font-family: var(--font-serif); font-size: 22px; font-weight: 400; color: var(--ink); }
.practice-cell p { font-size: 14.5px; line-height: 1.65; color: var(--text-soft); }
@media (max-width: 900px) { .practice-grid { grid-template-columns: 1fr; } .practice-cell { padding: 32px 24px; } }

/* ============ FOOTER ============ */
.footer {
  background: var(--ink-deep);
  color: var(--paper);
  padding: 72px 0 28px;
}
.footer .f-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.footer h5 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; font-weight: 500; }
.footer p, .footer a { font-size: 13.5px; color: rgba(246,242,235,0.8); }
.footer a:hover { color: var(--paper); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; }
.f-brand .mark { font-family: var(--font-serif); font-size: 22px; color: var(--paper); letter-spacing: 0.02em; margin-bottom: 8px; }
.f-brand .role { font-size: 12.5px; color: rgba(246,242,235,0.6); line-height: 1.6; max-width: 300px; }

.socials { display: flex; gap: 14px; margin-top: 16px; }
.socials a {
  width: 34px; height: 34px;
  border: 1px solid rgba(246,242,235,0.25);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 200ms var(--ease);
  color: rgba(246,242,235,0.8);
}
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.socials svg { width: 14px; height: 14px; }

.f-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(246,242,235,0.15);
  font-size: 11.5px;
  color: rgba(246,242,235,0.55);
  letter-spacing: 0.04em;
}
.f-bottom a { color: var(--accent); }
.f-bottom a:hover { color: var(--paper); }
@media (max-width: 900px) {
  .footer .f-top { grid-template-columns: 1fr 1fr; }
  .f-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* ============ PASSWORD GATE ============ */
.gate {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper);
}
.gate-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px var(--rail);
}
.gate-brand { font-family: var(--font-serif); font-size: 22px; color: var(--ink); letter-spacing: 0.01em; }
.gate-brand span { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.22em; color: var(--muted); text-transform: uppercase; margin-top: 6px; font-weight: 500; }
.gate-form {
  max-width: 420px;
  width: 100%;
  margin: auto 0;
}
.gate-form .ref { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.22em; color: var(--accent); text-transform: uppercase; margin-bottom: 32px; }
.gate-form h1 { font-size: 44px; line-height: 1.1; margin-bottom: 20px; }
.gate-form p { color: var(--text-soft); font-size: 14.5px; max-width: 360px; margin-bottom: 40px; }
.gate-input-wrap { position: relative; border-bottom: 1px solid var(--ink); }
.gate-input-wrap label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.22em; color: var(--muted); text-transform: uppercase; display: block; margin-bottom: 10px; }
.gate-input-wrap input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 10px 0;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--ink);
  outline: none;
  letter-spacing: 0.15em;
}
.gate-submit {
  margin-top: 32px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: 16px 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  transition: background 180ms var(--ease);
}
.gate-submit:hover { background: var(--accent-dark); }
.gate-submit::after { content: '→'; }
.gate-error {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8B2518;
  opacity: 0;
  transition: opacity 200ms var(--ease);
}
.gate-error.show { opacity: 1; }
.gate-footer { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; }
.gate-image {
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.gate-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  opacity: 0.92;
}
.gate-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,18,42,0.1), rgba(5,18,42,0.5));
}
.gate-image .tag {
  position: absolute; bottom: 40px; left: 40px; right: 40px;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  z-index: 2;
  display: flex; justify-content: space-between;
}
@media (max-width: 900px) {
  .gate { grid-template-columns: 1fr; }
  .gate-image { aspect-ratio: 4/3; order: -1; }
  .gate-panel { padding: 40px 24px; }
}

/* ============ GALLERY ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.g-item { position: relative; overflow: hidden; background: var(--paper-alt); border: 1px solid var(--line-soft); }
.g-item img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
.g-item .cap { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px 20px; background: linear-gradient(0deg, rgba(5,18,42,0.75), transparent); color: var(--paper); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; }
.g-a { grid-column: span 7; aspect-ratio: 16/10; }
.g-b { grid-column: span 5; aspect-ratio: 16/10; }
.g-c { grid-column: span 5; aspect-ratio: 4/5; }
.g-d { grid-column: span 7; aspect-ratio: 4/5; }
.g-e { grid-column: span 12; aspect-ratio: 21/9; }
@media (max-width: 900px) {
  .g-a, .g-b, .g-c, .g-d, .g-e { grid-column: span 12; aspect-ratio: 4/3; }
}

/* ============ CONTACT ============ */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-info .group { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--line-soft); }
.contact-info .group:last-child { border-bottom: 0; }
.contact-info .label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.22em; color: var(--accent); text-transform: uppercase; display: block; margin-bottom: 14px; }
.contact-info .val { font-family: var(--font-serif); font-size: 22px; color: var(--ink); line-height: 1.3; }
.contact-info .val a { color: var(--ink); }
.contact-info .val a:hover { color: var(--accent); }

.form-field { display: flex; flex-direction: column; margin-bottom: 26px; }
.form-field label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; margin-bottom: 10px; }
.form-field input, .form-field textarea, .form-field select {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  outline: none;
  width: 100%;
  transition: border-color 180ms var(--ease);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-bottom-color: var(--ink); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-submit {
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: 16px 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms var(--ease);
  display: inline-flex; align-items: center; gap: 14px;
}
.form-submit:hover { background: var(--accent-dark); }
.form-submit::after { content: '→'; }
@media (max-width: 900px) { .contact-split { grid-template-columns: 1fr; gap: 40px; } }

/* ============ PAGE HEADER (uniform for inner pages) ============ */
.page-head {
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--line-soft);
}
.page-head .meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 40px;
}
.page-head .meta .ref,
.page-head .meta .tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.22em; color: var(--muted); text-transform: uppercase; }
.page-head h1 { max-width: 920px; }
.page-head h1 em { font-style: italic; color: var(--accent); font-weight: 300; }
.page-head .kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; color: var(--accent); text-transform: uppercase; margin-bottom: 20px; display: block; }
.page-head p { max-width: 640px; margin-top: 28px; font-size: 17px; line-height: 1.65; color: var(--text-soft); }

/* ============ COMPACT NAV LINKS (cross-page) ============ */
.xnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.xnav a { display: flex; flex-direction: column; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }
.xnav a small { color: var(--muted); font-size: 10px; margin-bottom: 6px; }
.xnav a strong { font-family: var(--font-serif); font-size: 20px; letter-spacing: -0.01em; color: var(--ink); font-weight: 400; text-transform: none; }
.xnav a:hover strong { color: var(--accent); }
.xnav .prev strong::before { content: '← '; color: var(--accent); }
.xnav .next strong::after { content: ' →'; color: var(--accent); }

/* ============ UTILITIES ============ */
.spacer-sm { height: 40px; }
.spacer-md { height: 72px; }
.spacer-lg { height: 120px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; animation: fadeUp 700ms var(--ease) forwards; animation-delay: 80ms; }
.reveal.d2 { animation-delay: 180ms; }
.reveal.d3 { animation-delay: 300ms; }
.reveal.d4 { animation-delay: 420ms; }
