/* The Interconnectionism Pod -- guest page */

:root {
  --ink-0: #08120E;
  --ink-1: #0E1913;
  --fir: #1E4A32;
  --fir-deep: #123526;
  --ink-2: #08221A;

  --head: #E9EDE7;
  --body: #D6DAD1;
  --body-2: #C1C5BB;
  --muted: #93A69C;

  --fire: #D9527A;
  --fire-hover: #E36B8F;
  --water: #4A90C4;

  --cream: #F5F3EE;
  --cream-ink: #1A221D;
  --cream-body: #55605A;

  --line: rgba(147, 166, 156, 0.22);
  --line-strong: rgba(147, 166, 156, 0.38);

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

  --measure: 760px;
  --wide: 1100px;
  --gutter: clamp(20px, 5vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--ink-0);
  background-image: linear-gradient(180deg,
    #08120E 0%,
    #0E1913 24%,
    #1E4A32 52%,
    #123526 76%,
    #08221A 100%);
  color: var(--body);
  font-family: var(--serif-body);
  font-size: 19px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--serif-display);
  color: var(--head);
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
}

h2 { font-size: clamp(34px, 5vw, 50px); letter-spacing: -0.005em; }

p { margin: 0; }

a { color: var(--head); text-underline-offset: 3px; text-decoration-color: var(--fire); }
a:hover { color: #fff; }

:focus-visible { outline: 2px solid var(--water); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Shared pieces ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow--fire { color: var(--fire); }
.eyebrow--water { color: var(--water); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 34px;
  border: 0;
  border-radius: 999px;
  background: var(--fire);
  color: var(--ink-0);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--fire-hover); color: var(--ink-0); transform: translateY(-1px); }
.btn:focus-visible { outline-color: var(--head); }

.section {
  padding: clamp(80px, 12vw, 140px) var(--gutter);
}

.measure {
  max-width: var(--measure);
  margin: 0 auto;
}

.lede {
  margin-top: 28px;
  color: var(--body);
}

/* Branching-line motif */
.divider {
  display: block;
  width: min(var(--wide), calc(100% - 2 * var(--gutter)));
  height: 80px;
  margin: 0 auto;
  fill: none;
  stroke: var(--muted);
  stroke-opacity: 0.45;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  overflow: visible;
}

/* Draw-in on scroll (only when JS has marked the page ready) */
.js .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.4s cubic-bezier(.45, 0, .2, 1);
}
.js .draw.is-drawn { stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .draw { stroke-dashoffset: 0; transition: none; }
}

/* ---------- 1. Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px var(--gutter);
  overflow: hidden;
  text-align: center;
}

.hero__image {
  position: absolute;
  inset: 0;
  background-color: var(--ink-0);
  background-image:
    linear-gradient(180deg, rgba(8,18,14,.82) 0%, rgba(8,18,14,.70) 45%, rgba(8,18,14,.84) 80%, #08120E 100%),
    url("/.netlify/images?url=/images/hero.jpg&w=2400&fm=webp"),
    radial-gradient(ellipse at 50% 70%, #16372A 0%, #0B1812 60%, #08120E 100%);
  background-size: cover, cover, cover;
  background-position: center, center 65%, center;
}

.hero__roots {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 60%;
  fill: none;
  stroke: var(--water);
  stroke-opacity: 0.28;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.hero__roots path { vector-effect: non-scaling-stroke; }

.hero__content {
  position: relative;
  max-width: var(--measure);
}

.hero__title {
  font-size: clamp(46px, 9vw, 96px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.hero__tagline {
  margin-top: 18px;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(24px, 3.4vw, 34px);
  color: var(--head);
}

.hero__body {
  margin: 30px auto 40px;
  max-width: 600px;
  color: var(--body);
}

/* ---------- 2. Definition ---------- */

.section--definition {
  padding-top: clamp(96px, 12vw, 150px);
}

.def {
  max-width: var(--wide);
  margin: 0 auto;
  text-align: center;
}

.def__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 4px 22px;
}
.def__word {
  font-family: var(--serif-display);
  font-size: clamp(36px, 7.4vw, 92px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--head);
}
.def__pos {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--muted);
}
.def__etym {
  margin: 20px auto 0;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}
.def__etym em { color: var(--body-2); }

.spiral {
  display: block;
  width: 100%;
  height: clamp(170px, 22vw, 240px);
  margin: clamp(24px, 3vw, 30px) auto;
  fill: none;
  stroke-width: 1;
  overflow: visible;
}
.spiral path { vector-effect: non-scaling-stroke; }
.s-main  { stroke: var(--muted); stroke-opacity: .62; }
.s-braid { stroke: var(--water); stroke-opacity: .5; }
.s-trib  { stroke: var(--muted); stroke-opacity: .3; }
.s-heart { fill: var(--fire); }
.js .spiral .s-heart { opacity: 0; transition: opacity .8s ease 2s; }
.js .spiral.is-drawn .s-heart { opacity: 1; }
.js .spiral.draw { transition-duration: 3.2s; }

.def__first {
  font-family: var(--serif-display);
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.2;
  color: var(--head);
}
.def__first span { color: var(--fire); }

