/* ==========================================================================
   Cygnus Strategy — "Operating stack"
   Stone ground, ink structure, verdigris signal. One bold device: the stack.
   ========================================================================== */

:root {
  --stone: #e9e7e2;
  --stone-deep: #dedbd4;
  --paper: #f6f5f2;
  --ink: #15191f;
  --slate: #5a6472;
  --slate-soft: #7c8694;
  --verdigris: #1f6f5c;
  --verdigris-deep: #175446;
  --amber: #8a5a12;
  --rule: rgba(21, 25, 31, 0.14);
  --rule-soft: rgba(21, 25, 31, 0.08);

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;

  --measure: 66ch;
  --page: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);

  /* Inset for everything sitting inside a stack layer. */
  --layer-pad: clamp(1.1rem, 2.4vw, 2.25rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.0625rem, 0.35vw + 1rem, 1.1875rem);
  line-height: 1.68;
  font-variant-numeric: oldstyle-numeric;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 1.15em;
  max-width: var(--measure);
}

a {
  color: var(--verdigris-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

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

:focus-visible {
  outline: 2.5px solid var(--verdigris);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--stone);
  padding: 0.75rem 1.25rem;
  z-index: 100;
  font-family: var(--display);
}
.skip-link:focus {
  left: 0;
}

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.9rem var(--gutter);
  background: color-mix(in srgb, var(--stone) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule-soft);
}

.wordmark img {
  display: block;
  width: clamp(104px, 11vw, 138px);
  height: auto;
}

.masthead nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.6vw, 1.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.masthead nav a {
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1.5px solid transparent;
  white-space: nowrap;
}
.masthead nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--verdigris);
}

.nav-book {
  background: var(--ink);
  color: var(--stone) !important;
  padding: 0.55rem 1.05rem !important;
  border-radius: 2px;
  border-bottom: none !important;
}
.nav-book:hover {
  background: var(--verdigris-deep);
}

/* Mobile menu button — hidden until the breakpoint needs it */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.5rem 0.8rem;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--ink);
  content: "";
  transition: transform 200ms var(--ease), opacity 150ms linear;
}
.nav-toggle-bars::before {
  transform: translateY(-5.5px);
}
.nav-toggle-bars::after {
  transform: translateY(4px);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Shared
   -------------------------------------------------------------------------- */
section {
  padding: clamp(3.5rem, 8vw, 7rem) var(--gutter);
  max-width: var(--page);
  margin-inline: auto;
}

/* Every in-page target clears the sticky masthead instead of landing under it. */
section[id],
[id="stack"] {
  scroll-margin-top: 9rem;
}

.section-head {
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
  max-width: var(--measure);
}
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  margin-bottom: 0.65rem;
}
.section-head p {
  color: var(--slate);
  margin: 0;
}

.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  padding: 0.85rem 1.5rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background 180ms var(--ease), color 180ms var(--ease),
    border-color 180ms var(--ease);
}

.btn-primary {
  background: var(--ink);
  color: var(--stone);
  border: 1.5px solid var(--ink);
}
.btn-primary:hover {
  background: var(--verdigris-deep);
  border-color: var(--verdigris-deep);
  color: var(--stone);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--rule);
}
.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--paper);
}

.btn-lg {
  font-size: 1.05rem;
  padding: 1.05rem 2rem;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  padding-top: clamp(2.5rem, 6vw, 5rem);
}

