/* ============================================================
   Rishaba Entertainments — stylesheet
   Theme: cinematic green-black · beige · leaf green · gold
   Accents sampled directly from the bull-mark logo.
   ============================================================ */

:root {
  /* near-black carries a green undertone so the logo sits in its own light
     rather than on a neutral grey ground */
  --bg:        #080d09;
  --bg-2:      #0d140e;
  --bg-3:      #131c15;
  --ink:       #f0ead9;
  --ink-soft:  #c3bda9;
  --ink-dim:   #837e70;
  --line:      rgba(122,171,59,.24);
  --line-soft: rgba(255,255,255,.08);

  /* sampled from the logo: lit facets, mid leaf, shadowed facets, the gold R */
  --green:      #7aab3b;
  --green-2:    #a8d45f;
  --green-deep: #2f5d20;
  --forest:     #003813;
  --gold:       #c58a27;
  --gold-2:     #e0a94a;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --wrap: 1160px;
  --r: 14px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* offset anchor jumps so content clears the fixed nav */
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* lock scroll behind the mobile menu */
body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* visible keyboard focus everywhere */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

.wrap {
  width: min(var(--wrap), 100% - 2.4rem);
  margin-inline: auto;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; }

em { color: var(--green-2); font-style: italic; }
strong { color: var(--ink); font-weight: 600; }

/* ---------- shared bits ---------- */
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--green);
  margin: 0 0 1rem;
}

.section { padding: clamp(2.8rem, 5.5vw, 5rem) 0; position: relative; }
.section__title { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.01em; }
.section__head { max-width: 720px; margin-bottom: 2.2rem; }
.section__sub { color: var(--ink-soft); margin-top: 1rem; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
p { color: var(--ink-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .95rem 1.8rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  border: 1px solid transparent;
}
.btn--green {
  background: linear-gradient(135deg, var(--green-2), var(--green) 68%, var(--green-deep));
  color: #0a1406;
  box-shadow: 0 10px 30px -12px rgba(122,171,59,.55);
}
.btn--green:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -14px rgba(122,171,59,.7); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: var(--green); color: var(--green-2); transform: translateY(-3px); }
.btn--block { width: 100%; }

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 80;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--forest), var(--green-2));
  box-shadow: 0 0 12px rgba(122,171,59,.6);
  transition: width .1s linear;
  will-change: width;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  padding-top: env(safe-area-inset-top);
  transition: background .4s var(--ease), box-shadow .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(8,13,9,.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav__inner {
  width: min(var(--wrap), 100% - 2.4rem); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 0;
}

.brand { display: flex; align-items: center; gap: .7rem; }
/* bull-head mark cropped from the new logo, transparent — shown uncropped */
.brand__mark {
  width: 68px; height: 56px; flex: none;
  background: url("../assets/logo-mark.png?v=2") no-repeat 50% / contain;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.5));
}
/* wordmark supplied as artwork (was live text), so height drives it and width follows
   the 900x248 intrinsic ratio — never set both or the lettering skews */
.brand__wordmark {
  height: 46px; width: auto; flex: none;
  max-width: 52vw; object-fit: contain; object-position: left center;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.5));
  /* optical nudge: the bull's horns sit high, so centring the two blocks by box
     leaves the wordmark reading high against its head. Offset, not margin, so
     the nav bar's height is unaffected. */
  position: relative; top: 4px;
}

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { font-size: .92rem; color: var(--ink-soft); font-weight: 400; position: relative; transition: color .25s; }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--green); transition: width .3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:not(.nav__cta):hover::after,
.nav__links a.is-active:not(.nav__cta)::after { width: 100%; }
.nav__links a.is-active:not(.nav__cta) { color: var(--ink); }
.nav__cta {
  padding: .55rem 1.3rem; border: 1px solid var(--line); border-radius: 999px;
  color: var(--green-2); font-weight: 600;
}
.nav__cta:hover { background: var(--green); color: #0a1406; border-color: var(--green); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: 8rem 1rem 5rem;
  background:
    radial-gradient(120% 90% at 50% -10%, #16221a 0%, var(--bg) 55%),
    /* forest pool at the foot of the hero, echoing the logo's deepest facets */
    radial-gradient(90% 55% at 50% 108%, rgba(0,56,19,.55), transparent 68%),
    var(--bg);
  overflow: hidden;
}
.hero__glow {
  position: absolute; width: 900px; height: 900px; top: -30%; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(122,171,59,.14), transparent 60%);
  filter: blur(30px); pointer-events: none;
}
.hero__grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
}

