:root {
  --bg: #090b10;
  --surface: #11141c;
  --text: #f4f3ed;
  --muted: #a6a9b2;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #9dff68;
  --accent-soft: rgba(157, 255, 104, 0.12);
  --max-width: 1240px;
  --side: clamp(1.4rem, 5vw, 5rem);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: -5rem;
  padding: 0.8rem 1rem;
  color: var(--bg);
  background: var(--accent);
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--side);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-logo {
  display: block;
  width: 3.4rem;
  height: 3.4rem;
  max-width: 3.4rem;
  max-height: 3.4rem;
  flex: none;
  object-fit: contain;
}

.header-actions,
.languages {
  display: flex;
  align-items: center;
}

.header-actions { gap: clamp(1rem, 3vw, 2.5rem); }
.languages { gap: 0.45rem; color: var(--muted); font-size: 0.76rem; font-weight: 600; }
.languages a { transition: color 180ms ease; }
.languages a:hover,
.languages a[aria-current="page"] { color: var(--text); }

.header-contact {
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--text);
  font-size: 0.86rem;
  font-weight: 600;
  transition: border-color 180ms ease, color 180ms ease;
}

.header-contact:hover,
.header-contact:focus-visible { border-color: var(--accent); color: var(--accent); }

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  padding: 9rem var(--side) clamp(3rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  position: absolute;
  top: 13%;
  right: -8vw;
  width: clamp(16rem, 40vw, 36rem);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  content: "";
}

.hero-glow {
  position: absolute;
  top: 8%;
  right: 0;
  width: min(50vw, 48rem);
  height: min(50vw, 48rem);
  background: radial-gradient(circle, rgba(157,255,104,0.15), transparent 65%);
  filter: blur(18px);
  pointer-events: none;
}

.eyebrow,
.section-label {
  margin: 0 0 1.5rem;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.approach h2,
.contact h2 {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.96;
}

.hero h1 {
  position: relative;
  max-width: 100%;
  font-size: clamp(2rem, 8.5vw, 8.5rem);
}

.hero-line { display: block; white-space: nowrap; }
.hero-line-accent { color: var(--accent); }

.hero-bottom {
  display: flex;
  max-width: var(--max-width);
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(2rem, 5vw, 4.5rem);
}

.hero-bottom p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.55;
}

.circle-link {
  display: grid;
  width: 4rem;
  height: 4rem;
  flex: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 180ms ease, border-color 180ms ease;
}

.circle-link:hover,
.circle-link:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.circle-link svg { transition: transform 180ms ease; }
.circle-link:hover svg,
.circle-link:focus-visible svg { transform: translateY(0.22rem); }
.circle-link svg,
.primary-action svg { width: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.5; }

.section-shell {
  max-width: calc(var(--max-width) + (var(--side) * 2));
  margin: 0 auto;
  padding: clamp(6rem, 11vw, 10rem) var(--side);
}

.services {
  display: grid;
  grid-template-columns: minmax(250px, 0.85fr) minmax(0, 1.5fr);
  gap: clamp(3rem, 8vw, 8rem);
  border-top: 1px solid var(--line);
}

.section-heading h2 { font-size: clamp(2.8rem, 5vw, 5rem); }

.service-list { border-top: 1px solid var(--line); }
.service {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.5rem;
  padding: 2rem 0 2.3rem;
  border-bottom: 1px solid var(--line);
}

