*,
*::before,
*::after { box-sizing: border-box; }

html, body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:root {
  --brand:        #1C4E6F;

  --field-image:
    radial-gradient(72% 46% at 50% 18%, var(--sky-glow), transparent 64%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 34%, var(--sky-deep) 100%);

  --sky-top:      #78A7DB;
  --sky-mid:      #456C9F;
  --sky-deep:     #2E4C78;
  --sky-glow:     rgba(255, 255, 255, .13);

  --bar:          #F5F5F7;
  --paper:        #FBFBFD;

  --ground-light:
    linear-gradient(180deg, #E2EDFA 0%, #C3D9F1 45%, #9CBCE2 100%);

  --ground-dark:
    radial-gradient(90% 65% at 72% 18%, #35608F 0%, transparent 62%),
    linear-gradient(180deg, #2A4D79 0%, #1D3A61 48%, #14294A 100%);

  --mesh-a:       #EAF4FF;
  --mesh-b:       #A8EBD2;

  --tile:         rgba(255, 255, 255, .12);
  --tile-hover:   rgba(255, 255, 255, .19);
  --sheet:        #FFFFFF;

  --chip:             rgba(255, 255, 255, .13);
  --chip-hover:       rgba(255, 255, 255, .24);
  --chip-line:        rgba(255, 255, 255, .34);

  --tag-1:            #EAF3FC;
  --tag-2:            #CFE2F6;
  --tag-3:            #AECEEE;
  --tag-4:            #8FBAE4;
  --tag-5:            #74A7DA;
  --tag-ink:          #12304F;

  --font:         "Montserrat", "Helvetica Neue", Futura, "Segoe UI", Arial, sans-serif;

  --maxw: 1140px;
  --bar-h: clamp(44px, 5.4vh, 52px);
  --ease: cubic-bezier(.22, .61, .36, 1);

  --accent:       #E3EEFA;

  --ink:          #FFFFFF;
  --text:         rgba(255, 255, 255, .88);
  --text-muted:   rgba(255, 255, 255, .72);
  --hairline:     rgba(255, 255, 255, .2);
  --border:       rgba(255, 255, 255, .32);
  --drop:         rgba(0, 0, 0, .34);
}

.site-header,
.site-footer,
.chapter-light,
body.light-field {
  --accent:       #1C4E6F;

  --ink:          #0C2537;
  --text:         #24404F;
  --text-muted:   #52697B;
  --hairline:     rgba(12, 37, 55, .14);
  --border:       rgba(12, 37, 55, .26);
  --drop:         rgba(12, 37, 55, .2);

  --chip:             rgba(255, 255, 255, .55);
  --chip-hover:       rgba(255, 255, 255, .85);
  --chip-line:        rgba(28, 78, 111, .22);

  --tag-1:            #17425E;
  --tag-2:            #1C4E6F;
  --tag-3:            #235C84;
  --tag-4:            #2A6A99;
  --tag-5:            #3178AE;
  --tag-ink:          #FFFFFF;
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(1rem, .96rem + .2vw, 1.08rem);
  line-height: 1.6;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.sky-field {
  color: var(--ink);
  background-color: var(--sky-mid);
  background-image: var(--field-image);
}

.light-field {
  color: var(--text);
  background-color: var(--paper);
}

.screen-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

body.home {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bar);
}
body.home main { flex: 1 0 auto; }

.hero {
  position: relative;
  display: grid;
  align-content: center;
  min-height: calc(100vh - var(--bar-h));
  min-height: calc(100dvh - var(--bar-h));
  padding-block: clamp(1rem, 4vh, 3rem) clamp(2.4rem, 7vh, 4rem);
}

body.single .hero {
  min-height: calc(100vh - 2 * var(--bar-h));
  min-height: calc(100dvh - 2 * var(--bar-h));
  padding-block: clamp(1rem, 4vh, 3rem);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  min-height: var(--bar-h);
}

.site-header,
.site-footer {
  color: var(--text);
  background-color: var(--bar);
}

body.light-field .site-header { box-shadow: inset 0 -1px 0 var(--hairline); }
body.light-field .site-footer { box-shadow: inset 0 1px 0 var(--hairline); }

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  max-width: none;
  padding-inline: clamp(1rem, 2.4vw, 2rem);
}

.header-home { display: inline-flex; text-decoration: none; }
.logo {
  color: var(--ink);
  aspect-ratio: 626 / 79;
  height: 21px;
  width: auto;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 1.8vw, 1.6rem);
}
.nav a {
  position: relative;
  padding: .3rem 0;
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--text-muted);
  transition: color .2s var(--ease);
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--ink); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .15rem;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--text-muted);
  transition: color .2s var(--ease);
}
.lang-btn:hover { color: var(--ink); }
.lang-btn svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-btn {
  display: none;
  position: relative;
  width: 26px;
  height: 26px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--text-muted);
  transition: color .2s var(--ease);
}
.nav-btn:hover { color: var(--ink); }
.nav-btn span {
  position: absolute;
  left: 5px;
  right: 5px;
  height: 1.4px;
  border-radius: 1px;
  background-color: currentColor;
  transition: transform .3s var(--ease);
}
.nav-btn span:nth-child(1) { top: 10px; }
.nav-btn span:nth-child(2) { top: 15px; }
.nav-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(2.5px) rotate(45deg); }
.nav-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-2.5px) rotate(-45deg); }