.hero__content { position: relative; z-index: 2; max-width: 820px; }
.hero__emblem {
  width: clamp(168px, 30vw, 246px); aspect-ratio: 512 / 428; margin: 0 auto 1.8rem;
  background: url("../assets/logo-mark.png?v=2") no-repeat 50% / contain;
  filter:
    drop-shadow(0 0 46px rgba(122,171,59,.28))
    drop-shadow(0 22px 42px rgba(0,0,0,.65));
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-10px);} }

.hero__eyebrow {
  text-transform: uppercase; letter-spacing: .35em; font-size: .74rem;
  color: var(--green); font-weight: 600; margin: 0 0 1.4rem;
}
.hero__title { font-size: clamp(2.4rem, 6.5vw, 4.6rem); font-weight: 700; letter-spacing: -.015em; }
/* On desktop the headline sits on one line. The viewport-relative middle term shrinks
   it on narrower laptops so nowrap can never push it past the edge; it still reaches
   the full 4.6rem once there is room. Mobile keeps wrapping — one line is unreadable
   at phone widths. */
@media (min-width: 900px) {
  .hero__title { white-space: nowrap; font-size: clamp(3.2rem, 5vw, 4.6rem); }
}
.hero__lede { font-size: clamp(1.05rem, 2.3vw, 1.3rem); color: var(--ink-soft); max-width: 620px; margin: 1.6rem auto 2.4rem; }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero__scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2; }
.hero__scroll span {
  display: block; width: 22px; height: 36px; border: 1px solid var(--line); border-radius: 12px; position: relative;
}
.hero__scroll span::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; border-radius: 2px;
  background: var(--green); transform: translateX(-50%); animation: scroll 1.8s infinite;
}
@keyframes scroll { 0%{opacity:0;transform:translate(-50%,0)} 40%{opacity:1} 80%{opacity:0;transform:translate(-50%,12px)} }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  border-block: 1px solid var(--line-soft);
  background: var(--bg-2);
  overflow: hidden; padding: 1.1rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; align-items: center; gap: 2.5rem; white-space: nowrap; width: max-content;
  animation: marquee 32s linear infinite;
  will-change: transform;
}
.marquee__track span { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); font-style: italic; }
.marquee__track i { color: var(--green); font-style: normal; font-size: .8rem; }
/* explicit start state — mobile Safari won't animate a keyframe with only a "to" */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.about__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.about p + p { margin-top: 1rem; }

.pull-quote {
  margin: 2.4rem 0 0; padding: 1.5rem 0 1.5rem 1.6rem;
  border-left: 2px solid var(--gold);
  font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--ink);
}
.pull-quote cite { display: block; margin-top: .8rem; font-family: var(--sans); font-style: normal; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--green); }

.about__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--bg-3); padding: 1.8rem 1.4rem; }
.stat__num { display: block; font-family: var(--serif); font-size: 2.2rem; color: var(--gold-2); line-height: 1; }
.stat__label { display: block; margin-top: .6rem; font-size: .86rem; color: var(--ink-soft); }

