:root {
  color-scheme: dark;
  --bg: #0d0f10;
  --surface: #141719;
  --surface-2: #191c1e;
  --ink: #f3eee6;
  --muted: #b9b6b0;
  --line: #34373a;
  --wine: #681f32;
  --wine-deep: #47131f;
  --wine-light: #8e354c;
  --max: 1180px;
  --gutter: 24px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 92% 28%, rgba(104, 31, 50, 0.08), transparent 25rem),
    var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

a:hover {
  color: #fff;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #e0a4b3;
  outline-offset: 4px;
}

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

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

.container {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.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;
}

.site-header {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  height: 86px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(8, 10, 11, 0.72), rgba(8, 10, 11, 0));
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.header-scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background: rgba(10, 12, 13, 0.95);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.header-row,
.mobile-header-row {
  display: flex;
  align-items: center;
  min-height: 86px;
}

.header-row {
  gap: 34px;
}

.brand {
  margin-right: auto;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 27px;
}

.desktop-nav a,
.language-switcher a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #ddd9d3;
  font-size: 0.9rem;
  text-decoration: none;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  background: var(--wine-light);
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switcher span {
  color: #777;
}

.language-switcher a[aria-current="page"] {
  color: #fff;
  font-weight: 700;
}

.mobile-header-row,
.mobile-panel {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 760px;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid #222629;
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  z-index: -3;
}

.hero-media img {
  object-fit: cover;
  object-position: 66% center;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 10, 11, 0.98) 0%, rgba(8, 10, 11, 0.92) 28%, rgba(8, 10, 11, 0.38) 55%, rgba(8, 10, 11, 0.06) 76%),
    linear-gradient(0deg, rgba(8, 10, 11, 0.42), transparent 35%);
}

.hero-content {
  align-self: center;
  padding-top: 85px;
  padding-bottom: 52px;
}

.hero-copy-block {
  width: min(610px, 54vw);
}

.hero h1 {
  max-width: 9ch;
  margin: 0;
  color: #f2ede5;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(4.35rem, 6.3vw, 5.9rem);
  font-weight: 700;
  letter-spacing: -0.052em;
  line-height: 0.96;
}

html[lang="en"] .hero-copy-block {
  width: min(680px, 59vw);
}

html[lang="en"] .hero h1 {
  max-width: 12ch;
  font-size: clamp(3.8rem, 5.7vw, 5.45rem);
}

