:root {
  color-scheme: light;
  --paper: #e6e9df;
  --ink: #191d17;
  --olive: #4f5944;
  font: 16px/1.4 "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box }
body { margin: 0; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left) }
a { color: inherit; text-decoration: none }
button { font: inherit; color: inherit }
a:focus-visible, button:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px }
[hidden] { display: none !important }
.shell { width: min(576px, calc(100% - 40px)); margin: auto }
.mast { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; gap: 12px }
.location { margin: 0; font-size: .78rem; color: var(--olive) }
.langs { display: flex; color: var(--olive); font-size: .78rem }
.langs a { display: grid; place-items: center; width: 44px; min-height: 44px }
.langs [aria-current] { font-weight: 700; text-decoration: underline; text-underline-offset: 4px }
.brand { text-align: center; padding: clamp(26px, 6vw, 48px) 0 30px }
.logo { display: block; width: min(84%, 410px); height: auto; margin: auto }
.small { margin: 14px 0 0; color: var(--olive); font-size: clamp(.7rem, 2.7vw, .82rem); font-weight: 650; letter-spacing: .14em; text-transform: uppercase }
.identity { position: relative; overflow: hidden; isolation: isolate; min-height: 134px; background: var(--olive); color: var(--paper); padding: 25px 22px 22px; display: grid; align-content: center }
.identity h1 { margin: 0; font-size: clamp(2.05rem, 9vw, 3.6rem); font-weight: 500; line-height: 1.02; letter-spacing: -.058em }
.personal h1 { white-space: nowrap }
.role { font-size: clamp(.9rem, 3.8vw, 1.04rem); margin: 9px 0 0 }
.light { position: absolute; width: 40%; height: auto; right: -1%; bottom: -4%; z-index: -1; pointer-events: none }
.light-rest { opacity: .23 }
.light-moving { visibility: hidden }
.is-playing .light-moving { visibility: visible }
.is-playing .light-rest { opacity: .07 }
@media (prefers-reduced-motion: reduce) {
  .is-playing .light-moving { visibility: hidden }
  .is-playing .light-rest { opacity: .23 }
}
.links, .actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; align-items: stretch }
.links { margin: 14px 0 }
.links a, .actions button { min-height: 58px; padding: 6px 2px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; color: var(--olive); font-size: .81rem; line-height: 1.18 }
.links a:hover span, .actions button:hover span { text-decoration: underline; text-underline-offset: 3px }
.icon { flex: none }
.primary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 15px; background: var(--olive); color: var(--paper); font-size: .95rem; font-weight: 600 }
.primary:hover span { text-decoration: underline; text-underline-offset: 4px }
.actions { max-width: 360px; margin: 7px auto 0 }
.actions button { appearance: none; cursor: pointer; border: 0; background: transparent }
.actions .icon { width: 20px; height: 20px }
.status { margin: 6px 0; font-size: .82rem; color: var(--olive); text-align: center; overflow-wrap: anywhere }
.status:empty { margin: 0 }
footer { padding: 10px 0 14px; text-align: center; font-size: .72rem; color: var(--olive) }
dialog { width: min(360px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 20px; background: var(--paper); color: var(--ink); border: 1px solid var(--olive) }
dialog::backdrop { background: #191d1780 }
dialog h2 { font-size: 1.15rem; margin: 0 }
dialog img { width: min(100%, 250px); height: auto; display: block; margin: 14px auto }
dialog p { overflow-wrap: anywhere }
dialog button { cursor: pointer; min-height: 44px; padding: 6px 12px; border: 1px solid var(--olive); background: transparent }
.skip { position: absolute; top: 0; left: 0; transform: translateY(-110%); background: var(--paper); padding: 12px; z-index: 2 }
.skip:focus { transform: none }
@media (min-width: 800px) {
  .mast { padding-top: 21px }
  .brand { padding: 54px 0 35px }
  .identity { min-height: 161px; padding-inline: 31px }
  .links { margin: 19px 0 }
}

/* Keep the footer in flow. Use the current visible viewport on mobile. */
body { min-height: 100vh; min-height: 100dvh }
.shell {
  min-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  min-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}
main { flex: 1; display: flex; flex-direction: column }
.brand { padding-block: clamp(20px, calc(14svh - 58px), 72px) clamp(22px, calc(8svh - 24px), 52px) }
.identity {
  min-height: clamp(130px, 18svh, 174px);
  padding-block: clamp(20px, 3.5svh, 36px);
}
.links {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  row-gap: clamp(4px, calc(5svh - 26px), 20px);
  margin-block: clamp(12px, calc(5svh - 17px), 28px);
}
.links a { grid-column: span 2 }
.corporate .links a:nth-child(4) { grid-column: 2 / span 2 }
.corporate .links a:nth-child(5) { grid-column: 4 / span 2 }
.primary {
  min-height: clamp(52px, 7svh, 66px);
  padding-inline: clamp(16px, 5vw, 24px);
}
.primary:active { background: var(--ink) }
.actions {
  width: 100%;
  margin-block: clamp(9px, calc(5svh - 19px), 29px) clamp(0px, calc(4svh - 23px), 14px);
}
footer { margin-top: auto; padding-block: 13px clamp(14px, 2.5svh, 24px) }

@media (min-width: 800px) {
  .shell { min-height: min(100dvh, 850px); margin-block: max(0px, calc((100dvh - 850px) / 2)) }
  .brand { padding-block: clamp(32px, 6svh, 60px) clamp(24px, 4.5svh, 45px) }
}
