:root {
  --yellow: #F2BE1A;
  --black: #000000;
  --white: #FFFFFF;
  --bg: #FFFFFF;
  --bg-2: #F4F4F2;
  --text: #000000;
  --muted: #555555;
  --rule: rgba(0,0,0,.14);
  --slot: #EDEDEA;
  --slot-ink: #8A8A86;
  --display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #000; --bg-2: #111; --text: #fff; --muted: #B5B5B0; --rule: rgba(255,255,255,.2); --slot: #1C1C1C; --slot-ink: #8A8A86; }
}
:root[data-theme="dark"] { --bg: #000; --bg-2: #111; --text: #fff; --muted: #B5B5B0; --rule: rgba(255,255,255,.2); --slot: #1C1C1C; --slot-ink: #8A8A86; }
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 76px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
canvas, img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; }
.strip { height: 10px; background: var(--yellow); }

/* Image frames: a neutral tone shows until the image loads */
.slot { position: relative; background: var(--slot); overflow: hidden; display: grid; place-items: center; }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot.logo { background: #000; }
.slot.logo img { object-fit: contain; padding: 14%; background: transparent; }

/* ---------- Header ---------- */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--bg); }
.head-inner { display: flex; align-items: center; gap: 28px; padding: 14px clamp(18px, 4vw, 56px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand .mark { width: 40px; height: 40px; background: var(--yellow); color: #000; position: relative; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 16px; }
.brand .mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--yellow); }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1; letter-spacing: -.02em; }
.brand-name small { display: block; font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: 0; color: var(--muted); margin-top: 3px; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 600; padding: 4px 0; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="true"] { border-bottom-color: var(--yellow); }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 15px; padding: 12px 22px; cursor: pointer;
  background: var(--yellow); color: #000; border: 2px solid var(--yellow); border-radius: 0; transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: #000; color: var(--yellow); border-color: #000; }