/* ============================================================
   SERVICES
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: 2rem 1.7rem; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card:hover { transform: translateY(-6px); border-color: var(--line); box-shadow: 0 24px 50px -30px rgba(122,171,59,.5); }
.card__icon {
  width: 54px; height: 54px; display: grid; place-items: center; font-size: 1.5rem;
  border-radius: 12px; margin-bottom: 1.2rem;
  background: radial-gradient(circle at 30% 30%, rgba(122,171,59,.22), rgba(122,171,59,.06));
  border: 1px solid var(--line);
}
.card h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.card p { font-size: .95rem; }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects { background: var(--bg); }
.group-title {
  font-size: 1.4rem; color: var(--ink);
  margin: 2.6rem 0 1.4rem; padding-bottom: .8rem;
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: .8rem;
}
.group-title::before { content: ""; width: 26px; height: 2px; background: var(--green); }
.group-title--sm { font-size: 1.15rem; }

.project-list { display: flex; flex-direction: column; gap: 1.2rem; }
.project {
  display: grid; grid-template-columns: 130px 1fr; gap: 1.6rem;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: 1.6rem; transition: border-color .35s, transform .35s var(--ease);
}
.project:hover { border-color: var(--line); transform: translateX(4px); }
.project__poster {
  align-self: stretch;
  border-radius: 10px; min-height: 150px; position: relative; overflow: hidden;
  border: 1px solid var(--line-soft);
  background: linear-gradient(135deg, #161f18, #0c120d);
}
.project__poster img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Horizontal posters — left column sized to each image's own ratio */
.project--wide { grid-template-columns: 300px 1fr; gap: 1.4rem; align-items: start; }
.project--wide .project__poster { align-self: start; min-height: 0; width: 100%; aspect-ratio: auto; }
.project--wide .project__poster img { height: auto; object-fit: contain; }
.project--wide .project__poster img.poster-zoom { transform: scale(1.02); transform-origin: center; }

/* Vertical posters — sized to the artwork's own 3:5 ratio so nothing is cropped */
.project--tall { grid-template-columns: 220px 1fr; align-items: start; }
.project--tall .project__poster { align-self: start; min-height: 0; aspect-ratio: 971 / 1620; }
.project__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .8rem; }
.tag {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600;
  padding: .3rem .7rem; border-radius: 999px; color: var(--ink-soft);
  border: 1px solid var(--line-soft); background: rgba(255,255,255,.03);
}
.tag--released { color: var(--gold-2); border-color: rgba(197,138,39,.38); background: rgba(197,138,39,.10); }
.tag--dev { color: var(--green-2); border-color: var(--line); background: rgba(122,171,59,.08); }
.project__title { font-size: 1.6rem; margin-bottom: .6rem; }
.project__body p { font-size: .96rem; }
.project__credit { margin-top: .8rem; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green); font-weight: 500; }

/* ============================================================
   FOUNDER
   ============================================================ */
.founder { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.founder__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.founder__grid > :nth-child(3),
.founder__grid > :nth-child(4) { margin-top: clamp(1.5rem, 4vw, 3rem); padding-top: clamp(1.5rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.founder__card {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line); border-radius: 20px; padding: 2.4rem 2rem; text-align: center;
  box-shadow: 0 40px 80px -50px rgba(122,171,59,.4);
}
.founder__avatar {
  width: 96px; height: 96px; margin: 0 auto 1.2rem; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: #0a1406;
  background: linear-gradient(135deg, var(--green-2), var(--green));
  box-shadow: 0 0 0 6px rgba(122,171,59,.12);
}
.founder__name { font-size: 1.6rem; }
.founder__role { color: var(--green); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; margin: .4rem 0 1.4rem; }
.founder__contact { list-style: none; margin: 0 0 1.4rem; padding: 0; display: flex; flex-direction: column; gap: .5rem; font-size: .92rem; }
.founder__contact a:hover { color: var(--green-2); }
.founder__badge { display: inline-block; font-size: .74rem; letter-spacing: .08em; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); color: var(--green-2); }

.expertise { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }
.expertise span {
  font-size: .84rem; padding: .5rem 1rem; border-radius: 999px;
  border: 1px solid var(--line-soft); color: var(--ink-soft); transition: border-color .3s, color .3s;
}
.expertise span:hover { border-color: var(--green); color: var(--green-2); }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio { background: var(--bg); }
.vgroup { margin-top: 1.5rem; }
.ventures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.venture {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line-soft); border-radius: var(--r); padding: 1.6rem 1.5rem;
  transition: transform .35s var(--ease), border-color .35s; position: relative;
}
.venture:hover { transform: translateY(-5px); border-color: var(--line); }
.venture h4 { font-size: 1.25rem; margin-bottom: .4rem; }
.venture p { font-size: .9rem; margin: 0; }
.venture--soon::after {
  content: "Soon"; position: absolute; top: 1.2rem; right: 1.2rem;
  font-size: .62rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600;
  color: var(--green-2); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .55rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact__list { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1.2rem; }
.contact__list li { display: flex; flex-direction: column; gap: .2rem; }
.contact__k { font-size: .7rem; text-transform: uppercase; letter-spacing: .22em; color: var(--green); }
.contact__list a:hover { color: var(--green-2); }

.contact__form {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line-soft); border-radius: 20px; padding: 2rem;
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft); margin-bottom: .5rem; }
.field input, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line-soft); border-radius: 10px;
  color: var(--ink); font-family: var(--sans); font-size: .95rem; padding: .85rem 1rem; transition: border-color .3s, box-shadow .3s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-dim); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(122,171,59,.12); }
