/* INTALA LAB — public site styles (v2 "field notebook")
   Paper tones, hairlines, serif display type, monospaced labels.
   Brand red (from the logo) is used as the accent; the hero uses a layered visual (scene/hero-visual.js). */

@font-face {
  font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4'; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url('../fonts/source-serif-4-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4'; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url('../fonts/source-serif-4-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f6f4ee;
  --paper-2: #ece8dd;
  --paper-3: #fbfaf6;
  --ink: #15171c;
  --ink-2: #353a44;
  --muted: #5b616d;
  --line: #d9d4c6;
  --line-soft: #e6e1d5;
  --brand: #b3221f;
  --brand-strong: #8e1512;
  --brand-soft: #f6e3e0;
  --leaf: #4f6f33;
  --leaf-soft: #e3ebd3;
  --wheat: #c49a3a;
  --wheat-soft: #f3e8cc;
  --night: #14171a;
  --focus: #1a5fd0;
  --radius: 6px;
  --serif: 'Source Serif 4', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Consolas, 'Liberation Mono', monospace;
  --container: 1240px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--ink-2); background: var(--paper); text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
code { font-family: var(--mono); font-size: .88em; background: rgba(0,0,0,.05); padding: .1em .35em; border-radius: 3px; }
::selection { background: var(--wheat-soft); color: var(--ink); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.narrow { max-width: 860px; }
.narrow-wide { max-width: 1040px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip-link:focus { top: 12px; color: #fff; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-inline { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.12em; margin: 0 .3em; flex-shrink: 0; }

/* Scroll reveal: only active when JS added .motion-ok (motion allowed + IntersectionObserver). */
.motion-ok [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.motion-ok [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(246,244,238,.94); border-bottom: 1px solid transparent; backdrop-filter: saturate(1.3) blur(10px); transition: border-color .2s, background .2s; }
.site-header.is-scrolled, .site-header.menu-open { border-bottom-color: var(--line); background: rgba(246,244,238,.98); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; margin-right: auto; flex-shrink: 0; }
.brand-logo { height: 42px; width: auto; }
.brand .img-placeholder { height: 42px; padding: 0 12px; font-weight: 800; }
.site-nav { display: flex; align-items: center; }
.nav-list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav-link { position: relative; display: block; padding: 8px 10px; color: var(--ink-2); text-decoration: none; font-weight: 520; font-size: .94rem; }
.nav-link::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 1.5px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--ink); font-weight: 650; }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; color: var(--ink); cursor: pointer; }
.nav-toggle:hover { border-color: var(--ink); }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-btn { border: 0; background: transparent; padding: 6px 10px; min-width: 38px; min-height: 32px; border-radius: 999px; font: 600 .74rem/1 var(--mono); letter-spacing: .08em; color: var(--muted); cursor: pointer; transition: color .2s, background .2s; }
.lang-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.lang-btn:hover:not([aria-pressed="true"]) { color: var(--ink); background: var(--paper-2); }

@media (max-width: 1040px) {
  .header-inner { gap: 12px; }
  .nav-toggle { display: inline-flex; order: 2; }
  .lang-switch { order: 1; }
  .site-nav { order: 2; }
  .nav-list { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 6px clamp(20px, 4vw, 40px) 18px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .menu-open .nav-list { display: flex; }
  .nav-link { padding: 14px 0; font: 600 1.25rem/1.2 var(--serif); border-bottom: 1px solid var(--line-soft); color: var(--ink); }
  .nav-link::after { left: 0; right: auto; width: 28px; bottom: -1px; }
  .brand-logo { height: 36px; }
}

/* ---------- Preview / alerts / states ---------- */
.preview-banner { position: sticky; top: 0; z-index: 200; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; padding: 10px 16px; background: var(--wheat); color: #1d1300; font-weight: 650; font-size: .9rem; text-align: center; }
.alert { display: flex; gap: 14px; margin: 24px 0; padding: 18px 20px; border: 1px solid; border-left-width: 4px; }
.alert-error { background: #fbefec; border-color: #e7c2bb; border-left-color: var(--brand); color: #5c1210; }
.alert-title { font-family: var(--sans); font-size: 1.02rem; margin-bottom: .3em; color: inherit; }
.alert-list { margin: 0; padding-left: 1.2em; font-size: .92rem; }
.alert-icon { color: var(--brand); margin-top: 2px; }
.loading-state { display: flex; align-items: center; gap: 12px; min-height: 40vh; justify-content: center; color: var(--muted); }
.spinner { width: 20px; height: 20px; border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) { .spinner { animation: spin .8s linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); margin: 0; }
.empty-state-error { color: #5c1210; background: #fbefec; border-color: #e7c2bb; }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 2px; min-height: 48px; padding: 12px 22px; border-radius: var(--radius); border: 1px solid transparent; font: 600 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, box-shadow .2s; }
.btn .btn-arrow { transition: transform .25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); color: #fff; box-shadow: 0 6px 18px -8px rgba(142,21,18,.6); }
.btn-quiet, .btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-quiet:hover, .btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--ink); color: var(--ink); }
.btn-text { background: none; border: 0; color: var(--brand); padding: 8px 6px; min-height: 44px; }
.btn-small { min-height: 36px; padding: 6px 14px; font-size: .85rem; }
.btn-block { width: 100%; justify-content: space-between; }
.link-arrow { display: inline-flex; align-items: center; font-weight: 600; text-decoration: none; white-space: nowrap; color: var(--ink); border-bottom: 1px solid var(--brand); padding-bottom: 2px; transition: color .2s; }
.link-arrow .icon-inline { transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--brand); }
.link-arrow:hover .icon-inline { transform: translateX(3px); }
.link-back { margin-top: 40px; }
.link-back:hover .icon-inline { transform: translateX(-3px); }
.link-ext { display: inline-flex; align-items: center; font-weight: 600; text-decoration: none; color: var(--ink-2); }
.link-ext:hover { color: var(--brand); text-decoration: underline; }

/* ---------- Generic sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(40px, 5vw, 64px) 0 clamp(64px, 8vw, 96px); }
.section-tint { background: var(--paper-2); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head-stack { display: block; max-width: 760px; }
.section-title { font-size: clamp(1.75rem, 1.15rem + 1.9vw, 2.75rem); margin: 0; }
.display-title { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3rem); line-height: 1.1; margin: 0 0 .5em; }
.section-lead { color: var(--muted); font-size: 1.05rem; max-width: 62ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 600 .74rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.eyebrow::before { content: ''; width: 8px; height: 8px; background: currentColor; }
.eyebrow-light { color: #e6b7ae; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.stack { display: grid; gap: 16px; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Hero: text left, layered visual right ---------- */
.hero { position: relative; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line); isolation: isolate; }
.hero-inner { position: relative; z-index: 2; }
.hero-copy { position: relative; max-width: 33rem; padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 96px); }
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; font: 500 .76rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kicker-mark { width: 22px; height: 2px; background: var(--brand); flex-shrink: 0; }
.hero-title { font-size: clamp(2.05rem, 1.35rem + 2.1vw, 3.15rem); line-height: 1.1; letter-spacing: -.02em; font-weight: 600; max-width: 18ch; margin: 0 0 22px; text-wrap: balance; }
.hero-text { font-size: clamp(1.02rem, .98rem + .2vw, 1.14rem); line-height: 1.7; color: var(--ink-2); max-width: 44ch; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* No licensed visual yet: calm text-only intro */
.hero--text-only .hero-copy { max-width: 46rem; }
.hero--text-only .hero-title { max-width: 20ch; }
.hero--text-only .hero-text { max-width: 60ch; }

/* With visual: image on the right ~62%, soft transition into the text area */
.hero--visual { min-height: clamp(540px, 74vh, 720px); display: flex; align-items: center; }
.hero--visual .hero-inner { width: 100%; }
.hero--visual .hero-copy { max-width: 34rem; }
.hero--visual .hero-copy::before { content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: -100vw; right: -48px; background: linear-gradient(90deg, var(--paper) calc(100% - 48px), rgba(246,244,238,0)); }
.hero-visual { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; z-index: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0, rgba(0,0,0,.6) 14%, #000 32%);
  mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0, rgba(0,0,0,.6) 14%, #000 32%); }
.hero-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% 55%; }
.hero-layer--drone { inset: auto; height: auto; object-fit: contain; }

/* Local review aid (?hero-preview=slots) */
.hero-visual--slots { background: var(--paper-2); }
.slot { position: absolute; display: flex; align-items: flex-start; padding: 10px; border: 1.5px dashed rgba(21,23,28,.4); font: 500 .72rem/1.35 var(--mono); color: var(--ink-2); }
.slot span { background: var(--paper); padding: 3px 7px; }
.slot-bg { inset: 14px 14px 14px 18%; }
.slot-focal { left: 60%; top: 42%; width: 20%; height: 22%; border-style: solid; border-color: var(--brand); color: var(--brand); }
.slot-drone { left: 55%; top: 16%; width: 15%; height: 11%; }
.slot-wheat { left: 18%; right: 14px; bottom: 14px; height: 32%; }

@media (max-width: 1100px) { .hero-visual { width: 54%; } .hero--visual .hero-copy { max-width: 30rem; } }
@media (max-width: 900px) {
  .hero--visual { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero--visual .hero-copy { max-width: 40rem; padding: 40px 0 28px; }
  .hero-title { max-width: none; }
  .hero--visual .hero-copy::before { display: none; }
  .hero-visual { position: relative; width: 100%; height: clamp(220px, 54vw, 340px);
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.5) 0, #000 20%); mask-image: linear-gradient(180deg, rgba(0,0,0,.5) 0, #000 20%); }
  .slot-bg { inset: 12px; } .slot-wheat { left: 12px; }
}

/* ---------- Research index ---------- */
.research-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.research-head { position: sticky; top: calc(var(--header-h) + 32px); }
.research-head .section-lead { margin-bottom: 24px; }
.area-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.area-row { position: relative; display: grid; grid-template-columns: 34px 30px minmax(0, 1fr); gap: 12px; padding: 22px 8px 22px 0; border-top: 1px solid var(--line); transition: background .25s; }
.area-row::before { content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.area-row:hover::before { transform: scaleX(1); }
.area-num { font: 500 .78rem/1.9 var(--mono); color: var(--muted); }
.area-row:hover .area-num { color: var(--brand); }
.area-icon { color: var(--leaf); padding-top: 1px; }
.area-icon .icon { width: 22px; height: 22px; }
.area-title { font-size: 1.15rem; margin: 0 0 .35em; }
.area-text { font-size: .93rem; color: var(--muted); margin: 0; }
@media (max-width: 980px) { .research-grid { grid-template-columns: 1fr; } .research-head { position: static; } }
@media (max-width: 640px) { .area-index { grid-template-columns: 1fr; } }

/* about page variant (cards) */
.area-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.area-card { padding: 26px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-3); }
.area-card .area-icon { display: inline-flex; margin-bottom: 14px; }

/* ---------- Featured projects (alternating rows) ---------- */
.featured { background: var(--paper-3); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-list { display: grid; gap: clamp(40px, 6vw, 72px); }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature-flip .feature-media { order: 2; }
.feature-media { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; padding: 12%; border: 1px solid var(--line); background:
  repeating-linear-gradient(90deg, transparent 0 23px, rgba(21,23,28,.045) 23px 24px),
  repeating-linear-gradient(0deg, transparent 0 23px, rgba(21,23,28,.045) 23px 24px), var(--paper); overflow: hidden; }
.feature-media::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.feature:hover .feature-media::after { transform: scaleX(1); }
.feature-logo { max-height: 100%; width: auto; object-fit: contain; background: #fff; padding: 14px; border: 1px solid var(--line-soft); transition: transform .5s var(--ease); }
.feature:hover .feature-logo { transform: scale(1.03); }
.feature-media .img-placeholder { width: 100%; height: 100%; }
.feature-title { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); margin: 14px 0 12px; }
.feature-title a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--brand), var(--brand)) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--ease); }
.feature-title a:hover { background-size: 100% 1.5px; }
.feature-text { color: var(--ink-2); max-width: 60ch; }
.feature-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 22px 0; border-top: 1px solid var(--line); }
.feature-meta > div { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); }
.feature-meta dt { font: 500 .7rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.feature-meta dd { margin: 3px 0 0; font-size: .93rem; color: var(--ink); }
.feature-links { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } .feature-flip .feature-media { order: 0; } .feature-media { aspect-ratio: 16 / 9; } }

