/* ============================================================
   JOGUAR — Brand Stylesheet
   Palette: gold on black. Fast by nature. Intelligent by design.
   ============================================================ */

:root {
  /* ---- Brand palette (extracted from the Joguar emblem) ---- */
  --gold-bright:  #F1BB75;  /* highlight / hover */
  --gold:         #E6A93C;  /* primary accent */
  --gold-deep:    #B8883E;  /* muted gold, borders */
  --bronze:       #70501F;  /* deep shadow gold */
  --amber-glow:   #F5A623;  /* motion-line glow */

  --black:        #060606;  /* page base */
  --ink:          #0C0C0D;  /* raised surface */
  --ink-2:        #131315;  /* card surface */
  --ink-3:        #1B1B1E;  /* hover surface */
  --line:         #262529;  /* hairline borders */

  --white:        #F4F1EC;  /* primary text */
  --smoke:        #B7B3AC;  /* secondary text */
  --smoke-dim:    #6F6C67;  /* tertiary / captions */

  /* ---- Fonts ---- */
  --font-display: 'Clash Display', 'Georgia', serif;
  --font-body:    'Satoshi', 'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* ---- Type scale ---- */
  --text-hero:  clamp(2.8rem, 7vw, 6rem);
  --text-2xl:   clamp(2.1rem, 4.5vw, 3.4rem);
  --text-xl:    clamp(1.5rem, 3vw, 2.1rem);
  --text-lg:    1.25rem;
  --text-base:  1.0625rem;
  --text-sm:    0.9375rem;
  --text-xs:    0.8125rem;

  /* ---- Spacing ---- */
  --sp-section: clamp(5rem, 10vw, 9rem);
  --container:  1200px;

  --radius: 14px;
  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.gold { color: var(--gold); }
em { font-style: italic; color: var(--gold-bright); }

/* ---- Eyebrow (mono label) ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.1rem;
}

/* ---- Section titles ---- */
.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-2xl);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 1rem;
}
.section__lede { max-width: 62ch; color: var(--smoke); font-size: var(--text-lg); margin-bottom: 3rem; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6,6,6,0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.header--scrolled { border-bottom-color: var(--line); background: rgba(6,6,6,0.9); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--gold); }
.brand__mark { width: 46px; height: auto; display: block; transition: opacity 0.2s; }
.brand__word {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.5rem; letter-spacing: 0.005em;
  color: var(--white);
}
.brand__jo { color: var(--gold); margin-right: 0.01em; }
.brand:hover .brand__mark { opacity: 0.82; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { font-size: var(--text-sm); color: var(--smoke); transition: color 0.2s; }
.nav a:hover { color: var(--white); }
.nav__cta {
  color: var(--black) !important; background: var(--gold);
  padding: 0.55rem 1.1rem; border-radius: 999px; font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}
.nav__cta:hover { background: var(--gold-bright); transform: translateY(-1px); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--white); transition: 0.3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile { display: none; flex-direction: column; padding: 0 clamp(1.25rem,4vw,2.5rem); border-bottom: 1px solid var(--line); background: var(--ink); overflow: hidden; max-height: 0; transition: max-height 0.4s var(--ease); }
.nav__mobile.open { max-height: 380px; }
.nav__mobile a { padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--smoke); font-size: var(--text-base); }
.nav__mobile a:last-child { border-bottom: 0; }
.nav__mobile .nav__cta { color: var(--gold) !important; background: none; padding: 1rem 0; }

/* ============================================================
   HERO — full-bleed jaguar background, native text overlay
   ============================================================ */
.hero {
  position: relative;
  min-height: min(90vh, 820px);
  display: flex; align-items: center;
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(5rem, 9vw, 8rem);
  overflow: hidden;
  background: var(--black);
}
/* The jaguar sits full-bleed, anchored right */
.hero__jaguar {
  position: absolute; top: 50%; right: 0; transform: translateY(-50%);
  height: 108%; width: auto; max-width: 68%;
  object-fit: cover; object-position: right center;
  z-index: 0;
  animation: jaguarIn 1.4s var(--ease) both;
}
@keyframes jaguarIn { from { opacity: 0; transform: translate(4%, -50%); } to { opacity: 1; transform: translate(0, -50%); } }