.hero-lead {
  max-width: 535px;
  margin: 27px 0 0;
  color: #e6e1da;
  font-size: clamp(1.1rem, 1.55vw, 1.35rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 27px;
  align-items: center;
  margin-top: 35px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button-link::after,
.text-link::after,
.back-link::after {
  margin-left: 10px;
  content: "→";
}

.button-link:hover {
  transform: translateY(-2px);
}

.button-primary {
  border-color: #873047;
  background: linear-gradient(135deg, #75233a, #571827);
}

.button-primary:hover {
  background: linear-gradient(135deg, #89304a, #651b2d);
}

.hero-secondary-link {
  position: relative;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  padding: 0 2px;
  color: #e0dbd4;
  font-size: 0.98rem;
  text-decoration: none;
}

.hero-secondary-link::before {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  content: "";
  background: #8f8683;
}

.hero-secondary-link::after {
  margin-left: 10px;
  content: "→";
  transition: transform 160ms ease;
}

.hero-secondary-link:hover::after,
.hero-secondary-link:focus-visible::after {
  transform: translateX(4px);
}

.section {
  padding-block: 54px;
  scroll-margin-top: 96px;
}

.section-compact {
  padding-top: 12px;
}

#services {
  padding-top: 44px;
  padding-bottom: 24px;
}

#work {
  padding-top: 14px;
  padding-bottom: 28px;
}

#sectors,
#approach {
  padding-block: 28px;
}

#about {
  padding-top: 30px;
  padding-bottom: 0;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 0 23px;
  font-size: clamp(2rem, 3.4vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.section-heading::after {
  min-width: 60px;
  height: 1px;
  flex: 1;
  content: "";
  background: linear-gradient(90deg, #716e69, #292c2e);
}

.section-intro {
  max-width: 850px;
  margin: 0 0 39px;
  color: var(--muted);
  font-size: 1.05rem;
}

.services-grid,
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.work-card {
  overflow: hidden;
  border: 1px solid #282c2f;
  background: linear-gradient(145deg, #181b1d, #121416);
}

.service-card picture,
.service-card img {
  width: 100%;
}

.service-card img {
  height: auto;
}

.card-body {
  padding: 18px 20px 21px;
}

.card-body h3,
.work-overlay h3,
.sector-card h3,
.approach-copy h3 {
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.card-body h3 {
  font-size: 1.13rem;
}

.card-body p,
.sector-card p,
.approach-copy p,
.about-copy p {
  color: var(--muted);
}

.card-body p {
  margin: 8px 0 0;
  font-size: 0.96rem;
  line-height: 1.5;
}

.work-grid {
  gap: 20px;
}

.work-visual {
  position: relative;
}

.work-visual picture,
.work-visual img {
  width: 100%;
}

.work-visual img {
  height: auto;
}

.work-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 22px;
  background: linear-gradient(180deg, transparent 26%, rgba(9, 10, 11, 0.18) 40%, rgba(9, 10, 11, 0.95) 72%, #111315 100%);
  pointer-events: none;
}

.work-overlay h3 {
  font-size: 2.05rem;
}

.work-overlay p {
  margin: 1px 0 0;
  color: #e7e1da;
  line-height: 1.35;
}

.work-footer {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 20px;
  color: #c7c3bd;
  font-size: 0.92rem;
  line-height: 1.4;
  text-decoration: none;
}

.work-footer:hover {
  background: #1c1f21;
}

.external-link-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.sectors-section {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.015), transparent);
}

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

.sector-card picture,
.sector-card img {
  width: 100%;
}

.sector-card img,
.approach-item img {
  height: auto;
}

.sector-card h3 {
  margin-top: 14px;
  font-size: 1.08rem;
}

.sector-card p {
  margin: 7px 0 0;
  font-size: 0.95rem;
  line-height: 1.52;
}

.approach-grid {
  gap: 18px;
}

.approach-item {
  border-top: 1px solid #3a3d40;
  padding-top: 14px;
}

.approach-item picture,
.approach-item img {
  width: 100%;
}

.approach-copy {
  padding-top: 13px;
}

.approach-copy h3 {
  font-size: 1.08rem;
}

.approach-copy p {
  margin: 6px 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
  gap: clamp(34px, 5vw, 64px);
  align-items: center;
}

.about-media,
.about-media img {
  width: 100%;
}

.about-media img {
  height: auto;
}

.about-copy .section-heading {
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.about-copy p {
  margin: 0 0 18px;
}

.contact-section {
  padding-block: 43px 38px;
  scroll-margin-top: 96px;
  background:
    linear-gradient(110deg, rgba(89, 22, 38, 0.98), rgba(69, 17, 29, 0.9)),
    repeating-linear-gradient(155deg, transparent 0 24px, rgba(255, 255, 255, 0.018) 25px 26px);
  border-top: 1px solid #832b42;
}

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-section h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.05rem, 3.5vw, 3.15rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.contact-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
  margin-top: 24px;
}

.contact-channels > a {
  position: relative;
  display: grid;
  min-width: 190px;
  max-width: 100%;
  gap: 1px;
  padding: 0 24px 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.44);
  color: #f5eee8;
  font-size: 1rem;
  text-decoration: none;
}

.contact-channels > a::after {
  position: absolute;
  top: 0;
  right: 0;
  content: "→";
}

.contact-channels > a:hover,
.contact-channels > a:focus-visible {
  border-bottom-color: rgba(255, 255, 255, 0.82);
}

.contact-channels small {
  color: #d5bfc5;
  font-size: 0.72rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.site-footer {
  padding-block: 18px;
  background: #0b0d0e;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #aaa7a2;
  font-size: 0.88rem;
}

.footer-row p {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-preferences {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  cursor: pointer;
}

.footer-preferences:hover {
  color: #fff;
}

.back-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.back-link::after {
  content: "↑";
}

.analytics-consent {
  position: fixed;
  z-index: 60;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  width: min(780px, calc(100% - 40px));
  margin-inline: auto;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 20px;
  border: 1px solid #4b4e51;
  border-radius: 4px;
  background: #171a1c;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.48);
}

.analytics-consent[hidden] {
  display: none;
}

.analytics-consent-copy {
  max-width: 570px;
}

.analytics-consent h2 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.analytics-consent p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.48;
}

.analytics-consent-status:not(:empty) {
  margin-top: 7px;
  color: #e2d8d2;
}

.analytics-consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.consent-button {
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid #707376;
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.consent-button:hover {
  border-color: #b9bbbd;
  background: #24282a;
}

.consent-button-primary {
  border-color: var(--wine-light);
  background: var(--wine);
}

.consent-button-primary:hover {
  border-color: #a84a62;
  background: var(--wine-light);
}

@media (max-width: 900px) {
  .desktop-nav {
    gap: 18px;
  }

  .hero-copy-block {
    width: min(620px, 66vw);
  }

  .about-grid,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .about-media {
    order: -1;
  }

}

@media (max-width: 780px) {
  :root {
    --gutter: 20px;
  }

  .site-header {
    height: 72px;
    background: rgba(8, 10, 11, 0.45);
    backdrop-filter: blur(10px);
  }

  .header-row {
    display: none;
  }

  .mobile-header-row {
    display: flex;
    min-height: 72px;
    gap: 18px;
  }

  .mobile-header-row .brand {
    font-size: 1rem;
  }

  .mobile-language {
    margin-left: auto;
  }

  .menu-button {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }

  .menu-icon,
  .menu-icon::before,
  .menu-icon::after {
    display: block;
    width: 25px;
    height: 2px;
    background: currentColor;
    content: "";
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .menu-icon {
    position: relative;
  }

  .menu-icon::before {
    position: absolute;
    transform: translateY(-8px);
  }

  .menu-icon::after {
    position: absolute;
    transform: translateY(8px);
  }

  .menu-button[aria-expanded="true"] .menu-icon {
    background: transparent;
  }

  .menu-button[aria-expanded="true"] .menu-icon::before {
    transform: rotate(45deg);
  }

  .menu-button[aria-expanded="true"] .menu-icon::after {
    transform: rotate(-45deg);
  }

  .mobile-panel {
    position: absolute;
    inset: 72px 0 auto;
    display: block;
    border-bottom: 1px solid #36393b;
    background: rgba(13, 15, 16, 0.98);
  }

  .mobile-panel[hidden] {
    display: none;
  }

  .no-js .mobile-panel[hidden] {
    display: block !important;
  }

  .mobile-nav {
    display: grid;
    padding-block: 12px 18px;
  }

  .mobile-nav a {
    display: flex;
    min-height: 48px;
    align-items: center;
    border-bottom: 1px solid #25282a;
    text-decoration: none;
  }

  .hero {
    min-height: 650px;
  }

  .hero-media img {
    object-position: 66% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(7, 9, 10, 0.97) 0%, rgba(7, 9, 10, 0.76) 72%, rgba(7, 9, 10, 0.5)),
      linear-gradient(0deg, rgba(7, 9, 10, 0.88), transparent 52%);
  }

  .hero-content {
    align-self: end;
    padding-top: 120px;
    padding-bottom: 52px;
  }

  .hero-copy-block {
    width: 100%;
  }

  .hero h1 {
    max-width: 8ch;
    font-size: clamp(3.25rem, 14vw, 4.45rem);
  }

  html[lang="en"] .hero-copy-block {
    width: 100%;
  }

  html[lang="en"] .hero h1 {
    max-width: 10ch;
    font-size: clamp(2.75rem, 11.5vw, 4rem);
  }

  .hero-lead {
    max-width: 430px;
    margin-top: 22px;
    font-size: 1.08rem;
  }

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

  .section {
    padding-block: 40px;
    scroll-margin-top: 82px;
  }

  .section-compact {
    padding-top: 8px;
  }

  #services {
    padding-top: 36px;
    padding-bottom: 20px;
  }

  #work {
    padding-top: 12px;
    padding-bottom: 25px;
  }

  #sectors,
  #approach {
    padding-block: 25px;
  }

  #about {
    padding-top: 26px;
    padding-bottom: 0;
  }

  .section-heading {
    gap: 18px;
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .analytics-consent {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: calc(100% - 24px);
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    padding: 17px;
  }

  .analytics-consent-actions {
    width: 100%;
  }

  .consent-button {
    flex: 1 1 0;
  }

  .services-grid,
  .work-grid,
  .sectors-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    gap: 17px;
  }

  .service-card picture {
    display: block;
    aspect-ratio: 2.7 / 1;
    overflow: hidden;
  }

  .service-card img {
    aspect-ratio: auto;
    height: 100%;
    object-fit: cover;
  }

  .card-body {
    padding: 18px 19px 20px;
  }

  .card-body h3 {
    font-size: 1.17rem;
  }

  .sectors-grid {
    gap: 28px;
  }

  .sector-card {
    display: block;
  }

  .sector-card picture,
  .sector-card img {
    width: 100%;
    height: auto;
  }

  .sector-card h3 {
    margin-top: 13px;
  }

  .approach-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .approach-item {
    display: grid;
    grid-template-columns: minmax(118px, 34%) 1fr;
    gap: 18px;
    padding-block: 11px;
    border-top-color: #2f3335;
  }

  .approach-item picture,
  .approach-item img {
    width: 100%;
    height: auto;
    min-height: 0;
  }

  .approach-copy {
    align-self: center;
    padding-top: 0;
  }

  .about-grid {
    gap: 28px;
  }

  .about-media img {
    height: auto;
  }

  .contact-section {
    padding-block: 40px 36px;
    scroll-margin-top: 82px;
  }

  .contact-section h2 {
    font-size: clamp(2.05rem, 9vw, 2.9rem);
  }

  .contact-channels {
    gap: 16px 24px;
    width: 100%;
  }

  .contact-channels > a {
    flex: 1 1 210px;
  }

  .footer-row {
    flex-wrap: wrap;
  }

}

@media (max-width: 370px) {
  :root {
    --gutter: 20px;
  }

  .mobile-header-row {
    gap: 9px;
  }

  .mobile-language {
    gap: 6px;
  }

  .mobile-language a {
    min-width: 28px;
    justify-content: center;
    font-size: 0.8rem;
  }

  .hero {
    min-height: 620px;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  html[lang="en"] .hero h1 {
    max-width: none;
    font-size: 2.2rem;
  }

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

  .button-link {
    width: 100%;
  }

  .section-heading::after {
    min-width: 28px;
  }

  .approach-item {
    grid-template-columns: 1fr;
  }

  .approach-item picture,
  .approach-item img {
    min-height: 0;
    height: auto;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
