/* ==========================================================================
   Subura — the landing page at `/`.

   The page is served with the panel's Content-Security-Policy: scripts and
   pictures from this address only, no inline handler. Everything below is
   local: the palette, the grain and the type are the game's own, and there is
   no font or image from another origin to wait for.

   Sections, in the order of the page:
     header, hero, the city, features, a month, screenshots, the project, cta,
     footer, and the lightbox the screenshots open in.
   ========================================================================== */

:root {
  /* The game's palette, from static/modules/js/caesar/{art,paint,brush}.mjs. */
  --ink: #2a2015;
  --ink-soft: #4a3824;
  --parchment: #f4ead2;
  --parchment-deep: #e9dcc0;
  --stone: #c6b796;
  --stone-dark: #8f7f5e;
  --gilt: #b08a3a;
  --gold: #d99a1f;
  --terracotta: #b04a2e;
  --terracotta-dark: #8a3620;
  --title: #7a1f12;
  --muted: #6b5a40;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 78px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* The same turbulence as the marble in the game's panels (main_subura.css). */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.27 0 0 0 0 0.16 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--parchment);
  background-image: var(--grain);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open,
body.lightbox-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

p,
h1,
h2,
h3,
figure {
  margin: 0;
}

p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  letter-spacing: -.015em;
  line-height: 1.08;
  text-wrap: balance;
}

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

::selection {
  background: var(--gold);
  color: var(--ink);
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: .8em 1.2em;
  background: var(--ink);
  color: var(--parchment);
  border: 1px solid var(--gilt);
  font-family: var(--sans);
  font-size: .8rem;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}

.skip-link:focus {
  transform: none;
}

/* --------------------------------------------------------------------------
   The header: transparent over the hero, parchment once the page moves.
   -------------------------------------------------------------------------- */

.site-header {
  --header-h: 78px;
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  color: var(--parchment);
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}

.site-header.is-scrolled,
.site-header.is-open {
  --header-h: 66px;
  background: rgba(244, 234, 210, .97);
  color: var(--ink);
  border-bottom: 1px solid rgba(176, 138, 58, .55);
  box-shadow: 0 12px 34px rgba(42, 32, 21, .14);
  backdrop-filter: blur(10px);
}

.site-header.is-open {
  border-bottom-color: var(--gilt);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  height: var(--header-h);
  transition: height .3s var(--ease);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  color: inherit;
  text-decoration: none;
}

.brand__laurel {
  width: 30px;
  height: 30px;
  color: var(--gold);
  transition: color .3s var(--ease), transform .4s var(--ease);
}

.brand:hover .brand__laurel {
  transform: rotate(-8deg);
}

.brand__name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .26em;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 27px);
  margin-left: auto;
}

.site-nav > a {
  position: relative;
  color: inherit;
  font-family: var(--sans);
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: .88;
  transition: color .2s var(--ease), opacity .2s var(--ease);
}

.site-nav > a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: var(--gold);
  transition: right .3s var(--ease);
}

.site-nav > a:hover {
  color: var(--gold);
  opacity: 1;
}

.site-nav > a:hover::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.lang {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
  border-radius: 2px;
  overflow: hidden;
}

.lang__button {
  padding: .38em .5em;
  border: 0;
  border-left: 1px solid color-mix(in srgb, currentColor 25%, transparent);
  background: transparent;
  color: inherit;
  font-family: var(--sans);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}

.lang__button:first-child {
  border-left: 0;
}

.lang__button:hover {
  background: rgba(217, 154, 31, .18);
}

.lang__button.is-choice {
  background: var(--gold);
  color: var(--ink);
}

.lang__button.is-detected:not(.is-choice) {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 36px;
  padding: 0;
  border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
  border-radius: 2px;
  background: transparent;
  color: inherit;
  line-height: 0;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}

.nav-toggle:hover {
  background: rgba(217, 154, 31, .18);
}

.nav-toggle .icon {
  width: 19px;
  height: 19px;
}

