/* Derek Blignaut — derekblignaut.com
   Palette from Derek's commercial advisory documents:
   navy #1B365D, gold #C08A2E, ink #2D3748, muted #4A5568,
   steel #2C5282, gold-dark #8C5E14, ice #F0F4F8, cream #FDF8EE, line #E2E8F0.
   Editorial cadence inspired by leading independent advisor sites. */

:root {
  --navy: #1b365d;
  --navy-deep: #12243f;
  --navy-ink: #0e1c33;
  --gold: #c08a2e;
  --gold-dark: #8c5e14;
  --gold-soft: #e8c47a;
  --steel: #2c5282;
  --ink: #2d3748;
  --muted: #4a5568;
  --ice: #f0f4f8;
  --cream: #fdf8ee;
  --line: #e2e8f0;
  --white: #ffffff;
  --paper: #f7f8fa;
  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 1120px;
  --narrow: 720px;
  --header: 72px;
  --radius: 2px;
  --space: clamp(4.5rem, 8vw, 7.5rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--steel);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, var(--steel) 40%, transparent);
}

a:hover {
  color: var(--navy);
  text-decoration-color: var(--gold);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.015em;
  line-height: 1.18;
  margin: 0 0 0.7em;
}

h1 {
  font-size: clamp(2.35rem, 5.4vw, 4.15rem);
  line-height: 1.08;
  color: var(--white);
  font-weight: 500;
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
}

h3 {
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 0.55em;
}

p {
  margin: 0 0 1.05em;
}

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

cite {
  font-style: italic;
}

ul, ol {
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--navy);
  color: var(--cream);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--white);
  color: var(--navy);
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

.wrap.narrow,
.narrow {
  width: min(var(--narrow), calc(100% - 48px));
}

/* Eyebrows / section labels, gold rule */
.eyebrow {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.eyebrow::after {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: var(--gold);
  display: block;
}

.eyebrow.dark {
  color: var(--gold-dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-ink);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: #d49a38;
  border-color: #d49a38;
  color: var(--navy-ink);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark:hover {
  color: var(--gold-soft);
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.nav a:hover {
  color: var(--white);
  text-decoration: none;
}

.nav .nav-cta {
  color: var(--navy-ink);
  background: var(--gold);
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius);
}

.nav .nav-cta:hover {
  background: #d49a38;
  color: var(--navy-ink);
}

.nav-button {
  display: none;
  width: 2rem;
  height: 1.15rem;
  position: relative;
  cursor: pointer;
}

.nav-button span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.nav-button span:nth-child(1) { top: 0; }
.nav-button span:nth-child(2) { top: 50%; margin-top: -0.75px; }
.nav-button span:nth-child(3) { bottom: 0; }

/* Hero */
.hero {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.88);
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(4rem, 8vw, 7rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  grid-template-areas:
    "intro photo"
    "copy photo";
  column-gap: clamp(2.5rem, 6vw, 5.5rem);
  row-gap: 0;
  align-items: center;
}

.hero-intro {
  grid-area: intro;
  align-self: end;
}

.hero-copy {
  grid-area: copy;
  align-self: start;
}

.hero-intro h1 {
  margin: 0 0 1.35rem;
  max-width: 11ch;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 38rem;
}

.lead-sub {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 2rem 0 1.6rem;
}

.hero-cred {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.62);
}

.hero-cred a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration-color: rgba(232, 196, 122, 0.55);
}

.hero-cred a:hover {
  color: var(--gold-soft);
}

.hero-photo {
  grid-area: photo;
  align-self: center;
  margin: 0;
  position: relative;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 1.15rem -1.15rem -1.15rem 1.15rem;
  border: 1px solid rgba(192, 138, 46, 0.55);
  pointer-events: none;
}

.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 864 / 810;
  object-fit: contain;
  object-position: center center;
  position: relative;
  z-index: 1;
  background: #c5c8c9;
}

/* Thesis */
.thesis {
  padding: var(--space) 0;
  background: var(--white);
}

.thesis h2 {
  margin-bottom: 1.15rem;
}

.thesis p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--ink);
}

/* Work / pillars */
.work {
  padding: var(--space) 0;
  background: var(--ice);
}

.section-head {
  margin-bottom: 3rem;
}

.section-intro {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.pillars {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  counter-reset: none;
}

.pillars li {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  padding: 2rem 1.85rem 1.9rem;
  border: 1px solid color-mix(in srgb, var(--line) 80%, var(--navy) 8%);
  border-top: 2px solid var(--gold);
}

.pillars .idx {
  display: block;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold-dark);
  margin-bottom: 1.1rem;
}

.pillars p {
  color: var(--muted);
  font-size: 1.02rem;
  margin: 0;
}

/* Evidence */
.evidence {
  padding: var(--space) 0;
  background: var(--white);
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 3rem;
  padding-top: 0.25rem;
}

.stats article {
  padding: 0.5rem 0 0;
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
}

.stat {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 6vw, 4.6rem);
  line-height: 1;
  color: var(--navy);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.stats article p:not(.stat):not(.source) {
  font-size: 1.12rem;
  color: var(--ink);
  max-width: 28rem;
}

