:root {
  --rma-blue: oklch(56% 0.15 241);
  --deep-blue: oklch(43% 0.13 241);
  --signal: oklch(66% 0.2 38);
  --ink: oklch(21% 0.025 245);
  --paper: oklch(97% 0.008 230);
  --white-blue: oklch(99% 0.004 230);
  --line: oklch(86% 0.02 225);
  --muted: oklch(48% 0.025 235);
  --font: "Archivo", Arial, sans-serif;
  --page: min(1400px, calc(100% - 48px));
  --section-space: clamp(5rem, 11vw, 9rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white-blue);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 4px;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  display: flex;
  width: var(--page);
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid oklch(99% 0.004 230 / 0.3);
  transform: translateX(-50%);
}

.brand img {
  width: 146px;
  height: auto;
  filter: brightness(0) invert(1);
}

.header-actions { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.5rem); }
.main-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem); }
.main-nav a { color: var(--white-blue); font-size: 0.9rem; font-weight: 650; text-decoration: none; }
.main-nav a:not(.nav-cta):hover { text-decoration: underline; text-underline-offset: 5px; }

.main-nav .nav-cta {
  padding: 11px 15px;
  border-radius: 6px;
  background: var(--white-blue);
  color: var(--ink);
}

.menu-button { display: none; }

.language-selector { position: relative; }
.language-trigger {
  display: flex;
  min-width: 58px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 10px;
  border: 1px solid oklch(99% 0.004 230 / 0.45);
  border-radius: 6px;
  background: transparent;
  color: var(--white-blue);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 750;
}
.language-trigger[aria-expanded="true"] { background: oklch(99% 0.004 230 / 0.14); }
.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 180px;
  overflow: hidden;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white-blue);
  box-shadow: 0 18px 45px oklch(12% 0.025 245 / 0.22);
}
.language-menu[hidden] { display: none; }
.language-menu button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 10px 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.language-menu button:hover,
.language-menu button:focus-visible { background: var(--paper); }
.language-menu button.is-selected::after { content: "✓"; color: var(--rma-blue); font-weight: 800; }

.hero {
  position: relative;
  display: grid;
  min-height: max(760px, 100svh);
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.32fr);
  align-items: end;
  overflow: hidden;
  padding: clamp(9rem, 17vw, 13rem) max(24px, calc((100% - min(1400px, calc(100% - 48px))) / 2)) 4rem;
  background: var(--rma-blue);
  color: var(--white-blue);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(to right, oklch(99% 0.004 230 / 0.55) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(99% 0.004 230 / 0.55) 1px, transparent 1px);
  background-size: clamp(54px, 6vw, 92px) clamp(54px, 6vw, 92px);
  mask-image: linear-gradient(to bottom, transparent, black 25%, black 85%, transparent);
}

.hero-copy, .hero-proof { position: relative; z-index: 2; }
.hero-copy { align-self: center; padding-top: 3rem; }

.eyebrow, .kicker, .case-status {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 1050px;
  margin: 1.5rem 0 2rem;
  font-size: clamp(4.5rem, 11.5vw, 10.8rem);
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.78;
}

.hero h1 span { color: var(--ink); }
.hero h1 .hero-title-first { color: inherit; }

.hero-lead {
  max-width: 640px;
  margin: 0;
  color: oklch(99% 0.004 230 / 0.9);
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  font-weight: 500;
  line-height: 1.5;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 180ms var(--ease-out), background-color 180ms ease, color 180ms ease;
}

.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--signal); color: var(--white-blue); }
.button-primary:hover { background: oklch(61% 0.2 38); }
.button-ghost { border-color: oklch(99% 0.004 230 / 0.5); color: var(--white-blue); }
.button-ghost:hover { background: var(--white-blue); color: var(--ink); }

.hero-proof {
  align-self: end;
  justify-self: end;
  max-width: 255px;
  padding: 1.2rem 0 0 1.2rem;
  border-top: 1px solid oklch(99% 0.004 230 / 0.55);
}

.hero-proof p { margin: 0 0 0.25rem; font-weight: 750; line-height: 1.35; }
.hero-proof span { color: oklch(99% 0.004 230 / 0.72); font-size: 0.85rem; }

.hero-mark {
  position: absolute;
  right: -0.03em;
  bottom: -0.22em;
  color: oklch(99% 0.004 230 / 0.08);
  font-size: clamp(13rem, 36vw, 34rem);
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: -0.11em;
  line-height: 0.7;
  user-select: none;
}

.section { width: var(--page); margin: 0 auto; padding-block: var(--section-space); }
.kicker { color: var(--rma-blue); }

.section-intro {
  display: grid;
  grid-template-columns: minmax(100px, 0.24fr) minmax(0, 1fr) minmax(240px, 0.42fr);
  gap: clamp(1.5rem, 4vw, 5rem);
  align-items: start;
}

