:root {
  --ink: #172019;
  --muted: #59645c;
  --paper: #f2f5f1;
  --paper-deep: #e5ebe4;
  --white: #fff;
  --purple: #8b2cff;
  --purple-dark: #2b0c4c;
  --green: #52f51a;
  --forest: #14231a;
  --line: #cdd5ce;
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font: 400 1rem/1.65 Inter, "Source Sans 3", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a {
  color: var(--purple);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}
a:hover { color: #6f00ce; }
:where(a, button):focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--purple);
}
h1, h2, h3, h4, h5 {
  margin: 0 0 .65em;
  line-height: 1.08;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -.035em;
}
h1 { font-size: clamp(3rem, 7vw, 6.4rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.7rem); }
h3 { font-size: 1.4rem; }
p, ul, ol { margin: 0 0 1.2rem; }
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: .8rem;
  background: #fff;
}
.skip-link:focus { left: 1rem; top: 1rem; }
.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  padding: 1.25rem 0;
  border-bottom: 1px solid #ffffff1f;
  background: #101b14ed;
  backdrop-filter: blur(12px);
}
.site-header .container, .nav-list {
  display: flex;
  align-items: center;
}
.site-header .container { justify-content: space-between; gap: 2rem; }
.brand img { width: 235px; }
.nav-list {
  gap: 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list a {
  color: #fff;
  font-size: .94rem;
  font-weight: 700;
  text-decoration: none;
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--green); }
.nav-contact {
  padding: .55rem .9rem;
  border: 1px solid #ffffff5c;
  border-radius: 999px;
}
.language-link {
  display: inline-grid;
  place-items: center;
  min-width: 2.3rem;
  min-height: 2.3rem;
  border: 1px solid #ffffff38;
  border-radius: 50%;
  font-size: .76rem !important;
  letter-spacing: .08em;
}

