:root {
  --bg: #0a0d14;
  --bg-2: #0f131c;
  --line: rgba(200, 210, 225, 0.1);
  --text: #e9ecf2;
  --muted: #9aa3b2;
  --silver: linear-gradient(180deg, #ffffff 0%, #c9ced8 55%, #8d94a1 100%);
  --gold: #d4ae6a;
  --gold-grad: linear-gradient(135deg, #f0d49a 0%, #c99a52 55%, #a5793a 100%);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .6rem 1rem; background: var(--gold); color: #111; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: .7rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s, border-color .3s;
}
.btn--gold { background: var(--gold-grad); color: #15110a; box-shadow: 0 8px 30px -10px rgba(212, 174, 106, .55); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -12px rgba(212, 174, 106, .75); }
.btn--ghost { border: 1px solid rgba(220, 226, 236, .22); color: var(--text); }
.btn--ghost:hover { border-color: rgba(220, 226, 236, .5); background: rgba(255, 255, 255, .04); }
.btn--lg { min-height: 56px; padding: .9rem 2rem; font-size: 1.05rem; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(10, 13, 20, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.brand img { border-radius: 8px; mix-blend-mode: lighten; }
.brand b { color: var(--gold); font-weight: 700; }
.brand small { font-size: .7em; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-left: .25rem; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a:not(.btn) { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__toggle { display: none; }

@media (max-width: 820px) {
  .nav__toggle {
    display: grid; margin-left: auto; place-content: center; gap: 6px; width: 44px; height: 44px;
    background: none; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  }
  .nav__toggle span { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease); }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem 1.25rem 1.5rem; background: rgba(10, 13, 20, .97); border-bottom: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav__links.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav__links a:not(.btn) { display: block; padding: .9rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 1rem; width: 100%; }
}

/* Type helpers */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); opacity: .7; }
h1, h2 { background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 800; letter-spacing: -.04em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); max-width: 18ch; }
h3 { font-size: 1.25rem; font-weight: 600; }
.gold { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34rem; margin-top: 1.5rem; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40rem 30rem at 72% 45%, rgba(212, 174, 106, .12), transparent 70%),
    radial-gradient(50rem 40rem at 20% 10%, rgba(150, 165, 190, .08), transparent 70%);
}
.hero__glow::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px; opacity: .35;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 0%, transparent 65%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 3rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.25rem; }
.hero__mark { justify-self: center; width: min(440px, 100%); }
.hero__mark img {
  width: 100%; mix-blend-mode: lighten;
  mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 72%);
  animation: float 9s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-14px); } }

@media (max-width: 820px) {
  .hero { min-height: auto; padding-top: 110px; }
  .hero__inner { grid-template-columns: 1fr; gap: 1rem; }
  .hero__mark { order: -1; width: min(240px, 70%); }
}

/* Sections */
.section { padding: clamp(5rem, 11vw, 8.5rem) 0; border-top: 1px solid var(--line); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 3.5rem; }
.card {
  position: relative; padding: 2rem 1.75rem; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
  border: 1px solid var(--line);
  transition: border-color .4s, transform .4s var(--ease), background-color .4s;
}
.card:hover { border-color: rgba(212, 174, 106, .35); transform: translateY(-4px); }
.card__num { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .15em; color: var(--gold); margin-bottom: 2.5rem; }
.card h3 { margin-bottom: .75rem; }
.card p { color: var(--muted); font-size: .98rem; }

/* Work */
.work {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  margin-top: 3.5rem; padding: clamp(1.25rem, 3vw, 2.5rem); border-radius: calc(var(--radius) + 6px);
  background: var(--bg-2); border: 1px solid var(--line);
}
.tag { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.work h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; margin-bottom: 1rem; }
.work__copy > p:not(.tag) { color: var(--muted); }
.work__copy > .work__impact { margin-top: 2rem; padding-left: 1rem; border-left: 2px solid var(--gold); color: var(--text); font-size: .98rem; }

/* Abstract portal UI (decorative) */
.work__visual { aspect-ratio: 16 / 11; border-radius: var(--radius); padding: clamp(1rem, 3vw, 2rem);
  background: radial-gradient(circle at 70% 20%, rgba(212, 174, 106, .18), transparent 60%), linear-gradient(160deg, #161b26, #0b0e15); }
.ui { height: 100%; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: rgba(10, 13, 20, .85); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.ui__bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.ui__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.ui__body { flex: 1; display: grid; grid-template-columns: 22% 1fr; }
.ui__side { display: grid; align-content: start; gap: 10px; padding: 14px; border-right: 1px solid rgba(255, 255, 255, .06); }
.ui__side b { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.ui__side b:first-child { background: var(--gold); opacity: .8; }
.ui__main { display: grid; grid-template-rows: auto 1fr auto; gap: 12px; padding: 14px; }
.ui__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ui__row span { height: 34px; border-radius: 8px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); }
.ui__chart { min-height: 48px; border-radius: 8px; background:
  linear-gradient(180deg, rgba(212, 174, 106, .25), transparent) bottom / 100% 60% no-repeat,
  rgba(255, 255, 255, .03);
  clip-path: polygon(0 100%, 0 70%, 15% 55%, 30% 62%, 48% 35%, 64% 45%, 80% 20%, 100% 28%, 100% 100%); }
.ui__list { display: grid; gap: 8px; }
.ui__list em { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); }
.ui__list em:nth-child(2) { width: 80%; }
.ui__list em:nth-child(3) { width: 60%; }

@media (max-width: 820px) { .work { grid-template-columns: 1fr; } }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 3.5rem; counter-reset: step; }
.step { position: relative; padding-top: 2rem; border-top: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: -1px; left: 0; padding-top: .9rem; width: 2.5rem;
  border-top: 1px solid var(--gold); font-size: .8rem; font-weight: 600; letter-spacing: .15em; color: var(--gold);
}
.step h3 { margin: 1.75rem 0 .6rem; }
.step p { color: var(--muted); font-size: .98rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* About */
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
.about__copy { display: grid; gap: 1.25rem; color: var(--muted); font-size: 1.1rem; align-content: start; padding-top: 2.6rem; }
.values { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .75rem; }
.values li { padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; color: var(--text); }
@media (max-width: 820px) { .about__inner { grid-template-columns: 1fr; } .about__copy { padding-top: 0; } }

/* Contact */
.contact__panel {
  position: relative; overflow: hidden; text-align: center; display: grid; justify-items: center; gap: 1.25rem;
  padding: clamp(3rem, 8vw, 6rem) 1.5rem; border-radius: calc(var(--radius) + 10px); border: 1px solid var(--line);
  background: radial-gradient(40rem 20rem at 50% 0%, rgba(212, 174, 106, .16), transparent 70%), var(--bg-2);
}
.contact__panel h2 { max-width: 16ch; }
.contact__panel p { color: var(--muted); max-width: 32rem; margin-bottom: .75rem; }
.contact__panel .btn { white-space: normal; overflow-wrap: anywhere; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 2.5rem 0; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.footer p { color: var(--muted); font-size: .9rem; }

/* Reveal motion (enabled only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

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