:root {
  --bg: #050505;
  --panel: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f5f0;
  --muted: #bbbcb8;
  --accent: #ffffff;
  --shadow: 0 35px 80px rgba(0, 0, 0, 0.34);
  --radius-lg: 24px;
  --content-width: 1240px;
  --scroll-progress: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.09), transparent 24%),
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.05), transparent 20%),
    linear-gradient(180deg, #0b0b0b 0%, #050505 24%, #090909 100%);
}

body.menu-open {
  overflow: hidden;
}

body.menu-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  overflow-x: clip;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: var(--content-width);
  margin: 0 auto 12px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.brand-image {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 12px 26px rgba(255, 255, 255, 0.08));
}

.brand-text {
  font-family: "Syne", "Manrope", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.02rem;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px 0;
  border-radius: 999px;
  background: #f5f5f0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-button,
.nav-link,
.lang-toggle {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.topnav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.nav-link,
.lang-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease, background 180ms ease;
}

.nav-link:hover,
.lang-toggle:hover,
.button:hover,
.person-card a:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text);
  transform: translateY(-1px);
}

.topbar-actions,
.hero-actions,
.mobile-menu-footer {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-actions {
  flex: 0 0 auto;
}

.mobile-menu-footer {
  display: none;
}

.lang-option.active {
  color: var(--text);
}

main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 10px 24px 96px;
}

section {
  margin-top: 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: 56px;
  min-height: calc(82vh - 90px);
}

.eyebrow,
.metric-value,
.service-index,
.person-role,
.timeline-item span {
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.72rem;
}

h1,
h2,
h3 {
  margin: 0;
}

h1,
h2 {
  font-family: "Syne", "Manrope", sans-serif;
  line-height: 0.96;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.15rem, 4.1vw, 3.7rem);
}

h2 {
  max-width: 15ch;
  font-size: clamp(1.65rem, 2.7vw, 2.6rem);
}

.hero-text,
.section-heading p:last-child,
.service-card p,
.project-copy p,
.project-panel p,
.timeline-item p,
.contact-copy p,
.metric-card p,
.person-note {
  color: var(--muted);
  line-height: 1.72;
  font-size: 0.97rem;
}

.hero-text {
  max-width: 58ch;
  margin: 26px 0 0;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button-solid {
  background: var(--accent);
  color: #050505;
  font-weight: 700;
}

.button-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.hero-points {
  display: grid;
  gap: 14px;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
}

.hero-points li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.hero-visual {
  min-height: 430px;
}

.hero-brand {
  position: sticky;
  top: 102px;
  display: grid;
  place-items: center;
  min-height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 40px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-brand-glow {
  position: absolute;
  inset: 16% 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.17), transparent 60%);
  filter: blur(calc(22px + var(--scroll-progress) * 18px));
  opacity: calc(0.55 + var(--scroll-progress) * 0.35);
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: min(62%, 420px);
  object-fit: contain;
  transform:
    translateY(calc(var(--scroll-progress) * -10px))
    scale(calc(1 + var(--scroll-progress) * 0.03));
  filter:
    drop-shadow(0 22px 50px rgba(0, 0, 0, 0.26))
    drop-shadow(0 0 calc(8px + var(--scroll-progress) * 18px) rgba(255, 255, 255, 0.14));
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 82%);
  opacity: calc(0.25 + var(--scroll-progress) * 0.16);
}

.section-grid,
.service-grid,
.people-grid,
.timeline,
.contact-layout {
  display: grid;
  gap: 24px;
}

.section-grid,
.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.people-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card,
.service-card,
.project-card,
.timeline-item,
.person-card,
.contact-form,
.project-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.028));
  box-shadow: var(--shadow);
}

.metric-card,
.service-card,
.timeline-item,
.person-card,
.contact-form,
.project-panel {
  padding: 28px;
}

.metric-value,
.service-index {
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.8rem;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading h2 {
  margin-bottom: 14px;
}

.service-card h3,
.timeline-item h3,
.person-card h3 {
  margin-top: 16px;
  font-size: 1.45rem;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 26px;
  padding: 26px;
}

.project-copy {
  padding: 18px 20px;
}

.project-copy p {
  max-width: 56ch;
  margin: 18px 0 0;
}

.project-copy .button {
  margin-top: 30px;
}

.project-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.16), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
}

.project-panel-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  padding: 8px 8px 0;
}

.project-logo {
  width: min(180px, 72%);
  object-fit: contain;
  filter: drop-shadow(0 14px 34px rgba(24, 64, 255, 0.24));
}

