:root {
  --color-bg: #ffffff;
  --color-text: hsl(220 18% 16%);
  --color-line: hsl(40 24% 84%);
  --color-accent: hsl(24 98% 48%);
  --color-accent-strong: hsl(24 99% 42%);
  --color-muted: hsl(30 20% 44%);

  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;

  --fz-100: clamp(14px, 1.2vw, 16px);
  --fz-200: clamp(16px, 1.6vw, 18px);
  --fz-300: clamp(18px, 2vw, 22px);

  --radius: 14px;
  --shadow: 0 18px 40px rgba(8, 20, 40, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: var(--fz-200);
  overflow-x: hidden;
}

/* ---------------- HEADER ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header.hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.site-header .logo,
.site-header .logo:link,
.site-header .logo:visited,
.site-header .logo:hover,
.site-header .logo:active {
  font-weight: 800;
  font-size: var(--fz-300);
  text-decoration: none;
  color: hsl(24 99% 50%);
}

/* Navigation base */

.site-header nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-3);
}

.site-header nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  padding: .4rem .6rem;
  border-radius: 8px;
  transition: color .2s ease, background-color .2s ease;
}

.site-header nav a:hover {
  color: var(--color-accent);
  background: hsl(210 70% 55% / .08);
}

.site-header nav a.active {
  color: var(--color-accent);
}

/* Mobile menu button */

.nav-toggle {
  justify-self: end;
  inline-size: 42px;
  block-size: 42px;
  display: inline-grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  cursor: pointer;
}

.nav-toggle__bar {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  transition: transform .2s ease, top .2s ease;
}

.nav-toggle__bar::before {
  top: -6px;
}

.nav-toggle__bar::after {
  top: 6px;
}

/* Mobile nav behaviour */

#primary-nav {
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows .25s ease;
}

#primary-nav > ul {
  min-height: 0;
  display: grid;
  gap: var(--space-1);
  padding: var(--space-2) 0 0;
}

.site-header[data-open="true"] #primary-nav {
  grid-template-rows: 1fr;
  border-top: 1px solid var(--color-line);
}

/* burger to close icon */

.site-header[data-open="true"] .nav-toggle__bar {
  background: transparent;
}

.site-header[data-open="true"] .nav-toggle__bar::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle__bar::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Desktop layout */

@media (min-width: 900px) {
  .site-header {
    grid-template-columns: auto 1fr;
  }

  .nav-toggle {
    display: none;
  }

  #primary-nav {
    grid-column: 2;
    grid-template-rows: 1fr;
    overflow: visible;
    justify-self: end;
  }

  #primary-nav > ul {
    border-top: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-3);
    padding: 0;
  }
}

/* ---------------- CONTACT PAGE ---------------- */
.contact-page main {
  background: linear-gradient(180deg, hsl(34 45% 97%) 0%, white 38%, white 100%);
}

.contact-hero {
  position: relative;
  width: 100vw;
  max-width: none;
  left: 50%;
  margin-left: -50vw;
  padding: clamp(4rem, 8vw, 6.5rem) 2rem;
  background:
    linear-gradient(90deg, rgba(6, 9, 18, 0.96), rgba(8, 12, 22, 0.78)),
    url("../img/modular-system/Modular24.jpg") center/cover no-repeat;
  color: white;
}