.hero-intro {
  max-width: 20ch;
}
.hero-intro h1 {
  font-size: clamp(2.5rem, 7.2vw, 5.1rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
  max-width: 16ch;
  margin-bottom: 1.5rem;
}

.standfirst {
  font-size: clamp(1.1rem, 1.1vw + 0.85rem, 1.35rem);
  line-height: 1.6;
  color: var(--slate);
  max-width: 56ch;
}

.hero-intro {
  max-width: none;
}

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

/* --------------------------------------------------------------------------
   The stack — the one bold device on the page
   -------------------------------------------------------------------------- */
.stack-wrap {
  margin-top: clamp(3rem, 7vw, 5.5rem);
  position: relative;
  padding-left: clamp(0px, 4vw, 116px);
}

.stack-caption {
  font-family: var(--display);
  font-size: 0.9rem;
  color: var(--slate);
  max-width: 44ch;
  margin-bottom: 1.1rem;
}

/* The continuous mark spanning every layer: the page's argument, drawn. */
.span-marker {
  position: absolute;
  left: 0;
  top: 3.4rem;
  bottom: 0;
  width: clamp(0px, 4vw, 116px);
  display: none;
}
.span-line {
  position: absolute;
  left: 26px;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: var(--verdigris);
  transform-origin: top;
}
.span-line::before,
.span-line::after {
  content: "";
  position: absolute;
  left: -5px;
  width: 12px;
  height: 1.5px;
  background: var(--verdigris);
}
.span-line::before {
  top: 0;
}
.span-line::after {
  bottom: 0;
}
.span-text {
  position: absolute;
  left: 26px;
  top: 50%;
  transform: translate(-50%, -50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--verdigris-deep);
  background: var(--stone);
  padding: 0.7rem 0;
}

.stack {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}

.layer {
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(
    to right,
    color-mix(in srgb, var(--paper) 70%, transparent),
    transparent 70%
  );
}
.layer:last-child {
  border-bottom: 1px solid var(--ink);
}

.layer-head {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name more" "gloss more";
  align-items: center;
  gap: 0.2rem 1.5rem;
  width: 100%;
  padding: clamp(1.1rem, 2.2vw, 1.7rem) clamp(0.9rem, 2vw, 1.6rem)
    clamp(1.1rem, 2.2vw, 1.7rem) var(--layer-pad);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: padding-left 220ms var(--ease);
}
.layer-head:hover {
  padding-left: calc(var(--layer-pad) + 0.4rem);
}

.layer-name {
  grid-area: name;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.layer-gloss {
  grid-area: gloss;
  font-size: 0.98rem;
  color: var(--slate);
  line-height: 1.45;
  max-width: 58ch;
}

/* The open/close affordance: a plus that becomes a minus. */
.layer-more {
  grid-area: more;
  visibility: hidden;
  position: relative;
  width: 26px;
  height: 26px;
  flex: none;
  border: 1.5px solid var(--rule);
  border-radius: 50%;
}
.layer-more::before,
.layer-more::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 240ms var(--ease), opacity 180ms linear;
}
.layer-more::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.layer-head:hover .layer-more {
  border-color: var(--verdigris);
}
.layer-head[aria-expanded="true"] .layer-more {
  border-color: var(--verdigris);
  background: var(--verdigris);
}
.layer-head[aria-expanded="true"] .layer-more::before,
.layer-head[aria-expanded="true"] .layer-more::after {
  background: var(--paper);
}
.layer-head[aria-expanded="true"] .layer-more::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.layer-body-inner {
  min-height: 0;
  padding: 0 var(--layer-pad) 1.7rem;
  max-width: 62ch;
}
/* Without JS every layer stays open and readable; the collapse is an
   enhancement layered on top, never a prerequisite for seeing the content. */
.js-ready .layer-more {
  visibility: visible;
}
.js-ready .layer-body {
  height: 0;
  overflow: hidden;
  transition: height 300ms var(--ease);
}
.layer-body p {
  font-size: 1.02rem;
}

/* What an engagement at this layer actually covers. */
.layer-scope {
  border-left: 2px solid var(--verdigris);
  padding-left: 1rem;
  color: var(--slate);
  font-size: 0.98rem;
  margin-bottom: 0;
}

.scope-label {
  display: block;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--verdigris-deep);
  margin-bottom: 0.2rem;
}

/* --------------------------------------------------------------------------
   Proof
   -------------------------------------------------------------------------- */