.form__note { margin: 1rem 0 0; font-size: .88rem; min-height: 1em; }
.form__note.is-ok { color: #8fe0b0; }
.form__note.is-err { color: #e88; }

/* ============================================================
   COLLABORATORS
   ============================================================ */
.collab { background: var(--bg); }
.collab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.collab-card {
  display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.3rem;
  border: 1px solid var(--line-soft); border-radius: var(--r);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  transition: transform .35s var(--ease), border-color .35s;
}
.collab-card:hover { transform: translateY(-4px); border-color: var(--line); }
.collab-card__avatar {
  width: 52px; height: 52px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1rem; color: #0a1406;
  background: linear-gradient(135deg, var(--green-2), var(--green));
  box-shadow: 0 0 0 4px rgba(122,171,59,.1);
}
.collab-card__name { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); margin: 0; line-height: 1.2; white-space: nowrap; }
/* Film credit rides on the name line, so it is sized down to fit beside it */
.name-film { font-family: var(--sans); font-size: .74rem; font-weight: 600; color: var(--green); letter-spacing: .01em; }
.collab-card__role { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--green); margin: .3rem 0 0; }
.collab-card__proj { font-size: .82rem; color: var(--ink-dim); margin: .15rem 0 0; }
.proj-hl { color: var(--green); font-weight: 600; }
.collab__note { margin: 1.4rem 0 0; font-size: .8rem; color: var(--ink-dim); font-style: italic; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--bg); }
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: .8rem; }
.faq-item {
  border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  transition: border-color .3s;
}
.faq-item[open] { border-color: var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 1.15rem 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--serif); font-size: 1.08rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; color: var(--green); font-family: var(--sans); font-size: 1.5rem; line-height: 1;
  transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item > p { margin: 0; padding: 0 1.4rem 1.3rem; font-size: .95rem; color: var(--ink-soft); }
.faq-item a { color: var(--green-2); }
.faq-item a:hover { text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-2); border-top: 1px solid var(--line-soft); padding: 3rem 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: .9rem; }
/* The footer mark used to be shrunk by a .brand__mark--sm modifier; it now matches the nav,
   so it just uses .brand__mark and the modifier is gone. Keep the wordmark at the nav's 46px
   to match — sizing the bull alone would leave the lockup bull-heavy. */
.footer__wordmark { display: block; height: 46px; width: auto; max-width: 60vw; }
/* Bigger offset than the nav's 4px, and deliberately so — it lands in the same place.
   The nav centres a lone 46px wordmark against the mark, but here the centred stack is
   wordmark + tagline (46 + .45rem + .72rem x 1.7 line box = ~73px), so flex centring starts
   the wordmark ~13px higher than the nav does. 13 + the nav's own 4px optical nudge = 17px,
   which puts the wordmark's centre 4px below the bull's centre in both lockups.
   Applied to the whole stack so the wordmark keeps its spacing above the tagline. */
