/* Keira Haley consulting
   Ground navy, panels alternate navy / ink for rhythm.
   Display Newsreader, body IBM Plex Sans, labels IBM Plex Mono.
   Signature: the load diagram, four supports carrying one beam. */

:root {
  --ink: #161C33;
  --navy: #232B4A;
  --bone: #EDE4D4;
  --bone-dim: #B5A9A0;
  --clay: #C99A90;
  --clay-deep: #2B1610;
  --hair: rgba(201, 154, 144, 0.30);
  --hair-soft: rgba(201, 154, 144, 0.18);

  --display: Georgia, 'Times New Roman', serif;
  --body: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --measure: 36rem;
  --band: clamp(4rem, 9vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--bone);
  font-family: var(--body);
  font-weight: 300;
  font-size: clamp(1rem, 0.97rem + 0.18vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.5rem + 2.1vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); max-width: 24ch; }
h3 { font-size: clamp(1.12rem, 1.08rem + 0.25vw, 1.3rem); letter-spacing: 0; }

p { margin: 0 0 1.2em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.08rem, 1.02rem + 0.3vw, 1.22rem);
  line-height: 1.55;
  max-width: 48ch;
}

.label {
  font-family: var(--body);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 1.4rem;
  font-weight: 600;
}

a { color: var(--bone); text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: var(--clay); }
a:hover { color: var(--clay); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; }

/* ---------- accessibility ---------- */

.skip {
  position: absolute; top: -100px; left: 0; right: 0; z-index: 60;
  background: var(--clay); color: var(--clay-deep);
  padding: 0.9rem 1rem; text-align: center;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.skip:focus { top: 0; }

/* ---------- shell ---------- */

.wrap { width: min(78rem, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: var(--band); }
.band--ink { background: var(--ink); }

/* ---------- masthead ---------- */

.masthead {
  position: static; z-index: 30;
  background: rgba(35, 43, 74, 0.90);
  backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--hair);
}
@media (min-width: 48rem) { .masthead { position: sticky; top: 0; } }
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 1.15rem; flex-wrap: wrap;
}
.mark { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--bone); }

.mark__name {
  font-family: var(--body);
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem);
  letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
  color: var(--clay); font-weight: 500;
}
.mark:hover .mark__name { color: var(--bone); }
.nav ul { display: flex; gap: clamp(0.7rem, 2.2vw, 2.2rem); list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--body);
  font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--clay); color: var(--clay); }

/* ---------- hero ---------- */

.hero { padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem); }
.hero__top { display: grid; gap: 1.6rem 3.5rem; }
@media (min-width: 62rem) { .hero__top { grid-template-columns: 1.6fr 1fr; align-items: end; } }
.hero h1 { max-width: 16ch; margin-bottom: 0; }
.hero .lede { color: var(--bone-dim); max-width: 34ch; margin-bottom: 0; }

/* ---------- signature: the load diagram ---------- */

.load { margin: clamp(2.5rem, 4vw, 3.5rem) 0 0; }
.load svg { display: block; width: 100%; height: clamp(115px, 13vw, 168px); overflow: visible; }
.load .beam { stroke: var(--clay); stroke-width: 2; }
.load .post { stroke: var(--bone); stroke-width: 2; }
.load .post--short { stroke: var(--clay); stroke-dasharray: 4 5; }
.load .cap { fill: var(--bone); }
.load .cap--short { fill: var(--clay); }

.load__legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; margin-top: 1rem; }
.load__legend span {
  font-family: var(--body);
  font-size: clamp(0.7rem, 0.62rem + 0.35vw, 0.82rem);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bone-dim); text-align: center;
}
@media (min-width: 40rem) { .load__legend span { letter-spacing: 0.16em; } }
.load__legend span.is-short { color: var(--clay); }
.load__legend span { color: var(--clay); opacity: 0.72; }
.load__legend span.is-short { opacity: 1; }

.load__note {
  font-family: var(--body);
  font-size: 0.9rem; letter-spacing: 0; color: var(--bone-dim);
  margin-top: 2rem; max-width: 46ch; line-height: 1.75;
}

@media (prefers-reduced-motion: no-preference) {
  .load .post { stroke-dasharray: 220; stroke-dashoffset: 220; animation: raise 1.1s cubic-bezier(0.22,1,0.36,1) forwards; }
  .load .post--short { stroke-dasharray: 4 5; stroke-dashoffset: 0; opacity: 0; animation: fade 0.7s ease 0.5s forwards; }
  @keyframes raise { to { stroke-dashoffset: 0; } }
  @keyframes fade { to { opacity: 1; } }
}

/* ---------- actions ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2.6rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0.8rem 1.6rem;
  font-family: var(--body);
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--hair); cursor: pointer;
  background: transparent; color: var(--clay); font-weight: 400;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { border-color: var(--clay); background: var(--clay); color: var(--clay-deep); }
.btn--solid { background: var(--clay); border-color: var(--clay); color: var(--clay-deep); }
.btn--solid:hover { background: var(--bone); border-color: var(--bone); color: var(--navy); }

/* ---------- section head ---------- */

