/* ============================================================
   STOXOS — Business & Investment Consulting
   Design system: deep navy + gold, serif display + Inter
   ============================================================ */

:root {
  --bg: #f6f3ec;
  --bg-2: #efeadf;
  --ink: #0b1a2b;
  --ink-2: #1a2b40;
  --muted: #566578;
  --line: rgba(11, 26, 43, 0.12);
  --gold: #c9a24a;
  --gold-2: #e6c684;
  --white: #ffffff;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --container: 1200px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 18px 32px;
  background: rgba(246, 243, 236, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand__logo { height: 30px; width: auto; }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-size: 14px; font-weight: 500; color: var(--ink);
  position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--gold);
  transition: width .3s ease;
}
.nav__links a:hover::after { width: 100%; }

.nav__right { display: flex; align-items: center; gap: 14px; }
.lang {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 6px 12px;
  font: 600 12px/1 var(--sans);
  letter-spacing: .08em;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: border-color .2s;
}
.lang:hover { border-color: var(--ink); }
.lang__opt { opacity: .45; transition: opacity .2s, color .2s; }
.lang__opt.is-active { opacity: 1; color: var(--gold); }
.lang__sep { opacity: .4; }

.nav__burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px;
  font: 500 14px/1 var(--sans); letter-spacing: .01em;
  transition: transform .2s ease, background .2s, color .2s, border-color .2s;
  cursor: pointer; border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-2); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--ghost-light { border-color: rgba(255,255,255,.4); color: var(--white); }
.btn--ghost-light:hover { background: var(--white); color: var(--ink); }

/* ===== EYEBROW ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--sans);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--light { color: rgba(255,255,255,.7); }
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 74, 0.15);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero__grid {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 40%, transparent 75%);
}
.hero__glow {
  position: absolute; z-index: -1;
  width: 700px; height: 700px;
  right: -180px; top: -180px;
  background: radial-gradient(circle, rgba(201,162,74,.35), transparent 60%);
  filter: blur(30px);
}
.hero__inner { max-width: 1000px; }
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 22px 0 24px;
  color: var(--ink);
}
.hero__title em {
  font-style: italic;
  color: var(--gold);
  position: relative;
}
.hero__lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__stats {
  margin-top: 72px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.hero__stats > div { display: flex; flex-direction: column; gap: 6px; }
.hero__stats strong {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 3.6vw, 48px);
  color: var(--ink); line-height: 1;
}
.hero__stats span { font-size: 13px; color: var(--muted); }

/* ===== MARQUEE ===== */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-2);
  padding: 18px 0;
}
.marquee__track {
  display: flex; gap: 40px; white-space: nowrap;
  animation: scroll 40s linear infinite;
  font: 400 clamp(22px, 3vw, 34px) var(--serif);
  font-style: italic;
  color: var(--ink);
}
.marquee__track span { flex-shrink: 0; }
.marquee__track span:nth-child(even) { color: var(--gold); }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== SECTIONS ===== */
.section { padding: 110px 0; }
.section__head { max-width: 780px; margin: 0 auto 56px; text-align: center; }
.section__head .eyebrow { justify-content: center; }
.section__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.05; letter-spacing: -0.02em;
  margin: 18px 0 18px;
}
.section__title--light { color: var(--white); }
.section__lead { color: var(--muted); font-size: 17px; }

.section--dark {
  background: var(--ink);
  color: var(--white);
  position: relative; overflow: hidden;
}
.section--dark::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(201,162,74,.15), transparent 40%);
  pointer-events: none;
}

/* ===== SERVICES ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card {
  background: var(--bg);
  padding: 40px 32px;
  transition: background .3s;
  position: relative;
}
.card:hover { background: var(--bg-2); }
.card__num {
  font: 500 12px/1 var(--sans);
  letter-spacing: .16em; color: var(--gold);
  margin-bottom: 22px;
}
.card h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 26px; line-height: 1.15;
  margin: 0 0 12px;
}
.card p { color: var(--muted); font-size: 15px; margin: 0; }

/* ===== ABOUT ===== */
.about {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: start;
  position: relative; z-index: 1;
}
.about__left .section__title { margin-top: 22px; }
.about__right p { color: rgba(255,255,255,.75); font-size: 17px; margin: 0 0 20px; }
.about__pills {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.about__pills li {
  padding: 8px 14px; border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px; font-size: 13px; color: rgba(255,255,255,.85);
}

/* ===== PORTFOLIO ===== */
.portfolio {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.project {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  transition: transform .35s ease;
}
.project:hover { transform: translateY(-4px); }
.project__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #1a2b40, #0b1a2b);
}
.project__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s ease;
}
.project:hover .project__media img { transform: scale(1.04); }
.project__placeholder {
  display: none; /* switched to flex by onerror */
  position: absolute; inset: 0;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 10px;
  background:
    linear-gradient(135deg, rgba(201,162,74,.15), transparent),
    linear-gradient(135deg, #17273b, #0b1a2b);
  color: rgba(255,255,255,.7);
  border: 1px dashed rgba(255,255,255,.15);
  padding: 24px; text-align: center;
}
.project__placeholder-label {
  font: 500 12px/1 var(--sans); letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold);
}
.project__placeholder code {
  font: 400 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: rgba(255,255,255,.55);
  background: rgba(0,0,0,.25); padding: 4px 8px; border-radius: 6px;
}
.project__body { padding: 26px 28px 32px; }
.project__loc {
  font: 500 12px/1 var(--sans); letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold);
}
.project__body h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 34px; margin: 10px 0 12px; letter-spacing: -0.01em;
}
.project__body p { color: var(--muted); font-size: 15px; margin: 0; }

/* ===== CTA ===== */
.cta {
  background: var(--ink);
  color: var(--white);
  position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(201,162,74,.25), transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(201,162,74,.15), transparent 40%);
}
.cta__inner { position: relative; text-align: center; max-width: 820px; }
.cta__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.05; letter-spacing: -0.02em;
  margin: 18px 0 18px;
}
.cta__title em { font-style: italic; color: var(--gold); }
.cta__lead { color: rgba(255,255,255,.7); font-size: 17px; margin: 0 0 32px; }
.cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.6);
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer__logo { height: 26px; filter: brightness(0) invert(1); opacity: .9; }
.footer__copy { font-size: 13px; margin: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .portfolio { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { padding: 14px 20px; }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); padding: 20px; border-bottom: 1px solid var(--line);
  }
  .hero { padding: 60px 0 60px; }
  .section { padding: 72px 0; }
  .cards { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: 1fr; gap: 18px; }
}
