/* The landing page, in the company's colours: cream page, blush light at the
   centre, sage, rust and rose from the mark. The mycelium behind it is drawn
   by rhizome-eval.js on the canvas; the page scrolls over it. Fonts are served
   from assets/fonts (OFL 1.1, see fonts/OFL.txt): JetBrains Mono Bold for the
   wordmark, Outfit for the text. */
@font-face {
  font-family: "JetBrains Mono Wordmark"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/jetbrains-mono-laccaria-bold.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/outfit.woff2") format("woff2");
}
:root {
  --cream: #fef7f4;
  --blush: #f3e9e5;
  --line: #e6d8d2;
  --sage: #bfcdc7;
  --sage-deep: #5d786e;   /* the sage, dark enough to read as text */
  --sage-ink: #3f574e;    /* the contact panel */
  --rust: #893322;
  --brick: #b04037;
  --rose: #c46468;
  --charcoal: #2b2c2c;
  --graphite: #4b4d4d;    /* the wordmark: dark grey, softer than the text */
  --soft: #6f605c;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--charcoal);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* The light at the centre stays in place while the page scrolls. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, #fffdfc 0%, var(--cream) 55%, var(--blush) 100%);
}
canvas#rhizome {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; border-radius: 4px; }

main {
  position: relative;
  z-index: 1;
  flex: 1;
  width: min(100% - 32px, 1060px);
  margin-inline: auto;
  padding: clamp(2.4rem, 7vh, 4.5rem) 0 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ---------- hero ---------- */
.hero { display: flex; flex-direction: column; align-items: center; }
.mark {
  width: clamp(104px, 16vw, 148px);
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(137, 51, 34, .14));
  opacity: 0;
  animation: rise 1.4s var(--ease) .15s forwards, turn 120s linear 1.6s infinite;
}
.word {
  margin-top: 1rem;
  font-family: "JetBrains Mono Wordmark", ui-monospace, monospace;
  font-weight: 700;
  font-size: clamp(1.6rem, 4.4vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: .02em;
  color: var(--graphite);
  opacity: 0;
  animation: rise 1.2s var(--ease) .45s forwards;
}
.eyebrow {
  margin-top: clamp(1.8rem, 5vh, 2.8rem);
  padding: .42rem 1rem;
  border: 1px solid var(--sage);
  border-radius: 999px;
  background: rgba(255, 253, 252, .8);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sage-deep);
  opacity: 0;
  animation: rise 1.2s var(--ease) .75s forwards;
}
h1 {
  margin-top: 1.3rem;
  max-width: 17ch;
  font-weight: 500;
  font-size: clamp(2.1rem, 6.2vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
  opacity: 0;
  animation: rise 1.2s var(--ease) .95s forwards;
}
h1 strong { font-weight: 600; color: var(--sage-deep); }
.lede {
  margin-top: 1.4rem;
  max-width: 39rem;
  font-weight: 300;
  font-size: clamp(1.08rem, 2.2vw, 1.3rem);
  line-height: 1.5;
  color: var(--graphite);
  text-wrap: pretty;
  opacity: 0;
  animation: rise 1.2s var(--ease) 1.15s forwards;
}

/* ---------- the three risks ---------- */
.risks {
  width: 100%;
  margin-top: clamp(2.4rem, 6vh, 3.6rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  text-align: left;
}
.risk {
  position: relative;
  padding: 1.7rem 1.6rem 1.8rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 252, .9);
  box-shadow: 0 1px 2px rgba(137, 51, 34, .04), 0 14px 34px -22px rgba(137, 51, 34, .3);
  overflow: hidden;
  opacity: 0;
  animation: rise 1.1s var(--ease) 1.4s forwards;
  transition: translate .25s var(--ease), border-color .25s ease, box-shadow .25s ease;
}
.risk:nth-child(2) { animation-delay: 1.52s; }
.risk:nth-child(3) { animation-delay: 1.64s; }
/* A thin line in the colours of the mark along the top edge. */
.risk::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sage), var(--rose) 60%, var(--rust));
  opacity: .75;
}
.risk:hover {
  translate: 0 -3px;
  border-color: var(--sage);
  box-shadow: 0 1px 2px rgba(137, 51, 34, .05), 0 22px 40px -22px rgba(137, 51, 34, .38);
}
.icon { display: block; width: 44px; height: 44px; color: var(--rust); }
.risk h2 {
  margin-top: 1.1rem;
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.005em;
}
.risk p { margin-top: .5rem; font-size: .98rem; line-height: 1.55; color: var(--soft); }

