/* ===================================================
   MOKSHA DESIGN — main stylesheet
   Design system: editorial, orange-forward, modern
   =================================================== */

:root {
  /* Corporate orange */
  --orange:         #F56A1C;
  --orange-light:   #FF7A2E;
  --orange-dark:    #C14A0A;
  --orange-tint:    #FFF1E7;

  /* Neutrals */
  --ink:            #0B0B0B;
  --ink-2:          #1A1A1A;
  --ink-3:          #2A2A2A;
  --paper:          #FAFAF7;
  --paper-2:        #F2F0EA;
  --muted:          #6E6A63;
  --rule:           #E4E1D8;

  /* Type */
  --font-display:   "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body:      "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono:      "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --gutter:         clamp(20px, 4vw, 56px);
  --maxw:           1440px;
  --radius:         4px;
  --ease:           cubic-bezier(.2,.7,.2,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4,h5 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--orange); color: #fff; }

/* ---------- utilities ---------- */
.section-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) var(--gutter) clamp(40px, 5vw, 72px);
}
.section-head--compact { padding-bottom: clamp(24px, 3vw, 40px); }
.section-head--dark { color: var(--paper); }
.section-head__eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin: 0 0 24px;
  text-transform: uppercase;
}
.section-head__eyebrow--light { color: var(--orange-light); }
.section-head__title {
  font-size: clamp(40px, 6.5vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  max-width: 16ch;
  margin-bottom: 32px;
  text-wrap: balance;
}
.section-head__title em {
  font-style: normal;
  color: var(--orange);
}
.section-head__lede {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
  max-width: 52ch;
  color: var(--muted);
}
.section-head--dark .section-head__lede { color: #a8a69e; }

/* =============== NAV =============== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  background: rgba(250, 250, 247, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(250, 250, 247, 0.92);
  border-bottom-color: var(--rule);
}
.nav.is-over-dark {
  background: rgba(11, 11, 11, 0.6);
  color: var(--paper);
  border-bottom-color: rgba(255,255,255,0.08);
}
.nav__logo svg { display: block; width: 112px; height: auto; fill: var(--orange); transition: fill .25s var(--ease); }
.nav__logo:hover svg { fill: var(--orange-light); }
.nav__hub {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px !important;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: 0.85;
  transition: all .25s var(--ease);
}
.nav__hub::after { display: none; }
.nav__hub svg { width: 44px; height: auto; fill: currentColor; display: block; }
.nav__hub:hover { background: var(--orange); color: #fff; border-color: var(--orange); opacity: 1; transform: translateY(-1px); }
.nav__contact { color: var(--orange) !important; }
.nav__contact::after { background: var(--orange) !important; }
.nav__links { display: flex; gap: clamp(18px, 2.5vw, 36px); align-items: center; }
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  position: relative;
  padding: 6px 0;
  transition: color .2s var(--ease);
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px !important;
  border-radius: 999px;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--orange); transform: translateY(-1px); }
.nav.is-over-dark .nav__cta { background: var(--orange); color: #fff; }
.nav.is-over-dark .nav__cta:hover { background: var(--orange-light); }
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.nav__burger span {
  width: 22px; height: 2px; background: currentColor; display: block;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    padding: 24px var(--gutter) 32px;
    gap: 20px;
    border-bottom: 1px solid var(--rule);
  }
  .nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* =============== HERO =============== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--paper);
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: 90px;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.78) saturate(1.05);
}
.hero__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 50% 45%, rgba(245,106,28,0.25), transparent 70%),
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.85) 100%);
}
.hero__meta {
  position: absolute;
  top: 108px; left: var(--gutter); right: var(--gutter);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250,250,247,0.55);
  z-index: 3;
}
@media (max-width: 700px) { .hero__meta { display: none; } }

.hero__content {
  position: relative;
  z-index: 2;
  align-self: end;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(60px, 8vw, 120px);
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--orange-light);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero__title {
  font-size: clamp(52px, 10vw, 168px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin-bottom: 32px;
  text-wrap: balance;
}
.hero__accent {
  color: var(--orange);
  font-weight: 600;
  font-style: italic;
  display: inline-block;
}
.hero__lede {
  max-width: 48ch;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
  color: rgba(250,250,247,0.78);
  margin-bottom: 36px;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all .25s var(--ease);
  border: 1px solid transparent;
}
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-light); transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(245,106,28,0.6); }
.btn--primary span { transition: transform .25s var(--ease); }
.btn--primary:hover span { transform: translateX(4px); }
.btn--ghost { border-color: rgba(250,250,247,0.25); color: var(--paper); }
.btn--ghost:hover { background: rgba(250,250,247,0.08); border-color: rgba(250,250,247,0.5); }

.hero__marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-top: 1px solid rgba(250,250,247,0.12);
  border-bottom: 1px solid rgba(250,250,247,0.12);
  padding: 18px 0;
  background: rgba(0,0,0,0.25);
}
.marquee__track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250,250,247,0.6);
}
.marquee__track span:nth-child(even) { color: var(--orange); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =============== SERVICES =============== */
.services {
  background: var(--paper);
  position: relative;
}
.services__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(80px, 10vw, 140px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 560px) {
  .services__grid { grid-template-columns: 1fr; gap: 16px; }
}
.service {
  background: transparent;
  padding: 40px 32px 44px;
  transition: background .3s var(--ease), color .3s var(--ease);
  position: relative;
}
.service__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}
.service__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: color .3s var(--ease);
}
.service__icon {
  width: 36px; height: 36px;
  opacity: 0.8;
  transition: filter .3s var(--ease), opacity .3s var(--ease), transform .4s var(--ease);
}
.service h3 {
  font-size: clamp(24px, 2.2vw, 32px);
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}
.service p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 42ch;
}
.service:hover { background: var(--orange); color: #fff; }
.service:hover .service__num { color: rgba(255,255,255,0.85); }
.service:hover p { color: rgba(255,255,255,0.88); }
.service:hover .service__icon { filter: brightness(0) invert(1); transform: rotate(-8deg) scale(1.08); opacity: 1; }

/* =============== ABOUT =============== */
.about {
  background: var(--paper-2);
  padding-bottom: clamp(80px, 10vw, 120px);
}
.about__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.about__card {
  padding: 40px;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--rule);
}
.about__card--wide { grid-column: span 7; display: flex; flex-direction: column; gap: 20px; }
.about__card--map { grid-column: span 5; position: relative; padding: 0; overflow: hidden; min-height: 340px; background: var(--ink); color: var(--paper); }
.about__card--map img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; filter: invert(1) hue-rotate(180deg); }
.about__card--map img { position: absolute; inset: 0; }
.about__locations {
  position: absolute;
  left: 32px; bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.about__locations li { display: flex; align-items: center; gap: 10px; }
.about__locations .dot { width: 8px; height: 8px; background: var(--orange); border-radius: 50%; box-shadow: 0 0 0 4px rgba(245,106,28,0.25); }
.about__card--moksha { grid-column: span 12; background: var(--ink); color: var(--paper); padding: clamp(40px, 5vw, 72px); border: none; }
.about__moksha-body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
@media (max-width: 860px) { .about__moksha-body { grid-template-columns: 1fr; gap: 40px; } }

.moksha-text__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  color: #fff;
}
.moksha-text__title em { color: var(--orange); font-style: italic; }