/* A small button that lives in the header's navigation. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .95em 1.5em;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--serif);
  font-size: .98rem;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
}

.btn--small {
  padding: .66em 1em;
  font-family: var(--sans);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.btn--primary {
  background: var(--terracotta);
  border-color: var(--terracotta-dark);
  color: #fff8e8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 22px rgba(42, 32, 21, .24);
}

.btn--primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 14px 26px rgba(42, 32, 21, .28);
}

.btn--ghost {
  border-color: var(--stone-dark);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  background: rgba(42, 32, 21, .07);
  border-color: var(--ink);
}

.nav__cta {
  border-color: color-mix(in srgb, currentColor 40%, transparent);
  color: inherit;
}

.nav__cta:hover {
  background: var(--parchment);
  border-color: var(--parchment);
  color: var(--ink);
}

.site-header.is-scrolled .nav__cta:hover,
.site-header.is-open .nav__cta:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--parchment);
}

.site-header.is-open .brand__laurel {
  color: var(--terracotta);
}

.site-header.is-open .nav-toggle {
  background: var(--ink);
  color: var(--parchment);
}

/* --------------------------------------------------------------------------
   The hero: the city at full bleed, and a parchment tabula over it.
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding-top: clamp(104px, 14vh, 150px);
  padding-bottom: clamp(72px, 10vh, 110px);
  overflow: hidden;
  background: var(--ink);
  color: var(--parchment);
}

.hero__media,
.hero__veil,
.cta__media,
.cta__veil {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 43%;
  animation: hero-drift 30s ease-in-out infinite alternate;
  will-change: transform;
}

.hero__veil {
  background:
    linear-gradient(90deg, rgba(24, 18, 12, .9) 0%, rgba(24, 18, 12, .62) 34%, rgba(24, 18, 12, .18) 72%, rgba(24, 18, 12, .34) 100%),
    linear-gradient(0deg, rgba(24, 18, 12, .9) 0%, rgba(24, 18, 12, .2) 32%, transparent 58%),
    linear-gradient(180deg, rgba(24, 18, 12, .58) 0%, transparent 22%);
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero__panel {
  position: relative;
  width: min(100%, 660px);
  padding: clamp(28px, 4.5vw, 50px);
  border: 1px solid var(--gilt);
  background-color: var(--parchment);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .38), transparent 34%),
    var(--grain);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    0 40px 90px rgba(0, 0, 0, .46);
  animation: hero-rise .9s var(--ease) both;
}

.hero__panel::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(176, 138, 58, .42);
  pointer-events: none;
}

.hero__panel > * {
  position: relative;
  z-index: 1;
}

.eyebrow,
.kicker {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--terracotta);
}

.hero__panel h1 {
  max-width: 13ch;
  color: var(--title);
  font-size: clamp(2.55rem, 6vw, 4.75rem);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.025em;
}

.flourish {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: var(--gilt);
}

.flourish span {
  width: 48px;
  height: 1px;
  background: currentColor;
}

.flourish i {
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

.hero__panel .lead {
  max-width: 48ch;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
  line-height: 1.58;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__note {
  margin-top: 18px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .04em;
  line-height: 1.5;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(176, 138, 58, .45);
  list-style: none;
}

.stats li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.stats strong {
  color: var(--title);
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1;
}

.stats span {
  color: var(--muted);
  font-family: var(--sans);
  font-size: .63rem;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.45;
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(244, 234, 210, .68);
  text-decoration: none;
  transform: translateX(-50%);
  transition: color .2s var(--ease);
}

.scroll-cue span {
  width: 1px;
  height: 30px;
  background: currentColor;
}

.scroll-cue .icon {
  width: 17px;
  height: 17px;
  animation: cue 2.2s ease-in-out infinite;
}

.scroll-cue:hover {
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Shared section furniture.
   -------------------------------------------------------------------------- */

.section {
  position: relative;
  padding-block: clamp(72px, 9vw, 126px);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 58px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  margin-bottom: 14px;
  color: var(--terracotta);
}

h2 {
  color: var(--title);
  font-size: clamp(2rem, 4.1vw, 3.35rem);
  font-weight: 500;
}

.section-head .lead {
  margin-top: 16px;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.3vw, 1.2rem);
  line-height: 1.55;
}

.section--dark {
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(217, 154, 31, .09), transparent 55%),
    var(--grain);
  color: var(--parchment);
}

.section--dark h2 {
  color: var(--parchment);
}

.section--dark .lead {
  color: rgba(244, 234, 210, .7);
}

