@font-face {
  font-family: "La Biche Serif";
  src: url("../fonts/la-biche-serif.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --brown: #160f0c;
  --ivory: #f1e5d2;
  --beige: #cdbba3;
  --gold: #d4b181;
  --serif: "La Biche Serif", "Baskerville", "Palatino Linotype", Georgia, serif;
  --sans: Arial, Helvetica, sans-serif;
  background: var(--brown);
  color: var(--ivory);
  font-family: var(--serif);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-width: 280px; }
body { min-height: 100svh; }
body.intro-open { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 1px solid var(--gold); outline-offset: 7px; border-radius: 1px; }
::selection { background: #785b3e; color: #fff5e6; }

.intro {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow-y: auto;
  isolation: isolate;
}

.intro::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 50% 38%, #21160f 0%, #19110d 37%, var(--brown) 72%);
  pointer-events: none;
}

.intro__smoke {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.intro.smoke-ready .emblem__image { visibility: hidden; }

.intro__content {
  position: relative;
  z-index: 2;
  min-height: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 4.5svh, 54px) 24px;
  text-align: center;
}

/* The original transparent file includes a wordmark at its foot.
   This display window shows its smoky emblem; the title below is live text.
   The supplied PNG itself is copied without any pixel changes. */
.emblem {
  position: relative;
  flex: none;
  width: min(32svh, 340px, 64vw);
  aspect-ratio: 1085 / 1760;
  overflow: hidden;
  margin: 0 0 clamp(20px, 3svh, 34px);
}

.emblem__image {
  display: block;
  width: 100%;
  height: auto;
}

.intro__signature { flex: none; }
.wordmark {
  margin: 0;
  padding-left: .24em;
  font-size: clamp(2.15rem, 4.8vw, 3.45rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .24em;
  color: var(--ivory);
}

.intro__tagline {
  margin: 17px 0 0;
  color: var(--beige);
  font-size: clamp(1.0625rem, 1.55vw, 1.25rem);
  line-height: 1.5;
  letter-spacing: .035em;
}

.languages {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  font-family: var(--sans);
  font-size: .875rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .12em;
}

.languages a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 12px 9px;
  transition: color 250ms ease;
}

.languages a::after {
  position: absolute;
  content: "";
  height: 1px;
  inset: auto 12px 3px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(.35);
  transition: transform 250ms ease, opacity 250ms ease;
}

.languages > span { padding: 0 5px; color: var(--gold); opacity: .7; }
.languages a[aria-current="true"] { color: var(--gold); }
.languages a[aria-current="true"]::after,
.languages a:focus-visible::after { opacity: .8; transform: scaleX(1); }
.intro__languages { margin-top: clamp(27px, 4.8svh, 46px); color: var(--beige); gap: 9px; }
.entry-status {
  position: absolute;
  bottom: 12px;
  left: 16px;
  right: 16px;
  margin: 0;
  font-family: var(--sans);
  font-size: .875rem;
  line-height: 1.5;
  color: var(--beige);
}
.entry-status:empty { display: none; }

#home.home { min-height: 100svh; }
.banner {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--brown);
}

/* Preserve the complete original 4:3 composition at every viewport.
   No crop, fixed image height, tint, filter, mask, or background-size: cover. */
.banner__image {
  display: block;
  width: 100%;
  height: auto;
  flex: 0 0 100%;
}

.site-header {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(26px, 3.3vw, 48px) clamp(24px, 4.5vw, 70px);
}

.site-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.site-brand__name { font-size: clamp(1.625rem, 2.6vw, 2.45rem); font-weight: 400; letter-spacing: .2em; line-height: 1.1; }
.site-brand__tagline { font-size: clamp(.9375rem, 1.3vw, 1.125rem); line-height: 1.4; letter-spacing: .02em; color: #e2d2bc; }
.header__languages { margin-top: -8px; gap: 3px; }

body.is-entering .intro { pointer-events: none; }
body.is-entering .intro::before { animation: backdrop-dissolve 1700ms 2100ms cubic-bezier(.35,0,.3,1) both; }
body.is-entering .intro__signature { animation: text-dissolve 1450ms 750ms ease both; }
body.is-entering .intro__languages { animation: text-dissolve 1150ms 450ms ease both; }
body.is-returning .intro::before,
body.is-returning .intro__content { animation: entrance-return 800ms ease both; }

@keyframes backdrop-dissolve { from { opacity: 1; } to { opacity: 0; } }
@keyframes text-dissolve {
  from { opacity: 1; filter: blur(0); }
  to { opacity: 0; filter: blur(5px); }
}
@keyframes entrance-return { from { opacity: 0; } to { opacity: 1; } }

@media (hover: hover) {
  .languages a:hover { color: var(--ivory); }
  .languages a:hover::after { opacity: .65; transform: scaleX(1); }
}

@media (max-width: 600px) {
  .banner { flex-direction: column; }
  .banner__image { flex: none; margin-block: auto; }
  .site-header { position: relative; width: 100%; flex: none; padding: 27px 24px; gap: 19px; flex-wrap: wrap; }
  .site-brand { gap: 10px; }
  .site-brand__name { font-size: 1.75rem; letter-spacing: .15em; }
  .site-brand__tagline { font-size: 1rem; }
  .header__languages { margin: -6px -9px 0 0; gap: 0; }
  .header__languages a { min-width: 40px; padding-inline: 6px; }
  .header__languages > span { padding: 0 1px; }
  .wordmark { letter-spacing: .18em; padding-left: .18em; }
}

@media (max-width: 360px) {
  .site-header { gap: 20px; }
  .header__languages { width: 100%; justify-content: flex-start; margin-left: -8px; }
}

@media (max-height: 580px) and (min-width: 601px) {
  .intro__content { padding-block: 24px; }
  .emblem { width: min(27svh, 190px); margin-bottom: 12px; }
  .wordmark { font-size: 2.5rem; }
  .intro__tagline { margin-top: 8px; }
  .intro__languages { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