/* Left-to-right scrim so headline stays legible over the black-to-jaguar transition */
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--black) 0%, var(--black) 30%, rgba(6,6,6,0.72) 48%, rgba(6,6,6,0.15) 66%, transparent 82%),
    linear-gradient(0deg, var(--black) 2%, transparent 22%);
}
.hero__glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(45% 55% at 72% 45%, rgba(230,169,60,0.14), transparent 70%);
}

.hero__inner { position: relative; z-index: 2; }
.hero__copy { max-width: 640px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-hero);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
  text-shadow: 0 2px 40px rgba(0,0,0,0.8);
}
.hero__lede { font-size: var(--text-lg); color: var(--smoke); max-width: 52ch; margin-bottom: 2rem; text-shadow: 0 1px 20px rgba(0,0,0,0.7); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.2rem; }
.hero__tag { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--smoke-dim); letter-spacing: 0.02em; }

/* Scroll hint */
.scroll-hint { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 3; }
.scroll-hint span { display: block; width: 22px; height: 36px; border: 2px solid var(--gold-deep); border-radius: 12px; position: relative; }
.scroll-hint span::after { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 3px; height: 7px; background: var(--gold); border-radius: 2px; animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0%{opacity:0;transform:translate(-50%,0)} 40%{opacity:1} 80%{opacity:0;transform:translate(-50%,12px)} 100%{opacity:0} }

/* ============================================================
   MARQUEE STRIP
   ============================================================ */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink); overflow: hidden; padding: 1rem 0; }
.strip__track { display: flex; gap: 2rem; white-space: nowrap; width: max-content; animation: marquee 32s linear infinite; font-family: var(--font-mono); font-size: var(--text-sm); color: var(--smoke); text-transform: uppercase; letter-spacing: 0.08em; }
.strip__track i { color: var(--gold); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: var(--sp-section) 0; }
.section--alt { background: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---- Pillars ---- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.pillar {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem 1.9rem; transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.pillar:hover { transform: translateY(-6px); border-color: var(--gold-deep); box-shadow: 0 24px 50px -30px rgba(230,169,60,0.35); }
.pillar__icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: rgba(230,169,60,0.08); border: 1px solid rgba(230,169,60,0.2); color: var(--gold); margin-bottom: 1.4rem; }
.pillar__icon svg { width: 26px; height: 26px; }
.pillar h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); margin-bottom: 0.7rem; letter-spacing: -0.01em; }
.pillar p { color: var(--smoke); font-size: var(--text-base); }

/* ---- Why grid ---- */
.whygrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 3rem; margin-top: 3rem; }
.why { position: relative; padding-left: 3.5rem; }
.why__num { position: absolute; left: 0; top: 0; font-family: var(--font-mono); font-size: 1.25rem; color: var(--gold-deep); }
.why h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); margin-bottom: 0.5rem; }
.why p { color: var(--smoke); }

/* ---- Tenets / standards manifesto ---- */
.tenets { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3rem; }
.tenet {
  position: relative; padding: 2rem 2rem 2.1rem 2.4rem; border: 1px solid var(--line);
  border-radius: 14px; background: var(--ink);
}
.tenet::before {
  content: ""; position: absolute; left: 0; top: 1.9rem; bottom: 1.9rem; width: 3px;
  border-radius: 3px; background: linear-gradient(180deg, var(--gold), rgba(230,169,60,0.15));
}
.tenet__k {
  display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg);
  color: var(--white); margin-bottom: 0.6rem;
}
.tenet p { color: var(--smoke); font-size: var(--text-base); line-height: 1.6; }
.versus__foot { margin-top: 2.5rem; font-size: var(--text-lg); color: var(--white); max-width: 62ch; }
.versus__foot::before { content: ""; }

/* ---- Steps ---- */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin: 3rem 0 4.5rem; }
.step { position: relative; padding-top: 1.5rem; border-top: 2px solid var(--line); transition: border-color 0.3s; }
.step:hover { border-top-color: var(--gold); }
.step__k { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--gold); display: block; margin-bottom: 0.8rem; }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); margin-bottom: 0.5rem; }
.step p { color: var(--smoke); font-size: var(--text-sm); }