.section--dark .kicker {
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   The city: text and a framed picture.
   -------------------------------------------------------------------------- */

.section--city {
  background-image:
    radial-gradient(ellipse at 90% 15%, rgba(217, 154, 31, .08), transparent 40%),
    var(--grain);
}

.split {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: clamp(32px, 6vw, 78px);
  align-items: center;
}

.split__text .lead {
  margin-top: 18px;
  color: var(--ink-soft);
  font-weight: 600;
}

.split__text > p:not(.kicker):not(.lead) {
  max-width: 60ch;
  margin-top: 16px;
  color: var(--muted);
}

.checks {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: .84rem;
}

.checks li::before {
  content: "";
  position: absolute;
  top: .36em;
  left: 4px;
  width: 6px;
  height: 11px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
}

.framed {
  position: relative;
  padding: 10px 10px 0;
  border: 1px solid var(--gilt);
  background: var(--parchment-deep);
  box-shadow:
    0 20px 44px rgba(42, 32, 21, .18),
    inset 0 0 0 1px rgba(255, 255, 255, .32);
  transform: rotate(-1.2deg);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}

.framed:hover {
  transform: rotate(0);
  box-shadow:
    0 26px 52px rgba(42, 32, 21, .22),
    inset 0 0 0 1px rgba(255, 255, 255, .4);
}

.framed img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(176, 138, 58, .5);
}

.framed figcaption {
  padding: 12px 8px 14px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: .66rem;
  letter-spacing: .05em;
  line-height: 1.5;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Features: a grid of six, separated by hairlines.
   -------------------------------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(176, 138, 58, .32);
  background: rgba(176, 138, 58, .32);
  list-style: none;
}

.feature {
  position: relative;
  min-height: 262px;
  padding: clamp(24px, 3vw, 34px);
  background: var(--ink);
  transition: background-color .3s var(--ease);
}

.feature:hover {
  background: #34281a;
}

.feature__numeral {
  position: absolute;
  top: 19px;
  right: 22px;
  color: rgba(217, 154, 31, .42);
  font-family: var(--serif);
  font-size: .72rem;
  letter-spacing: .12em;
}

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border: 1px solid rgba(176, 138, 58, .55);
  border-radius: 50%;
  color: var(--gold);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

.feature__icon .icon {
  width: 22px;
  height: 22px;
}

.feature:hover .feature__icon {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.feature h3 {
  margin-bottom: 10px;
  color: var(--parchment);
  font-size: 1.28rem;
  font-weight: 600;
}

.feature p {
  max-width: 34ch;
  color: rgba(244, 234, 210, .68);
  font-size: .94rem;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   A month: three steps with Roman numerals.
   -------------------------------------------------------------------------- */

.months {
  background-image:
    radial-gradient(ellipse at 12% 80%, rgba(176, 74, 46, .06), transparent 42%),
    var(--grain);
}

.months__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.months__list li {
  padding-top: 22px;
  border-top: 1px solid rgba(176, 138, 58, .55);
}

.months__numeral {
  display: block;
  margin-bottom: 16px;
  color: rgba(176, 138, 58, .18);
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  line-height: 1;
  -webkit-text-stroke: 1.2px var(--gilt);
}

.months__list h3 {
  margin-bottom: 8px;
  color: var(--title);
  font-size: 1.38rem;
  font-weight: 600;
}

.months__list p {
  max-width: 36ch;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Screenshots: one large frame and two smaller ones.
   -------------------------------------------------------------------------- */

.section--shots {
  border-top: 1px solid rgba(176, 138, 58, .35);
  border-bottom: 1px solid rgba(176, 138, 58, .35);
  background-color: #efe3c8;
  background-image: var(--grain);
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.shot {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--gilt);
  background: var(--ink);
  color: var(--parchment);
  text-align: left;
  cursor: zoom-in;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.shot--large {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.shot:hover {
  border-color: var(--gold);
  box-shadow: 0 18px 40px rgba(42, 32, 21, .22);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease), filter .7s var(--ease);
}

.shot:hover img {
  transform: scale(1.035);
  filter: saturate(1.04);
}

.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(24, 18, 12, .88) 0%, rgba(24, 18, 12, .28) 34%, transparent 62%);
}

.shot__caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px;
}

.shot__caption strong {
  color: var(--parchment);
  font-size: 1.14rem;
  font-weight: 600;
}

.shot__caption span {
  max-width: 46ch;
  color: rgba(244, 234, 210, .78);
  font-family: var(--sans);
  font-size: .73rem;
  line-height: 1.5;
}

.shot__zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(244, 234, 210, .5);
  border-radius: 50%;
  background: rgba(24, 18, 12, .36);
  color: var(--parchment);
  backdrop-filter: blur(4px);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

.shot__zoom .icon {
  width: 15px;
  height: 15px;
}

.shot:hover .shot__zoom {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.shots__note {
  margin-top: 22px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .02em;
  text-align: center;
}

/* --------------------------------------------------------------------------
   The project: a certificate with a seal, and four promises.
   -------------------------------------------------------------------------- */

.honest {
  background-image:
    radial-gradient(ellipse at 0% 20%, rgba(217, 154, 31, .08), transparent 38%),
    var(--grain);
}

.honest__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 6vw, 78px);
  align-items: center;
}

