﻿:root {
    --color-primary: #004f90;
    --color-primary-light: #2a75b9;
    --color-background: #f6f8fb;
    --color-surface: #ffffff;
    --color-text: #1f2933;
    --color-muted: #6b7a90;
    --shadow-soft: 0 20px 40px rgba(0, 24, 72, 0.08);
    --shadow-strong: 0 30px 60px rgba(0, 24, 72, 0.16);
    --radius-large: 24px;
    --radius-medium: 18px;
    --radius-small: 12px;
    --max-width: 1100px;
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Work Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--color-text);
    background: var(--color-background);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover,
a:focus-visible {
    color: var(--color-primary);
}

img {
    display: block;
    max-width: 100%;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.top-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 7vw;
    background: rgba(246, 248, 251, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 79, 144, 0.08);
}

.brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.nav {
    position: relative;
}

.nav-links {
    display: flex;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-weight: 500;
}

.nav-links a {
    position: relative;
    padding-bottom: 0.3rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle-line {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
    padding: 6rem 7vw 5rem;
}
  .hero-media {
      position: relative;
      border-radius: var(--radius-large);
      overflow: hidden;
      box-shadow: var(--shadow-strong);
      background: var(--color-surface);
      width: clamp(480px, 52vw, 620px);
      max-width: none;
      justify-self: stretch;
  }

  .hero-carousel {
      position: relative;
      width: 100%;
      aspect-ratio: 4 / 3;
      display: block;
      max-height: 520px;
  }

  .hero-slide {
      position: absolute;
      inset: 0;
      opacity: 0;
      transition: opacity 0.8s ease;
  }

  .hero-slide.is-active {
      opacity: 1;
      z-index: 1;
  }

  .hero-slide img {
      width: 100%;
      height: 100%;
      object-fit: cover;
  }

  .hero-controls {
      position: absolute;
      left: 50%;
      bottom: 1.4rem;
      transform: translateX(-50%);
      display: flex;
      gap: 0.6rem;
  }

  .hero-indicator {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      border: 2px solid rgba(255, 255, 255, 0.75);
      background: rgba(0, 79, 144, 0.4);
      cursor: pointer;
      transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  }

  .hero-indicator.is-active {
      background: #fff;
      border-color: #fff;
      transform: scale(1.1);
  }

  .hero-indicator:focus-visible {
      outline: 2px solid #fff;
      outline-offset: 3px;
  }


.hero-content {
    max-width: 540px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.95rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.hero h1 {
    margin: 0 0 1.2rem;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.6rem, 5vw, 3.6rem);
    line-height: 1.1;
}

.hero h1 span {
    color: var(--color-primary);
}

.hero p {
    font-size: 1.05rem;
    color: var(--color-muted);
    margin-bottom: 1.8rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    cursor: pointer;
}

.btn.primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 18px 28px rgba(0, 79, 144, 0.25);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 32px rgba(0, 79, 144, 0.3);
}

.btn.outline {
    border: 2px solid rgba(0, 79, 144, 0.35);
    color: var(--color-primary);
    background: transparent;
}

.btn.outline:hover {
    background: rgba(0, 79, 144, 0.08);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.hero-tags span {
    font-size: 0.85rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(0, 79, 144, 0.08);
    color: var(--color-primary);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.section {
    padding: 5rem 7vw;
}

.section-heading {
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-heading h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.7rem);
    margin-bottom: 0.7rem;
}

.section-heading p {
    color: var(--color-muted);
    font-size: 1.05rem;
    margin: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: min(1400px, 100%);
    margin: 0 auto;
}

.about-card {
    background: var(--color-surface);
    padding: 2.5rem;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-card h3 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
}

.about-card p {
    margin: 0;
    color: var(--color-muted);
}

.about-card blockquote {
    margin: 0;
    font-style: italic;
    color: var(--color-primary);
    border-left: 3px solid rgba(0, 79, 144, 0.3);
    padding-left: 1rem;
}

.keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.keywords li {
    background: rgba(0, 79, 144, 0.08);
    color: var(--color-primary);
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
}

.project-grid {
    max-width: min(1400px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.2rem;
    align-items: stretch;
}

.project-card {
    background: var(--color-surface);
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.project-card.primary {
    grid-column: span 1;
}

.project-media {
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 420 / 260;
    background: linear-gradient(135deg, rgba(0, 79, 144, 0.12), rgba(42, 117, 185, 0.08));
    border-bottom: 1px solid rgba(0, 79, 144, 0.08);
}

.project-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 2.25rem 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.project-content h3 {
    margin: 0;
    font-size: 1.45rem;
    font-family: 'Playfair Display', serif;
}

.project-content p {
    margin: 0;
    color: var(--color-muted);
}

.project-points {
    margin: 0;
    padding-left: 1.2rem;
    list-style: disc;
    display: grid;
    gap: 0.5rem;
    color: var(--color-muted);
}

.project-points li {
    line-height: 1.55;
}

.project-meta {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.project-meta li {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(0, 79, 144, 0.08);
    color: var(--color-primary);
    font-weight: 600;
}



.feature-copy {
    background: var(--color-surface);
    padding: 2.6rem;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.research-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    background: rgba(0, 79, 144, 0.12);
    color: var(--color-primary);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
}

.feature-copy h3 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    line-height: 1.25;
}

.feature-copy p {
    margin: 0;
    color: var(--color-muted);
}

.feature-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.1rem;
}

.feature-stats div {
    background: rgba(0, 79, 144, 0.07);
    border-radius: var(--radius-medium);
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    border: 1px solid rgba(0, 79, 144, 0.14);
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    color: rgba(0, 79, 144, 0.65);
    font-weight: 700;
}

.stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--color-primary);
    font-weight: 600;
}