.answer {
  margin-top: clamp(2.2rem, 6vh, 3.4rem);
  max-width: 30rem;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.01em;
  text-wrap: balance;
  opacity: 0;
  animation: rise 1.1s var(--ease) 1.8s forwards;
}
.answer strong { font-weight: 600; color: var(--sage-deep); }

/* ---------- contact ---------- */
.cta {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin-top: clamp(1.8rem, 5vh, 2.6rem);
  padding: clamp(1.9rem, 5vw, 2.8rem) clamp(1.3rem, 5vw, 3rem);
  border-radius: 24px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(196, 100, 104, .28) 0%, rgba(196, 100, 104, 0) 55%),
    linear-gradient(160deg, #4b665c 0%, var(--sage-ink) 100%);
  color: var(--cream);
  box-shadow: 0 26px 50px -28px rgba(43, 44, 44, .55);
  scroll-margin-top: 1.5rem;
  opacity: 0;
  animation: rise 1.1s var(--ease) 1.95s forwards;
}
.cta h2 {
  font-size: clamp(1.35rem, 3.4vw, 1.8rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.cta-text { margin-top: .7rem; font-size: 1.1rem; font-weight: 300; color: #e9efec; }
.cta-text a {
  color: #fff;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .45);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.cta-text a:hover { text-decoration-color: #fff; }
.cta-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 46px;
  padding: .7rem 1.4rem;
  border: 1px solid var(--cream);
  border-radius: 999px;
  background: var(--cream);
  color: var(--rust);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: translate .18s var(--ease), background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn svg { flex: none; }
.btn:hover { translate: 0 -1px; background: #fff; border-color: #fff; }
.btn:active { translate: none; }
.btn[hidden] { display: none; }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(254, 247, 244, .5); min-width: 11.2rem; }
.btn-ghost:hover { background: rgba(254, 247, 244, .12); border-color: var(--cream); }
.btn-ghost.done { background: rgba(254, 247, 244, .16); border-color: var(--cream); }
.cta :focus-visible { outline-color: var(--cream); }
.cta-note { margin-top: 1.2rem; min-height: 1.5em; font-size: .88rem; color: #cfdbd6; }

/* ---------- stay tuned ---------- */
.soon {
  margin-top: clamp(2.4rem, 7vh, 3.6rem);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--soft);
  opacity: 0;
  animation: rise 1.1s var(--ease) 2.15s forwards;
}
.soon::before {
  content: "";
  flex: none;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--brick);
  animation: pulse 2.6s ease-out infinite;
}
footer {
  position: relative;
  z-index: 1;
  padding: 0 16px 1.4rem;
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  font-size: .75rem;
  letter-spacing: .12em;
  color: var(--soft);
}
footer a { color: inherit; text-decoration: none; }
footer a:hover, footer a:focus-visible { color: var(--rust); text-decoration: underline; }

/* The field the copy button falls back to; never seen. */
.offscreen { position: fixed; top: 0; left: -9999px; opacity: 0; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
/* The mark turns very slowly once it is in place. */
@keyframes turn {
  from { rotate: 0deg; }
  to   { rotate: 360deg; }
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(176, 64, 55, .5); }
  70%  { box-shadow: 0 0 0 .7rem rgba(176, 64, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(176, 64, 55, 0); }
}

@media (max-width: 860px) {
  .risks { grid-template-columns: 1fr; max-width: 620px; }
  .risk { display: grid; grid-template-columns: auto 1fr; column-gap: 1.1rem; padding: 1.4rem 1.3rem 1.5rem; }
  .risk .icon { grid-row: 1 / span 2; margin-top: .1rem; }
  .risk h2 { margin-top: 0; }
  .risk p { grid-column: 2; }
}
@media (max-width: 420px) {
  .eyebrow { letter-spacing: .14em; }
  .soon { letter-spacing: .2em; }
  .cta-actions { flex-direction: column; }
  .icon { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mark, .word, .eyebrow, h1, .lede, .risk, .answer, .cta, .soon { animation: none; opacity: 1; }
  .soon::before { animation: none; }
  .risk, .btn { transition: none; }
  .risk:hover, .btn:hover { translate: none; }
}
