/* Size the opening film by its native frame, including on short desktop windows. */
#home.intro-film { width:100%; height:auto; max-height:none; aspect-ratio:16/9; }
#home.intro-film video { position:static; display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:contain; }

.manifesto { --brass:#d7c398; background:#101613; color:#f6f4ec; }
.manifesto-scene { position:relative; isolation:isolate; overflow:hidden; display:flex; align-items:center; min-height:clamp(450px,37vw,700px); }
.manifesto-photo { position:absolute; z-index:-2; inset:0 0 0 auto; width:78%; height:100%; object-fit:cover; object-position:70% 47%; filter:saturate(.76) brightness(.93); }
.manifesto-scene::before { content:""; position:absolute; z-index:-1; inset:0; background:linear-gradient(90deg,#101613 4%,#101613fa 20%,#101613c9 37%,#10161360 53%,transparent 73%),linear-gradient(0deg,#101613a6,transparent 38%); }
.manifesto-text { position:relative; width:min(56%,780px); padding:clamp(42px,4.5vw,84px) 0 clamp(40px,4.2vw,72px) var(--edge); }
.manifesto .eyebrow { color:var(--brass); letter-spacing:.21em; }
.manifesto .eyebrow i { background:var(--brass); width:32px; }
#manifesto-heading { margin:clamp(20px,1.7vw,30px) 0; font:600 clamp(68px,7.7vw,138px)/.77 var(--serif); letter-spacing:-.052em; }
#manifesto-heading span, #manifesto-heading em { display:block; }
#manifesto-heading em { margin-top:.07em; font-family:Georgia,"Times New Roman",serif; font-size:.89em; font-style:italic; font-weight:400; letter-spacing:-.079em; color:var(--brass); }
.manifesto-lead { max-width:38ch; color:#eeeee6; font:500 clamp(14px,1.08vw,19px)/1.9 var(--serif); text-wrap:pretty; }
.manifesto-link { color:var(--brass); display:inline-flex; align-items:center; justify-content:space-between; gap:clamp(20px,2.2vw,40px); padding:6px 0; margin-top:clamp(15px,1.4vw,26px); min-height:42px; border-bottom:1px solid #cebc92a8; font:600 14px/1.5 var(--serif); letter-spacing:.06em; }
.manifesto-link:hover { color:#fff7df; border-color:currentColor; }
.manifesto-arrow { display:inline-block; font:20px Georgia,serif; transition:transform .28s ease; }
.manifesto-link:hover .manifesto-arrow,.manifesto-link:focus-visible .manifesto-arrow { transform:translate(2px,-2px); }
.manifesto-beliefs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; margin:0; padding:clamp(22px,2.3vw,42px) var(--edge); border-top:1px solid #89927c59; background:#141d17; }
.manifesto-beliefs > div { min-width:0; padding-right:clamp(15px,3vw,55px); }
.manifesto-beliefs > div + div { border-left:1px solid #b6b39450; padding-left:clamp(20px,3.4vw,64px); }
.manifesto-beliefs dt { margin:0 0 8px; color:var(--brass); font:500 clamp(23px,2.45vw,47px)/1.02 var(--roman); letter-spacing:.015em; }
.manifesto-beliefs dd { margin:0; font:500 clamp(13px,1vw,17px)/1.65 var(--serif); color:#e6e8df; text-wrap:pretty; }
html { scrollbar-gutter:stable; }

/* The native dialog keeps focus inside the reading view and restores it on close. */
#viewer[data-mode="brand"] {
  --reading-width: 760px;
  --reading-gutter: clamp(24px,7vw,112px);
  position:fixed; inset:0; width:100%; height:100%; height:100dvh;
  max-width:none; max-height:none; margin:0; padding:0;
  color:#f5f2e8; background:transparent; border:0; box-shadow:none;
  overflow:auto; overscroll-behavior:contain; scrollbar-width:thin;
  scrollbar-color:#817b6a transparent; opacity:1;
}
#viewer[data-mode="brand"]::backdrop {
  background-color:rgb(4 7 6 / 86%);
  -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px);
}
#viewer[data-mode="brand"] .dialog-bar {
  width:min(calc(100% - 2 * var(--reading-gutter)),var(--reading-width)); margin-inline:auto;
  padding:clamp(50px,9vh,118px) 0 0; color:#dfcba2; border:0; background:transparent;
}
#viewer[data-mode="brand"] #dialog-kicker { font:600 10px/1.4 var(--mono); letter-spacing:.22em; }
#viewer[data-mode="brand"] #close-dialog {
  position:fixed; z-index:2; top:max(17px,env(safe-area-inset-top)); right:max(18px,env(safe-area-inset-right));
  width:48px; height:48px; margin:0; color:#f1e8d4; background:transparent; border:0;
  font:300 35px/1 var(--serif); text-shadow:0 0 8px #000;
}
#viewer[data-mode="brand"] #close-dialog:hover { color:white; background:rgb(255 255 255 / 8%); }
#viewer[data-mode="brand"] #close-dialog:focus-visible { outline:1px solid #ddc99d; outline-offset:-2px; }
#viewer[data-mode="brand"] .dialog-content {
  max-width:var(--reading-width); width:calc(100% - 2 * var(--reading-gutter)); margin:0 auto;
  padding:clamp(17px,2.2vh,30px) 0 clamp(50px,10vh,130px);
}
#viewer[data-mode="brand"] .dialog-content h3 {
  font:500 clamp(37px,5.35vw,82px)/1.05 var(--roman); letter-spacing:-.05em; color:#f5eddd; margin:0;
}
#viewer[data-mode="brand"] .dialog-content > p {
  width:min(100%,61ch); margin:clamp(17px,2.5vh,30px) 0 clamp(32px,5vh,65px);
  font:500 clamp(16px,1.4vw,22px)/1.85 var(--serif); color:#f5f1e9;
}
#viewer[data-mode="brand"] .manifesto-chapter {
  display:grid; grid-template-columns:clamp(128px,12vw,185px) minmax(0,1fr);
  align-items:baseline; gap:clamp(16px,3vw,48px); margin-top:clamp(23px,3.6vh,45px);
}
#viewer[data-mode="brand"] .manifesto-chapter h4 {
  font:500 clamp(22px,2.25vw,35px)/1.2 var(--roman); letter-spacing:.03em; margin:0; color:#dec79b;
}
#viewer[data-mode="brand"] .manifesto-chapter p {
  color:#e8e8df; font-size:clamp(14px,1.07vw,17px); margin:0; line-height:1.9; text-wrap:pretty;
}
@keyframes manifesto-shade-in { from { opacity:0; } to { opacity:1; } }
@keyframes manifesto-read-in { from { opacity:0; transform:translateY(9px); } to { opacity:1; transform:translateY(0); } }
@media (prefers-reduced-motion:no-preference) {
  #viewer[open][data-mode="brand"]::backdrop { animation:manifesto-shade-in 1.5s ease-out both; transition:background-color .6s ease; }
  #viewer[open][data-mode="brand"] { transition:opacity .6s ease; }
  #viewer[open][data-mode="brand"].is-closing { opacity:0; }
  #viewer[open][data-mode="brand"].is-closing::backdrop { background-color:transparent; -webkit-backdrop-filter:none; backdrop-filter:none; }
  #viewer[open][data-mode="brand"] :is(#dialog-kicker,.dialog-content > h3,.dialog-content > p,.manifesto-chapter) {
    animation:manifesto-read-in 1.65s cubic-bezier(.2,.65,.22,1) var(--entrance-delay) both;
  }
  #viewer #dialog-kicker { --entrance-delay:.32s; }
  #viewer .dialog-content > h3 { --entrance-delay:.75s; }
  #viewer .dialog-content > p { --entrance-delay:1.28s; }
  #viewer .manifesto-chapter:nth-of-type(1) { --entrance-delay:1.87s; }
  #viewer .manifesto-chapter:nth-of-type(2) { --entrance-delay:2.47s; }
  #viewer .manifesto-chapter:nth-of-type(3) { --entrance-delay:3.07s; }
}
@media (max-width:620px) {
  #viewer[data-mode="brand"] .dialog-bar { padding-top:58px; }
  #viewer[data-mode="brand"] .manifesto-chapter { grid-template-columns:1fr; gap:6px; margin-top:26px; }
  #viewer[data-mode="brand"] .dialog-content > p { margin-bottom:30px; }
}
@media (prefers-reduced-motion:no-preference) {
  .manifesto.can-reveal:not(.is-visible) .manifesto-photo { transform:scale(1.025); }
  .manifesto.can-reveal.is-visible .manifesto-photo { transform:scale(1); transition:transform 2.2s cubic-bezier(.2,.65,.3,1); }
}
@media (max-width:700px) {
  .manifesto-scene { min-height:0; display:block; }
  .manifesto-photo { inset:0 0 auto; width:100%; height:clamp(190px,62vw,345px); object-position:72% 47%; }
  .manifesto-scene::before { height:calc(clamp(190px,62vw,345px) + 1px); background:linear-gradient(0deg,#101613 1%,#101613ab 16%,transparent 52%); }
  .manifesto-text { width:100%; padding:clamp(155px,50vw,278px) var(--edge) 30px; }
  #manifesto-heading { margin:17px 0; font-size:clamp(62px,13vw,90px); line-height:.9; }
  #manifesto-heading span, #manifesto-heading em { display:inline; }
  .manifesto-lead { max-width:44ch; font-size:15px; }
  .manifesto-beliefs { display:block; padding:6px var(--edge) 12px; }
  .manifesto-beliefs > div,.manifesto-beliefs > div + div { display:grid; grid-template-columns:minmax(80px, .65fr) 1.5fr; align-items:baseline; column-gap:14px; border-left:0; padding:16px 0; }
  .manifesto-beliefs > div + div { border-top:1px solid #b6b39445; }
  .manifesto-beliefs dt { font-size:23px; margin:0; }
  .manifesto-beliefs dd { font-size:13px; }
}
