/* Home owns one dynamic viewport. Content reflows before it ever shrinks.
   Compact screens switch between projects and progress. At extreme text zoom,
   only the selected panel scrolls; no text is clipped or scaled away. */
.company-frame:has(.landing) { grid-template-rows:clamp(3.5rem,7.5dvh,4.75rem) minmax(0,1fr); }
.company-content:has(>.landing) { overflow:hidden; min-height:0; container-type:size; }
.landing { --gap:clamp(.75rem,1.6cqw,1.75rem); height:100%; min-height:0; display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.6fr); gap:var(--gap); padding:clamp(.75rem,2cqh,2rem) clamp(1rem,2cqw,2.5rem); }
.landing-intro { min-width:0; min-height:0; align-self:stretch; display:flex; flex-direction:column; justify-content:center; gap:clamp(.875rem,2.5cqh,2rem); padding:clamp(.5rem,1.4cqw,1.5rem); background:radial-gradient(ellipse at 0% 50%,#202c1b,transparent 75%); border-radius:1.25rem; overflow:auto; }
.landing-kicker { margin:0; font-size:.6875rem; line-height:1.5; letter-spacing:.14em; text-transform:uppercase; color:#bccdab; }
.landing-intro h1 { max-width:14ch; margin:0; font-size:clamp(2rem,min(4.5cqw,7.3cqh),5.75rem); line-height:1.04; letter-spacing:-.045em; font-weight:600; text-wrap:balance; }
.landing-intro h1 span { color:#cfdfb9; }
.landing-description { max-width:34ch; margin:0; color:#c5cfbd; font-size:clamp(.875rem,1.25cqw,1.125rem); line-height:1.5; }
.landing-actions { display:flex; align-items:center; flex-wrap:wrap; gap:.625rem 1.25rem; }
.landing-compass { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:44px; border:1px solid transparent; border-radius:.75rem; padding:.375rem; }
.landing-compass img { display:block; width:clamp(5.5rem,min(12cqw,18cqh),11rem); height:auto; }
.landing-compass span,.landing-about { font-size:.8125rem; line-height:1.4; }
.landing-about { display:inline-flex; align-items:center; min-height:44px; }
.landing-compass:hover { border-color:#647058; background:#20271b; }
.landing-about:hover { text-decoration:underline; }
.landing-content { min-width:0; min-height:0; display:grid; grid-template-rows:minmax(0,1.5fr) minmax(0,1fr) auto; gap:var(--gap); }
.landing-panel { min-width:0; min-height:0; display:grid; grid-template-rows:auto minmax(0,1fr); gap:.625rem; }
.landing-section-title { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:.5rem; margin:0; color:#c5cfbd; font-size:.8125rem; line-height:1.4; font-weight:400; }
.landing-section-title a { color:#dae7cd; text-decoration:underline; text-underline-offset:3px; }
.landing-project-grid { min-height:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(.5rem,1cqw,1rem); }
.landing-project { position:relative; min-width:0; min-height:0; display:flex; flex-direction:column; gap:.75rem; padding:clamp(.625rem,1.1cqw,1.25rem); border:1px solid #46533c; border-radius:.875rem; background:#283025; }
.landing-project--simphoni,.landing-project--artists { background:#24222d; border-color:#43394c; }
.landing-project:hover { background:#343d30; border-color:#738064; }
.landing-project-image { display:block; width:100%; height:0; flex:1 1 0; min-height:0; object-fit:contain; border-radius:.5rem; background:#0c1714; }
.landing-project-copy { min-width:0; }
.landing-project h3 { margin:0; padding-right:.5rem; font-size:clamp(1rem,1.55cqw,1.6rem); line-height:1.2; font-weight:600; letter-spacing:-.02em; }
.landing-project p { margin:.375rem 0 0; color:#d4ddcd; font-size:clamp(.8125rem,1cqw,.9375rem); line-height:1.4; }
.landing-project small { display:block; margin-top:.375rem; font-size:.6875rem; line-height:1.35; color:#bbc6b4; }
.landing-project-arrow { position:absolute; right:.625rem; top:.5rem; padding:0 .125rem; border-radius:.2rem; background:#172016; color:#e2edda; }
.landing-event-grid { min-height:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:repeat(2,minmax(0,1fr)); gap:.5rem; }
.landing-event { min-width:0; padding:clamp(.625rem,1cqw,1rem); border:1px solid #3c4735; border-radius:.75rem; background:#1a2017; }
.landing-event small { display:flex; flex-wrap:wrap; gap:0 .375rem; font-size:.6875rem; line-height:1.3; color:#b6c2ac; }
.landing-event h3 { margin:.375rem 0; font-size:clamp(.8125rem,1.1cqw,1rem); line-height:1.25; font-weight:600; }
.landing-event h3 a:hover { text-decoration:underline; }
.landing-event p { margin:0; font-size:clamp(.75rem,.9cqw,.875rem); line-height:1.4; color:#d4ddcd; }
.landing-publication { margin:0; color:#b6c2ac; font-size:.6875rem; line-height:1.4; }
.landing-switcher { display:none; }
.landing :focus-visible { outline:2px solid #c9edb9; outline-offset:3px; }

/* Collapse the sidebar before it consumes the usable canvas. */
@media (max-width:1100px),(max-height:650px) {
 .company-frame:has(.landing) { grid-template-columns:minmax(0,1fr); }
 .company-frame:has(.landing) .company-menu { display:block; background:none; color:#e8efde; border:1px solid #4b5345; border-radius:20px; padding:.5rem .75rem; min-height:44px; font-size:.8125rem; }
 .company-frame:has(.landing) .company-sidebar { display:none; }
 .company-frame:has(.landing) .company-sidebar.is-open { display:flex; position:fixed; z-index:20; top:clamp(3.5rem,7.5dvh,4.75rem); bottom:0; left:0; width:min(20rem,100%); background:#171c14; box-shadow:20px 0 60px #000b; }
 .company-frame:has(.landing) .company-header { padding:0 1rem; gap:.75rem; }
}
@container (max-width:1100px) or (max-height:610px) {
 .landing { grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); }
 .landing-intro h1 { font-size:clamp(2rem,min(4.6cqw,10cqh),3.75rem); }
 .landing-content { grid-template-rows:auto minmax(0,1fr) auto; gap:.75rem; }
 .landing-switcher { display:grid; grid-template-columns:1fr 1fr; gap:.25rem; padding:.25rem; background:#1a2017; border:1px solid #3c4735; border-radius:.75rem; }
 .landing-switcher button { min-height:44px; border:0; border-radius:.5rem; padding:.5rem .625rem; display:flex; align-items:center; justify-content:space-between; gap:.5rem; font-size:.8125rem; line-height:1.25; text-align:left; background:transparent; color:#bfcbb5; }
 .landing-switcher button[aria-selected=true] { background:#d9e8c7; color:#192212; }
 .landing-switcher button span { font-size:.625rem; opacity:.7; }
 .landing-panel { grid-template-rows:minmax(0,1fr); overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#647058 transparent; padding:3px; margin:-3px; }
 .landing-panel>.landing-section-title { display:none; }
 .landing[data-view=projects] .landing-progress,.landing[data-view=progress] .landing-projects { display:none; }
 .landing-project-grid { grid-template-columns:1fr; grid-template-rows:repeat(3,minmax(min-content,1fr)); }
 .landing-project { display:grid; grid-template-columns:minmax(4rem,32%) minmax(0,1fr); align-items:center; gap:.75rem; padding:.75rem; }
 .landing-project-image { width:100%; height:clamp(3rem,12cqh,7rem); min-height:0; max-height:100%; aspect-ratio:auto; }
 .landing-project h3 { font-size:clamp(1rem,2.2cqw,1.5rem); }
 .landing-project p { font-size:.8125rem; }
 .landing-event-grid { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:repeat(3,minmax(min-content,1fr)); }
 .landing-event { display:flex; flex-direction:column; justify-content:center; }
 .landing-event h3 { font-size:.9375rem; }
 .landing-event p { font-size:.8125rem; }
}
@container (max-width:600px) and (min-height:480px) {
 .landing { grid-template-columns:1fr; grid-template-rows:auto minmax(0,1fr); padding:.875rem; gap:1rem; }
 .landing-intro { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.625rem .75rem; padding:.25rem; overflow:visible; }
 .landing-kicker,.landing-intro h1,.landing-description { grid-column:1; }
 .landing-kicker { font-size:.625rem; letter-spacing:.08em; }
 .landing-intro h1 { font-size:clamp(1.75rem,min(7.8cqw,6.3cqh),2.75rem); max-width:20ch; }
 .landing-description { font-size:.8125rem; line-height:1.4; }
 .landing-actions { grid-column:2; grid-row:1/4; flex-direction:column; justify-content:center; gap:.375rem; }
 .landing-compass { padding:.125rem; }
 .landing-compass img { width:clamp(4rem,18cqw,6rem); }
 .landing-compass span,.landing-about { font-size:.6875rem; }
 .landing-about { justify-content:center; }
 .landing-content { gap:.625rem; }
 .landing-project-grid { gap:.5rem; }
 .landing-project { grid-template-columns:minmax(4rem,25%) minmax(0,1fr); padding:.5rem .625rem; gap:.75rem; }
 .landing-project h3 { font-size:clamp(1rem,4.3cqw,1.25rem); }
 .landing-project p { margin-top:.25rem; }
 .landing-project small { margin-top:.25rem; font-size:.625rem; }
 .landing-event { padding:.75rem; }
}
/* Short landscape / zoom: wide cards use the width instead of demanding height. */
@container (max-height:430px) {
 .landing { padding:.625rem .875rem; gap:.875rem; grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr); }
 .landing-intro { padding:0; gap:.375rem; }
 .landing-kicker { font-size:.625rem; letter-spacing:.08em; }
 .landing-intro h1 { font-size:clamp(1.375rem,5.8cqh,2.25rem); }
 .landing-description { font-size:.75rem; line-height:1.4; }
 .landing-actions { gap:.25rem .75rem; }
 .landing-compass { flex-direction:row; gap:.375rem; padding:.125rem; }
 .landing-compass img { width:3rem; }
 .landing-compass span,.landing-about { font-size:.6875rem; }
 .landing-content { gap:.5rem; }
 .landing-switcher { padding:.125rem; }
 .landing-switcher button { min-height:40px; }
 .landing-project-grid { grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:minmax(min-content,1fr); gap:.375rem; }
 .landing-project { display:flex; padding:.5rem; gap:.5rem; align-items:stretch; }
 .landing-project-image { flex:1 1 0; height:0; min-height:1.5rem; width:100%; aspect-ratio:auto; }
 .landing-project h3 { font-size:.875rem; }
 .landing-project p { font-size:.75rem; line-height:1.3; }
 .landing-project small { font-size:.625rem; line-height:1.25; }
 .landing-event-grid { grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:repeat(2,minmax(min-content,1fr)); gap:.375rem; }
 .landing-event { padding:.5rem; }
 .landing-event h3 { font-size:.8125rem; margin:.25rem 0; }
 .landing-event p { font-size:.75rem; line-height:1.3; }
 .landing-event small { font-size:.625rem; }
 .landing-publication { font-size:.625rem; }
}
@container (max-width:380px) and (min-height:480px) {
 .landing { padding:.75rem; gap:.75rem; }
 .landing-intro { grid-template-columns:1fr; gap:.5rem; }
 .landing-intro h1 { max-width:22ch; font-size:1.75rem; }
 .landing-description { max-width:100%; }
 .landing-actions { grid-column:1; grid-row:auto; flex-direction:row; justify-content:space-between; gap:.5rem; }
 .landing-compass { flex-direction:row; gap:.375rem; }
 .landing-compass img { width:2.75rem; }
 .landing-event { padding:.625rem; }
 .landing-event h3 { font-size:.8125rem; }
 .landing-event p { font-size:.75rem; }
 .landing-project { grid-template-columns:3.75rem minmax(0,1fr); gap:.5rem; }
 .landing-project h3 { font-size:1rem; }
 .landing-project p { font-size:.75rem; }
}
@media (prefers-reduced-motion:reduce) { .landing * { scroll-behavior:auto; } }
.company-account-menu { display:none; position:relative; margin-left:auto; font-size:.8125rem; }
.company-account-menu summary { display:flex; align-items:center; justify-content:center; min-height:44px; padding:.5rem .75rem; border:1px solid #4b5345; border-radius:24px; cursor:pointer; list-style:none; }
.company-account-menu summary::-webkit-details-marker { display:none; }
.company-account-menu summary::after { content:'⌄'; margin-left:.375rem; }
.company-account-menu>div { position:absolute; z-index:40; right:0; top:calc(100% + .5rem); width:max-content; max-width:calc(100vw - 2rem); padding:.5rem; border:1px solid #4b5345; border-radius:.75rem; background:#171c14; box-shadow:0 12px 36px #0008; }
.company-account-menu a { display:flex; min-height:44px; align-items:center; padding:.5rem .75rem; border-radius:.375rem; }
.company-account-menu a:hover { background:#292f24; }
.company-account-menu summary:focus-visible { outline:2px solid #c9edb9; outline-offset:3px; }
@media(max-width:760px) {
 .company-frame:has(.landing) .company-account-links { display:none; }
 .company-frame:has(.landing) .company-account-menu { display:block; }
 .company-header { min-width:0; }
 .company-wordmark { flex-shrink:0; }
 .company-menu { min-height:44px; }
}
.landing-pagination { display:none; }
/* Small phones and short windows retain every item without compressing text. */
@container (max-width:700px) and (max-height:560px) {
 .landing-panel { grid-template-rows:minmax(0,1fr) auto; gap:.375rem; }
 .landing-pagination { display:flex; align-items:center; justify-content:space-between; gap:.5rem; font-size:.6875rem; color:#c5cfbd; }
 .landing-pagination button { width:44px; min-height:40px; border:1px solid #46533c; border-radius:.5rem; background:#1a2017; color:#e2edda; }
 .landing-project-grid { grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(min-content,1fr); }
 .landing-project { display:grid; grid-template-columns:minmax(3rem,26%) minmax(0,1fr); gap:.625rem; align-items:center; }
 .landing-project-image { width:100%; height:100%; min-height:0; aspect-ratio:1; }
 .landing-project h3 { font-size:1rem; }
 .landing-event-grid { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:minmax(min-content,1fr); }
 .landing-project-grid>[data-page],.landing-event-grid>[data-page] { display:none; }
 .landing[data-project-page="0"] .landing-project[data-page="0"],.landing[data-project-page="1"] .landing-project[data-page="1"],.landing[data-project-page="2"] .landing-project[data-page="2"] { display:grid; }
 .landing[data-progress-page="0"] .landing-event[data-page="0"],.landing[data-progress-page="1"] .landing-event[data-page="1"],.landing[data-progress-page="2"] .landing-event[data-page="2"] { display:flex; }
}

/* Respect mobile browser chrome and device safe areas without a second page scroller. */
html:has(.landing),body:has(.landing),#root:has(.landing) { height:100dvh; min-height:0; min-width:0; overflow:hidden; }
.company-frame:has(.landing) { height:100%; padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
/* At very high zoom, offer an inner reading surface instead of clipping text.
   The document remains locked to the viewport and browser zoom is unrestricted. */
@media (max-width:400px) and (max-height:450px) {
 .company-content:has(>.landing) { overflow:auto; }
 .landing { height:auto; min-height:40rem; grid-template-columns:minmax(0,1fr); grid-template-rows:auto minmax(20rem,1fr); }
 .landing-intro { overflow:visible; padding:.5rem; }
 .landing-intro h1 { max-width:22ch; font-size:1.75rem; }
 .landing-description { font-size:.875rem; }
 .landing-actions { justify-content:space-between; }
 .landing-content { min-height:20rem; }
}

/* Printing restores natural document flow and includes every card. */
@media print {
 html:has(.landing),body:has(.landing),#root:has(.landing),.company-frame:has(.landing),.company-content:has(>.landing),.landing,.landing-content,.landing-panel { display:block!important; height:auto!important; min-height:0!important; overflow:visible!important; }
 .company-content:has(>.landing) { container-type:normal; }
 .landing-intro { overflow:visible; }
 .landing-switcher,.landing-pagination { display:none!important; }
 .landing-project-grid,.landing-event-grid { display:block; }
 .landing-project-grid>[data-page],.landing-event-grid>[data-page] { display:block!important; break-inside:avoid; margin-bottom:1rem; }
 .landing-project-image { width:10rem; height:auto; }
}

/* The Compass picture opens the app; the quieter text link explains it. */
.landing-project-image-link { display:flex; flex:1 1 0; min-height:0; width:100%; position:relative; border-radius:.5rem; }
.landing-project-image-link .landing-project-image { height:100%; }
.landing-project-about { display:inline-flex; align-items:center; min-height:32px; margin-top:.25rem; font-size:.75rem; line-height:1.35; color:#c3cbbd; text-decoration:underline; text-underline-offset:3px; }
.landing-project-about:hover { color:#f1f6e9; }
@container (max-width:1100px) or (max-height:610px) {
 .landing-project-image-link { height:clamp(3rem,12cqh,7rem); }
}
@container (max-height:430px) {
 .landing-project-image-link { height:0; min-height:1.5rem; }
}
@container (max-width:700px) and (max-height:560px) {
 .landing-project-image-link { height:100%; min-height:0; }
}
@media print { .landing-project-image-link { display:block; height:auto; } .landing-project-image-link .landing-project-image { height:auto; } }
