/* ==========================================================
   Bound by Fate: Frontiers of Blood — Official site styles
   ========================================================== */

:root {
  /* palette */
  --ink: #0b0a09;          /* page base */
  --stone: #141210;        /* panels */
  --stone-2: #1c1916;
  --gold: #c9b28a;         /* parchment gold, headings */
  --gold-bright: #ecdcb6;
  --gold-dim: #8f7c5e;
  --blood: #7a1414;
  --blood-bright: #b3261e;
  --text: #ddd4c4;
  --muted: #a69b8b;
  --line: rgba(201, 178, 138, .26);
  --line-strong: rgba(201, 178, 138, .5);

  /* type */
  --display: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --body: "EB Garamond", "Garamond", "Georgia", serif;

  /* layout */
  --header-h: 72px;
  --container: 1380px;
  --gutter: clamp(1rem, 4vw, 3rem);

  color-scheme: dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* subtle stone grain */
  background-image:
    radial-gradient(ellipse 120% 60% at 50% 110%, rgba(122, 20, 20, .10), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .8 0 0 0 0 .7 0 0 0 0 .55 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3 { margin: 0; font-weight: 500; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--gold); color: var(--ink);
  padding: .6rem 1rem; font-family: var(--display); text-decoration: none;
}
.skip-link:focus { top: calc(1rem + env(safe-area-inset-top, 0px)); }

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

/* ---------- Icons ---------- */
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
svg .fill { fill: currentColor; stroke: none; }
.chev { width: .95em; height: .95em; stroke-width: 2; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .9rem;
  min-height: 52px;
  padding: .8rem 2.2rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-bright);
  border: 1px solid var(--gold-dim);
  position: relative;
  transition: border-color .2s, box-shadow .2s, background-color .2s, color .2s;
}
.btn::after { /* inner hairline, like engraved frame */
  content: ""; position: absolute; inset: 3px;
  border: 1px solid rgba(236, 220, 182, .12);
  pointer-events: none;
}
.btn--blood {
  background: linear-gradient(180deg, #8e1a18 0%, #5c0d0d 100%);
  border-color: #c79a63;
  box-shadow: 0 0 22px rgba(179, 38, 30, .35), inset 0 1px 0 rgba(255, 210, 170, .18);
}
.btn--blood:hover { box-shadow: 0 0 30px rgba(179, 38, 30, .6), inset 0 1px 0 rgba(255, 210, 170, .25); border-color: var(--gold-bright); }
.btn--ghost {
  background: rgba(11, 10, 9, .55);
  border-color: var(--gold-dim);
}
.btn--ghost:hover { border-color: var(--gold-bright); background: rgba(11, 10, 9, .8); }
.btn--small { min-height: 40px; padding: .45rem 1.1rem; font-size: .9rem; letter-spacing: .1em; }
.btn .chev { transition: transform .2s; }
.btn:hover .chev { transform: translateX(3px); }

.text-link {
  font-family: var(--display);
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--text);
}
.text-link:hover { color: var(--gold-bright); }

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid rgba(201, 178, 138, .14);
  transition: border-color .3s;
}
/* background lives on a pseudo-element so the blur doesn't trap the fixed mobile menu */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11, 10, 9, .92), rgba(11, 10, 9, .72));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-scrolled::before { background: rgba(11, 10, 9, .96); }
.site-header__inner {
  height: var(--header-h);
  max-width: 1500px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 2rem;
}

.brand img { height: 46px; width: auto; }
.brand { flex-shrink: 0; display: block; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1rem, 2.4vw, 2.6rem); }
.main-nav a {
  font-family: var(--display);
  font-size: .86rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  padding: .5rem 0;
  position: relative;
}
.main-nav a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 0;
  height: 1px; background: var(--blood-bright);
  transition: left .2s, right .2s;
}
.main-nav a:hover { color: var(--gold-bright); }
.main-nav a:hover::after, .main-nav a[aria-current]::after { left: 0; right: 0; }
.main-nav__mobile-actions { display: none; }

