:root {
  --orange: #f47b20;
  --yellow: #ffc928;
  --charcoal: #202124;
  --dark-gray: #33363b;
  --mid-gray: #6f737a;
  --soft-gray: #f4f5f2;
  --line: #dedfd9;
  --white: #ffffff;
  --max: 1180px;
  --shadow: 0 24px 55px rgba(32, 33, 36, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--charcoal);
  background: var(--white);
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: 0;
  text-wrap: balance;
}

p {
  color: var(--mid-gray);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(222, 223, 217, 0.9);
  backdrop-filter: blur(16px);
}

.top-bar {
  color: var(--white);
  background: var(--dark-gray);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-inner {
  width: min(var(--max), calc(100% - 32px));
  min-height: 38px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.top-contacts,
.top-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-contacts a {
  color: #f4f5f2;
  font-size: 0.84rem;
  font-weight: 800;
}

.top-contacts a + a {
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.top-socials {
  gap: 8px;
}

.top-socials a {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--charcoal);
  background: var(--yellow);
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
  transition: background 180ms ease, transform 180ms ease;
}

.top-socials a:hover {
  background: var(--orange);
  transform: translateY(-1px);
}

.top-socials svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.nav-shell {
  width: min(var(--max), calc(100% - 32px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.footer-brand img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

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

.nav-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: var(--dark-gray);
  font-size: 0.94rem;
  font-weight: 800;
  border: 1px solid transparent;
  transition: 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  background: var(--soft-gray);
  border-color: var(--line);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.nav-link-cut {
  color: var(--charcoal);
  background: var(--yellow);
  border-color: var(--yellow);
  clip-path: polygon(16px 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
  box-shadow: 6px 6px 0 var(--orange);
}

.nav-link-cut:hover,
.nav-link-cut.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border: 0;
  background: var(--charcoal);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.section-pad {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.work-label {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.work-label span,
.title-code,
.angled-heading span,
.process-header span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  color: var(--charcoal);
  background: var(--yellow);
  border-left: 5px solid var(--orange);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.title-rig {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.title-rig::before {
  content: "";
  position: absolute;
  left: 72px;
  top: 47px;
  bottom: -8px;
  width: 2px;
  background: linear-gradient(var(--orange), transparent);
}

.title-rig h2 {
  max-width: 640px;
  margin-bottom: 0;
  font-size: clamp(2rem, 3.4vw, 3.45rem);
}

.title-rig.compact {
  display: block;
}

.title-rig.compact::before {
  display: none;
}

.title-rig.compact .title-code {
  margin-bottom: 18px;
}

.angled-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 34px;
}

.angled-heading h2,
.process-header h2 {
  max-width: 560px;
  margin-bottom: 0;
  font-size: clamp(2rem, 3.6vw, 3.6rem);
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  font-weight: 900;
  border: 2px solid var(--charcoal);
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  color: var(--charcoal);
  background: var(--yellow);
  box-shadow: 7px 7px 0 var(--orange);
}

.button.ghost {
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 640px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--soft-gray);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.84) 43%, rgba(255, 255, 255, 0.18) 78%),
    linear-gradient(0deg, rgba(255, 201, 40, 0.12), rgba(244, 123, 32, 0.02)),
    url("../gallery/26.jpeg") center right / cover;
  animation: slowPan 18s ease-in-out infinite alternate;
}

.hero-grid {
  position: relative;
  width: min(var(--max), calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr);
  align-items: center;
  padding: 0;
}

.hero-copy h1 {
  max-width: 610px;
  margin-bottom: 22px;
  font-size: clamp(3.1rem, 6.1vw, 5.8rem);
}

.hero-copy h1 span {
  display: block;
  white-space: nowrap;
}

.hero-copy p {
  max-width: 520px;
  color: var(--dark-gray);
  font-size: clamp(1rem, 1.45vw, 1.14rem);
}

.hero-actions {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  margin-top: 0;
}

.hero-actions .button {
  min-height: 64px;
  padding: 0 34px;
  border: 0;
  clip-path: none;
}

.hero-actions .button.primary {
  box-shadow: none;
  padding-right: 44px;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
}

.hero-actions .button.ghost {
  margin-left: -20px;
  padding-left: 54px;
}

.hero-actions .button:hover {
  transform: none;
}

.intro-rig {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 58px;
  align-items: start;
}

.intro-copy {
  padding-top: 46px;
  border-top: 1px solid var(--line);
}

.home-services {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(244, 123, 32, 0.08), transparent 45%),
    var(--soft-gray);
}

.home-services::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../gallery/3.jpeg") center / cover;
  filter: grayscale(1);
  opacity: 0.08;
}

.home-services > .section-pad {
  position: relative;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 320px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--orange);
  box-shadow: 0 14px 35px rgba(32, 33, 36, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.service-number {
  display: inline-block;
  margin-bottom: 52px;
  color: var(--orange);
  font-size: 0.9rem;
  font-weight: 900;
}

.service-card h3 {
  font-size: 1.2rem;
  line-height: 1.2;
}

.site-discipline {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.discipline-image {
  position: relative;
}

.discipline-image::before {
  content: "";
  position: absolute;
  inset: -18px 24px 24px -18px;
  z-index: -1;
  background: var(--yellow);
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
}

.discipline-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.commitment-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.commitment-list span {
  padding: 14px 16px;
  color: var(--charcoal);
  background: var(--soft-gray);
  border-left: 5px solid var(--orange);
  font-weight: 800;
}

.process-section {
  position: relative;
  border-top: 1px solid var(--line);
}

.process-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: min(440px, 42vw);
  height: 100%;
  background: url("../gallery/1.jpeg") center / cover;
  filter: grayscale(1);
  opacity: 0.06;
  pointer-events: none;
}

.process-section > * {
  position: relative;
}

.process-header {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

.process-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 3px solid var(--charcoal);
}

.process-step {
  position: relative;
  padding: 28px 22px 0 0;
}

.process-step::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 18px;
  height: 18px;
  background: var(--orange);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.process-step span {
  color: var(--orange);
  font-weight: 900;
}

.process-step h3 {
  margin: 12px 0 10px;
  font-size: 1.35rem;
}

.statement-band {
  position: relative;
  overflow: hidden;
  color: var(--charcoal);
  background:
    linear-gradient(135deg, rgba(255, 201, 40, 0.8), rgba(244, 123, 32, 0.78)),
    var(--yellow);
}

.statement-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../gallery/29.jpeg") center / cover;
  filter: grayscale(1);
  opacity: 0.13;
}

.statement-band .section-pad {
  position: relative;
}

.statement-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 42px;
  align-items: center;
}

.statement-grid h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(2.2rem, 3.8vw, 3.9rem);
}

.statement-grid p {
  color: var(--charcoal);
  font-weight: 800;
}

.page-hero {
  min-height: 470px;
  display: grid;
  align-items: end;
  padding: 120px max(16px, calc((100% - var(--max)) / 2)) 74px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.32)),
    var(--page-image) center / cover;
}