.research-visual {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    justify-content: center;
}

.research-visual figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.research-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.6rem;
}

.research-card {
    background: var(--color-surface);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-soft);
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    border: 1px solid rgba(0, 79, 144, 0.08);
}

.research-card h4 {
    margin: 0;
    font-size: 1.15rem;
    font-family: 'Playfair Display', serif;
    color: var(--color-primary);
}

.research-card p {
    margin: 0;
    color: var(--color-muted);
}

.research-card.emphasis {
    background: linear-gradient(140deg, rgba(0, 79, 144, 0.18), rgba(42, 117, 185, 0.12));
    color: #0f2c4d;
}

.research-card.emphasis h4,
.research-card.emphasis p {
    color: inherit;
}

.life-strip {
    max-width: min(1400px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.life-item {
    width: auto;
    min-width: 0;
    background: var(--color-surface);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.life-thumb {
    height: 150px;
    background: rgba(0, 79, 144, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(0, 79, 144, 0.75);
    font-weight: 600;
    padding: 1rem;
    letter-spacing: 0.05em;
}

.life-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.life-thumb.placeholder {
    background: repeating-linear-gradient(135deg, rgba(0, 79, 144, 0.12) 0, rgba(0, 79, 144, 0.12) 10px, rgba(0, 79, 144, 0.05) 10px, rgba(0, 79, 144, 0.05) 20px);
}

.life-copy {
    padding: 1.3rem 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.life-copy h3 {
    margin: 0;
    font-size: 1.1rem;
    font-family: 'Playfair Display', serif;
}

.life-copy p {
    margin: 0;
    color: var(--color-muted);
}

.gallery-carousel {
    max-width: var(--max-width);
    margin: 0 auto;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x proximity;
}

.gallery-track {
    display: flex;
    gap: 1rem;
    min-width: max-content;
}

.gallery-item {
    flex: 0 0 180px;
    height: 140px;
    background: var(--color-surface);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-soft);
    display: grid;
    place-items: center;
    padding: 1rem;
    text-align: center;
    color: var(--color-muted);
    font-weight: 600;
    scroll-snap-align: start;
}

footer.contact {
    background: var(--color-primary);
    color: #f3f7fc;
}

.contact-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    align-items: center;
    justify-content: space-between;
}

.contact-inner h2 {
    margin: 0 0 1rem;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.contact-inner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    max-width: 520px;
}

.contact-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

footer .btn.primary {
    background: #fff;
    color: var(--color-primary);
    box-shadow: none;
}

footer .btn.primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

footer .btn.outline {
    border-color: rgba(255, 255, 255, 0.65);
    color: #fff;
}

.footer-meta {
    max-width: var(--max-width);
    margin: 3rem auto 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

@media (max-width: 1080px) {
    .project-grid,
    .life-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 8rem;
    }

    .hero-media {
        width: min(520px, 100%);
        margin: 0 auto;
    }

    .hero-carousel {
        aspect-ratio: 3 / 4;
        max-height: none;
    }

    .hero-controls {
        bottom: 1rem;
    }

    .project-card.primary {
        grid-column: span 1;
    }

    .research-duo {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        flex-direction: column;
        background: rgba(246, 248, 251, 0.97);
        padding: 1.5rem 2rem;
        border-radius: var(--radius-medium);
        box-shadow: var(--shadow-soft);
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-links[aria-expanded='true'] {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .top-nav {
        padding-left: 6vw;
        padding-right: 6vw;
    }

    .project-grid,
    .life-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-carousel {
        aspect-ratio: 3 / 4;
    }
}

@media (max-width: 520px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .about-card,
    .project-content,
    .feature-copy,
    .life-copy {
        padding: 1.75rem;
    }

    .gallery-item {
        flex: 0 0 160px;
        height: 120px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none;
    }
}

.research-duo {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.6rem;
}

.research-card {
    background: var(--color-surface);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-soft);
    padding: 2.4rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    border: 1px solid rgba(0, 79, 144, 0.08);
}

.research-card h3 {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: 1.7rem;
}

.research-card h3 a:hover,
.research-card h3 a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.research-card p {
    margin: 0;
    color: var(--color-muted);
}

.research-card ul {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.5rem;
    color: var(--color-muted);
}

.research-card li {
    line-height: 1.5;
}

.research-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(0, 79, 144, 0.12);
    color: var(--color-primary);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    font-weight: 700;
    text-transform: uppercase;
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 8rem;
    }

    .hero-media {
        width: min(520px, 100%);
        margin: 0 auto;
    }

    .hero-carousel {
        aspect-ratio: 3 / 4;
        max-height: none;
    }

    .hero-controls {
        bottom: 1rem;
    }

    .project-card.primary {
        grid-column: span 1;
    }

    .research-duo {
        grid-template-columns: 1fr;
    }
}
