:root {
  --background: #f7f6f2;
  --surface: #ffffff;
  --text: #171717;
  --muted: #666666;
  --border: #d9d8d3;
  --accent: #176b73;
  --dark: #171717;
  --dark-muted: #b8b8b3;
  --max-width: 1200px;
  --side-padding: clamp(24px, 5vw, 64px);
  --section-space: clamp(88px, 11vw, 160px);
  --heading-font: "Space Grotesk", "Inter", "Segoe UI", Arial, sans-serif;
  --body-font: "Inter", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(100% - (var(--side-padding) * 2), var(--max-width));
  margin-inline: auto;
}

/* ------------------------------
   HEADER
------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--background) 94%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--border);
}

.site-name {
  font-family: var(--heading-font);
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 34px);
  font-size: 14px;
}

.site-nav > a:not(.nav-cta) {
  color: var(--muted);
  transition: color 180ms ease;
}

.site-nav > a:not(.nav-cta):hover {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--text);
  transition: background 180ms ease, color 180ms ease;
}

.nav-cta:hover {
  background: var(--text);
  color: var(--background);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

/* ------------------------------
   GENERAL
------------------------------ */

.section {
  padding-block: var(--section-space);
}

.section-rule {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: clamp(48px, 6vw, 80px);
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--heading-font);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

p {
  margin: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
}

.button-primary:hover {
  background: #125a61;
}

.button-secondary {
  background: transparent;
  border-color: var(--border);
}

.button-secondary:hover {
  border-color: var(--text);
  background: var(--surface);
}

.button-light {
  background: transparent;
  border-color: #777;
  color: #ffffff;
}

.button-light:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--dark);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  transition: gap 180ms ease, color 180ms ease;
}

.text-link:hover {
  gap: 13px;
  color: #125a61;
}

/* ------------------------------
   HERO
------------------------------ */

.hero {
  min-height: min(760px, calc(100vh - 82px));
  display: flex;
  align-items: center;
  padding-block: clamp(100px, 12vw, 170px);
}

.hero-inner {
  text-align: center;
}

.hero .eyebrow {
  margin-bottom: 28px;
  font-size: 14px;
}

.hero h1 {
  max-width: 950px;
  margin-inline: auto;
  font-size: clamp(48px, 7.2vw, 88px);
}

.hero h1 span {
  color: var(--accent);
}

.hero-subtitle {
  max-width: 760px;
  margin: 34px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.7;
}

.hero-subtitle span,
.hero-meta span {
  color: var(--border);
  padding-inline: 5px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.hero-meta {
  margin-top: 26px;
  color: var(--muted);
  font-size: 12px;
}

.coming-soon-hero {
  min-height: calc(100vh - 82px);
}

/* ------------------------------
   THESIS
------------------------------ */

.thesis-grid {
  display: grid;
  grid-template-columns: 3fr 9fr;
  gap: clamp(32px, 7vw, 100px);
}

.thesis h2 {
  max-width: 900px;
  font-size: clamp(38px, 5.2vw, 64px);
}

.lead {
  font-size: clamp(20px, 2.3vw, 27px);
  line-height: 1.45;
}

.thesis .lead {
  max-width: 760px;
  margin-top: 34px;
  color: var(--muted);
}

/* ------------------------------
   DIRECTIONS
------------------------------ */

.section-heading {
  margin-bottom: 36px;
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.direction-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  padding: clamp(30px, 4vw, 50px);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 180ms ease, transform 180ms ease;
}

.direction-card:hover {
  border-color: #aaa9a3;
  transform: translateY(-3px);
}

.card-label {
  margin-bottom: 42px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.direction-card h2 {
  font-size: clamp(38px, 4.5vw, 58px);
}

.card-title {
  margin-top: 18px;
  max-width: 500px;
  font-family: var(--heading-font);
  font-size: 21px;
  font-weight: 550;
  line-height: 1.3;
}

.direction-card > p:not(.card-label):not(.card-title) {
  max-width: 560px;
  margin-top: 18px;
  color: var(--muted);
}

.direction-card .text-link {
  margin-top: auto;
  padding-top: 40px;
}

/* ABOUT */

.about-preview { padding-top: calc(var(--section-space) * 0.7); }

.about-grid {
  display: grid;
  grid-template-columns: 3fr 9fr;
  gap: clamp(32px, 7vw, 100px);
}

.portrait-placeholder {
  width: min(100%, 250px);
  aspect-ratio: 4 / 5;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #e9e8e3;
}

.portrait-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--muted);
  font-family: var(--heading-font);
  font-size: 14px;
  text-align: center;
}

.about-copy {
  border-left: 1px solid var(--border);
  padding-left: clamp(28px, 5vw, 70px);
}

.about-copy .lead { max-width: 760px; }

.about-copy > p:not(.lead) {
  max-width: 700px;
  margin-top: 24px;
  color: var(--muted);
}

/* HOW I WORK */

.approach-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 8vw, 120px);
}

