/* === Site palette — replace if rebranding === */
:root {
  --color-accent: #f3c846;
  --color-bg-deep: #4f0303;
  --color-bg-mid: #c31b1b;
  --color-surface: #ffffff;
  --color-text-on-dark: #ffffff;
  --color-text-on-light: #1a0a0a;
  --color-muted-on-dark: rgba(255, 255, 255, 0.78);
  --color-muted-on-light: #5c3d3d;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Instrument Sans", var(--font-sans);
  --radius-lg: 20px;
  --radius-md: 12px;
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.35);
  --max-width: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-on-light);
  background: var(--color-bg-deep);
  min-height: 100vh;
}

/* --- Typography --- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

a {
  color: var(--color-bg-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-bg-deep);
}

/* --- Layout shell --- */
.page {
  background: linear-gradient(
    165deg,
    var(--color-bg-deep) 0%,
    #5a0808 42%,
    var(--color-bg-mid) 100%
  );
  min-height: 100vh;
  position: relative;
  overflow-x: clip;
}

/* Decorative grain overlay (subtle texture) */
.page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.wrap {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.65rem clamp(1rem, 4vw, 2rem);
  background: linear-gradient(
    180deg,
    rgba(79, 3, 3, 0.95) 0%,
    rgba(79, 3, 3, 0.75) 70%,
    transparent 100%
  );
  backdrop-filter: blur(8px);
}

@media (max-width: 520px) {
  .site-header {
    justify-content: center;
  }

  .site-header .nav-links {
    width: 100%;
    justify-content: center;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-text-on-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  color: var(--color-muted-on-dark);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--color-accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  background: var(--color-accent);
  color: var(--color-text-on-light) !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none !important;
  box-shadow: 0 4px 20px rgba(243, 200, 70, 0.35);
}

.nav-cta:hover {
  filter: brightness(1.05);
  color: var(--color-text-on-light) !important;
}

/* --- Home: unique hero (angled panel + habit-ring motif) --- */
.hero {
  padding: clamp(2rem, 6vw, 4rem) 0 clamp(3rem, 8vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.hero-copy {
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  color: var(--color-text-on-dark);
  margin: 0 0 1rem;
  max-width: 14ch;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--color-muted-on-dark);
  margin: 0 0 1.5rem;
  max-width: 38ch;
}

.keyword-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.75rem;
}

.keyword-pills span {
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(243, 200, 70, 0.35);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
}

.hero-visual {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring-stack {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1;
}

.ring-stack svg {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Screenshot film strip (unique) --- */
.film-section {
  padding: 0 0 3rem;
}

.film-head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .film-head {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }
}

.film-head h2 {
  color: var(--color-text-on-dark);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0;
}

.film-head p {
  margin: 0;
  color: var(--color-muted-on-dark);
  font-size: 0.95rem;
  max-width: 32ch;
}

.film-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0 1.5rem;
  margin: 0 -1rem;
  padding-inline: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) rgba(255, 255, 255, 0.1);
}

.film-strip::-webkit-scrollbar {
  height: 6px;
}

.film-strip::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

.film-strip::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 3px;
}

.film-frame {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: min(220px, 72vw);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(243, 200, 70, 0.25);
  box-shadow: var(--shadow-soft);
}

.film-frame img {
  width: 100%;
  height: auto;
  vertical-align: middle;
  display: block;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  background: #2a0a0a;
}

.film-perf {
  display: flex;
  gap: 0.35rem;
  padding: 0.4rem 0.6rem;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.film-perf span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.6;
}

/* --- Story + features --- */
.story-block {
  background: var(--color-surface);
  color: var(--color-text-on-light);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-soft);
}

.story-block p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--color-muted-on-light);
}

.story-block p:last-child {
  margin-bottom: 0;
}

.features-zigzag {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 2rem 0 0;
  position: relative;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-top: 1px solid rgba(195, 27, 27, 0.15);
  align-items: start;
}

@media (min-width: 720px) {
  .feature-row {
    grid-template-columns: 120px 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0;
  }
}

.feature-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-bg-mid);
  line-height: 1;
  opacity: 0.9;
}

.feature-row h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: var(--color-text-on-light);
}

.feature-row p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted-on-light);
}

.closing-band {
  text-align: center;
  padding: 2.5rem 1rem 3rem;
  color: var(--color-muted-on-dark);
  font-size: 1.05rem;
  max-width: 42ch;
  margin-inline: auto;
}

/* Repeating rhythm strip (decorative, home only) */
.rhythm-strip {
  width: 100%;
  overflow: hidden;
  padding: 0.85rem 0;
  margin: 0 0 1rem;
  border-block: 1px solid rgba(243, 200, 70, 0.2);
  background: rgba(0, 0, 0, 0.15);
}

.rhythm-strip-inner {
  display: flex;
  width: max-content;
  animation: rhythm-scroll 32s linear infinite;
  gap: 2.5rem;
  align-items: center;
  opacity: 0.85;
}

@keyframes rhythm-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.rhythm-strip-inner svg {
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .rhythm-strip-inner {
    animation: none;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
  }
}

/* --- Inner pages --- */
.inner-hero {
  padding: 2.5rem 0 1.5rem;
}

.inner-hero h1 {
  color: var(--color-text-on-dark);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.5rem;
}

.inner-meta {
  color: var(--color-muted-on-dark);
  font-size: 0.9rem;
  margin: 0;
}

.prose {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 3rem;
  box-shadow: var(--shadow-soft);
}

.prose h2 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.75rem;
  color: var(--color-text-on-light);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--color-muted-on-light);
  font-size: 0.98rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose a {
  color: var(--color-bg-mid);
  font-weight: 500;
}

/* Contacts */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
}

.contact-card h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  color: var(--color-text-on-light);
}

.dl-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dl-list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(79, 3, 3, 0.08);
  font-size: 0.95rem;
}

.dl-list li:last-child {
  border-bottom: none;
}

.dl-list dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-bg-mid);
  font-weight: 600;
}

.dl-list dd {
  margin: 0;
  color: var(--color-text-on-light);
}

.form-block label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-muted-on-light);
  margin-bottom: 0.35rem;
}

.form-block input,
.form-block textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(79, 3, 3, 0.2);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.form-block textarea {
  min-height: 120px;
  resize: vertical;
}

.form-block button {
  background: var(--color-bg-mid);
  color: var(--color-text-on-dark);
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
}

.form-block button:hover {
  filter: brightness(1.08);
}

.form-note {
  font-size: 0.8rem;
  color: var(--color-muted-on-light);
  margin-top: 0.75rem;
}

/* --- Footer --- */
.site-footer {
  padding: 2rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

.footer-inner {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 600px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand {
  color: var(--color-muted-on-dark);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.footer-links a {
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* --- Legal small on inner pages --- */
.legal-footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
  padding-bottom: 2rem;
}
