/* Crux & Cairn Strategies — site styles
   Palette and type follow Brand Guidelines v2.0 (Nov 2026). */

:root {
  --ink: #1E2A37;
  --slate: #344C5F;
  --ridge: #4E6D86;
  --brass: #CE872B;
  --granite: #71767C;
  --chalk: #F4F3ED;
  --stone: #F5F1F0;
  --paper: #FFFFFF;
  --rule: #D9DAD4;
  --ridge-wash: rgba(78, 109, 134, 0.07);

  --font: "Montserrat", "Century Gothic", Arial, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7rem);

  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--slate); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--chalk); padding: .75rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */

h1, h2, h3 {
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.012em;
}

h1 {
  font-size: clamp(2.35rem, 5.4vw, 4.1rem);
  line-height: 1.07;
  max-width: 17ch;
}

h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  line-height: 1.2;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.3;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.28rem);
  line-height: 1.6;
  color: var(--slate);
  max-width: 60ch;
}

/* Descriptor line: the one tracked-caps device, per the brand sheet */
.descriptor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .9rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--slate);
}
.descriptor li + li::before {
  content: "";
  display: inline-block;
  width: .42em; height: .42em;
  margin-right: .9rem;
  background: var(--brass);
  transform: rotate(45deg) translateY(-.15em);
}

@media (max-width: 600px) {
  .descriptor { flex-direction: column; align-items: flex-start; gap: .35rem; }
  .descriptor li::before,
  .descriptor li + li::before {
    content: "";
    display: inline-block;
    width: .42em; height: .42em;
    margin-right: .7rem;
    background: var(--brass);
    transform: rotate(45deg) translateY(-.15em);
  }
}

/* Section heading with the brass crux diamond */
.section-head {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  margin-bottom: 2.25rem;
}
.section-head::before {
  content: "";
  flex: none;
  width: .55rem; height: .55rem;
  background: var(--brass);
  transform: rotate(45deg) translateY(-.2rem);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 243, 237, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.brand img { width: 200px; height: auto; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
}
.nav a:not(.button):hover,
.nav a:not(.button)[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]:not(.button) { box-shadow: inset 0 -2px 0 var(--brass); }

@media (max-width: 760px) {
  .nav .nav-anchor { display: none; }
  .brand img { width: 168px; }
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .85rem 1.4rem;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--ink);
  color: var(--chalk);
  font: 600 .95rem/1 var(--font);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.button:hover { background: var(--slate); border-color: var(--slate); color: var(--chalk); }
.button.small { padding: .62rem 1rem; font-size: .88rem; }
.button.light { background: var(--chalk); color: var(--ink); border-color: var(--chalk); }
.button.light:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.nav .button { color: var(--chalk); }
.nav .button:hover { color: var(--chalk); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(3.5rem, 8vw, 6.5rem);
  padding-bottom: clamp(9rem, 17vw, 14rem);
  overflow: hidden;
}
.hero h1 { max-width: 21ch; }
.hero .lede { margin-top: 1.75rem; }
.hero .actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; align-items: center; }
.hero .actions .text-link { font-weight: 500; font-size: .95rem; }

.ridge {
  --rh: clamp(130px, 18vw, 230px);
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: var(--rh);
  pointer-events: none;
}
/* The ridge stretches to any screen width without cropping; the summit
   (x 850 of 1200, y 46 of 200) is where the crux diamond sits. */
