:root {
  --primary: 82 105 126;
  --primary-light: 184 197 209;
  --secondary: 245 244 240;
  --ink: 16 21 25;
  --muted: 75 75 75;
  --line: 226 229 231;
  --white: 255 255 255;
  --max: 1200px;
  --header-height: 128px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 62.5%;
}

body {
  margin: 0;
  color: rgb(var(--ink));
  background: rgb(var(--white));
  font-family: "Frank Ruhl Libre", Georgia, serif;
  font-size: 1.6rem;
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

p,
li {
  color: rgb(var(--muted));
}

.container {
  width: min(100% - 10rem, var(--max));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, height 0.25s ease;
}

.site-header.is-scrolled,
.site-header.light-header {
  background: rgb(var(--white));
  border-color: rgb(var(--line));
}

.site-header .container {
  display: flex;
  align-items: center;
  height: 100%;
}

.brand {
  display: inline-flex;
  width: 142px;
  margin-right: auto;
}

.brand img {
  width: 142px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 3.8rem;
  font-family: "Gantari", Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-link,
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 4.4rem;
  border: 0;
  padding: 0;
  color: rgb(var(--white));
  background: transparent;
  font: inherit;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s ease;
}

.site-header.is-scrolled .nav-link,
.site-header.is-scrolled .dropdown-toggle,
.site-header.light-header .nav-link,
.site-header.light-header .dropdown-toggle {
  color: rgb(var(--ink));
}

.nav-link:hover,
.dropdown-toggle:hover {
  color: rgb(var(--primary));
}

.nav-item {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 24rem;
  transform: translate(-50%, 0.8rem);
  display: grid;
  gap: 0.2rem;
  padding: 1rem 0;
  background: rgb(var(--white));
  box-shadow: 0 20px 45px rgb(0 0 0 / 0.14);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown,
.nav-item.open .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.dropdown a {
  padding: 1rem 2rem;
  color: rgb(var(--ink));
  font-family: "Gantari", Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  text-decoration: none;
  text-transform: none;
}

.dropdown a:hover {
  background: rgb(var(--secondary));
  color: rgb(var(--primary));
}

.menu-toggle {
  display: none;
  width: 4.6rem;
  height: 4.6rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 2.8rem;
  height: 2px;
  margin: 0.6rem auto;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.section {
  padding: 10rem 0;
}

.section.flush-top {
  padding-top: 0;
}

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

.section.primary {
  background: rgb(var(--primary));
}

.thank-you-section {
  padding-top: 20rem;
}

.section-title {
  margin: 0;
  padding-bottom: 0.5em;
  font-size: clamp(3rem, 4.5vw, 6rem);
  font-weight: 400;
  line-height: 1.2;
}

.section-title.medium {
  font-size: 3.3rem;
}

.small-title {
  margin: 0;
  padding-bottom: 0.7em;
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.35;
}

.text-title {
  margin: 0;
  padding-bottom: 0.4em;
  font-size: 1.7rem;
  font-weight: 700;
}

.text-block {
  max-width: 70rem;
}

.text-block + .text-block {
  margin-top: 5rem;
}

.center {
  text-align: center;
}

.home-hero,
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  overflow: hidden;
  background: rgb(var(--ink));
  text-align: center;
}

.page-hero {
  min-height: 50vh;
}

.home-hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(var(--ink) / 0.45);
}

.hero-slide,
.page-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide {
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero-slide.active {
  opacity: 1;
}

.home-hero .container,
.page-hero .container {
  position: relative;
  z-index: 1;
}

.home-hero .section-title,
.page-hero .section-title {
  color: rgb(var(--white));
}

.service-overlap {
  position: relative;
  z-index: 2;
  margin-top: -10rem;
}

.cards-grid {
  display: grid;
  gap: 2rem;
}

.cards-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid.team {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3rem;
}

.service-card {
  position: relative;
  min-height: 29rem;
  overflow: hidden;
  color: rgb(var(--white));
  text-decoration: none;
  isolation: isolate;
}

.service-card img,
.project-card img,
.image-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.service-card:hover img,
.project-card:hover img,
.image-square:hover img {
  transform: scale(1.05);
}

.service-card .card-copy {
  position: absolute;
  z-index: 2;
  right: 2.4rem;
  bottom: 2.2rem;
  left: 2.4rem;
}

.service-card .small-title {
  color: rgb(var(--white));
  padding-bottom: 0;
  text-shadow: 0 2px 14px rgb(var(--ink) / 0.65);
}

.value-wrapper {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 7rem;
  align-items: center;
}

.value-tabs {
  display: grid;
  gap: 1.4rem;
}

.value-tab {
  width: fit-content;
  border: 0;
  padding: 0;
  color: rgb(var(--white) / 0.55);
  background: transparent;
  font-family: "Frank Ruhl Libre", Georgia, serif;
  font-size: 2.2rem;
  cursor: pointer;
}

.value-tab.active {
  color: rgb(var(--white));
}

.value-panel {
  display: none;
  min-height: 22rem;
  border-left: 1px solid rgb(var(--white));
  padding-left: 8rem;
}

.value-panel.active {
  display: block;
}

.value-panel p,
.value-panel .section-title {
  color: rgb(var(--white));
}

.project-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 28rem;
  color: rgb(var(--white));
  text-decoration: none;
}

.project-card .image {
  position: absolute;
  inset: 0;
}

.project-card .project-copy {
  position: absolute;
  z-index: 2;
  right: 2.4rem;
  bottom: 2.2rem;
  left: 2.4rem;
}

.project-card p,
.project-card .small-title {
  color: rgb(var(--white));
  text-shadow: 0 2px 14px rgb(var(--ink) / 0.65);
}

.project-card p {
  margin: 0;
}

.project-detail {
  padding-top: 18rem;
}

.project-detail-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 7rem;
  align-items: start;
}