.def__senses {
  margin-top: clamp(44px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 72px;
  text-align: left;
}
.def__label {
  margin-bottom: 10px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.def__senses p:not(.def__label) {
  font-style: italic;
  line-height: 1.7;
  color: var(--body-2);
}

.def__quote {
  margin: clamp(56px, 6vw, 80px) auto 0;
  max-width: 880px;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.35;
  color: var(--head);
}

/* ---------- 3. Conversation ---------- */

.pullquote {
  margin-top: 56px;
  padding: 6px 0 6px 28px;
  border-left: 2px solid var(--water);
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(30px, 4.6vw, 44px);
  line-height: 1.2;
  color: var(--head);
}

/* ---------- 4. Voices grid ---------- */

.voices {
  list-style: none;
  margin: 64px auto 0;
  padding: 0;
  max-width: var(--wide);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.voice {
  padding: 32px 30px 34px;
  background: rgba(8, 18, 14, 0.42);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color .25s ease;
}
.voice:hover { border-color: var(--line-strong); }

.voice__title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
}
.voice__title--fire { color: var(--fire); }
.voice__title--water { color: var(--water); }
.voice p {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--body-2);
}

/* ---------- 5. What to expect ---------- */

.expect {
  margin: 56px auto 0;
  max-width: var(--wide);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 64px;
}
.expect__item {
  padding-left: 24px;
  border-left: 2px solid var(--fire);
}
.expect__item h3 {
  font-size: 28px;
  font-weight: 600;
}
.expect__item p {
  margin-top: 10px;
  color: var(--body-2);
}

/* ---------- 6. Host + invitation ---------- */

.host {
  max-width: 920px;
  margin: 0 auto;
}
.host__trio { margin: clamp(36px, 5vw, 56px) 0 0; }
.host__photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.host__photos img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  background: #123526;
}
.host__trio figcaption {
  margin-top: 22px;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(21px, 2.4vw, 26px);
  line-height: 1.35;
  color: var(--body);
  text-align: center;
}
.host__text { max-width: none; }

.host__name { font-size: clamp(38px, 5vw, 52px); }
.host__bio p { color: var(--body-2); }
.host__text em { color: var(--body); }

.invite {
  max-width: var(--measure);
  margin: clamp(96px, 12vw, 140px) auto 0;
  padding-top: clamp(64px, 8vw, 88px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 32px;
}
.invite h2 { font-size: clamp(38px, 6vw, 60px); }
.invite__sub {
  margin-top: 16px;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(22px, 2.8vw, 26px);
  line-height: 1.4;
  color: var(--body);
}

.form { margin-top: 48px; display: grid; gap: 26px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }

.field { display: grid; gap: 10px; }
.field label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field .optional {
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 500;
  color: rgba(147,166,156,.75);
  margin-left: 6px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(8, 18, 14, 0.55);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--head);
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.5;
  transition: border-color .2s ease, background-color .2s ease;
}
.field input { min-height: 52px; }
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder { color: rgba(147,166,156,.6); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--water);
  background: rgba(8, 18, 14, 0.75);
}

.form .btn { justify-self: start; margin-top: 8px; min-width: 160px; }
.form .btn[disabled] { opacity: .6; cursor: progress; }

.form__error { color: #F0A3B9; font-size: 16px; }

.thanks {
  margin-top: 48px;
  padding: 36px 34px;
  border-left: 2px solid var(--fire);
  background: rgba(8, 18, 14, 0.45);
  border-radius: 0 6px 6px 0;
}
.thanks__title {
  font-family: var(--serif-display);
  font-size: 36px;
  color: var(--head);
  margin-bottom: 8px;
}

/* ---------- Footer ---------- */

.footer {
  padding: 24px var(--gutter) 64px;
  text-align: center;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.divider--footer { margin-bottom: 36px; stroke-opacity: .35; }
.footer a { color: var(--muted); text-decoration-color: rgba(147,166,156,.4); }
.footer a:hover { color: var(--head); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .voices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { font-size: 18px; }
  .voices { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .voice { padding: 26px 24px 28px; }
  .expect { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .host__photos { gap: 8px; }
  .host__photos img { border-radius: 4px; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .form .btn { justify-self: stretch; }
  .def__senses { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pullquote { padding-left: 20px; }
  .divider { height: 56px; }
}

.nb { white-space: nowrap; }

/* Founding / practical lines */
.hero__founding {
  margin-top: 28px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fire);
}
.hero__meta {
  margin-top: 8px;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(19px, 2vw, 21px);
  line-height: 1.4;
  color: var(--body-2);
}
.invite__founding {
  margin-top: 20px;
  padding-left: 20px;
  border-left: 2px solid var(--fire);
  font-size: 18px;
  line-height: 1.6;
}
.form__note { font-size: 16px; color: var(--muted); margin-top: -8px; }

.host__ig {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--head);
  text-decoration: none;
}
.host__ig svg { flex-shrink: 0; fill: none; stroke: var(--fire); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.host__ig .dot { fill: var(--fire); }
.host__handle { color: var(--fire); }
.host__handle { text-decoration: underline; text-underline-offset: 3px; }
.host__ig:hover .host__handle { color: var(--fire-hover); }

.host__about {
  margin-top: 18px;
  display: flex;
  flex-direction: row-reverse;
  gap: 48px;
  align-items: flex-start;
}
.host__bio { flex: 1 1 0; }
.host__book {
  flex-shrink: 0;
  width: 180px;
  display: block;
  text-decoration: none;
}
.host__book img {
  width: 100%;
  height: auto;
  border-radius: 3px;
  display: block;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.6);
  transition: transform .25s ease;
}
.host__book:hover img { transform: translateY(-3px); }
@media (max-width: 720px) {
  .host__about { display: block; }
  .host__book { float: right; width: 112px; margin: 6px 0 12px 16px; }
    .host__trio { clear: both; }
}

.book-link { color: var(--head); text-decoration: underline; text-decoration-color: var(--fire); text-underline-offset: 3px; }
.book-link:hover { color: #fff; }
