/* Apple design principles applied to Otium: legibility, consistency,
   immediate feedback and restrained depth. Keep the existing brand font. */
:root { --radius-control: .5rem; --radius-surface: 1rem; }
body { font-optical-sizing: auto; }
html { scroll-padding-top: 6rem; }
.section { scroll-margin-top: 1rem; }
h1, h2 { letter-spacing: -.03em; line-height: 1.15; }
h3, .concept h3 { letter-spacing: -.02em; line-height: 1.2; }
.hero h1 { text-wrap: balance; }
.header { background: rgba(255,255,255,.92); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); border-bottom-color: transparent; }
.header.is-scrolled { box-shadow: 0 1px 0 #16364b0a, 0 8px 24px #16364b06; }
.header nav a { min-height: 44px; display: inline-flex; align-items: center; }
.button, input, select, textarea, .role-content, .demo-note { border-radius: var(--radius-control); }
.button { white-space: normal; text-align: left; transition: background-color 160ms ease, transform 180ms var(--ease); }
.button:active { transform: scale(.98); transition-duration: 80ms; }
.text-link:active, .concept-link:active, .close:active { opacity: .7; }
.button > span:not(.sr-only) { flex-shrink: 0; }
.hero-image > img, .project-image, .series-image, .concepts, .concept:first-child, .partners, .series-panel { border-radius: var(--radius-surface); }
.image-caption { padding: 1.25rem 0; }
.image-caption small { font-size: .9375rem; }
.intro-text, .section-heading p:not(.section-label), .concept > p:not(.concept-top), .project-copy > p:not(.section-label), .partners > div > p:not(.section-label), .interest p:not(.section-label), .series-description { font-size: 1.0625rem; line-height: 1.75; }
.concept-top, .section-label, .series-meta { letter-spacing: .005em; }
.project-copy { min-width: 0; }
.project-copy h2 { font-size: clamp(2.25rem,3.3vw,3.125rem); max-width: 18ch; text-wrap: balance; }
.project { gap: 6%; }
.facts { padding-block: 1.5rem; }
.series-panel { gap: clamp(2rem,4vw,3.5rem); }
.series-intro { line-height: 1.5; }
.series-image { aspect-ratio: 3/2; }
.series-copy .button { margin-top: .25rem; }
dialog { border-radius: 1.25rem; padding: 2.75rem; max-height: calc(100dvh - 2rem); box-shadow: 0 8px 24px #16364b12, 0 32px 96px #16364b26; opacity: 0; transform: translateY(8px) scale(.985); transition: opacity 180ms ease, transform 220ms var(--ease), display 220ms allow-discrete, overlay 220ms allow-discrete; }
dialog[open] { opacity: 1; transform: none; }
@starting-style { dialog[open] { opacity: 0; transform: translateY(8px) scale(.985); } }
dialog::backdrop { background: #16364b78; }
.close { width: 44px; height: 44px; border-radius: 50%; }
.role-content { min-height: 4.25rem; }
.role-option:active .role-content { background: #edf4f8; }
.role-option input:checked + .role-content { border-color: #79a9c9; box-shadow: inset 0 0 0 1px #79a9c9; }
.role-option input:focus-visible + .role-content { outline: 2px solid #79a9c9; outline-offset: 3px; }
.footer-bottom button { min-height: 44px; }
@media (hover:hover) and (pointer:fine) {
  .button:hover { transform: none; }
  .button:active { transform: scale(.98); }
  .project-image:hover img { transform: scale(1.015); }
}
@media (max-width:900px) {
  .header nav { border-radius: 0 0 1rem 1rem; }
  .series-panel { gap: 2rem; }
}
@media (max-width:680px) {
  .hero h1 { letter-spacing: -.035em; line-height: 1.16; }
  .hero-image > img { height: auto; aspect-ratio: 6/5; object-position: 50% 45%; }
  .project-copy h2 { font-size: 2.375rem; max-width: 18ch; }
  .project-image { height: auto; aspect-ratio: 6/5; }
  .series-image { aspect-ratio: 3/2; }
  .series-panel { padding: 1.5rem; }
  dialog { padding: 2.75rem 1.5rem 1.5rem; }
  .button { gap: 1.25rem; }
}
@media (prefers-reduced-transparency:reduce) {
  .header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast:more) {
  .header { background: #fff; backdrop-filter: none; border-bottom: 1px solid var(--ink); }
  input, textarea, .role-content { border-color: var(--ink); }
  input:not([type="radio"]):focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
}
@media (prefers-reduced-motion:reduce) {
  dialog, dialog[open] { transform: none; transition: none; }
  .button:active { transform: none; }
}
@media (forced-colors:active) {
  .role-option input:checked + .role-content { border-color: Highlight; }
  .role-option input:focus-visible + .role-content { outline-color: Highlight; }
}

/* Start modal focus on its title without adding a decorative focus ring. */
dialog h2[tabindex="-1"]:focus, dialog h2[tabindex="-1"]:focus-visible { outline: none !important; box-shadow: none; }
.form-error{margin:0;padding:12px 16px;border-radius:12px;background:#fdeee6;color:#8a2f08;font-weight:500}
.submit[disabled]{opacity:.6;cursor:progress}