.footer__brand-text { position: relative; top: 17px; }
.footer__tag { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--green); margin: .45rem 0 0; }
.footer__links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer__links a { font-size: .9rem; color: var(--ink-soft); }
.footer__links a:hover { color: var(--green-2); }
.footer__copy {
  font-size: .82rem; color: var(--ink-dim); margin: 0; width: 100%;
  padding-top: 1.5rem; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap;
}
.footer__credit { color: var(--ink-dim); letter-spacing: .04em; }
.footer__credit strong {
  color: var(--green-2); font-weight: 600;
  background: linear-gradient(90deg, var(--green-2), var(--green));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
@media (max-width: 560px) { .footer__copy { flex-direction: column; align-items: flex-start; } }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.to-top {
  position: fixed; z-index: 55;
  right: max(1.2rem, env(safe-area-inset-right));
  bottom: max(1.2rem, env(safe-area-inset-bottom));
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: rgba(13,20,14,.72); color: var(--green-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), background .3s, border-color .3s;
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--green); color: #0a1406; border-color: var(--green); }

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

/* neutralise lift-on-hover for touch (avoids "stuck" hover states) */
@media (hover: none) {
  .card:hover, .venture:hover, .project:hover,
  .btn--green:hover, .btn--ghost:hover { transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* nav collapses to a menu here so the full link set never crowds the bar */
@media (max-width: 900px) {
  .nav__toggle { display: flex; z-index: 70; }
  .nav__links {
    position: fixed; inset: 0 0 auto 0;
    padding: calc(5.5rem + env(safe-area-inset-top)) 1.8rem 2.5rem;
    flex-direction: column; align-items: flex-start; gap: 1.3rem;
    background: rgba(8,13,9,.98);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 30px 60px -30px rgba(0,0,0,.9);
    transform: translateY(-120%); transition: transform .45s var(--ease);
    max-height: 100dvh; overflow-y: auto;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { font-size: 1.2rem; width: 100%; padding: .15rem 0; }
  .nav__cta { align-self: flex-start; padding: .7rem 1.6rem; }
  .nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* tablet / small laptop */
@media (max-width: 940px) {
  /* clears the fixed nav, whose height is set by the 48px brand mark plus padding */
  html { scroll-padding-top: 92px; }
  .about__grid, .founder__grid, .contact__grid { grid-template-columns: 1fr; }
  .cards, .ventures { grid-template-columns: repeat(2, 1fr); }
  .collab-grid { grid-template-columns: repeat(2, 1fr); }
  .founder__grid { gap: 2.5rem; }
  .about__stats { max-width: 520px; }
}

/* mobile */
@media (max-width: 720px) {
  body { font-size: 16px; }

  .section { padding: clamp(1.6rem, 5vw, 2.4rem) 0; }
  .section__head { margin-bottom: 1.3rem; }
  .group-title { margin: 1.6rem 0 1rem; }
  .cards, .ventures, .about__stats, .collab-grid { grid-template-columns: 1fr; }
  .about__stats { max-width: none; }
  .card { padding: 1.7rem 1.4rem; }
  .project { grid-template-columns: 1fr; gap: 1.1rem; padding: 1.3rem; }
  .project:hover { transform: none; }
  .project__poster { min-height: 0; width: 190px; max-width: 60%; aspect-ratio: 2 / 3; }
  .project--wide .project__poster { width: 100%; max-width: none; aspect-ratio: auto; }
  .project--wide .project__poster img.poster-zoom { transform: scale(1.04); transform-origin: center; }
  .project--tall { grid-template-columns: 1fr; }
  .project--tall .project__poster { width: 240px; max-width: 66%; aspect-ratio: 971 / 1620; margin-inline: auto; }
  .hero { padding: 7rem 1.2rem 4.5rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .marquee__track span { font-size: 1.1rem; }
  .pull-quote { font-size: 1.15rem; }
  .founder__card { padding: 2rem 1.5rem; }
  .faq-item summary { font-size: 1rem; }
}

/* small phones */
@media (max-width: 400px) {
  .brand__wordmark { height: 38px; top: 3px; }
  .hero__title { font-size: clamp(2rem, 9vw, 2.6rem); }
  .stat { padding: 1.5rem 1.2rem; }
  .contact__form { padding: 1.5rem 1.3rem; }
  .collab-card { padding: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  /* the brand ticker is a core element — keep it gently moving (a frozen
     marquee just looks like a broken, cut-off list) */
  .marquee__track { animation: marquee 60s linear infinite !important; }
}