.approach h2 {
  max-width: 650px;
  margin-top: 24px;
  font-size: clamp(38px, 4.7vw, 60px);
}

.approach-copy .lead { max-width: 720px; }

.approach-copy > p:not(.lead) {
  max-width: 680px;
  margin-top: 24px;
  color: var(--muted);
}

/* ------------------------------
   FINAL CTA
------------------------------ */

.final-cta {
  padding-top: calc(var(--section-space) * 0.7);
}

.cta-inner {
  max-width: 900px;
}

.cta-inner h2 {
  margin-top: 24px;
  font-size: clamp(42px, 5.5vw, 70px);
}

.cta-inner > p:not(.eyebrow) {
  max-width: 700px;
  margin-top: 30px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.cta-inner .button {
  margin-top: 36px;
}

/* ------------------------------
   PAGE HERO (Thinking index)
------------------------------ */

.page-hero {
  background: var(--surface);
  padding-bottom: clamp(48px, 6vw, 80px);
}

.page-title {
  max-width: 900px;
  margin-top: 24px;
  font-size: clamp(38px, 5.2vw, 64px);
}

.page-intro {
  max-width: 700px;
  margin-top: 30px;
  color: var(--muted);
}

/* ------------------------------
   THINKING — ARTICLE INDEX
------------------------------ */

.article-index {
  padding-top: 0;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 180ms ease, transform 180ms ease;
}

.article-card:hover {
  border-color: #aaa9a3;
  transform: translateY(-3px);
}

.article-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(26px, 3vw, 34px);
}

.article-card .card-label {
  margin-bottom: 22px;
}

.article-card h2 {
  font-family: var(--heading-font);
  font-size: 22px;
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.article-card p:not(.card-label) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.article-card-meta {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* ------------------------------
   ARTICLE TEMPLATE
------------------------------ */

.article-header {
  background: var(--surface);
  padding-bottom: clamp(48px, 6vw, 80px);
}

.back-link {
  margin-bottom: clamp(28px, 4vw, 48px);
}

.article-tag {
  margin-bottom: 20px;
}

.article-title {
  max-width: 820px;
  font-size: clamp(34px, 4.6vw, 56px);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

.article-standfirst {
  max-width: 760px;
  margin-top: 30px;
  color: var(--muted);
}

.article-body-section {
  padding-top: 0;
}

.article-body {
  max-width: 720px;
  margin-inline: auto;
}

.article-body > * + * {
  margin-top: 26px;
}

.article-body h2 {
  margin-top: 56px;
  font-size: clamp(26px, 3vw, 34px);
}

.article-body p {
  color: var(--text);
}

.article-body ul {
  margin: 0;
  padding-left: 22px;
}

.article-body li {
  color: var(--text);
}

.article-body li + li {
  margin-top: 10px;
}

.article-body blockquote {
  margin: 0;
  padding: 4px 0 4px clamp(20px, 3vw, 32px);
  border-left: 2px solid var(--accent);
  font-family: var(--heading-font);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.article-footer {
  max-width: 720px;
  margin: clamp(56px, 7vw, 88px) auto 0;
}

/* ------------------------------
   FOOTER
------------------------------ */

.site-footer {
  padding-block: 70px 28px;
  background: var(--dark);
  color: #f7f6f2;
}

.site-footer .site-name {
  color: #ffffff;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 60px;
}

.footer-top > div:first-child p {
  max-width: 330px;
  margin-top: 14px;
  color: var(--dark-muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: clamp(60px, 8vw, 120px);
}

.footer-links > div {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-label {
  margin-bottom: 7px;
  color: #66aeb3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links a {
  color: var(--dark-muted);
  font-size: 14px;
  transition: color 180ms ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 70px;
  padding-top: 20px;
  border-top: 1px solid #383838;
  color: #858580;
  font-size: 12px;
}

/* ------------------------------
   RESPONSIVE
------------------------------ */

@media (max-width: 820px) {
  :root {
    --section-space: 96px;
  }

  .header-inner {
    min-height: 70px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 70px;
    left: var(--side-padding);
    right: var(--side-padding);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav > a {
    padding: 12px;
  }

  .nav-cta {
    justify-content: center;
    margin-top: 5px;
  }

  .hero {
    min-height: auto;
    padding-block: 110px 120px;
  }

  .hero h1 {
    max-width: 700px;
  }

  .thesis-grid,
  .about-grid,
  .approach-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .direction-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .direction-card {
    min-height: 390px;
  }

  .portrait-placeholder {
    width: min(100%, 220px);
  }

  .about-copy {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 30px;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-links {
    gap: 70px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding-block: 90px 100px;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 60px);
  }

  .hero-subtitle {
    line-height: 1.55;
  }

  .hero-subtitle span {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-inline: auto;
  }

  .button {
    width: 100%;
  }

  .direction-card {
    min-height: 360px;
    padding: 30px;
  }

  .card-label {
    margin-bottom: 34px;
  }

  .cta-inner h2 {
    font-size: 43px;
  }

  .footer-links {
    gap: 50px;
  }
}
