:root {
  color-scheme: light;
  --ink: #1d2452;
  --green: #518662;
  --forest: #244a35;
  --cream: #faf7ed;
  --paper: #efe5d0;
  --gold: #faca1a;
  --rule: rgb(239 229 208 / 48%);
  font-family: Gotham, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: url("assets/paper.png") repeat, linear-gradient(rgb(24 53 33 / 10%), rgb(24 53 33 / 10%)), var(--green);
  color: var(--cream);
}
.page { overflow: clip; }
.sheet {
  width: min(100% - clamp(48px, 11vw, 176px), 1512px);
  margin-inline: auto;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.masthead, footer { display: flex; align-items: center; justify-content: space-between; }
.masthead { gap: 16px; padding-block: clamp(23px, 3.4vh, 38px); border-bottom: 1px solid var(--rule); }
.identity { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 27px); }
.brand { display: block; width: clamp(110px, 9.7vw, 150px); height: auto; }
.organization {
  font: 500 clamp(15px, 1.16vw, 19px)/1.17 "Apple Garamond", Georgia, serif;
}
.cabinet {
  font-size: clamp(10px, .84vw, 13px); font-weight: 650; letter-spacing: .15em;
  text-transform: uppercase; text-align: right; white-space: nowrap;
}
main {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 3%; align-items: center; flex: 1; padding-block: clamp(48px, 9vh, 110px);
}
.message { position: relative; z-index: 1; }
h1 {
  width: fit-content;
  margin: 0 0 clamp(19px, 3.2vh, 36px);
  font: 700 clamp(52px, 7.2vw, 127px)/1 "New Spirit", Georgia, "Times New Roman", serif;
  color: var(--cream); letter-spacing: -.064em;
}
.lead {
  margin: 0; font: 500 clamp(23px, 2.36vw, 41px)/1.18 "Apple Garamond", Georgia, serif;
  letter-spacing: -.035em; text-wrap: balance;
}
.intro {
  max-width: 435px; margin: 16px 0 0;
  font-size: clamp(16px, 1.15vw, 20px); line-height: 1.63;
}
.contact { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 4vh, 48px); }
.contact a {
  display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 9px;
  padding: 0 20px; border-radius: 3px; border: 1px solid var(--cream);
  color: var(--forest); background: var(--cream); text-decoration: none;
  font-size: 14px; font-weight: 650;
}
.contact a + a { background: transparent; color: var(--cream); }
.contact a:hover { background-color: var(--gold); border-color: var(--gold); color: var(--forest); }
.contact a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.contact svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.illustration {
  position: relative; width: min(96%, 520px); margin: 0; justify-self: center;
  display: grid; place-items: center; padding: 4% 9% 6% 0;
}
.stamp { width: 100%; max-width: 394px; transform: rotate(6deg); filter: drop-shadow(5px 8px 0 rgb(30 57 37 / 32%)); }
.stamp-paper {
  padding: clamp(13px, 1.36vw, 24px); background: var(--paper);
  /* Small transparent edge cuts reproduce the cabinet's printed-paper motif. */
  mask: radial-gradient(circle at 5px 5px, transparent 3px, #000 3.5px) -5px -5px / 10px 10px,
        linear-gradient(#000 0 0) center / calc(100% - 10px) calc(100% - 10px) no-repeat;
}
.engraving { padding: 4px; border: 1px solid #455b42; background: var(--paper); }
.paris-scene {
  position: relative; overflow: hidden;
  border: 1px solid #67745c;
  background: var(--paper);
}
.scene-motion { display: none; }
.stamp-caption {
  display: flex; align-items: center; justify-content: space-between; padding: 5px 8px 1px;
  color: #3d5945; font: bold clamp(13px, 1.2vw, 21px)/1.1 Georgia, serif; letter-spacing: .36em;
}
.stamp-caption span { font-size: .8em; letter-spacing: 0; }
.postmark {
  position: absolute; width: 35%; right: 15%; bottom: 11%; overflow: visible;
  color: var(--ink); transform: rotate(-13deg);
}
.postmark-type { font-family: Arial, sans-serif; font-weight: 700; }
.chapters {
  position: relative;
  width: 83%;
  max-width: 1160px;
  margin: 0 auto 14px;
}
.chapters-window {
  --fade: clamp(22px, 6vw, 96px);
  overflow-x: auto;
  padding-block: 8px;
}
.chapters-list {
  display: flex; width: max-content; align-items: center;
  margin: 0; padding: 0; list-style: none;
  font: 500 clamp(15px, 1.2vw, 20px)/1.4 Georgia, serif;
}
.chapters-list li { display: flex; align-items: center; white-space: nowrap; }
.chapters-list li::after {
  content: ""; width: 3px; height: 3px; border-radius: 50%;
  margin-inline: clamp(13px, 1.45vw, 24px); background: var(--gold);
}
.chapters-list[aria-hidden] { display: none; }
.chapters-window:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .chapters.ready .chapters-window {
    overflow: clip;
    mask-image: linear-gradient(to right, transparent, black var(--fade), black calc(100% - var(--fade)), transparent);
  }
  .chapters.ready .chapters-track { display: flex; width: max-content; animation: chapter-scroll 65s linear infinite; }
  .chapters-list[aria-hidden] { display: flex; }
  @keyframes chapter-scroll { to { transform: translateX(-50%); } }
}
footer { border-top: 1px solid var(--rule); padding: 19px 0 22px; }
footer small { font-size: 12px; letter-spacing: .025em; }
@media (min-width: 761px) {
  main { padding-block: clamp(20px, 4vh, 60px); }
  .stamp { max-width: min(394px, 43svh); }
}
@media (prefers-reduced-motion: no-preference) {
  .sheet { container-type: inline-size; }
  main {
    --title-stop: calc(50cqw - 50%);
    --settle: cubic-bezier(.2, .75, .23, 1);
  }
  h1 { animation: title-arrive 2000ms var(--settle) backwards; }
  .stamp { animation: stamp-arrive 1120ms 580ms var(--settle) backwards; }
  .scene-motion {
    position: absolute; inset: 0; display: block; visibility: hidden;
    background: var(--paper) url("assets/paris-sky.webp") center / 100% 100%;
    animation: scene-assembly 2100ms linear;
  }
  @keyframes scene-assembly {
    0%, 96% { visibility: visible; opacity: 1; }
    100% { visibility: visible; opacity: 0; }
  }
  .scene-layer {
    display: block; position: absolute; inset: 0;
    background-position: center; background-size: 100% 100%; background-repeat: no-repeat;
  }
  .sun {
    background-image: url("assets/paris-sun.webp");
    transform-origin: 47% 39%; animation: sun-rise 900ms 780ms var(--settle) backwards;
  }
  .tower {
    background-image: url("assets/paris-tower.webp");
    animation: tower-rise 1040ms 940ms var(--settle) backwards;
  }
  .palace {
    background-image: url("assets/paris-palace.webp");
    animation: palace-slide 880ms 1150ms var(--settle) backwards;
  }
  .postmark { animation: ink-imprint 560ms 1640ms var(--settle) backwards; }
  @keyframes title-arrive {
    from { transform: translateX(-100vw); }
    44%, 57% { transform: translateX(var(--title-stop)); }
    to { transform: none; }
  }
  @keyframes stamp-arrive {
    from { transform: translate(105vw, 10%) rotate(22deg); }
    to { transform: rotate(6deg); }
  }
  @keyframes sun-rise {
    from { opacity: 0; transform: translateY(30%) scale(.7); }
    to { opacity: 1; transform: none; }
  }
  @keyframes tower-rise {
    from { transform: translateY(102%); }
    to { transform: none; }
  }
  @keyframes palace-slide {
    from { transform: translateX(-102%); }
    to { transform: none; }
  }
  @keyframes ink-imprint {
    from { opacity: 0; transform: translate(58%, -48%) rotate(18deg) scale(1.45); }
    74% { opacity: 1; transform: rotate(-15deg) scale(.96); }
    to { transform: rotate(-13deg); }
  }
}
@media (max-width: 760px) {
  .sheet { width: calc(100% - 44px); }
  .masthead { padding-block: 20px; }
  .identity { gap: 10px; }
  .brand { width: 97px; }
  .organization { font-size: 13px; }
  .cabinet { font-size: 9px; letter-spacing: .09em; }
  main { grid-template-columns: 1fr; gap: 35px; align-content: center; padding-block: 37px 30px; }
  main { --title-stop: calc(min(50cqw, 260px) - 50%); }
  .message { width: 100%; max-width: 520px; justify-self: center; }
  h1 { font-size: clamp(48px, 13.4vw, 94px); margin-bottom: 16px; }
  .lead { font-size: clamp(23px, 5.8vw, 30px); }
  .intro { margin-top: 11px; line-height: 1.5; font-size: 16px; }
  .contact { margin-top: 22px; }
  .contact a { min-height: 44px; padding-inline: 15px; }
  .illustration { width: min(59%, 225px); padding: 0 4% 1% 0; }
  .stamp-paper { padding: 9px; mask-size: 8px 8px, calc(100% - 8px) calc(100% - 8px); }
  .engraving { padding: 2px; }
  .stamp-caption { font-size: 11px; padding: 3px 5px 1px; }
  .postmark { width: 39%; right: 8%; bottom: 7%; }
  footer { padding: 15px 0 17px; }
}
@media (max-width: 360px) {
  .sheet { width: calc(100% - 32px); }
  .identity { gap: 7px; }
  .organization { font-size: 12px; }
  .cabinet { letter-spacing: .035em; }
}

/* Two small calling cards accompany the cabinet's Paris stamp. */
.calling-cards {
  position: absolute; left: -2%; bottom: 12%; width: 36%; aspect-ratio: 1.5;
  container-type: inline-size; pointer-events: none;
}
.calling-card {
  position: absolute; width: 82%; padding: 3.8% 6.5%;
  border: 1px solid currentColor; outline: 3px solid var(--card-paper);
  color: var(--forest); background: var(--card-paper) url("assets/paper.png");
  box-shadow: 2px 4px 0 rgb(31 59 38 / 24%); font-family: Georgia, serif;
}
.calling-card small { display: block; font: 600 6cqw/1.15 Arial, sans-serif; letter-spacing: .05em; }
.calling-card strong { display: block; font-size: 14cqw; line-height: 1.1; }
.career { --card-paper: #f5d674; left: 0; top: 0; transform: rotate(-10deg); }
.research { --card-paper: #faf7ed; right: 0; bottom: 0; transform: rotate(3deg); }
@media (prefers-reduced-motion: no-preference) {
  .calling-cards { animation: cards-arrive 650ms 1.25s ease-out backwards; }
  @keyframes cards-arrive { from { opacity: 0; transform: translateX(-35%); } }
}