.header-actions { display: flex; align-items: center; gap: 1.2rem; }
.header-actions__sep { width: 1px; height: 22px; background: var(--line); }
.icon-btn {
  background: none; border: 0; padding: .4rem; cursor: pointer;
  font-size: 1.25rem; color: var(--text); display: grid; place-items: center;
}
.icon-btn:hover { color: var(--gold-bright); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: 1px solid var(--line); cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 1.5px; background: var(--gold); transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  --hero-h: clamp(700px, 96vh, 920px);
  --overlap: clamp(6rem, 14vh, 9.5rem);
  position: relative;
  height: var(--hero-h);
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}
.hero__art { position: absolute; top: 0; bottom: 0; z-index: -3; background-repeat: no-repeat; }
.hero__art--base {
  inset: 0;
  background-image: url("../img/hero-base.webp");
  background-size: cover;
  background-position: center 35%;
  filter: blur(4px) brightness(.4) saturate(.85);
  transform: scale(1.05);
}
/* Knight (left) and fortress (right) keep their proportions on any screen,
   anchored to the bottom corners and fading into the sky and the centre. */
.hero {
  --art-h: min(calc(var(--hero-h) * .8), 38vw);
}
.hero__art--left,
.hero__art--right {
  top: auto;
  height: var(--art-h);
  background-size: cover;
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}
.hero__art--left {
  left: calc(var(--art-h) * -.22); /* nudge the knight out from behind the logo */
  width: calc(var(--art-h) * 1.561);
  background-image: url("../img/hero-left.webp");
  background-position: left bottom;
  -webkit-mask-image: linear-gradient(90deg, #000 58%, transparent 88%), linear-gradient(180deg, transparent 0, #000 22%);
          mask-image: linear-gradient(90deg, #000 58%, transparent 88%), linear-gradient(180deg, transparent 0, #000 22%);
}
.hero__art--right {
  right: 0;
  width: calc(var(--art-h) * 1.639);
  background-image: url("../img/hero-right.webp");
  background-position: right bottom;
  -webkit-mask-image: linear-gradient(270deg, #000 58%, transparent 88%), linear-gradient(180deg, transparent 0, #000 22%);
          mask-image: linear-gradient(270deg, #000 58%, transparent 88%), linear-gradient(180deg, transparent 0, #000 22%);
}
.hero__shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 27% 50% at 50% 44%, rgba(11, 10, 9, .8) 0%, rgba(11, 10, 9, .45) 55%, transparent 100%),
    linear-gradient(180deg, rgba(11, 10, 9, .7) 0%, transparent 16%, transparent 58%, rgba(11, 10, 9, .85) 86%, var(--ink) 100%);
}

.hero__banner {
  position: absolute;
  top: calc(var(--hero-h) - var(--art-h) + 3.2rem);
  right: 0;
  width: calc(var(--art-h) * .37);
  margin: 0;
  padding-inline: 1.2rem;
  text-align: center;
  font-family: var(--display);
  font-size: .95rem;
  line-height: 1.75;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(236, 220, 182, .72);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
}

.hero__content {
  position: relative;
  height: 100%;
  padding: calc(var(--header-h) + clamp(1rem, 4vh, 2.5rem)) var(--gutter) calc(var(--overlap) + 2.5rem);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.hero__motto {
  display: flex; justify-content: center;
  gap: clamp(4rem, 12vw, 9rem);
  margin: 0 0 -.4rem;
  font-family: var(--display);
  font-size: .82rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--gold);
  position: relative; z-index: 1;
}
.hero__motto span { display: inline-block; }
.hero__title {
  position: relative;
  display: inline-block;
  line-height: 0;
  translate: var(--plx, 0) var(--ply, 0);
}
.hero__title img {
  position: relative;
  width: min(560px, 86vw, 56vh);
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, .75));
}
/* red aura that breathes behind the emblem */
.hero__aura {
  position: absolute; left: 50%; top: 52%;
  width: 118%; aspect-ratio: 1.6;
  translate: -50% -50%;
  background: radial-gradient(ellipse at center, rgba(179, 38, 30, .32) 0%, rgba(122, 20, 20, .14) 38%, transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}
/* light sweep across the metal — masked to the logo's own shape */
.hero__sheen {
  position: absolute; inset: 0;
  pointer-events: none;
  -webkit-mask: url("../img/logo-emblem-800.webp") center / 100% 100% no-repeat;
          mask: url("../img/logo-emblem-800.webp") center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 244, 220, .0) 42%, rgba(255, 244, 220, .75) 50%, rgba(255, 244, 220, 0) 58%, transparent 62%) no-repeat;
  background-size: 250% 100%;
  background-position: 130% 0;
  mix-blend-mode: overlay;
  opacity: 0;
}
.hero__lead {
  max-width: 36em;
  margin: .4rem auto 2rem;
  font-size: clamp(1.08rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: #eee6d7;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .9);
}
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem; }