.proof {
  background: var(--paper);
  max-width: none;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.proof > * {
  max-width: var(--page);
  margin-inline: auto;
}

.cases {
  display: grid;
  column-gap: clamp(1.5rem, 3vw, 2.5rem);
  row-gap: clamp(2.25rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
}

/* Each card occupies three shared rows -- heading, blurb, figures -- so the
   three bands line up across a row however unevenly the copy wraps. */
@supports (grid-template-rows: subgrid) {
  .case {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
}

.case h3 {
  align-self: start;
  font-size: 1.22rem;
  margin: 0 0 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}
.case > p {
  align-self: start;
  color: var(--slate);
  font-size: 1rem;
  margin: 0 0 1.35rem;
}

.figures {
  align-self: start;
  margin: 0;
}
.figures > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px dotted var(--rule);
}
.figures dt {
  font-size: 0.9rem;
  color: var(--slate);
}
.figures dd {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.025em;
  color: var(--verdigris-deep);
  white-space: nowrap;
}

/* Early trust signal: sits under the hero CTA, inside the first scroll. */
.hero-credit {
  margin: 1.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  max-width: 62ch;
  color: var(--slate);
  font-size: 0.98rem;
}
.hero-credit strong {
  color: var(--ink);
  font-weight: 600;
}

/* Objection handling */
.faq {
  border-top: 1px solid var(--rule);
}
.faq-list {
  margin: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ink);
}
.faq-list > div {
  display: grid;
  gap: 0.4rem 2.5rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) 0;
  border-bottom: 1px solid var(--rule);
}
.faq-list dt {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.faq-list dd {
  margin: 0;
  color: var(--slate);
  font-size: 1rem;
  max-width: 62ch;
}

@media (min-width: 860px) {
  .faq-list > div {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

/* --------------------------------------------------------------------------
   Engagements
   -------------------------------------------------------------------------- */
.modes {
  display: grid;
  gap: clamp(1.75rem, 3.5vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.mode h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}
.mode-line {
  font-family: var(--display);
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: var(--verdigris-deep);
  margin-bottom: 0.9rem;
}
.mode > p:last-child {
  color: var(--slate);
  font-size: 1rem;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Founder
   -------------------------------------------------------------------------- */
.founder {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
.founder-portrait img {
  display: block;
  width: 100%;
  border-radius: 2px;
  filter: grayscale(0.25) contrast(1.03);
}
.founder-text h2 {
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  margin-bottom: 1rem;
}

.credentials {
  list-style: none;
  margin: 1.75rem 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  max-width: var(--measure);
}
.credentials li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.97rem;
  color: var(--slate);
}
.credentials span {
  display: block;
  font-family: var(--display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.founder-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* --------------------------------------------------------------------------
   Voices
   -------------------------------------------------------------------------- */
.voices {
  border-top: 1px solid var(--rule);
}
.voices h2 {
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.quotes {
  display: grid;
  gap: clamp(1.75rem, 3.5vw, 2.75rem);
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.quotes blockquote {
  margin: 0;
  padding-top: 1.4rem;
  border-top: 2px solid var(--ink);
}
.quotes p {
  font-size: 1.02rem;
  font-style: italic;
  color: var(--ink);
}
.quotes footer {
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--slate);
}

/* --------------------------------------------------------------------------
   Close
   -------------------------------------------------------------------------- */
.close {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--rule);
}
.close h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  margin-bottom: 0.8rem;
}
.close-trust {
  color: var(--slate);
  font-size: 1rem;
}
.close-trust ul {
  margin: 0;
  padding-left: 1.1rem;
}
.close-trust li {
  margin-bottom: 0.4rem;
}
.close-cta p {
  color: var(--slate);
}
.close-alt {
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--stone-deep);
  padding: clamp(2.75rem, 6vw, 4.5rem) var(--gutter) 2rem;
}
.foot-grid {
  max-width: var(--page);
  margin-inline: auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.foot-logo {
  width: 120px;
  margin-bottom: 1rem;
  filter: invert(1) brightness(1.9);
}
.site-footer p {
  font-size: 0.95rem;
  color: var(--slate-soft);
}
.site-footer h3 {
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  color: var(--stone);
  margin-bottom: 0.8rem;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li {
  margin-bottom: 0.45rem;
}
.site-footer a {
  color: var(--stone-deep);
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(233, 231, 226, 0.25);
}
.site-footer a:hover {
  color: #fff;
  border-bottom-color: currentColor;
}
.foot-bottom {
  max-width: var(--page);
  margin: 3rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(233, 231, 226, 0.14);
  font-size: 0.85rem !important;
}

/* --------------------------------------------------------------------------
   Breakpoints
   -------------------------------------------------------------------------- */
@media (min-width: 720px) {
  .founder {
    grid-template-columns: 320px minmax(0, 1fr);
  }
  /* The portrait rides along instead of leaving a column of dead space. */
  .founder-portrait {
    position: sticky;
    top: 7rem;
  }
  .close {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .span-marker {
    display: block;
  }
  .layer-head {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) auto;
    grid-template-areas: "name gloss more";
    align-items: center;
    gap: 2rem;
  }
}

/* Below the nav breakpoint the menu collapses into a real disclosure,
   rather than hiding the links with no replacement. */
@media (max-width: 780px) {
  .nav-toggle {
    display: inline-flex;
    order: 2;
  }
  .masthead nav {
    order: 3;
    flex-basis: 100%;
    display: none;
  }
  .masthead nav.open {
    display: block;
  }
  .masthead nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 0.25rem;
  }
  .masthead nav li {
    border-top: 1px solid var(--rule-soft);
  }
  .masthead nav a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1rem;
  }
  .nav-book {
    text-align: center;
    margin-top: 0.75rem;
  }
}

@media (max-width: 520px) {
  .hero-intro h1 {
    letter-spacing: -0.028em;
  }
  .figures > div {
    flex-direction: column;
    gap: 0.1rem;
    align-items: flex-start;
  }
}

/* --------------------------------------------------------------------------
   Motion — one orchestrated entrance, nothing else
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .stack .layer {
    opacity: 0;
    transform: translateY(14px);
  }
  .js-ready .stack .layer {
    animation: settle 620ms var(--ease) forwards;
  }
  /* Bottom-up: the stack assembles from its foundation. */
  .js-ready .layer[data-layer="1"] { animation-delay: 60ms; }
  .js-ready .layer[data-layer="2"] { animation-delay: 150ms; }
  .js-ready .layer[data-layer="3"] { animation-delay: 240ms; }
  .js-ready .layer[data-layer="4"] { animation-delay: 330ms; }
  .js-ready .layer[data-layer="5"] { animation-delay: 420ms; }
  .js-ready .layer[data-layer="6"] { animation-delay: 510ms; }

  .js-ready .span-line {
    animation: draw 700ms var(--ease) 560ms backwards;
  }
  .js-ready .span-text {
    animation: fade 500ms linear 1080ms backwards;
  }

  @keyframes settle {
    to {
      opacity: 1;
      transform: none;
    }
  }
  @keyframes draw {
    from {
      transform: scaleY(0);
    }
  }
  @keyframes fade {
    from {
      opacity: 0;
    }
  }
}

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

@media print {
  .masthead,
  .nav-toggle,
  .hero-actions,
  .close-cta a {
    display: none;
  }
  body {
    background: #fff;
  }
  .layer-body {
    grid-template-rows: 1fr;
  }
}