.contact-hero__inner {
  width: min(100%, 1120px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}

.contact-hero__copy h1 {
  max-width: 12ch;
  margin: 0;
  color: white;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.contact-hero__copy p:not(.eyebrow) {
  max-width: 62ch;
  margin-top: 1.4rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
  text-align: left;
}

.contact-hero__details {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
}

.contact-hero__details a {
  display: grid;
  gap: 0.35rem;
  padding: 1.2rem;
  color: white;
  text-decoration: none;
  background: rgba(10, 14, 24, 0.82);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.contact-hero__details a:hover {
  background: rgba(24, 28, 38, 0.92);
  color: hsl(34 100% 75%);
}

.contact-hero__details span {
  color: hsl(34 100% 75%);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.contact-hero__details strong {
  color: inherit;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.55;
}

.contact-section {
  width: min(100% - 2rem, 1120px);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.contact-sidebar {
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border-radius: 18px;
  background: hsl(220 18% 12%);
  color: white;
}

.contact-sidebar .eyebrow {
  color: hsl(34 100% 75%);
}

.contact-sidebar h2 {
  margin: 0;
  color: white;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.contact-sidebar > p:not(.eyebrow) {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
  text-align: left;
}

.contact-points {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-points div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-points span {
  display: inline-grid;
  place-items: center;
  inline-size: 38px;
  block-size: 38px;
  border-radius: 50%;
  background: hsl(24 98% 48% / 0.18);
  color: hsl(34 100% 75%);
  font-size: 0.82rem;
  font-weight: 900;
}

.contact-points p {
  margin: 0;
  color: white;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.4;
  text-align: left;
}

.contact-form-card {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid hsl(34 24% 88%);
  border-top: 4px solid var(--color-accent);
  border-radius: 18px;
  background: white;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.contact-panel__header {
  max-width: 70ch;
  margin-bottom: 2rem;
}

.contact-panel__header h2 {
  margin: 0 0 0.8rem;
  color: hsl(220 18% 16%);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.contact-panel__header p {
  color: hsl(30 13% 34%);
  line-height: 1.75;
  text-align: left;
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

.spam-check {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile-field {
  min-height: 65px;
}

.turnstile-field[hidden] {
  display: none;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.form-field {
  display: grid;
  gap: 0.65rem;
}

.field-label {
  display: inline-block;
  color: hsl(220 18% 18%);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  border: 1px solid hsl(34 18% 84%);
  background: hsl(34 45% 98%);
  color: hsl(215 12% 20%);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: white;
  box-shadow: 0 0 0 4px hsl(24 98% 48% / 0.12);
}

.form-textarea {
  min-height: 200px;
  resize: vertical;
}

.form-actions {
  display: flex;
  justify-content: flex-start;
}

.contact-form button {
  margin-top: 0;
  padding: 1rem 1.6rem;
  min-width: 190px;
}

@media (max-width: 980px) {
  .contact-hero__inner,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-hero__details {
    max-width: 520px;
  }
}

@media (max-width: 700px) {
  .contact-hero {
    padding: 3.5rem 1rem;
  }

  .contact-section {
    width: min(100% - 2rem, 1120px);
    padding: 2.5rem 0 4rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form button {
    width: 100%;
    justify-content: center;
  }
}

/* ---------------- BUTTON ---------------- */

.btn-primary {
  display: inline-block;
  margin-right: var(--space-2);
  padding: .7rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  color: white;
  background: var(--color-accent);
  box-shadow: var(--shadow);
  transition: transform .15s ease, opacity .15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  opacity: .95;
}

/* ---------------- SECTIONS ---------------- */

main > section {
  padding: var(--space-6) var(--space-4);
  max-width: 1200px;
  margin: 0 auto;
}

main p {
  text-align: justify;
}

/* ---------------- HERO ---------------- */

#hero {
  position: relative;
  width: 100vw;
  max-width: none;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  min-height: clamp(640px, 82vh, 820px);
  padding: clamp(3rem, 7vw, 5rem) 0;
  display: flex;
  align-items: center;
  color: white;
  background: linear-gradient(180deg, rgba(5, 8, 18, 0.96), rgba(8, 12, 22, 0.96)), url("../img/modular-system/Modular24.jpg") center/cover no-repeat;
  overflow: hidden;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(255, 190, 140, 0.08), transparent 14%),
    radial-gradient(circle at 88% 18%, rgba(135, 185, 255, 0.08), transparent 14%);
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(9, 12, 23, 0.55) 58%, rgba(9, 12, 23, 0.88) 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  width: min(1120px, calc(100% - clamp(2rem, 7vw, 6rem)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  z-index: 1;
}

.hero-copy {
  display: grid;
  gap: 1.25rem;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: hsl(48 100% 92%);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: 0;
  max-width: 14ch;
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.6vw, 1.08rem);
  line-height: 1.8;
  max-width: 55ch;
  text-align: left;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(180px, 100%);
  padding: 1rem 1.4rem;
  font-size: 1rem;
  text-align: center;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
}

.hero-actions .btn-primary:last-of-type {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-actions .btn-primary:hover {
  transform: translateY(-1px);
}

.hero-gallery {
  display: grid;
  gap: 0;
}

.hero-card {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  height: clamp(420px, 52vw, 620px);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.22);
  background: rgba(8, 12, 22, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 32% center;
  transition: transform 0.35s ease;
}

.hero-card:hover img {
  transform: scale(1.04);
}

@media (max-width: 1100px) {
  #hero {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    max-width: 760px;
  }

  .hero-gallery {
    grid-template-columns: 1fr;
  }

  .hero-card {
    height: clamp(320px, 56vw, 460px);
  }
}

@media (max-width: 760px) {
  #choose_us,
  #portfolio_preview {
    padding-inline: 1rem;
  }

  #hero {
    padding: 3rem 0;
  }

  .hero-grid {
    width: min(100% - 2rem, 560px);
    gap: 1.5rem;
  }

  .hero-label {
    white-space: normal;
    line-height: 1.5;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
    max-width: 11ch;
  }

  .hero-gallery {
    grid-template-columns: 1fr;
  }

  .hero-card--top,
  .hero-card--bottom {
    transform: translateY(0);
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn-primary {
    flex: 1 1 100%;
    margin-right: 0;
  }

  .hero-card {
    height: clamp(280px, 72vw, 380px);
    border-radius: 24px;
  }
}

/* ---------------- PORTFOLIO GRID ---------------- */

#portfolio_preview {
  padding-top: 0;
}

#portfolio_preview h2 {
  text-align: center;
  font-size: clamp(2.25rem, 3vw, 3rem);
  margin-bottom: var(--space-3);
  letter-spacing: -0.03em;
}

.grid-port {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-item {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.gallery-item:focus-visible {
  outline: 4px solid hsl(24 98% 48% / 0.45);
  outline-offset: 5px;
}

.gallery-item img {
  width: 100%;
  height: clamp(280px, 30vw, 380px);
  display: block;
  object-fit: cover;
  filter: saturate(1.05);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-item:hover img {
  transform: translateY(-8px) scale(1.02);
  filter: brightness(1.08) saturate(1.08);
}

@media (max-width: 1100px) {
  .grid-port {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .gallery-item img {
    height: clamp(240px, 70vw, 320px);
  }
}

/* ---------------- LIGHTBOX ---------------- */

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  background: rgba(5, 8, 18, 0.9);
}

.lightbox.is-open {
  display: flex;
}

.lightbox__image {
  max-width: min(1120px, 100%);
  max-height: 84vh;
  border-radius: 18px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
  object-fit: contain;
}

.lightbox__button {
  position: absolute;
  inline-size: 48px;
  block-size: 48px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.lightbox__button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.lightbox__button:focus-visible {
  outline: 4px solid hsl(24 98% 48% / 0.55);
  outline-offset: 4px;
}

.lightbox__close {
  top: 1.25rem;
  right: 1.25rem;
}

.lightbox__prev {
  left: 1.25rem;
}

.lightbox__next {
  right: 1.25rem;
}

@media (max-width: 700px) {
  .lightbox {
    padding: 4.5rem 1rem;
  }

  .lightbox__image {
    max-height: 72vh;
  }

  .lightbox__button {
    inline-size: 42px;
    block-size: 42px;
    font-size: 1.7rem;
  }
}

/* ---------------- OUR WORK PAGE ---------------- */

.work-page main > section {
  max-width: 1180px;
}

.work-page .work-hero {
  position: relative;
  width: 100vw;
  max-width: none;
  left: 50%;
  margin-left: -50vw;
  padding: clamp(4rem, 8vw, 6rem) 2rem;
  background: linear-gradient(135deg, hsl(28 100% 97%) 0%, white 48%, hsl(36 45% 96%) 100%);
  border-bottom: 1px solid hsl(34 28% 88%);
}

.work-page .work-hero__inner {
  max-width: 1040px;
  margin: 0 auto;
}

.work-page .work-hero h1 {
  max-width: 12ch;
  margin: 0 0 1.25rem;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.work-page .work-hero p:not(.eyebrow) {
  max-width: 70ch;
  color: hsl(220 12% 24%);
  text-align: left;
}

.work-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.work-category-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 1px solid hsl(34 28% 84%);
  border-radius: 999px;
  color: hsl(220 18% 16%);
  background: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-weight: 800;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.work-category-links a:hover {
  color: var(--color-accent);
  border-color: hsl(24 99% 50% / 0.38);
  transform: translateY(-1px);
}

.work-section {
  scroll-margin-top: 6rem;
  padding-block: clamp(3.5rem, 7vw, 5rem);
}

.work-section + .work-section {
  border-top: 1px solid hsl(34 24% 88%);
}

.work-section__heading {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
}

.work-section__heading .eyebrow {
  font-size: clamp(0.98rem, 1.4vw, 1.15rem);
}

.work-section__heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.work-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: clamp(0.85rem, 2vw, 1.35rem);
}

.work-coverflow {
  display: grid;
  gap: 1.15rem;
}

.work-coverflow__stage {
  position: relative;
  min-height: clamp(340px, 45vw, 540px);
  overflow: hidden;
  border-radius: 24px;
  background: transparent;
}

.work-coverflow__controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 0.85rem;
  align-items: center;
}

.work-coverflow__button {
  inline-size: 44px;
  block-size: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid hsl(34 24% 86%);
  border-radius: 50%;
  background: white;
  color: hsl(220 18% 16%);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.work-coverflow__button:hover {
  color: var(--color-accent);
  border-color: hsl(24 99% 50% / 0.38);
  transform: translateY(-1px);
}

.work-coverflow__button:focus-visible {
  outline: 4px solid hsl(24 98% 48% / 0.35);
  outline-offset: 4px;
}

.work-coverflow__progress {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: hsl(34 24% 88%);
}

.work-coverflow__progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--color-accent);
  transition-property: width;
  transition-timing-function: linear;
}

.work-coverflow__count {
  color: hsl(30 13% 34%);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.work-page .gallery-item {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
}

.work-page .work-coverflow__item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(560px, 58vw);
  aspect-ratio: 4 / 3;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.5);
  transition: transform 0.48s ease, opacity 0.48s ease, filter 0.48s ease;
}

.work-page .work-coverflow__item[data-position="0"] {
  z-index: 5;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.work-page .work-coverflow__item[data-position="-1"] {
  z-index: 4;
  opacity: 1;
  pointer-events: auto;
  transform: translate(calc(-50% - min(28vw, 280px)), -50%) scale(0.74);
}

.work-page .work-coverflow__item[data-position="1"] {
  z-index: 4;
  opacity: 1;
  pointer-events: auto;
  transform: translate(calc(-50% + min(28vw, 280px)), -50%) scale(0.74);
}

.work-page .work-coverflow__item[data-position="-2"] {
  z-index: 3;
  opacity: 1;
  transform: translate(calc(-50% - min(48vw, 500px)), -50%) scale(0.5);
}

.work-page .work-coverflow__item[data-position="2"] {
  z-index: 3;
  opacity: 1;
  transform: translate(calc(-50% + min(48vw, 500px)), -50%) scale(0.5);
}

.work-page .work-coverflow__item[data-position="hidden"] {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.work-page .work-coverflow__item:hover img {
  transform: none;
}

.work-page .gallery-item img {
  height: 100%;
  object-fit: contain;
  filter: saturate(1.04) drop-shadow(0 18px 28px rgba(15, 23, 42, 0.16));
}

.work-page .work-coverflow__item[data-position="-1"] img,
.work-page .work-coverflow__item[data-position="1"] img {
  filter: brightness(0.48) saturate(0.82) drop-shadow(0 14px 24px rgba(15, 23, 42, 0.18));
}

.work-page .work-coverflow__item[data-position="-2"] img,
.work-page .work-coverflow__item[data-position="2"] img {
  filter: brightness(0.32) saturate(0.72) drop-shadow(0 10px 18px rgba(15, 23, 42, 0.16));
}

@media (max-width: 1000px) {
  .work-page .work-coverflow__item {
    width: min(520px, 68vw);
  }
}

@media (max-width: 700px) {
  .work-page .work-hero {
    padding: 3.5rem 1rem;
  }

  .work-category-links a {
    flex: 1 1 100%;
  }

  .work-section {
    padding-inline: 1rem;
  }

  .work-gallery {
    grid-template-columns: 1fr;
  }

  .work-coverflow__stage {
    min-height: clamp(300px, 82vw, 420px);
    border-radius: 18px;
  }

  .work-page .work-coverflow__item {
    width: min(420px, 78vw);
    border-radius: 16px;
  }

  .work-page .work-coverflow__item[data-position="-1"] {
    opacity: 1;
    transform: translate(calc(-50% - 58vw), -50%) scale(0.58);
  }

  .work-page .work-coverflow__item[data-position="1"] {
    opacity: 1;
    transform: translate(calc(-50% + 58vw), -50%) scale(0.58);
  }

  .work-page .work-coverflow__item[data-position="-2"],
  .work-page .work-coverflow__item[data-position="2"] {
    opacity: 0;
    pointer-events: none;
  }

  .work-coverflow__controls {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .work-coverflow__next {
    grid-column: 3;
    grid-row: 1;
  }

  .work-coverflow__count {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
  }
}

/* ---------------- FOOTER ---------------- */

.footer {
  background: hsl(0 0% 5%);
  color: white;
  padding: clamp(3rem, 6vw, 5rem) var(--space-4) 2rem;
  margin-top: var(--space-6);
  border-top: 4px solid var(--color-accent);
}

.footer-container {
  width: min(100% - 2rem, 1180px);
  margin: 0 auto;
  text-align: left;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(240px, 1.45fr) repeat(3, minmax(150px, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.footer-brand {
  max-width: 360px;
}

.footer-logo {
  display: inline-flex;
  color: white;
  text-decoration: none;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.footer-logo:hover {
  color: var(--color-accent);
}

.footer-tagline {
  color: var(--color-accent);
  margin: 0.75rem 0 0;
  font-weight: 800;
}

.footer-description {
  color: hsl(0 0% 78%);
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 32rem;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.4rem;
  min-height: 44px;
  padding: 0.85rem 1.1rem;
  border-radius: 8px;
  background: var(--color-accent);
  color: white;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.footer-cta:hover {
  background: hsl(20 100% 42%);
  transform: translateY(-1px);
}

.footer-column h4 {
  color: white;
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
}

.footer-links a {
  text-decoration: none;
  color: hsl(0 0% 78%);
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.2s ease;
}

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

.footer-contact-block {
  font-style: normal;
  text-align: left;
}

.footer-contact-link {
  display: inline-flex;
  color: white;
  text-decoration: none;
  font-weight: 800;
  overflow-wrap: anywhere;
  margin-bottom: 1rem;
}

.footer-contact-link:hover,
.footer-map-link:hover {
  color: var(--color-accent);
}

.footer-contact {
  color: hsl(0 0% 78%);
  line-height: 1.6;
  margin: 0 0 1rem;
}

.footer-address-line {
  white-space: nowrap;
}

.footer-map-link {
  display: inline-flex;
  color: hsl(0 0% 96%);
  text-decoration: none;
  font-weight: 800;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 0.25rem;
  transition: color 0.2s ease;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid hsl(0 0% 20%);
}

.footer-copy {
  color: hsl(0 0% 72%);
  font-size: 0.85rem;
  margin: 0;
}

.footer-note {
  color: hsl(0 0% 58%);
  font-size: 0.85rem;
  margin: 0;
  text-align: right;
}

@media (max-width: 920px) {
  .footer-main {
    grid-template-columns: 1.25fr 1fr;
  }

  .footer-brand {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .footer {
    padding-inline: 1rem;
  }

  .footer-container {
    width: 100%;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .footer-note {
    text-align: left;
  }
}

@media (max-width: 380px) {
  .footer-address-line {
    white-space: normal;
  }
}

/* ---------------- THANK YOU PAGE ---------------- */

.thank-you-page main {
  background:
    linear-gradient(135deg, hsl(28 100% 97%) 0%, white 46%, hsl(36 45% 96%) 100%);
}

.thank-you-section {
  width: min(100% - 2rem, 1120px);
  min-height: clamp(520px, 70vh, 720px);
  display: grid;
  align-items: center;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.thank-you-panel {
  max-width: 840px;
  padding: clamp(2rem, 5vw, 4rem);
  border-left: 6px solid var(--color-accent);
  background: white;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.thank-you-mark {
  position: relative;
  width: 58px;
  height: 58px;
  margin-bottom: 1.4rem;
  border-radius: 50%;
  background: hsl(24 98% 48% / 0.12);
}

.thank-you-mark::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 16px;
  width: 15px;
  height: 25px;
  border-right: 5px solid var(--color-accent);
  border-bottom: 5px solid var(--color-accent);
  transform: rotate(45deg);
}

.thank-you-panel h1 {
  max-width: 11ch;
  margin: 0;
  color: hsl(220 18% 16%);
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.thank-you-panel > p:not(.eyebrow) {
  max-width: 62ch;
  margin-top: 1.2rem;
  color: hsl(30 13% 34%);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.8;
  text-align: left;
}

.thank-you-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.thank-you-actions .btn-primary {
  margin-right: 0;
  padding: 0.95rem 1.35rem;
}

.thank-you-link {
  color: var(--color-accent);
  font-weight: 800;
  text-decoration: none;
}

.thank-you-link:hover {
  color: var(--color-accent-strong);
}

.thank-you-next {
  max-width: 620px;
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid hsl(34 24% 86%);
}

.thank-you-next span {
  display: block;
  color: hsl(220 18% 16%);
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
}

.thank-you-next p {
  margin-top: 0.45rem;
  color: hsl(30 13% 34%);
  line-height: 1.7;
  text-align: left;
}

@media (max-width: 700px) {
  .thank-you-section {
    width: min(100% - 2rem, 1120px);
    min-height: auto;
    padding: 2.5rem 0 4rem;
  }

  .thank-you-panel {
    border-left-width: 4px;
  }

  .thank-you-actions .btn-primary,
  .thank-you-link {
    width: 100%;
    text-align: center;
  }
}

/* ---------------- REDUCED MOTION ---------------- */

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------------- SERVICES PAGE ---------------- */

.page-hero {
  padding: 5rem 2rem;
  background: radial-gradient(circle at top left, hsl(210 96% 90%), hsl(220 100% 98%));
}

.page-hero__inner {
  max-width: 840px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin: 1rem 0 1.5rem;
  line-height: 1.05;
}

.page-hero__inner p {
  max-width: 72ch;
  margin-bottom: 1.6rem;
  color: hsl(210 10% 20%);
}

.services-page .page-hero {
  position: relative;
  width: 100vw;
  max-width: none;
  left: 50%;
  margin-left: -50vw;
  padding: 5.5rem 2rem 4.5rem;
  background:
    linear-gradient(135deg, hsl(28 100% 97%) 0%, hsl(0 0% 100%) 48%, hsl(36 45% 96%) 100%);
  border-bottom: 1px solid hsl(34 28% 88%);
}

.services-page .page-hero__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--color-accent);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.services-page .page-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.7rem, 5vw, 4.4rem);
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.services-page .page-hero__inner > p:not(.eyebrow) {
  max-width: 68ch;
  margin-bottom: 0;
  color: hsl(220 12% 24%);
  text-align: left;
}

.services-page .page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.25rem;
}

.services-page .page-hero__actions .btn-primary {
  margin-right: 0;
}

.services-page .text-link {
  color: var(--color-accent);
  font-weight: 800;
  text-decoration: none;
}

.services-page .text-link:hover {
  color: var(--color-accent-strong);
}

.services-page .service-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 780px;
  margin-top: 1.25rem;
  overflow: hidden;
  border: 1px solid hsl(34 28% 86%);
  border-radius: 18px;
  background: hsl(34 28% 86%);
}

.services-page .service-metrics div {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.78);
}

.services-page .service-metrics span {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--color-accent);
  font-weight: 900;
  font-size: 0.9rem;
}

.services-page .service-metrics p {
  margin: 0;
  color: hsl(220 14% 18%);
  font-size: 0.95rem;
  font-weight: 800;
  text-align: left;
}

.services-page .content-panel {
  max-width: 1120px;
  margin: 0 auto;
  padding: 5rem 2rem 3.5rem;
  background: white;
}

.services-page .section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.services-page .section-heading h2 {
  font-size: clamp(2.1rem, 3vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.services-page .service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.services-page .service-card {
  min-height: 280px;
  padding: 2rem;
  background: white;
  border: 1px solid hsl(34 24% 88%);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.services-page .service-card__number {
  display: inline-grid;
  place-items: center;
  inline-size: 42px;
  block-size: 42px;
  margin-bottom: 1.4rem;
  border-radius: 50%;
  background: hsl(24 99% 50% / 0.1);
  color: var(--color-accent);
  font-weight: 900;
  font-size: 0.9rem;
}

.services-page .service-card h3 {
  margin-bottom: 0.85rem;
  color: hsl(220 18% 16%);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.2;
}

.services-page .service-card p {
  color: hsl(30 13% 34%);
  line-height: 1.75;
  text-align: left;
}

.services-page .cta-panel {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 2rem 5rem;
}

.services-page .cta-panel__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 2rem;
  align-items: center;
  padding: 2.5rem;
  background: hsl(220 18% 12%);
  border-radius: 18px;
  color: white;
}

.services-page .cta-panel__inner h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: white;
}

.services-page .cta-panel__inner > p:not(.eyebrow) {
  grid-column: 1;
  max-width: 68ch;
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.78);
  text-align: left;
}

.services-page .cta-panel__inner .eyebrow {
  grid-column: 1;
  margin: 0;
  color: hsl(34 100% 75%);
  font-size: 0.85rem;
}

.services-page .cta-panel__button {
  display: inline-flex;
  justify-content: center;
  min-width: 220px;
  padding: 0.95rem 1.5rem;
  grid-column: 2;
  grid-row: 1 / span 3;
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .services-page .service-grid,
  .services-page .service-metrics {
    grid-template-columns: 1fr;
  }

  .services-page .cta-panel__inner {
    grid-template-columns: 1fr;
  }

  .services-page .cta-panel__button {
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
  }
}

@media (max-width: 700px) {
  .services-page .page-hero {
    padding: 3.5rem 1rem;
  }

  .services-page .content-panel,
  .services-page .cta-panel {
    padding-inline: 1rem;
  }

  .services-page .content-panel {
    padding-top: 3.5rem;
  }

  .services-page .service-card,
  .services-page .cta-panel__inner {
    padding: 1.5rem;
  }

  .services-page .cta-panel__button {
    width: 100%;
  }
}


/* --- Why Choose Modu-8 --- */

/* WHY CHOOSE SECTION */
#choose_us {
  margin-top: 3.5rem;
  padding: clamp(3.5rem, 7vw, 5rem) clamp(1rem, 4vw, 2rem);
  text-align: center;
  background: #ffffff;
  border: none;
  border-radius: 32px;
  box-shadow: none;
}

#choose_us h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.choose-subtext {
  font-size: 1.15rem;
  max-width: 60ch;
  margin: 0 auto 3rem;
  color: hsl(210 12% 35%);
}

@media (max-width: 800px) {
  .choose-subtext {
    font-size: 1.05rem;
  }
}

.choose-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
}

.choose-card {
  background: white;
  padding: 2.5rem 1.5rem;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.07);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.choose-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.1);
}

.choose-card .stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
  color: hsl(24 99% 50%);
  font-variant-numeric: tabular-nums;
}

.choose-card .stat-label {
  font-size: 1rem;
  color: hsl(210 10% 35%);
  line-height: 1.7;
}

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

  .choose-card {
    padding: 2rem 1.4rem;
  }
}