.sechead { display: grid; gap: 1.4rem 4rem; }
@media (min-width: 62rem) {
  .sechead { grid-template-columns: 1fr 1.12fr; align-items: center; }
  .sechead > :first-child { margin-bottom: 0; }
}
.sechead h2 { margin-bottom: 0; }
.sechead__aside .lede {
  font-size: clamp(1rem, 0.95rem + 0.22vw, 1.12rem);
  line-height: 1.62;
  max-width: none;
}
.sechead__aside p {
  max-width: 52ch;
}

.sechead__aside p:last-child { margin-bottom: 0; }
.sechead__aside .email { text-align: left; }

/* a claim that closes the section, rule spanning the full measure */
.claim {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--clay);
  text-align: center;
}
.claim p {
  color: var(--clay);
  font-family: var(--display);
  font-size: clamp(1rem, 0.97rem + 0.18vw, 1.0625rem);
  line-height: 1.65;
  letter-spacing: 0;
  max-width: 58ch;
  margin: 0 auto;
  text-align: center;
  text-wrap: balance;
}

/* ---------- pillars ---------- */

.pillars { display: grid; gap: 0; margin-top: 3rem; }
@media (min-width: 40rem) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .pillars { grid-template-columns: repeat(4, 1fr); } }

.pillar { padding: 1.9rem 1.5rem 1.9rem 1.5rem; position: relative; }
.pillar::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 1px; height: 100%; background: var(--hair);
}
.pillar--short::before { background: var(--clay); }
.pillar__no {
  font-family: var(--body);
  font-size: 0.78rem; letter-spacing: 0.16em; color: var(--clay);
  display: block; margin-bottom: 0.9rem;
}
.pillar h3 { margin-bottom: 0.45em; }
.pillar p { font-size: 1rem; color: var(--bone-dim); max-width: 32ch; }

/* ---------- track record ---------- */

.record { display: grid; gap: 2rem 4rem; margin-top: 2.5rem; }
@media (min-width: 62rem) { .record { grid-template-columns: 1fr 1.12fr; align-items: start; } }

.figures {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.1rem + 0.65vw, 1.6rem);
  line-height: 1.35;
  letter-spacing: -0.008em;
  color: var(--bone);
  max-width: 18ch;
  margin: 0;
  text-wrap: balance;
}
.record__body p { max-width: 52ch; }
.record__body p:last-child { margin-bottom: 0; }

.lead-in { color: var(--clay); font-weight: 500; }
.record__note { margin-top: 1.2em; color: var(--bone-dim); }

/* ---------- split ---------- */

.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 54rem) { .split { grid-template-columns: 0.8fr 1fr; } }
.portrait {
  width: 100%; height: auto; max-width: 27rem; aspect-ratio: 1 / 1;
  object-fit: cover; display: block; background: var(--ink);
}

/* ---------- process ---------- */

.process { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 52rem) { .process { grid-template-columns: repeat(4, 1fr); } }
.process li { padding: 1.8rem 1.5rem; border-top: 1px solid var(--clay); }
.process__no {
  font-family: var(--body);
  font-size: 0.78rem; letter-spacing: 0.16em; color: var(--clay);
  display: block; margin-bottom: 0.8rem;
}
.process h3 { font-size: 1.1rem; margin-bottom: 0.4em; }
.process p { font-size: 0.98rem; color: var(--bone-dim); max-width: 30ch; }

/* ---------- pact ---------- */

.pact { display: grid; gap: 2.5rem; margin-top: 3rem; }
@media (min-width: 52rem) { .pact { grid-template-columns: repeat(3, 1fr); gap: 0 2.5rem; } }
.pact > div { padding-top: 1.5rem; border-top: 1px solid var(--clay); }
.pact h3 {
  font-family: var(--body); font-weight: 400;
  font-size: 0.8rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--clay); margin-bottom: 1rem;
}
.pact p { font-size: 1rem; max-width: none; }

/* ---------- closing call ---------- */

.call h2 { max-width: 18ch; }
.email {
  font-family: var(--display);
  font-size: clamp(1.35rem, 1rem + 1.8vw, 2.4rem);
  text-decoration: none; border-bottom: 1px solid var(--clay);
  display: inline-block; word-break: break-word; margin-top: 0.8rem; padding-bottom: 0.1em;
}
.email:hover { border-bottom-color: var(--bone); }

/* ---------- articles ---------- */

.articles { list-style: none; margin: 3rem 0 0; padding: 0; }
.articles li { border-top: 1px solid var(--hair-soft); }
.articles li:last-child { border-bottom: 1px solid var(--hair-soft); }
.articles a { display: grid; gap: 0.5rem 2.5rem; padding: 2rem 0; text-decoration: none; transition: padding-left 0.25s ease; }
@media (min-width: 54rem) { .articles a { grid-template-columns: 11rem 1fr; align-items: baseline; } }
.articles a:hover { padding-left: 1rem; }
.articles a:hover h3 { color: var(--clay); }
.articles .kicker {
  font-family: var(--body);
  font-size: 0.78rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--clay);
}
.articles h3 { margin: 0 0 0.35em; transition: color 0.2s ease; }
.articles p { margin: 0; font-size: 1rem; color: var(--bone-dim); max-width: 46ch; }