/* ---------- Atmosphere layers ---------- */
.hero__art--left, .hero__art--right, .hero__banner {
  translate: var(--plx, 0) var(--ply, 0);
}
.hero__embers {
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
}
.hero__fog { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.hero__fog span {
  position: absolute;
  width: 70%; height: 38%;
  bottom: 12%;
  background: radial-gradient(ellipse at center, rgba(190, 180, 170, .13), transparent 70%);
  filter: blur(24px);
}
.hero__fog span:nth-child(1) { left: -20%; }
.hero__fog span:nth-child(2) { right: -25%; bottom: 20%; height: 30%; opacity: .8; }
.hero__flash {
  --fx: 70%;
  position: absolute; inset: 0; z-index: -3;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse 40% 35% at var(--fx) 18%, rgba(190, 205, 255, .5), rgba(150, 160, 220, .12) 45%, transparent 75%);
  mix-blend-mode: screen;
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* page-load sequence */
  .hero__title img { animation: emblem-rise 1.6s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__aura { animation: aura-in 1.8s ease-out both, aura-breathe 5.5s ease-in-out 1.8s infinite; }
  .hero__sheen { animation: sheen 7s ease-in-out 1.5s infinite; }
  .hero__motto span { animation: motto-in 1.4s cubic-bezier(.2, .7, .2, 1) .6s both; }
  .hero__lead { animation: rise-in 1s ease .95s both; }
  .hero__cta { animation: rise-in 1s ease 1.15s both; }
  .hero__banner { animation: fade-in 2s ease 1.4s both; }
  .hero__art--left { animation: art-in-left 2.2s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__art--right { animation: art-in-right 2.2s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__art--base { animation: base-in 2.4s ease both; }
  .hero__embers { animation: fade-in 3s ease .6s both; }

  /* ambient loops */
  .hero__fog span:nth-child(1) { animation: fog-a 38s ease-in-out infinite alternate; }
  .hero__fog span:nth-child(2) { animation: fog-b 46s ease-in-out infinite alternate; }
  .hero__flash.is-on { animation: lightning 1.6s ease-out; }
  .btn--glow { animation: glow-pulse 3.2s ease-in-out 2.4s infinite; }
}
@keyframes emblem-rise {
  0%   { opacity: 0; transform: translateY(18px) scale(.94); filter: drop-shadow(0 0 0 rgba(179, 38, 30, 0)) brightness(.4) blur(4px); }
  55%  { opacity: 1; filter: drop-shadow(0 0 46px rgba(179, 38, 30, .55)) brightness(1.15) blur(0); }
  100% { opacity: 1; transform: none; filter: drop-shadow(0 8px 30px rgba(0, 0, 0, .75)) brightness(1) blur(0); }
}
@keyframes aura-in { 0% { opacity: 0; scale: .6; } 50% { opacity: 1; scale: 1.15; } 100% { opacity: .75; scale: 1; } }
@keyframes aura-breathe { 0%, 100% { opacity: .75; scale: 1; } 50% { opacity: 1; scale: 1.06; } }
@keyframes sheen {
  0%, 55% { opacity: 0; background-position: 130% 0; }
  58%     { opacity: 1; }
  85%     { opacity: 1; }
  90%, 100% { opacity: 0; background-position: -30% 0; }
}
@keyframes motto-in { from { opacity: 0; transform: scaleX(.8); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes art-in-left  { from { opacity: 0; transform: translateX(-40px) scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes art-in-right { from { opacity: 0; transform: translateX(40px) scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes base-in { from { opacity: 0; transform: scale(1.15); } to { opacity: 1; transform: scale(1.05); } }
@keyframes fog-a { from { transform: translateX(0); } to { transform: translateX(45%); } }
@keyframes fog-b { from { transform: translateX(0); } to { transform: translateX(-40%); } }
@keyframes lightning {
  0% { opacity: 0; } 6% { opacity: .9; } 12% { opacity: .15; } 18% { opacity: .6; } 100% { opacity: 0; }
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 22px rgba(179, 38, 30, .35), inset 0 1px 0 rgba(255, 210, 170, .18); }
  50%      { box-shadow: 0 0 38px rgba(210, 50, 36, .65), inset 0 1px 0 rgba(255, 210, 170, .3); }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================
   Feature cards
   ========================================================== */
.features {
  position: relative; z-index: 2;
  margin-top: calc(-1 * clamp(6rem, 14vh, 9.5rem)); /* = --overlap */
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 1.6vw, 1.5rem);
}
.feature {
  position: relative;
  display: block;
  aspect-ratio: 2.27 / 1;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--stone);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .55);
  transition: border-color .25s;
}
.feature::before { /* inner frame + pointer glare */
  content: ""; position: absolute; inset: 4px; z-index: 2;
  border: 1px solid rgba(201, 178, 138, .1);
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 226, 180, .16), transparent 45%);
  background-origin: border-box;
  opacity: 0;
  transition: opacity .3s, border-color .3s;
  pointer-events: none;
}
.feature:hover::before { opacity: 1; border-color: rgba(201, 178, 138, .3); }
.feature {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: border-color .25s, transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
}
.feature:hover { box-shadow: 0 20px 50px rgba(0, 0, 0, .6), 0 0 26px rgba(179, 38, 30, .18); }
.feature img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .4s;
  filter: brightness(.85);
}
.feature::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(11, 10, 9, .9) 100%);
}
.feature__text {
  position: absolute; left: 1.4rem; bottom: 1.1rem; right: 3.4rem; z-index: 3;
  display: flex; flex-direction: column; gap: .15rem;
}
.feature__title {
  font-family: var(--display);
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.feature__sub {
  font-family: var(--display);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.feature > .chev {
  position: absolute; right: 1.3rem; bottom: 1.5rem; z-index: 3;
  font-size: 1.15rem; color: var(--gold-bright);
  transition: transform .25s;
}
.feature:hover { border-color: var(--line-strong); }
.feature:hover img { transform: scale(1.05); filter: brightness(1); }
.feature:hover > .chev { transform: translateX(4px); }

/* ==========================================================
   News
   ========================================================== */
.news { padding-block: clamp(2.5rem, 5vw, 3.5rem) clamp(3rem, 6vw, 5rem); }
.news__layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr);
  gap: clamp(1rem, 1.6vw, 1.5rem);
  align-items: stretch;
}

.section-head {
  display: flex; align-items: center; gap: 1.5rem;
  margin-bottom: 1.2rem;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-bright);
  white-space: nowrap;
}
.section-head__rule {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--line-strong), rgba(201, 178, 138, .08));
}
.section-head__link {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--display);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}
.section-head__link:hover { color: var(--gold-bright); }