/* ---- Delivery model ---- */
.model { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 3rem); }
.model__title { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); margin-bottom: 2rem; }
.model__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.model__item h4 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); margin: 0.9rem 0 0.4rem; }
.model__item p { color: var(--smoke); font-size: var(--text-sm); }
.tag { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; padding: 0.3rem 0.65rem; border-radius: 6px; display: inline-block; }
.tag--build  { background: rgba(230,169,60,0.14); color: var(--gold-bright); border: 1px solid rgba(230,169,60,0.3); }
.tag--define { background: rgba(183,179,172,0.1);  color: var(--smoke); border: 1px solid var(--line); }
.tag--stream { background: rgba(245,166,35,0.12);  color: var(--amber-glow); border: 1px solid rgba(245,166,35,0.28); }
.tag--only   { background: rgba(112,80,31,0.18);   color: var(--gold-deep); border: 1px solid rgba(112,80,31,0.4); }

/* ---- Engagement ---- */
.engage { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
.engage__item { background: var(--black); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.5rem; transition: border-color 0.3s; }
.engage__item:hover { border-color: var(--gold-deep); }
.engage__item h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); margin-bottom: 0.6rem; }
.engage__item p { color: var(--smoke); font-size: var(--text-sm); }
.engage__note { margin-top: 2rem; font-family: var(--font-mono); font-size: var(--text-sm); color: var(--smoke-dim); }

/* ---- About ---- */
.about { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); }
.about__body p { color: var(--smoke); font-size: var(--text-lg); margin-bottom: 1.4rem; }
.about__body strong { color: var(--white); }
.beliefs { list-style: none; margin-top: 2rem; display: grid; gap: 1rem; }
.beliefs li { padding-left: 1.6rem; position: relative; color: var(--smoke); }
.beliefs li::before { content: "→"; position: absolute; left: 0; color: var(--gold); }
.beliefs strong { color: var(--white); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500; padding: 0.85rem 1.6rem; border-radius: 999px; cursor: pointer; transition: all 0.25s var(--ease); border: 1px solid transparent; }
.btn--primary { background: var(--gold); color: var(--black); }
.btn--primary:hover { background: var(--gold-bright); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(230,169,60,0.55); }
.btn--ghost { border-color: var(--line); color: var(--white); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn--lg { padding: 1.05rem 2.2rem; font-size: var(--text-base); }

/* ============================================================
   CTA
   ============================================================ */
.cta { padding: var(--sp-section) 0; background:
  radial-gradient(70% 120% at 50% 0%, rgba(230,169,60,0.14), transparent 60%), var(--black);
  border-top: 1px solid var(--line); text-align: center; }
.cta__inner { max-width: 720px; }
.cta h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-2xl); letter-spacing: -0.01em; margin-bottom: 1rem; }
.cta p { color: var(--smoke); font-size: var(--text-lg); margin-bottom: 2rem; }
.cta__meta { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--smoke-dim); margin-top: 1.8rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); border-top: 1px solid var(--line); padding: 3.5rem 0; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.footer__brand .brand { gap: 0.7rem; }
.footer__brand .brand__mark { width: 52px; }
.footer__brand .brand__word { font-size: 1.5rem; }
.footer__brand p { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--smoke-dim); margin-top: 0.4rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__nav a { font-size: var(--text-sm); color: var(--smoke); transition: color 0.2s; }
.footer__nav a:hover { color: var(--gold); }
.footer__legal { font-size: var(--text-xs); color: var(--smoke-dim); width: 100%; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .pillars, .model__grid, .engage, .steps { grid-template-columns: repeat(2, 1fr); }
  .whygrid { grid-template-columns: 1fr; gap: 2rem; }
  .tenets { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero__jaguar { max-width: 82%; opacity: 0.92; }
  .hero__scrim { background:
    linear-gradient(90deg, var(--black) 0%, var(--black) 22%, rgba(6,6,6,0.82) 44%, rgba(6,6,6,0.4) 64%, rgba(6,6,6,0.15) 100%),
    linear-gradient(0deg, var(--black) 4%, transparent 26%); }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile { display: flex; }
  .pillars, .model__grid, .engage, .steps { grid-template-columns: 1fr; }
  .hero { min-height: 90vh; align-items: flex-start; padding-top: 2.5rem; }
  .hero__title { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  /* On phones: jaguar as a top backdrop, text below on solid black */
  .hero__jaguar { top: 0; right: 0; transform: none; height: 42%; width: 100%; max-width: 100%; object-fit: cover; object-position: right top; animation: none; }
  .hero__scrim { background:
    linear-gradient(180deg, rgba(6,6,6,0.05) 0%, rgba(6,6,6,0.5) 24%, var(--black) 40%, var(--black) 100%); }
  .hero__inner { margin-top: 33vh; }
  .hero__title, .hero__lede { text-shadow: none; }
  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
