:root {
  --paper: #FAF8F3;
  --ink: #1A1A1A;
  --ink-soft: #6B6860;
  --rule: #1A1A1A;
  --accent: #8B2E2E;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --container: 1100px;
  --measure: 680px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 18px;
}

a {
  color: var(--ink);
}

a:hover {
  color: var(--accent);
}

h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 16px;
}

h2 {
  font-size: 30px;
}

h3 {
  font-size: 21px;
}

h4 {
  font-size: 17px;
}

p {
  margin: 0 0 14px;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 48px;
}

.site-header .brand {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

/* the name leads; the descriptor sits back so it reads as a role, not a surname */
.brand-role {
  color: var(--ink-soft);
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--rule);
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.site-header nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.site-header nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Sections */

main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
}

.section {
  padding: 80px 0;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 24px;
}

.hero-section {
  border-top: 1px solid var(--rule);
}

.section-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.section h2 {
  max-width: var(--measure);
}

.section-intro {
  max-width: var(--measure);
  font-size: 20px;
  color: var(--ink-soft);
}

/* Hero */

.hero-slider {
  /* display type carries a wider measure than body copy, and 680px left the
     right side of the section empty against full-width rules */
  max-width: 880px;
}

.hero-slides {
  display: grid;
}

.hero-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide-text {
  font-size: 36px;
  line-height: 1.3;
  margin: 0;
  color: var(--ink);
}

.hero-slide-stat {
  margin: 20px 0 0;
  font-size: 16px;
  color: var(--ink-soft);
  /* let the stat use the hero's full measure so all three sit on one line */
  max-width: 100%;
}

.hero-slide-stat cite {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--ink-soft);
}

.hero-dots {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--ink);
}

.hero-dot:hover {
  border-color: var(--accent);
}

.hero-bridge {
  margin-top: 36px;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* Line breaking
   `text-wrap: balance` equalises every line, so a paragraph stops filling its
   measure and reads as if a hard return were typed into it. Applied only to the
   narrow column text, where a single stranded word genuinely looks broken and the
   column is too narrow for the evening-out to show. Prose blocks (section intros,
   notes, the bridge line, legal copy, table cells) wrap naturally and fill their
   measure, which is what a reader expects. Note `text-wrap: pretty`, the property
   nominally meant for orphan control, had no measurable effect in this engine. */

.pillar-item p,
.process-step p,
.process-sustain p,
.example-set p {
  text-wrap: balance;
}

/* Maturity model */

.table-wrap {
  margin: 40px 0;
  overflow-x: auto;
}

.model-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  text-align: left;
}

.model-table th,
.model-table td {
  padding: 16px 20px 16px 0;
  vertical-align: top;
}

.model-table thead th {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 16px;
}

.model-table tbody th {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
}

.model-table tbody td {
  font-size: 16px;
  color: var(--ink-soft);
}

.model-table tbody tr + tr th,
.model-table tbody tr + tr td {
  border-top: 1px solid var(--rule);
}

.model-note {
  max-width: var(--measure);
  font-size: 16px;
  color: var(--ink-soft);
}

/* My approach */

.section-note {
  max-width: var(--measure);
  font-size: 17px;
  color: var(--ink-soft);
  margin-top: 20px;
}

.pillar-list {
  display: grid;
  gap: 32px 48px;
  margin: 40px 0 64px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pillar-item {
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.pillar-label {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.pillar-item p {
  font-size: 19px;
  margin: 0;
}

.process-heading {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.process-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.process-step,
.process-sustain {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 18px 20px 20px;
}

/* collapse the shared edges so the three read as one strip */
.process-step + .process-step {
  margin-left: -1px;
}

/* the ongoing band sits apart from the triad, marking it as a different kind of thing */
.process-sustain {
  margin-top: 10px;
}

.process-tag {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.process-sustain .process-tag {
  color: var(--accent);
}

.process-step h4,
.process-sustain h4 {
  margin-bottom: 8px;
}

.process-step p,
.process-sustain p {
  color: var(--ink-soft);
  font-size: 15.5px;
  margin: 0;
}

/* Product strategy */

.block-heading {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 40px 0 24px;
}

.example-set {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.example-set p {
  font-size: 16.5px;
  color: var(--ink);
  margin: 0;
}

.example-item {
  padding: 22px;
  border: 1px solid var(--rule);
}

.example-label {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.example-item p {
  margin: 0;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 32px;
}

.about-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--rule);
}

.about-text {
  max-width: var(--measure);
}

.about-link {
  margin: 18px 0 0;
  display: flex;
  gap: 20px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-link a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}

.about-link a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Contact */

.contact-line {
  font-size: 22px;
}

.contact-line a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-primary {
  max-width: var(--measure);
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}

.contact-lead {
  font-size: 19px;
  color: var(--ink);
  margin: 0 0 22px;
}

.contact-alt {
  margin: 22px 0 0;
  font-size: 16px;
  color: var(--ink-soft);
}

.contact-alt a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-alt a:hover {
  color: var(--accent);
}

.contact-write {
  max-width: var(--measure);
  margin-top: 56px;
}

/* Buttons: square-cornered index-card tabs, no pills */

.button {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 12px 20px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.button:hover {
  background: var(--ink);
  color: var(--paper);
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
}

.button-primary:hover {
  background: transparent;
  color: var(--ink);
}

.button[disabled] {
  opacity: 0.5;
  cursor: default;
}

.button[disabled]:hover {
  background: transparent;
  color: var(--ink);
}

/* Form */

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 10px 12px;
}

.field textarea {
  resize: vertical;
  line-height: 1.5;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}

.field input.invalid,
.field textarea.invalid {
  border-color: var(--accent);
}

/* honeypot, kept out of sight and out of the tab order */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
  min-height: 1.4em;
}

.form-status.is-error {
  color: var(--accent);
}

/* Footer */

.site-footer {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 48px 40px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 12px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  align-items: baseline;
}

.footer-copy {
  margin: 0;
  max-width: 60ch;
  line-height: 1.7;
}

.footer-links {
  margin: 0;
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Legal pages */

.legal {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 48px 96px;
}

.legal h1 {
  font-size: 38px;
  font-weight: 500;
  max-width: var(--measure);
  margin: 0 0 8px;
}

.legal-date {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 32px;
}

.legal h2 {
  font-size: 24px;
  max-width: var(--measure);
  margin: 48px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.legal h3 {
  font-size: 18px;
  max-width: var(--measure);
  margin: 28px 0 8px;
}

.legal p {
  max-width: var(--measure);
  font-size: 17px;
  color: var(--ink-soft);
}

.legal .section-intro {
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.legal a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal a:hover {
  color: var(--accent);
}

/* Responsive */

@media (max-width: 800px) {
  .pillar-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-flow {
    grid-template-columns: 1fr;
  }

  .process-step + .process-step {
    margin-left: 0;
    margin-top: -1px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .example-grid,
  .example-set {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-width: 160px;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  main {
    padding: 0 24px;
  }

  .legal {
    padding: 32px 24px 64px;
  }

  .legal h1 {
    font-size: 30px;
  }

  .legal h2 {
    font-size: 21px;
  }

  .site-footer {
    padding: 24px;
  }

  .section {
    padding: 56px 0;
  }

  .hero-slide-text {
    font-size: 27px;
  }

  .pillar-list {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