.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 1.6vw, 1.5rem);
}
.post__link {
  position: relative;
  display: block; height: 100%;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--stone);
  overflow: hidden;
  transition: border-color .25s;
}
.post__link img {
  width: 100%; aspect-ratio: 2.25 / 1; object-fit: cover;
  filter: brightness(.9);
  transition: filter .3s;
}
.post__body {
  position: relative;
  margin-top: -3.2rem;
  padding: 0 1rem 1.1rem;
  background: linear-gradient(180deg, transparent 0, var(--stone) 3.2rem);
  padding-top: 2.6rem;
}
.post time {
  display: block;
  font-family: var(--display);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.post h3 {
  margin: .3rem 0 .35rem;
  font-family: var(--display);
  font-size: 1.02rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.post p { margin: 0; font-size: 1.02rem; line-height: 1.5; color: var(--text); }
.post__link:hover { border-color: var(--line-strong); }
.post__link:hover img { filter: brightness(1.05); }
.post__link:hover h3 { color: #fff4d9; }

.quote {
  margin: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2.5rem 1.8rem;
  text-align: center;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 30%, rgba(122, 20, 20, .12), transparent 70%),
    rgba(20, 18, 16, .7);
  position: relative;
}
.quote::before {
  content: ""; position: absolute; inset: 5px;
  border: 1px solid rgba(201, 178, 138, .08); pointer-events: none;
}
.quote blockquote { margin: 0; }
.quote p {
  margin: 0;
  font-family: var(--body);
  font-style: italic;
  font-size: clamp(1.3rem, 1.7vw, 1.55rem);
  line-height: 1.45;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}
.quote__rule { width: 56px; height: 1px; background: var(--blood-bright); margin: 1.3rem 0 1rem; }
.quote figcaption {
  font-family: var(--display);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.quote figcaption::before { content: "— "; }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(8, 7, 6, .9);
  padding-block: 1.6rem 1.2rem;
}
.site-footer__inner {
  max-width: 1500px;
  display: flex; align-items: center; gap: 1.5rem 2rem; flex-wrap: wrap;
  justify-content: space-between;
}
.brand--footer img { height: 50px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .4rem 2rem; }
.footer-nav a, .site-footer__motto {
  font-family: var(--display);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}
.footer-nav a:hover { color: var(--gold-bright); }
.site-footer__motto { margin: 0; white-space: nowrap; }

.socials { list-style: none; margin: 0; padding: 0; display: flex; gap: .5rem; }
.socials a {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  font-size: 1.35rem;
  color: var(--text);
  transition: color .2s;
}
.socials a:hover { color: var(--gold-bright); }

.site-footer__legal {
  max-width: 1500px;
  margin: 1.2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(201, 178, 138, .08);
  font-size: .9rem;
  color: #7d7366;
}

/* ==========================================================
   Search dialog
   ========================================================== */
.search {
  width: min(680px, calc(100vw - 2rem));
  margin: calc(var(--header-h) + 3rem) auto auto;
  padding: 0;
  background: var(--stone);
  color: var(--text);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
}
.search::backdrop { background: rgba(5, 4, 4, .72); backdrop-filter: blur(3px); }
.search__form { display: flex; align-items: center; gap: .8rem; padding: .6rem .8rem .6rem 1.2rem; }
.search__form > svg { font-size: 1.3rem; color: var(--gold); flex-shrink: 0; }
.search input {
  flex: 1; min-width: 0;
  background: none; border: 0;
  color: var(--gold-bright);
  font-family: var(--body); font-size: 1.25rem;
  padding: .8rem 0;
}
.search input:focus { outline: none; }
.search input::placeholder { color: var(--muted); }
.search__close {
  background: none; border: 1px solid var(--line); cursor: pointer;
  font-family: var(--display); font-size: .72rem; letter-spacing: .12em;
  padding: .4rem .7rem; color: var(--muted);
}
.search__close:hover { color: var(--gold-bright); border-color: var(--line-strong); }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1200px) {
  .header-actions__login, .header-actions__sep { display: none; }
  .main-nav ul { gap: 1.2rem; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .features__grid .feature { aspect-ratio: 2.6 / 1; }
  .news__layout { grid-template-columns: 1fr; }
  .quote { padding-block: 2rem; }
}

@media (max-width: 1100px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    left: 0; right: 0; bottom: 0;
    flex-direction: column; justify-content: flex-start;
    padding: 1.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
    background: rgba(11, 10, 9, .98);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    visibility: hidden; opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility 0s .25s;
  }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid rgba(201, 178, 138, .12); }
  .main-nav a { display: block; padding: 1.05rem 0; font-size: 1.05rem; }
  .main-nav a::after { display: none; }
  .main-nav__mobile-actions { display: block; padding-top: 1.5rem; }
  .header-actions { margin-left: auto; gap: .8rem; }
  .site-header__inner { gap: 1rem; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .brand img { height: 38px; }
  .hero { --hero-h: max(640px, 100svh); }
  .hero__art--left { display: none; }
  .hero { --art-h: calc(var(--hero-h) * .62); }
  .hero__art--right { /* centre the fortress on phones */
    right: auto;
    left: 50%;
    translate: calc(-39% + var(--plx, 0px)) var(--ply, 0px);
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%);
            mask-image: linear-gradient(180deg, transparent 0, #000 30%);
  }
  .hero__banner { display: none; }
  .hero__shade {
    background:
      radial-gradient(ellipse 90% 30% at 50% 30%, rgba(11, 10, 9, .65), transparent 100%),
      linear-gradient(180deg, rgba(11, 10, 9, .6) 0%, rgba(11, 10, 9, .25) 45%, rgba(11, 10, 9, .55) 72%, var(--ink) 100%);
  }
  .hero__motto { gap: 1.6rem; font-size: .64rem; letter-spacing: .2em; white-space: nowrap; }
  .hero__cta { flex-direction: column; align-items: stretch; width: min(320px, 100%); gap: .9rem; }
  .features__grid, .news__grid { grid-template-columns: 1fr; }
  .features__grid .feature { aspect-ratio: 2.3 / 1; }
  .section-head { flex-wrap: wrap; gap: .6rem 1rem; }
  .section-head__rule { order: 3; flex-basis: 100%; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .header-actions .btn--small { display: none; }
}
@media (max-width: 420px) {
  .btn { padding-inline: 1.4rem; }
}

/* ==========================================================
   Scroll reveal (only hides content when JS is running)
   ========================================================== */
.js .reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity .8s ease, translate .9s cubic-bezier(.2, .7, .2, 1), border-color .25s, transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
}
.js .reveal.is-visible { opacity: 1; translate: none; }

/* Button shine on hover */
.btn { overflow: hidden; white-space: nowrap; }
.btn::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 236, 200, .28), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .btn:hover::before { left: 130%; transition: left .7s ease; }
}

