/* ===== Base reset ===== */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: #e8e8e8;
  background: #0b0c10;
  font: 400 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* ===== Bronze matrix background (tiled SVG) ===== */
.bg-matrix {
  position: fixed;
  inset: 0;
  z-index: -2;
  /* Bronze color: #cd7f32 at 16% opacity */
  --tile: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><rect width='100%' height='100%' fill='rgb(10,12,14)'/><g fill='rgba(205,127,50,0.16)' font-family='ui-monospace, SFMono-Regular, Menlo, Consolas, monospace' font-size='14'><text x='8' y='22'>01001100 01000101 01000001 01010000</text><text x='8' y='42'>00100110 01010000 01000101 01000101 01010000</text><text x='8' y='62'>01001001 01010011 01010010 00101111 01010011 01010100 01010010 01001001 01001011 01000101</text><text x='8' y='82'>01000111 01010000 01010011 00101101 01000100 01000101 01001110 01001001 01000101 01000100</text><text x='8' y='102'>01010110 01001001 01010011 01001001 01001111 01001110</text><text x='8' y='122'>01001000 01010101 01001101 01000001 01001110</text><text x='8' y='142'>00110001 00110000 00110000 00110001</text><text x='8' y='162'>01000001 01001101 01000101 01010010 01001001 01000011 01000001 01001110</text><text x='8' y='182'>01000011 01011001 01000010 01000101 01010010 01001110 01000101 01010100 01001001 01000011 01010011</text><text x='8' y='202'>00110010 00110000 00110110 00110010 00110101</text><text x='8' y='222'>01001111 01010111 01001100</text></g></svg>");
  background-image: var(--tile);
  background-size: 240px 240px;
  background-repeat: repeat;
  background-attachment: fixed;
}

/* Gentle vignette to keep text readable */
.bg-matrix::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(90% 70% at 50% 20%, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.78) 100%);
  pointer-events: none;
}

/* ===== Header / hero ===== */
.site-header {
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 56px) 16px 16px;
  text-align: center;
}

/* ✅ Lock the crest to a small, predictable size */
.brand-mark {
  width: clamp(120px, 14vw, 180px); /* ~original size range */
  height: auto;
  display: block;
  margin: 0 auto 14px;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.5)) drop-shadow(0 6px 20px rgba(0,0,0,0.35));
  max-width: none !important; /* defeat any global img rules */
}

/* Headline + subline */ 
/* Original simple version commented out to avoid overriding the detailed one below */
/* .hero-title {
  max-width: 1100px;
  margin: 6px auto 14px;
  line-height: 1.25;
  font-weight: 750;
  font-size: clamp(22px, 4.2vw, 44px);
  letter-spacing: 0.01em;
}
.hero-title .subtitle {
  display: block;
  font-weight: 650;
  margin-top: 6px;
  opacity: 0.95;
  font-size: clamp(16px, 2.2vw, 24px);
} */

/* Buttons */
.cta-row {
  display: flex; gap: 12px; flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}
.btn {
  appearance: none;
  text-decoration: none;
  color: #0b0c10;
  background: #C9B15A; /* gold */
  border: 0;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.btn:hover { transform: translateY(-1px); background: #D6C06A; }
.btn:active { transform: translateY(0); }

/* ===== Content cards ===== */
.content {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(22px, 3.2vw, 36px) 20px;
  background: rgba(10,12,14,0.55);
  backdrop-filter: blur(3px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.content + .content { margin-top: clamp(16px, 2.2vw, 24px); }

h2 {
  margin: 0 0 10px;
  font-size: clamp(18px, 2.1vw, 26px);
  letter-spacing: .02em;
}
p, li { color: #e6e6e6; }
.smallprint { color: #cfcfcf; font-size: .95rem; }
ul { padding-left: 1.1em; margin: .25em 0; }

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 26px 16px 40px;
  color: #b9c1bb;
  font-size: .95rem;
  opacity: .9;
}

/* ===== Motion preference ===== */
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

/* Headline + subline with classic font, title case, goldish metallic gradient, and shadows for shine (adjusted to match owl coloring) */
.hero-title {
  max-width: 1100px;
  margin: 6px auto 14px;
  line-height: 1.25;
  letter-spacing: 0.02em; /* Slight spacing for readability */
  text-transform: capitalize; /* Capitalizes first letter of each word */
}

.main-title {
  display: block;
  font-family: 'Times New Roman', Georgia, serif; /* Classic serif font */
  font-weight: 700; /* Bold for impact */
  font-size: clamp(24px, 4vw, 44px); /* Slightly increased for prominence, with clamp for responsiveness */
  background: linear-gradient(to bottom, #f7d36b 0%, #c9b15a 50%, #ad8633 100%); /* Gradient matched to owl: bright gold top, warm mid, bronze bottom */
  -webkit-background-clip: text; /* Clip gradient to text */
  -webkit-text-fill-color: transparent; /* Transparent text fill for gradient effect */
  color: transparent; /* Fallback for non-WebKit browsers */
  text-shadow: 
    0 -1px 1px rgba(255, 255, 255, 0.4), /* Subtle light highlight for shiny metallic effect (toned down opacity) */
    0 1px 2px rgba(0, 0, 0, 0.7), /* Deeper dark shadow for depth and contrast */
    0 0 5px rgba(255, 215, 0, 0.5); /* Gentle gold glow to match owl's reflective shine */
}

.subtitle {
  display: block;
  font-family: 'Times New Roman', Georgia, serif; /* Consistent classic font */
  font-weight: 400; /* Lighter for contrast */
  font-style: italic; /* Subtle emphasis */
  font-size: clamp(16px, 2.2vw, 26px); /* Slightly increased for balance with main title */
  background: linear-gradient(to bottom, #f7d36b 0%, #c9b15a 50%, #ad8633 100%); /* Same gradient for consistency */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-top: 6px;
  opacity: 0.95;
  text-shadow: 
    0 -1px 1px rgba(255, 255, 255, 0.4), /* Subtle light highlight */
    0 1px 2px rgba(0, 0, 0, 0.7), /* Deeper dark shadow */
    0 0 5px rgba(255, 215, 0, 0.5); /* Gentle gold glow */
}

/* Responsive adjustment to further reduce size on small screens if needed */
@media (max-width: 768px) {
  .main-title { font-size: clamp(20px, 5.5vw, 36px); }
  .subtitle { font-size: clamp(14px, 3.2vw, 20px); }
}