/* Omnistudium landing page, tasteskill v2 build.
   Direction: "One motif", seed 152567932, sector education, tone technical.
   Motif: the block itself (a rounded node with an input notch and an output
   stud) is the literal unit this product is built from, so it is the only
   shape used everywhere a generic rounded rectangle would otherwise go.

   Palette redrawn 2026-10-22 from the subject's own colours rather than the
   dealt "Sky and sand" sheet: the real app is a dark canvas with cyan wires
   connecting panel-like blocks, confirmed against an actual screenshot, so
   the page now uses that real palette instead of an invented one. */

/* ---------- tokens ---------- */
:root {
  --bg: #0a0e14;
  --surface: #121a24;
  --ink: #e9f2f5;
  --muted: #86a4b3;
  --accent: #35e0d6;
  --accent-ink: #06181a;
  --field-1: #121a24; --field-1-ink: #e9f2f5;
  --field-2: #0d2024; --field-2-ink: #e9f2f5;
  --field-3: #182024; --field-3-ink: #e9f2f5;
  --field-4: #000000; --field-4-ink: #f2f2f2;

  --font-display: "Schibsted Grotesk", system-ui, sans-serif;
  --font-text: "Schibsted Grotesk", system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  /* step-lead and step-display both widened (2026-11-22, design-hook
     finding): at narrow widths --step-lead sat only ~1.18x --step-body,
     and --step-display sat only ~1.12-1.13x --step-head at every width
     -- a flat type hierarchy where the two biggest roles barely read as
     different sizes. Both now hold >=1.27x their neighbor below across
     the full clamp() range (checked at 320/390/600/900/1280/1920px),
     not just at one breakpoint. */
  --step-lead: clamp(1.35rem, 1.2rem + 0.65vw, 1.7rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(2.75rem, 1.9rem + 4.2vw, 5.25rem);

  --margin: clamp(1.125rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(4rem, 8vw, 8rem);
  --radius: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-exit: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  --t-press: 140ms; --t-hover: 180ms; --t-ui: 240ms;
  --t-reveal: 800ms; --t-open: 1200ms;
  --stagger-line: 90ms; --stagger-item: 70ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.5; font-kerning: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, video, svg, canvas { display: block; max-width: 100%; }
img, video { height: auto; background: var(--surface); }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 6rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.05em; line-height: 0.92; text-wrap: balance; hyphens: none; }
.display { font-size: var(--step-display); line-height: 0.92; letter-spacing: -0.05em; }
.head { font-size: var(--step-head); line-height: 0.98; letter-spacing: -0.04em; }
.lead { font-size: var(--step-lead); line-height: 1.35; max-width: 40ch; }
.small { font-size: var(--step-small); line-height: 1.45; }
.muted { color: var(--muted); }
p { max-width: 62ch; text-wrap: pretty; }
p + p { margin-top: 0.9em; }
.nums { font-variant-numeric: tabular-nums; }
.only-wide { display: none; }
@media (min-width: 48em) { .only-wide { display: inline; } }

/* ---------- layout ---------- */
.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.section { padding-block: calc(var(--section) / 2); }
.section--tight-top { padding-top: calc(var(--section) / 5); }
.bleed { margin-inline: calc(var(--margin) * -1); }
.cover { width: 100%; height: 100%; object-fit: cover; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- controls ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 3.2rem; padding: 0 1.6rem; background: var(--ink); color: var(--bg); border-radius: 0; text-decoration: none; white-space: nowrap; font-weight: 600; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:hover { background: var(--accent); color: var(--accent-ink); }
.button:active { transform: scale(0.97); }
.button--accent { background: var(--accent); color: var(--accent-ink); }
.button--accent:hover { background: var(--ink); color: var(--bg); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: currentColor; } }

/* ---------- motion helpers ---------- */
.lines .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines [data-line] { display: block; }
.shutter { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: ad-rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
  .js .lines [data-line] { transform: translateY(105%); animation: ad-line 900ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .shutter[data-reveal] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out); }
  .js .shutter[data-reveal] img { transform: scale(1.12); transition: transform 1500ms var(--ease-soft); }
  .js .shutter[data-reveal].is-in { clip-path: inset(0); }
  .js .shutter[data-reveal].is-in img { transform: none; }
}
@keyframes ad-rise { to { opacity: 1; transform: none; } }
@keyframes ad-line { to { transform: none; } }

/* ================================================================
   The motif: a block, a rounded node with an input notch (left)
   and an output stud (right). Used for photo masks, the band, and
   bullets. Defined once as an SVG clipPath in the page markup.
   ================================================================ */
.motif-clip { clip-path: url(#blockClip); }

.block-bullet { display: inline-flex; width: 0.8em; height: 0.8em; flex: none; background: currentColor; clip-path: url(#blockClipSmall); margin-right: 0.6em; transform: translateY(0.12em); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding-block: 1.1rem; background: var(--bg); }
.nav__word { font-family: var(--font-display); font-weight: 800; font-size: var(--step-lead); letter-spacing: -0.03em; text-decoration: none; }
.nav__links { display: none; gap: 2rem; align-items: center; font-weight: 600; font-size: var(--step-small); }
@media (min-width: 58em) { .nav__links { display: flex; } }
.nav__links a { text-decoration: none; }

/* ---------- hero ---------- */
.hero { padding-top: 0.5rem; }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 58em) { .hero__grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.hero__card { background: var(--surface); padding: clamp(1.5rem, 3vw, 3rem); }
.hero__band { display: flex; height: 48px; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.hero__band span { flex: 1; }
.hero__band span:nth-child(odd) { background: var(--ink); }
.hero__band span:nth-child(even) { background: var(--accent); }
.hero h1 { font-size: var(--step-display); margin-top: 1.4rem; }
.section-head { grid-column: 1 / -1; }
@media (min-width: 58em) { .section-head { grid-column: 1 / 8; } }
.hero__lead { margin-top: 1.5rem; max-width: 38ch; }
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.hero__links { display: flex; gap: 1.5rem; margin-top: clamp(2rem, 4vw, 3rem); flex-wrap: wrap; font-size: var(--step-small); }
.hero__visual { position: relative; background: var(--field-4); min-height: 420px; overflow: hidden; }
@media (min-width: 58em) { .hero__visual { position: sticky; top: 0; height: calc(100svh - 24px); } }

/* ---------- hero video (real product footage, not a mockup) ---------- */
/* Tall-shot source footage already matches this panel's own aspect
   (roughly half-viewport-width by full-viewport-height on desktop, see
   .hero__visual above) -- object-fit: cover is a safety net for
   whatever doesn't match exactly, not the primary fit mechanism.

   Cycles through several clips as a deliberate, captioned "tour" (see
   script.js's heroCycle()) rather than one static loop -- a single
   clip under-sold the product's actual range (live-reported: "it feels
   like we are pitching a tool just to visualize a vector field"). All
   4 videos stack via position:absolute + crossfade opacity, not
   sequential <video> swaps, so the NEXT clip is already decoded and
   ready the instant it becomes active instead of starting from a cold
   network/decode delay. */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s ease; }
.hero__video.is-active { opacity: 1; }
.hero__video-caption { position: absolute; left: clamp(1.25rem, 3vw, 2.5rem); bottom: clamp(1.25rem, 3vw, 2.5rem); z-index: 2; background: rgb(10 14 20 / 55%); color: var(--ink); padding: 0.5rem 1rem; font-size: var(--step-small); font-weight: 600; }
.hero__video-dots { position: absolute; right: clamp(1.25rem, 3vw, 2.5rem); bottom: clamp(1.25rem, 3vw, 2.5rem); z-index: 2; display: flex; gap: 0.5rem; }
.hero__video-dots button { width: 10px; height: 10px; padding: 0; border: 1px solid rgb(0 0 0 / 40%); border-radius: 50%; background: rgb(255 255 255 / 45%); cursor: pointer; box-shadow: 0 0 0 1px rgb(255 255 255 / 15%); }
.hero__video-dots button.is-active { background: var(--accent); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; background: var(--ink); outline: none; margin-top: 0.6rem; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; background: var(--accent); clip-path: url(#blockClipSmall); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; background: var(--accent); border: 0; clip-path: url(#blockClipSmall); cursor: grab; }
.live-value { font-variant-numeric: tabular-nums; font-weight: 700; }
.plot-svg { width: 100%; height: 120px; display: block; margin-top: 0.6rem; }
.plot-svg path { fill: none; stroke: var(--accent); stroke-width: 3; }
.plot-svg line { stroke: var(--muted); stroke-width: 1; opacity: 0.4; }

/* ---------- how-it-works ---------- */
.diagram { display: block; width: 100%; height: clamp(160px, 22vw, 260px); margin-top: clamp(2rem, 5vw, 3.5rem); }
.diagram rect { }
.howsteps { margin-top: clamp(1.5rem, 3vw, 2.5rem); display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 48em) { .howsteps { grid-template-columns: repeat(3, 1fr); } }
.howsteps__item strong { display: block; font-size: var(--step-lead); margin-bottom: 0.4rem; }
.howsteps__item p { font-size: var(--step-body); max-width: 34ch; }

/* ---------- features ---------- */
.features__grid { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 58em) { .features__grid { grid-template-columns: repeat(3, 1fr); } }
.tile { aspect-ratio: 4 / 5; clip-path: url(#blockClip); display: flex; align-items: flex-end; padding: 1.1rem; position: relative; }
.tile--photo { background-size: cover; background-position: center; }
.tile__scrim { position: absolute; inset: 0; background: rgb(10 14 20 / 55%); }
.tile--video { padding: 0; }
.tile--video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile--wide { grid-column: span 2; aspect-ratio: 8 / 5; }
.feature__meta { margin-top: 0.9rem; }
.feature__meta strong { display: block; font-size: var(--step-lead); margin-bottom: 0.3rem; }
.feature__meta span { font-size: var(--step-body); color: var(--muted); }

/* ---------- about ---------- */
.about-panel { background: var(--field-4); color: var(--field-4-ink); padding: clamp(1.5rem, 4vw, 3.5rem); min-height: 60svh; display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 58em) { .about-panel { grid-template-columns: 1fr 1fr; } }
.about-panel h2 { font-size: var(--step-head); max-width: 20ch; }
.about-panel__texts { display: grid; gap: clamp(1.75rem, 3vw, 2.5rem); align-content: start; }
.about-panel__texts h3 { font-size: var(--step-lead); font-weight: 700; margin-bottom: 0.6rem; }
.about-panel__texts p { color: color-mix(in srgb, var(--field-4-ink) 78%, transparent); }
.about-panel .button { margin-top: 0.5rem; }

/* ---------- faq ---------- */
.faq__layout { margin-top: clamp(1.5rem, 3vw, 2.5rem); display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 58em) { .faq__layout { grid-template-columns: 1fr 2fr; } }
.faq__heading { align-self: start; position: sticky; top: 6rem; }
.faq__list { display: grid; gap: 8px; }
.faq__item { background: var(--surface); padding: 0; }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.4rem; font-weight: 600; font-size: var(--step-body); min-height: 72px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { position: relative; width: 16px; height: 16px; flex: none; margin-left: 1rem; }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; background: currentColor; }
.faq__plus::before { left: 0; top: 7px; width: 16px; height: 3px; }
.faq__plus::after { left: 7px; top: 0; width: 3px; height: 16px; transition: transform var(--t-ui) var(--ease-out); }
.faq__item[open] .faq__plus::after { transform: rotate(90deg); }
.faq__item[open] { background: var(--accent); color: var(--accent-ink); }
.faq__item p { padding: 0 1.4rem 1.4rem; max-width: 52ch; font-size: var(--step-body); }

/* ---------- cta ---------- */
.cta__row { margin-top: clamp(1.5rem, 3vw, 2.5rem); display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; }
.cta__side { display: none; height: 320px; }
@media (min-width: 58em) { .cta__side { display: block; grid-column: span 2; } }
.cta__side--flat { background: var(--field-3); }
.cta__main { grid-column: 1 / -1; background: var(--accent); color: var(--accent-ink); height: 320px; padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
@media (min-width: 58em) { .cta__main { grid-column: 3 / 11; } }
.cta__main h2 { font-size: var(--step-head); max-width: 16ch; }
.cta__main p { max-width: 42ch; }
.cta__email { display: flex; gap: 0; margin-top: 0.5rem; max-width: 420px; }

/* ---------- footer ---------- */
.footer { background: var(--field-4); color: var(--field-4-ink); padding-block: clamp(2.5rem, 5vw, 4rem); }
.footer__word { font-family: var(--font-display); font-weight: 800; font-size: var(--step-display); letter-spacing: -0.05em; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; margin-top: clamp(1.5rem, 3vw, 2.5rem); font-size: var(--step-small); }

/* ---------- divider band ---------- */
.band { display: flex; height: clamp(24px, 3vw, 40px); }
.band span { flex: 1; clip-path: url(#blockClipSmall); margin-inline: 2px; }
.band span:nth-child(odd) { background: var(--ink); }
.band span:nth-child(even) { background: var(--accent); }
