/*
 * portfolio shell — design tokens (same system as the protected case; do not edit the case copy)
 *
 * The single source of truth for colour, surface and shadow values. Light
 * theme lives in :root, dark theme in html[data-theme="dark"], so the whole
 * page switches by swapping one attribute. No literal colour value belongs
 * Also carries layout constants --rail / --maxw and the UI motion tokens.
 */
:root{
  --bg:#f6f8fc; --ink:#0b111b; --muted:#617087; --line:#e1e7f0; --raised:#ffffff;
  /* Quiet inset band — a tick deeper than --bg, never --bg itself. Used
     for the flagship Work row so it lifts off the panel without becoming
     a second body colour. */
  --band:#ebeff7;
  /* Shared frost for the top bar and the one glass card.
     Transparent enough that content scrolling underneath stays visible;
     the blur lives on the elements themselves via --glass-filter. */
  --glass-fill:color-mix(in srgb,var(--bg) 62%,transparent);
  --glass-filter:saturate(180%) blur(20px);
  /* Rail frost field only — far quieter than --glass-fill so the nav
     never reads as a plate; just enough tint for backdrop-filter. */
  --rail-frost:color-mix(in srgb,var(--bg) 18%,transparent);
  --accent:#6f7ff1; --accent-soft:rgba(111,127,241,.10);
  --ok:#237a50; --ok-soft:rgba(35,122,80,.08);
  --danger:#c24b59; --danger-soft:rgba(194,75,89,.08);
  --warn:#9a6b1f; --warn-soft:rgba(154,107,31,.09);
  /* Hero atmosphere: two cool light sources plus grain, kept near the
     threshold of visibility. Raise --atmo-grain, not the glows, if it needs
     more presence — the gradients are what start to read as "AI gradient". */
  --atmo-a:rgba(111,127,241,.15); --atmo-b:rgba(122,154,246,.11); --atmo-grain:.036;
  --sans:"Geist","Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --mono:"Geist Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  /* --maxw is the text measure; --col adds the page gutters so the header,
     the content and the footer resolve to the same column. */
  --rail:248px; --maxw:720px; --col:768px;
  /* The content surface: an inset structural layer, not a floating card.
     Only the top corners are ever seen — it runs to the end of the page.
     --sf-max keeps it a panel around the column on wide screens instead of
     letting it stretch to the edges; --sf-gut takes over once the viewport
     is narrower than that. --sf-w is the one width every layer measures by. */
  --sf-gut:20px; --sf-r:12px;
  /* The panel hugs the measure: --sf-pad on each side of --maxw and nothing
     more, so its edges sit a fixed distance from the text at any width.
     (--sf-w / 2 - --sf-pad equals --col / 2 - 24, so the header, the hero
     and the panel content all keep the same spine.) */
  /* Inner padding of the panel. It steps down as the panel loses width, so
     the left and right breathing room stays optically even. --sf-max is the
     hug at full width and is fixed at the 48px step. */
  --sf-pad:48px; --sf-max:calc(var(--maxw) + 96px);
  /* Distance from the panel's text edge to the main text column: Experience
     spends it on rail + gap, Work on the case number. Shared so the chrome
     label, the company names and the case titles sit on one edge. */
  --lead-col:40px;
  --sf-w:min(calc(100vw - var(--sf-gut) * 2),var(--sf-max));
  --sf-bg:#ffffff; --sf-line:color-mix(in srgb,var(--ink) 7%,transparent);
  /* Panel chrome: a hair off the surface, mixed from --bg so it stays in
     the same family as the canvas instead of introducing a third tone. */
  --sf-head:color-mix(in srgb,var(--bg) 82%,var(--sf-bg));
  /* UI motion only — no ambient loops. Theme uses the same opacity dip as language. */
  --motion-fast:120ms; --motion-base:180ms; --motion-slow:280ms;
  /* Gate → study: slower than overlay-enter, same family as --ease-enter. */
  --motion-unveil:1.18s;
  --ease-ui:cubic-bezier(.2,.8,.2,1);
  --ease-enter:cubic-bezier(.16,1,.3,1);
  --ease-exit:cubic-bezier(.4,0,1,1);
  --ease-unveil:cubic-bezier(.22,.06,.18,1);
  /* Crisp edge plus a tight material offset — not a blurred SaaS halo.
     The 1px --line carries the silhouette; --lift only separates the plate. */
  --lift:0 1px 0 color-mix(in srgb,var(--ink) 7%,transparent),
         0 1px 2px color-mix(in srgb,var(--ink) 5%,transparent);
  /* Large product/system objects (hero platform shell). Broader and softer
     than --lift — air separation, not a second border under the edge. */
  --object-lift:0 22px 56px color-mix(in srgb,var(--ink) 3.5%,transparent);
  /* Mid-scale overlay sheet (password gate). Between --lift's contact strip
     and --object-lift's hero air: short ground plus a diffuse ambient. */
  --sheet-lift:0 1px 2px color-mix(in srgb,var(--ink) 3.5%,transparent),
               0 8px 24px color-mix(in srgb,var(--ink) 5%,transparent);
  /* Popover-scale lift: a tighter contact shadow than --sheet-lift, for a
     small menu that should read as attached to its trigger, not floating
     above the page the way the password-gate sheet does. Border carries
     the edge; this only adds the few px of separation from what's behind. */
  --menu-lift:0 1px 1px color-mix(in srgb,var(--ink) 5%,transparent),
              0 4px 12px color-mix(in srgb,var(--ink) 6%,transparent);
  /* Floating island (shortcut bar). Softer and wider than --lift's contact
     strip so the glass reads off --bg without a grey underline. */
  --island-lift:0 1px 1px color-mix(in srgb,var(--ink) 3%,transparent),
                0 10px 28px color-mix(in srgb,var(--ink) 4%,transparent);
  --hover-veil:color-mix(in srgb,var(--ink) 4.5%,transparent);
  /* Evidence only: a hair more edge than --line so white screenshots
     separate from --bg. --media-lift has no inset highlight and no blur. */
  --media-line:color-mix(in srgb,var(--ink) 9%,var(--line));
  --media-lift:0 1px 0 color-mix(in srgb,var(--ink) 8%,transparent);
  --hover-media:0 1px 0 color-mix(in srgb,var(--ink) 11%,transparent),
                0 1px 1px color-mix(in srgb,var(--ink) 5%,transparent);
  /* Dim behind the medium lightbox. Mixes --ink so both themes stay token-only. */
  --overlay:color-mix(in srgb,var(--ink) 46%,transparent);
  /* Thin veil over the blurred case while the password gate is up. */
  --gate-veil:color-mix(in srgb,var(--bg) 30%,transparent);
  /* Hero CSS-mock: accent mixed into --line for bars, selected queue, primary chip. */
  --accent-line:color-mix(in srgb,var(--accent) 34%,var(--line));
  --accent-mark:color-mix(in srgb,var(--accent) 55%,var(--line));
  /* Quiet accent plate edge — callout, why-inset, bento accent, pre-read cells. */
  --accent-inset:color-mix(in srgb,var(--accent) 20%,var(--line));
  /* Keyboard focus halo — one ring, sits outside an accent edge. */
  --focus-halo:0 0 0 3px var(--accent-soft);
  /* Inline variant-term ink (Task-first etc.) on light ground. */
  --accent-ink:color-mix(in srgb,var(--accent) 72%,var(--ink));
  /* Text on a solid accent fill (primary button). */
  --on-accent:#fff;
  /* Status chip / proof edges. Same 30% mix for tag, foot, placeholder. */
  --ok-line:color-mix(in srgb,var(--ok) 30%,var(--line));
  --warn-line:color-mix(in srgb,var(--warn) 30%,var(--line));
  --danger-line:color-mix(in srgb,var(--danger) 30%,var(--line));
  --dash-line:color-mix(in srgb,var(--muted) 42%,var(--line));
  /* Neutral chip: a step lighter than --bg, for tags on page or --raised. */
  --tag-fill:color-mix(in srgb,var(--bg) 40%,var(--raised));
  /* Glossary word in running copy: a veil, not a chip lift. */
  --term-fill:color-mix(in srgb,var(--ink) 4%,var(--bg));
  --term-line:color-mix(in srgb,var(--line) 62%,var(--bg));
}
html[data-theme="dark"]{
  --bg:#0c1118; --ink:#f5f7fb; --muted:#8e99aa; --line:#1b2230; --raised:#161d28;
  --band:#080c12;
  /* 62 % of dark --bg lets --ink headlines punch through the sticky bar.
     Heavier fill keeps the frost without the header sinking under the page. */
  --glass-fill:color-mix(in srgb,var(--bg) 88%,transparent);
  /* Charcoal depth under the rail — not luminous glass. */
  --rail-frost:color-mix(in srgb,var(--bg) 22%,transparent);
  --atmo-a:rgba(126,144,255,.17); --atmo-b:rgba(86,114,214,.14); --atmo-grain:.05;
  --sf-bg:#111823; --sf-line:rgba(255,255,255,.07);
  --sf-head:color-mix(in srgb,var(--bg) 82%,var(--sf-bg));
  --accent:#9ba9ff; --accent-soft:rgba(155,169,255,.12);
  --ok:#75d8a1; --ok-soft:rgba(117,216,161,.10);
  --danger:#ff9393; --danger-soft:rgba(255,147,147,.10);
  --warn:#e6bb6a; --warn-soft:rgba(230,187,106,.10);
  /* auf dunklem Grund trägt Schatten kaum — enge Kante, plus Lichtkante oben */
  --lift:0 1px 0 rgba(0,0,0,.42),
         0 1px 2px rgba(0,0,0,.30),
         inset 0 1px 0 rgba(255,255,255,.04);
  /* Quiet depth only — no black glow under the platform shell. */
  --object-lift:0 24px 60px rgba(0,0,0,.16);
  /* Sheet sits by surface and --line; depth is a short black falloff. */
  --sheet-lift:0 8px 20px rgba(0,0,0,.2);
  --menu-lift:0 1px 1px rgba(0,0,0,.3),
              0 4px 14px rgba(0,0,0,.32);
  /* Quiet black pool — more air than --lift, no inset highlight. */
  --island-lift:0 1px 2px rgba(0,0,0,.22),
                0 10px 26px rgba(0,0,0,.28);
  --hover-veil:color-mix(in srgb,var(--ink) 6%,transparent);
  --media-line:color-mix(in srgb,var(--ink) 8%,var(--line));
  --media-lift:0 1px 0 rgba(0,0,0,.48);
  --hover-media:0 1px 0 rgba(0,0,0,.55),
                0 1px 1px rgba(0,0,0,.28);
  /* --ink is light in dark theme, so a straight ink mix would bleach the page.
     Fold a little ink into the same black alpha --lift already uses. */
  --overlay:color-mix(in srgb,var(--ink) 14%,rgba(0,0,0,.62));
  --gate-veil:color-mix(in srgb,var(--bg) 44%,transparent);
  --accent-line:color-mix(in srgb,var(--accent) 34%,var(--line));
  --accent-mark:color-mix(in srgb,var(--accent) 55%,var(--line));
  --accent-inset:color-mix(in srgb,var(--accent) 20%,var(--line));
  --focus-halo:0 0 0 3px var(--accent-soft);
  --accent-ink:var(--accent);
  --on-accent:#0b111b;
  --ok-line:color-mix(in srgb,var(--ok) 30%,var(--line));
  --warn-line:color-mix(in srgb,var(--warn) 30%,var(--line));
  --danger-line:color-mix(in srgb,var(--danger) 30%,var(--line));
  --dash-line:color-mix(in srgb,var(--muted) 42%,var(--line));
  --tag-fill:color-mix(in srgb,var(--bg) 40%,var(--raised));
  --term-fill:color-mix(in srgb,var(--ink) 4%,var(--bg));
  --term-line:color-mix(in srgb,var(--line) 62%,var(--bg));
}