@media (max-width: 560px) {
  .nav-btn { display: block; margin-left: auto; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .2rem clamp(1rem, 2.4vw, 2rem) .85rem;
    background-color: var(--bar);
    box-shadow: 0 16px 26px -16px var(--drop);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .24s var(--ease), transform .28s var(--ease), visibility 0s linear .28s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
  .nav a,
  .nav .lang-btn {
    padding: .62rem 0;
    font-size: .7rem;
  }
  .nav a::after { content: none; }
  .nav .lang-btn { gap: .5rem; }
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
}

.wordmark {
  width: 100%;
  max-width: 40rem;
  color: var(--ink);
  animation: rise .8s var(--ease) both;
}
.wordmark svg {
  width: 100%;
  aspect-ratio: 626 / 79;
  height: auto;
}

.tagline {
  margin-top: clamp(.5rem, 1.2vh, .8rem);
  font-size: clamp(.6rem, .56rem + .18vw, .72rem);
  font-weight: 600;
  letter-spacing: .24em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--accent);
  animation: rise .85s var(--ease) .08s both;
}

.intro {
  margin-top: clamp(1.7rem, 4.6vh, 3rem);
  max-width: 44ch;
  font-size: clamp(1.05rem, .98rem + .42vw, 1.38rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--text);
  text-wrap: balance;
  animation: rise .85s var(--ease) .16s both;
}

.topics {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.7rem, 1.6vw, 1.1rem);
  margin-top: clamp(1.7rem, 4.6vh, 3rem);
  width: 100%;
  max-width: 72rem;
}
@media (max-width: 1023px) { .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 40rem; } }
@media (max-width: 559px)  { .topics { grid-template-columns: 1fr; } }

.topics.is-rotating {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 58rem;
}
@media (max-width: 719px) { .topics.is-rotating { grid-template-columns: 1fr; } }
.topics li[hidden] { display: none; }

.topics li {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: .45rem;
  padding: clamp(1rem, 2.6vh, 1.5rem) 1.2rem;
  text-align: center;
  border-radius: 16px;
  background: var(--tile);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: clamp(.82rem, .8rem + .15vw, .92rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--text);
  text-wrap: balance;
  transition: background-color .25s var(--ease);
  animation: rise .8s var(--ease) both;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
}
.topics li strong,
.topics li span {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}
.topics li strong {
  margin-top: .35rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink);
}
.topics li:hover { background: var(--tile-hover); }
.topics li:nth-child(1) { animation-delay: .24s; }
.topics li:nth-child(2) { animation-delay: .32s; }
.topics li:nth-child(3) { animation-delay: .4s; }
.topics li:nth-child(4) { animation-delay: .48s; }
.topics svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(.5rem, 2.4vh, 1.4rem);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: -19px;
  color: var(--text-muted);
  transition: color .2s var(--ease);
  animation: rise .9s var(--ease) .9s both;
}
.scroll-cue:hover { color: var(--ink); }
.scroll-cue svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: nudge 3.2s var(--ease) 1.8s infinite;
}
@media (max-height: 640px) { .scroll-cue { display: none; } }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@keyframes nudge {
  0%, 74%, 100% { transform: none; }
  86%           { transform: translateY(5px); }
}