/* ---------- essay ---------- */

.essay { max-width: var(--measure); }
.essay h2 { font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.75rem); margin-top: 2.4em; }
.essay p { max-width: none; }
.essay ul { padding-left: 1.1rem; }
.essay li { margin-bottom: 0.55em; }
.essay .lede { max-width: none; margin-bottom: 1.4em; }
.page-title { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem); max-width: 20ch; }

.back {
  font-family: var(--body);
  font-size: 0.8rem; letter-spacing: 0.11em; text-transform: uppercase;
  text-decoration: none; display: inline-block; margin-bottom: 2.8rem; color: var(--bone-dim);
}
.back { color: var(--clay); }
.back:hover { color: var(--bone); }

/* ---------- assessment ---------- */

.q { padding: 1.9rem 0; border-top: 1px solid var(--hair); }
.q:last-of-type { border-bottom: 1px solid var(--hair); }
.q fieldset { border: 0; margin: 0; padding: 0; }
.q legend {
  font-family: var(--display); font-size: clamp(1.05rem, 1rem + 0.35vw, 1.3rem);
  line-height: 1.3; margin-bottom: 1.1rem; max-width: 48ch;
}
.scale { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.scale label {
  border: 1px solid var(--hair); padding: 0.55rem 1rem; cursor: pointer;
  font-family: var(--body); font-size: 0.82rem; letter-spacing: 0.04em;
  transition: all 0.16s ease; user-select: none;
}
.scale label:hover { border-color: var(--clay); }
.scale input { position: absolute; opacity: 0; width: 0; height: 0; }
.scale label:has(input:checked) { background: var(--clay); border-color: var(--clay); color: var(--clay-deep); }
.scale label:has(input:focus-visible) { outline: 2px solid var(--clay); outline-offset: 2px; }

.result { margin-top: 3.5rem; padding-top: 3rem; border-top: 1px solid var(--clay); }
.result[hidden] { display: none; }
.bars { display: grid; gap: 1.1rem; margin: 2.2rem 0; }
.bar { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; align-items: center; }
@media (max-width: 34rem) { .bar { grid-template-columns: 1fr; gap: 0.3rem; } }
.bar__label { font-family: var(--body); font-size: 0.78rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--clay); }
.bar__track { height: 2px; background: var(--hair); position: relative; }
.bar__fill { height: 100%; background: var(--clay); opacity: 0.55; width: 0; transition: width 0.7s cubic-bezier(0.22,1,0.36,1); }
.bar__fill.is-weak { background: var(--clay); opacity: 1; height: 4px; margin-top: -1px; }

/* ---------- contact form ---------- */

.form { margin-top: 2.5rem; max-width: 42rem; display: grid; gap: 1.4rem; }
.field { display: grid; gap: 0.5rem; }
.field label {
  font-size: 0.85rem; letter-spacing: 0.06em; color: var(--clay); font-weight: 500;
}
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 1rem; color: var(--bone);
  background: rgba(244, 239, 228, 0.05);
  border: 1px solid var(--hair); border-radius: 0;
  padding: 0.8rem 0.9rem; width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.6; }
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--navy); color: var(--bone); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--clay); background: rgba(244, 239, 228, 0.08);
}
.field input::placeholder, .field textarea::placeholder { color: var(--bone-dim); opacity: 0.7; }
.field--pair { display: grid; gap: 1.4rem; }
@media (min-width: 40rem) { .field--pair { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form__note { font-size: 0.88rem; color: var(--bone-dim); max-width: 46ch; margin: 0; }
.form__status { font-size: 0.95rem; margin: 0; }
.form__status[hidden] { display: none; }
.form__status.is-ok { color: var(--clay); }
.form__status.is-bad { color: var(--bone); }

.channels { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2rem; align-items: center; }

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--clay); padding-block: 3rem; background: var(--ink); }
.foot__inner { display: flex; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; align-items: flex-start; }
.foot p { font-size: 0.92rem; color: var(--bone-dim); max-width: 30ch; margin: 0; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.foot a { color: var(--clay); display: inline-block; padding-block: 0.35rem; font-family: var(--body); font-size: 0.8rem; letter-spacing: 0.11em; text-transform: uppercase; text-decoration: none; }


/* ---------- print ---------- */
@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .masthead, .actions, .foot nav, .load, form { display: none; }
  .band, .band--ink { background: #fff; padding-block: 1rem; }
  h1, h2, h3, .label, .claim p, .lead-in, .figures { color: #000; }
  a { text-decoration: underline; }
  .portrait { max-width: 2in; }
}