.source {
  margin-top: 1.1rem;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* Approach */
.approach {
  padding: var(--space) 0;
  background: var(--paper);
}

.approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.approach-copy p {
  font-size: 1.12rem;
}

.principles {
  list-style: none;
  margin-top: 1.75rem;
  display: grid;
  gap: 0.85rem;
}

.principles li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--ink);
}

.principles li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.65rem;
  height: 1px;
  background: var(--gold);
}

/* Philosophy */
.philosophy {
  background: var(--navy);
  color: var(--cream);
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  text-align: center;
}

.philosophy blockquote {
  margin: 0;
}

.philosophy blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  line-height: 1.35;
  color: var(--white);
  font-weight: 400;
  margin: 0;
}

.philosophy blockquote p::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 1.75rem;
}

/* About */
.about {
  padding: var(--space) 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.about-photo {
  margin: 0;
}

.about-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 864 / 810;
  object-fit: contain;
  object-position: center center;
}

.about-copy p {
  color: var(--ink);
}

.about-copy a {
  color: var(--steel);
}

/* Thinking / RTI */
.thinking {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.86);
  padding: clamp(3.5rem, 6vw, 5rem) 0;
}

.thinking h2 {
  color: var(--white);
}

.thinking-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem 3rem;
  align-items: center;
}

.thinking p {
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.78);
}

.thinking cite {
  color: var(--white);
}

.thinking-link a {
  display: inline-flex;
  color: var(--navy-ink);
  background: var(--gold);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  white-space: nowrap;
}

.thinking-link a:hover {
  background: #d49a38;
  color: var(--navy-ink);
  text-decoration: none;
}

/* Contact */
.contact {
  padding: var(--space) 0;
  background: var(--cream);
}

.contact h2 {
  margin-bottom: 1rem;
}

.contact p {
  font-size: 1.15rem;
}

.contact-email {
  margin-top: 2rem;
}

.contact-email a {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2rem);
  color: var(--navy);
  text-decoration-color: var(--gold);
  text-underline-offset: 0.22em;
}

.contact-email a:hover {
  color: var(--steel);
}

/* Footer */
.site-footer {
  background: var(--navy-ink);
  color: rgba(255, 255, 255, 0.5);
  padding: 2.4rem 0;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
}

.footer-name {
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.footer-name span {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  margin-left: 1rem;
}

.site-footer p {
  margin: 0;
}

.copyright {
  margin-left: auto;
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.nav a:focus-visible,
.wordmark:focus-visible,
.btn:focus-visible {
  outline-offset: 3px;
}

/* Responsive */
@media (max-width: 860px) {
  .wrap,
  .wrap.narrow,
  .narrow {
    width: min(var(--wrap), calc(100% - 36px));
  }

  .hero-grid,
  .approach-grid,
  .about-grid,
  .thinking-grid,
  .stats,
  .pillars {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "photo"
      "copy";
    gap: 1.35rem;
    align-items: stretch;
  }

  .hero-intro,
  .hero-copy,
  .hero-photo {
    align-self: stretch;
  }

  .hero-intro h1 {
    max-width: none;
    margin-bottom: 0;
  }

  .hero-photo {
    display: block;
    width: calc(100% - 1.2rem);
    max-width: 26.5rem;
    margin: 0.15rem auto 0.2rem;
  }

  .hero-photo::before {
    inset: 0.7rem -0.7rem -0.7rem 0.7rem;
  }

  .hero-photo img,
  .about-photo img {
    object-fit: contain;
    object-position: center center;
  }

  .about-photo {
    max-width: 26.5rem;
  }

  .eyebrow {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .thinking-grid {
    align-items: start;
  }

  .copyright {
    margin-left: 0;
    flex-basis: 100%;
  }
}

@media (max-width: 720px) {
  .nav-button {
    display: block;
    z-index: 60;
  }

  .nav {
    position: fixed;
    inset: var(--header) 0 auto 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.75rem 1.15rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
  }

  .nav a {
    display: block;
    width: 100%;
    padding: 0.85rem 0;
    font-size: 0.82rem;
  }

  .nav .nav-cta {
    width: auto;
    margin-top: 0.5rem;
    margin-bottom: 0.35rem;
  }

  .nav-toggle:checked ~ .nav {
    display: flex;
  }

  .nav-toggle:checked + .nav-button span:nth-child(1) {
    top: 50%;
    transform: rotate(45deg);
  }

  .nav-toggle:checked + .nav-button span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked + .nav-button span:nth-child(3) {
    bottom: 50%;
    transform: rotate(-45deg);
  }

  .hero {
    padding: 2rem 0 3.25rem;
  }

  .hero-grid {
    gap: 1.25rem;
  }

  .hero-intro h1 {
    font-size: clamp(2.05rem, 8vw, 2.45rem);
  }

  .lead {
    font-size: 1.08rem;
  }

  .lead-sub {
    font-size: 1.02rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    margin: 1.45rem 0 1.2rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .thesis p,
  .contact p,
  .approach-copy p {
    font-size: 1.08rem;
  }

  .pillars li {
    padding: 1.6rem 1.4rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
