/* AURA 3.0 — Calamanco Consulting
   Design system: tortoiseshell. Many patches, one coat. */

:root {
  --ink: #1c1410;          /* espresso black-brown */
  --ink-soft: #3a2c20;
  --amber: #d08a2e;        /* tortoiseshell amber */
  --rust: #a64e1b;         /* ginger rust */
  --cream: #f2e8d8;
  --paper: #faf6ef;
  --line: #e2d6c2;
  --muted: #6f5f4d;
  --max: 1080px;
  --radius: 10px;
  font-size: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: "Source Serif 4", Georgia, serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 700;
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  display: block;
  margin-bottom: 0.9rem;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.4rem; }

/* ---------- Header ---------- */
header.site {
  background: var(--ink);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--amber);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.4rem;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--cream);
}
.brand svg { width: 38px; height: 38px; flex: none; }
.brand .name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
}
.brand .name small {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}
nav.links { display: flex; gap: 1.5rem; }
nav.links a {
  color: var(--cream);
  text-decoration: none;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 0.92rem;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
nav.links a:hover, nav.links a:focus-visible { border-bottom-color: var(--amber); }
nav.links a.active { border-bottom-color: var(--rust); color: var(--amber); }
.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--amber);
  color: var(--cream);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  nav.links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--ink);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.4rem 1rem;
    border-bottom: 3px solid var(--amber);
  }
  nav.links.open { display: flex; }
  nav.links a { padding: 0.7rem 0; border-bottom: 1px solid #3a2c20; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--cream);
  padding: 4.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* tortoiseshell blend: layered amber / rust patches over espresso */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 42% 55% at 82% 18%, rgba(208,138,46,0.32), transparent 70%),
    radial-gradient(ellipse 35% 45% at 95% 65%, rgba(166,78,27,0.38), transparent 70%),
    radial-gradient(ellipse 28% 40% at 68% 88%, rgba(208,138,46,0.16), transparent 70%),
    radial-gradient(ellipse 20% 30% at 55% 8%, rgba(166,78,27,0.2), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.7rem);
  max-width: 15ch;
  margin-bottom: 1.2rem;
}
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lede {
  font-size: 1.15rem;
  max-width: 54ch;
  color: #e8dcc8;
  margin-bottom: 2rem;
}
.hero .tagline {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  color: var(--amber);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn.primary { background: var(--amber); color: var(--ink); }
.btn.primary:hover, .btn.primary:focus-visible { background: #e09b3d; }
.btn.ghost { border-color: var(--amber); color: var(--amber); background: transparent; }
.btn.ghost:hover, .btn.ghost:focus-visible { background: rgba(208,138,46,0.12); }
.btn.dark { background: var(--ink); color: var(--cream); }
.btn.dark:hover, .btn.dark:focus-visible { background: var(--ink-soft); }
.btn + .btn { margin-left: 0.7rem; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; }

/* ---------- Sections ---------- */
section.block { padding: 4rem 0; }
section.block.alt { background: var(--cream); }
section.block h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin-bottom: 1rem;
  max-width: 24ch;
}
section.block > .wrap > p.intro {
  font-size: 1.08rem;
  max-width: 62ch;
  margin-bottom: 2rem;
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid.three { grid-template-columns: 1fr; } .grid.two { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  position: relative;
}
section.block:not(.alt) .card { background: #fff; }
.card h3 { font-size: 1.12rem; margin-bottom: 0.6rem; }
.card p { font-size: 0.95rem; color: var(--ink-soft); }
.card .patch {
  width: 34px; height: 10px;
  border-radius: 5px;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--ink) 0 33%, var(--rust) 33% 66%, var(--amber) 66%);
}

/* ---------- Six layers ---------- */
.layers { display: grid; gap: 0.6rem; margin-top: 2rem; }
.layer {
  display: grid;
  grid-template-columns: 72px 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.layer .num {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-size: 1rem;
  color: var(--cream);
}
.layer:nth-child(6n+1) .num { background: var(--ink); }
.layer:nth-child(6n+2) .num { background: var(--rust); }
.layer:nth-child(6n+3) .num { background: var(--amber); color: var(--ink); }
.layer:nth-child(6n+4) .num { background: var(--ink-soft); }
.layer:nth-child(6n+5) .num { background: var(--rust); }
.layer:nth-child(6n+6) .num { background: var(--ink); }
.layer .body { padding: 0.9rem 1.2rem; }
.layer .body h3 { font-size: 1rem; margin-bottom: 0.15rem; }
.layer .body p { font-size: 0.88rem; color: var(--muted); }

/* ---------- Chain ---------- */
.chain {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1.6rem;
}
.chain span.link {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}
.chain span.arrow { color: var(--rust); font-size: 0.8rem; }

/* ---------- Spine ---------- */
.spine {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.6rem;
}
.spine span {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
}
.spine span:nth-child(3n+2) { background: var(--rust); }
.spine span:nth-child(3n) { background: var(--amber); color: var(--ink); }

/* ---------- Pull quote ---------- */
.pull {
  border-left: 5px solid var(--amber);
  background: #fff;
  padding: 1.4rem 1.8rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
  max-width: 700px;
}
section.block.alt .pull { background: var(--paper); }
.pull p {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.4;
}

/* ---------- Publication cards ---------- */
.pub {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.pub .cover {
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--cream);
  padding: 1.6rem 1.4rem;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}
.pub .cover::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 85% 15%, rgba(208,138,46,0.4), transparent 70%),
    radial-gradient(ellipse 40% 50% at 15% 90%, rgba(166,78,27,0.45), transparent 70%);
}
.pub .cover h3 { position: relative; font-size: 1.15rem; }
.pub .cover .kind {
  position: relative;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.4rem;
}
.pub p.desc { font-size: 0.93rem; color: var(--ink-soft); flex: 1; }