/* ---------- Platforms band (dark) ---------- */
.platforms { position: relative; background: var(--night); color: #c9cdd4; isolation: isolate; }
.platforms::before { content: ''; position: absolute; inset: 0; z-index: -1; background:
  repeating-linear-gradient(90deg, transparent 0 79px, rgba(255,255,255,.035) 79px 80px),
  repeating-linear-gradient(0deg, transparent 0 79px, rgba(255,255,255,.035) 79px 80px); }
.platforms .section-title { color: #fff; }
.platforms .section-lead { color: #b6bbc4; }
.platforms .link-arrow { color: #fff; }
.platforms .link-arrow:hover { color: #f2c9c2; }
.platforms-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 88px); align-items: end; margin-bottom: 48px; }
.platform-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.16); }
.platform-tile { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 28px 30px 0; border-bottom: 1px solid rgba(255,255,255,.16); transition: background .25s; }
.platform-tile:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.16); }
.platform-tile:hover { background: rgba(255,255,255,.035); }
.tile-index { font: 500 .74rem/1 var(--mono); letter-spacing: .1em; color: #d9b866; }
.tile-title { font-size: 1.28rem; margin: 6px 0 0; color: #fff; }
.tile-title a { color: #fff; text-decoration: none; }
.tile-title a:hover { text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; }
.tile-text { font-size: .93rem; color: #b6bbc4; margin: 0; }
.tile-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; }
.tile-tags li { font: 500 .7rem/1 var(--mono); padding: 5px 8px; border: 1px solid rgba(255,255,255,.2); color: #d6d9de; letter-spacing: .03em; }
.tile-ext { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; color: #f2c9c2; font-weight: 600; font-size: .92rem; text-decoration: none; }
.tile-ext:hover { color: #fff; text-decoration: underline; }
@media (max-width: 960px) {
  .platforms-head { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr 1fr; }
  .platform-tile, .platform-tile:not(:nth-child(3n + 1)) { padding: 24px 24px 26px 0; border-left: 0; }
  .platform-tile:nth-child(2n) { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.16); }
}
@media (max-width: 600px) {
  .platform-grid { grid-template-columns: 1fr; }
  .platform-tile:nth-child(2n) { padding-left: 0; border-left: 0; }
}

/* ---------- Publications + bulletin ---------- */
.updates-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.bulletin { background: var(--paper-2); border-top: 3px solid var(--ink); padding: 28px 28px 32px; }
.bulletin-title { font-size: 1.5rem; margin: 0 0 8px; }
.bulletin-list { list-style: none; margin: 0 0 22px; padding: 0; }
.bulletin-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.bulletin-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 6px; font: 500 .7rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.bulletin-meta time { color: var(--muted); }
.bulletin-item-title { font-size: 1.1rem; margin: 0 0 6px; }
.bulletin-item-title a { color: var(--ink); text-decoration: none; }
.bulletin-item-title a:hover { color: var(--brand); text-decoration: underline; }
.bulletin-text { font-size: .92rem; color: var(--muted); margin: 0; }
@media (max-width: 960px) { .updates-grid { grid-template-columns: 1fr; } }

/* ---------- Join band ---------- */
.join { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); background:
  radial-gradient(120% 140% at 100% 100%, rgba(196,154,58,.16), transparent 55%), var(--paper); }
.join-inner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.join-title { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.9rem); margin: 0; max-width: 18ch; }
.join-text { color: var(--ink-2); margin-bottom: 22px; }
@media (max-width: 820px) { .join-inner { grid-template-columns: 1fr; } }

/* ---------- Inner page header ---------- */
.page-header { position: relative; overflow: hidden; background: var(--paper-2); border-bottom: 1px solid var(--line); padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 56px); isolation: isolate; }
.page-header::before { content: ''; position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: 46%; background: repeating-linear-gradient(-14deg, transparent 0 20px, rgba(79,111,51,.10) 20px 21px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.page-header::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 72px; height: 3px; background: var(--brand); }
.page-title { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.3rem); margin: 0 0 .3em; max-width: 24ch; letter-spacing: -.02em; }
.page-lead { color: var(--ink-2); font-size: 1.08rem; max-width: 64ch; margin: 0; }
.page-header .eyebrow-light { color: var(--brand); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; font: 500 .74rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.breadcrumb li + li::before { content: '/'; margin-right: 6px; color: var(--muted); }
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--muted); }

/* ---------- Cards (inner pages) ---------- */
.card-grid { display: grid; gap: 24px; }
.card-grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .25s, transform .3s var(--ease), box-shadow .3s; }
.card::before { content: ''; position: absolute; z-index: 3; left: 0; top: 0; height: 3px; width: 100%; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.card:has(.stretched-link):hover { border-color: var(--ink); box-shadow: 0 14px 30px -22px rgba(21,23,28,.45); }
.card:has(.stretched-link):hover::before { transform: scaleX(1); }
@media (prefers-reduced-motion: no-preference) { .card:has(.stretched-link):hover { transform: translateY(-3px); } }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.card-title { font-size: 1.22rem; margin: 0; }
.card-title a { color: var(--ink); text-decoration: none; }
.stretched-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.stretched-link:focus-visible { outline: none; }
.stretched-link:focus-visible::after { outline: 2px solid var(--focus); outline-offset: -3px; }
.card-text { color: var(--muted); font-size: .95rem; margin: 0; }
.card-more { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: .9rem; color: var(--ink); display: inline-flex; align-items: center; }
.card-more .icon-inline { transition: transform .25s var(--ease); color: var(--brand); }
.card:hover .card-more .icon-inline { transform: translateX(4px); }
.card a:not(.stretched-link) { position: relative; z-index: 2; }

.project-card-media { height: 176px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); padding: 22px; background:
  repeating-linear-gradient(90deg, transparent 0 19px, rgba(21,23,28,.04) 19px 20px), var(--paper); }
