/* Home page only. Reads tokens from site.css. */

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 7vw, 88px) 0 0; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero__title {
  margin-top: 14px; font-size: clamp(44px, 6.6vw, 88px); font-weight: 650; line-height: 1.0;
  letter-spacing: -0.045em; font-stretch: 90%; color: var(--ink); text-wrap: balance; max-width: 11ch;
}
.hero .lede { margin-top: 22px; }
.hero__facts { margin-top: 14px; font-size: 15px; color: var(--muted); max-width: 48ch; text-wrap: balance; }
.hero__cta { margin-top: 28px; }

/* Signature drawing: antenna, cluster, agents. Ink lines, one teal signal. */
.hero__art { margin: 0; }
.hv { display: block; width: 100%; height: auto; overflow: visible; }
.hv path, .hv polygon, .hv rect, .hv line, .hv circle { vector-effect: non-scaling-stroke; }
.hv-line { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; opacity: .8; }
.hv-thin { fill: none; stroke: var(--ink); stroke-width: 1; opacity: .38; }
.hv-ground { stroke: var(--hairline-2); stroke-width: 1; }
.hv-box { fill: var(--surface); stroke: var(--ink); stroke-width: 1.3; opacity: .85; }
.hv-plate { fill: var(--surface-2); stroke: var(--hairline-2); stroke-width: 1; }
.hv-pod { fill: none; stroke: var(--ink-2); stroke-width: 1.2; }
.hv-pod--new { stroke: var(--link); stroke-dasharray: 2.5 2.5; }
.hv-arc { fill: none; stroke: var(--link); stroke-width: 1.8; stroke-linecap: round; }
.hv-flow { fill: none; stroke: var(--link); stroke-width: 1.3; stroke-dasharray: 3 5; opacity: .8; }
.hv-edge { stroke: var(--ink); stroke-width: 1; opacity: .35; }
.hv-node { fill: var(--surface); stroke: var(--ink); stroke-width: 1.3; }
.hv-node--hot { fill: var(--cyan); stroke: var(--ink); }
.hv-dot { fill: var(--cyan); }
.hv-label { font: 500 13px/1 var(--sans); fill: var(--muted); letter-spacing: -0.005em; }
@media (max-width: 760px) { .hv-label { font-size: 17px; } }

/* One orchestrated moment on load: the signal leaves the antenna, then the link draws. */
@media (prefers-reduced-motion: no-preference) {
  .hv-arc { animation: hv-arc 1.1s var(--ease-out-quart) both; animation-delay: calc(.25s + var(--i) * .22s); }
  .hv-flow { animation: hv-flow 1.4s var(--ease-out-quart) .9s both; }
  .hv-pod--new { animation: hv-pod 1s var(--ease-out-quart) 1.8s both; }
}
@keyframes hv-arc { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes hv-flow { from { opacity: 0; } to { opacity: .8; } }
@keyframes hv-pod { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Pillars: one panel, three columns, hairlines ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pillar { padding: clamp(24px, 3.4vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.pillar + .pillar { border-left: 1px solid var(--hairline); }
.pillar h3 { font-size: 21px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
.pillar p { font-family: var(--serif); font-size: 16px; line-height: 1.75; color: var(--body); }
.pillar .pills { margin-top: auto; padding-top: 6px; }

/* ---------- Training ---------- */
.audiences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); margin-bottom: clamp(22px, 3vw, 34px); }
.audience h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.015em; }
.audience p { margin-top: 6px; color: var(--body); font-size: 15.5px; line-height: 1.6; }
.program { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; padding: 22px clamp(18px, 3.4vw, 36px); }
.program h3 { font-size: 18px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.3; }
.program p { margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.program .text-link { white-space: nowrap; }
.program .links { flex-direction: column; gap: 0; margin-top: 0; }
.program p a { color: var(--link); }
.after-panel { margin-top: 22px; }

/* ---------- Books ---------- */
.covers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 3vw, 36px); list-style: none; margin: 0; padding: 0; }
.cover a { display: flex; flex-direction: column; gap: 14px; color: inherit; text-decoration: none; border-radius: var(--r-thumb); }
.cover img { width: 100%; aspect-ratio: 5 / 8; object-fit: cover; border-radius: 3px 6px 6px 3px; box-shadow: var(--sh-card); transition: transform .35s var(--ease-out-quart), box-shadow .35s var(--ease-out-quart); }
.cover a:hover img { transform: translateY(-3px); box-shadow: var(--sh-lift); }
.cover__topic { font-size: 14px; font-weight: 650; color: var(--ink); }
.cover__title { display: block; margin-top: 2px; font-family: var(--serif); font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.books-panel { padding: clamp(24px, 4vw, 48px); }
.books-panel .btn-row { margin-top: clamp(24px, 3vw, 36px); }

/* ---------- Talks ---------- */
.talk { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; gap: 6px 28px; align-items: baseline; padding: 22px clamp(18px, 3.4vw, 36px); }
.talk__when { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.talk__event { font-size: 14px; color: var(--muted); }
.talk h3 { margin-top: 2px; font-size: 17.5px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.35; max-width: 52ch; }

/* ---------- Community + author ---------- */
.duo { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(16px, 3vw, 28px); align-items: start; }
.box { padding: clamp(24px, 4vw, 44px); }
.box h2 { font-size: clamp(24px, 2.6vw, 30px); }
.box .prose { margin-top: 14px; }
.box .btn-row { margin-top: 22px; }
.author-head { display: flex; align-items: center; gap: 18px; }
.author-head img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex: none; }
.author-head p { margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.links { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 12px; }

/* ---------- Contact ---------- */
.contact { --c-bg: #0d1b2a; --c-ink: #ffffff; background: var(--c-bg); color: var(--c-ink); border-radius: var(--r-hero); padding: clamp(32px, 6vw, 72px) clamp(24px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px 48px; align-items: end; position: relative; overflow: hidden; }
.contact::after { content: ""; position: absolute; right: clamp(24px, 6vw, 72px); top: clamp(32px, 6vw, 72px); width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); }
.contact h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 650; letter-spacing: -0.035em; line-height: 1.05; color: inherit; max-width: 14ch; }
.contact p { margin-top: 16px; font-family: var(--serif); font-size: 17px; line-height: 1.75; opacity: .82; max-width: 46ch; }
.contact__actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.contact .btn { justify-content: flex-start; padding: 0 22px; min-height: 52px; }
.contact .btn--light { background: var(--c-ink); color: var(--c-bg); }
.contact .btn--light:hover { box-shadow: 0 0 0 4px color-mix(in oklab, var(--c-ink) 18%, transparent); }
.contact .btn--line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--c-ink) 30%, transparent); }
.contact .btn--line:hover { box-shadow: inset 0 0 0 1px var(--c-ink); }
.contact__meta { font-size: 13.5px; opacity: .7; font-variant-numeric: tabular-nums; }

/* In dark mode the block stays dark: a raised surface with a hairline, not an inverted slab. */
:root[data-theme="dark"] .contact { --c-bg: var(--surface); --c-ink: var(--ink); box-shadow: inset 0 0 0 1px var(--hairline-2); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .contact { --c-bg: var(--surface); --c-ink: var(--ink); box-shadow: inset 0 0 0 1px var(--hairline-2); }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 520px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--hairline); }
  .duo { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 760px) {
  .audiences { grid-template-columns: 1fr; gap: 14px; }
  .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .program { grid-template-columns: 1fr; }
  .program .links { flex-direction: row; gap: 0 22px; }
  .talk { grid-template-columns: 1fr; gap: 2px; }
  .talk .text-link { margin-top: 4px; }
}
