/* Self-hosted Roboto (Apache 2.0, see fonts/LICENSE.txt) */
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 300; font-display: swap; src: url(fonts/roboto-latin-300-normal.woff2) format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/roboto-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/roboto-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/roboto-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/roboto-latin-700-normal.woff2) format('woff2'); }

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

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #555555;
  --line: #e4e4e4;
  --btn-bg: #1a1a1a;
  --btn-text: #ffffff;
  --footer-bg: #f4f4f4;
  --font: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max-w: 1400px;
  --narrow-w: 820px;
  --gutter: max(16px, 4vw);
  --header-h: 6.5rem;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* ── HEADER ── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 1.5rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.logo img { height: 52px; width: auto; }
.logo-text { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.01em; }
nav ul { display: flex; gap: 2rem; list-style: none; align-items: center; }
nav a { font-size: 0.875rem; font-weight: 500; letter-spacing: 0.03em; transition: opacity 0.2s; }
nav a:hover { opacity: 0.55; }
nav a[aria-current="page"] { font-weight: 700; }

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 8px 4px; }
.burger span { display: block; width: 24px; height: 1px; background: var(--text); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a { font-size: 1.6rem; font-weight: 500; }
.mobile-nav a[aria-current="page"] { font-weight: 700; }
.mobile-close { position: absolute; top: 1.5rem; right: 2rem; font-size: 2rem; background: none; border: none; cursor: pointer; line-height: 1; color: var(--text); }

main { padding-top: var(--header-h); min-height: 70vh; }

/* ── SHARED ── */
.btn {
  display: inline-block; background: var(--btn-bg); color: var(--btn-text);
  padding: 0.75rem 2.2rem; border-radius: 999px; border: none; cursor: pointer;
  font: 500 0.875rem/1.6 var(--font); letter-spacing: 0.04em; transition: opacity 0.2s;
}
.btn:hover { opacity: 0.75; }
.btn[disabled] { opacity: 0.5; cursor: wait; }
.muted { color: var(--muted); }

.block { max-width: var(--max-w); margin: 0 auto; padding: 2.5rem var(--gutter); }
.block-narrow { max-width: calc(var(--narrow-w) + 2 * var(--gutter)); }
.block-center { text-align: center; }
.block-center p + p { margin-top: 1.5rem; }
.block-heading + .block { padding-top: 0.5rem; }
.prose + .block-center { padding-top: 0.5rem; }

.page-title { font-size: clamp(2.2rem, 4.2vw, 3.6rem); font-weight: 700; line-height: 1.1; margin-bottom: 1rem; }
.block-heading .page-title { text-align: center; margin-top: 2rem; margin-bottom: 0; }
.section-title { font-size: clamp(1.8rem, 3.2vw, 2.8rem); font-weight: 700; line-height: 1.15; text-align: center; margin-bottom: 2.5rem; }
.section-title-left { text-align: left; margin-bottom: 1.5rem; }
.block-heading .section-title { margin-bottom: 0; }

.prose { color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1rem; }
.prose h3, .prose h4 { color: var(--text); font-weight: 700; line-height: 1.3; margin-top: 2rem; }
.prose h3 { font-size: 1.35rem; }
.prose h4 { font-size: 1.1rem; }
.prose strong { color: var(--text); font-weight: 500; }
.prose a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: 0.4rem; }
.prose blockquote { border-left: 2px solid var(--text); padding-left: 1.2rem; font-style: italic; }

.figure img { width: 100%; border-radius: 6px; }
.figure figcaption { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted); text-align: center; }

/* ── HERO ── */
.hero {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter);
  min-height: calc(100vh - var(--header-h));
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; align-items: center;
}
.hero-solo { grid-template-columns: 1fr; min-height: auto; padding-top: 4rem; padding-bottom: 3rem; }
.hero-solo .hero-text { max-width: var(--narrow-w); padding-bottom: 0; }
.hero-solo + .showcase { padding-top: 3rem; }
.hero-text { padding-top: 2.5rem; padding-bottom: 5rem; }
.hero-text h1, .hero-h { font-size: clamp(2.4rem, 4.5vw, 4.2rem); font-weight: 700; line-height: 1.08; margin-bottom: 1.5rem; }
.hero-body { font-size: 1.05rem; color: var(--muted); line-height: 1.75; max-width: 480px; margin-bottom: 2.5rem; }
.hero-solo .hero-body { max-width: none; }
.hero-body > * + * { margin-top: 1rem; }
.hero-body a { text-decoration: underline; text-underline-offset: 3px; }
.hero-image { padding-top: 1rem; padding-bottom: 4rem; }
.hero-image img { width: 100%; height: 620px; object-fit: cover; object-position: center top; border-radius: 6px; }

