/* INOKULUM, Living Field world (Nov 2026). Loaded on every page after site.css.
   Ground: near-black carrying the WebGL field on the homepage. Three currents: lime Strategy, violet Creative,
   teal Digital (the original INOKULUM palette). Display: Anybody, condensed. Body and labels: Satoshi. Thin hairlines, square controls. */
@layer site {
  :root { --fx-ease: cubic-bezier(0.16, 1, 0.3, 1); --scope: var(--headline); --font-mono: "Satoshi", ui-sans-serif, system-ui, sans-serif; }
  [data-scope=strategy], [data-current=strategy] { --scope: var(--strategy); }
  [data-scope=creative], [data-current=creative] { --scope: var(--creative); }
  [data-scope=digital], [data-current=digital] { --scope: var(--digital); }

  html { background: var(--ground); }
  ::selection { background: var(--spore); color: var(--carbon); }
  html { scrollbar-color: var(--ink-700) var(--ground); }
  input, select, textarea { caret-color: var(--creative); }
  ::placeholder { color: #8a938c; opacity: 1; }
  a { text-underline-offset: 0.22em; text-decoration-thickness: 1px; }

  /* Controls: square, hairline, tracked caps, arrow drawn as a mask. */
  .ino-btn { border-radius: 2px; min-height: 3.25rem; padding: 0.8rem 1.25rem; gap: 1.6rem;
    background: var(--spore); border-color: var(--spore); color: var(--carbon); box-shadow: none; }
  .ino-btn:hover { color: var(--carbon); background: color-mix(in srgb, var(--spore) 82%, #fff);
    box-shadow: 0 0.9rem 2.4rem -0.8rem color-mix(in srgb, var(--spore) 45%, transparent); }
  .ino-btn[data-variant=secondary] { background: color-mix(in srgb, var(--ground) 70%, transparent); border-color: var(--line-strong); color: var(--text); box-shadow: none; }
  .ino-btn[data-variant=secondary]:hover { border-color: var(--text); background: color-mix(in srgb, var(--culture) 6%, transparent); }
  :is([data-surface="light"], [data-surface="spore"]) .ino-btn[data-variant=secondary] { color: var(--carbon); border-color: var(--carbon); }
  [data-surface="spore"] { --text-muted: #2a302d; --accent-ink: #1c211e; }
  :is([data-surface="light"], [data-surface="spore"]) .ino-btn:not([data-variant]),
  :is([data-surface="light"], [data-surface="spore"]) .ino-btn:not([data-variant]):hover { background: var(--carbon); border-color: var(--carbon); color: var(--culture); box-shadow: none; }
  .page-cta p { opacity: 1; }
  .page-cta .ino-btn:hover, .cta-card .ino-btn[data-variant=carbon]:hover { background: #000; border-color: #000; color: var(--culture); box-shadow: none; }
  .footer a.ino-btn, .footer a.ino-btn:hover { color: var(--carbon); }
  .ino-btn[data-variant=carbon] { background: var(--ground); color: var(--culture); border-color: var(--line-strong); box-shadow: none; }

  /* ---------------------------------------------------------------- the field */
  .field { position: fixed; inset: 0; z-index: -1; width: 100vw; height: 100vh; display: block; }
  .field-fallback { position: fixed; inset: 0; z-index: -2;
    background:
      radial-gradient(60% 50% at 78% 38%, color-mix(in srgb, var(--strategy) 38%, transparent), transparent 70%),
      radial-gradient(40% 40% at 92% 78%, color-mix(in srgb, var(--creative) 34%, transparent), transparent 70%),
      radial-gradient(35% 30% at 60% 12%, color-mix(in srgb, var(--digital) 18%, transparent), transparent 70%),
      var(--ground); }
  body:has(#field) { background: transparent; }

  /* Header: a void glass bar over the field. */
  .nav { background: color-mix(in srgb, var(--ground) 82%, transparent); }

  /* ---------------------------------------------------------------- hero */
  .fh { position: relative; min-height: calc(100svh - 4.5rem); display: grid; overflow-x: clip; }
  .nav-toggle { border-radius: 2px; }
  .footer { background: color-mix(in srgb, var(--ground) 90%, transparent); }
  .fh-frame { position: relative; display: grid; grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr);
    align-items: center; width: min(100% - 4rem, 112rem); margin-inline: auto; padding-block: 4rem 5rem; }
  .fh-rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2.5rem, 7vh, 5rem); }
  .fh-rail a { display: grid; gap: 0.35rem; color: var(--text-muted); text-decoration: none; font-size: 0.72rem;
    letter-spacing: var(--tracking-micro-wide); text-transform: uppercase; transition: color 0.3s var(--fx-ease); }
  .fh-rail a span { font-family: var(--font-display); font-stretch: 80%; font-size: 1.05rem; letter-spacing: 0.08em; color: var(--culture); }
  .fh-rail a[data-current-hover=strategy]:hover, .fh-rail a[data-current-hover=strategy]:focus-visible { color: var(--strategy); }
  .fh-rail a[data-current-hover=creative]:hover, .fh-rail a[data-current-hover=creative]:focus-visible { color: var(--creative); }
  .fh-rail a[data-current-hover=digital]:hover, .fh-rail a[data-current-hover=digital]:focus-visible { color: var(--digital); }
  .fh-copy { position: relative; max-width: 70rem; }
  /* A soft pool of void behind the copy keeps the sub and buttons legible wherever a current passes. */
  .fh-copy::before { content: ""; position: absolute; inset: -12% -18% -14% -10%; z-index: -1; pointer-events: none;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--ground) 90%, transparent) 55%, transparent); }
  .fh-sub, .fh-actions { position: relative; }
  .fh-sub::before { content: ""; position: absolute; inset: -0.6rem -1.2rem; z-index: -1; pointer-events: none;
    background: color-mix(in srgb, var(--ground) 72%, transparent); filter: blur(14px); }
  .fh-title { margin: 0; color: var(--headline); font-family: var(--font-display); font-stretch: 52%; font-weight: 520;
    font-size: clamp(4.2rem, 12.4vw, 12.5rem); line-height: 0.84; letter-spacing: -0.005em; text-transform: uppercase; }
  .fh-title span { display: block; }
  [data-motion] .fh-title span { animation: fh-condense 1.5s var(--fx-ease) both; }
  [data-motion] .fh-title span + span { animation-delay: 0.12s; }
  @keyframes fh-condense { from { font-stretch: 110%; opacity: 0.001; filter: blur(14px); } 40% { opacity: 1; } to { font-stretch: 52%; filter: blur(0); } }
  .fh-sub { max-width: 36rem; margin: 2.2rem 0 0; color: var(--ink-100); font-size: clamp(1rem, 1.15vw, 1.15rem); line-height: 1.6; letter-spacing: 0.01em; text-wrap: pretty; }
  .fh-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
  .fh-readout { position: absolute; right: 0; bottom: 3rem; display: grid; grid-template-columns: auto auto; column-gap: 0.7rem; row-gap: 0.25rem;
    align-items: center; margin: 0; color: var(--text-muted); font-size: 0.72rem; letter-spacing: var(--tracking-micro-wide); text-transform: uppercase; }
  .fh-readout b { grid-column: 2; color: var(--culture); font-weight: 600; font-size: 0.72rem; }
  .fh-dot { grid-row: span 2; width: 0.5rem; aspect-ratio: 1; border-radius: 50%; background: var(--scope);
    box-shadow: 0 0 0.9rem var(--scope); transition: background 0.5s var(--fx-ease), box-shadow 0.5s var(--fx-ease); }
  :root[data-current] .fh-dot { background: var(--scope); }

  /* ---------------------------------------------------------------- sections */
  .fs { position: relative; padding-block: clamp(6rem, 12vw, 11rem); border-top: 1px solid var(--line);
    background: linear-gradient(to bottom, color-mix(in srgb, var(--ground) 55%, transparent), color-mix(in srgb, var(--ground) 78%, transparent)); scroll-margin-top: 3rem; }
  .fs-shell { width: min(100% - 4rem, 100rem); margin-inline: auto; }
  .fs-h { margin: 0; max-width: 18ch; color: var(--headline); font-family: var(--font-display); font-stretch: 56%; font-weight: 520;
    font-size: clamp(3rem, 7.2vw, 7.6rem); line-height: 0.86; letter-spacing: -0.005em; text-transform: uppercase; text-wrap: balance; }
  .fs-lede { max-width: 40rem; margin: 1.8rem 0 0; color: var(--text-muted); font-size: clamp(1rem, 1.2vw, 1.15rem); line-height: 1.6; text-wrap: pretty; }
  .fs-lede a { color: var(--culture); }

  /* Scopes: three currents. Hover isolates one and dims the other two. */
  .sc-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(3.5rem, 7vw, 6rem);
    border-top: 1px solid var(--line); }
  .sc { position: relative; display: flex; flex-direction: column; min-height: 0; padding: 2.2rem clamp(1.2rem, 2.4vw, 2.6rem) 2.4rem;
    border-right: 1px solid var(--line); transition: opacity 0.45s var(--fx-ease), background 0.45s var(--fx-ease); scroll-margin-top: 6rem; }
  .sc:first-child { padding-left: 0; }
  .sc:last-child { border-right: 0; padding-right: 0; }
  .sc::before { content: ""; position: absolute; top: -1px; left: 0; width: 34%; height: 1px; background: var(--scope);
    box-shadow: 0 0 1rem var(--scope); transform-origin: left; transition: width 0.6s var(--fx-ease); }
  .sc:first-child::before { left: 0; }
  .sc:hover::before, .sc:focus-within::before { width: 100%; }
  @media (hover: hover) { .sc-row:hover .sc:not(:hover) { opacity: 0.38; } }
  .sc-name { margin: 0; color: var(--culture); font-family: var(--font-display); font-stretch: 52%; font-weight: 540;
    font-size: clamp(3.4rem, 6.4vw, 6.6rem); line-height: 0.86; text-transform: uppercase; }
  .sc-feel { margin: 1rem 0 2.4rem; color: var(--scope); font-size: 1.05rem; font-weight: 560; filter: brightness(1.25); }
  .sc-list { list-style: none; margin: 0 0 2.4rem; padding: 0; }
  .sc-list li { padding: 0.8rem 0; border-top: 1px solid var(--line); color: var(--ink-100); font-size: 0.95rem; }
  .sc-ways { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2rem; margin: auto 0 0; }
  .sc-ways span { width: 100%; color: var(--text-muted); font-size: 0.72rem; letter-spacing: var(--tracking-micro-wide); text-transform: uppercase; }
  .sc-way { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--culture); font-weight: 600; font-size: 0.95rem;
    text-decoration: underline; text-decoration-color: var(--scope); text-underline-offset: 0.35em; }
  .sc-way:hover { color: var(--scope); filter: brightness(1.3); }

  /* Ways in: a ledger of four rows. */
  .wy-list { list-style: none; margin-top: clamp(3.5rem, 7vw, 6rem); padding: 0; border-top: 1px solid var(--line); }
  .wy { display: grid; grid-template-columns: minmax(10rem, 0.8fr) minmax(0, 1.4fr) minmax(0, 1.6fr) auto; gap: 1.2rem clamp(1.5rem, 3vw, 3.5rem);
    align-items: center; padding: clamp(1.8rem, 3vw, 2.6rem) 0; border-bottom: 1px solid var(--line); transition: background 0.4s var(--fx-ease); }
  .wy:hover { background: linear-gradient(to right, transparent, color-mix(in srgb, var(--strategy) 9%, transparent), transparent); }
  .wy-who { margin: 0; color: var(--text-muted); font-size: 0.72rem; letter-spacing: var(--tracking-micro-wide); text-transform: uppercase; }
  .wy-name { margin: 0; color: var(--culture); font-family: var(--font-display); font-stretch: 56%; font-weight: 540;
    font-size: clamp(2.2rem, 3.8vw, 3.8rem); line-height: 0.9; text-transform: uppercase; transition: color 0.35s var(--fx-ease); }
  .wy:hover .wy-name { color: var(--spore); }
  .wy-feel { grid-column: 3; margin: 0; color: var(--culture); font-weight: 600; }
  .wy-gets { grid-column: 3; margin: -0.6rem 0 0; color: var(--text-muted); font-size: 0.95rem; }
  .wy .ino-btn { grid-column: 4; grid-row: 1 / span 2; }
  .wy-who, .wy-name { grid-row: 1 / span 2; }

  /* How it holds together */
  .fhw { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem);
    margin-top: clamp(3rem, 6vw, 5rem); padding: 0; }
  .fhw li { padding-top: 1.4rem; border-top: 1px solid var(--line-strong); }
  .hw-n { color: var(--text-muted); font-family: var(--font-display); font-stretch: 80%; font-size: 1rem; letter-spacing: 0.08em; }
  .fhw h3 { margin: 1.4rem 0 0.8rem; color: var(--culture); font-family: var(--font-display); font-stretch: 58%; font-weight: 540;
    font-size: clamp(2rem, 3.2vw, 3.2rem); line-height: 0.9; text-transform: uppercase; }
  .fhw p { max-width: 30rem; margin: 0; color: var(--text-muted); }

  /* Start */
  .fstart-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 7vw, 8rem); align-items: start; }
  .fstart-mail { display: inline-block; margin-top: 2.4rem; color: var(--culture); font-family: var(--font-display); font-stretch: 80%;
    font-size: clamp(1.4rem, 2.4vw, 2.4rem); text-decoration-color: var(--creative); }
  .fstart-form { padding: clamp(1.6rem, 3vw, 3rem); border: 1px solid var(--line-strong); border-radius: 4px;
    background: color-mix(in srgb, var(--ink-900) 88%, transparent); }
  .fstart-form .ino-field select { background: transparent; }
  .fstart-form .ino-field select option { background: var(--ink-900); color: var(--culture); }

  /* ---------------------------------------------------------------- small screens */
  @media (max-width: 64rem) {
    .sc-row { grid-template-columns: 1fr; }
    .sc, .sc:first-child, .sc:last-child { min-height: 0; padding: 2.2rem 0 2.6rem; border-right: 0; border-bottom: 1px solid var(--line); }
    .wy { grid-template-columns: 1fr; gap: 0.7rem; }
    .wy-who, .wy-name, .wy-feel, .wy-gets, .wy .ino-btn { grid-column: auto; grid-row: auto; }
    .wy-gets { margin: 0; }
    .wy .ino-btn { justify-self: start; margin-top: 0.6rem; }
    .fhw { grid-template-columns: 1fr; }
    .fstart-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 48rem) {
    .fh-frame { grid-template-columns: 1fr; width: min(100% - 2rem, 112rem); padding-block: 2rem 5rem; align-items: end; }
    .fh-rail { display: none; }
    .fh-title { font-size: clamp(3.6rem, 21vw, 7rem); }
    .fh-readout { left: 0; right: auto; bottom: 1.4rem; }
    .fs-shell { width: min(100% - 2rem, 100rem); }
  }
}