.ridge-fill,
.ridge-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.ridge-fill path { fill: var(--ridge-wash); }
.ridge-line path {
  fill: none;
  stroke: var(--ridge);
  stroke-width: 1.5;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.ridge-crux {
  position: absolute;
  width: 18px;
  height: 24px;
  left: calc(70.833% - 9px);
  bottom: calc(var(--rh) * 0.77 + 8px);
  fill: var(--brass);
}

@media (prefers-reduced-motion: no-preference) {
  .ridge-line {
    clip-path: inset(0 100% 0 0);
    animation: climb 2.4s cubic-bezier(.45, .05, .25, 1) .2s forwards;
  }
  .ridge-crux {
    opacity: 0;
    animation: crux .5s ease-out 2s forwards;
  }
  @keyframes climb { to { clip-path: inset(0 0 0 0); } }
  @keyframes crux {
    from { opacity: 0; transform: scale(.4); }
    to   { opacity: 1; transform: scale(1); }
  }
}

/* ---------- Track record band ---------- */

.record .section-head { color: var(--paper); }

.record {
  background: var(--ink);
  color: var(--stone);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.record-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.record-item { border-top: 1px solid rgba(245, 241, 240, .22); padding-top: 1.4rem; }
.record-item .where {
  font-size: .9rem;
  font-weight: 500;
  color: #A9BACA;
  margin-bottom: .35rem;
}
.record-item .figure {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--paper);
  margin-bottom: .75rem;
  letter-spacing: -.015em;
}
.record-item p { color: #D3D8DD; font-size: .98rem; line-height: 1.6; max-width: 34ch; }

@media (max-width: 820px) {
  .record-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Generic sections ---------- */

.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.split .section-head { margin-bottom: 1rem; }
.split .aside-note { color: var(--granite); font-size: .98rem; max-width: 32ch; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* When to call */
.situations { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.situations li {
  padding: 1.1rem 0 1.1rem 2rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
  font-size: 1.08rem;
  line-height: 1.5;
}
.situations li::before {
  content: "";
  position: absolute;
  left: .2rem; top: 1.72rem;
  width: .8rem; height: 1px;
  background: var(--ridge);
}

/* What I do: a real sequence, so numbered */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: step;
}
.step {
  background: var(--paper);
  border-top: 3px solid var(--ridge);
  padding: 1.75rem 1.6rem 1.9rem;
}
.step h3 { display: flex; align-items: baseline; gap: .7rem; font-size: 1.45rem; }
.step h3 .n { font-size: .85rem; font-weight: 500; color: var(--granite); letter-spacing: .04em; }
.step .summary { color: var(--slate); margin: .6rem 0 1.25rem; font-weight: 500; line-height: 1.5; }
.step ul { list-style: none; margin: 0; padding: 0; }
.step li {
  position: relative;
  padding-left: 1.1rem;
  font-size: .96rem;
  line-height: 1.5;
  margin-bottom: .6rem;
}
.step li::before {
  content: "";
  position: absolute; left: 0; top: .72em;
  width: .45rem; height: 1px; background: var(--brass);
}

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

.practice {
  margin-top: 2.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  list-style: none;
  padding: 0;
}
.practice-label { margin-top: 3rem; font-size: 1rem; font-weight: 600; color: var(--slate); }
.practice li {
  border: 1px solid var(--slate);
  border-radius: 999px;
  padding: .42rem 1rem;
  font-size: .9rem;
  color: var(--slate);
  line-height: 1.3;
}
.practice-label + .practice { margin-top: 1rem; }

/* How to engage */
.models {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.model { border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.model .basis { font-size: .9rem; font-weight: 500; color: var(--ridge); margin: .3rem 0 .8rem; }
.model p:not(.basis) { font-size: .98rem; color: var(--ink); }

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

/* Engagements */
.engagements {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem clamp(2rem, 5vw, 4rem);
}
.engagement h3 { margin-bottom: .5rem; }
.engagement p { color: var(--slate); font-size: 1rem; max-width: 48ch; }

@media (max-width: 760px) {
  .engagements { grid-template-columns: 1fr; gap: 2rem; }
}

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about figure { margin: 0; }
.about img {
  width: 100%;
  height: auto;
  border-radius: 3px;
  aspect-ratio: 368 / 446;
  object-fit: cover;
  background: var(--stone);
}
.about .name { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; margin-bottom: 1.25rem; }
.about .person { font-size: 1.6rem; }
.about .role { font-size: .95rem; font-weight: 500; color: var(--ridge); }
.about .bio { max-width: 62ch; }
.about .principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2.5rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}
.about .principles h3 { font-size: 1rem; margin-bottom: .35rem; }
.about .principles p { font-size: .96rem; color: var(--slate); }

@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; }
  .about figure { max-width: 220px; }
  .about .principles { grid-template-columns: 1fr; }
}

/* Closing call to action */
.closer {
  background: var(--ink);
  color: var(--stone);
  padding-block: clamp(3.5rem, 7vw, 5rem);
}
.closer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem 3rem;
}
.closer h2 { color: var(--paper); }
.closer p { color: #D3D8DD; margin-top: .6rem; max-width: 52ch; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #AEB6BF;
  font-size: .88rem;
  line-height: 1.6;
  padding-block: 2.5rem 3rem;
  border-top: 1px solid rgba(245, 241, 240, .14);
}
.site-footer.standalone { border-top: 0; }
.site-footer .wrap { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem 3rem; align-items: start; }
.site-footer .foot-logo { width: 170px; height: auto; }
.site-footer .foot-meta { justify-self: end; text-align: right; }
.site-footer a { color: #D3D8DD; }
.site-footer a:hover { color: var(--paper); }
.site-footer .compliance { grid-column: 1 / -1; color: #8F99A4; font-size: .82rem; }

@media (max-width: 680px) {
  .site-footer .wrap { grid-template-columns: 1fr; }
  .site-footer .foot-meta { justify-self: start; text-align: left; }
}

/* ---------- Contact page ---------- */

.contact-hero { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.contact-hero h1 { max-width: 20ch; }
.contact-hero .lede { margin-top: 1.5rem; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  padding-bottom: var(--section);
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.form {
  background: var(--paper);
  border-top: 3px solid var(--ridge);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.25rem; }
.field label { font-size: .92rem; font-weight: 600; color: var(--ink); }
.field .hint { font-weight: 400; color: var(--granite); }
.field input,
.field textarea {
  font: 400 1rem/1.5 var(--font);
  color: var(--ink);
  background: var(--chalk);
  border: 1px solid #C9CBC4;
  border-radius: 3px;
  padding: .75rem .85rem;
  width: 100%;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus,
.field textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--ridge); background: var(--paper); }

.form .submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .5rem; }
.form .privacy { font-size: .85rem; color: var(--granite); margin: 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.status {
  margin-top: 1.25rem;
  padding: .9rem 1rem;
  border-left: 3px solid var(--ridge);
  background: var(--chalk);
  font-size: .95rem;
}
.status[hidden] { display: none; }
.status.error { border-left-color: var(--brass); }

.direct h2 { font-size: 1.25rem; margin-bottom: 1.25rem; }
.direct dl { margin: 0; }
.direct dt { font-size: .88rem; font-weight: 500; color: var(--granite); }
.direct dd { margin: .15rem 0 1.25rem; font-size: 1.05rem; font-weight: 500; }
.direct dd a { color: var(--ink); }
.direct .note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: .95rem;
  color: var(--slate);
}

/* ---------- 404 ---------- */
.notfound { padding-block: clamp(5rem, 12vw, 9rem); }
.notfound p { margin-top: 1.25rem; color: var(--slate); }
