/* Cion Bros: ink-black page, warm-ivory type. Palette and type per brand guidelines v1.4.
   On dark grounds small text is Warm Ivory or Rule; Stone is decoration only (never small text). */
:root {
  --ink: #141313;
  --ivory: #F7F4ED;
  --rule: #D9D5CB;
  --stone: #8C8A84; /* decoration only */
  --font-label: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Lora", Georgia, "Times New Roman", serif;
  color-scheme: dark;
}

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

html { background: var(--ink); }

/* The page fills the screen; any spare height goes into the About section, so the footer rests at the bottom with nothing below it. */
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; display: flex; flex-direction: column; }

:focus-visible { outline: 2px solid var(--ivory); outline-offset: 4px; }

/* Masthead */
.masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(2.5rem, 7vw, 6rem) max(1rem, env(safe-area-inset-right)) clamp(2rem, 4vw, 3.5rem) max(1rem, env(safe-area-inset-left));
  text-align: center;
  animation: rise 1.2s cubic-bezier(.2, .7, .2, 1) both;
}

.wordmark { margin: 0; width: min(100%, 90rem); line-height: 0; }
.wordmark img { display: block; width: 100%; height: auto; }

/* Inter Medium, uppercase, tracked within the guideline range (+150 to +220) */
.subtitle {
  margin: clamp(1.25rem, 2.5vw, 2.25rem) 0 0;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: clamp(0.75rem, 1.1vw, 0.875rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding-left: 0.22em; /* optically centers the tracked text */
}

/* Hero video */
.hero {
  position: relative;
  flex: none;
  width: 100%;
  aspect-ratio: 2.39 / 1;
  overflow: hidden;
  background: var(--ink) url("assets/hero-poster.jpg") center / cover no-repeat;
  animation: fade 1.6s ease-out .15s both;
}
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Discreet pause/play control */
.hero-toggle {
  position: absolute;
  right: max(1rem, env(safe-area-inset-right));
  bottom: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(247, 244, 237, 0.5);
  border-radius: 50%;
  background: rgba(20, 19, 19, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: var(--ivory);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity .2s ease, background-color .2s ease;
}
.hero-toggle:hover, .hero-toggle:focus-visible { opacity: 1; background: rgba(20, 19, 19, 0.8); }
.hero-toggle[hidden] { display: none; }
.hero-toggle .icon-play { display: none; margin-left: 2px; }
.hero-toggle[data-state="paused"] .icon-pause { display: none; }
.hero-toggle[data-state="paused"] .icon-play { display: block; }

/* About */
.about {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) max(1rem, env(safe-area-inset-right)) clamp(3rem, 7vw, 6rem) max(1rem, env(safe-area-inset-left));
  text-align: center;
}
.label {
  margin: 0 0 1.5rem;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rule);
  padding-left: 0.2em;
}
.about p {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.6;
}

/* Footer */
.footer {
  flex: none;
  border-top: 1px solid rgba(140, 138, 132, 0.28);
  padding: 1.5rem max(1rem, env(safe-area-inset-right)) calc(1.5rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  text-align: center;
}
.footer p {
  margin: 0;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--rule);
}

@keyframes rise { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Mobile: keep the hero wide but give it more height so the light stays legible */
@media (max-width: 640px) {
  .hero { aspect-ratio: 16 / 10; }
  .subtitle { letter-spacing: 0.2em; padding-left: 0.2em; }
}

@media (prefers-reduced-motion: reduce) {
  .masthead, .hero { animation: none; }
  .hero-toggle { transition: none; }
}
