:root {
  --evergreen-950: #06120D;
  --evergreen-900: #0C1F18;
  --evergreen-800: #132D23;
  --evergreen-600: #244A3A;
  --brass-300: #D9AE63;
  --brass-500: #B07D2A;
  --brass-600: #8E6320;
  --brass-700: #714E1A;

  --bg: #F7F4EE;
  --surface: #FFFFFF;
  --sunken: #EFEBE3;
  --text: #132D23;
  --text-2: #6B655B;
  --text-3: #524D45;
  --accent: #8E6320;
  --border: #D2CCC0;
  --border-subtle: #E4DFD5;
  --border-interactive: #8E877B;
  --action: #132D23;
  --action-hover: #244A3A;
  --action-fg: #FFFFFF;
  --focus: #8E6320;
  --footer-text: #CFC8BB;

  --serif: "Newsreader", "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;

  --gutter: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1512;
    --surface: #141E1A;
    --sunken: #09100D;
    --text: #EFEBE3;
    --text-2: #BDB6AA;
    --text-3: #9AA79F;
    --accent: #D9AE63;
    --border: #2C3B34;
    --border-subtle: #22302A;
    --border-interactive: #73837A;
    --action: #D6E3DC;
    --action-hover: #E8F0EB;
    --action-fg: #0E1512;
    --focus: #D9AE63;
    --footer-text: #BDB6AA;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

figure {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 12vw;
  background: var(--evergreen-950);
  color: #fff;
  transition: transform .9s var(--ease) .15s;
}

.loader__name {
  font-family: var(--sans);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: clamp(20px, 5vw, 34px);
  opacity: 0;
  transform: translateY(12px);
  animation: rise .8s var(--ease) .1s forwards;
}

body.is-loaded .loader {
  transform: translateY(-100%);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 22px var(--gutter);
  color: #fff;
  transition: transform .32s var(--ease), background-color .2s, color .2s, padding .2s;
}

.site-header.is-solid {
  background: var(--bg);
  color: var(--text);
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.logotype {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--evergreen-950);
  color: #fff;
}

.hero__media {
  position: absolute;
  inset: -8% 0 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  transition: transform 2.6s var(--ease);
}

.is-loaded .hero__img {
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6, 18, 13, .85) 0%, rgba(6, 18, 13, .25) 55%, rgba(6, 18, 13, .45) 100%);
}

.hero__content {
  position: relative;
  padding: 0 var(--gutter) 96px;
  max-width: 980px;
}

.hero__title {
  margin: 0;
  font-weight: 400;
  font-size: clamp(42px, 9vw, 92px);
  line-height: 1.04;
  letter-spacing: -.02em;
}

[data-split] .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .08em;
}

[data-split] .word > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1s var(--ease);
}

.is-split-visible .word > span {
  transform: none;
}

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 28px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background-color .2s;
  animation: nudge 2.4s ease-in-out infinite;
}

.hero__scroll:hover {
  background: rgba(255, 255, 255, .24);
}

.img-reveal {
  position: relative;
  overflow: hidden;
}

.img-reveal img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  clip-path: inset(100% 0 0 0);
  scale: 1.15;
  transition: clip-path 1.3s var(--ease), scale 1.8s var(--ease);
}

.img-reveal.is-visible img {
  clip-path: inset(0 0 0 0);
  scale: 1;
}

.mandate {
  display: grid;
  gap: 40px;
  padding: 72px var(--gutter) 88px;
}

.mandate__main {
  aspect-ratio: 3 / 2;
  margin-left: calc(var(--gutter) * -1);
}

.mandate__lead {
  margin: 0;
  font-size: clamp(22px, 3.6vw, 30px);
  line-height: 1.38;
  max-width: 30em;
}

.discretion {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--evergreen-950);
  color: #fff;
}

.discretion__media {
  position: absolute;
  inset: -15% 0;
}

.discretion__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discretion__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 18, 13, .62);
}

.discretion__quote {
  position: relative;
  margin: 0;
  padding: 96px var(--gutter);
  max-width: 1100px;
}