.section h2 {
  margin: 0;
  font-size: clamp(2.8rem, 6.6vw, 6.4rem);
  font-stretch: condensed;
  font-weight: 780;
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.section-intro > p:last-child { max-width: 46ch; margin: 0; color: var(--muted); font-size: 1.05rem; }

.service-list { margin: clamp(4rem, 8vw, 7rem) 0 0; padding: 0; border-top: 1px solid var(--ink); list-style: none; }
.service-list li {
  display: grid;
  grid-template-columns: 0.24fr minmax(220px, 0.55fr) 1fr;
  gap: clamp(1.5rem, 4vw, 5rem);
  align-items: baseline;
  padding: clamp(1.6rem, 3vw, 2.5rem) 0;
  border-bottom: 1px solid var(--line);
}
.service-number { color: var(--rma-blue); font-size: 0.8rem; font-weight: 750; }
.service-list h3 { margin: 0; font-size: clamp(1.5rem, 2.5vw, 2.3rem); line-height: 1.1; }
.service-list p { max-width: 54ch; margin: 0; color: var(--muted); }

.portfolio { width: 100%; padding-inline: max(24px, calc((100% - min(1400px, calc(100% - 48px))) / 2)); background: var(--ink); color: var(--white-blue); }
.portfolio-heading { display: flex; align-items: end; justify-content: space-between; }
.portfolio .kicker { color: oklch(78% 0.13 235); }

.featured-case {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  margin-top: clamp(3rem, 7vw, 6rem);
  overflow: hidden;
  border-radius: 28px;
  background: var(--white-blue);
  color: var(--ink);
  box-shadow: 0 24px 70px oklch(12% 0.025 245 / 0.45);
}

.featured-media { min-height: 560px; overflow: hidden; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; }
.featured-copy { display: flex; flex-direction: column; padding: clamp(2rem, 4vw, 4.2rem); }
.case-status { width: fit-content; padding: 6px 9px; border: 1px solid currentColor; border-radius: 999px; color: var(--muted); }
.case-status.current { border-color: var(--rma-blue); background: var(--rma-blue); color: var(--white-blue); }
.featured-copy h3 { margin: auto 0 0; padding-top: 3rem; font-size: clamp(3rem, 5vw, 5rem); letter-spacing: -0.06em; line-height: 0.9; }
.featured-copy > p { margin: 1.5rem 0; color: var(--muted); }
.featured-copy ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 2rem; padding: 0; list-style: none; }
.featured-copy li { padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; font-size: 0.78rem; font-weight: 650; }
.text-link { width: fit-content; font-weight: 750; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.process { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(3rem, 9vw, 10rem); }
.process-title h2 { margin-top: 1rem; }
.process-steps { margin: 0; padding: 0; list-style: none; }
.process-steps li { padding: 2rem 0; border-top: 1px solid var(--line); }
.process-steps li:last-child { border-bottom: 1px solid var(--line); }
.process-steps span { color: var(--rma-blue); font-size: 0.78rem; font-weight: 750; }
.process-steps h3 { margin: 1rem 0 0.3rem; font-size: 2rem; line-height: 1; }
.process-steps p { max-width: 52ch; margin: 0; color: var(--muted); }

.contact {
  width: 100%;
  padding-inline: max(24px, calc((100% - min(1400px, calc(100% - 48px))) / 2));
  background: var(--rma-blue);
  color: var(--white-blue);
}
.contact .kicker { color: var(--white-blue); }
.contact h2 { max-width: 1050px; margin-top: 1.4rem; }
.contact-bottom { display: flex; gap: 3rem; align-items: end; justify-content: space-between; margin-top: 4rem; }
.contact-bottom p { max-width: 56ch; margin: 0; color: oklch(99% 0.004 230 / 0.82); font-size: 1.08rem; }
.contact .button-primary { flex: 0 0 auto; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: 3rem max(24px, calc((100% - min(1400px, calc(100% - 48px))) / 2));
  background: var(--deep-blue);
  color: oklch(99% 0.004 230 / 0.76);
  font-size: 0.85rem;
}
.site-footer img { width: 150px; height: auto; filter: brightness(0) invert(1); }
.site-footer p { margin: 0; }
.site-footer p:last-child { text-align: right; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  :root { --page: min(100% - 32px, 1400px); }
  .site-header { min-height: 80px; }
  .brand img { width: 125px; }
  .header-actions { gap: 0.75rem; }
  .menu-button { display: flex; align-items: center; border: 0; background: transparent; color: var(--white-blue); }
  .menu-icon { position: relative; width: 22px; height: 12px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
  .main-nav {
    position: fixed;
    inset: 80px 16px auto;
    display: grid;
    gap: 0;
    padding: 1rem;
    border-radius: 14px;
    background: var(--white-blue);
    box-shadow: 0 24px 70px oklch(12% 0.025 245 / 0.28);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms var(--ease-out);
  }
  .main-nav.is-open { opacity: 1; pointer-events: auto; visibility: visible; transform: translateY(0); }
  .main-nav a, .main-nav .nav-cta { padding: 14px 10px; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); }
  .main-nav a:last-child { border-bottom: 0; }
  .hero { min-height: 760px; grid-template-columns: 1fr; padding-top: 8rem; }
  .hero h1 { font-size: clamp(4.2rem, 17vw, 8rem); }
  .hero-proof { justify-self: start; margin-top: 4rem; }
  .section-intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .service-list li { grid-template-columns: 70px 1fr; }
  .service-list p { grid-column: 2; }
  .featured-case { grid-template-columns: 1fr; }
  .featured-media { min-height: 360px; }
  .process { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .hero { padding-bottom: 2.5rem; }
  .hero h1 { font-size: clamp(3.8rem, 20vw, 6rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .service-list li { grid-template-columns: 45px 1fr; gap: 1rem; }
  .featured-case { border-radius: 14px; }
  .featured-media { min-height: 280px; }
  .contact-bottom { align-items: stretch; flex-direction: column; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer p:last-child { text-align: left; }
}

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