.founders { display: flex; flex-direction: column; gap: 18px; }
.about__kicker--muted { color: rgba(250,250,247,0.55) !important; }
.founders__row { display: flex; gap: 18px; flex-wrap: wrap; }
.founder { margin: 0; flex: 1 1 0; min-width: 160px; }
.founder__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-3);
}
.founder__photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease), filter .4s var(--ease);
  filter: grayscale(0.3);
}
.founder__photo figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 14px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.9));
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.2;
}
.founder__photo:hover img { transform: scale(1.06); filter: none; }
.about__kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.about__card p { font-size: 16px; line-height: 1.6; }
.about__card--wide p { color: var(--ink-2); }
.about__card--moksha p { color: rgba(250,250,247,0.78); }
.about__quote {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  max-width: 52ch;
  color: #fff !important;
  font-weight: 400;
}
.about__quote em { color: var(--orange); font-style: italic; }

@media (max-width: 860px) {
  .about__card--wide, .about__card--map { grid-column: span 12; }
  .about__card--moksha { padding: 32px; }
}

.team {
  max-width: var(--maxw);
  margin: clamp(60px, 8vw, 100px) auto 0;
  padding: 0 var(--gutter);
}
.team > .section-head__eyebrow { color: var(--orange); margin-bottom: 24px; }
.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.team__member { display: flex; flex-direction: column; gap: 18px; }
.team__photo {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
}
.team__photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease), filter .4s var(--ease);
  filter: grayscale(0.2);
}
.team__member:hover .team__photo img { transform: scale(1.04); filter: grayscale(0); }
.team__member h4 { font-size: 22px; letter-spacing: -0.02em; }
.team__member figcaption p { font-size: 13px; color: var(--muted); margin-top: 4px; font-family: var(--font-mono); letter-spacing: 0.04em; }

