:root {
  --bg: #f6f1e8;
  --paper: #fffaf1;
  --soft: #e8ded0;
  --ink: #151311;
  --muted: #756d63;
  --primary: #211d18;
  --primary-dark: #11100e;
  --primary-deep: #090807;
  --accent: #9a2638;
  --accent-2: #c49a5a;
  --cool: #517b7c;
  --line: rgba(21, 19, 17, 0.14);
  --shadow: 0 28px 70px rgba(17, 16, 14, 0.18);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
}

input,
textarea,
button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px clamp(20px, 5vw, 64px);
  color: #fff;
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0);
  transition: min-height 220ms ease, background-color 220ms ease, box-shadow 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

.topbar a,
.topbar strong,
.nav-toggle,
.language-switch {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.42);
}

.topbar.is-scrolled {
  min-height: 68px;
  background: rgba(17, 16, 14, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 42px rgba(9, 8, 7, 0.2);
}

.topbar.is-open {
  background: rgba(17, 16, 14, 0.96);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
}

.brand img {
  display: block;
  width: clamp(160px, 13vw, 190px);
  height: auto;
  flex: 0 0 auto;
}

.brand strong {
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 800;
}

.nav a {
  transition: color 160ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: #fff;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
}

.language-switch button {
  display: grid;
  min-width: 34px;
  height: 32px;
  padding: 0;
  place-items: center;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.language-switch button[aria-current="true"] {
  color: var(--primary-dark);
  background: #fff;
}

.language-switch button:hover,
.language-switch button:focus-visible {
  color: #fff;
  outline: none;
}

.language-switch button[aria-current="true"]:hover,
.language-switch button[aria-current="true"]:focus-visible {
  color: var(--primary-dark);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero--impact {
  display: grid;
  min-height: min(820px, 100svh);
  padding: calc(72px + clamp(42px, 5vw, 68px)) clamp(20px, 6vw, 84px) clamp(34px, 4vw, 48px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(9, 8, 7, 0.98) 0%, rgba(9, 8, 7, 0.93) 33%, rgba(9, 8, 7, 0.68) 50%, rgba(9, 8, 7, 0.22) 68%, rgba(9, 8, 7, 0.58) 100%),
    linear-gradient(135deg, #151311 0%, #33261f 54%, #11100e 100%);
}

.hero--impact::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(90deg, #000 0%, #000 56%, transparent 82%);
  pointer-events: none;
}

.hero__visual {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 0;
  overflow: hidden;
  width: min(66vw, 980px);
  min-width: 640px;
  opacity: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.12) 10%, #000 32%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.12) 10%, #000 32%, #000 100%);
}

.hero__visual::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(9, 8, 7, 0.82) 0%, rgba(9, 8, 7, 0.55) 18%, rgba(9, 8, 7, 0.16) 44%, rgba(9, 8, 7, 0.18) 100%),
    linear-gradient(180deg, rgba(9, 8, 7, 0.04), rgba(9, 8, 7, 0.36));
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(1.04) contrast(1.12) brightness(1.08);
  transform: translateZ(0) scale(1.01);
}

.hero__watermark {
  position: absolute;
  right: clamp(18px, 4vw, 70px);
  bottom: clamp(18px, 5vw, 72px);
  z-index: 1;
  color: rgba(255, 255, 255, 0.06);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(70px, 13vw, 190px);
  font-weight: 700;
  line-height: 0.82;
  pointer-events: none;
}

.hero__copy {
  position: relative;
  z-index: 2;
  max-width: 790px;
  align-self: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero--impact .eyebrow {
  color: #d6ad6b;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  color: var(--primary-dark);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 1.02;
}

.hero--impact h1 {
  max-width: 860px;
  color: #fff;
  font-size: clamp(46px, 5.25vw, 76px);
}

h2 {
  font-size: clamp(34px, 4.2vw, 62px);
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.2;
}

.lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(18px, 1.8vw, 23px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-weight: 900;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn--primary {
  color: #11100e;
  background: #fff;
  border-color: #fff;
}

.btn--ghost {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
}

.hero__proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 850px;
  margin-top: 34px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero__proof div {
  padding: 18px;
  background: rgba(17, 16, 14, 0.58);
}

.hero__proof strong,
.hero__proof span {
  display: block;
}

.hero__proof strong {
  color: #fff;
  font-size: 17px;
}

.hero__proof span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.hero__badge {
  position: absolute;
  right: clamp(22px, 5vw, 84px);
  bottom: clamp(26px, 5vw, 70px);
  z-index: 3;
  display: grid;
  max-width: 330px;
  gap: 4px;
  padding-left: 18px;
  color: #fff;
  border-left: 3px solid var(--accent-2);
}

.hero__badge strong {
  font-size: 16px;
  text-transform: uppercase;
}

.hero__badge span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(280px, 0.7fr);
  gap: clamp(34px, 8vw, 96px);
  align-items: end;
  padding: clamp(72px, 8vw, 112px) 0;
}

.intro > p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
}

.section {
  padding: clamp(70px, 8vw, 112px) 0;
}

.section--soft {
  background: var(--soft);
}

.section-title {
  max-width: 820px;
  margin-bottom: clamp(34px, 5vw, 58px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  position: relative;
  min-height: 268px;
  padding: clamp(26px, 3vw, 38px);
  background: rgba(255, 250, 241, 0.88);
}

.card:hover {
  background: #fffdf8;
}

.card__icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-bottom: 34px;
  color: #fff;
  background: var(--primary);
  border-radius: 4px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  line-height: 1;
}

.card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.two-col,
.about,
.contact__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 0.58fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: start;
}

.two-col > *,
.about > *,
.contact__grid > * {
  min-width: 0;
}

