:root {
  color-scheme: dark;
  --bg: #08090b;
  --bg-soft: #101217;
  --ink: #f4efe6;
  --muted: #b8b0a3;
  --dim: #7e766a;
  --line: rgba(244, 239, 230, 0.13);
  --line-strong: rgba(244, 239, 230, 0.24);
  --gold: #d8b45a;
  --amber: #f0c86b;
  --blue: #7fb7ff;
  --green: #98f2c7;
  --max: 1180px;
  --radius: 28px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 22% -10%, rgba(127, 183, 255, 0.22), transparent 34rem),
    radial-gradient(circle at 80% 0%, rgba(216, 180, 90, 0.16), transparent 32rem),
    linear-gradient(180deg, #08090b 0%, #0d0f14 48%, #08090b 100%);
  color: var(--ink);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(8, 9, 11, 0.72);
  border-bottom: 1px solid rgba(244, 239, 230, 0.08);
}
.nav {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.18rem;
}
.mark {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: linear-gradient(145deg, rgba(216,180,90,0.18), rgba(127,183,255,0.08));
  box-shadow: 0 0 36px rgba(216,180,90,0.12);
}
.nav-links { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 0.94rem; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink) !important;
  background: rgba(244,239,230,0.06);
}

main { overflow: hidden; }
section { padding: 88px 0; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.hero { padding: 112px 0 80px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr); gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--gold);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--gold); box-shadow: 0 0 18px var(--gold); }
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(3.6rem, 9vw, 8.4rem);
  line-height: 0.88;
  letter-spacing: -0.085em;
  margin-bottom: 28px;
  max-width: 860px;
}
.lede {
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.38rem);
  line-height: 1.55;
  max-width: 710px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 42px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-weight: 750;
}
.button.primary { background: var(--ink); color: #08090b; border-color: var(--ink); }
.button.secondary { background: rgba(244,239,230,0.055); color: var(--ink); }
.button:hover { transform: translateY(-1px); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 680px; }
.stat {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.035);
  border-radius: 20px;
  padding: 16px;
}
.stat b { display: block; font-size: 1.08rem; margin-bottom: 4px; }
.stat span { color: var(--dim); font-size: 0.86rem; line-height: 1.35; }

.hero-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.035));
  box-shadow: 0 40px 120px rgba(0,0,0,0.4);
}
.hero-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; filter: saturate(0.95) contrast(1.06); }
.floating-card {
  position: absolute;
  left: -28px;
  bottom: 34px;
  max-width: 270px;
  border: 1px solid rgba(244,239,230,0.18);
  border-radius: 22px;
  padding: 18px;
  background: rgba(10, 12, 16, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 70px rgba(0,0,0,0.38);
}
.floating-card .tag { color: var(--green); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; font-weight: 800; margin-bottom: 8px; }
.floating-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.45; margin: 0; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 4.8rem); line-height: 0.95; letter-spacing: -0.07em; margin: 0; max-width: 760px; }
.section-head p { color: var(--muted); line-height: 1.55; max-width: 430px; margin: 0; }

.capabilities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.capability {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  min-height: 250px;
  background: linear-gradient(180deg, rgba(244,239,230,0.065), rgba(244,239,230,0.025));
}
.capability .num { color: var(--gold); font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 800; margin-bottom: 54px; }
.capability h3 { font-size: 1.55rem; letter-spacing: -0.035em; margin-bottom: 12px; }
.capability p { color: var(--muted); line-height: 1.55; margin: 0; }

.case-study {
  border: 1px solid var(--line);
  border-radius: 36px;
  padding: 34px;
  background:
    radial-gradient(circle at 12% 0%, rgba(216,180,90,0.16), transparent 30rem),
    linear-gradient(135deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025));
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: 36px;
  align-items: stretch;
}
.case-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.case-copy h2 { font-size: clamp(2.2rem, 4.6vw, 4.4rem); line-height: 0.96; letter-spacing: -0.065em; margin-bottom: 18px; }
.case-copy p { color: var(--muted); line-height: 1.62; font-size: 1.05rem; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { color: var(--ink); border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 12px; font-size: 0.82rem; background: rgba(255,255,255,0.04); }
.case-panel {
  border: 1px solid rgba(216,180,90,0.24);
  border-radius: 28px;
  padding: 24px;
  background: rgba(3, 5, 10, 0.58);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.product-topline { display: flex; justify-content: space-between; align-items: center; color: var(--dim); font-size: 0.85rem; margin-bottom: 24px; }
.product-name { font-size: clamp(3rem, 8vw, 6.4rem); letter-spacing: -0.09em; line-height: 0.9; color: var(--gold); margin-bottom: 18px; }
.product-desc { color: var(--muted); line-height: 1.55; max-width: 540px; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
.metric { border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: rgba(255,255,255,0.035); }
.metric strong { display: block; margin-bottom: 4px; }
.metric span { color: var(--dim); font-size: 0.82rem; line-height: 1.35; }

.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.work-card {
  grid-column: span 4;
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  background: rgba(255,255,255,0.035);
}
.work-card.large { grid-column: span 8; }
.work-card img { width: 100%; height: 340px; object-fit: cover; filter: saturate(0.92) contrast(1.05); transition: transform 500ms ease; }
.work-card:hover img { transform: scale(1.035); }
.work-copy { padding: 20px; }
.work-copy .type { color: var(--gold); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 800; margin-bottom: 9px; }
.work-copy h3 { font-size: 1.45rem; letter-spacing: -0.035em; margin-bottom: 8px; }
.work-copy p { color: var(--muted); line-height: 1.5; margin-bottom: 0; }

.gallery { columns: 3 250px; column-gap: 16px; }
.gallery img {
  width: 100%;
  margin: 0 0 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  break-inside: avoid;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: 36px;
  padding: clamp(28px, 6vw, 56px);
  background:
    radial-gradient(circle at 88% 12%, rgba(127,183,255,0.16), transparent 32rem),
    linear-gradient(135deg, rgba(255,255,255,0.085), rgba(255,255,255,0.025));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: end;
}
.contact-card h2 { font-size: clamp(2.4rem, 6vw, 5.4rem); line-height: 0.92; letter-spacing: -0.075em; margin-bottom: 20px; }
.contact-card p { color: var(--muted); font-size: 1.08rem; line-height: 1.58; max-width: 680px; margin-bottom: 0; }
.contact-links { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

footer { border-top: 1px solid rgba(244,239,230,0.1); padding: 28px 0; color: var(--dim); }
.footer-inner { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .nav { min-height: 66px; }
  .nav-links { gap: 14px; font-size: 0.86rem; }
  .hero-grid, .case-study, .contact-card { grid-template-columns: 1fr; }
  .hero { padding-top: 78px; }
  .floating-card { left: 18px; right: 18px; bottom: 18px; max-width: none; }
  .stats, .capabilities, .metric-row { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .section-head h2 { margin-bottom: 16px; }
  .work-card, .work-card.large { grid-column: span 12; }
  .work-card img { height: 260px; }
  .contact-links { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .nav-links a:not(.nav-cta) { display: none; }
  section { padding: 64px 0; }
  .hero-actions .button { width: 100%; }
  .capability .num { margin-bottom: 34px; }
}