.discretion__quote p {
  margin: 0;
  font-style: italic;
  font-size: clamp(28px, 6vw, 58px);
  line-height: 1.2;
  letter-spacing: -.01em;
}

.site-footer {
  background: var(--evergreen-900);
  color: var(--footer-text);
  padding: 72px var(--gutter) 28px;
  font-family: var(--sans);
  font-size: 14px;
}

.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-bottom: 56px;
}

.site-footer__contact {
  display: grid;
  gap: 16px;
  font-style: normal;
  font-size: 15px;
  line-height: 1.7;
}

.site-footer__contact p {
  margin: 0;
}

.site-footer .site-footer__contact a {
  text-decoration: none;
}

.site-footer .site-footer__contact a:hover {
  text-decoration: underline;
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-footer a {
  color: var(--footer-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .12s;
}

.site-footer a:hover {
  color: var(--brass-300);
}

.site-footer :focus-visible {
  outline-color: var(--brass-300);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .12s, color .12s, border-color .12s, transform .08s;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--action);
  color: var(--action-fg);
}

.btn--primary:hover {
  background: var(--action-hover);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-interactive);
}

.btn--outline:hover {
  border-color: var(--text);
}

.btn--text {
  background: none;
  color: var(--text);
  padding: 0 4px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn--text:hover {
  color: var(--accent);
}

.cookie {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 80;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  box-shadow: 0 24px 60px -20px rgba(6, 18, 13, .35);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}

.cookie.is-open {
  opacity: 1;
  transform: none;
}

.cookie__inner {
  padding: 24px 20px 20px;
}

.cookie__eyebrow {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .125em;
  text-transform: uppercase;
  color: var(--accent);
}

.cookie__title {
  margin: 0 0 10px;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.25;
}

.cookie__desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-2);
}

.cookie__desc a {
  color: var(--text);
  text-underline-offset: 3px;
}

.cookie__desc a:hover {
  color: var(--accent);
}

.cookie__prefs {
  margin-top: 20px;
  border-top: 1px solid var(--border-subtle);
  animation: fade .32s var(--ease);
}

.pref {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.pref h3 {
  margin: 0 0 4px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.pref p {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-3);
}

.switch {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 26px;
  margin-top: 2px;
  cursor: pointer;
}

.switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: inherit;
}

.switch__track {
  position: absolute;
  inset: 0;
  border: 1px solid var(--border-interactive);
  border-radius: 13px;
  background: var(--sunken);
  transition: background-color .2s, border-color .2s;
  pointer-events: none;
}

.switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-2);
  transition: transform .2s var(--ease), background-color .2s;
}

.switch input:checked + .switch__track {
  background: var(--action);
  border-color: var(--action);
}

.switch input:checked + .switch__track::after {
  transform: translateX(18px);
  background: var(--action-fg);
}

.switch input:disabled {
  cursor: not-allowed;
}

.switch input:disabled + .switch__track {
  opacity: .55;
}

.switch input:focus-visible + .switch__track {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.cookie__actions .btn--primary,
.cookie__actions .btn--outline {
  flex: 1 1 140px;
}

.page {
  padding: 140px var(--gutter) 112px;
}

.page__header {
  max-width: 760px;
  margin-bottom: 56px;
}

.page__title {
  margin: 0 0 16px;
  font-weight: 400;
  font-size: clamp(38px, 7vw, 60px);
  line-height: 1.08;
  letter-spacing: -.015em;
}

.page__meta {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-3);
}

.prose {
  max-width: 640px;
  margin-left: 0;
}

.prose h2 {
  margin: 56px 0 12px;
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.2;
}

.prose p,
.prose li {
  color: var(--text-2);
}

.prose ul {
  padding-left: 20px;
}

.prose li {
  margin-bottom: 6px;
}

.prose a {
  color: var(--text);
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--accent);
}

.notfound {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--evergreen-950);
  color: #fff;
}

.notfound__media {
  position: absolute;
  inset: 0;
}

.notfound__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: drift 24s ease-in-out infinite alternate;
}

.notfound__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 18, 13, .9), rgba(6, 18, 13, .45));
}

.notfound__content {
  position: relative;
  padding: 0 var(--gutter) 88px;
  max-width: 760px;
}