.hero {
  min-height: 58vh;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 9rem 0 5rem;
  color: #fff;
  background: var(--forest) center/cover no-repeat;
}
.hero:not(.hero-home)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0d1510e8 0%, #0d1510b8 48%, #0d15106e 100%);
}
.hero > * { position: relative; z-index: 1; }
.hero-home {
  min-height: 100svh;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
  padding: 7.4rem 0 0;
  background:
    radial-gradient(circle at 85% 18%, #8b2cff5c 0 6%, transparent 6.3%),
    radial-gradient(circle at 76% 68%, #52f51a33 0 4%, transparent 4.3%),
    radial-gradient(circle at 92% 74%, #ffffff18 0 14%, transparent 14.3%),
    linear-gradient(135deg, #101b14 0%, #17251c 52%, #2b0c4c 100%);
}
.hero-home::after {
  content: "";
  position: absolute;
  width: 48vw;
  height: 48vw;
  right: -12vw;
  bottom: -28vw;
  border: 1px solid #ffffff24;
  border-radius: 50%;
  box-shadow:
    0 0 0 7vw #ffffff0c,
    0 0 0 15vw #8b2cff0d;
}
.hero-about { background-image: url("/assets/images/about-ants.jpg"); }
.hero-contact { background-image: url("/assets/images/contact-forest.jpg"); }
.hero-writing {
  min-height: 68vh;
  background:
    radial-gradient(circle at 80% 34%, #52f51a26 0 5%, transparent 5.3%),
    linear-gradient(125deg, #101b14 0%, #1b2b20 58%, #2b0c4c 100%);
}
.hero-content { max-width: 900px; margin-inline: auto; }
.hero-content.compact { max-width: 780px; }
.hero h1 { max-width: 13ch; }
.hero-home .hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(calc(100% - 2rem), 900px);
  padding: 1.4rem 0 2.5rem;
}
.hero-home h1 {
  max-width: none;
  margin-bottom: .46em;
  font-size: clamp(3.35rem, 5.9vw, 5.4rem);
}
.hero-line { display: block; }
.hero-lede {
  max-width: 670px;
  margin-bottom: 2rem;
  color: #edf2ee;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}
.eyebrow {
  margin-bottom: 1.2rem;
  color: var(--green);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow.dark { color: #6c1bc3; }
.hero-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.text-link { color: #fff; font-weight: 700; }
.text-link:hover { color: var(--green); }
.text-link-quiet { color: #cad4cc; font-weight: 600; }

.button {
  display: inline-block;
  padding: .82rem 1.15rem;
  border: 0;
  border-radius: .35rem;
  color: #fff;
  background: var(--purple);
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { color: #fff; background: #7117ce; }
.button-secondary {
  border: 1px solid #ffffff70;
  color: #fff;
  background: #ffffff0a;
}
.button-secondary:hover {
  border-color: var(--green);
  color: var(--forest);
  background: var(--green);
}
.button-secondary-quiet { color: #d7dfd9; }
.button-light { color: var(--purple-dark); background: #fff; }
.button-light:hover { color: var(--purple-dark); background: var(--green); }

.hero-proof {
  align-self: end;
  color: #e7eee8;
  background: #09110dcc;
  border-top: 1px solid #ffffff1f;
  backdrop-filter: blur(8px);
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-inline: 1px solid #ffffff17;
}
.proof-grid p {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  min-height: 6.7rem;
  margin: 0;
  padding: 1.35rem 1.6rem;
  border-right: 1px solid #ffffff17;
}
.proof-grid p:last-child { border-right: 0; }
.proof-grid strong { color: #fff; font-size: 1.02rem; line-height: 1.3; }
.proof-grid span { color: #aeb9b0; font-size: .92rem; }

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-soft { background: var(--paper); }
.section-thesis {
  position: relative;
  overflow: hidden;
  background: #fff;
}
.section-thesis::after {
  content: "";
  position: absolute;
  width: 26rem;
  height: 26rem;
  right: -13rem;
  top: -13rem;
  border: 1px solid #8b2cff20;
  border-radius: 50%;
  box-shadow: 0 0 0 5rem #52f51a09, 0 0 0 10rem #8b2cff08;
  pointer-events: none;
}
.section-dark { color: #dfe7e1; background: var(--forest); }
.section-accent { color: #fff; background: var(--purple-dark); }
.section-heading-grid,
.about-grid,
.contact-intro,
.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}
.section-heading-grid { margin-bottom: 3.2rem; }
.section-heading-grid h2 { max-width: 14ch; }
.section-intro { color: var(--muted); font-size: 1.15rem; }
.thesis-heading { position: relative; z-index: 1; }
.thesis-heading h2 { max-width: 13ch; }
.thesis-copy p:last-child { margin-bottom: 0; }
.section-dark .section-intro { color: #b9c5bb; }
.section-accent h2 { max-width: 13ch; }
.section-accent p { color: #d9cbe8; }

.card-grid { display: grid; gap: 1rem; }
.services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  min-height: 16rem;
  padding: 1.7rem;
  border: 1px solid var(--line);
  background: #fff;
}
.card-number {
  color: var(--purple);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.card h3 { max-width: 19ch; }
.card > p:not(.card-number):not(.card-output) { color: var(--muted); }
.service-card { display: flex; flex-direction: column; }
.card-output {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--purple-dark);
  font-size: .82rem;
  font-weight: 750;
}
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.pattern-heading {
  position: relative;
  z-index: 1;
  max-width: 26ch;
  margin-bottom: 1.4rem;
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
}
.pattern-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.pattern-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-top: 4px solid var(--purple);
  border-inline: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.pattern-failure,
.pattern-response { padding: 1.5rem; }
.pattern-failure { flex: 1; }
.pattern-response {
  position: relative;
  min-height: 13rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(145deg, #52f51a0f, #fff 75%);
}
.pattern-label {
  margin-bottom: .6rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.failure-label { color: var(--purple); }
.response-label { color: #287312; }
.pattern-shift {
  position: absolute;
  top: 0;
  left: 1.5rem;
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 50%;
  color: #fff;
  background: var(--purple-dark);
  font-weight: 800;
}
.pattern-card h4,
.pattern-card h5 {
  max-width: 18ch;
  margin-bottom: .65rem;
  color: var(--ink);
}
.pattern-card h4 { font-size: 1.35rem; }
.pattern-card h5 { font-size: 1.22rem; }
.principle-card h3 { max-width: 17ch; }
.pattern-card p:not(.pattern-label),
.principle-card p { color: var(--muted); }
.pattern-card p:last-child { margin-bottom: 0; }
.principle-grid {
  margin-bottom: 3rem;
  border-block: 1px solid var(--line);
}
.principle-card {
  min-height: 13rem;
  padding: 1.5rem;
  border-right: 1px solid var(--line);
}
.principle-card:last-child { border-right: 0; }

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.evidence-card {
  display: flex;
  flex-direction: column;
  min-height: 28rem;
  padding: 1.6rem;
  border: 1px solid #ffffff26;
  background: #ffffff08;
}
.evidence-label {
  min-height: 2.4rem;
  color: var(--green);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.evidence-card h3 { color: #fff; }
.evidence-card > p:not(.evidence-label):not(.evidence-role) { color: #bfc9c1; }
.evidence-role {
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid #ffffff1f;
  color: #e4eae5;
  font-size: .83rem;
}
.evidence-note {
  max-width: 78ch;
  margin: 2rem 0 0;
  color: #aeb9b0;
}

.fit-note {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  gap: 1rem 1.5rem;
  padding: 1.5rem;
  background: var(--paper);
}
.fit-note h3 { margin: .15rem 0 0; font-size: 1.05rem; }
.fit-note p { margin: 0; color: var(--muted); }

.cta-grid { align-items: center; }
.cta-grid p { font-size: 1.1rem; }
.cta-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.feature-image { width: 100%; object-fit: cover; }
.about-origin .feature-image {
  aspect-ratio: 4 / 5;
  object-position: 26% center;
}
.lead { font-size: clamp(1.08rem, 2vw, 1.25rem); }
.prose { max-width: 76ch; }
.prose h2 { margin-top: 2.2rem; font-size: 2rem; }
.prose h3 { margin-top: 1.8rem; font-size: 1.35rem; }
.article-page {
  min-height: 70vh;
  padding-top: 10rem;
}
.article-container { max-width: 760px; }
.article-container h1 {
  margin-top: .2em;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
}
.article-container time {
  display: block;
  margin: -1rem 0 3rem;
  color: var(--muted);
}
.article-container blockquote {
  margin: 2rem 0;
  padding: 1.2rem 1.4rem;
  border-left: 4px solid var(--purple);
  background: var(--paper);
}
.writing-index { max-width: 900px; }
.writing-list { display: grid; gap: 1rem; }
.writing-card,
.writing-empty {
  padding: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid var(--line);
  background: var(--paper);
}
.writing-card h2,
.writing-empty h2 { max-width: 18ch; }
.writing-card h2 a { color: var(--ink); text-decoration: none; }
.writing-card time { color: var(--muted); }
.text-link-dark { color: var(--purple-dark); font-weight: 750; }

.contact-intro { margin-bottom: 3rem; }
.form-wrap { max-width: 820px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}
.field { margin-bottom: 1.1rem; }
.field-full { grid-column: 1 / -1; }
label, legend { display: block; margin-bottom: .35rem; font-weight: 700; }
input, select, textarea {
  width: 100%;
  padding: .8rem;
  border: 1px solid #a9b1ab;
  border-radius: .25rem;
  color: inherit;
  background: #fff;
  font: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid #9a26ff40;
  border-color: var(--purple);
}
.check-row { display: flex; gap: .65rem; align-items: start; }
.check-row input { width: auto; margin-top: .35rem; }
.check-row label { font-weight: 400; }
.help { margin-top: .35rem; color: var(--muted); font-size: .9rem; }
.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.form-message {
  margin-top: 1rem;
  padding: .8rem;
  border-left: 4px solid var(--purple);
  background: #f5eaff;
}
.hidden { display: none; }
.contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4rem;
}
.contact-details h2 { font-size: 1.7rem; }

.site-footer {
  padding: 3rem 0 1.5rem;
  color: #e8dfef;
  background: var(--purple-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
.site-footer img { width: 235px; margin-bottom: 1rem; }
.site-footer a {
  color: #d9bded;
  text-decoration: none;
}
.site-footer a:hover { color: var(--green); }
.footer-location {
  max-width: 42ch;
  color: #bdaec9;
  font-size: .9rem;
}
.copyright {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #ffffff30;
  color: #bdaec9;
}
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding-top: 7rem;
  text-align: center;
}

@media (max-width: 900px) {
  .evidence-grid { grid-template-columns: 1fr; }
  .evidence-card { min-height: auto; }
  .pattern-grid,
  .principle-grid { grid-template-columns: 1fr; }
  .pattern-card,
  .principle-card { min-height: auto; }
  .pattern-response { min-height: auto; }
  .principle-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .principle-card:last-child { border-bottom: 0; }
  .fit-note { grid-template-columns: auto 1fr; }
}

@media (max-width: 760px) {
  .site-header { position: relative; background: var(--forest); }
  .site-header .container { align-items: flex-start; }
  .brand img { width: 180px; }
  .nav-list { justify-content: flex-end; gap: .65rem .8rem; flex-wrap: wrap; }
  .nav-list a { font-size: .86rem; }
  .nav-secondary { display: none; }
  .hero { min-height: 54vh; padding-top: 5rem; }
  .hero-home {
    min-height: auto;
    grid-template-rows: auto auto;
    padding-top: 3.7rem;
  }
  .hero-home .hero-content {
    min-height: 68vh;
    padding: 0 0 3.5rem;
  }
  .hero h1 { font-size: clamp(2.7rem, 13vw, 4.6rem); }
  .hero-home h1 { font-size: clamp(2.8rem, 12.5vw, 4.5rem); }
  .proof-grid,
  .section-heading-grid,
  .about-grid,
  .contact-intro,
  .cta-grid,
  .grid-2,
  .form-grid,
  .footer-grid,
  .contact-details { grid-template-columns: 1fr; }
  .proof-grid p {
    min-height: auto;
    padding: 1.2rem;
    border-right: 0;
    border-bottom: 1px solid #ffffff17;
  }
  .proof-grid p:last-child { border-bottom: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .card { min-height: auto; }
  .field-full { grid-column: auto; }
  .about-origin .feature-image {
    aspect-ratio: 4 / 3;
    object-position: 26% center;
  }
}

@media (max-width: 520px) {
  .site-header .container { gap: 1rem; }
  .brand img { width: 165px; }
  .nav-list li:nth-child(4) { display: none; }
  .language-link { min-width: 2rem; min-height: 2rem; }
  .fit-note { grid-template-columns: 1fr; }
  .fit-note h3 { margin-top: .7rem; }
}

@media (min-width: 761px) and (max-height: 820px) {
  .hero-home { padding-top: 5.6rem; }
  .hero-home .hero-content { padding: .7rem 0 1.2rem; }
  .hero-home h1 {
    margin-bottom: .34em;
    font-size: clamp(3rem, 5.15vw, 4.5rem);
  }
  .hero-home .eyebrow { margin-bottom: .75rem; }
  .hero-home .hero-lede {
    max-width: 760px;
    margin-bottom: 1.15rem;
    font-size: 1.12rem;
    line-height: 1.45;
  }
  .proof-grid p {
    min-height: 5.55rem;
    padding: .85rem 1.35rem;
  }
  .proof-grid strong { font-size: .94rem; }
  .proof-grid span { font-size: .82rem; }
}