.project-gallery {
  min-width: 0;
}

.project-main-image {
  display: block;
  width: 100%;
  overflow: hidden;
  background: rgb(var(--secondary));
}

.project-main-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.project-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.project-thumb {
  border: 0;
  padding: 0;
  background: rgb(var(--secondary));
  cursor: pointer;
  opacity: 0.55;
  aspect-ratio: 1;
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.project-thumb.active,
.project-thumb:hover {
  opacity: 1;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-content .text-label {
  margin: 0 0 1rem;
  color: rgb(var(--primary));
  font-family: "Gantari", Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
}

.project-content ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 3rem;
  margin: 4rem 0 0;
  padding: 0;
  list-style: none;
}

.project-content li {
  margin: 0;
}

.back-link {
  display: inline-flex;
  margin-top: 4rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.split-image {
  min-height: 43rem;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-copy {
  position: relative;
  z-index: 1;
  margin-left: -10%;
  padding: 8rem;
  background: rgb(var(--secondary));
}

.rule {
  display: block;
  width: 15rem;
  height: 1px;
  margin: 2.4rem auto;
  background: rgb(var(--primary));
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  color: rgb(var(--muted));
  text-decoration: none;
}

.arrow-link::after {
  content: ">";
  margin-left: 1rem;
  transition: transform 0.2s ease;
}

.arrow-link:hover::after {
  transform: translateX(0.6rem);
}

.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 6rem;
  align-items: center;
  justify-content: center;
}

.logos img {
  max-width: 17rem;
  max-height: 10rem;
  object-fit: contain;
}

.service-list {
  display: grid;
  gap: 5rem;
}

.service-row {
  max-width: 78rem;
  padding-bottom: 5rem;
  border-bottom: 1px solid rgb(var(--primary));
}

.service-row:last-child {
  border-bottom: 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7rem;
  align-items: start;
}

.service-feature {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 7rem;
  align-items: center;
}

.service-feature-image {
  min-height: 48rem;
  overflow: hidden;
}

.service-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-note {
  margin-top: 3rem;
  padding: 3rem;
  border-left: 1px solid rgb(var(--primary));
  background: rgb(var(--secondary));
}

.list-box {
  margin-top: 4rem;
  padding: 4rem;
  background: rgb(var(--secondary));
}

.check-list {
  columns: 3;
  column-gap: 3rem;
  padding: 0;
  list-style: none;
}

.check-list li {
  break-inside: avoid;
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.8rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  left: 0;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid rgb(var(--primary));
  border-bottom: 2px solid rgb(var(--primary));
  transform: rotate(45deg);
}

.image-square {
  aspect-ratio: 1;
  overflow: hidden;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 7rem;
  align-items: start;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  padding: 4rem;
  background: rgb(var(--secondary));
}

.form-row {
  display: grid;
  gap: 0.8rem;
}

.form-row-wide {
  grid-column: 1 / -1;
}

.contact-form label {
  color: rgb(var(--ink));
  font-family: "Gantari", Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgb(var(--line));
  border-radius: 0;
  padding: 1.3rem 1.4rem;
  color: rgb(var(--ink));
  background: rgb(var(--white));
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgb(var(--primary) / 0.35);
  outline-offset: 2px;
}

.hidden-field {
  display: none;
}

.form-submit {
  justify-self: start;
  min-width: 20rem;
  border: 1px solid rgb(var(--primary));
  padding: 1.4rem 2rem;
  color: rgb(var(--white));
  background: rgb(var(--primary));
  font-family: "Gantari", Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.form-submit:hover {
  color: rgb(var(--primary));
  background: transparent;
}

.team-card .image-square {
  margin-bottom: 2rem;
}

.contact-options {
  font-family: "Gantari", Arial, sans-serif;
  font-style: normal;
}

.contact-options a,
.download-contact {
  display: block;
  color: rgb(var(--muted));
  font-size: 1.4rem;
  text-decoration: none;
}

.download-contact {
  margin-top: 1.4rem;
}

.placeholder-card {
  position: relative;
}

.placeholder-card .overlay-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 3rem;
  color: rgb(var(--primary));
}

.site-footer {
  background: rgb(var(--primary));
  color: rgb(var(--white));
  padding: 0 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 5rem;
  padding: 8rem 0 5rem;
  border-bottom: 1px solid rgb(var(--white) / 0.3);
}

.footer-menu:first-child {
  padding-right: 5rem;
  border-right: 1px solid rgb(var(--white));
}

.footer-menu p,
.footer-menu li,
.footer-menu a,
.footer-bottom p,
.footer-bottom a {
  color: rgb(var(--white));
}

.footer-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
}

.footer-bottom p,
.footer-bottom a {
  margin: 0;
  font-family: "Gantari", Arial, sans-serif;
  font-size: 1.4rem;
}

.source-note {
  display: none;
}

.policy-content {
  max-width: 86rem;
}

.policy-content .lead {
  color: rgb(var(--ink));
  font-size: 2.1rem;
  line-height: 1.5;
}

.policy-content h2 {
  margin: 4.5rem 0 1.2rem;
  color: rgb(var(--ink));
  font-size: 3rem;
  line-height: 1.15;
}

.policy-content h3 {
  margin: 2.6rem 0 0.8rem;
  color: rgb(var(--ink));
  font-family: "Gantari", Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.policy-content ul {
  margin: 0 0 2rem;
  padding-left: 2rem;
}

.policy-note {
  margin: 3rem 0;
  border-left: 4px solid rgb(var(--primary));
  padding: 2rem 2.4rem;
  background: rgb(var(--secondary));
}

.policy-note p {
  margin: 0;
}

.inline-button {
  display: inline-flex;
  align-items: center;
  min-height: 4.6rem;
  border: 1px solid rgb(var(--primary));
  padding: 0 1.8rem;
  color: rgb(var(--white));
  background: rgb(var(--primary));
  font-family: "Gantari", Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
}

.cookie-banner {
  position: fixed;
  z-index: 80;
  right: 2rem;
  bottom: 2rem;
  left: 2rem;
  transform: translateY(2rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2.4rem;
  align-items: center;
  width: min(100%, 1060px);
  margin: 0 auto;
  border: 1px solid rgb(var(--line));
  padding: 2.2rem 2.4rem;
  background: rgb(var(--white));
  box-shadow: 0 22px 70px rgb(var(--ink) / 0.18);
}

.cookie-copy h2 {
  margin: 0 0 0.6rem;
  color: rgb(var(--ink));
  font-size: 2.2rem;
  line-height: 1.15;
}

.cookie-copy p {
  margin: 0;
  font-family: "Gantari", Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.55;
}

.cookie-copy a {
  color: rgb(var(--primary));
  font-weight: 700;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
}

.cookie-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.4rem;
  border: 1px solid rgb(var(--primary));
  padding: 0 1.5rem;
  font-family: "Gantari", Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
}

.cookie-button.primary {
  color: rgb(var(--white));
  background: rgb(var(--primary));
}

.cookie-button.secondary {
  color: rgb(var(--primary));
  background: rgb(var(--white));
}

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

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

  .container {
    width: min(100% - 6rem, var(--max));
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 86px;
  }

  .site-header {
    background: rgb(var(--white));
    border-color: rgb(var(--line));
  }

  .site-header .nav-link,
  .site-header .dropdown-toggle {
    color: rgb(var(--ink));
  }

  .menu-toggle {
    display: block;
    color: rgb(var(--ink));
  }

  .main-nav {
    position: absolute;
    z-index: 1;
    top: 100%;
    right: 0;
    bottom: auto;
    left: 0;
    display: none;
    align-content: start;
    align-items: start;
    gap: 0;
    width: 100%;
    height: calc(100dvh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    overflow: auto;
    padding: 3rem;
    background: rgb(var(--paper));
    box-shadow: 0 1.2rem 3rem rgb(var(--shadow) / 0.1);
    transform: none;
  }

  .menu-open .main-nav {
    display: grid;
  }

  .main-nav .nav-item {
    width: 100%;
  }

  .menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(0.8rem) rotate(45deg);
  }

  .menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-0.8rem) rotate(-45deg);
  }

  .nav-link,
  .dropdown-toggle {
    width: 100%;
    min-height: 5.6rem;
    color: rgb(var(--ink));
  }

  .dropdown {
    position: static;
    width: 100%;
    transform: none;
    display: grid;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    padding: 0 0 1rem 1rem;
  }

  .value-wrapper,
  .intro-grid,
  .contact-layout,
  .project-detail-grid,
  .service-feature,
  .split {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .project-detail {
    padding-top: 13rem;
  }

  .service-feature-image {
    min-height: 34rem;
  }

  .value-panel {
    border-top: 1px solid rgb(var(--white));
    border-left: 0;
    padding: 4rem 0 0;
  }

  .split-copy {
    margin-left: 0;
    padding: 5rem 3rem;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-menu:first-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid rgb(var(--white));
    padding: 0 0 4rem;
  }

  .cookie-banner-inner {
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1.55rem;
  }

  .container {
    width: min(100% - 4rem, var(--max));
  }

  .section {
    padding: 6rem 0;
  }

  .home-hero {
    min-height: 72vh;
  }

  .home-hero .section-title,
  .page-hero .section-title {
    font-size: 3.4rem;
  }

  .cards-grid.four,
  .cards-grid.three,
  .cards-grid.team,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .project-content ul,
  .project-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-form {
    padding: 3rem 2rem;
  }

  .form-submit {
    width: 100%;
  }

  .service-card,
  .project-card {
    min-height: 31rem;
  }

  .service-overlap {
    margin-top: -5rem;
  }

  .check-list {
    columns: 1;
  }

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

  .policy-content h2 {
    font-size: 2.5rem;
  }

  .cookie-banner {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
  }

  .cookie-banner-inner {
    padding: 2rem;
  }

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

/* Architectural editorial refresh */
:root {
  --primary: 73 96 116;
  --primary-light: 205 214 220;
  --secondary: 242 240 234;
  --paper: 250 249 246;
  --warm: 232 227 218;
  --ink: 18 23 25;
  --muted: 91 88 82;
  --line: 214 211 203;
  --focus: 128 153 173;
  --shadow: 42 56 66;
  --max: 1240px;
}

body {
  background: rgb(var(--paper));
  text-rendering: optimizeLegibility;
}

html,
body {
  overflow-x: clip;
}

body::before {
  content: none;
  display: none;
}

::selection {
  color: rgb(var(--white));
  background: rgb(var(--primary));
}

:focus-visible {
  outline: 2px solid rgb(var(--focus));
  outline-offset: 4px;
}

p,
li {
  text-wrap: pretty;
}

.container {
  width: min(100% - clamp(3.2rem, 7vw, 10rem), var(--max));
}

.site-header {
  height: 11.2rem;
  backdrop-filter: blur(0);
}

.site-header.is-scrolled,
.site-header.light-header,
.menu-open .site-header {
  background: rgb(var(--paper) / 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgb(var(--line));
}

.main-nav {
  gap: clamp(2rem, 3.2vw, 4.2rem);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
}

.nav-link,
.dropdown-toggle {
  position: relative;
}

.nav-link::after,
.dropdown-toggle::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.7rem;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: currentColor;
  transition: transform 0.22s ease;
}

.nav-link:hover::after,
.dropdown-toggle:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link.is-active {
  color: rgb(var(--primary));
}

.dropdown {
  width: 27rem;
  border: 1px solid rgb(var(--line));
  background: rgb(var(--paper));
  box-shadow: 0 24px 60px rgb(var(--shadow) / 0.14);
}

.section {
  position: relative;
  padding: clamp(8rem, 11vw, 14rem) 0;
}

.section + .section {
  border-top: 1px solid rgb(var(--line));
}

.section.flush-top {
  padding-top: clamp(4.5rem, 7vw, 8rem);
}

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

.section.primary {
  background:
    linear-gradient(135deg, rgb(var(--primary)) 0%, rgb(64 82 98) 100%);
}

.section-title {
  max-width: 11ch;
  padding-bottom: 0.42em;
  font-size: clamp(3.8rem, 6.8vw, 8.2rem);
  font-weight: 430;
  line-height: 0.98;
  text-wrap: balance;
}

.section-title.medium {
  max-width: 15ch;
  font-size: clamp(3.1rem, 4vw, 4.9rem);
  line-height: 1.04;
}

.section-title.center {
  margin-inline: auto;
}

.small-title {
  font-size: clamp(2rem, 2.2vw, 2.8rem);
  line-height: 1.1;
  text-wrap: balance;
}

.text-block {
  max-width: 66rem;
}

.home-hero,
.page-hero {
  justify-content: flex-start;
  text-align: left;
}

.home-hero {
  min-height: clamp(46rem, 68dvh, 66rem);
}

.page-hero {
  min-height: 42rem;
}

.home-hero::after,
.page-hero::after {
  background:
    linear-gradient(90deg, rgb(var(--ink) / 0.72) 0%, rgb(var(--ink) / 0.46) 42%, rgb(var(--ink) / 0.12) 100%),
    linear-gradient(0deg, rgb(var(--ink) / 0.24), transparent 40%);
}

.home-hero .container,
.page-hero .container {
  display: grid;
  justify-items: start;
  padding-top: 8rem;
}

.home-hero .container::before {
  content: "Byggkonsult i Skåne";
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.page-hero .container::before {
  content: "CM Byggkonsult";
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.2rem;
  color: rgb(var(--white) / 0.86);
  font-family: "Gantari", Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-hero .container::after,
.page-hero .container::after {
  content: "";
  display: block;
  width: min(30rem, 40vw);
  height: 1px;
  margin-top: 2.8rem;
  background: rgb(var(--white) / 0.7);
}

.home-hero .section-title {
  max-width: 21ch;
  font-size: clamp(3.8rem, 5.5vw, 7rem);
  text-shadow: 0 3rem 8rem rgb(var(--ink) / 0.45);
}

.page-hero .section-title {
  max-width: 18ch;
  text-shadow: 0 3rem 8rem rgb(var(--ink) / 0.45);
}

.page-hero .section-title {
  font-size: clamp(4rem, 5.4vw, 6.8rem);
}

.page-hero > img {
  object-position: 58% center;
}

.service-overlap {
  margin-top: 0;
}

.cards-grid {
  gap: clamp(1.6rem, 2vw, 2.8rem);
}

.cards-grid.four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  max-width: 106rem;
  margin-inline: auto;
}

.service-card {
  position: relative;
  display: grid;
  grid-column: auto;
  min-height: 0;
  overflow: hidden;
  color: rgb(var(--ink));
  background: rgb(var(--paper));
  box-shadow: 0 1px 0 rgb(var(--line));
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.service-card:nth-child(2),
.service-card:nth-child(4) {
  margin-top: 0;
}

.service-card:nth-child(1) img,
.service-card:nth-child(2) img,
.service-card:nth-child(3) img,
.service-card:nth-child(4) img {
  aspect-ratio: 4 / 3;
}

.service-card::before {
  content: none;
  display: none;
}

.service-card img,
.project-card img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: cover;
}

.service-card img {
  filter: saturate(1.06) contrast(1.03);
}

.service-card[href="/tjanster/byggprojektering/"] img,
.image-square img[src*="cm-azad"] {
  filter: saturate(1.18) contrast(1.08) brightness(1.03);
}

.service-card:hover,
.team-card:hover .image-square {
  transform: translateY(-0.55rem) scale(1.01);
  box-shadow: 0 22px 60px rgb(var(--shadow) / 0.14);
}

.service-card .card-copy {
  position: relative;
  inset: auto;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  padding: 1.7rem 1.5rem 1.4rem;
  background: rgb(var(--paper));
}

.service-card .small-title,
.project-card .small-title,
.project-card p {
  color: rgb(var(--ink));
  text-shadow: none;
}

.service-card .small-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 1.1rem;
  width: 100%;
  padding: 0.2rem 0 1.1rem;
  border-bottom: 1px solid rgb(var(--line));
  font-size: clamp(1.9rem, 1.65vw, 2.35rem);
  line-height: 1.12;
  text-align: left;
}

.service-card .small-title::after,
.project-card .small-title::after {
  content: ">";
  margin-left: 1.4rem;
  color: rgb(var(--primary));
  font-family: "Gantari", Arial, sans-serif;
  font-size: 1.6rem;
  transition: transform 0.22s ease;
}

.service-card .small-title::after {
  justify-self: end;
  margin-left: 0;
}

.service-card:hover img {
  transform: scale(1.025);
}

.service-card:hover .small-title::after {
  transform: translateX(0.25rem);
}

.project-card:hover .small-title::after {
  transform: translateX(0.5rem);
}

.value-wrapper {
  grid-template-columns: minmax(18rem, 0.52fr) minmax(0, 1.48fr);
  gap: clamp(4rem, 7vw, 10rem);
}

.value-tabs {
  position: relative;
  gap: 0;
  padding-left: 2.4rem;
}

.value-tabs::before {
  content: "";
  position: absolute;
  top: 0.3rem;
  bottom: 0.3rem;
  left: 0;
  width: 1px;
  background: rgb(var(--white) / 0.35);
}

.value-tab {
  width: 100%;
  padding: 1.5rem 0;
  color: rgb(var(--white) / 0.58);
  font-family: "Gantari", Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: left;
  text-transform: uppercase;
}

.value-tab.active {
  color: rgb(var(--white));
}

.value-panel {
  min-height: 18rem;
  border-left: 0;
  padding: 0;
}

.value-panel.active {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr);
  justify-content: end;
}