.honest__text .lead {
  margin-top: 18px;
}

.honest__note {
  margin-top: 18px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: .72rem;
  line-height: 1.5;
}

.honest__certificate {
  position: relative;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--gilt);
  background-color: var(--parchment);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .35), transparent 36%),
    var(--grain);
  box-shadow: 0 20px 50px rgba(42, 32, 21, .15);
}

.honest__certificate::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(176, 138, 58, .38);
  pointer-events: none;
}

.honest__certificate > * {
  position: relative;
  z-index: 1;
}

.seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 148px;
  height: 148px;
  margin: 0 auto 26px;
  border: 1px solid var(--gilt);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 28%, #fffaf0, var(--parchment-deep));
  box-shadow: 0 0 0 5px var(--parchment), 0 0 0 6px rgba(176, 138, 58, .4);
  color: var(--title);
  transform: rotate(-4deg);
}

.seal__laurel {
  width: 34px;
  height: 34px;
  color: var(--gilt);
}

.seal__name {
  font-family: var(--serif);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
}

.seal__small {
  color: var(--muted);
  font-family: var(--sans);
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.honest__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.honest__list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: .8rem;
  line-height: 1.45;
}

.honest__list li::before {
  content: "";
  position: absolute;
  top: .3em;
  left: 2px;
  width: 6px;
  height: 11px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   The closing call.
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  padding-block: clamp(86px, 12vw, 150px);
  overflow: hidden;
  border-top: 1px solid var(--gilt);
  background: var(--ink);
  color: var(--parchment);
  text-align: center;
}

.cta__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}

.cta__veil {
  background:
    radial-gradient(ellipse at 50% 42%, rgba(42, 32, 21, .34), transparent 72%),
    linear-gradient(180deg, rgba(24, 18, 12, .82), rgba(24, 18, 12, .58));
}

.cta__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-inline: auto;
}

.flourish--light {
  justify-content: center;
  margin: 0 0 20px;
  color: var(--gold);
}

.cta h2 {
  color: var(--parchment);
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.cta .lead {
  max-width: 58ch;
  margin: 18px auto 0;
  color: rgba(244, 234, 210, .78);
}

.cta .btn {
  margin-top: 28px;
}

.cta__note {
  margin-top: 18px;
  color: rgba(244, 234, 210, .55);
  font-family: var(--sans);
  font-size: .7rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   The footer.
   -------------------------------------------------------------------------- */

.footer {
  padding-block: clamp(42px, 6vw, 64px) 24px;
  border-top: 1px solid rgba(176, 138, 58, .4);
  background: var(--ink);
  color: rgba(244, 234, 210, .72);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  gap: 34px;
  align-items: start;
}

.footer__brand .brand {
  color: var(--parchment);
}

.footer__brand .brand__name {
  color: var(--gold);
}

.footer__brand p {
  max-width: 34ch;
  margin-top: 14px;
  color: rgba(244, 234, 210, .58);
  font-size: .9rem;
  line-height: 1.55;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav a {
  color: rgba(244, 234, 210, .7);
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s var(--ease);
}

.footer__nav a:hover {
  color: var(--gold);
}

.footer__side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.footer__langs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(244, 234, 210, .45);
  font-family: var(--sans);
  font-size: .74rem;
}

.footer__lang {
  padding: 0;
  border: 0;
  background: none;
  color: rgba(244, 234, 210, .7);
  font-family: inherit;
  font-size: inherit;
  letter-spacing: .03em;
  cursor: pointer;
  transition: color .2s var(--ease);
}

.footer__lang:hover,
.footer__lang.is-current {
  color: var(--gold);
}

.footer__lang.is-current {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.footer__play {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gilt);
  color: var(--parchment);
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.footer__play:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer__legal {
  grid-column: 1 / -1;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(176, 138, 58, .25);
  color: rgba(244, 234, 210, .42);
  font-family: var(--sans);
  font-size: .66rem;
  letter-spacing: .02em;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   The lightbox.
   -------------------------------------------------------------------------- */

.lightbox {
  width: min(94vw, 1400px);
  max-width: min(94vw, 1400px);
  max-height: 94vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--parchment);
}

.lightbox::backdrop {
  background: rgba(18, 13, 8, .9);
  backdrop-filter: blur(4px);
}

.lightbox[open] {
  animation: lightbox-in .25s var(--ease);
}

.lightbox__frame {
  padding: 14px;
  border: 1px solid var(--gilt);
  background: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}

.lightbox__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 2px 12px;
}

.lightbox__head p {
  color: var(--parchment);
  font-size: .96rem;
  line-height: 1.4;
}

.lightbox__close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(244, 234, 210, .4);
  background: transparent;
  color: var(--parchment);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.lightbox__close:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.lightbox__close .icon {
  width: 17px;
  height: 17px;
}

#lightbox-image {
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  background: #1c150e;
}

.lightbox__nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
}

