:root {
    --bg: #0f172a;
    --panel: #172033;
    --panel-soft: #1e293b;
    --text: #f8fafc;
    --muted: #b6c2d1;
    --accent: #38bdf8;
    --accent-dark: #7dd3fc;
    --accent-soft: rgba(56, 189, 248, 0.14);
    --border: #334155;
    --shadow: 0 16px 35px rgba(0, 0, 0, 0.28);
    --radius-lg: 24px;
    --radius-md: 16px;
    --max-width: 1180px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
      scroll-margin-top: 810px;
      scroll-padding-top: 50px;
    }

    body {
      margin: 0;
      font-family: Arial, Helvetica, sans-serif;
      line-height: 1.6;
      color: var(--text);
      background: var(--bg);
    }

    img {
      max-width: 100%;
      display: block;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    .page-shell {
      width: min(100% - 32px, var(--max-width));
      margin: 0 auto;
    }

    /* =======================================  HEADER AND NAVIGATION ======================================================== */

    header {
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(15, 23, 42, 0.9);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
    }


    .navbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 24px;
      padding: 16px 0;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 700;
      letter-spacing: 0.02em;
    }

    .logo-mark {
      width: 52px;
      height: 52px;
      display: grid;
      place-items: center;
      color: white;
      background: var(--accent);
      border-radius: 50%;
      font-size: 0.85rem;
      font-weight: 700;
      text-align: center;
      line-height: 1;
    }

    nav ul {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 14px;
      list-style: none;
      padding: 0;
      margin: 0;
      font-size: 0.92rem;
      color: var(--muted);
    }

    nav a {
      padding: 8px 10px;
      border-radius: 999px;
      transition: background 0.2s ease, color 0.2s ease;
    }

    nav a:hover {
      color: var(--accent-dark);
      background: var(--accent-soft);
    }

    /* ======================================================  HERO SECTION ================================================= */

    .hero {
      padding: 72px 0 44px;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
      gap: 34px;
      align-items: center;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--accent-dark);
      background: var(--accent-soft);
      padding: 8px 14px;
      border-radius: 999px;
      font-size: 0.9rem;
      font-weight: 700;
      margin-bottom: 18px;
    }

    h1 {
      font-size: clamp(2.4rem, 6vw, 5rem);
      line-height: 0.98;
      margin: 0 0 22px;
      letter-spacing: -0.05em;
    }

    .hero p {
      font-size: 1.12rem;
      color: var(--muted);
      max-width: 720px;
      margin-bottom: 28px;
    }

    .author-info {
    margin: -8px 0 24px;
    line-height: 1.5;
    }

    .author-info p {
    margin: 0;
    font-size: 1.2rem;
    color: var(--muted);
    }

    .author-info p:first-child {
    color: var(--text);
    font-size: 1.2rem;
    }

    .author-info a {
    color: var(--accent-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
    }

    .button-row {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 24px;
    }

    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      padding: 12px 18px;
      font-weight: 700;
      border: 1px solid transparent;
      transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .button:hover {
      transform: translateY(-2px);
    }

    .button-primary {
      color: white;
      background: var(--accent);
      box-shadow: 0 10px 24px rgba(47, 111, 115, 0.25);
    }

    .button-secondary {
      color: var(--accent-dark);
      background: white;
      border-color: var(--border);
    }

    .hero-card {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 10px;
      box-shadow: var(--shadow);
    }

    .image-placeholder {
      min-height: 320px;
      display: grid;
      place-items: center;
      text-align: center;
      color: var(--muted);
      background:
        linear-gradient(135deg, rgba(47, 111, 115, 0.12), rgba(255, 255, 255, 0.4)),
        repeating-linear-gradient(45deg, #f2f5f7 0 12px, #e8eef2 12px 24px);
      border: 1px dashed #aab7c4;
      border-radius: 18px;
      padding: 24px;
    }

    .hero-card-caption {
      margin: 14px 4px 0;
      font-size: 0.88rem;
      color: var(--muted);
    }

    .hero-image {
      border-radius: 18px;
      overflow: hidden;
      border: 1px solid var(--border);
    }

    .hero-image img {
      width: 100%;
      height: auto;
      display: block;
    }

    /* =======================================================  Common layout  =============================================== */

    section {
      padding: 54px 0;
    }

    .section-heading {
      margin-bottom: 26px;
    }

    .section-heading h2 {
      font-size: clamp(1.8rem, 4vw, 3rem);
      line-height: 1.05;
      margin: 0 0 12px;
      letter-spacing: -0.035em;
    }

    .section-heading p {
      color: var(--muted);
      max-width: 760px;
      margin: 0;
    }

    .subsection-heading {
      margin-bottom: 26px;
    }

    .subsection-heading h2 {
      font-size: clamp(1.8rem, 3vw, 2rem);
      line-height: 1.05;
      margin: 0 0 12px;
      letter-spacing: -0.035em;
    }

    .subsection-heading p {
      color: var(--muted);
      max-width: 760px;
      margin: 0;
    }

    .card-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 18px;
    }

    .card {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 22px;
      box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    }

    .card h3 {
      margin-top: 0;
      margin-bottom: 10px;
      font-size: 1.1rem;
    }

    .card p,
    .card li {
      color: var(--muted);
      font-size: 0.96rem;
    }

    .two-column {
      display: grid;
      grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
      gap: 26px;
      align-items: start;
    }

    .highlight-box {
      background: var(--accent-soft);
      border: 1px solid rgba(47, 111, 115, 0.25);
      border-radius: var(--radius-md);
      padding: 22px;
      color: var(--accent-dark);
    }

    .highlight-box strong {
      display: block;
      margin-bottom: 8px;
    }

    /* ================================================== PROJECT SUMMARY STATS ============================================== */

    .stats-row {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 16px;
      margin-top: 30px;
    }

    .stat {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 20px;
    }

    .stat-number {
      display: block;
      font-size: 2rem;
      font-weight: 800;
      color: var(--accent-dark);
      line-height: 1;
      margin-bottom: 8px;
    }

    .stat-label {
      color: var(--muted);
      font-size: 0.9rem;
    }

    /* ================================================= PROCESS TIMELINE  ================================================= */

    .timeline {
      display: grid;
      gap: 16px;
      counter-reset: step;
    }

    .timeline-item {
      position: relative;
      display: grid;
      grid-template-columns: 56px 1fr;
      gap: 16px;
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 18px;
    }

    .timeline-number {
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      color: white;
      background: var(--accent);
      border-radius: 50%;
      font-weight: 800;
    }

    .timeline-item h3 {
      margin: 0 0 6px;
    }

    .timeline-item p {
      margin: 0;
      color: var(--muted);
    }

    /* ====================================================== FIGURES ========================================================= */

    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 20px;
    }

    .gallery-wide-small {
        grid-template-columns: 1.45fr 0.35fr;
        align-items: start;
    }

    .gallery-wide-medium {
        grid-template-columns: 1fr 0.9fr;
        align-items: start;
    }

    figure img {
    width: 100%;
    height: auto;
    display: block;
    }

    figure {
      margin: 0;
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 14px;
      box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    }

    figure .image-placeholder {
      min-height: 260px;
      border-radius: 12px;
    }

    figcaption {
      margin-top: 12px;
      color: var(--muted);
      font-size: 0.92rem;
    }

    .figure-smaller {
    width: 35%;
    margin: 0 auto;
    }

    .figure-small {
    width: 45%;
    margin: 0 auto;
    }

    .figure-medium {
    width: 70%;
    margin: 0 auto;
    }

    .figure-large {
    width: 100%;
    margin: 0 auto;
    }

    /* ======================================================== TABLE ====================================================== */

    .table-wrapper {
      overflow-x: auto;
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    }

    table {
      width: 100%;
      border-collapse: collapse;
      min-width: 720px;
    }

    th,
    td {
      padding: 14px 16px;
      text-align: left;
      border-bottom: 1px solid var(--border);
    }

    th {
      background: var(--panel-soft);
      font-size: 0.9rem;
      color: var(--accent-dark);
    }

    td {
      color: var(--muted);
    }

    tr:last-child td {
      border-bottom: none;
    }

    /* ======================================================= FOOTER ======================================================= */

    footer {
      margin-top: 48px;
      padding: 34px 0;
      color: var(--muted);
      border-top: 1px solid var(--border);
    }

    .footer-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 20px;
      flex-wrap: wrap;
    }

    .ai-disclaimer {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 12px;
    }

    /* ==================================================== RESPONSIVE DESIGN ================================================= */

    @media (max-width: 900px) {
      .hero-grid,
      .two-column {
        grid-template-columns: 1fr;
      }

      .card-grid,
      .stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      nav ul {
        display: none;
      }
    }

    @media (max-width: 620px) {
      .card-grid,
      .stats-row,
      .gallery-grid {
        grid-template-columns: 1fr;
      }

      .hero {
        padding-top: 44px;
      }

      .timeline-item {
        grid-template-columns: 1fr;
      }
    }
