:root {
    color-scheme: dark;
    --bg: #080808;
    --surface: #131313;
    --surface-raised: #191919;
    --text: #f5f5f5;
    --muted: #b8b8b8;
    --subtle: #929292;
    --line: #303030;
    --accent: #ff3030;
    --accent-soft: #ff8585;
    --button: #cf2020;
    --radius: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; font-family: 'Poppins', sans-serif; font-size: 15px; line-height: 1.7; color: var(--text); background: var(--bg); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
::selection { color: white; background: #a61d1d; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: clamp(40px, 5.8vw, 72px); letter-spacing: -.055em; font-weight: 700; }
h1 span { color: var(--accent); }
h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.035em; }
h3 { font-size: 24px; letter-spacing: -.025em; }
.container { width: min(1200px, 88%); margin-inline: auto; }
.page-main { padding-top: 165px; padding-bottom: 84px; min-height: 70vh; }
.eyebrow { color: var(--subtle); font-size: 11px; font-weight: 600; letter-spacing: .18em; margin-bottom: 20px; }
.lead { color: var(--muted); font-size: 17px; line-height: 1.85; margin-top: 24px; max-width: 700px; }
.page-intro { max-width: 900px; margin-bottom: 60px; }
.page-intro .text-link { margin-top: 24px; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 20; background: #080808ed; backdrop-filter: blur(16px); border-bottom: 1px solid #ffffff08; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 88px; }
.brand { font-size: 25px; line-height: 1.2; letter-spacing: -.04em; font-weight: 700; white-space: nowrap; }
.brand span { color: var(--accent); }
.site-header .brand { color: #ff3a3a; text-shadow: 0 0 25px #e1000040; }
.site-nav { display: flex; gap: clamp(16px, 2vw, 30px); align-items: center; }
.site-nav a { font-size: 14px; font-weight: 600; padding: 12px 0 8px; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a.is-current { color: var(--accent-soft); border-color: var(--accent); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid #444; border-radius: 8px; background: transparent; color: var(--accent); font-size: 28px; line-height: 1; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: 8px; background: var(--button); color: #fff; font-size: 14px; font-weight: 600; line-height: 1.5; transition: background .2s; }
.button:hover { background: #ae1b1b; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: #eee; font-size: 14px; font-weight: 600; }
.text-link > span { color: var(--accent); }
.text-link:hover { color: var(--accent-soft); }
.hero-actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.technology-list { display: flex; flex-wrap: wrap; list-style: none; margin: 26px 0 0; padding: 0; gap: 8px; }
.technology-list li { border: 1px solid #3d3d3d; border-radius: 6px; color: #cfcfcf; padding: 5px 11px; font-size: 11px; line-height: 1.5; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 70px; align-items: center; padding-bottom: 32px; }
.hero-copy h1 { font-size: clamp(42px, 5.4vw, 68px); }
.hero-photo { width: 100%; max-width: 350px; justify-self: end; }
.hero-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 1px solid #ac2626; box-shadow: 0 0 70px #aa000029; }
.hero-photo figcaption { color: #9a9a9a; font-size: 11px; text-align: center; margin-top: 22px; letter-spacing: .05em; }
.home-section { margin-top: 80px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 30px; }
.section-heading .eyebrow { margin-bottom: 12px; }
.explore-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.explore-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .2s; }
.explore-card:hover { border-color: #8c2e2e; }
.card-number { color: var(--accent-soft); font-size: 10px; letter-spacing: .14em; font-weight: 600; margin-bottom: 30px; }
.explore-card h3 { max-width: 230px; }
.explore-card p { color: var(--muted); margin-top: 16px; font-size: 14px; }
.card-arrow { color: var(--accent); font-size: 23px; margin-top: 24px; }
.projects-grid, .publications-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.project-card, .publication-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.project-cover { min-height: 260px; padding: 32px; background: radial-gradient(ellipse at 85% 100%, #620c0c, transparent 70%), #1b1010; display: flex; flex-direction: column; justify-content: center; border-bottom: 1px solid #402323; }
.project-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.cover-topline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 16px; color: #d5aaaa; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 30px; }
.cover-topline > span { overflow-wrap: anywhere; }
.cover-name { font-size: clamp(30px, 3.7vw, 46px); line-height: 1.15; font-weight: 700; letter-spacing: -.045em; max-width: 460px; }
.project-details { padding: 30px; }
.project-category { color: var(--accent-soft); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; font-weight: 600; margin-bottom: 12px; }
.project-details h2, .project-details h3 { font-size: 25px; }
.project-details > p:not(.project-category) { color: var(--muted); font-size: 14px; margin-top: 16px; }
.project-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 28px; }
.featured-projects .project-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.featured-projects .project-cover { min-height: 320px; border-bottom: 0; border-right: 1px solid #402323; }
.featured-projects .project-details { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 36px; }
.projects-grid > .project-card:only-child { max-width: 780px; grid-column: 1 / -1; }
.contact-banner { display: flex; justify-content: space-between; align-items: center; gap: 36px; border-top: 1px solid var(--line); padding-top: 42px; margin-top: 72px; }
.contact-banner .eyebrow { margin-bottom: 12px; }
.contact-banner p:not(.eyebrow) { color: var(--muted); font-size: 14px; margin-top: 12px; }
.contact-banner .button { flex-shrink: 0; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline-item { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 32px; position: relative; padding: 0 0 32px; }
.timeline-date { color: var(--accent-soft); font-size: 22px; font-weight: 600; padding-top: 28px; }
.timeline-content { padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.timeline-content h2 { font-size: 24px; }
.timeline-content .organization { color: var(--accent-soft); font-size: 14px; margin-bottom: 10px; font-weight: 500; }
.timeline-content > p:last-child { color: var(--muted); margin-top: 16px; max-width: 850px; font-size: 14px; }
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.service-card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 32px; }
.service-card h2 { font-size: 25px; }
.service-card p { color: var(--muted); font-size: 14px; margin-top: 18px; }
.service-card .card-number { display: block; margin-bottom: 24px; }
.service-card .technology-list { margin-top: 24px; }
.process-section { margin-top: 64px; }
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 28px; }
.process-grid h3 { font-size: 19px; margin: 12px 0; }
.process-grid p { color: var(--muted); font-size: 14px; }
.process-grid .process-number { font-size: 12px; color: var(--accent-soft); }
.empty-state { border: 1px dashed #444; background: var(--surface); border-radius: var(--radius); padding: 48px; grid-column: 1 / -1; }
.empty-state h2, .empty-state h3 { font-size: 25px; }
.empty-state p { color: var(--muted); margin: 16px 0 24px; max-width: 620px; }
.empty-state > a { color: var(--accent-soft); font-weight: 600; }
.publication-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.publication-content { padding: 30px; }
.publication-content h2 { font-size: 25px; margin-top: 12px; }
.publication-content > p { color: var(--muted); font-size: 14px; margin: 18px 0 24px; }
.publication-content time { color: var(--subtle); font-size: 12px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; gap: 32px; }
.contact-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: var(--surface); }
.contact-panel > .eyebrow, .contact-options > .eyebrow { margin-bottom: 12px; }
.contact-panel h2, .contact-options h2 { font-size: 26px; }
.contact-form { margin-top: 30px; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; min-width: 0; }
.form-field label { font-size: 13px; font-weight: 500; }
.required-note { color: var(--subtle); font-weight: 400; font-size: 10px; }
.form-field input, .form-field textarea { width: 100%; min-width: 0; padding: 13px 14px; border: 1px solid #444; border-radius: 8px; background: #090909; color: white; font-size: 14px; }
.form-field input { min-height: 48px; }
.form-field textarea { resize: vertical; min-height: 150px; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--accent-soft); }
.form-note { color: #999; font-size: 11px; line-height: 1.8; margin-bottom: 24px; }
.contact-options { padding: 8px 0; }
.contact-method { position: relative; display: flex; flex-direction: column; gap: 7px; border-bottom: 1px solid var(--line); padding: 24px 30px 24px 0; }
.contact-method > span:first-child { font-size: 11px; color: var(--accent-soft); }
.contact-method strong { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.contact-method > span:last-child { position: absolute; right: 0; top: 36px; color: var(--accent); }
.contact-method:hover strong { color: var(--accent-soft); }
.instagram-link { margin-top: 28px; font-size: 12px; }
.message-page { padding: 24px 0 64px; }
.site-footer { background: #101010; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 36px; padding-top: 44px; padding-bottom: 36px; }
.footer-brand { font-size: 22px; }
.footer-inner p { color: var(--subtle); font-size: 12px; margin-top: 12px; }
.footer-nav { display: flex; justify-content: flex-end; align-content: flex-start; flex-wrap: wrap; gap: 12px 24px; max-width: 420px; }
.footer-nav a { color: #ccc; font-size: 12px; }
.footer-nav a:hover, .footer-bottom a:hover { color: var(--accent-soft); }
.footer-bottom { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; padding-block: 22px; font-size: 11px; color: var(--subtle); }
.footer-bottom > div { display: flex; gap: 22px; }
.skip-link { position: fixed; top: -100px; left: 20px; background: white; color: black; padding: 10px 20px; z-index: 100; border-radius: 5px; }
.skip-link:focus { top: 12px; }
.visually-hidden, .honeypot { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 1060px) {
    .header-inner { min-height: 78px; }
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .site-nav { display: none; position: absolute; top: 100%; right: 6%; flex-direction: column; align-items: stretch; width: min(340px, 88vw); max-height: calc(100dvh - 90px); overflow-y: auto; padding: 16px 24px; border: 1px solid #444; border-radius: 12px; background: #111; gap: 0; }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 13px 0; font-size: 15px; }
    .home-hero { gap: 36px; }
    .hero-photo { max-width: 290px; }
    .hero-copy h1 { font-size: 48px; }
    .contact-layout { gap: 24px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 760px) {
    .container { width: 90%; }
    .page-main { padding-top: 130px; padding-bottom: 60px; }
    .brand { font-size: 23px; }
    .home-hero { grid-template-columns: 1fr; gap: 40px; padding-bottom: 0; }
    .hero-copy h1 { font-size: clamp(40px, 8vw, 58px); }
    .hero-photo { justify-self: start; width: 190px; }
    .hero-photo figcaption { text-align: left; font-size: 10px; }
    .lead { font-size: 15px; }
    .page-intro { margin-bottom: 40px; }
    .home-section { margin-top: 60px; }
    .section-heading { flex-direction: column; align-items: flex-start; }
    .explore-grid, .projects-grid, .publications-grid, .services-grid, .contact-layout { grid-template-columns: 1fr; }
    .explore-card { padding: 26px; }
    .explore-card h3 { max-width: none; }
    .card-number { margin-bottom: 22px; }
    .featured-projects .project-card { grid-template-columns: 1fr; }
    .featured-projects .project-cover { min-height: 250px; border-right: 0; border-bottom: 1px solid #402323; }
    .project-cover { min-height: 230px; padding: 26px; }
    .project-details, .featured-projects .project-details, .publication-content { padding: 26px; }
    .contact-banner { flex-direction: column; align-items: flex-start; margin-top: 54px; padding-top: 32px; gap: 24px; }
    .timeline-item { grid-template-columns: 1fr; gap: 12px; padding-bottom: 28px; }
    .timeline-date { font-size: 18px; padding-top: 0; }
    .timeline-content, .service-card, .contact-panel { padding: 26px; }
    .process-grid { grid-template-columns: 1fr; gap: 26px; }
    .empty-state { padding: 30px 26px; }
    .contact-options { margin-top: 20px; }
    .footer-inner { flex-direction: column; padding-top: 32px; }
    .footer-nav { justify-content: flex-start; max-width: none; }
    .footer-bottom { flex-direction: column; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