.project-card-media .project-logo { max-height: 118px; width: auto; object-fit: contain; background: #fff; padding: 8px; transition: transform .4s var(--ease); }
.card:hover .project-logo { transform: scale(1.03); }
.project-card-media .project-cover { width: 100%; height: 100%; object-fit: cover; }
.project-card-media .img-placeholder { width: 100%; height: 100%; }

.badge-row { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font: 500 .7rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge-active { color: var(--leaf); }
.badge-completed { color: var(--muted); }
.badge-planned { color: #8a6513; }
.badge-research-project, .badge-news { color: var(--brand); }
.badge-research-project::before, .badge-news::before { border-radius: 1px; }
.badge-platform { color: #2e5a8a; }
.badge-platform::before { border-radius: 1px; transform: rotate(45deg); }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.tag { font: 500 .72rem/1.2 var(--mono); padding: 5px 8px; border: 1px solid var(--line); color: var(--ink-2); letter-spacing: .02em; }
.tag-project { border-color: rgba(196,154,58,.55); background: var(--wheat-soft); color: #5c4310; }
.tag-project a { color: inherit; text-decoration: none; }
.tag-project a:hover { text-decoration: underline; }

.news-card { border-radius: 0; border-width: 0; border-top: 2px solid var(--ink); background: transparent; }
.news-card:has(.stretched-link):hover { box-shadow: none; border-color: var(--brand); }
.news-card .card-body { padding: 18px 0 8px; }
.news-card-media { aspect-ratio: 16 / 9; background: var(--paper-2); }
.news-card-media img, .news-card-media .img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font: 500 .72rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.news-meta time { display: inline-flex; align-items: center; }
.news-card-compact .card-title { font-size: 1.08rem; }

.img-placeholder { display: flex; align-items: center; justify-content: center; color: var(--muted); background:
  repeating-linear-gradient(-14deg, transparent 0 10px, rgba(79,111,51,.12) 10px 11px), var(--paper-2); }
.img-placeholder-text { font: 600 1.05rem/1.2 var(--serif); color: var(--ink); text-align: center; padding: 6px 12px; background: var(--paper); border: 1px solid var(--line); }
.img-placeholder-icon { width: 36px; height: 36px; opacity: .55; }

/* ---------- Publications ---------- */
.pub-list { display: grid; }
.pub-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); transition: background .2s; }
.pub-item:last-child { border-bottom: 1px solid var(--line); }
.pub-year { font: 600 1.35rem/1.2 var(--serif); color: var(--brand); }
.pub-tags { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-bottom: 8px; }
.badge-pub, .badge-status { color: var(--ink-2); }
.pub-topic { font: 500 .72rem/1.3 var(--mono); letter-spacing: .04em; color: var(--leaf); }
.pub-title { font-size: 1.16rem; line-height: 1.3; margin: 0 0 6px; }
.pub-authors { margin: 0 0 2px; color: var(--ink-2); font-size: .95rem; }
.pub-venue { margin: 0; color: var(--muted); font-size: .92rem; font-style: italic; }
.pub-venue a { color: var(--ink-2); }
.pub-venue a:hover { color: var(--brand); }
.pub-note { font-size: .9rem; margin: 6px 0 0; }
.pub-note:empty { display: none; }
.pub-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; font-size: .9rem; font-weight: 600; }
.pub-group + .pub-group { margin-top: 44px; }
.pub-group-title { font: 600 2.2rem/1 var(--serif); color: var(--ink); margin-bottom: 12px; letter-spacing: -.02em; }
.pub-group .pub-item { grid-template-columns: 1fr; }
.pub-group .pub-year { display: none; }
@media (max-width: 560px) { .pub-item { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Filters / toolbar ---------- */
.filters { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.filters:empty { display: none; }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-label { font: 500 .72rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 6px; min-width: 104px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font: 550 .9rem/1 var(--sans); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.chip:hover { border-color: var(--ink); color: var(--ink); background: var(--paper-3); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip-count { font: 500 .72rem/1 var(--mono); opacity: .7; }
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; padding: 20px 0 22px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 170px; }
.field-grow { flex: 1 1 260px; }
.field-label { font: 500 .72rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; }
.input { min-height: 46px; padding: 10px 12px; border: 1px solid #bfb9aa; border-radius: var(--radius); font: inherit; background: var(--paper-3); color: var(--ink); width: 100%; transition: border-color .2s; }
.input:hover { border-color: var(--ink-2); }
.input:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.results-count { font: 500 .78rem/1.4 var(--mono); color: var(--muted); margin: 0 0 20px; }

/* ---------- Team ---------- */
.team-group + .team-group { margin-top: 56px; }
.team-group-title { font: 500 .76rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.team-photo-wrap { aspect-ratio: 4 / 5; background: var(--paper-2); overflow: hidden; }
.team-photo, .team-photo-wrap .img-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.team-card:hover .team-photo { transform: scale(1.03); }
.team-photo-wrap .img-placeholder-text { font-size: 2rem; }
.team-name { font-size: 1.2rem; margin: 0; }
.team-role { margin: 0; color: var(--brand); font: 500 .74rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.team-bio { color: var(--ink-2); margin: 6px 0 0; }
.team-contact, .team-links { margin: 0; font-size: .9rem; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.team-card-large { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; }
.team-card-large .team-photo-wrap { aspect-ratio: auto; min-height: 300px; }
.team-card-large .card-body { padding: 32px 36px; gap: 12px; justify-content: center; }
.team-card-large .team-name { font-size: 1.9rem; }
@media (max-width: 640px) { .team-card-large { grid-template-columns: 1fr; } .team-card-large .team-photo-wrap { aspect-ratio: 4 / 5; } .team-card-large .card-body { padding: 24px; } }

/* ---------- Detail pages ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.detail-main > * + * { margin-top: 24px; }
.detail-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; padding: 24px; border: 1px solid var(--line); border-top: 3px solid var(--ink); background: var(--paper-3); }
.aside-logo { display: flex; justify-content: center; padding: 8px 0 18px; border-bottom: 1px solid var(--line); }
.aside-logo img { max-height: 120px; width: auto; object-fit: contain; background: #fff; padding: 8px; }
.aside-logo .img-placeholder { width: 100%; height: 100px; }
.aside-heading { font: 500 .72rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.aside-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.meta-list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0; font-size: .92rem; }
.meta-list dt, .meta-list dd { padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.meta-list dt { font: 500 .7rem/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-right: 16px; }
.meta-list dd { margin: 0; color: var(--ink); }
.prose { font-size: 1.08rem; color: var(--ink-2); max-width: 70ch; }
.prose p { margin: 0 0 1.1em; }
.prose p:first-child::first-letter { font-family: var(--serif); }
.lead-text { font: 400 1.3rem/1.5 var(--serif); color: var(--ink); }
.detail-section { margin-top: 56px !important; padding-top: 24px; border-top: 1px solid var(--line); }
.detail-section > h2 { font-size: 1.5rem; margin-bottom: 20px; }
.detail-figure { margin: 0; overflow: hidden; background: var(--paper-2); }
.detail-image { width: 100%; max-height: 480px; object-fit: cover; }
.detail-figure .img-placeholder { height: 240px; }
.wp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0; counter-reset: wp; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.wp-card { position: relative; padding: 22px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); counter-increment: wp; background: var(--paper-3); transition: background .2s; }
.wp-card:hover { background: var(--paper); }
.wp-card::before { content: counter(wp, decimal-leading-zero); display: block; font: 500 .74rem/1 var(--mono); color: var(--brand); letter-spacing: .1em; margin-bottom: 12px; }
.wp-card h3 { font-size: 1.06rem; margin-bottom: 6px; }
.wp-card p { font-size: .92rem; color: var(--muted); margin: 0; }
.detail-single > * + * { margin-top: 22px; }
.inline-links { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; }
.share-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-top: 24px; border-top: 1px solid var(--line); margin-top: 40px !important; }
.copy-status { font-size: .88rem; color: var(--leaf); word-break: break-all; }
@media (max-width: 920px) { .detail { grid-template-columns: 1fr; } .detail-aside { position: static; order: -1; } }

/* ---------- About / contact ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 72px); align-items: start; }
.about-facts { padding: 24px; background: var(--paper-3); border: 1px solid var(--line); border-top: 3px solid var(--brand); }
.offer-card { border-radius: 0; }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }
.contact-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.contact-item { display: flex; gap: 16px; padding: 28px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-3); }
.contact-icon { display: inline-flex; color: var(--brand); flex-shrink: 0; padding-top: 2px; }
.contact-label { font: 500 .72rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.contact-item address { font-style: normal; color: var(--ink); }
.contact-sub { margin: 10px 0 0; font-weight: 600; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--night); color: #aeb3bc; padding: 64px 0 0; font-size: .92rem; isolation: isolate; }
.site-footer::before { content: ''; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(90deg, transparent 0 79px, rgba(255,255,255,.03) 79px 80px); }
.site-footer:empty { padding: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1.2fr; gap: 36px; padding-bottom: 48px; }
.footer-name { font: 600 2.2rem/1 var(--serif); color: #fff; margin-bottom: 14px; letter-spacing: -.02em; }
.footer-name::after { content: '.'; color: var(--brand); }
.footer-muted { color: #8a909b; }
.footer-heading { font: 500 .72rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: #dcdfe4; text-decoration: none; word-break: break-word; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--brand); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; padding-bottom: 22px; font: 500 .74rem/1.5 var(--mono); letter-spacing: .03em; color: #8a909b; }
.footer-bottom p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  .site-header, .site-footer, .hero-visual, .preview-banner, .filters, .toolbar, .share-row { display: none !important; }
  .hero-copy::before { display: none; }
  .platforms { background: none; color: #000; }
}
