:root {
  --ink: #0b0f24;
  --ink-2: #141a3a;
  --paper: #f6f5f1;
  --white: #ffffff;
  --text: #1b1e2e;
  --muted: #5d6280;
  --accent: #ff5b1f;
  --accent-2: #ffb21f;
  --line: rgba(11, 15, 36, 0.1);
  --radius: 18px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font: 600 1rem var(--font-body);
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--white); box-shadow: 0 10px 30px -10px var(--accent); }
.btn--primary:hover { background: #ff7440; }
.btn--ghost { border-color: rgba(255,255,255,.3); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled { background: rgba(11, 15, 36, 0.88); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo {
  font-family: var(--font-head); font-weight: 700; font-size: 1.6rem;
  text-decoration: none; color: var(--accent); letter-spacing: -0.03em;
}
.logo span { color: var(--white); }
.nav__links { display: flex; gap: 2.2rem; }
.nav__links a { color: rgba(255,255,255,.8); text-decoration: none; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--white); }
.nav__actions { display: flex; align-items: center; gap: 1rem; }
.lang { display: flex; background: rgba(255,255,255,.08); border-radius: 999px; padding: 4px; }
.lang button {
  border: 0; background: none; color: rgba(255,255,255,.7);
  font: 600 .8rem var(--font-head); padding: .45em .9em; border-radius: 999px; cursor: pointer;
}
.lang button.active { background: var(--accent); color: var(--white); }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--white); transition: transform .3s; }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--white);
  padding: 150px 0 110px;
}
.hero__glow {
  position: absolute; width: 900px; height: 900px; right: -300px; top: -350px;
  background: radial-gradient(circle, rgba(255,91,31,.35), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 4rem; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 5.2rem); margin-bottom: .4em; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.2rem; color: rgba(255,255,255,.75); max-width: 36ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 3rem; }
.stats { list-style: none; padding: 0; margin: 0; display: flex; gap: 2.5rem; flex-wrap: wrap; }
.stats li { display: flex; flex-direction: column; }
.stats strong { font-family: var(--font-head); font-size: 2.2rem; line-height: 1; color: var(--white); }
.stats span { font-size: .9rem; color: rgba(255,255,255,.6); margin-top: .4rem; }

.hero__photo { position: relative; justify-self: center; }
.photo-frame {
  width: min(380px, 80vw); aspect-ratio: 1;
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  padding: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  animation: morph 12s ease-in-out infinite;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
@keyframes morph {
  50% { border-radius: 58% 42% 55% 45% / 45% 58% 42% 55%; }
}
.badge {
  position: absolute; left: -30px; bottom: 30px;
  background: var(--white); color: var(--text);
  padding: .9rem 1.2rem; border-radius: 14px;
  box-shadow: 0 20px 40px -15px rgba(0,0,0,.5);
  display: flex; flex-direction: column; line-height: 1.3;
}
.badge strong { font-family: var(--font-head); }
.badge span { font-size: .85rem; color: var(--muted); }

/* Clients */
.clients { background: var(--ink-2); color: rgba(255,255,255,.55); padding: 2rem 0; }
.clients .container { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.clients p { margin: 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; }
.clients__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 2rem; }
.clients__list li { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: rgba(255,255,255,.85); }

/* Sections */
.section { padding: 120px 0; }

/* About */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.about p { color: var(--muted); }
.tags { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.tags li {
  padding: .4em 1em; border-radius: 999px; font-size: .9rem; font-weight: 500;
  background: var(--white); border: 1px solid var(--line);
}
.timeline { list-style: none; margin: 0; padding: 0 0 0 2rem; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding-bottom: 2rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: calc(-2rem - 7px); top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--accent);
}
.timeline li:first-child::before { background: var(--accent); box-shadow: 0 0 0 6px rgba(255,91,31,.18); }
.timeline__date { font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--accent); }
.timeline h3 { margin: .2rem 0 .3rem; }
.timeline p { margin: 0; font-size: .95rem; }

/* Services */
.services { background: var(--white); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.card {
  padding: 2rem; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
  transition: transform .3s, background .3s, color .3s, box-shadow .3s;
}
.card p { color: var(--muted); margin: 0; transition: color .3s; }
.card__icon {
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--ink); color: var(--accent); margin-bottom: 1.5rem;
  transition: background .3s, color .3s;
}
.card:hover { transform: translateY(-6px); background: var(--ink); color: var(--white); box-shadow: 0 30px 60px -30px rgba(11,15,36,.6); }
.card:hover p { color: rgba(255,255,255,.7); }
.card:hover .card__icon { background: var(--accent); color: var(--white); }

/* Contact */
.contact { background: var(--ink); color: var(--white); }
.contact p { color: rgba(255,255,255,.7); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 2rem 0 0; }
.contact__list li { display: flex; flex-direction: column; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.contact__list span { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-weight: 600; }
.contact__list a { text-decoration: none; font-size: 1.1rem; }
.contact__list a:hover { color: var(--accent); }
.form {
  background: var(--ink-2); padding: 2.2rem; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; gap: 1.1rem;
}
.form label { display: flex; flex-direction: column; gap: .4rem; font-size: .9rem; font-weight: 500; }
.form input, .form textarea {
  font: inherit; font-size: 1rem; color: var(--white);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; padding: .85em 1em; resize: vertical;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form .btn { align-self: flex-start; }
.form__note { font-size: .8rem; margin: 0; color: rgba(255,255,255,.45) !important; }

/* Footer */
.footer { background: #070a19; color: rgba(255,255,255,.5); padding: 2rem 0; font-size: .9rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer .logo { font-size: 1.3rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .photo-frame { animation: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero__inner, .about__grid, .contact__grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero__photo { order: -1; }
  .badge { left: 50%; transform: translateX(-50%); bottom: -20px; white-space: nowrap; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 90px 0; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .burger { display: block; }
  .nav__links {
    position: fixed; inset: 76px 0 auto; flex-direction: column; gap: 0;
    background: var(--ink); padding: .5rem 16px 1.5rem;
    transform: translateY(-120%); transition: transform .3s; z-index: -1;
  }
  .nav__links.open { transform: none; }
  .nav__links a { padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav { background: rgba(11, 15, 36, 0.92); }
  .hero { padding: 120px 0 80px; }
  .cards { grid-template-columns: 1fr; }
  .stats { gap: 1.8rem; }
  .stats strong { font-size: 1.8rem; }
  .form { padding: 1.5rem; }
}