.page-hero .work-label {
  margin-bottom: 18px;
}

.page-hero h1 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(2.7rem, 4.8vw, 4.8rem);
}

.site-footer {
  color: var(--white);
  background: var(--charcoal);
  padding: 62px max(16px, calc((100% - var(--max)) / 2)) 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
  gap: 48px;
  padding-bottom: 42px;
}

.footer-brand {
  margin-bottom: 18px;
}

.site-footer h2 {
  margin: 0 0 18px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.site-footer p {
  color: #c9cbc4;
}

.site-footer a:not(.footer-brand) {
  display: table;
  margin-bottom: 10px;
  color: #f0f1eb;
}

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

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 42px;
  height: 42px;
  display: grid !important;
  place-items: center;
  margin: 0 !important;
  background: var(--yellow);
  border: 1px solid rgba(255, 255, 255, 0.12);
  clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: var(--charcoal);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  color: #c9cbc4;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 120ms;
}

.delay-2 {
  transition-delay: 240ms;
}

.delay-3 {
  transition-delay: 360ms;
}

@keyframes slowPan {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.04) translateX(-12px);
  }
}

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

@media (max-width: 940px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 120px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    justify-content: flex-start;
  }

  .hero {
    min-height: 640px;
  }

  .hero-media {
    background:
      linear-gradient(0deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.68)),
      url("../gallery/26.jpeg") center / cover;
  }

  .hero-grid,
  .intro-rig,
  .site-discipline,
  .process-header,
  .statement-grid {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .process-line,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-line {
    gap: 24px;
    border-top: 0;
  }

  .process-step {
    border-top: 3px solid var(--charcoal);
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .nav-shell,
  .hero-grid,
  .section-pad {
    width: min(100% - 24px, var(--max));
  }

  .section-pad {
    padding: 68px 0;
  }

  .top-bar-inner {
    width: min(100% - 24px, var(--max));
    min-height: auto;
    padding: 8px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .top-contacts {
    flex-wrap: wrap;
    gap: 6px 12px;
  }

  .top-contacts a {
    font-size: 0.78rem;
  }

  .top-contacts a + a {
    padding-left: 0;
    border-left: 0;
  }

  .nav-links {
    top: 152px;
  }

  .hero-actions {
    right: 0;
    left: 0;
  }

  .hero-actions .button {
    flex: 1;
    min-height: 58px;
    padding: 0 14px;
  }

  .brand img {
    width: 62px;
    height: 62px;
  }

  .title-rig {
    display: block;
  }

  .title-rig::before {
    display: none;
  }

  .title-code,
  .angled-heading span,
  .process-header span {
    margin-bottom: 18px;
  }

  .angled-heading {
    display: block;
  }

  .service-grid,
  .process-line,
  .commitment-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    font-size: 0.84rem;
  }
}