/* Section heading rule draws itself in */
.js .section-head.reveal .section-head__rule { transform-origin: left; transform: scaleX(0); transition: transform 1.2s cubic-bezier(.2, .7, .2, 1) .3s; }
.js .section-head.reveal.is-visible .section-head__rule { transform: none; }

/* ==========================================================
   Language switcher
   ========================================================== */
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: .4rem;
  height: 40px; padding: 0 .7rem;
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--display); font-size: .82rem; letter-spacing: .1em;
  color: var(--text);
  transition: border-color .2s, color .2s;
}
.lang__btn > svg:first-child { font-size: 1.15rem; }
.lang__caret { font-size: .9rem; transition: transform .2s; }
.lang__btn:hover, .lang.is-open .lang__btn { color: var(--gold-bright); border-color: var(--line); }
.lang.is-open .lang__caret { transform: rotate(180deg); }
.lang__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 190px;
  margin: 0; padding: .4rem;
  list-style: none;
  background: rgba(20, 18, 16, .98);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
}
.lang__menu:not([hidden]) { animation: menu-in .18s ease-out; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.lang__menu button {
  width: 100%;
  display: flex; align-items: center; gap: .8rem;
  padding: .65rem .8rem;
  background: none; border: 0; cursor: pointer;
  text-align: left;
  font-family: var(--body); font-size: 1.05rem;
  color: var(--text);
}
.lang__menu button span {
  font-family: var(--display); font-size: .72rem; letter-spacing: .1em;
  color: var(--muted);
  width: 2em;
}
.lang__menu button:hover, .lang__menu button:focus-visible { background: rgba(201, 178, 138, .08); color: var(--gold-bright); outline: none; }
.lang__menu button[aria-current="true"] { color: var(--gold-bright); }
.lang__menu button[aria-current="true"]::after {
  content: ""; margin-left: auto;
  width: 6px; height: 6px; background: var(--blood-bright); transform: rotate(45deg);
}

@media (max-width: 1480px) {
  .header-actions__login, .header-actions__sep { display: none; }
}
@media (max-width: 1400px) {
  .site-header__inner { gap: 1.25rem; }
  .main-nav ul { gap: clamp(.9rem, 1.6vw, 1.6rem); }
  .main-nav a { font-size: .8rem; letter-spacing: .08em; }
  .header-actions { gap: .6rem; }
  .brand img { height: 40px; }
}
@media (max-width: 760px) {
  .lang__btn { padding: 0 .4rem; }
  .lang__caret { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