.chapter {
  position: relative;
  display: grid;
  min-height: calc(100vh - var(--bar-h));
  min-height: calc(100dvh - var(--bar-h));
  padding-block: clamp(2.5rem, 7vh, 5rem);
  color: var(--text);
  background-image: var(--ground);
}

.chapter-light { --ground: var(--ground-light); }
.chapter-dark  { --ground: var(--ground-dark); }

.chapter .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  row-gap: clamp(.7rem, 2.2vh, 1.3rem);
}
.chapter-body {
  display: grid;
  align-content: center;
  justify-items: center;
  margin-top: clamp(.8rem, 3vh, 2rem);
  text-align: center;
}

.chapter-topic .chapter-body {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  row-gap: clamp(1.2rem, 4vh, 2.6rem);
}

.chapter h2 {
  justify-self: center;
  max-width: 22ch;
  text-align: center;
  text-wrap: balance;
  font-size: clamp(1.75rem, 1.15rem + 2.6vw, 3.25rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.02em;
  color: var(--ink);
}

.chapter-lead {
  justify-self: center;
  max-width: 54ch;
  text-align: center;
  font-size: clamp(1rem, .95rem + .38vw, 1.24rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--text);
  text-wrap: pretty;
}

.chapter-topic .chapter-lead {
  justify-self: center;
  max-width: 44ch;
  text-align: center;
  font-size: clamp(1.1rem, .98rem + .6vw, 1.55rem);
  font-weight: 400;
  line-height: 1.34;
  letter-spacing: -.01em;
  color: var(--ink);
  text-wrap: balance;
}

.tag-rail {
  --tag-slots: 3;
  width: min(100%, 52rem);
  overflow: hidden;
}

.chapter-tags {
  --tag-gap: clamp(.4rem, .9vw, .62rem);
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: var(--tag-gap);
}
.chapter-tags li { display: flex; }
.chapter-tags li:nth-child(5n+1) { --tag: var(--tag-1); }
.chapter-tags li:nth-child(5n+2) { --tag: var(--tag-2); }
.chapter-tags li:nth-child(5n+3) { --tag: var(--tag-3); }
.chapter-tags li:nth-child(5n+4) { --tag: var(--tag-4); }
.chapter-tags li:nth-child(5n+5) { --tag: var(--tag-5); }
.chapter-tags li[data-tone="1"] { --tag: var(--tag-1); }
.chapter-tags li[data-tone="2"] { --tag: var(--tag-2); }
.chapter-tags li[data-tone="3"] { --tag: var(--tag-3); }
.chapter-tags li[data-tone="4"] { --tag: var(--tag-4); }
.chapter-tags li[data-tone="5"] { --tag: var(--tag-5); }

.chapter-tags span,
.cta-mail span {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: .1em;
  padding: .36em .9em .42em;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.2;
  white-space: nowrap;
}
.chapter-tags span {
  font-size: clamp(1rem, .88rem + .55vw, 1.45rem);
  background-color: var(--tag);
  color: var(--tag-ink);
}
.chapter-tags span::before {
  content: "#";
  font-weight: 700;
  color: currentColor;
  opacity: .5;
}
.cta-mail span {
  background-color: var(--chip);
  box-shadow: inset 0 0 0 1.5px var(--chip-line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  transition: background-color .3s var(--ease);
}
.cta-mail span:hover { background-color: var(--chip-hover); }

.chapter-tags.is-rolling {
  flex-wrap: nowrap;
  justify-content: flex-start;
}
.chapter-tags.is-rolling li {
  flex: 0 0 calc((100% - (var(--tag-slots) - 1) * var(--tag-gap)) / var(--tag-slots));
  justify-content: center;
}

@media (max-width: 760px) { .tag-rail { --tag-slots: 2; } }
@media (max-width: 480px) { .tag-rail { --tag-slots: 1; } }


.shot {
  display: grid;
  place-items: center;
  max-width: 100%;
  padding: clamp(.5rem, 1.4vw, 1.2rem);
  border-radius: clamp(14px, 1.6vw, 26px);
  background-color: var(--sheet);
  overflow: hidden;
}
.shot img,
.shot video {
  width: auto;
  height: min(42vh, 24rem, 56vw);
  height: min(42dvh, 24rem, 56vw);
  max-width: 100%;
  object-fit: contain;
}

.cta-mail {
  margin-top: clamp(1.4rem, 4vh, 2.4rem);
  font-size: clamp(1.1rem, 1rem + .7vw, 1.6rem);
  color: var(--ink);
}
.cta-mail span {
  font-weight: 500;
  letter-spacing: .01em;
}

html.reveal [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
html.reveal [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
html.reveal .chapter-lead[data-reveal] { transition-delay: .09s; }
html.reveal .shot[data-reveal] { transition-delay: .16s; }
html.reveal .tag-rail[data-reveal],
html.reveal .cta-mail[data-reveal] { transition-delay: .24s; }

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: var(--bar-h);
  font-size: .64rem;
  letter-spacing: .04em;
  color: var(--text-muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem 1.4rem;
  padding-block: .5rem;
}

body.home .site-footer .wrap { justify-content: center; }

body.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body.page main { flex: 1 0 auto; }

body.page .page-head,
body.page main {
  position: relative;
  z-index: 1;
}

.page-head { padding-block: clamp(2rem, 6vh, 3.5rem) clamp(1.2rem, 3vh, 2rem); }
.page-head h1 {
  font-size: clamp(1.45rem, 1.05rem + 1.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
}
.page-head .page-sub {
  margin-top: .7rem;
  color: var(--text-muted);
  font-size: .84rem;
}

.legal { font-size: .88rem; padding-bottom: clamp(2.5rem, 6vh, 4rem); }
.legal a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; }
.legal a:hover { border-bottom-color: currentColor; }

.legal-facts { color: var(--text); }
.legal-facts dt {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--text-muted);
}
.legal-facts dd { margin: .1rem 0 1.1rem; color: var(--ink); }
.legal-facts dd:last-of-type { margin-bottom: 0; }

@media print {
  :root, body, .site-header, .site-footer {
    --ink:        #000;
    --text:       #000;
    --text-muted: #333;
    --hairline:   #CCC;
    --border:     #999;
    --accent:     #1C4E6F;
  }
  .screen-mesh, .lang-btn, .nav-btn, .scroll-cue { display: none !important; }
  .site-header, .site-footer { background: #fff !important; color: #000 !important; }
  .site-header { position: static; }
  body { color: #000; background: #fff !important; background-image: none !important; }
  .hero, .chapter { min-height: 0 !important; background: none !important; break-inside: avoid; }
  .shot { height: auto !important; background: none !important; padding: 0 !important; }
  .logo { color: #1C4E6F !important; }
  .tagline, .intro, .topics li, .topics li strong,
  .chapter h2, .chapter-lead, .chapter-tags span, .cta-mail span,
  .page-head h1, .legal-facts dd { color: #000 !important; }
  .wordmark { color: #1C4E6F !important; }
  .topics li { background: none !important; }
  .chapter-tags span,
  .cta-mail span {
    background: none !important;
    box-shadow: inset 0 0 0 1px #999 !important;
  }
  .tag-rail { overflow: visible !important; }
  .chapter-tags.is-rolling { flex-wrap: wrap !important; transform: none !important; }
  .chapter-tags.is-rolling li { flex: 0 0 auto !important; }
  .topics svg { stroke: #1C4E6F !important; }
  html.reveal [data-reveal] { opacity: 1 !important; transform: none !important; }
}