.value-panel p {
  max-width: 68rem;
  margin: 0;
  color: rgb(var(--white) / 0.86);
  font-size: 1.8rem;
}

.cards-grid.three {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
}

.project-card {
  display: grid;
  grid-column: span 4;
  min-height: 0;
  overflow: visible;
  color: rgb(var(--ink));
  background: transparent;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.cards-grid.three .project-card:nth-child(1) {
  grid-column: span 6;
}

.cards-grid.three .project-card:nth-child(2),
.cards-grid.three .project-card:nth-child(3) {
  grid-column: span 3;
  margin-top: 0;
}

.cards-grid.three .project-card:nth-child(n + 4) {
  grid-column: span 4;
}

.project-card .image {
  position: static;
  display: block;
  overflow: hidden;
  background: rgb(var(--warm));
  transition: box-shadow 0.24s ease;
}

.project-card .image img {
  aspect-ratio: 4 / 3;
}

.cards-grid.three .project-card:nth-child(1) .image img {
  aspect-ratio: 16 / 10;
}

.cards-grid.three .project-card:nth-child(2) .image img,
.cards-grid.three .project-card:nth-child(3) .image img {
  aspect-ratio: 3 / 4;
}

.project-card[href="/projekt/#industri-kontor"] .image img {
  object-position: 35% center;
}

.project-card .project-copy {
  position: static;
  display: grid;
  gap: 0.7rem;
  padding: 1.6rem 0 0;
}

.project-card .small-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 0 0.8rem;
  border-bottom: 1px solid rgb(var(--line));
}