.project-panel-line {
  width: 100%;
  height: 1px;
  margin: 8px 0 18px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.44), transparent);
}

.timeline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline-item span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.82rem;
}

.timeline-item p {
  margin-top: 16px;
}

.person-card {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.1), transparent 35%),
    rgba(255, 255, 255, 0.04);
}

.person-role {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.person-card a,
.person-note {
  display: block;
  margin-top: 10px;
}

.person-card a {
  width: fit-content;
  color: var(--muted);
  border-bottom: 1px solid transparent;
}

.contact-layout {
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  align-items: start;
  gap: 28px;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.site-footer {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px 34px;
}

.site-footer p {
  margin: 0;
  color: rgba(245, 245, 240, 0.5);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}

.success-toast {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.success-toast[hidden] {
  display: none;
}

.success-toast-card {
  width: min(100%, 420px);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.success-toast-label {
  margin: 0 0 8px;
  font-family: "Syne", "Manrope", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.success-toast-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.97rem;
}

.success-toast-close {
  margin-top: 18px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
}

.contact-form label {
  display: grid;
  gap: 12px;
}

.contact-form span {
  color: var(--muted);
  font-size: 0.93rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 16px 18px;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.07);
}

.submit-button {
  width: fit-content;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 650ms ease, transform 650ms ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .topbar {
    gap: 14px;
    top: 10px;
  }

  .topnav {
    justify-content: flex-end;
  }

  .hero,
  .project-card,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 18px;
    gap: 34px;
  }

  .hero-visual,
  .hero-brand {
    min-height: 380px;
  }

  .section-grid,
  .service-grid,
  .timeline,
  .people-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .page-shell {
    overflow: visible;
  }

  .topbar {
    position: fixed;
    top: 12px;
    left: 16px;
    right: 16px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 12px 14px;
    margin: 0;
    max-width: none;
    z-index: 50;
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
  }

  .brand-image {
    width: 58px;
    height: 58px;
  }

  .brand-text {
    font-size: 0.88rem;
    letter-spacing: 0.1em;
  }

  .menu-toggle {
    display: inline-flex;
    z-index: 42;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  main {
    padding: 108px 16px 64px;
  }

  .site-footer {
    padding: 0 16px 28px;
  }

  .success-toast {
    padding: 16px;
  }

  .success-toast-card {
    padding: 22px 20px;
  }

  section {
    margin-top: 48px;
  }

  .topnav,
  .mobile-menu-footer {
    position: fixed;
    left: 0;
    right: 0;
    width: 100dvw;
    max-width: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
  }

  .topnav {
    inset: 0;
    z-index: 40;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 1.5rem;
    min-height: 100dvh;
    padding: 7.8rem 1.5rem 11rem;
    margin-left: 0;
    background: linear-gradient(180deg, rgba(12, 12, 12, 0.98), rgba(6, 6, 6, 0.99));
    overflow-x: hidden;
    overflow-y: auto;
    transform: translateY(-12px);
  }

  .topbar.menu-open .topnav,
  .topbar.menu-open .mobile-menu-footer {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .topbar.menu-open .topnav {
    display: flex;
  }

  .mobile-menu-footer {
    display: flex;
    top: auto;
    right: 1.25rem;
    bottom: max(1.25rem, env(safe-area-inset-bottom));
    left: 1.25rem;
    z-index: 41;
    justify-content: stretch;
    transform: translateY(12px);
  }

  .topbar > .topbar-actions {
    display: none !important;
  }

  .topbar.menu-open .mobile-menu-footer {
    display: flex;
  }

  .nav-link,
  .lang-toggle {
    min-height: 54px;
  }

  .nav-link {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #f3f3ef;
    font-family: "Syne", "Manrope", sans-serif;
    font-size: clamp(2rem, 8vw, 2.45rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .nav-link:hover {
    transform: none;
  }

  .lang-toggle {
    justify-content: center;
    width: 100%;
    min-height: 58px;
    padding-inline: 18px;
    background: rgba(255, 255, 255, 0.08);
  }

  .topbar.menu-open .brand-lockup {
    opacity: 0.2;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions .button,
  .submit-button {
    width: 100%;
  }

  .hero-points {
    margin-top: 24px;
  }

  .metric-card,
  .service-card,
  .timeline-item,
  .person-card,
  .contact-form,
  .project-panel,
  .project-card {
    padding: 22px;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  h2 {
    font-size: clamp(1.6rem, 9vw, 2.3rem);
  }

  .hero-visual,
  .hero-brand {
    min-height: 300px;
  }

  .section-grid,
  .service-grid,
  .timeline,
  .people-grid-four {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
