@font-face {
  font-family: Metro Light;
  src: url('/fonts/metro-light.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: Source Sans;
  src: url('/fonts/source-sans-3.woff2') format('woff2');
  font-weight: 200 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  background: #0a1013;
  color: #fff;
  font: 400 100%/1.3 'Source Sans', 'Segoe UI', sans-serif;
  --edge: clamp(.4rem, .8vw, .95rem);
  --gap: clamp(.32rem, .62vw, .7rem);
  --pad: clamp(1.25rem, 2.65vw, 3rem);
  --display: 'Segoe UI Light', 'Metro Light', 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
body, h1, h2, p { margin: 0; }
.mosaic {
  padding: var(--edge);
  display: grid;
  gap: var(--gap);
  grid-template-columns: minmax(0,.82fr) repeat(2,minmax(0,1fr));
  grid-template-rows: repeat(2,minmax(17rem,1fr));
  grid-template-areas: 'studio governance enso' 'studio loss data';
  min-height: 100vh;
  min-height: 100svh;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: #fff;
  padding: var(--pad);
  isolation: isolate;
}
.studio { grid-area: studio; justify-content: flex-end; background: #005444; }
.governance { grid-area: governance; background: var(--governance); }
.enso { grid-area: enso; background: var(--enso); color: var(--enso-ink); }
.data { grid-area: data; background: var(--data); }
.loss { grid-area: loss; background: var(--outlook); }
h1,h2,.alternate span,.coverage strong {
  font: 300 1rem/1.1 var(--display);
  letter-spacing: -.042em;
}
h1 { font-size: clamp(3.15rem, 5.7vw, 6.6rem); }
h2 { font-size: clamp(2.1rem, 3.65vw, 4.25rem); text-wrap: balance; }
.studio-signature { display: block; width: min(100%, 27rem); height: auto; color: #faf8f2; }
.studio-label h1 { min-width: 0; }
.studio-label p,.label p,.sub-link {
  font-size: clamp(1.05rem, 1.6vw, 1.65rem);
  line-height: 1.3;
  margin-top: .32em;
}
.tool { gap: clamp(.9rem, 1.8vw, 1.8rem); }
.label { margin-top: auto; }
.tool-link { color: inherit; text-decoration: none; }
.tool-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.tool-link:focus-visible { outline: none; }
.tool-link:focus-visible::after { outline: .2rem solid currentColor; outline-offset: -.4rem; }
@media (hover:hover) {
  .tool:has(.tool-link:hover) { box-shadow: inset 0 0 0 2px rgba(255,255,255,.68); }
}
.sub-link { position: relative; z-index: 2; display: inline-block; color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; padding-block: .22rem; }
.motion {
  position: absolute; top: var(--pad); right: var(--pad); width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center; cursor: pointer; background: none;
  color: #fff; border: 1px solid rgba(255,255,255,.45); border-radius: 0;
}
.motion:hover { border-color: #fff; }
.motion[hidden] { display: none; }
.motion-icon { width: .71rem; height: .88rem; border-inline: .19rem solid currentColor; }
.paused .motion-icon { border: 0; width: 0; height: 0; border-block: .44rem solid transparent; border-left: .7rem solid currentColor; }
.motion:focus-visible,.sub-link:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.window { display: grid; overflow: hidden; flex: 1 0 auto; }
.face {
  grid-area: 1/1; display: flex; flex-direction: column; justify-content: center;
  transition: transform .58s cubic-bezier(.23,.82,.29,1);
  min-width: 0;
}
.face.primary { align-items: flex-start; }
.face.alternate { transform: translateY(100%); }
.reveal .face.primary { transform: translateY(-100%); }
.reveal .face.alternate { transform: translateY(0); }
.alternate span { font-size: clamp(1.6rem, 2.75vw, 3.1rem); line-height: 1.13; max-width: 24ch; }
.alternate small,.coverage { font-size: clamp(1rem,1.4vw,1.5rem); }
.alternate small { margin-top: .45rem; max-width: 32ch; }
.primary.governance-face { flex-direction: row; align-items: center; justify-content: space-between; gap: .65rem; }
.coverage { text-align: right; }
.coverage strong { display: block; font-size: clamp(3.2rem,5.8vw,6.2rem); }
.glyph { display: block; position: relative; color: inherit; font-size: clamp(2.5rem, 4.45vw, 5rem); }
.civic { width: 1.65em; height: 1.13em; border-bottom: .08em solid currentColor; flex: none; }
.civic::before { content:''; position:absolute; top:0; width:100%; height:.37em; background:currentColor; clip-path:polygon(50% 0,100% 82%,100% 100%,0 100%,0 82%); }
.civic i { position:absolute; inset: .46em .16em .15em; background:linear-gradient(to right,currentColor 16%,transparent 16% 42%,currentColor 42% 58%,transparent 58% 84%,currentColor 84%); }
.bars { display: flex; gap: .14em; align-items: end; height: 1.12em; }
.bars i { width: .26em; height: 48%; background: currentColor; }
.bars i:nth-child(2) { height: 82%; }
.bars i:nth-child(3) { height: 62%; }
.bars i:nth-child(4) { height: 100%; }
.waves { display: flex; flex-direction: column; width: 2.17em; gap: .09em; }
.waves i { height: .22em; width: 100%; background: currentColor; clip-path:polygon(0 44%, 7% 17%, 15% 4%, 22% 5%, 30% 23%, 41% 52%, 49% 60%, 56% 50%, 66% 17%, 74% 4%, 81% 5%, 89% 23%, 100% 49%, 100% 88%, 89% 62%, 81% 44%, 74% 43%, 66% 56%, 56% 89%, 49% 99%, 41% 91%, 30% 62%, 22% 44%, 15% 43%, 7% 56%, 0 83%); }
/* A wide desktop can show all destinations in a single row below the studio strip. */
@media (min-width: 70rem) and (min-aspect-ratio: 2/1) {
  .mosaic { grid-template-columns: repeat(4,minmax(0,1fr)); grid-template-areas: 'studio studio studio studio' 'governance enso loss data'; grid-template-rows: minmax(9rem,.37fr) minmax(17rem,1fr); }
  .studio-label { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1.8rem; padding-right: 4rem; }
  .studio h1 { width: min(100%, 23rem); }
}
@media (max-width: 59rem), (max-aspect-ratio: 4/5) {
  .mosaic { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-areas: 'studio studio' 'governance enso' 'loss data'; grid-template-rows: minmax(8rem, .5fr) repeat(2,minmax(15rem,1fr)); }
  h2 { font-size: clamp(2rem,4.2vw,2.8rem); }
}
@media (max-width: 38rem) {
  :root { --pad: clamp(1rem, 4.3vw, 1.55rem); }
  .mosaic {
    grid-template-areas: 'studio studio' 'governance enso' 'loss data';
    grid-template-rows: minmax(7.8rem,.62fr) minmax(12rem,1fr) minmax(15.6rem,1.16fr);
  }
  h1 { font-size: 2.75rem; }
  h2 { font-size: clamp(1.48rem,5.5vw,2.15rem); }
  .governance-face .coverage { display: none; }
  .studio-label { padding-right: 3.2rem; }
  .studio-signature { width: min(100%, 16rem); }
  .studio-label p,.sub-link,.label p { font-size: 1rem; }
  .alternate span { font-size: clamp(1.25rem,4.8vw,1.75rem); }
  .alternate small { font-size: 1rem; }
  .tool { gap: .8rem; }
}
@media (max-width: 21rem) {
  .mosaic { grid-template-columns: minmax(0,1fr); grid-template-areas: 'studio' 'governance' 'enso' 'loss' 'data'; grid-template-rows: minmax(8rem,auto) repeat(4,minmax(13rem,auto)); }
}
@media (max-height: 34rem) and (min-width: 38.01rem) and (orientation:landscape) {
  :root { --pad: 1rem; }
  .mosaic { grid-template-columns: repeat(4,minmax(0,1fr)); grid-template-areas: 'studio studio studio studio' 'governance enso loss data'; grid-template-rows: minmax(4.4rem,auto) minmax(13rem,1fr); }
  .studio-label { display:flex; flex-wrap:wrap; align-items:center; gap:.2rem 1rem; padding-right:3rem; }
  .studio h1 { width: min(100%, 12rem); }
  h1 { font-size:2rem; }
  h2 { font-size:1.55rem; }
  .label p,.sub-link,.studio p,.alternate small,.coverage { font-size: 1rem; }
  .alternate span { font-size: 1.4rem; }
  .coverage strong { font-size: 2.5rem; }
  .glyph { font-size: 2.1rem; }
}
@media (prefers-reduced-motion: reduce) { .face { transition: none; } }

.register { width: 1.56em; display: grid; gap: .095em; }
.register i { height: .26em; border: .045em solid currentColor; border-left-width: .22em; }
.lock-mark { display: inline-block; position: relative; width: .65em; height: .48em; background: currentColor; border-radius: .07em; margin-inline-end: .13em; }
.lock-mark::before { content: ''; position: absolute; width:.34em; height:.36em; left:.09em; top:-.35em; border:.09em solid currentColor; border-bottom:0; border-radius:.2em .2em 0 0; }
@media (min-width: 59.01rem) and (min-aspect-ratio: 4/5) and (max-aspect-ratio: 2/1) {
  .coverage strong { font-size: clamp(3rem,4.5vw,5.5rem); }
}