/* =============== CLIENTS =============== */
.clients { background: var(--paper); padding-bottom: clamp(80px, 10vw, 120px); }
.clients__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: transparent;
  border: none;
}
@media (max-width: 1100px) { .clients__grid { grid-template-columns: repeat(4, 1fr); } }
.client-cell {
  aspect-ratio: 1.4 / 1;
  background: var(--paper);
  display: grid;
  place-items: center;
  padding: 14px;
  transition: background .25s var(--ease);
}
.client-cell img {
  max-width: 100%;
  max-height: 90%;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(0.3);
  opacity: 0.85;
  transition: filter .3s var(--ease), opacity .3s var(--ease), transform .3s var(--ease);
}
.client-cell:hover { background: var(--paper); }
.client-cell:hover img {
  /* Turn logo orange */
  filter: brightness(0) saturate(100%) invert(47%) sepia(92%) saturate(1930%) hue-rotate(347deg) brightness(98%) contrast(93%);
  opacity: 1;
  transform: scale(1.08);
}

@media (max-width: 900px) { .clients__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .clients__grid { grid-template-columns: repeat(2, 1fr); } }

/* =============== CONTACT =============== */
.contact {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(80px, 10vw, 140px) var(--gutter) 0;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245,106,28,0.22), transparent 60%);
  pointer-events: none;
}
.contact__inner { max-width: var(--maxw); margin: 0 auto; position: relative; }
.contact__title {
  font-size: clamp(44px, 7vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 20px 0 56px;
  text-wrap: balance;
}
.contact__accent { color: var(--orange); font-style: italic; font-weight: 600; }
.contact__email {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 42px);
  letter-spacing: -0.025em;
  padding: 20px 0;
  border-top: 1px solid rgba(250,250,247,0.15);
  border-bottom: 1px solid rgba(250,250,247,0.15);
  width: 100%;
  transition: color .25s var(--ease), padding-left .3s var(--ease);
}
.contact__email span { color: var(--orange); font-size: 0.7em; transition: transform .3s var(--ease); }
.contact__email:hover { color: var(--orange); padding-left: 16px; }
.contact__email:hover span { transform: translate(6px, -6px); }

.contact__offices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 64px 0 80px;
}
@media (max-width: 640px) { .contact__offices { grid-template-columns: 1fr; gap: 36px; } }
.office__city {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.office__addr {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.4;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  color: #fff;
}
.office__tel {
  font-family: var(--font-mono);
  font-size: 14px;
  color: rgba(250,250,247,0.65);
  letter-spacing: 0.02em;
  transition: color .2s var(--ease);
}
.office__tel:hover { color: var(--orange); }

.footer {
  border-top: 1px solid rgba(250,250,247,0.1);
  padding: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__logo { width: 100px; height: auto; fill: var(--orange); opacity: 0.95; }
.footer p { font-family: var(--font-mono); font-size: 12px; color: rgba(250,250,247,0.5); letter-spacing: 0.05em; }

/* =============== reveal animations =============== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