/* ---------------------------------------------------------------- holding page (holding.py): the film, then the contact form */
@layer site {
  /* The whole page is the film's own black, and the film's bottom edge fades to it, so film and page are one surface. */
  .hv-page { --ground: #000; --surface: #000; background: #000; }
  :root:has(.hv-page) { background: #000; }
  /* The film fills the first screen on every device, edge to edge. Nothing sits on it but the down arrow. */
  .hv-film { position: relative; height: 100vh; height: 100svh; min-height: 20rem; overflow: hidden; background: #000; line-height: 0; }
  .hv-film :is(video, canvas, img) { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
  /* Scroll finishes the story. The stage is only the hero until the film script arms it (is-pinned): then it is one
     screen taller and the hero sticks, which gives the scroll a screen in which to carry the film to its wordmark. */
  .hv-stage.is-pinned { height: 200vh; height: 200svh; min-height: 40rem; }
  .hv-stage.is-pinned .hv-film { position: sticky; top: 0; }
  /* Pause is there for keyboard users only: invisible until tabbed to. Pointer and touch users click or tap the film. */
  .hv-toggle { position: absolute; left: 1rem; top: 1rem; min-width: 5.5rem; min-height: var(--touch); padding: 0.5rem 0.9rem; border: 1px solid var(--line-strong); border-radius: 2px;
    background: var(--ground); color: var(--text); cursor: pointer; font-size: 0.72rem; font-weight: 600;
    letter-spacing: var(--tracking-micro-wide); line-height: 1; text-transform: uppercase; opacity: 0; pointer-events: none; }
  .hv-toggle:focus-visible { opacity: 1; pointer-events: auto; }
  .hv-down { position: absolute; left: 50%; bottom: max(1.25rem, env(safe-area-inset-bottom)); display: grid; place-items: center; width: 3rem; height: 3rem;
    margin-left: -1.5rem; border-radius: 50%; color: var(--text); opacity: 0.85; animation: hv-bob 1.6s ease-in-out infinite;
    transition: color 0.3s var(--fx-ease), opacity 0.3s var(--fx-ease); }
  .hv-down:hover, .hv-down:focus-visible { color: var(--spore); opacity: 1; }
  /* While the film runs the arrow keeps still and dim; the script lifts this when the wordmark comes home, the moment to act. */
  .hv-film.is-playing .hv-down:not(:hover, :focus-visible) { opacity: 0.4; animation: none; }
  @keyframes hv-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(0.4rem); } }
  @media (prefers-reduced-motion: reduce) { .hv-down { animation: none; } }
  .hv-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 7vw, 8rem); align-items: start;
    width: min(100% - 4rem, 100rem); margin-inline: auto; padding-block: clamp(3.5rem, 7vw, 7rem) clamp(4rem, 8vw, 8rem); scroll-margin-top: 1rem; }
  /* The contact section arrives in sequence the first time it scrolls into view. The film script sets these classes
     and takes them off again when the arrival is over; without it the section is simply there. */
  .hv-rise :is(.hv-copy > *, .fstart-form) { opacity: 0; transform: translateY(1.25rem); transition: opacity 0.7s var(--fx-ease), transform 0.7s var(--fx-ease); }
  .hv-rise.is-in :is(.hv-copy > *, .fstart-form) { opacity: 1; transform: none; }
  .hv-rise .hv-copy > :nth-child(2) { transition-delay: 0.08s; }
  .hv-rise .hv-copy > :nth-child(3) { transition-delay: 0.16s; }
  .hv-rise .fstart-form { transition-delay: 0.24s; }
  .hv-base { display: flex; align-items: center; width: min(100% - 4rem, 100rem); min-height: 4rem; margin-inline: auto; border-top: 1px solid var(--line); }
  .hv-legal { margin-left: auto; padding-block: 0.9rem; color: var(--text-muted); }
  .hv-legal:hover, .hv-legal:focus-visible { color: var(--culture); }
  /* The privacy notice: one reading column on the same black, the wordmark as the way home. */
  .hv-note { width: min(100% - 4rem, 100rem); min-height: calc(100svh - 4rem - 1px); margin-inline: auto; padding-block: clamp(1.6rem, 4vw, 3rem) clamp(4rem, 8vw, 8rem); }
  .hv-home { display: inline-flex; align-items: center; min-height: 2.75rem; margin-bottom: clamp(3rem, 9vw, 7rem); text-decoration: none; }
  .hv-home .ino-wordmark { --ino-wordmark-size: 1.6rem; }
  .hv-note .fs-lede { margin-bottom: 1rem; }
  .hv-note h2 { max-width: 40rem; margin: 2.4rem 0 0; color: var(--headline); font-family: var(--font-display); font-stretch: 80%; font-weight: 520;
    font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.2; }
  .hv-note h2 + p { max-width: 40rem; margin: 0.7rem 0 0; color: var(--text-muted); font-size: clamp(1rem, 1.2vw, 1.15rem); line-height: 1.6; text-wrap: pretty; }
  .hv-note p a { color: var(--culture); }
  .hv-note > .ino-micro { margin: 3rem 0 0; color: var(--text-muted); }
  @media (max-width: 64rem) {
    .hv-contact { grid-template-columns: 1fr; gap: 2.4rem; }
  }
  @media (max-width: 48rem) {
    .hv-contact, .hv-base, .hv-note { width: min(100% - 2rem, 100rem); }
    .hv-contact { padding-block: 2.6rem 3.5rem; }
  }
}