.notfound__code {
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(110px, 30vw, 260px);
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(217, 174, 99, .8);
  opacity: 0;
  transform: translateY(16px);
  animation: rise 1.2s var(--ease) .2s forwards;
}

.notfound__title {
  margin: 0 0 16px;
  font-weight: 400;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.1;
}

.notfound__text {
  margin: 0 0 36px;
  max-width: 30em;
  color: #CFC8BB;
}

.notfound .btn--primary {
  background: #fff;
  color: var(--evergreen-800);
}

.notfound .btn--primary:hover {
  background: var(--brass-300);
}

.notfound :focus-visible {
  outline-color: var(--brass-300);
}

[data-reveal]:not(.img-reveal) {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

[data-reveal].is-visible:not(.img-reveal) {
  opacity: 1;
  transform: none;
}

[data-delay="1"] { transition-delay: .12s !important; }
[data-delay="2"] { transition-delay: .25s !important; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@keyframes draw {
  to { transform: scaleX(1); }
}

@keyframes fade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes drift {
  from { transform: scale(1.05) translateX(0); }
  to { transform: scale(1.15) translateX(-2%); }
}

@media (min-width: 640px) {
  :root {
    --gutter: 32px;
  }

  .cookie {
    left: auto;
    right: 24px;
    bottom: 24px;
    width: 440px;
  }

  .cookie__inner {
    padding: 28px;
  }

  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 960px) {
  :root {
    --gutter: 56px;
  }

  .site-header {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .logotype {
    font-size: 16px;
  }

  .hero__content {
    padding-bottom: 120px;
    padding-left: calc(var(--gutter) + 4vw);
  }

  .mandate {
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    gap: 40px 32px;
    padding-top: 128px;
    padding-bottom: 128px;
  }

  .mandate__main {
    grid-column: 1 / 7;
    aspect-ratio: 4 / 5;
  }

  .mandate__copy {
    grid-column: 8 / 13;
  }

  .discretion__quote {
    padding-left: calc(var(--gutter) + 8vw);
  }

  .site-footer {
    padding-top: 80px;
  }

  .site-footer__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 72px;
  }

  .site-footer__contact {
    grid-template-columns: auto auto;
    column-gap: 64px;
    margin-right: 6vw;
  }

  .page {
    padding-top: 200px;
    padding-left: calc(var(--gutter) + 6vw);
  }

  .notfound__content {
    padding-left: calc(var(--gutter) + 4vw);
    padding-bottom: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }

  html {
    scroll-behavior: auto;
  }
}

.logo {
  display: block;
  width: auto;
  fill: currentColor;
}

.logo--inline {
  height: 30px;
}

.logo--stacked {
  height: 64px;
}

.site-header,
.site-footer {
  --logo-accent: var(--brass-300);
}

.site-header.is-solid {
  --logo-accent: var(--brass-500);
}

.site-footer .logotype--footer {
  display: inline-block;
  color: #F7F4EE;
  text-decoration: none;
}

@media (min-width: 960px) {
  .logo--inline {
    height: 36px;
  }

  .logo--stacked {
    height: 88px;
  }
}

body.is-loaded .loader {
  visibility: hidden;
  transition: transform .9s var(--ease) .15s, visibility 0s 1.2s;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lang {
  display: flex;
  gap: 4px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
}

.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 6px;
  color: inherit;
  text-decoration: none;
  opacity: .6;
  transition: opacity .15s;
}

.lang a:hover,
.lang a[aria-current] {
  opacity: 1;
}

.lang a[aria-current] {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

.cookie .btn {
  padding: 0 14px;
  letter-spacing: .08em;
}

.prose h3 {
  margin: 28px 0 8px;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.3;
}

.prose strong {
  font-weight: 600;
  color: var(--text);
}

.prose h4 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
}

.cookie-type {
  margin: 24px 0;
  padding: 20px 22px;
  background: var(--surface);
  border-radius: 4px;
}

.cookie-type p {
  margin: 0 0 6px;
}

.cookie-type p:last-child {
  margin-bottom: 0;
}

.prose a {
  overflow-wrap: anywhere;
}
