/* Visual refinement 02 · local assets, original ITP palette. */
/* Material update 03: original ITP branding and supplied real photographs. */
:root { --soft-shadow: 0 8px 28px #44332606, 0 1px 4px #44332603; }
body { background: var(--bg); }
h1, h2, h3 { font-weight: 600; }
.page { padding-top: 48px; padding-bottom: 72px; }
.reviewbar { background: #f3f0ec; }
.header { background: #ffffffeb; border-bottom-color: #e9e5dfb3; box-shadow: 0 2px 12px #44332603; }
@supports (backdrop-filter: blur(12px)) {
  .header { background: #ffffffd9; backdrop-filter: blur(20px) saturate(1.2); }
  .popover, .mobile-nav.open { background: #fffffff2; backdrop-filter: blur(18px); }
  dialog { background: #ffffffed; backdrop-filter: blur(20px); }
}
.nav { gap: 28px; }
.nav a { position: relative; border-bottom: 0; }
.nav a.active::after { content: ''; position: absolute; bottom: 16px; left: 50%; width: 16px; height: 2px; border-radius: 2px; background: var(--brand); transform: translateX(-50%); }
.btn, .icon-btn { transition: background 180ms, color 180ms, box-shadow 180ms, transform 180ms; }
.btn.primary { box-shadow: inset 0 1px 0 #ffffff1c, 0 3px 8px #a22e2d0a; }
.btn:active { transform: translateY(1px); }
.popover, .mobile-nav.open { box-shadow: 0 12px 36px #44332612; }
.page-title { margin-bottom: 32px; }
.page-title h1 { font-size: 32px; }
.page-title p:empty { display: none; }
.project-title .data-label, .profile-title h1 .data-label { display: inline-block; }
.section-heading { margin-bottom: 24px; }
.section-heading h2 { font-size: 24px; letter-spacing: -.4px; }
.section-heading .link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.section-heading .link svg { width: 16px; height: 16px; }
.project-list, .side-card, .panel, .member-card, .profile-header, .filters, .center-item { box-shadow: var(--soft-shadow); border-color: #e9e5dfcc; }
.project-row { padding-top: 24px; padding-bottom: 24px; }
.project-title h3 { font-weight: 600; }
.project-row:hover { background: #faf9f780; }
.data-label { border-color: #e9e5df99; color: var(--muted); background: #faf9f766; }
.searchbox { border-radius: 10px; box-shadow: 0 2px 8px #44332603; }
.footer { padding: 28px 0; background: #f6f4f0; border-top: 0; }
.footer .wrap { align-items: center; }
.footer strong { font-weight: 600; font-size: 13px; }
.footer .footer-links { display: flex; align-items: center; gap: 28px; }
.footer a { margin: 0; min-height: 44px; display: inline-flex; align-items: center; }
.brand-logo { display: block; width: 44px; height: 44px; border-radius: 50%; object-fit: contain; flex-shrink: 0; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { border-radius: 50%; display: block; }

/* Home: compact editorial opening, then immediate browsing. */
.home-page { padding-top: 32px; }
.home-hero { display: grid; grid-template-columns: 1.18fr 1fr; align-items: center; gap: 40px; position: relative; margin-bottom: 28px; }
.home-hero-copy { padding: 12px 0; }
.home-hero .eyebrow { font-size: 11px; letter-spacing: 2.6px; margin-bottom: 18px; }
.home-hero h1 { font-size: 40px; line-height: 1.48; letter-spacing: -1.2px; }
.home-hero h1 span { display: block; }
.home-hero h1 span:last-child { color: var(--brand); }
.home-hero p { color: var(--muted); font-size: 15px; max-width: 470px; margin-top: 18px; }
.home-hero-visual { margin: 0; height: 258px; position: relative; border-radius: 12px; overflow: hidden; background: var(--warm); box-shadow: 0 12px 28px #6951390c; }
.home-hero-visual::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, #ffffff06 45%, #3324163b); }
.home-hero-visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 43%; }
.home-hero-visual { height: auto; aspect-ratio: 1080/562; }
.home-hero-visual img { object-fit: contain; object-position: center; }
.home-hero-visual figcaption { position: absolute; bottom: 14px; left: 16px; z-index: 1; color: var(--text); background: #ffffffed; border: 1px solid #ffffff66; font-size: 11px; padding: 3px 9px; border-radius: 5px; }
@supports (backdrop-filter: blur(12px)) { .home-hero-visual figcaption { backdrop-filter: blur(12px); background: #ffffffe6; } }
.home-page .search-row { margin: 0 0 24px; }
.home-page .searchbox { min-height: 58px; background: #ffffff; padding-right: 8px; }
.home-page .searchbox .btn { min-height: 42px; padding-left: 24px; padding-right: 24px; }
.home-page .quick-links { border: 0; margin: 0 0 48px; padding: 0; gap: 16px; }
.home-page .quick-link { padding: 13px 16px; border-radius: 10px; background: #f3efe9b3; justify-content: space-between; min-height: 68px; gap: 12px; }
.home-page .quick-link:hover { background: #eee7de; }
.home-page .quick-link .quick-icon { border: 0; width: 32px; height: 36px; background: transparent; }
.home-page .quick-link b { font-size: 15px; font-weight: 550; }
.home-page .quick-link .portal-name { flex: 1; }
.portal-arrow { color: #8a8075; width: 16px; height: 16px; }
.home-grid { grid-template-columns: minmax(0,1fr) 288px; gap: 32px; }
.home-sidebar .side-card { padding: 24px; margin-top: 0; }
.home-sidebar h2 { font-size: 19px; }
.home-sidebar .need-mini { padding: 24px 0; }
.home-sidebar .need-mini h3 { font-size: 16px; font-weight: 550; }
.home-sidebar .need-mini p { font-size: 13px; line-height: 1.7; }
.home-sidebar .need-mini .meta { font-size: 12px; }
.home-sidebar .btn.text { margin-top: 8px; }
.archive-section { margin-top: 64px; }

/* Archive: image and reading layouts share a rhythm, without forced equal cards. */
.archive-page { padding-top: 48px; }
.archive-page .page-title { margin-bottom: 36px; align-items: flex-end; }
.archive-page .page-title h1 { font-size: 36px; }
.archive-page .page-title .eyebrow { margin-bottom: 8px; color: var(--muted); font-size: 11px; letter-spacing: 2.4px; }
.archive-page .cohort-tabs { margin: 0 0 24px; gap: 36px; }
.archive-page .cohort-tabs button { min-height: 52px; font-size: 15px; }
.archive-page .archive-filters { margin-bottom: 12px; }
.archive-page .segment-tabs { gap: 6px; }
.archive-page .segment-tabs button { min-height: 44px; padding: 8px 14px; }
.archive-page .results-count { font-size: 12px; margin: 20px 0 28px; }
.archive-editorial { display: grid; grid-template-columns: 1.12fr 1fr; gap: 0 48px; align-items: start; }
.archive-editorial .archive-card { border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.archive-editorial .archive-feature { grid-column: 1; grid-row: 1 / span var(--story-count, 2); }
.archive-editorial .archive-feature .archive-cover { display: block; border-radius: 12px; box-shadow: 0 8px 24px #44332609; }
.archive-editorial .archive-feature img { transition: transform 200ms ease-out; }
.archive-editorial .archive-feature .archive-cover:hover img { transform: scale(1.015); }
.archive-editorial .archive-feature .archive-body { padding: 24px 0 0; }
.archive-editorial .archive-feature h3 { font-size: 24px; line-height: 1.5; margin: 12px 0; }
.archive-editorial .archive-feature p { max-width: 490px; font-size: 15px; }
.archive-editorial .archive-story { grid-column: 2; border-top: 1px solid var(--line); }
.archive-editorial .archive-story:first-of-type { border-top: 0; }
.archive-editorial .archive-story .archive-body { padding: 24px 0; }
.archive-editorial .archive-story:nth-child(2) .archive-body { padding-top: 0; }
.archive-editorial .archive-story h3 { font-size: 21px; margin: 14px 0 10px; line-height: 1.55; }
.archive-editorial .archive-story p { font-size: 14px; max-width: 490px; }
.archive-editorial .meta { padding-top: 0; margin-top: 20px; font-size: 12px; gap: 8px 14px; }
.archive-editorial .mini-label { display: flex; align-items: center; gap: 12px; font-size: 12px; }
.archive-editorial .edition-inline { color: var(--muted); }
.archive-editorial.reading-only { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 48px; }
.archive-editorial.reading-only .archive-story { grid-column: auto; border-top: 1px solid var(--line); }
.archive-editorial.reading-only .archive-story .archive-body { padding-top: 24px; }
.archive-editorial.single { grid-template-columns: minmax(0,740px); }
.archive-editorial.single .archive-card { grid-column: auto; grid-row: auto; }
.archive-cover:focus-visible { outline-offset: 5px; }
.archive-editorial h3 a { display: inline-block; min-height: 44px; }
.image-note { color: var(--text); background: #fffffff0; }
.archive-reading { border: 0; box-shadow: none; background: white; }
.preserved-photo { aspect-ratio: auto; display: block; }
.preserved-photo img { width: 100%; height: auto; object-fit: contain; }
.archive-card h3 a { display: block; }
.archive-story-top { display: flex; align-items: flex-start; gap: 20px; justify-content: space-between; }
.archive-story-top .mini-label { flex: 1; min-width: 0; flex-wrap: wrap; gap: 6px 12px; }
.archive-story-top .edition-inline { display: block; width: 100%; line-height: 1.6; }
.archive-inline-thumb { width: 64px; height: 64px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: var(--warm); display: flex; align-items: center; justify-content: center; }
.archive-inline-thumb.landscape { width: 96px; height: auto; min-height: 60px; }
.archive-inline-thumb img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.archive-collection { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; align-items: start; }
.archive-rest { margin-top: 48px; }
.real-archive-card { box-shadow: var(--soft-shadow); }
.real-archive-card .archive-body { padding: 24px; }
.real-archive-card .mini-label { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.real-archive-card .edition-inline { color: var(--muted); }
.real-archive-card h3 { font-size: 19px; line-height: 1.55; }
.real-archive-card .archive-body p { font-size: 14px; }
.real-archive-card .meta { font-size: 12px; margin-top: 20px; padding-top: 0; }
.archive-person-role { color: var(--muted); font-size: 15px; }
.real-archive-reading .eyebrow { letter-spacing: .5px; }
.real-archive-photo img { height: auto; max-width: min(100%,var(--photo-width)); margin: 0 auto; object-fit: contain; }
.real-archive-photo figcaption { text-align: center; }
.archive-sources { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.archive-sources summary { min-height: 44px; cursor: pointer; color: var(--muted); font-size: 14px; }
.archive-sources ul { padding-left: 20px; margin: 12px 0; }
.archive-sources li { font-size: 13px; color: var(--muted); margin: 16px 0; }
.archive-sources li p { font-size: 12px; margin: 4px 0 0; }
.archive-sources>p { font-size: 13px; color: var(--muted); }
.archive-sources a { color: var(--brand); }
.archive-sources a svg { width: 13px; height: 13px; vertical-align: middle; }

/* Public home is an independent typographic introduction. */
.public-hero { background: radial-gradient(ellipse at 90% 10%, #ffffff 0, #ffffff00 60%), linear-gradient(130deg, #f5ebe1, #fbf4ed); border: 1px solid #ffffff; padding: 48px; margin-bottom: 48px; box-shadow: 0 16px 40px #8c695609; }
.public-hero h1 { font-size: 40px; line-height: 1.5; }
.public-hero .public-wordmark { opacity: .6; color: #b49c85; text-shadow: 0 3px 0 #ffffff80, 0 18px 30px #67472810; }
.public-grid article { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 24px 8px 0 0; }
.public-grid p { min-height: 76px; }
.privacy-note { background: transparent; border-top: 1px solid var(--line); border-radius: 0; padding: 28px 0 0; margin-top: 48px; }

/* A short, once-only reveal. No looping or image parallax. */
[data-reveal] { opacity: 1; transform: none; transition: opacity 200ms ease-out, transform 200ms ease-out; }
.reveal-pending { opacity: 0; transform: translateY(12px); }
.reveal-pending:focus-within { opacity: 1; transform: none; }

@media (max-width:1150px) {
  .nav { gap: 18px; }
  .home-hero { gap: 28px; }
  .home-hero h1 { font-size: 36px; }
  .home-hero-visual { height: auto; }
  .home-grid { grid-template-columns: minmax(0,1fr) 270px; gap: 24px; }
  .archive-editorial { gap: 0 32px; }
}
@media (max-width:1000px) {
  .home-hero { grid-template-columns: 1.15fr 1fr; gap: 24px; }
  .home-hero h1 { font-size: 32px; }
  .home-hero-visual { height: auto; }
  .archive-collection { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-page .quick-links { grid-template-columns: repeat(4,1fr); gap: 12px; }
  .home-page .quick-link { padding: 12px; gap: 8px; }
  .home-page .quick-link b { font-size: 14px; }
  .home-page .portal-arrow { display: none; }
}
@media (max-width:760px) {
  .page, .archive-page { padding-top: 28px; padding-bottom: 48px; }
  .home-page { padding-top: 28px; }
  .home-hero { grid-template-columns: 1fr; gap: 24px; margin-bottom: 24px; }
  .home-hero-copy { padding: 0; }
  .home-hero .eyebrow { margin-bottom: 12px; font-size: 10px; }
  .home-hero h1 { font-size: 31px; letter-spacing: -.8px; line-height: 1.5; }
  .home-hero p { font-size: 14px; margin-top: 14px; }
  .home-hero-visual { height: auto; aspect-ratio: 1080/562; }
  .brand-logo { width: 40px; height: 40px; }
  .home-hero-visual figcaption { font-size: 10px; left: 12px; bottom: 12px; }
  .home-page .searchbox { min-height: 56px; }
  .home-page .searchbox .btn { padding-left: 14px; padding-right: 14px; }
  .home-page .quick-links { grid-template-columns: repeat(2,1fr); gap: 12px; margin-bottom: 36px; }
  .home-page .quick-link { padding: 12px; min-height: 60px; }
  .home-page .portal-arrow { display: block; width: 14px; height: 14px; }
  .home-grid { display: flex; gap: 36px; }
  .home-sidebar .side-card { padding: 22px; }
  .home-sidebar .need-mini { padding: 20px 0; }
  .section-heading { margin-bottom: 16px; gap: 8px; }
  .section-heading h2 { font-size: 22px; }
  .section-heading .link { font-size: 12px; gap: 2px; }
  .section-heading .link svg { width: 13px; height: 13px; }
  .project-row { padding-top: 22px; padding-bottom: 22px; }
  .archive-section { margin-top: 40px; }
  .archive-editorial, .archive-editorial.reading-only, .archive-editorial.single { grid-template-columns: 1fr; gap: 24px; }
  .archive-editorial .archive-feature, .archive-editorial .archive-story { grid-column: auto; grid-row: auto; }
  .archive-editorial .archive-feature .archive-body { padding: 20px 0 8px; }
  .archive-editorial .archive-feature h3 { font-size: 23px; }
  .archive-editorial .archive-story .archive-body, .archive-editorial .archive-story:nth-child(2) .archive-body { padding: 24px 0 0; }
  .archive-editorial .archive-story h3 { font-size: 20px; }
  .archive-editorial .archive-story p { font-size: 14px; }
  .archive-editorial .meta { margin-top: 16px; font-size: 12px; }
  .archive-page .page-title { align-items: center; margin-bottom: 24px; }
  .archive-page .page-title h1 { font-size: 30px; }
  .archive-page .page-title .eyebrow { font-size: 10px; }
  .archive-page .page-title .btn { font-size: 12px; padding: 8px 10px; }
  .archive-page .cohort-tabs { gap: 12px; justify-content: space-between; margin-bottom: 20px; }
  .archive-page .cohort-tabs { justify-content: flex-start; gap: 4px 18px; }
  .archive-page .cohort-tabs button { font-size: 12px; min-height: 48px; }
  .archive-page .segment-tabs { gap: 4px; }
  .archive-page .segment-tabs button { font-size: 12px; padding: 8px; }
  .archive-page .results-count { margin-bottom: 24px; }
  .archive-collection { grid-template-columns: 1fr; gap: 20px; }
  .archive-rest { margin-top: 32px; }
  .real-archive-card .archive-body { padding: 20px; }
  .archive-inline-thumb.landscape { width: 82px; min-height: 48px; }
  .real-archive-reading h1 { font-size: 26px; line-height: 1.55; }
  .archive-story-top { gap: 16px; }
  .footer .wrap { display: flex; justify-content: space-between; gap: 12px; }
  .footer .wrap>div+div { margin: 0; }
  .footer .footer-links { gap: 16px; }
  .footer a { font-size: 11px; }
  .public-hero { padding: 28px 24px; margin-bottom: 36px; }
  .public-hero h1 { font-size: 32px; }
  .public-grid p { min-height: 0; }
  .privacy-note { margin-top: 32px; }
}
@media (max-width:359px) {
  .reviewbar .review-status { display: inline; }
  .home-hero h1 { font-size: 28px; }
  .home-page .quick-link { gap: 6px; padding: 10px; }
  .home-page .quick-link b { font-size: 13px; }
  .home-page .quick-icon { width: 26px; }
  .home-page .portal-arrow { width: 12px; }
  .archive-page .page-title .btn { padding: 8px; font-size: 11px; }
  .archive-page .page-title h1 { font-size: 28px; }
  .archive-editorial .mini-label { gap: 8px; }
  .footer .footer-links { gap: 12px; }
  .footer-brand { gap: 6px; }
  .footer-brand img { width: 24px; height: 24px; }
  .footer strong { font-size: 12px; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal], .reveal-pending { opacity: 1 !important; transform: none !important; }
}