.two-col p,
.about p {
  color: var(--muted);
  font-size: 18px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 32px;
  background: var(--line);
  border: 1px solid var(--line);
}

.trust-grid div {
  padding: 20px;
  background: var(--paper);
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid strong {
  color: var(--accent);
}

.trust-grid span {
  color: var(--muted);
  font-size: 13px;
}

.timeline {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  background: var(--primary);
  border: 1px solid var(--primary);
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px;
  color: #fff;
  background: var(--primary);
  font-weight: 800;
}

.timeline li:nth-child(even) {
  background: #2d2721;
}

.timeline__number {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--primary-dark);
  background: #fff;
  border-radius: 4px;
  font-weight: 900;
  line-height: 1;
}

.timeline__text {
  display: block;
  min-width: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.35;
}

.office {
  background: var(--paper);
}

.office__inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(260px, 0.54fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
}

.office__inner img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.06);
  box-shadow: var(--shadow);
}

.office__panel {
  padding: clamp(30px, 4vw, 46px);
  background: var(--bg);
  border: 1px solid var(--line);
}

.office__panel p:not(.eyebrow) {
  color: var(--muted);
}

.quote {
  padding: clamp(30px, 4vw, 48px);
  color: #fff;
  background: var(--primary);
  border-left: 6px solid var(--accent-2);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.14;
}

.authority {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 0.82fr) minmax(280px, 0.72fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.authority__panel {
  display: flex;
  min-width: 0;
  min-height: 430px;
  flex-direction: column;
  padding: clamp(28px, 3vw, 42px);
  background: rgba(255, 250, 241, 0.88);
}

.authority__panel--dark {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(154, 38, 56, 0.22), transparent 48%),
    var(--primary);
}

.authority__panel--dark h3 {
  color: #fff;
}

.authority__panel p:not(.eyebrow) {
  color: var(--muted);
}

.authority__panel--dark p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.award-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
  padding-top: 28px;
}

.award-strip img {
  width: 100%;
  max-height: 118px;
  object-fit: contain;
  padding: 12px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 4px;
}

.publication-list {
  display: grid;
  gap: 1px;
  margin-top: 24px;
  background: var(--line);
  border: 1px solid var(--line);
}

.publication-list a,
.publication-list div {
  display: grid;
  gap: 5px;
  padding: 18px;
  background: var(--paper);
}

.publication-list a {
  transition: background-color 160ms ease;
}

.publication-list a:hover,
.publication-list a:focus-visible {
  background: #fffdf8;
}

.publication-list strong {
  color: var(--accent);
  line-height: 1.25;
}

.publication-list span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.reference-logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: auto;
  padding-top: 26px;
}

.reference-logos img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(21, 19, 17, 0.08);
  filter: saturate(0.72) contrast(1.02);
}

.final-cta {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(154, 38, 56, 0.26), transparent 50%),
    var(--primary);
}

.final-cta h2,
.contact h2,
.footer strong {
  color: #fff;
}

.final-cta__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.final-cta__box p:last-child {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
}

.final-cta .btn--primary,
.contact .btn--primary {
  color: var(--primary-dark);
  background: #fff;
  border-color: #fff;
}

.contact {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(154, 38, 56, 0.22), transparent 44%),
    linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.contact__grid {
  grid-template-columns: minmax(300px, 0.74fr) minmax(300px, 0.62fr);
  align-items: stretch;
}

.contact__intro {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.contact__intro p:not(.eyebrow) {
  max-width: 560px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.contact__quick {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.contact__quick a {
  width: fit-content;
  color: #fff;
  border-bottom: 1px solid rgba(196, 154, 90, 0.9);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
}

.contact__locations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: auto;
  padding-top: 38px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.contact__locations article {
  display: grid;
  gap: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.055);
}

.contact__locations span {
  color: rgba(255, 255, 255, 0.7);
}

.form {
  display: grid;
  gap: 14px;
  padding: clamp(24px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 800;
}

.form input,
.form textarea {
  width: 100%;
  padding: 13px 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.105);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  outline: none;
}

.form input:focus,
.form textarea:focus {
  border-color: rgba(196, 154, 90, 0.95);
}

.footer {
  padding: 44px 0 28px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--primary-deep);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.footer a {
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.footer__credit {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  margin-top: 34px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--primary-dark);
  background: #fff;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 12px 28px rgba(17, 16, 14, 0.22);
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .intro,
  .two-col,
  .about,
  .office__inner,
  .contact__grid,
  .authority {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    width: 72vw;
    min-width: 430px;
    opacity: 0.38;
  }

  .cards,
  .footer__grid,
  .contact__locations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .authority__panel {
    min-height: auto;
  }

  .final-cta__box {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(1160px, calc(100% - 48px));
  }

  .topbar {
    min-height: 70px;
  }

  .brand strong {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 8px 20px 20px;
    background: var(--primary-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .nav.is-open {
    display: grid;
    gap: 8px;
  }

  .nav a {
    padding: 10px 0;
  }

  .language-switch {
    width: fit-content;
    margin-top: 6px;
  }

  .hero--impact {
    min-height: auto;
    padding-top: 54px;
  }

  .hero__visual {
    width: 100%;
    min-width: 0;
    opacity: 0.24;
  }

  .hero__visual img {
    transform: none;
  }

  .hero--impact h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .cards,
  .trust-grid,
  .footer__grid,
  .contact__locations,
  .award-strip,
  .reference-logos {
    grid-template-columns: 1fr;
  }

  .hero__badge {
    position: relative;
    right: auto;
    bottom: auto;
    z-index: 2;
    margin-top: 34px;
  }

  .hero__actions,
  .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .hero__proof {
    grid-template-columns: 1fr;
  }
}
