:root {
    color-scheme: light;
    --bg: #f7f6f3;
    --surface: #ffffff;
    --fg: #1a1a1a;
    --muted: #5c5c5c;
    --border: #e0ddd7;
    --accent: #2d6a4f;
    --accent-deep: #1b4332;
    --accent-soft: #d8f3dc;
    --nav-bg: rgba(247, 246, 243, 0.88);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
    --font-display: 'Iowan Old Style', Georgia, 'Times New Roman', serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --page-width: 1100px;
    --gutter: clamp(1.25rem, 4vw, 3rem);
    --section-space: clamp(5rem, 10vw, 8rem);
  }

  :root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #121212;
    --surface: #1e1e1e;
    --fg: #e8e8e8;
    --muted: #a0a0a0;
    --border: #333333;
    --accent: #52b788;
    --accent-deep: #74c69d;
    --accent-soft: #1b4332;
    --nav-bg: rgba(18, 18, 18, 0.88);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  }

  *, *::before, *::after { box-sizing: border-box; }

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
  }

  body {
    margin: 0;
    overflow-x: clip;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  img, svg { display: block; max-width: 100%; }
  a { color: inherit; text-decoration: none; }
  button, a { -webkit-tap-highlight-color: transparent; }
  button { font: inherit; cursor: pointer; }

  ::selection {
    background: var(--accent);
    color: #fff;
  }

  .skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1000;
    padding: 0.7rem 1rem;
    background: var(--fg);
    color: var(--bg);
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 160ms ease;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
  }
  .skip-link:focus { transform: translateY(0); }

  /* ---- Header ---- */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: min(100%, var(--page-width));
    min-height: 4.5rem;
    margin: 0 auto;
    padding: 0 var(--gutter);
  }

  .wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    width: max-content;
  }
  .wordmark span {
    display: grid;
    width: 2.1rem;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
  }
  .wordmark strong {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--fg);
  }

  .site-nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 2.25rem);
  }
  .site-nav a {
    position: relative;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
  }
  .site-nav a::after {
    position: absolute;
    right: 0;
    bottom: -0.5rem;
    left: 0;
    height: 1.5px;
    background: var(--accent);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
  }
  .site-nav a:hover::after,
  .site-nav a.is-current::after { transform: scaleX(1); }

  .theme-toggle {
    justify-self: end;
    display: grid;
    width: 2.4rem;
    aspect-ratio: 1;
    padding: 0.55rem;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: transparent;
    color: var(--fg);
    place-items: center;
    transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
  }
  .theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: rotate(8deg);
  }
  .theme-toggle svg { grid-area: 1 / 1; width: 1.2rem; }
  .theme-toggle__sun,
  [data-theme="dark"] .theme-toggle__moon {
    opacity: 0;
    transform: rotate(-45deg) scale(0.7);
  }
  [data-theme="dark"] .theme-toggle__sun {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
  .theme-toggle svg {
    transition: opacity 180ms ease, transform 180ms ease;
  }

  /* ---- Hero ---- */
  .hero {
    width: min(100%, var(--page-width));
    margin: 0 auto;
    padding: clamp(4rem, 8vw, 7rem) var(--gutter) 0;
  }
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(16rem, 0.7fr);
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
  }
  .hero__copy { max-width: 46rem; }
  .hero__themes {
    display: flex;
    gap: 1.2rem;
    margin: 0 0 1.2rem;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
  }
  .hero__themes span:not(:last-child)::after {
    margin-left: 1.2rem;
    color: var(--border);
    content: "/";
  }
  .hero h1 {
    max-width: 12ch;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 7vw, 6rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 0.95;
    color: var(--fg);
  }
  .hero__role {
    margin: 1.5rem 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.8vw, 1.15rem);
  }
  .hero__role span {
    color: var(--border);
    font-family: var(--font-display);
    font-style: italic;
  }
  .hero__lead {
    max-width: 34ch;
    margin: 1.8rem 0 0;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--fg);
  }
  .hero__bio {
    max-width: 58ch;
    margin: 1.2rem 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
  }
  .hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
  }

  .button {
    display: inline-flex;
    gap: 0.6rem;
    align-items: center;
    min-height: 3rem;
    padding: 0.75rem 1.25rem;
    border: 1.5px solid var(--accent);
    background: var(--accent);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 6px;
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
  }
  .button:hover {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
    transform: translateY(-2px);
  }
  .button svg,
  .text-link svg {
    width: 1.1rem;
    flex: 0 0 auto;
    transition: transform 180ms ease;
  }
  .button:hover svg,
  .text-link:hover svg { transform: translateX(0.2rem); }

  .text-link {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    color: var(--fg);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--border);
    text-underline-offset: 0.3rem;
    text-decoration-thickness: 1.5px;
  }
  .text-link:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
  }

  .portrait {
    position: relative;
    margin: 0;
  }
  .portrait__frame {
    position: relative;
    z-index: 1;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }
  .portrait__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    filter: saturate(0.92) contrast(1.02);
  }
  .portrait figcaption {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.9rem;
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .hero__facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: clamp(3.5rem, 7vw, 6rem) 0 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .hero__facts div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.8rem;
    align-items: baseline;
    padding: 1.2rem clamp(1rem, 3vw, 2rem);
  }
  .hero__facts div:not(:last-child) {
    border-right: 1px solid var(--border);
  }
  .hero__facts dt {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
  }
  .hero__facts dd {
    margin: 0;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.3;
  }

  /* ---- Sections ---- */
  .page-section {
    width: min(100%, var(--page-width));
    margin: 0 auto;
    padding: var(--section-space) var(--gutter) 0;
  }

  .section-heading {
    display: grid;
    grid-template-columns: minmax(10rem, 0.4fr) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 6rem);
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
    padding-top: 1.2rem;
    border-top: 1.5px solid var(--border);
  }
  .section-heading > div:first-child {
    display: flex;
    gap: 1rem;
    align-items: baseline;
  }
  .section-heading__number {
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
  }
  .eyebrow {
    margin: 0;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
  }
  .section-heading h2 {
    max-width: 16ch;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 0.98;
  }
  .section-heading > div:last-child > p {
    max-width: 50ch;
    margin: 1.2rem 0 0;
    color: var(--muted);
    font-size: 1.05rem;
  }

  /* ---- Focus Grid ---- */
  .focus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .focus-card {
    min-height: 22rem;
    padding: 1.8rem;
    transition: border-color 200ms ease;
  }
  .focus-card:not(:last-child) {
    border-right: 1px solid var(--border);
  }
  .focus-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: var(--muted);
  }
  .focus-card__number {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
  }
  .focus-card__icon {
    display: grid;
    width: 2.8rem;
    aspect-ratio: 1;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--accent);
    place-items: center;
  }
  .focus-card__icon svg { width: 1.25rem; }
  .focus-card h3 {
    max-width: 10ch;
    margin: 4rem 0 1rem;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.05;
  }
  .focus-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* ---- Projects ---- */
  .page-section--projects {
    width: 100%;
    max-width: none;
    padding-right: max(var(--gutter), calc((100vw - var(--page-width)) / 2 + var(--gutter)));
    padding-left: max(var(--gutter), calc((100vw - var(--page-width)) / 2 + var(--gutter)));
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-bottom: var(--section-space);
  }
  .project-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    border: 1px solid var(--border);
    background: var(--bg);
    border-radius: 10px;
    overflow: hidden;
  }
  .project-card--featured {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(16rem, 0.65fr) minmax(0, 1.35fr);
    border-radius: 12px;
  }
  .project-card__body {
    padding: clamp(1.4rem, 3vw, 2.2rem);
  }
  .project-card--featured .project-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 4vw, 4rem);
  }
  .project-card__meta {
    margin: 0 0 1rem;
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .project-card h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.8vw, 2.6rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.05;
  }
  .project-card__body > p:not(.project-card__meta) {
    margin: 0.9rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
  }
  .project-card .text-link { margin-top: 1.2rem; }

  .video-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    margin-top: auto;
    background: var(--accent-deep);
  }
  .project-card--featured .video-shell { aspect-ratio: 16 / 9; }

  .video-trigger {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: var(--accent-deep);
    color: #fff;
    cursor: pointer;
  }
  .video-trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.15) saturate(0.8) contrast(1.08);
    transition: filter 320ms ease, transform 500ms ease;
  }
  .video-trigger__wash {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 25%, rgba(0,0,0,0.65));
  }
  .video-trigger__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4rem;
    color: #fff;
    transform: translate(-50%, -50%);
    transition: transform 220ms ease;
  }
  .video-trigger__play circle {
    fill: rgba(0,0,0,0.65);
    stroke: rgba(255,255,255,0.65);
  }
  .video-trigger__play path { fill: currentColor; }
  .video-trigger__label {
    position: absolute;
    right: 1.1rem;
    bottom: 0.9rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .video-trigger:hover img {
    filter: grayscale(0) saturate(0.95) contrast(1.02);
    transform: scale(1.025);
  }
  .video-trigger:hover .video-trigger__play {
    transform: translate(-50%, -50%) scale(1.08);
  }
  .video-shell iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }

  /* ---- Publications ---- */
  .publication-groups {
    display: grid;
    gap: clamp(3rem, 6vw, 6rem);
  }
  .publication-group {
    display: grid;
    grid-template-columns: minmax(10rem, 0.4fr) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 6rem);
  }
  .publication-group h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
  }
  .publication-group ol {
    margin: 0;
    padding: 0;
    border-top: 1.5px solid var(--border);
    list-style: none;
  }
  .publication {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    gap: 1rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--border);
    transition: background 150ms ease;
  }
  .publication__year {
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
  }
  .publication h4 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    font-weight: 500;
    line-height: 1.3;
  }
  .publication h4 a {
    display: inline-flex;
    gap: 0.35rem;
    align-items: baseline;
    text-decoration: underline;
    text-decoration-color: var(--border);
    text-underline-offset: 0.25rem;
    text-decoration-thickness: 1.5px;
  }
  .publication h4 a:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
  }
  .publication h4 svg {
    display: inline;
    width: 0.9rem;
    flex: 0 0 auto;
    transition: transform 180ms ease;
  }
  .publication h4 a:hover svg { transform: translateX(0.2rem); }
  .publication p,
  .publication cite {
    display: block;
    margin: 0.4rem 0 0;
    color: var(--muted);
    font-size: 0.85rem;
    font-style: normal;
    line-height: 1.5;
  }
  .publication cite {
    margin-top: 0.1rem;
    color: var(--muted);
    font-style: italic;
  }

  /* ---- Contact ---- */
  .contact {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
    gap: clamp(2.5rem, 7vw, 7rem);
    width: min(calc(100% - 2 * var(--gutter)), var(--page-width));
    margin: var(--section-space) auto 0;
    padding: clamp(2.5rem, 6vw, 5rem);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
  }
  .contact .eyebrow { color: var(--accent); }
  .contact h2 {
    margin: 1.5rem 0 0;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1;
  }
  .contact__intro > p:not(.eyebrow) {
    max-width: 48ch;
    margin: 1.2rem 0 0;
    color: var(--muted);
    font-size: 1.05rem;
  }
  .contact__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }
  .contact__details {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin: 0;
    font-style: normal;
  }
  .contact__details div {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--border);
  }
  .contact__details div:last-child { border-bottom: 0; }
  .contact__details span {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .contact__details a,
  .contact__details p {
    margin: 0;
    color: var(--fg);
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    line-height: 1.35;
    text-decoration: underline;
    text-decoration-color: var(--border);
    text-underline-offset: 0.25rem;
  }
  .contact__details a:hover { color: var(--accent); }

  /* ---- Footer ---- */
  .site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(100%, var(--page-width));
    margin: 0 auto;
    padding: 2rem var(--gutter) 3rem;
    color: var(--muted);
    font-size: 0.78rem;
  }
  .site-footer p { margin: 0; }
  .site-footer a {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    text-decoration: none;
    transition: color 180ms ease;
  }
  .site-footer a:hover { color: var(--accent); }
  .site-footer a svg {
    width: 1rem;
    transition: transform 180ms ease;
  }
  .site-footer a:hover svg { transform: translateY(-0.15rem); }

  /* ---- Back to top ---- */
  .back-to-top {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 50;
    display: grid;
    width: 2.6rem;
    aspect-ratio: 1;
    padding: 0.6rem;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    color: var(--fg);
    opacity: 0;
    pointer-events: none;
    place-items: center;
    transform: translateY(0.6rem);
    transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
  }
  .back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .back-to-top:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
  }
  .back-to-top svg { width: 1.1rem; }

  /* ---- Reveal ---- */
  .js .reveal {
    opacity: 0;
    transform: translateY(1.4rem);
    transition: opacity 600ms ease, transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* ---- Secondary button (Download CV) ---- */
  .button--secondary {
    background: transparent;
    color: var(--accent);
  }
  .button--secondary:hover {
    background: var(--accent);
    color: #fff;
  }

  /* ---- AI & Knowledge Production ---- */
  .ai-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
  .ai-card {
    padding: 1.5rem 0 0;
    border-top: 1.5px solid var(--border);
  }
  .ai-card__meta {
    margin: 0 0 0.8rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .ai-card h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 500;
    line-height: 1.2;
  }
  .ai-card p:not(.ai-card__meta) {
    margin: 1rem 0 0;
    color: var(--muted);
    line-height: 1.65;
  }

  /* ---- Social / profile links ---- */
  .social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.2rem;
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border);
  }
  .social-links a {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 180ms ease;
  }
  .social-links a:hover {
    color: var(--accent);
  }
  .social-links a svg {
    width: 1.1rem;
    height: 1.1rem;
    color: var(--accent);
  }

  @media (prefers-reduced-motion: reduce) {
    .js .reveal {
      opacity: 1;
      transform: none;
      transition: none;
    }
    html { scroll-behavior: auto; }
  }

  @media (max-width: 900px) {
    .site-header__inner { grid-template-columns: 1fr auto; }
    .site-nav { display: none; }
    .hero__inner { grid-template-columns: 1fr 16rem; gap: 2.5rem; }
    .hero h1 { font-size: clamp(3rem, 9vw, 5rem); }
    .focus-grid { grid-template-columns: 1fr; }
    .focus-card { min-height: 0; padding: 1.5rem; }
    .focus-card:not(:last-child) { border-right: 0; border-bottom: 1px solid var(--border); }
    .focus-card h3 { margin-top: 2.5rem; }
    .project-grid { grid-template-columns: 1fr 1fr; }
    .project-card--featured { grid-template-columns: 1fr; }
    .project-card:last-child { grid-column: 1 / -1; }
    .publication-group { grid-template-columns: 1fr; gap: 1.5rem; }
    .contact { grid-template-columns: 1fr; }
    .ai-grid { grid-template-columns: 1fr; }
  }

  @media (max-width: 680px) {
    :root { --gutter: 1.15rem; }
    .hero__inner { grid-template-columns: 1fr; }
    .portrait { order: -1; max-width: 16rem; margin: 0 auto; }
    .hero__facts { grid-template-columns: 1fr; }
    .hero__facts div:not(:last-child) { border-right: 0; border-bottom: 1px solid var(--border); }
    .section-heading { grid-template-columns: 1fr; gap: 1rem; }
    .section-heading h2 { max-width: none; }
    .project-grid { grid-template-columns: 1fr; }
    .project-card:last-child { grid-column: auto; }
    .publication { grid-template-columns: 1fr; gap: 0.4rem; }
    .site-footer { flex-direction: column; gap: 0.75rem; text-align: center; }
  }