.lightbox__nav button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: .55em .9em;
  border: 1px solid rgba(244, 234, 210, .35);
  background: transparent;
  color: var(--parchment);
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.lightbox__nav button:hover {
  border-color: var(--gold);
  background: rgba(217, 154, 31, .16);
  color: var(--gold);
}

.lightbox__nav .icon {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   Motion: the page's own small movements, all of them optional.
   -------------------------------------------------------------------------- */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.hero__panel {
  animation: hero-rise .9s var(--ease) both;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.02);
  }

  to {
    transform: scale(1.07) translate3d(-1.2%, -1%, 0);
  }
}

@keyframes cue {

  0%,
  100% {
    transform: translateY(0);
    opacity: .6;
  }

  50% {
    transform: translateY(5px);
    opacity: 1;
  }
}

@keyframes lightbox-in {
  from {
    opacity: 0;
    transform: scale(.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero__media img {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Narrow screens.
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .site-header,
  .site-header.is-scrolled,
  .site-header.is-open {
    --header-h: 66px;
  }

  .site-header__inner {
    gap: 12px;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100svh - var(--header-h));
    margin: 0;
    padding: 10px var(--gutter) 24px;
    overflow-y: auto;
    border-bottom: 1px solid var(--gilt);
    background: rgba(244, 234, 210, .99);
    color: var(--ink);
    box-shadow: 0 22px 44px rgba(42, 32, 21, .22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }

  .site-header.is-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav > a {
    padding: 15px 0;
    border-bottom: 1px solid rgba(176, 138, 58, .3);
    font-size: .78rem;
    opacity: 1;
  }

  .site-nav > a:not(.nav__cta)::after {
    display: none;
  }

  .site-nav .nav__cta {
    margin-top: 16px;
    padding: .95em 1em;
    border: 1px solid var(--terracotta);
    background: var(--terracotta);
    color: var(--parchment);
    text-align: center;
  }

  .site-nav .nav__cta:hover {
    border-color: var(--terracotta-dark);
    background: var(--terracotta-dark);
    color: var(--parchment);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-actions {
    margin-left: auto;
  }

  .split,
  .honest__inner {
    grid-template-columns: 1fr;
  }

  .framed {
    width: min(100%, 620px);
    margin-inline: auto;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .months__list {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .months__list li {
    padding-top: 18px;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .shot,
  .shot--large {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer__side {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-items: flex-end;
  }

  .footer__legal {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 76px;
  }

  .hero__panel {
    padding: 26px 22px 24px;
  }

  .hero__panel h1 {
    max-width: none;
    font-size: clamp(2.25rem, 11vw, 3.2rem);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .stats {
    gap: 10px;
  }

  .stats span {
    font-size: .58rem;
  }

  .scroll-cue {
    display: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature {
    min-height: 0;
  }

  .honest__certificate {
    padding: 22px 18px;
  }

  .honest__list {
    grid-template-columns: 1fr;
  }

  .seal {
    width: 126px;
    height: 126px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer__side {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    align-items: flex-start;
  }

  .footer__legal {
    grid-column: 1;
  }

  .lightbox__frame {
    padding: 10px;
  }

  #lightbox-image {
    max-height: 62vh;
  }

  .lightbox__nav button span {
    display: none;
  }

  .lightbox__nav button {
    padding: .7em;
  }
}

@media (max-width: 390px) {
  .brand__name {
    font-size: .95rem;
    letter-spacing: .2em;
  }

  .brand__laurel {
    width: 26px;
    height: 26px;
  }

  .lang__button {
    padding: .35em .4em;
    font-size: .6rem;
  }
}

/* A page printed on paper: no fixed chrome, no hidden reveal. */
@media print {
  .site-header,
  .scroll-cue,
  .nav-toggle,
  .lang,
  .lightbox {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  .hero__panel {
    border: 1px solid #000;
    box-shadow: none;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
