:root {
    --brand: #d90368;
    --brand-dim: rgba(217,3,104,0.15);
  }
  html { scroll-behavior: smooth; }

  /* ── Full-page background (light) ── */
  body {
    background-color: #f1f5f9;
    background-image:
      radial-gradient(ellipse 90% 55% at 50% -5%,  rgba(217,3,104,.10) 0%, transparent 60%),
      radial-gradient(ellipse 55% 45% at 95% 85%,  rgba(217,3,104,.05) 0%, transparent 55%),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='16' cy='16' r='1' fill='%23000000' fill-opacity='.08'/%3E%3C/svg%3E");
    background-attachment: fixed, fixed, fixed;
    background-size: auto, auto, 32px 32px;
    color: #0f172a;
    transition: background-color .3s ease, color .3s ease;
  }

  /* ── Full-page background (dark) ── */
  html.dark body {
    background-color: #020617;
    background-image:
      radial-gradient(ellipse 90% 55% at 50% -5%,  rgba(217,3,104,.20) 0%, transparent 60%),
      radial-gradient(ellipse 55% 45% at 95% 85%,  rgba(217,3,104,.08) 0%, transparent 55%),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='16' cy='16' r='1' fill='%23ffffff' fill-opacity='.10'/%3E%3C/svg%3E");
    color: #f1f5f9;
  }

  /* ── Canvas Hero ── */
  #dart-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    touch-action: none;
  }
  #hero-section {
    position: relative;
    height: 100svh;
    min-height: 520px;
    overflow: hidden;
  }
  #hero-ui {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 2rem;
  }
  #stage-label {
    font-size: 0.7rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
    margin-bottom: .3rem;
  }
  #throw-hint {
    font-size: 0.85rem;
    color: rgba(255,255,255,.7);
    animation: blink 1.6s ease-in-out infinite;
  }
  @keyframes blink { 0%,100%{opacity:.7} 50%{opacity:.3} }

  /* ── Timeline ── */
  .tl-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 2.5rem;
  }
  .tl-item::before {
    content: '';
    position: absolute;
    left: .45rem;
    top: .5rem;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--brand) 0%, transparent 100%);
    opacity: .35;
  }
  .tl-dot {
    position: absolute;
    left: 0;
    top: .4rem;
    width: .95rem;
    height: .95rem;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-dim);
  }
  .tl-item:last-child::before { display: none; }

  /* ── Works featured card ── */
  .featured-card {
    background: linear-gradient(135deg,
      rgba(217,3,104,.08) 0%,
      rgba(217,3,104,.02) 100%);
    border: 1.5px solid rgba(217,3,104,.35);
    transition: border-color .25s, transform .25s;
  }
  .featured-card:hover {
    border-color: var(--brand);
    transform: translateY(-3px);
  }

  /* ── Skill pills ── */
  .skill-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .9rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
    transition: background .2s, border-color .2s;
  }
  .skill-pill:hover {
    background: var(--brand-dim);
    border-color: rgba(217,3,104,.5);
  }

  /* ── Card hover ── */
  .work-card {
    transition: transform .25s, border-color .25s;
    text-decoration: none;
    color: inherit;
  }
  .work-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand) !important;
    text-decoration: none;
  }

  /* ── Scroll-reveal ── */
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s ease, transform .55s ease;
  }
  .reveal.visible {
    opacity: 1.4;
    transform: none;
  }

  /* ── Text brand colour ── */
  .text-brand { color: var(--brand); }
  .bg-brand   { background-color: var(--brand); }
  .border-brand { border-color: var(--brand); }

  /* ── PC font-size: one step up (md breakpoint, no md:text-* override clash) ── */
  @media (min-width: 768px) {
    .text-xs:not([class*='md:text-'])   { font-size: 0.875rem; line-height: 1.25rem; }
    .text-sm:not([class*='md:text-'])   { font-size: 1rem;     line-height: 1.5rem;  }
    .text-base:not([class*='md:text-']) { font-size: 1.125rem; line-height: 2.4rem; }
    .text-lg:not([class*='md:text-'])   { font-size: 1.25rem;  line-height: 1.75rem; }
    .text-xl:not([class*='md:text-'])   { font-size: 1.5rem;   line-height: 2rem;    }
    .text-2xl:not([class*='md:text-'])  { font-size: 1.875rem; line-height: 2.25rem; }
    .text-3xl:not([class*='md:text-'])  { font-size: 2.25rem;  line-height: 2.5rem;  }
    .text-4xl:not([class*='md:text-'])  { font-size: 3rem;     line-height: 1;       }
    .text-5xl:not([class*='md:text-'])  { font-size: 3.75rem;  line-height: 1;       }
    .skill-pill { font-size: 0.875rem; }
  }

  body  .md\:text-6xl { line-height: 1.4; }