/* ============================================================
   FluidTacticsEskrima — warm earth editorial
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg: #f5efe4;          /* warm off-white paper */
  --bg-deep: #241a10;     /* deep espresso for inverted half */
  --ink: #2b1e14;         /* deep espresso ink */
  --ink-soft: #6b5a48;    /* softened body text on paper */
  --accent: #c25a37;      /* muted terracotta */
  --secondary: #6a7a4a;   /* soft moss green */
  --line: rgba(43, 30, 20, 0.14);
  --paper-card: #efe6d4;  /* slightly deeper paper for cards */
  --paper-card-dark: #2f2418;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Bricolage Grotesque", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; margin: 0; }
p { margin: 0; }

/* ---------- Animated noise field (background) ---------- */
.noise {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
}
.noise rect { width: 100%; height: 100%; }

/* ---------- Header ---------- */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  animation: slideDown 0.7s ease both;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.1rem; height: 2.1rem;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 50%;
}
.brand-name { font-weight: 600; }
.brand-name span { color: var(--accent); font-weight: 400; }
.nav { display: flex; gap: clamp(0.9rem, 2.2vw, 1.8rem); flex-wrap: wrap; }
.nav a {
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding: 0.2rem 0;
  transition: color 0.25s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

/* ---------- Sections (general) ---------- */
main { position: relative; z-index: 1; }
.section {
  padding: clamp(4.5rem, 10vw, 8.5rem) clamp(1.25rem, 6vw, 5rem);
  max-width: 1200px;
  margin: 0 auto;
}
.section.alt {
  max-width: none;
  background: var(--bg-deep);
  color: var(--bg);
}
.section-head { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-head h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 300;
  letter-spacing: -0.01em;
}
.section.alt .eyebrow { color: #e08a63; }
.section.alt h2 { color: var(--bg); }

/* ---------- Kinetic weight-shift H1 ---------- */
.hero-title {
  font-variation-settings: "wght" 200;
  font-size: clamp(3.4rem, 11vw, 8.5rem);
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 0.92;
  transition: font-variation-settings 0.5s ease;
}
.hero-title:hover { font-variation-settings: "wght" 900; }

/* ---------- HERO — diagonal split ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding-top: 4.5rem;
}
.hero-half {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem);
  position: relative;
}
.hero-light {
  background: var(--bg);
  color: var(--ink);
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
  z-index: 2;
}
.hero-dark {
  background: var(--bg-deep);
  color: var(--bg);
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -12%;
  align-items: flex-end;
  text-align: right;
}
.hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  animation: fadeUp 0.8s ease both;
  animation-delay: 0.24s;
}
.hero-title { animation: typeIn 1.1s ease both; animation-delay: 0.05s; }
.hero-sub {
  margin-top: 1.4rem;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  animation: fadeUp 0.8s ease both;
  animation-delay: 0.36s;
}
.hero-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  line-height: 1.4;
  color: #e8dcc6;
  max-width: 16ch;
  margin-left: auto;
  animation: fadeUp 0.8s ease both;
  animation-delay: 0.48s;
}
.hero-cta {
  display: inline-block;
  margin-top: 2.2rem;
  padding: 0.85rem 1.8rem;
  border: 1.5px solid var(--accent);
  color: var(--bg);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  transition: background 0.3s ease, color 0.3s ease;
  animation: fadeUp 0.8s ease both;
  animation-delay: 0.6s;
}
.hero-cta:hover { background: var(--accent); color: var(--bg-deep); }

/* ---------- Philosophy prose ---------- */
.prose {
  max-width: 62ch;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
}
.prose p + p { margin-top: 1.4rem; }
.prose em { font-family: var(--serif); font-style: italic; color: var(--ink); }
.prose p:first-of-type { font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: var(--ink); line-height: 1.45; }

/* ---------- Ranges ---------- */
.range-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.range-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  padding: 2rem 1.8rem;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.range-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(43,30,20,0.12); }
.range-num {
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--secondary);
  line-height: 1;
  display: block;
  margin-bottom: 1.2rem;
}
.range-card h3 { font-size: 1.35rem; margin-bottom: 0.9rem; }
.range-card p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Practice drag band ---------- */
.band-hint {
  margin-top: 1.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.band-hint::before { content: "⟵ ⟶"; color: var(--accent); letter-spacing: 0.2em; }
.band {
  overflow-x: auto;
  cursor: grab;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  user-select: none;
  -webkit-user-select: none;
  padding-bottom: 1rem;
}
.band::-webkit-scrollbar { display: none; }
.band.dragging { cursor: grabbing; }
.band.dragging .band-card { pointer-events: none; }
.band-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
}
.band-card {
  width: clamp(260px, 30vw, 360px);
  min-height: 300px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.band-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.9rem;
  position: relative;
}
.band-card h3::before {
  content: "";
  position: absolute;
  top: -1.2rem; left: 0;
  width: 2.4rem; height: 3px;
  background: var(--accent);
}
.band-card p { color: var(--ink-soft); font-size: 0.98rem; }
.band-card-end { background: var(--bg-deep); }
.band-card-end h3 { color: var(--bg); }
.band-card-end p { color: #c9bda6; }

/* ---------- Principles ---------- */
.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 820px;
}
.principles li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.8rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(245,239,228,0.14);
}
.principles li:first-child { padding-top: 0; }
.principles li:last-child { border-bottom: none; padding-bottom: 0; }
.principle-num {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--secondary);
  line-height: 1;
}
.principles h3 { font-size: 1.4rem; margin-bottom: 0.6rem; color: var(--bg); }
.principles p { color: #b7aa92; font-size: 1rem; max-width: 56ch; }

/* ---------- Classes ---------- */
.class-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.class-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  padding: 2rem 1.8rem;
}
.class-card h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.class-meta {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.class-card p:not(.class-meta):not(.class-time) { color: var(--ink-soft); font-size: 0.98rem; }
.class-time {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 600;
}
.class-note {
  margin-top: 2.2rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4rem);
}
.contact-info .contact-line { margin-bottom: 1.8rem; color: #b7aa92; }
.contact-info strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--bg);
  margin-bottom: 0.3rem;
}
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c9bda6;
}
.contact-form input,
.contact-form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(245,239,228,0.3);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.5rem 0;
  transition: border-color 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.contact-form button {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--accent);
  border: none;
  color: var(--bg-deep);
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
.contact-form button:hover { background: #d06a45; }
.form-status { font-size: 0.9rem; color: #e08a63; text-transform: none; letter-spacing: 0; }

/* ---------- Footer ---------- */
.site-foot {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.5rem 1.25rem 3.5rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}
.site-foot p + p { margin-top: 0.4rem; }
.muted { opacity: 0.6; }
.attribution a { color: inherit; text-decoration: none; }
.attribution a:hover { color: var(--accent); }

/* ---------- Page-load orchestration keyframes ---------- */
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeUp {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes typeIn {
  from { opacity: 0; letter-spacing: 0.08em; }
  to { opacity: 1; letter-spacing: -0.02em; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-light { clip-path: none; padding-bottom: 1rem; }
  .hero-dark {
    clip-path: none;
    margin-left: 0;
    align-items: flex-start;
    text-align: left;
    padding-top: 3rem;
  }
  .hero-quote { margin-left: 0; }
  .range-grid { grid-template-columns: 1fr; }
  .class-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .site-head { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .nav { gap: 1rem; }
  .hero { padding-top: 8rem; }
}

@media (max-width: 560px) {
  .nav { gap: 0.85rem; }
  .nav a { font-size: 0.72rem; }
  .band-card { width: 260px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .noise rect { animation: none; }
  .site-head, .hero-kicker, .hero-title, .hero-sub,
  .hero-quote, .hero-cta { animation: none; }
  .hero-title { font-variation-settings: "wght" 700; }
  .hero-title:hover { font-variation-settings: "wght" 700; }
  .range-card, .band-card { transition: none; }
  .range-card:hover { transform: none; box-shadow: none; }
}
