:root {
  --bg: #f5f2ec;
  --surface: #ffffff;
  --surface-soft: #ebe7df;
  --text: #111519;
  --muted: #686b6e;
  --line: #d8d4cd;
  --accent: #1fd3a4;
  --accent-ink: #06271f;
  --dark: #111519;
  --dark-text: #f6f4ef;
  --container: 1240px;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(17, 21, 25, .08);
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #0d1114;
  --surface: #151a1e;
  --surface-soft: #1b2227;
  --text: #f4f4ef;
  --muted: #a4aaad;
  --line: #2d353a;
  --dark: #070a0c;
  --dark-text: #f4f4ef;
  --shadow: none;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

button {
  color: inherit;
  font: inherit;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -.055em;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-150%);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.nav {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
}

.brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  place-items: center;
  background: var(--text);
  color: var(--bg);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: -.04em;
}

.brand__copy {
  display: grid;
  line-height: 1.08;
}

.brand__copy strong {
  font-size: .94rem;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.brand__copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: .66rem;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

.nav-panel > a:hover,
.nav-panel > a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--text);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language button {
  min-width: 34px;
  min-height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: .67rem;
  font-weight: 800;
}

.language button.is-active {
  background: var(--text);
  color: var(--bg);
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.nav-contact {
  display: inline-flex;
  min-height: 40px;
  padding-inline: 16px;
  border-radius: 999px;
  align-items: center;
  background: var(--text);
  color: var(--bg);
}

.menu-toggle {
  display: none;
  min-height: 42px;
  padding-inline: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 800;
}

.hero {
  padding: clamp(64px, 8vw, 116px) 0 clamp(72px, 9vw, 130px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(380px, .78fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: center;
}

.eyebrow {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(3.8rem, 7.2vw, 7.3rem);
  line-height: .88;
}

.hero__copy > p {
  max-width: 640px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
}

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

.button {
  display: inline-flex;
  min-height: 52px;
  padding-inline: 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-size: .84rem;
  font-weight: 800;
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}

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

.button--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.button--secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 36px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
}

.hero__facts span::before {
  margin-right: 8px;
  color: var(--accent);
  content: "●";
  font-size: .62rem;
}

.hero__media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero__media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
}

.hero__media figcaption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  padding: 15px 17px;
  border-radius: 15px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(17, 21, 25, .92);
  color: #fff;
}

.hero__media figcaption span {
  color: #a9b0b3;
  font-size: .68rem;
  text-transform: uppercase;
}

.hero__media figcaption strong {
  font-size: .78rem;
}

.section {
  padding: clamp(80px, 10vw, 142px) 0;
}

.section--tint {
  border-block: 1px solid var(--line);
  background: var(--surface-soft);
}

.section-head {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-head--row {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.section-head h2,
.contact h2 {
  font-size: clamp(2.7rem, 5.6vw, 5.5rem);
  line-height: .94;
}

.section-head p,
.contact p {
  max-width: 590px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.service-card {
  display: flex;
  min-height: 340px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  flex-direction: column;
  background: var(--surface);
}

.service-card--accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.service-card__number {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
}

.service-card--accent .service-card__number {
  color: rgba(6, 39, 31, .62);
}

.service-card h3 {
  margin-top: auto;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: .95;
}

.service-card p {
  margin-top: 18px;
  color: var(--muted);
}

.service-card--accent p {
  color: rgba(6, 39, 31, .72);
}

.service-card > strong {
  margin-top: 24px;
  font-size: 1.05rem;
}

.text-link {
  display: inline-flex;
  margin-top: 28px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 800;
}

.project-card {
  display: block;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.project-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 18px;
  object-fit: cover;
  background: var(--surface-soft);
}

.project-card__meta {
  display: block;
  margin-top: 20px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-card h3 {
  margin-top: 8px;
  font-size: clamp(1.7rem, 2.7vw, 2.5rem);
}

.project-card p {
  margin-top: 10px;
  color: var(--muted);
}

.section--dark {
  background: var(--dark);
  color: var(--dark-text);
}

.section--dark .eyebrow,
.section--dark p {
  color: #a9b0b3;
}

.process {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1fr);
  gap: clamp(42px, 8vw, 120px);
  align-items: start;
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid #30383d;
}

.process-list li:last-child {
  border-bottom: 1px solid #30383d;
}

.process-list > li > span {
  color: var(--accent);
  font-size: .72rem;
  font-weight: 900;
}

.process-list h3 {
  font-size: 1.65rem;
}

.process-list p {
  max-width: 570px;
  margin-top: 8px;
}

.contact {
  padding: clamp(90px, 12vw, 170px) 0;
}

.contact__inner {
  max-width: 980px;
  text-align: center;
}

.contact__inner p {
  margin-inline: auto;
}

.contact__actions {
  align-items: center;
  justify-content: center;
}

.contact__actions .text-link {
  margin-top: 0;
  padding: 12px;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 36px;
  min-height: 112px;
  padding-block: 28px;
  align-items: center;
  color: var(--muted);
  font-size: .75rem;
}

.footer > div {
  display: grid;
}

.footer strong {
  color: var(--text);
  font-size: 1rem;
}

.footer nav {
  display: flex;
  gap: 20px;
}

.footer a:hover {
  color: var(--text);
}

@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .motion-ready .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .55s ease, transform .55s ease;
  }

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

@media (max-width: 900px) {
  html {
    scroll-behavior: auto;
  }

  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .nav-panel {
    position: fixed;
    z-index: 19;
    top: 77px;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    padding: 30px 16px max(28px, env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    color: var(--text);
    font-size: 1.18rem;
  }

  .nav-panel.is-open {
    display: flex;
  }

  .nav-panel > a {
    padding: 16px 6px;
    border-bottom: 1px solid var(--line);
  }

  .nav-tools {
    margin-top: auto;
    justify-content: space-between;
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__media {
    max-width: 680px;
  }

  .hero__media img {
    aspect-ratio: 4 / 3;
  }

  .section-head--row,
  .process {
    grid-template-columns: 1fr;
  }

  .section-head--row {
    display: grid;
    align-items: start;
  }

  .service-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 270px;
  }

  .project-grid {
    gap: 34px;
  }
}

@media (max-width: 520px) {
  .brand__copy small {
    display: none;
  }

  .hero {
    padding-top: 52px;
  }

  .hero h1 {
    font-size: clamp(3.15rem, 15.5vw, 4.45rem);
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero__facts {
    display: grid;
    gap: 9px;
  }

  .hero__media figcaption {
    position: static;
    border-radius: 0;
  }

  .section-head h2,
  .contact h2 {
    font-size: clamp(2.45rem, 12vw, 3.7rem);
  }

  .footer {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
  }
}
