    :root {
      color-scheme: light;
      --bg: #e6ede7;
      --bg-2: #cfdacf;
      --ink: #102014;
      --muted: #324c3a;
      --brand: #1f8f4e;
      --brand-2: #166238;
      --tag-ink: #1d5a34;
      --card: rgba(255, 255, 255, 0.62);
      --line: rgba(16, 32, 20, 0.18);
      --control-bg: rgba(246, 251, 247, 0.72);
    }

    html[data-theme="dark"] {
      color-scheme: dark;
      --bg: #111716;
      --bg-2: #1a2621;
      --ink: #e7f5ea;
      --muted: #b0cab8;
      --brand: #4bc57a;
      --brand-2: #2f9d5d;
      --tag-ink: #8fe8af;
      --card: rgba(15, 25, 20, 0.72);
      --line: rgba(214, 245, 225, 0.2);
      --control-bg: rgba(19, 31, 24, 0.82);
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
      color: var(--ink);
      background:
        radial-gradient(circle at 10% 12%, rgba(213, 236, 218, 0.62) 0%, rgba(213, 236, 218, 0) 48%),
        radial-gradient(circle at 88% 86%, rgba(170, 202, 178, 0.32) 0%, rgba(170, 202, 178, 0) 52%),
        linear-gradient(165deg, var(--bg) 0%, var(--bg-2) 100%);
      line-height: 1.55;
      transition: background 220ms ease, color 220ms ease;
    }

    .wrap {
      width: min(980px, 92vw);
      margin: 0 auto;
      padding: 1.2rem 0 2.8rem;
    }

    .toolbar {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 0.55rem;
      margin-bottom: 1.5rem;
    }

    .control {
      border: 1px solid var(--line);
      background: var(--control-bg);
      color: var(--ink);
      border-radius: 999px;
      min-height: 2.2rem;
      padding: 0.45rem 0.85rem;
      font-size: 0.92rem;
      font-weight: 600;
    }

    select.control {
      padding-right: 1.65rem;
      appearance: none;
      background-image:
        linear-gradient(45deg, transparent 50%, var(--ink) 50%),
        linear-gradient(135deg, var(--ink) 50%, transparent 50%);
      background-position:
        calc(100% - 14px) calc(50% - 2px),
        calc(100% - 8px) calc(50% - 2px);
      background-size: 6px 6px, 6px 6px;
      background-repeat: no-repeat;
    }

    button.control {
      cursor: pointer;
    }

    .hero {
      position: relative;
    }

    .hero::before {
      content: "";
      position: absolute;
      inset: -120px -40px auto -40px;
      height: 360px;
      background: radial-gradient(
        circle at 50% 20%,
        rgba(75,197,122,0.25),
        rgba(75,197,122,0) 70%
      );
      filter: blur(40px);
      pointer-events: none;
      z-index: -1;
    }

    .hero h1 {
      margin: 0;
      max-width: 18ch;
      font-size: clamp(2rem, 5vw, 4rem);
      line-height: 1.03;
      letter-spacing: -0.03em;
    }

    .tag {
      margin: 0 0 0.85rem;
      font-size: 0.85rem;
      font-weight: 800;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--tag-ink);
    }

    .intro {
      margin: 1rem 0 0;
      max-width: 62ch;
      color: var(--muted);
      font-size: 1.05rem;
    }

    .actions {
      margin-top: 1.35rem;
      display: flex;
      flex-wrap: wrap;
      gap: 0.7rem;
    }

    .btn {
      display: inline-block;
      padding: 0.66rem 1rem;
      border-radius: 999px;
      text-decoration: none;
      font-weight: 700;
      border: 1px solid transparent;
    }

    .btn-primary {
      color: #fff;
      background: linear-gradient(180deg, var(--brand), var(--brand-2));
    }

    .btn-primary:hover {
      box-shadow:
        0 6px 18px rgba(75,197,122,0.35),
        0 0 0 1px rgba(75,197,122,0.2);
    }

    .btn-secondary {
      color: var(--ink);
      background: transparent;
      border-color: var(--line);
    }

    section { margin-top: 2.2rem; }

    h2 {
      margin: 0;
      font-size: clamp(1.25rem, 2.3vw, 1.7rem);
      letter-spacing: -0.02em;
    }

    .cards {
      margin-top: 0.95rem;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
      gap: 0.85rem;
    }

    .card {
      padding: 1rem;
      border: 1px solid var(--line);
      border-radius: 0.9rem;
      background: var(--card);
      backdrop-filter: blur(1px);
    }

    .card h3 {
      margin: 0;
      font-size: 1.02rem;
    }

    .card p {
      margin: 0.55rem 0 0;
      color: var(--muted);
    }

    .divider {
      border-top: 1px solid var(--line);
      padding-top: 1.2rem;
    }

    .foot {
      margin-top: 2.35rem;
      font-size: 0.96rem;
      color: var(--muted);
    }

    .foot a {
      color: var(--brand-2);
      font-weight: 700;
    }

    @media (max-width: 560px) {
      .toolbar {
        justify-content: flex-start;
      }
    }

    .timeline-item,
    .timeline-week{
      position:relative;
      margin-bottom:1.8rem;
      transition: opacity 400ms ease, transform 400ms ease;
    }

    .timeline-item:hover,
    .timeline-week:hover{
      transform:translateX(3px);
    }

    .timeline-dot,
    #status-section .timeline-week::before{
      content:"";
      position:absolute;
      left:-18px;
      top:6px;
      width:12px;
      height:12px;
      border-radius:50%;
      background:var(--brand);
      box-shadow:0 0 0 3px rgba(31,143,78,.2);
      transition:all .2s ease;
    }

    .timeline-item:hover .timeline-dot,
    #status-section .timeline-week:hover::before{
      transform:scale(1.2);
      box-shadow:
        0 0 0 4px rgba(31,143,78,.25),
        0 0 12px rgba(31,143,78,.35);
    }

    .timeline-content,
    #status-section .timeline-week{
      padding:.4rem .6rem;
      border-radius:10px;
      transition:background .2s ease;
    }

    .timeline-item:hover .timeline-content,
    #status-section .timeline-week:hover{
      background:rgba(255,255,255,.35);
    }

    .timeline-item:last-child .timeline-dot,
    #status-section .timeline-week:last-child::before{
      background:#3bd37a;
      box-shadow:0 0 0 4px rgba(59,211,122,.35);
    }

    .wrap .hero{
      position:relative;
      z-index:1;
    }

    .wrap .hero::before{
      content:"";
      position:absolute;
      inset:-120px -60px auto -60px;
      height:420px;

      background:radial-gradient(
        circle at 50% 25%,
        rgba(90,210,150,0.35),
        rgba(90,210,150,0) 70%
      );

      filter:blur(40px);
      pointer-events:none;
      z-index:-1;
    }

    .hero::after{
      content:"";
      position:absolute;
      inset:-160px -120px auto -120px;
      height:520px;

      background:radial-gradient(
        circle at 50% 20%,
        rgba(90,210,150,0.15),
        transparent 70%
      );

      filter:blur(60px);
      animation:heroGlow 12s ease-in-out infinite alternate;
      pointer-events:none;
      z-index:-2;
    }

    @keyframes heroGlow{
      from{
        transform:translateY(-10px);
      }
      to{
        transform:translateY(15px);
      }
    }

    .wrap .hero h1{
      text-shadow:
        0 1px 0 rgba(255,255,255,0.4),
        0 8px 30px rgba(0,0,0,0.12);
    }

    .preview-grid{
      margin-top:1.4rem;
      display:grid;
      grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
      gap:1.2rem;
    }

    .preview-card{
      display:block;
      text-decoration:none;
      border-radius:14px;
      overflow:hidden;
      border:1px solid var(--line);
      background:var(--card);
      transition: opacity 400ms ease, transform 400ms ease, box-shadow .2s ease;
    }

    .preview-card:hover{
      transform:translateY(-6px);
      box-shadow:0 12px 30px rgba(0,0,0,.12);
    }

    .preview-card img{
      width:100%;
      display:block;
    }

    .preview-label{
      padding:.6rem .8rem;
      font-weight:600;
    }

    .preview-browser{
      height:28px;
      background:rgba(0,0,0,.08);
      display:flex;
      gap:6px;
      align-items:center;
      padding:0 8px;
    }

    .preview-browser span{
      width:8px;
      height:8px;
      border-radius:50%;
      background:rgba(0,0,0,.25);
    }

/* Scroll-in animation - base state (hidden) */
.card,
.timeline-week,
section > h2,
section > p.intro {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.preview-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms ease, transform 400ms ease, box-shadow .2s ease;
}

/* Scroll-in animation - visible state */
.card.is-visible,
.preview-card.is-visible,
.timeline-week.is-visible,
section > h2.is-visible,
section > p.intro.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Lang switch fade - base transition on main enables the fade-in when is-switching is removed */
main {
  transition: opacity 150ms ease;
}

main.is-switching {
  opacity: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