.btn.dark { background: #000; color: #fff; border-color: #000; }
.btn.dark:hover { background: #fff; color: #000; }
.btn.line { background: transparent; color: var(--text); border-color: var(--text); }
.btn.line:hover { background: var(--text); color: var(--bg); }
.menu-toggle { display: none; background: none; border: 2px solid var(--text); padding: 8px 14px; font-weight: 700; font-size: 14px; cursor: pointer; }


/* Scroll rail */
.rail.away { opacity: 0; pointer-events: none; }
.rail { transition: opacity .3s; position: fixed; right: clamp(10px, 1.4vw, 22px); top: 50%; transform: translateY(-50%); z-index: 30; display: flex; gap: 10px; background: rgba(0,0,0,.78); color: #fff; padding: 14px 12px; }
.rail-track { width: 2px; background: rgba(255,255,255,.25); position: relative; }
.rail-fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: var(--yellow); }
.rail ol { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.rail a { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 12px; font-weight: 700; }
.rail a i { width: 9px; height: 9px; border: 1.5px solid #fff; flex: none; transition: transform .2s, background .2s, border-color .2s; }
.rail a span { display: none; white-space: nowrap; }
.rail:hover a span, .rail:focus-within a span { display: inline; }
.rail a[aria-current="true"] i { background: var(--yellow); border-color: var(--yellow); transform: scale(1.3); }
.rail a:hover span, .rail a[aria-current="true"] span { color: var(--yellow); }
.progress-bar { display: none; position: fixed; left: 0; right: 0; bottom: env(safe-area-inset-bottom, 0px); height: 4px; z-index: 30; background: rgba(0,0,0,.15); }
.progress-bar div { height: 100%; width: 0; background: var(--yellow); }
@media (max-width: 1020px) { .rail { display: none; } .progress-bar { display: block; } }

/* ---------- Hero ---------- */
.hero-wrap { position: relative; }
.hero { position: relative; height: min(90vh, 920px); min-height: 600px; background: #10265c; overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro {
  position: absolute; right: 0; bottom: 0; z-index: 2; width: min(600px, 44vw);
  background: var(--yellow); color: #000; padding: clamp(28px, 3.2vw, 48px) clamp(24px, 3.6vw, 56px) clamp(30px, 3.4vw, 50px);
}
.intro .where { font-size: 14px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.intro .where::before { content: ""; width: 28px; height: 3px; background: #000; }
.intro h1 { font-size: clamp(44px, 5vw, 80px); line-height: .92; letter-spacing: -.035em; margin-bottom: 20px; }
.intro p { font-size: 18px; line-height: 1.5; max-width: 40ch; margin-bottom: 26px; }
.intro .actions { display: flex; flex-wrap: wrap; gap: 0; }
.intro .btn.line { color: #000; border-color: #000; border-left: 0; }
.intro .btn.line:hover { background: #000; color: var(--yellow); }
.hero-credit { position: absolute; right: 14px; bottom: 10px; font-size: 11px; color: #fff; opacity: .85; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) clamp(18px, 6vw, 96px); }
.section.alt { background: var(--bg-2); }
.section.ink { background: #000; color: #fff; }
.inner { max-width: 1200px; margin: 0 auto; }
.section h2 { font-size: clamp(38px, 5vw, 72px); line-height: .98; margin-bottom: 28px; max-width: 20ch; }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 90px); align-items: start; }
.statement { font-family: var(--display); font-size: clamp(26px, 2.6vw, 38px); line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }
.prose p { max-width: 60ch; margin-bottom: 1em; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 44px; border-top: 3px solid var(--text); }
.facts div { padding: 16px 12px 0 0; }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { font-family: var(--display); font-size: clamp(34px, 3.4vw, 48px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }


/* Tribute */
.tribute { padding-left: 0; padding-right: 0; }
.tribute .inner { padding: 0 clamp(18px, 6vw, 96px); }
.tribute .kicker { color: var(--yellow); font-weight: 700; font-size: 15px; margin-bottom: 14px; display: flex; gap: 10px; align-items: center; }
.tribute .kicker::before { content: ""; width: 28px; height: 3px; background: var(--yellow); }
.tribute h2 { max-width: 18ch; }
.tribute .dates { font-family: var(--display); font-size: clamp(20px, 2vw, 28px); font-weight: 500; color: #9C9C96; margin: -12px 0 40px; }
.mural { position: relative; height: clamp(420px, 78vh, 820px); overflow: hidden; background: #2a120b; margin-bottom: clamp(48px, 7vw, 88px); }
.mural img { position: absolute; z-index: 1; }
.mural .mural-fg { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform-origin: 40% 55%; animation: fgDrift 40s ease-in-out infinite alternate; }
@keyframes fgDrift { 0% { transform: scale(1.06) translate(-2.5%, 1%); } 50% { transform: scale(1.12) translate(0, -1.5%); } 100% { transform: scale(1.07) translate(2.5%, 1%); } }
.mural .lamp { position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(circle at var(--lx, 30%) var(--ly, 45%), rgba(255,214,140,.75) 0%, rgba(255,190,110,.25) 22%, rgba(0,0,0,.55) 62%);
  animation: lamp 9s ease-in-out infinite alternate; }
.mural .shade { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 65%, rgba(0,0,0,.75) 100%); }
.mural .reveal { position: absolute; inset: 0; z-index: 4; background: #000; transform-origin: right; transform: scaleX(1); transition: transform 1.8s cubic-bezier(.7,0,.2,1); }
.mural.in .reveal { transform: scaleX(0); }
.mural figcaption { position: absolute; left: clamp(18px, 6vw, 96px); bottom: 20px; z-index: 5; font-size: 12px; color: #D8D8D2; }
.mural blockquote { position: absolute; right: clamp(18px, 6vw, 96px); bottom: 48px; z-index: 5; max-width: 20ch; font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.6vw, 52px); line-height: 1; letter-spacing: -.03em; color: #fff; text-align: right; text-shadow: 0 2px 24px rgba(0,0,0,.7), 0 1px 3px rgba(0,0,0,.6); }
.mural blockquote cite { display: block; font-family: var(--sans); font-style: normal; font-weight: 600; font-size: 14px; letter-spacing: 0; color: var(--yellow); margin-top: 14px; }
@keyframes muralDrift { 0% { transform: scale(1.12) translate(-3.5%, 1.5%); } 50% { transform: scale(1.18) translate(0, -1.5%); } 100% { transform: scale(1.12) translate(3.5%, 1%); } }
@keyframes lamp { 0% { --lx: 28%; --ly: 42%; opacity: .85; } 35% { opacity: 1; } 60% { opacity: .9; } 100% { --lx: 66%; --ly: 52%; opacity: 1; } }
@property --lx { syntax: '<percentage>'; inherits: false; initial-value: 30%; }
@property --ly { syntax: '<percentage>'; inherits: false; initial-value: 45%; }
@media (prefers-reduced-motion: reduce) { .mural img, .mural .lamp { animation: none !important; } .mural .reveal { display: none; } }
.tribute-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); }
.tribute-grid .prose p { color: #DADAD4; }
.tribute-grid .prose p:first-child { font-family: var(--display); font-size: clamp(22px, 2vw, 28px); line-height: 1.3; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.principles { list-style: none; border-top: 3px solid var(--yellow); }
.principles li { padding: 22px 0 24px; border-bottom: 1px solid rgba(255,255,255,.2); }
.principles h3 { font-size: 22px; margin-bottom: 6px; }
.principles p { color: #BDBDB8; font-size: 16px; }
.principles q { color: #fff; }
.carry { margin-top: clamp(40px, 5vw, 64px); font-family: var(--display); font-weight: 800; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.1; letter-spacing: -.02em; max-width: 26ch; }
.carry span { background: var(--yellow); color: #000; padding: 0 .15em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
@media (max-width: 820px) { .tribute-grid { grid-template-columns: 1fr; } .mural blockquote { left: 18px; right: 18px; bottom: 64px; text-align: left; font-size: 26px; } .mural figcaption { left: 18px; right: 18px; bottom: 14px; } }

/* Work */
.work-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: 44px; }
.work-head h2 { margin-bottom: 0; }
.work-head p { max-width: 44ch; color: var(--muted); }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 36px); }
.project { display: flex; flex-direction: column; border-top: 3px solid var(--text); padding-top: 18px; }
.project .slot { aspect-ratio: 4 / 3; margin-bottom: 22px; }
.status { position: absolute; left: 0; top: 0; z-index: 2; background: var(--yellow); color: #000; font-size: 12px; font-weight: 700; padding: 5px 10px; }
.project h3 { font-size: clamp(28px, 2.4vw, 36px); line-height: 1; }
.project .tagline { font-weight: 600; margin: 8px 0 14px; }
.project p { font-size: 16px; margin-bottom: .8em; }
.project ul { list-style: none; margin: 8px 0 22px; }
.project li { font-size: 15px; padding: 8px 0 8px 20px; border-top: 1px solid var(--rule); position: relative; }
.project li::before { content: ""; position: absolute; left: 0; top: 16px; width: 9px; height: 9px; background: var(--yellow); }
.project .actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.also { margin-top: 56px; padding: 18px 0 0; border-top: 1px solid var(--rule); max-width: 760px; color: var(--muted); }

/* Recognition */
.ink h2, .ink h3 { color: #fff; }
.standing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.standing-grid div { border-top: 1px solid rgba(255,255,255,.25); padding: 20px 0 28px; }
.standing-grid h3 { font-size: 22px; margin-bottom: 6px; display: flex; gap: 12px; align-items: baseline; }
.standing-grid h3::before { content: ""; flex: none; width: 12px; height: 12px; background: var(--yellow); }
.standing-grid p { color: #BDBDB8; max-width: 46ch; font-size: 16px; padding-left: 24px; }

/* Partners */
.partner-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.partner-grid li { background: var(--bg); padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 6px; }
.partner-grid .slot { aspect-ratio: 16 / 9; margin-bottom: 10px; }
.partner-grid strong { font-family: var(--display); font-size: 19px; letter-spacing: -.01em; }
.partner-grid span { font-size: 13px; font-weight: 700; background: var(--yellow); color: #000; align-self: flex-start; padding: 2px 8px; }
.partner-grid p { font-size: 14px; color: var(--muted); }

/* Research */
.talks { list-style: none; border-top: 3px solid var(--text); max-width: 980px; }
.talks li { display: grid; grid-template-columns: 170px 1fr; gap: 6px 32px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.talks time { font-weight: 700; font-size: 15px; }
.talks h3 { font-size: clamp(20px, 1.8vw, 25px); line-height: 1.25; letter-spacing: -.01em; max-width: 48ch; font-weight: 700; }
.talks p { color: var(--muted); font-size: 15px; margin-top: 6px; max-width: 60ch; }

/* People */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(32px, 5vw, 72px); }
.person .slot { aspect-ratio: 4 / 5; max-width: 340px; margin-bottom: 22px; }
.person h3 { font-size: clamp(28px, 2.6vw, 38px); line-height: 1; }
.person .role { font-weight: 700; margin: 8px 0 14px; display: inline-block; background: var(--yellow); color: #000; padding: 3px 10px; font-size: 14px; }
.person p { margin-bottom: .9em; max-width: 56ch; font-size: 16px; }
.person .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* Media strip */
.media { padding-top: 0; }
.media-strip { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-bottom: 48px; }
.media-strip li { background: var(--bg); }
.media-strip .slot { aspect-ratio: 3 / 2; }
.press { list-style: none; border-top: 3px solid var(--text); max-width: 980px; }
.press li { display: grid; grid-template-columns: 170px 1fr; gap: 4px 32px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.press time { font-weight: 700; font-size: 15px; }
.press h3 { font-size: 21px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.press p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.press a { font-weight: 700; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 80px); }
.contact-lead { max-width: 40ch; margin-bottom: 28px; }
.contact-info h3 { font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--yellow); margin-bottom: 2px; letter-spacing: 0; }
.contact-info > div { margin-bottom: 26px; }
.contact-info .mail { font-family: var(--display); font-size: clamp(18px, 1.5vw, 22px); font-weight: 800; word-break: break-word; }
form { display: grid; gap: 14px; background: #fff; color: #000; padding: clamp(20px, 3vw, 36px); border-top: 10px solid var(--yellow); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; }
input, select, textarea { width: 100%; background: #fff; color: #000; border: 1.5px solid #000; border-radius: 0; padding: 11px 12px; font-size: 16px; }
textarea { min-height: 120px; resize: vertical; }
form .btn { justify-self: start; }
.form-status { font-size: 14px; min-height: 1.3em; }


/* Contact with photograph */
.contact { display: grid; grid-template-columns: minmax(300px, 38%) 1fr; background: #000; color: #fff; }
.contact-photo { position: relative; margin: 0; min-height: 100%; background: #1a1a1a; overflow: hidden; }
.contact-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.contact-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; font-size: 12px; color: #E4E4DE; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.75)); }
.contact-body { padding: clamp(56px, 7vw, 110px) clamp(18px, 5vw, 80px); min-width: 0; }
.belief { border-left: 6px solid var(--yellow); padding-left: clamp(18px, 2.4vw, 32px); margin-bottom: clamp(48px, 6vw, 80px); }
.belief h2 { font-size: clamp(38px, 4.6vw, 68px); line-height: .98; margin-bottom: 18px; max-width: 14ch; }
.belief p { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: #E4E4DE; max-width: 52ch; }
.talk-title { font-size: clamp(28px, 2.6vw, 38px); margin-bottom: 22px; color: #fff; }
.contact .contact-grid { grid-template-columns: 1fr 1.3fr; }
@media (max-width: 1100px) { .contact .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } .contact-photo { min-height: 0; aspect-ratio: 4 / 5; max-height: 72vh; } }

footer { background: #000; color: #fff; border-top: 1px solid #222; padding: 34px clamp(18px, 6vw, 96px) 44px; display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; align-items: center; font-size: 14px; }
footer .brand-name small { color: #AAA; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }


/* Consent and legal */
.legal { display: grid; gap: 6px; }
.legal p:last-child { display: flex; gap: 18px; flex-wrap: wrap; }
.linkish { background: none; border: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; padding: 0; }
.consent { position: fixed; left: clamp(12px, 3vw, 32px); bottom: clamp(12px, 3vw, 32px); z-index: 60; max-width: 460px; background: #fff; color: #000; border-top: 8px solid var(--yellow); padding: 20px 22px 22px; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.consent p { font-size: 15px; margin-bottom: 14px; }
.consent a { font-weight: 700; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent .btn.line { color: #000; border-color: #000; }
.consent .btn.line:hover { background: #000; color: #fff; }
.form-note { font-size: 13px; color: #555; }
.form-note a { font-weight: 700; }


/* Legal and utility pages */
.page .head-inner .btn { padding: 10px 18px; }
.legal-page { padding: clamp(48px, 7vw, 100px) clamp(18px, 6vw, 96px) clamp(64px, 8vw, 120px); }
.legal-page .inner { max-width: 760px; margin: 0; }
.legal-page h1 { font-size: clamp(40px, 5.4vw, 72px); line-height: .98; margin-bottom: 14px; }
.legal-page .updated { color: var(--muted); font-weight: 600; margin-bottom: 28px; }
.legal-page h2 { font-size: clamp(24px, 2.4vw, 32px); margin: 44px 0 12px; padding-top: 14px; border-top: 3px solid var(--yellow); }
.legal-page h3 { font-size: 20px; margin: 26px 0 8px; letter-spacing: -.01em; }
.legal-page p { margin-bottom: 1em; max-width: 68ch; }
.legal-page a { font-weight: 600; }
.notfound { min-height: 60vh; }


/* Press logos as links */
.media-strip a { display: block; position: relative; }
.media-strip a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.media-strip a:hover::after, .media-strip a:focus-visible::after { transform: scaleX(1); }

/* Research media and paper requests */
.talks li { scroll-margin-top: 90px; }
.talk-media { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0 16px; max-width: 760px; }
.talk-media a { display: block; text-decoration: none; color: inherit; }
.talk-photo .slot { aspect-ratio: 3 / 2; }
.talk-photo .slot.logo { aspect-ratio: 3 / 2; }
.talk-abstract { position: relative; }
.talk-abstract .slot { aspect-ratio: 3 / 2; background: var(--slot); }
.talk-abstract img { object-fit: cover; object-position: top; }
.talk-abstract span { position: absolute; left: 0; bottom: 0; background: var(--yellow); color: #000; font-size: 12px; font-weight: 700; padding: 3px 8px; }
.talk-photo:hover img, .talk-abstract:hover img { opacity: .85; }
.talk-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.talk-actions .btn { padding: 10px 18px; font-size: 14px; }

.paper-dialog { border: 0; padding: 0; width: min(560px, calc(100% - 32px)); max-height: calc(100vh - 32px); background: #fff; color: #000; border-top: 10px solid var(--yellow); }
.paper-dialog::backdrop { background: rgba(0,0,0,.6); }
.paper-dialog form { display: grid; gap: 14px; padding: clamp(20px, 3vw, 32px); border-top: 0; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.dialog-head h3 { font-size: 26px; line-height: 1.1; }
.dialog-close { background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; padding: 0 4px; color: #000; }
.paper-name { font-weight: 600; font-size: 15px; color: #444; }
@media (max-width: 820px) { .talk-media { grid-template-columns: repeat(2, 1fr); } }

/* Form extras */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.thanks { background: #fff; color: #000; padding: clamp(20px, 3vw, 36px); border-top: 10px solid var(--yellow); display: grid; gap: 14px; align-content: start; }
.thanks[hidden] { display: none; }
.thanks h3, .ink .thanks h3 { font-size: 30px; line-height: 1.1; color: #000; }
.contact-grid .thanks { align-self: start; }
.thanks .btn { justify-self: start; }
.thanks .btn.line { color: #000; border-color: #000; }
.thanks .btn.line:hover { background: #000; color: #fff; }
.paper-dialog .thanks { border-top: 0; }
button[disabled] { opacity: .65; cursor: progress; }
form[hidden] { display: none; }

/* Image viewer */
.viewer { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(0,0,0,.97); color: #fff; }
.viewer::backdrop { background: rgba(0,0,0,.7); }
.viewer[open] { display: grid; place-items: center; }
.viewer-figure { margin: 0; width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 64px clamp(16px, 7vw, 96px) 20px; gap: 14px; }
.viewer-figure img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; background: #111; }
.viewer-figure figcaption { font-size: 14px; color: #D8D8D2; text-align: center; max-width: 70ch; }
.viewer-btn { position: absolute; background: var(--yellow); color: #000; border: 0; width: 48px; height: 48px; font-size: 30px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.viewer-btn:hover { background: #fff; }
.viewer-btn[hidden] { display: none; }
.viewer-close { top: 14px; right: 14px; }
.viewer-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.viewer-next { right: 14px; top: 50%; transform: translateY(-50%); }
.viewer-count { position: absolute; top: 26px; left: 20px; font-size: 14px; font-weight: 700; }
html.viewing { overflow: hidden; }
@media (max-width: 600px) { .viewer-prev, .viewer-next { top: auto; bottom: 14px; transform: none; } .viewer-figure { padding-bottom: 76px; } .viewer-figure img { max-height: calc(100vh - 190px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); flex-direction: column; align-items: stretch; gap: 0; padding: 6px clamp(18px,4vw,56px) 18px; border-bottom: 3px solid var(--yellow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
  .menu-toggle { display: inline-block; }
  .head-cta { display: none; }
  .projects { grid-template-columns: 1fr; max-width: 620px; }
  .media-strip { grid-template-columns: repeat(3, 1fr); }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .hero { height: 62vh; min-height: 420px; }
  .intro { position: relative; width: auto; right: auto; }
  .lead-grid, .standing-grid, .team, .contact-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .talks li, .press li { grid-template-columns: 1fr; }
  .media-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) { .partner-grid { grid-template-columns: 1fr 1fr; } .partner-grid li { padding: 12px 12px 16px; } .partner-grid p { font-size: 13px; } .partner-grid strong { font-size: 16px; } .row2 { grid-template-columns: 1fr; } body { font-size: 16px; } .brand-name small { display: none; } }