.project-card p {
  color: rgb(var(--muted));
  font-size: 1.55rem;
}

.cards-grid.three > .image-square {
  grid-column: span 4;
  aspect-ratio: 4 / 3;
}

.project-card:hover {
  transform: none;
  box-shadow: none;
}

.project-card:hover .image {
  box-shadow: inset 0 0 0 1px rgb(var(--primary) / 0.32);
}

.project-card:hover img {
  transform: scale(1.025);
}

.project-detail {
  padding-top: clamp(14rem, 17vw, 20rem);
}

.project-detail-grid {
  grid-template-columns: minmax(0, 1.16fr) minmax(32rem, 0.84fr);
  gap: clamp(4rem, 7vw, 9rem);
}

.project-main-image {
  background: rgb(var(--secondary));
  box-shadow: inset 0 0 0 1px rgb(var(--line));
}

.project-main-image img {
  object-fit: cover;
}

.project-content {
  position: sticky;
  top: 14rem;
  padding-top: 1rem;
}

.project-content .text-label {
  letter-spacing: 0.16em;
}

.project-content ul {
  grid-template-columns: 1fr;
  gap: 1.8rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgb(var(--line));
}

.project-content li strong {
  display: block;
  color: rgb(var(--ink));
  font-family: "Gantari", Arial, sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-thumb {
  background: rgb(var(--warm));
  opacity: 0.62;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.project-thumb.active,
.project-thumb:hover {
  transform: translateY(-0.2rem);
}

.split {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 0;
}

.split-image {
  min-height: 50rem;
}

.split-copy {
  margin-left: -7rem;
  padding: clamp(5rem, 7vw, 9rem);
  background: rgb(var(--secondary));
  box-shadow: 0 1px 0 rgb(var(--line));
}

.split-copy.center {
  text-align: left;
}

.rule {
  margin-left: 0;
}

.intro-grid,
.service-feature,
.contact-layout {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(4rem, 7vw, 9rem);
}

.intro-grid .text-block,
.service-feature .text-block,
.contact-layout .text-block {
  border-left: 1px solid rgb(var(--primary));
  padding-left: clamp(2.4rem, 4vw, 5rem);
}

.intro-grid > .image-square,
.service-feature-image {
  aspect-ratio: 5 / 4;
  min-height: 0;
}

.image-square,
.service-feature-image,
.team-card .image-square {
  background: rgb(var(--warm));
  box-shadow: 0 1px 0 rgb(var(--line));
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.service-list {
  gap: 3rem;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(18rem, 0.42fr) minmax(0, 0.58fr);
  gap: 4rem;
  max-width: none;
  padding: 3rem 0;
}

.list-box,
.service-note,
.contact-form,
.policy-note {
  background: rgb(var(--secondary));
  box-shadow: inset 0 0 0 1px rgb(var(--line));
}

.contact-form {
  padding: clamp(3rem, 4vw, 5rem);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  border-color: rgb(var(--line));
  background: rgb(var(--paper));
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgb(var(--primary));
  box-shadow: 0 0 0 4px rgb(var(--focus) / 0.18);
  outline: 0;
}

.form-submit,
.inline-button,
.cookie-button {
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}

.form-submit:hover,
.inline-button:hover,
.cookie-button.primary:hover {
  color: rgb(var(--white));
  background: rgb(48 66 82);
  box-shadow: 0 12px 30px rgb(var(--shadow) / 0.18);
}

.form-submit:active,
.inline-button:active,
.cookie-button:active {
  transform: translateY(1px) scale(0.99);
}

.team-card {
  border-top: 1px solid rgb(var(--line));
  padding-top: 1.6rem;
}

.team-card .image-square {
  aspect-ratio: 4 / 5;
}

.site-footer {
  background:
    linear-gradient(135deg, rgb(var(--primary)) 0%, rgb(58 75 90) 100%);
}

.footer-top {
  grid-template-columns: 1.25fr 0.9fr 0.9fr 0.9fr;
  border-bottom-color: rgb(var(--white) / 0.26);
}

.footer-menu:first-child {
  border-right-color: rgb(var(--white) / 0.42);
}

.footer-menu a,
.footer-bottom a,
.contact-options a,
.download-contact,
.arrow-link {
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-menu a:hover,
.footer-bottom a:hover,
.contact-options a:hover,
.download-contact:hover,
.arrow-link:hover {
  color: rgb(var(--primary-light));
}

.cookie-banner-inner {
  border: 1px solid rgb(var(--line));
  background: rgb(var(--paper));
  box-shadow: 0 24px 70px rgb(var(--shadow) / 0.22);
}

.policy-content {
  max-width: 92rem;
  border-left: 1px solid rgb(var(--line));
  padding-left: clamp(2.4rem, 4vw, 5rem);
}

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

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

  .cards-grid.three .project-card,
  .cards-grid.three .project-card:nth-child(n + 4) {
    grid-column: span 4;
    margin-top: 0;
  }

  .service-card {
    grid-column: auto;
    margin-top: 0;
  }

  .cards-grid.three .project-card:nth-child(1) {
    grid-column: span 4;
  }

  .cards-grid.three .project-card:nth-child(2),
  .cards-grid.three .project-card:nth-child(3) {
    grid-column: span 2;
    margin-top: 0;
  }

  .cards-grid.three > .image-square {
    grid-column: span 4;
  }

  .service-card:nth-child(2),
  .service-card:nth-child(4) {
    margin-top: 0;
  }

  .project-content {
    position: static;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-menu:first-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid rgb(var(--white) / 0.32);
    padding: 0 0 4rem;
  }
}

@media (max-width: 900px) {
  .site-header {
    height: var(--header-height);
  }

  .main-nav {
    letter-spacing: 0.04em;
  }

  .nav-link::after,
  .dropdown-toggle::after {
    display: none;
  }

  .home-hero {
    min-height: 50rem;
  }

  .page-hero {
    min-height: 36rem;
  }

  .home-hero .section-title {
    max-width: 16ch;
    font-size: clamp(3.4rem, 8vw, 5.4rem);
  }

  .page-hero .section-title {
    max-width: 100%;
    font-size: clamp(3.2rem, 8vw, 4.8rem);
  }

  .value-wrapper {
    grid-template-columns: 1fr;
    gap: 3.2rem;
  }

  .value-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.8rem;
    border-bottom: 0;
    padding: 0;
  }

  .value-tabs::before {
    display: none;
  }

  .value-tab {
    width: auto;
    padding: 0;
  }

  .value-panel {
    border-top: 0;
    padding-top: 0;
  }

  .value-panel.active {
    grid-template-columns: 1fr;
    justify-content: start;
  }

  .value-panel .section-title {
    max-width: none;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgb(var(--white) / 0.48);
    padding-bottom: 0.42em;
    font-size: clamp(3.2rem, 11vw, 4.8rem);
    line-height: 1;
  }

  .intro-grid,
  .service-feature,
  .contact-layout,
  .project-detail-grid,
  .split {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .split {
    gap: 0;
  }

  .split-image {
    min-height: auto;
  }

  .split-image img {
    display: block;
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .split-copy {
    margin-left: 0;
    padding: clamp(3.2rem, 8vw, 5rem);
  }

  .split-copy .section-title {
    max-width: none;
    font-size: clamp(3.2rem, 10vw, 4.6rem);
    line-height: 1.04;
  }

  .split-copy .rule {
    width: min(15rem, 100%);
  }

  .intro-grid .text-block,
  .service-feature .text-block,
  .contact-layout .text-block,
  .policy-content {
    border-left: 0;
    padding-left: 0;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

@media (max-width: 640px) {
  .home-hero {
    min-height: 42rem;
  }

  .page-hero {
    min-height: 30rem;
  }

  .home-hero .container,
  .page-hero .container {
    padding-top: 6rem;
  }

  .page-hero .container::before {
    font-size: 1.1rem;
  }

  .home-hero .section-title {
    max-width: 15.5ch;
    font-size: clamp(3.2rem, 10vw, 4.4rem);
  }

  .page-hero .section-title {
    max-width: 100%;
    font-size: clamp(3rem, 8.4vw, 4rem);
  }

  .cards-grid.four,
  .cards-grid.three,
  .cards-grid.team,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-menu:first-child {
    padding-right: 0;
  }

  .service-card,
  .service-card:nth-child(2),
  .service-card:nth-child(4),
  .cards-grid.three .project-card,
  .cards-grid.three .project-card:nth-child(1),
  .cards-grid.three .project-card:nth-child(2),
  .cards-grid.three .project-card:nth-child(3),
  .cards-grid.three .project-card:nth-child(n + 4) {
    grid-column: auto;
    margin-top: 0;
  }

  .cards-grid.three > .image-square {
    grid-column: auto;
  }

  .service-card img,
  .project-card .image img,
  .cards-grid.three .project-card:nth-child(1) .image img,
  .cards-grid.three .project-card:nth-child(2) .image img,
  .cards-grid.three .project-card:nth-child(3) .image img {
    aspect-ratio: 4 / 3;
  }

  .value-panel p {
    font-size: 1.6rem;
  }

  .project-detail {
    padding-top: 11rem;
  }

  .split-image {
    min-height: 34rem;
  }
}