/* ---------- Forms ---------- */
form.contact { max-width: 560px; display: grid; gap: 1.1rem; }
form.contact label {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  display: grid;
  gap: 0.35rem;
}
form.contact input, form.contact textarea {
  font: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
form.contact input:focus, form.contact textarea:focus {
  outline: 3px solid var(--amber);
  outline-offset: 0;
  border-color: var(--amber);
}
form.contact textarea { min-height: 150px; resize: vertical; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--ink);
  color: #cbbda6;
  padding: 2.6rem 0 2rem;
  font-size: 0.85rem;
  border-top: 3px solid var(--amber);
}
footer.site .cols {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
footer.site a { color: var(--amber); text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site .fine { font-size: 0.74rem; line-height: 1.6; max-width: 72ch; color: #9b8b73; }

/* ---------- Utility ---------- */
.note {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 1rem;
}
table.compare {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.6rem;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.92rem;
}
table.compare th, table.compare td {
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.compare th {
  font-family: "Bricolage Grotesque", sans-serif;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.85rem;
}
@media (max-width: 700px) {
  table.compare { display: block; overflow-x: auto; }
}

/* ---------- Services catalogue ---------- */
.pathway {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.pathway .stage {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--ink);
  align-self: flex-start;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.pathway:nth-child(2) .stage { background: var(--rust); }
.pathway:nth-child(3) .stage { background: var(--amber); color: var(--ink); }
.pathway:nth-child(4) .stage { background: var(--ink-soft); }
.pathway h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.pathway ol { padding-left: 1.2rem; font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0.9rem; }
.pathway ol li { margin-bottom: 0.25rem; }
.pathway .fee {
  margin-top: auto;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--rust);
  border-top: 1px dashed var(--line);
  padding-top: 0.8rem;
}
.grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid.four { grid-template-columns: 1fr; } }

details.engagement {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  overflow: hidden;
}
details.engagement summary {
  cursor: pointer;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 1rem;
  align-items: center;
  padding: 1.1rem 1.4rem;
}
details.engagement summary::-webkit-details-marker { display: none; }
details.engagement summary:hover { background: var(--paper); }
details.engagement summary h3 {
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
details.engagement summary h3::before {
  content: "+";
  font-family: "IBM Plex Mono", monospace;
  color: var(--rust);
  font-weight: 600;
}
details.engagement[open] summary h3::before { content: "–"; }
details.engagement summary .meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}
details.engagement .inner {
  padding: 0 1.4rem 1.4rem;
  border-top: 1px solid var(--line);
}
details.engagement .inner p.lead { padding-top: 1.1rem; font-size: 0.95rem; }
details.engagement .cols2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-top: 1.1rem;
}
@media (max-width: 700px) {
  details.engagement .cols2 { grid-template-columns: 1fr; }
  details.engagement summary { grid-template-columns: 1fr; }
  details.engagement summary .meta { text-align: left; }
}
details.engagement h4 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.5rem;
}
details.engagement ul { padding-left: 1.1rem; font-size: 0.9rem; color: var(--ink-soft); }
details.engagement ul li { margin-bottom: 0.2rem; }
details.engagement .price {
  margin-top: 1.2rem;
  background: var(--cream);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
}
details.engagement .price strong { font-family: "IBM Plex Mono", monospace; font-size: 0.85rem; }
.ondemand {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}
.ondemand h3 { font-size: 0.98rem; margin-bottom: 0.4rem; }
.ondemand p { font-size: 0.87rem; color: var(--ink-soft); margin-bottom: 0.6rem; }
.ondemand .fee {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.73rem;
  color: var(--rust);
}
.basis {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 1.4rem 1.7rem;
  margin: 2rem 0;
  font-size: 0.92rem;
  max-width: 760px;
}
.basis strong { color: var(--amber); }