.service-number { padding-top: 0.5rem; color: var(--accent); font-size: 0.68rem; }
.studio-name { margin: 0 0 0.65rem !important; color: var(--accent) !important; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.service h3 { margin: 0 0 0.7rem; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: clamp(1.25rem, 2vw, 1.65rem); letter-spacing: -0.035em; }
.service p { max-width: 590px; margin: 0; color: var(--muted); line-height: 1.6; }

.clients {
  padding-top: 0;
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.clients-heading {
  display: grid;
  align-items: end;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: clamp(2rem, 7vw, 7rem);
}

.clients-heading h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1;
}

.clients-heading p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.client-logos-scroll {
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  scrollbar-color: rgba(157, 255, 104, 0.42) transparent;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.client-logos-scroll:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

.client-logos {
  display: grid;
  min-width: 930px;
  min-height: 7rem;
  align-items: center;
  margin: 0;
  padding: 1.1rem clamp(0.8rem, 2vw, 1.7rem);
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.5vw, 1.5rem);
  list-style: none;
}

.client-logo {
  display: grid;
  min-width: 0;
  min-height: 4.8rem;
  place-items: center;
  padding: 0.65rem;
  border-radius: 0.35rem;
  transition: background 180ms ease;
}

.client-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 2.65rem;
  object-fit: contain;
  opacity: 0.62;
  transition: filter 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.client-logo--dark img { filter: grayscale(1); }
.client-logo--light img { filter: grayscale(1) invert(1) brightness(1.35); }
.client-logo--barca img { max-height: 2.5rem; }
.client-logo--realmadrid img { max-height: 2.75rem; }
.client-logo--geneva img { max-height: 2.55rem; }
.client-logo--epitech img { max-height: 1.65rem; }
.client-logo--acedyr img { max-height: 1.9rem; }

@media (hover: hover) {
  .client-logo:hover img { filter: none; opacity: 1; transform: translateY(-1px); }
  .client-logo--light:hover { background: #f7f7f4; }
  .client-logo--dark:hover { background: rgba(255, 255, 255, 0.035); }
}

.approach { padding-top: 0; }
.approach-heading { margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.approach-card {
  position: relative;
  overflow: hidden;
  padding: clamp(2.2rem, 6vw, 5rem);
  background: var(--accent);
  color: var(--bg);
}

.approach-card::after {
  position: absolute;
  right: -8rem;
  bottom: -12rem;
  width: 30rem;
  height: 30rem;
  border: 1px solid rgba(9,11,16,0.2);
  border-radius: 50%;
  content: "";
}

.approach h2 { font-size: clamp(2.6rem, 5.5vw, 5.3rem); }
.approach-copy { position: relative; z-index: 1; max-width: 820px; margin: 0; color: rgba(9,11,16,0.76); font-size: clamp(1.1rem, 2vw, 1.45rem); line-height: 1.55; }
.approach-steps {
  position: relative;
  z-index: 1;
  display: grid;
  margin: clamp(3rem, 6vw, 5.5rem) 0 0;
  padding: 0;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
}

.approach-steps li { padding: 1rem 0; border-top: 1px solid rgba(9,11,16,0.3); font-weight: 600; }
.approach-steps span { display: block; margin-bottom: 1.5rem; color: rgba(9,11,16,0.55); font-size: 0.66rem; }

.contact {
  display: grid;
  min-height: 78svh;
  place-items: center;
  padding: 7rem var(--side);
  text-align: center;
}

.contact-inner { max-width: 900px; }
.contact h2 { font-size: clamp(4rem, 11vw, 9rem); }
.contact p:not(.section-label) { max-width: 540px; margin: 2rem auto 3rem; color: var(--muted); font-size: 1.1rem; line-height: 1.6; }
.contact-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.primary-action {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.4rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 120ms ease;
}

.primary-action svg { transition: transform 180ms ease; }
.primary-action:hover,
.primary-action:focus-visible {
  border-color: #b5ff8e;
  background: #b5ff8e;
  color: var(--bg);
}
.primary-action:hover svg,
.primary-action:focus-visible svg { transform: translateX(0.28rem); }
.primary-action:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.primary-action:active { transform: translateY(1px); }
.secondary-action { background: transparent; color: var(--accent); }
.secondary-action:hover,
.secondary-action:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.site-footer {
  display: grid;
  align-items: center;
  padding: 2rem var(--side);
  border-top: 1px solid var(--line);
  grid-template-columns: 1fr auto auto 1fr;
  gap: 2rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.footer-brand { color: var(--text); }
.footer-brand .brand-logo { width: 3rem; height: 3rem; max-width: 3rem; max-height: 3rem; }
.social-links { display: flex; align-items: center; gap: 0.45rem; }
.social-links a {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}
.social-links .social-link--primary {
  display: inline-flex;
  width: auto;
  gap: 0.5rem;
  padding: 0 0.8rem;
  border-color: var(--line);
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
}
.social-links svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }
.social-links a:hover,
.social-links a:focus-visible { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.legal-links { display: flex; gap: 1rem; }
.legal-links button { padding: 0; border: 0; color: inherit; background: none; font: inherit; cursor: pointer; }
.legal-links button:hover { color: var(--text); }
.site-footer > p { justify-self: end; margin: 0; }

.legal-modal {
  width: min(680px, calc(100% - 2rem));
  max-height: min(78vh, 760px);
  overflow-y: auto;
  padding: clamp(1.7rem, 5vw, 3rem);
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
}

.legal-modal::backdrop { background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(5px); }
.legal-modal h2 { margin: 0 0 2rem; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: clamp(2rem, 6vw, 3.5rem); letter-spacing: -0.05em; }
.legal-modal h3 { margin: 2rem 0 0.65rem; color: var(--text); font-size: 1rem; }
.legal-modal p:not(.section-label) { color: var(--muted); line-height: 1.65; }
.legal-modal strong { color: var(--text); }
.legal-modal a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.18em; }
.legal-modal code { color: var(--text); }
.legal-updated { margin-top: 2.5rem; font-size: 0.78rem; }
.legal-table-wrap { overflow-x: auto; margin: 1rem 0; }
.legal-modal table { width: 100%; border-collapse: collapse; color: var(--muted); font-size: 0.78rem; line-height: 1.45; text-align: left; }
.legal-modal th,
.legal-modal td { padding: 0.75rem; border: 1px solid var(--line); vertical-align: top; }
.legal-modal th { color: var(--text); font-weight: 600; }
.modal-close { position: absolute; top: 1rem; right: 1rem; width: 2.5rem; height: 2.5rem; border: 1px solid var(--line); border-radius: 50%; color: var(--text); background: transparent; font-size: 1.4rem; cursor: pointer; }
.legal-content[hidden] { display: none; }

.cookie-banner {
  position: fixed;
  z-index: 25;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  max-width: 920px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 auto;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 1.5rem 4rem rgba(0,0,0,0.35);
}

.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.cookie-banner .cookie-title { margin-bottom: 0.3rem; color: var(--text); font-weight: 600; }
.cookie-info { margin-top: 0.65rem; padding: 0; border: 0; color: var(--text); background: none; font: inherit; font-size: 0.76rem; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.cookie-actions { display: flex; flex: none; gap: 0.6rem; }
.cookie-actions button { min-width: 7rem; padding: 0.8rem 1rem; border: 1px solid var(--line); color: var(--text); background: transparent; font: inherit; font-weight: 700; cursor: pointer; transition: border-color 180ms ease, background 180ms ease, color 180ms ease; }
.cookie-reject:hover { border-color: var(--text); background: rgba(255,255,255,0.06); }
.cookie-accept { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.cookie-accept:hover { color: var(--bg); background: var(--accent); }

.toast {
  position: fixed;
  z-index: 30;
  right: 1.25rem;
  bottom: 1.25rem;
  max-width: calc(100vw - 2.5rem);
  padding: 0.8rem 1rem;
  background: var(--text);
  color: var(--bg);
  font-size: 0.82rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible { opacity: 1; transform: translateY(0); }

.reveal {
  opacity: 1;
  transform: none;
}

.reveal.reveal-pending {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1);
}

.reveal.reveal-pending.is-visible { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .site-header { padding-top: 1.1rem; }
  .brand-name { display: none; }
  .brand-logo { width: 3rem; height: 3rem; max-width: 3rem; max-height: 3rem; }
  .header-actions { gap: 1rem; }
  .hero { min-height: 86svh; padding-bottom: clamp(5rem, 13svh, 8rem); }
  .hero::before { top: 12%; right: -35vw; width: 92vw; border-color: rgba(255, 255, 255, 0.13); }
  .hero-glow {
    top: 7%;
    right: -18vw;
    width: 96vw;
    height: 96vw;
    background: radial-gradient(circle, rgba(157,255,104,0.24), transparent 68%);
    filter: blur(12px);
  }
  .hero-bottom { align-items: flex-start; }
  .circle-link { width: 3.2rem; height: 3.2rem; }
  .services { display: block; }
  .section-heading { margin-bottom: 3rem; }
  .service { grid-template-columns: 2rem 1fr; gap: 0.8rem; }
  .clients-heading { align-items: start; grid-template-columns: 1fr; gap: 1.25rem; }
  .client-logos-scroll { overflow-x: hidden; }
  .client-logos {
    min-width: 0;
    min-height: auto;
    padding: 0.8rem 0.45rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
  }
  .client-logo { min-height: 4.8rem; padding: 0.45rem; }
  .approach-card::after { display: none; }
  .approach-steps { grid-template-columns: 1fr 1fr; }
  .approach-steps li { padding-right: 1rem; }
  .site-footer { grid-template-columns: 1fr auto; }
  .social-links { justify-self: end; }
  .legal-links,
  .site-footer > p { grid-column: 1 / -1; justify-self: start; }
  .cookie-banner { align-items: stretch; flex-direction: column; gap: 1rem; }
  .cookie-actions { width: 100%; }
  .cookie-actions button { flex: 1; }
  .contact-actions { align-items: stretch; flex-direction: column; }
  .contact-actions .primary-action { justify-content: space-between; }
}

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