/* Nova – Mona Sans (variable width + weight) over a live WebGL field. */

@font-face {
  font-family: 'Mona Sans';
  src: url('/fonts/mona-sans.woff2') format('woff2');
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
}

@property --nv-a {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@keyframes nv-spin {
  to {
    --nv-a: 360deg;
  }
}
@keyframes nv-bob {
  50% {
    translate: 0 -10px;
  }
}
@keyframes nv-beam {
  0% {
    top: 6%;
  }
  45%,
  100% {
    top: 94%;
  }
}
@keyframes nv-field-a { 0%, 22% { opacity: 0; translate: -6px 0 } 28%, 92% { opacity: 1; translate: 0 0 } 100% { opacity: 0 } }
@keyframes nv-field-b { 0%, 32% { opacity: 0; translate: -6px 0 } 38%, 92% { opacity: 1; translate: 0 0 } 100% { opacity: 0 } }
@keyframes nv-field-c { 0%, 42% { opacity: 0; translate: -6px 0 } 48%, 92% { opacity: 1; translate: 0 0 } 100% { opacity: 0 } }
@keyframes nv-field-d { 0%, 54% { opacity: 0; translate: -6px 0 } 60%, 92% { opacity: 1; translate: 0 0 } 100% { opacity: 0 } }
@keyframes nv-draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes nv-morph {
  0%, 18% { --nv-bg: #1f4e8c; --nv-fg: #e8780c; border-radius: 0; }
  20%, 38% { --nv-bg: #ffffff; --nv-fg: #0035ff; border-radius: 0; }
  40%, 58% { --nv-bg: #0d0801; --nv-fg: #ffb627; border-radius: 0; }
  60%, 78% { --nv-bg: #ffd60a; --nv-fg: #ff5fa2; border-radius: 10px; }
  80%, 98% { --nv-bg: #1a1640; --nv-fg: #22d3ee; border-radius: 14px; }
}
@keyframes nv-rise {
  from {
    opacity: 0;
    translate: 0 40px;
  }
}
@keyframes nv-hint {
  50% {
    translate: 0 6px;
  }
}

@property --nv-bg {
  syntax: '<color>';
  inherits: true;
  initial-value: #1a1640;
}
@property --nv-fg {
  syntax: '<color>';
  inherits: true;
  initial-value: #22d3ee;
}

:root[data-design='nova'] {
  --bg: #06051a;
  --text: #f1efff;
  --muted: #a9a5d1;
  --line: rgb(255 255 255 / 0.12);
  --glass: rgb(255 255 255 / 0.045);
  --violet: #7c5cff;
  --cyan: #22d3ee;
  --magenta: #ff4fd8;
  --pad: clamp(16px, 4vw, 56px);
  color-scheme: dark;

  & body {
    background: var(--bg);
    color: var(--text);
    font: 400 17px/1.55 'Mona Sans', system-ui, sans-serif;
    font-variation-settings: 'wdth' 100;
  }
  & a {
    color: inherit;
  }
  & :focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 4px;
    border-radius: 6px;
  }
  & ::selection {
    background: var(--violet);
    color: #fff;
  }

  & .nv {
    position: relative;
    overflow-x: clip;
  }
  & .nv-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background:
      radial-gradient(60% 50% at 70% 30%, rgb(124 92 255 / 0.35), transparent 70%),
      radial-gradient(40% 40% at 20% 80%, rgb(34 211 238 / 0.18), transparent 70%), var(--bg);
  }
  & .nv-grain {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.09;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }
  & .nv-head,
  & main,
  & .nv-foot {
    position: relative;
    z-index: 2;
  }

  /* Custom cursor (fine pointers only) */
  & .nv-cursor {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 800;
    pointer-events: none;
    display: none;
  }
  & .has-cursor .nv-cursor {
    display: block;
  }
  & .nv-cursor span {
    position: absolute;
    left: -18px;
    top: -18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgb(255 255 255 / 0.7);
    mix-blend-mode: difference;
    transition: scale 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.25s;
  }
  & .nv-cursor.is-link span {
    scale: 1.9;
    background: rgb(255 255 255 / 0.9);
  }

  /* Header */
  & .nv-head {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 18px var(--pad);
  }
  & .nv-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 650;
    text-decoration: none;
    margin-right: auto;
  }
  & .nv-logo-mark {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: conic-gradient(from var(--nv-a), var(--violet), var(--cyan), var(--magenta), var(--violet));
    animation: nv-spin 6s linear infinite;
  }
  & .nv-nav {
    display: flex;
    gap: 26px;
    font-size: 15px;
    color: var(--muted);
  }
  & .nv-nav a {
    text-decoration: none;
    transition: color 0.2s;
  }
  & .nv-nav a:hover {
    color: var(--text);
  }
  & .nv-pill,
  & .nv-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgb(255 255 255 / 0.08);
    backdrop-filter: blur(12px);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s;
  }
  & .nv-btn {
    padding: 14px 26px;
    font-size: 16px;
    color: var(--bg);
    background: linear-gradient(120deg, #fff, #d9d2ff);
    border: 0;
  }
  & .nv-btn:hover {
    background: #fff;
  }
  & .nv-btn-ghost {
    color: var(--text);
    background: rgb(255 255 255 / 0.06);
    border: 1px solid var(--line);
  }
  & .nv-btn-ghost:hover {
    background: rgb(255 255 255 / 0.14);
  }
  & .nv-kicker {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 15px;
  }

  /* Hero */
  & .nv-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 24px;
    min-height: calc(100svh - var(--ds-h) - 72px);
    padding: 0 var(--pad) 48px;
  }
  & .nv-title {
    margin: 0 0 28px;
    font-size: clamp(56px, 9.5vw, 168px);
    line-height: 0.9;
    font-weight: 320;
    letter-spacing: -0.035em;
  }
  & .nv-line {
    display: block;
    white-space: nowrap;
  }
  & .nv-ch {
    display: inline-block;
    font-variation-settings: 'wght' 320, 'wdth' 100;
    transition: font-variation-settings 0.25s ease-out;
  }
  & .nv-sp {
    display: inline-block;
    width: 0.22em;
  }
  & .nv-grad .nv-ch {
    background: linear-gradient(100deg, #ffffff 0%, #c9bcff 30%, var(--cyan) 65%, var(--magenta) 100%);
    background-size: 9.5ch 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  & .nv-grad .nv-ch:nth-child(1) { background-position: 0 0; }
  & .nv-grad .nv-ch:nth-child(2) { background-position: -1ch 0; }
  & .nv-grad .nv-ch:nth-child(3) { background-position: -2ch 0; }
  & .nv-grad .nv-ch:nth-child(4) { background-position: -3ch 0; }
  & .nv-grad .nv-ch:nth-child(5) { background-position: -4ch 0; }
  & .nv-grad .nv-ch:nth-child(6) { background-position: -5ch 0; }
  & .nv-grad .nv-ch:nth-child(7) { background-position: -6ch 0; }
  & .nv-grad .nv-ch:nth-child(8) { background-position: -7ch 0; }
  & .nv-grad .nv-ch:nth-child(9) { background-position: -8ch 0; }
  & .nv-intro {
    max-width: 50ch;
    margin: 0 0 32px;
    font-size: clamp(17px, 1.4vw, 20px);
    color: #d4d0f2;
  }
  & .nv-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
  }

  & .nv-stage {
    perspective: 1100px;
    align-self: end;
  }
  & .nv-tilt {
    position: relative;
    width: min(100%, 520px);
    margin-inline: auto;
    aspect-ratio: 946 / 1400;
    transform-style: preserve-3d;
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  & .nv-halo {
    position: absolute;
    left: 6%;
    right: 6%;
    top: 4%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: conic-gradient(from var(--nv-a), var(--violet), var(--cyan), var(--magenta), #ffd36e, var(--violet));
    filter: blur(48px) saturate(1.2);
    opacity: 0.75;
    transform: translateZ(-120px) scale(1.15);
    animation: nv-spin 14s linear infinite;
  }
  & .nv-ring {
    position: absolute;
    left: 10%;
    right: 10%;
    top: 8%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgb(255 255 255 / 0.28);
    transform: translateZ(-60px);
  }
  & .nv-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: translateZ(0);
    filter: drop-shadow(0 0 1px rgb(255 255 255 / 0.5)) drop-shadow(0 20px 50px rgb(6 5 26 / 0.8));
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 98%);
    mask-image: linear-gradient(to bottom, #000 72%, transparent 98%);
  }
  & .nv-float {
    position: absolute;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    background: rgb(255 255 255 / 0.1);
    border: 1px solid rgb(255 255 255 / 0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgb(0 0 0 / 0.35);
    animation: nv-bob 5s ease-in-out infinite;
  }
  & .nv-f1 { left: -6%; top: 26%; transform: translateZ(90px); }
  & .nv-f2 { right: 4%; top: 14%; transform: translateZ(140px); animation-delay: -1.5s; }
  & .nv-f3 { right: 0; top: 52%; transform: translateZ(60px); animation-delay: -3s; }
  & .nv-f4 { left: 2%; top: 64%; transform: translateZ(110px); animation-delay: -2.2s; }

  & .nv-scrollhint {
    position: absolute;
    left: var(--pad);
    bottom: 16px;
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
    animation: nv-hint 2.4s ease-in-out infinite;
  }
  & .nv-scrollhint::after {
    content: ' ↓';
  }

  /* Sections */
  & .nv-section {
    padding: clamp(80px, 12vw, 160px) var(--pad) 0;
    scroll-margin-top: var(--ds-h);
  }
  & .nv-h2 {
    margin: 0 0 clamp(32px, 5vw, 64px);
    font-size: clamp(44px, 7vw, 112px);
    line-height: 0.95;
    font-weight: 750;
    font-variation-settings: 'wdth' 125;
    letter-spacing: -0.04em;
  }
  & .nv-lead {
    font-weight: 650;
    font-size: 19px;
    line-height: 1.35;
    color: var(--text);
  }
  & .nv-caption {
    margin: 14px 0 0;
    font-size: 14px;
    color: var(--muted);
  }
  & .nv-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
  }
  & .nv-tags li {
    padding: 4px 12px;
    font-size: 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--glass);
  }

  @supports (animation-timeline: view()) {
    & .nv-reveal {
      animation: nv-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 25%;
    }
  }

  /* Bento */
  & .nv-bento {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
  }
  & .nv-tile {
    position: relative;
    padding: clamp(22px, 2.6vw, 36px);
    border-radius: 28px;
    background: rgb(12 10 40 / 0.55);
    border: 1px solid var(--line);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    isolation: isolate;
  }
  & .nv-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -40%), rgb(124 92 255 / 0.28), transparent 60%);
    transition: opacity 0.3s;
  }
  & .nv-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, -40%), rgb(34 211 238 / 0.9), transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
  }
  & .nv-tile h3 {
    margin: 0 0 12px;
    font-size: clamp(30px, 3vw, 48px);
    line-height: 1;
    font-weight: 750;
    font-variation-settings: 'wdth' 112;
    letter-spacing: -0.03em;
  }
  & .nv-tile p {
    margin: 0 0 10px;
    color: #cfcbef;
  }
  & .nv-tile .nv-lead {
    color: var(--text);
  }
  & .nv-t-software {
    grid-column: span 7;
  }
  & .nv-t-ki {
    grid-column: span 5;
    grid-row: span 2;
  }
  & .nv-t-web {
    grid-column: span 4;
  }
  & .nv-t-sap {
    grid-column: span 3;
  }
  & .nv-t-sap h3 {
    font-size: clamp(28px, 2.4vw, 40px);
  }

  & .nv-code {
    margin: 18px 0 0;
    padding: 18px 20px;
    border-radius: 16px;
    background: rgb(0 0 0 / 0.35);
    border: 1px solid var(--line);
    font: 13px/1.6 ui-monospace, 'Cascadia Mono', Consolas, monospace;
    color: #d8d4ff;
    overflow-x: auto;
  }
  & .nv-code i {
    font-style: normal;
    color: var(--magenta);
  }
  & .nv-code b {
    font-weight: 400;
    color: var(--cyan);
  }

  /* KI demo: scanning a vehicle registration */
  & .nv-scan {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 22px;
  }
  & .nv-doc {
    position: relative;
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(160deg, #e9f1e4, #cfe0c9);
    color: #2c3a2a;
    overflow: hidden;
    min-height: 170px;
  }
  & .nv-doc-title {
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 12px;
  }
  & .nv-doc i {
    display: block;
    height: 7px;
    margin: 0 0 10px;
    border-radius: 4px;
    background: rgb(44 58 42 / 0.28);
  }
  & .nv-doc i:nth-child(2) { width: 80%; }
  & .nv-doc i:nth-child(3) { width: 55%; }
  & .nv-doc i:nth-child(4) { width: 90%; }
  & .nv-doc i:nth-child(5) { width: 40%; }
  & .nv-doc i:nth-child(6) { width: 70%; }
  & .nv-beam {
    position: absolute;
    left: 0;
    right: 0;
    top: 6%;
    height: 2px;
    background: var(--cyan);
    box-shadow: 0 0 16px 4px rgb(34 211 238 / 0.7);
  }
  & .nv-fields {
    margin: 0;
    font-size: 14px;
  }
  & .nv-fields div {
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
  }
  & .nv-fields dt {
    color: var(--muted);
    font-size: 12px;
  }
  & .nv-fields dd {
    margin: 0;
    font: 600 14px/1.4 ui-monospace, Consolas, monospace;
    overflow-wrap: anywhere;
  }
  & .nv-fields .ok {
    color: #7dffb3;
  }
  & .is-on .nv-beam {
    animation: nv-beam 4.5s cubic-bezier(0.6, 0, 0.4, 1) infinite;
  }
  & .is-on .nv-fields div:nth-child(1) { animation: nv-field-a 4.5s infinite both; }
  & .is-on .nv-fields div:nth-child(2) { animation: nv-field-b 4.5s infinite both; }
  & .is-on .nv-fields div:nth-child(3) { animation: nv-field-c 4.5s infinite both; }
  & .is-on .nv-fields div:nth-child(4) { animation: nv-field-d 4.5s infinite both; }

  /* Web demo: a tiny page morphing through the five designs */
  & .nv-morph {
    margin-top: 18px;
    border-radius: 12px;
    border: 1px solid var(--line);
    overflow: hidden;
    background: rgb(0 0 0 / 0.3);
  }
  & .nv-morph-bar {
    display: flex;
    gap: 5px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
  }
  & .nv-morph-bar i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.3);
  }
  & .nv-morph-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
    height: 120px;
    background: var(--nv-bg);
    transition: background-color 0.4s;
  }
  & .nv-morph-page b {
    grid-column: 1 / -1;
    height: 26px;
    background: var(--nv-fg);
    border-radius: inherit;
  }
  & .nv-morph-page span {
    background: color-mix(in srgb, var(--nv-fg) 40%, transparent);
    border-radius: inherit;
  }
  & .nv-morph-page span:last-child {
    grid-column: 1 / -1;
  }
  & .is-on .nv-morph-page {
    animation: nv-morph 7.5s steps(1, end) infinite;
  }

  /* Projects: horizontal chapter */
  & .nv-projects {
    position: relative;
    margin-top: clamp(80px, 12vw, 160px);
    scroll-margin-top: var(--ds-h);
  }
  & .nv-sticky {
    padding: 0 var(--pad);
  }
  & .nv-track {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  & .nv-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    padding: clamp(24px, 3vw, 44px);
    border-radius: 32px;
    border: 1px solid var(--line);
    background: rgb(12 10 40 / 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
  }
  & .nv-panel h3 {
    margin: 0 0 12px;
    font-size: clamp(48px, 6vw, 104px);
    line-height: 0.9;
    font-weight: 800;
    font-variation-settings: 'wdth' 125;
    letter-spacing: -0.045em;
  }
  & .nv-panel p {
    color: #cfcbef;
    max-width: 52ch;
  }
  & .nv-panel .nv-btn {
    margin-top: 24px;
  }
  & .nv-progress {
    display: none;
  }

  & .nv-projects.is-h {
    & .nv-sticky {
      position: sticky;
      top: var(--ds-h);
      height: calc(100vh - var(--ds-h));
      display: flex;
      flex-direction: column;
      justify-content: center;
      overflow: hidden;
      padding: 0;
    }
    & .nv-projects-title {
      padding-inline: var(--pad);
      margin-bottom: 28px;
    }
    & .nv-track {
      display: flex;
      width: max-content;
      gap: 32px;
      padding-inline: var(--pad);
      will-change: transform;
    }
    & .nv-panel {
      width: min(1180px, 80vw);
      min-height: min(560px, 62vh);
    }
    & .nv-progress {
      display: block;
      margin: 32px var(--pad) 0;
      height: 2px;
      background: var(--line);
    }
    & .nv-progress span {
      display: block;
      height: 100%;
      background: linear-gradient(90deg, var(--violet), var(--cyan), var(--magenta));
      transform-origin: left;
      transform: scaleX(0);
    }
  }

  /* Project visuals */
  & .nv-panel-text,
  & .nv-panel-visual {
    min-width: 0;
  }
  & .nv-app,
  & .nv-graph {
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgb(0 0 0 / 0.35);
    overflow: hidden;
    box-shadow: 0 40px 80px rgb(0 0 0 / 0.45);
  }
  & .nv-app-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    font-size: 13px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
  }
  & .nv-app-bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.25);
  }
  & .nv-app-bar span {
    margin-left: 10px;
  }
  & .nv-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
  }
  & .nv-col p {
    margin: 0 0 10px;
    font-size: 12px;
    color: var(--muted);
  }
  & .nv-job {
    display: grid;
    gap: 2px;
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 12px;
    background: rgb(255 255 255 / 0.07);
    border: 1px solid var(--line);
    font-size: 13px;
  }
  & .nv-job b {
    font: 700 13px/1.2 ui-monospace, Consolas, monospace;
    color: #fff;
  }
  & .nv-job span {
    color: var(--muted);
  }
  & .nv-col:nth-child(3) .nv-job {
    border-color: rgb(34 211 238 / 0.5);
    box-shadow: 0 0 24px rgb(34 211 238 / 0.18);
  }

  & .nv-graph {
    padding: 20px;
  }
  & .nv-graph-head {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 14px;
  }
  & .nv-legend i {
    display: inline-block;
    width: 18px;
    height: 3px;
    margin: 0 6px 3px 12px;
    vertical-align: middle;
    border-radius: 2px;
  }
  & .nv-legend .a { background: var(--magenta); }
  & .nv-legend .b { background: var(--cyan); }
  & .nv-graph svg {
    width: 100%;
    height: 220px;
  }
  & .nv-graph path {
    fill: none;
    stroke-width: 2.5;
    vector-effect: non-scaling-stroke;
    stroke-linejoin: round;
    stroke-dasharray: 1;
  }
  & .nv-g-a {
    stroke: var(--magenta);
    opacity: 0.75;
  }
  & .nv-g-b {
    stroke: var(--cyan);
    filter: drop-shadow(0 0 6px rgb(34 211 238 / 0.8));
  }
  & .is-on .nv-graph path {
    animation: nv-draw 2.4s cubic-bezier(0.6, 0, 0.3, 1) both;
  }
  & .is-on .nv-g-b {
    animation-delay: 0.5s;
  }
  & .nv-graph-note {
    margin: 10px 0 0 !important;
    font-size: 13px;
    color: var(--muted);
  }

  /* Story timeline */
  & .nv-tl {
    position: relative;
    max-width: 900px;
  }
  & .nv-tl::before,
  & .nv-line-fill {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--line);
  }
  & .nv-line-fill {
    background: linear-gradient(var(--violet), var(--cyan), var(--magenta));
    transform-origin: top;
    transform: scaleY(0);
    box-shadow: 0 0 14px rgb(124 92 255 / 0.8);
  }
  & .nv-timeline {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  & .nv-event {
    position: relative;
    padding: 0 0 56px 52px;
    opacity: 0.38;
    transition: opacity 0.5s;
  }
  & .nv-event::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid rgb(255 255 255 / 0.3);
    transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s;
  }
  & .nv-event.is-lit {
    opacity: 1;
  }
  & .nv-event.is-lit::before {
    background: var(--cyan);
    border-color: #fff;
    box-shadow: 0 0 18px var(--cyan);
  }
  & .nv-year {
    margin: 0 0 4px;
    color: var(--cyan);
    font-weight: 600;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
  }
  & .nv-event h3 {
    margin: 0 0 8px;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.05;
    font-weight: 700;
    font-variation-settings: 'wdth' 112;
    letter-spacing: -0.02em;
  }
  & .nv-event p:last-child {
    margin: 0;
    max-width: 60ch;
    color: #cfcbef;
  }

  /* CV */
  & .nv-cv {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  & .nv-glass {
    padding: clamp(22px, 3vw, 40px);
    border-radius: 28px;
    border: 1px solid var(--line);
    background: rgb(12 10 40 / 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  & .nv-glass h3 {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
  }
  & .nv-glass h3:not(:first-child) {
    margin-top: 28px;
  }
  & .nv-cv-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
  }
  & .nv-cv-row .nv-year {
    margin: 0;
  }
  & .nv-cv-skill {
    padding: 12px 0;
    border-top: 1px solid var(--line);
  }
  & .nv-cv-skill .nv-tags {
    margin-top: 8px;
  }

  /* Contact */
  & .nv-contact {
    padding: clamp(120px, 16vw, 220px) var(--pad) clamp(80px, 10vw, 140px);
    text-align: center;
    scroll-margin-top: var(--ds-h);
  }
  & .nv-contact-title {
    margin: 0 0 40px;
    font-size: clamp(48px, 9vw, 160px);
    line-height: 0.92;
    font-weight: 800;
    font-variation-settings: 'wdth' 125;
    letter-spacing: -0.045em;
  }
  & .nv-mail {
    display: inline-block;
    padding: 18px 34px;
    border-radius: 999px;
    font: 600 clamp(16px, 2.2vw, 28px) / 1.2 'Mona Sans', sans-serif;
    text-decoration: none;
    color: var(--bg);
    background: linear-gradient(110deg, #fff, #cfc4ff 40%, #9ff0ff);
    box-shadow: 0 0 60px rgb(124 92 255 / 0.55);
    max-width: 100%;
    overflow-wrap: anywhere;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s;
  }
  & .nv-mail:hover {
    box-shadow: 0 0 90px rgb(34 211 238 / 0.65);
  }
  & .nv-contact-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 32px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
  }

  & .nv-foot {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 24px var(--pad);
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
  }
  & .nv-foot a {
    margin-left: 20px;
  }

  & .has-cursor,
  & .has-cursor a,
  & .has-cursor button {
    cursor: none;
  }

  @media (max-width: 1100px) {
    & .nv-nav {
      display: none;
    }
    & .nv-t-software,
    & .nv-t-ki {
      grid-column: span 6;
    }
    & .nv-t-web,
    & .nv-t-sap {
      grid-column: span 6;
    }
    & .nv-t-ki {
      grid-row: auto;
    }
  }

  @media (max-width: 900px) {
    & .nv-hero {
      grid-template-columns: 1fr;
      padding-top: 24px;
    }
    & .nv-stage {
      max-width: 420px;
      width: 100%;
      margin-inline: auto;
    }
    & .nv-scrollhint {
      display: none;
    }
    & .nv-bento {
      grid-template-columns: 1fr;
    }
    & .nv-t-software,
    & .nv-t-ki,
    & .nv-t-web,
    & .nv-t-sap {
      grid-column: auto;
      grid-row: auto;
    }
    & .nv-panel,
    & .nv-cv {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 560px) {
    & .nv-f1 { left: 0; }
    & .nv-panel h3 {
      font-size: clamp(36px, 11vw, 56px);
    }
    & .nv-f3 { right: 2%; }
    & .nv-f4 { left: 4%; }
    & .nv-title {
      font-size: clamp(48px, 15vw, 80px);
    }
    & .nv-scan {
      grid-template-columns: 1fr;
    }
    & .nv-board {
      grid-template-columns: 1fr 1fr;
    }
    & .nv-col:nth-child(3) {
      display: none;
    }
    & .nv-cv-row {
      grid-template-columns: 96px 1fr;
    }
    & .nv-foot a {
      margin: 0 20px 0 0;
    }
  }

  &[data-motion='off'] {
    & .nv-halo,
    & .nv-logo-mark,
    & .nv-float,
    & .nv-scrollhint,
    & .nv-reveal,
    & .is-on .nv-beam,
    & .is-on .nv-fields div,
    & .is-on .nv-morph-page,
    & .is-on .nv-graph path {
      animation: none !important;
    }
    & .nv-graph path {
      stroke-dasharray: none;
    }
    & .nv-tilt,
    & .nv-ch {
      transition: none;
    }
  }
}

/* ── Loader, particle portrait, scroll skew ─────────────────────────── */

@keyframes nv-hint-in {
  from {
    opacity: 0;
  }
}

:root[data-design='nova'] {
  & .nv-loader {
    position: fixed;
    inset: 0;
    z-index: 960;
    display: grid;
    place-items: center;
    background: var(--bg);
    clip-path: inset(0 0 0 0);
    transition: clip-path 0.9s cubic-bezier(0.76, 0, 0.24, 1);
  }
  & .nv-loader.is-done {
    clip-path: inset(0 0 100% 0);
  }
  & .nv-loader[hidden] {
    display: none;
  }
  & .nv-loader-inner {
    display: grid;
    justify-items: center;
    gap: 18px;
  }
  & .nv-loader-num {
    font-size: clamp(96px, 22vw, 320px);
    line-height: 0.85;
    font-weight: 800;
    font-variation-settings: 'wdth' 125;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(100deg, #fff, #c9bcff 35%, var(--cyan) 70%, var(--magenta));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  & .nv-loader-bar {
    width: min(420px, 70vw);
    height: 2px;
    background: var(--line);
  }
  & .nv-loader-bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--violet), var(--cyan), var(--magenta));
    transform-origin: left;
    transform: scaleX(0);
  }
  & .nv-loader-label {
    font-size: 14px;
    color: var(--muted);
  }

  & .nv-particles {
    position: absolute;
    left: -32%;
    top: -10%;
    width: 164%;
    height: 120%;
    max-width: none;
    pointer-events: none;
    z-index: 1;
  }
  & .nv-photo {
    transition: opacity 0.8s;
  }
  & .has-particles .nv-photo {
    opacity: 0;
  }
  & .has-particles .nv-tilt {
    transform: none;
  }
  & .has-particles .nv-halo {
    opacity: 0.4;
  }
  & .nv-stage-hint {
    display: none;
    margin: 12px 0 0;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
  }
  & .has-particles .nv-stage-hint {
    display: block;
    animation: nv-hint-in 1s 2.5s both;
  }

  & .nv-h2,
  & .nv-tile,
  & .nv-glass,
  & .nv-event h3,
  & .nv-contact-title {
    transform: skewY(var(--nv-skew, 0deg));
  }

  @media (pointer: coarse) {
    & .nv-stage-hint {
      font-size: 0;
    }
    & .nv-stage-hint::after {
      content: 'Antippen für eine Schockwelle';
      font-size: 13px;
    }
  }
}
