/* drishti Technologies GmbH — holding site.
   Layout: one fixed particle canvas behind the page; text sits in a left column and each
   full-height section morphs the canvas into the next formation (field, person, team,
   organisation, cycle). Tokens follow docs/drishti-designsystem.md (night blue default). */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url("fonts/inter.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/instrument-serif.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/instrument-serif-italic.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #09121a;
  --ink: #ffffff;
  --ink-muted: rgba(255, 255, 255, 0.82);
  --ink-label: rgba(255, 255, 255, 0.62);
  --divider: rgba(255, 255, 255, 0.1);
  --glass: rgba(255, 255, 255, 0.045);
  --bar: rgba(9, 18, 26, 0.55);
  --violet: #9c73ff;
  --blue: #00a8e8;
  --amber: #ffc857;
  --glow-a: rgba(156, 115, 255, 0.2);
  --glow-b: rgba(0, 168, 232, 0.16);
  --todo: #ffc857;
  --grad: radial-gradient(140% 160% at 0% 0%, #9c73ff 0%, #00a8e8 55%, #ffc857 100%);
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: max(24px, 5vw);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f1f6fe;
  --ink: rgb(26, 26, 26);
  --ink-muted: rgba(26, 26, 26, 0.74);
  --ink-label: #6b6560;
  --divider: rgba(26, 26, 26, 0.12);
  --glass: rgba(255, 255, 255, 0.5);
  --bar: rgba(241, 246, 254, 0.6);
  --glow-a: rgba(156, 115, 255, 0.3);
  --glow-b: rgba(0, 168, 232, 0.22);
  --todo: #a45a00;
  --grad: radial-gradient(140% 160% at 0% 0%, #7a4df0 0%, #0086c2 55%, #c98a00 100%);
  }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient glow: two radial gradients, no blur filter. */
.glow { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.glow::before, .glow::after { content: ""; position: absolute; border-radius: 50%; }
.glow::before { width: 800px; height: 800px; top: -280px; right: -240px;
  background: radial-gradient(circle, var(--glow-a) 0%, transparent 68%);
  animation: breathe 20s ease-in-out infinite; }
.glow::after { width: 900px; height: 900px; bottom: -360px; left: -300px;
  background: radial-gradient(circle, var(--glow-b) 0%, transparent 68%);
  animation: breathe 24s ease-in-out infinite reverse; }
@keyframes breathe { 50% { transform: scale(1.12) translate(-2%, 2%); } }

#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* Top bar: frosted, never opaque. */
.bar { position: fixed; inset: 0 0 auto; z-index: 5; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; padding: 0.9rem var(--gutter);
  background: var(--bar); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.mark { display: inline-flex; align-items: baseline; gap: 0.55rem; color: var(--ink); text-decoration: none; }
.mark b { font-family: var(--font-serif); font-weight: 400; font-size: 1.6rem; line-height: 1; letter-spacing: -0.01em; }
.mark span { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-label); }
.bar nav { display: flex; align-items: center; gap: 1.4rem; font-size: 0.875rem; }
.bar a.link { color: var(--ink-muted); text-decoration: none; }
.bar a.link:hover { color: var(--ink); }
.lang { display: inline-flex; gap: 0.15rem; }
.lang button { font: inherit; font-weight: 400; color: var(--ink-label); background: none; border: 0;
  padding: 0.3rem 0.45rem; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { color: var(--ink); background: var(--glass); }
.theme { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; padding: 0; border: 0;
  border-radius: 999px; background: var(--glass); color: var(--ink-muted); cursor: pointer; }
.theme:hover { color: var(--ink); }
.theme .moon, :root[data-theme="light"] .theme .sun { display: none; }
:root[data-theme="light"] .theme .moon { display: block; }
.bar nav { gap: 1rem; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

main { position: relative; z-index: 1; }
.stage { min-height: 100svh; display: grid; align-items: center; padding: 7rem var(--gutter) 5rem; }
.stage > .inner { width: 100%; max-width: 76rem; margin-inline: auto; }
.col { max-width: 31rem; }
.hero .col { max-width: 46rem; }
.hero { align-items: start; padding-top: clamp(8rem, 22vh, 13rem); }

.label { display: block; margin: 0 0 1.4rem; font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-label); }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; color: var(--ink); margin: 0;
  text-wrap: balance; letter-spacing: -0.012em; }
h1 { font-size: clamp(2.7rem, 6.2vw, 5.4rem); line-height: 1.02; }
h2 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1.06; }
h3 { font-size: 1.7rem; line-height: 1.15; }
.hl { font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; padding-right: 0.06em; }
p { margin: 1.5rem 0 0; max-width: 34em; text-wrap: pretty; }
.lede { font-size: 1.1875rem; }

.scrollcue { margin-top: 3rem; display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: 0.8125rem; color: var(--ink-label); text-decoration: none; }
.scrollcue i { display: block; flex: none; width: 1px; height: 2.4rem; background: linear-gradient(var(--ink-label), transparent);
  animation: cue 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }

.verbs { list-style: none; margin: 2.4rem 0 0; padding: 0; display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 2rem; max-width: 34rem; }
.verbs li { border-top: 1px solid var(--divider); padding-top: 0.9rem; font-size: 0.9375rem; line-height: 1.55; }
.verbs strong { display: block; font-family: var(--font-serif); font-weight: 400; font-size: 1.45rem;
  color: var(--ink); margin-bottom: 0.25rem; }

.brand { margin-top: 2.2rem; max-width: 31rem; padding: 1.5rem 1.6rem; border-radius: 20px;
  background: var(--glass); border: 1px solid var(--divider);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.brand .row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.brand p { margin-top: 0.6rem; font-size: 0.9375rem; }
.pill { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-label); border: 1px solid var(--divider); border-radius: 999px; padding: 0.25rem 0.7rem;
  white-space: nowrap; }

footer { position: relative; z-index: 1; padding: 2rem var(--gutter) 2.4rem; border-top: 1px solid var(--divider);
  display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; justify-content: space-between;
  font-size: 0.8125rem; color: var(--ink-label); }
footer a { color: var(--ink-muted); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Legal page */
.legal { padding: 9rem var(--gutter) 5rem; }
.legal .inner { max-width: 44rem; margin-inline: auto; }
.legal h1 { font-size: clamp(2.6rem, 5vw, 4rem); }
.legal h2 { font-size: 1.9rem; margin-top: 3.4rem; }
.legal h3 { font-family: var(--font-sans); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-label); margin-top: 2.2rem; }
.legal p, .legal address { margin: 0.7rem 0 0; font-style: normal; max-width: 40em; }
.legal blockquote { margin: 1rem 0 0; padding-left: 1.2rem; border-left: 1px solid var(--divider);
  font-family: var(--font-serif); font-size: 1.35rem; line-height: 1.4; color: var(--ink); }
.legal a { color: var(--ink); }
.todo { color: var(--todo); font-weight: 400; }

@media (max-width: 819px) {
  .stage { align-items: end; padding: 46svh var(--gutter) 4.5rem; }
  .hero { align-items: start; padding-top: 7.5rem; padding-bottom: 30svh; }
  .mark span { display: none; }
  .verbs { gap: 1.1rem 1.2rem; margin-top: 1.6rem; }
  .verbs li { font-size: 0.875rem; }
  .verbs strong { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glow::before, .glow::after, .scrollcue i { animation: none; }
}