/* Optional home background: faint flowing lines (Settings → Home page background) */
.bg-lines { background: url("bg-lines-v2.svg") no-repeat right -80px top 40px / min(1100px, 90vw) 640px, var(--bg); }
.bg-lines .site-header { background: rgba(255,255,255,0.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@media (max-width: 800px) { .bg-lines { background-position: right -40px top 30px; background-size: 140vw 520px; } }

/* ── SHOWCASE (photo · videos · photo) ── */
.showcase { padding-top: 5rem; padding-bottom: 6rem; }
.showcase-grid { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 1.25rem; align-items: start; }
.showcase-grid.no-left { grid-template-columns: 2fr 1fr; }
.showcase-grid.no-right { grid-template-columns: 1fr 2fr; }
.showcase-grid.no-left.no-right { grid-template-columns: minmax(0, var(--narrow-w)); justify-content: center; }
.showcase-photo img { width: 100%; object-fit: cover; border-radius: 6px; min-height: 360px; height: 100%; max-height: 740px; }
.videos-col { display: flex; flex-direction: column; gap: 1.25rem; }
.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 6px; background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* ── PUBLICATIONS ── */
.pub-year { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 2.25rem 0 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line); }
.pub-list { list-style: none; }
.pub { padding: 1rem 0; }
.pub + .pub { border-top: 1px solid var(--line); }
.pub-title { font-weight: 500; font-size: 1.05rem; line-height: 1.45; }
.pub-title a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; transition: text-decoration-color 0.2s; }
.pub-title a:hover { text-decoration-color: var(--text); }
.pub-authors, .pub-meta, .pub-note { font-size: 0.9rem; color: var(--muted); margin-top: 0.25rem; }
.pub-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; align-items: center; }
.pub-tag { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 0.05rem 0.6rem; }
.pub-pdf { font-weight: 500; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ── CONTACT ── */
.contact .prose { margin-bottom: 2rem; }
.contact-form { display: grid; gap: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact-form label { display: grid; gap: 0.4rem; font-size: 0.875rem; font-weight: 500; letter-spacing: 0.02em; }
.contact-form input, .contact-form textarea, .contact-form select {
  font: 400 1rem/1.5 var(--font); color: var(--text); background: var(--bg);
  border: 1px solid #cfcfcf; border-radius: 6px; padding: 0.7rem 0.85rem; width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: 2px solid var(--text); outline-offset: 0; border-color: var(--text); }
.contact-form textarea { resize: vertical; min-height: 9rem; }
.contact-form .btn { justify-self: start; }
.contact-form select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 55%, calc(100% - 0.8rem) 55%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; }
.visit-fields { display: grid; gap: 1.1rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: 6px; background: #fafafa; }
.visit-fields[hidden] { display: none; }
.optional { font-weight: 400; color: var(--muted); }
.form-note { font-size: 0.85rem; color: var(--muted); }
.form-status { font-size: 0.95rem; min-height: 1.5em; }
.form-status.error { color: #a12a2a; }
.form-status.ok { color: #1f6b3a; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ── FOOTER ── */
.site-footer { background: var(--footer-bg); padding: 3rem var(--gutter); margin-top: 4rem; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; }
.footer-name { font-size: 0.9rem; font-weight: 500; }
.footer-social { display: flex; gap: 1.25rem; justify-content: center; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; transition: opacity 0.2s; }
.footer-social a:hover { opacity: 0.55; }
.footer-social svg { width: 22px; height: 22px; }
.footer-contact { font-size: 0.875rem; line-height: 1.9; color: var(--muted); text-align: right; overflow-wrap: anywhere; }
.footer-contact a:hover { text-decoration: underline; }
.footer-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; font-size: 0.8rem; color: var(--muted); border-top: 1px solid rgba(0,0,0,0.08); padding-top: 1.25rem; }
.footer-links a:hover { text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  :root { --header-h: 5.5rem; }
  .site-header { padding: 1.1rem var(--gutter); }
  .logo img { height: 44px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-text { padding-top: 2rem; padding-bottom: 2rem; }
  .hero-image { padding-top: 0; padding-bottom: 3rem; }
  .hero-image img { height: 420px; }
  .showcase { padding-top: 3rem; padding-bottom: 3rem; }
  .showcase-grid, .showcase-grid.no-left, .showcase-grid.no-right { grid-template-columns: 1fr; }
  .showcase-photo img { min-height: 260px; max-height: 400px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-contact { text-align: center; }
  .footer-links { justify-content: center; }
  nav ul { display: none; }
  .burger { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
