:root {
  --ink: #171512;
  --ink-soft: #2b2823;
  --muted: #6d6258;
  --paper: #fffaf3;
  --cream: #f5efe6;
  --cream-strong: #efe5d8;
  --line: #dfd3c2;
  --wood: #8b623b;
  --wood-dark: #55381f;
  --gold: #eba928;
  --green: #496b38;
  --green-dark: #314d25;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(42, 28, 13, 0.16);
  --shadow-soft: 0 14px 34px rgba(42, 28, 13, 0.1);
  --radius: 18px;
  --radius-sm: 10px;
  --container: 1180px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.topbar {
  background: #10100f;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 34px;
}

.topbar-list {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 250, 243, 0.94);
  border-bottom: 1px solid rgba(223, 211, 194, 0.8);
  box-shadow: 0 8px 30px rgba(35, 24, 14, 0.06);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.17), transparent 42%),
    linear-gradient(135deg, #b48350, #5f3f24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.brand-mark::before {
  content: "";
  width: 18px;
  height: 25px;
  border-left: 6px solid currentColor;
  border-top: 6px solid currentColor;
  transform: skewY(-14deg);
}

.brand-text {
  display: grid;
  line-height: 1;
}

.brand-name {
  font-size: 1.55rem;
}

.brand-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-link,
.nav-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 760;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 0.25s var(--ease),
    transform 0.25s var(--ease),
    background 0.25s var(--ease);
}

.nav-link::after,
.nav-button::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: var(--wood);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s var(--ease);
}

.nav-link:hover,
.nav-button:hover,
.nav-link:focus-visible,
.nav-button:focus-visible {
  color: var(--wood-dark);
  transform: translateY(-2px);
  background: rgba(139, 98, 59, 0.08);
  outline: 0;
}

.nav-link:hover::after,
.nav-button:hover::after,
.nav-link:focus-visible::after,
.nav-button:focus-visible::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-caret {
  font-size: 0.78em;
  transition: transform 0.25s var(--ease);
}

.dropdown {
  position: relative;
}

.dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 290px;
  height: 16px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  display: grid;
  gap: 6px;
  width: 290px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 243, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.98);
  transform-origin: top left;
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease),
    visibility 0.25s var(--ease);
  visibility: hidden;
}

.dropdown:hover .dropdown-menu,
.dropdown.is-open .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.dropdown:hover .nav-caret,
.dropdown.is-open .nav-caret,
.dropdown:focus-within .nav-caret {
  transform: rotate(180deg);
}

.dropdown-menu a {
  display: grid;
  gap: 1px;
  padding: 11px 12px;
  border-radius: 12px;
  font-weight: 800;
  transition:
    background 0.22s var(--ease),
    color 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.dropdown-menu a span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: var(--cream);
  color: var(--wood-dark);
  outline: 0;
  transform: translateX(4px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
}

.language-switcher select {
  width: auto;
  min-height: 42px;
  padding: 0 34px 0 12px;
  border-radius: 999px;
  border-color: rgba(147, 107, 64, 0.34);
  background-color: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.language-switcher select:hover,
.language-switcher select:focus-visible {
  border-color: var(--wood);
  background-color: var(--white);
}

.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 850;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: relative;
}

.menu-toggle span::before {
  top: -7px;
}

.menu-toggle span::after {
  top: 5px;
}

.nav-open .menu-toggle span {
  transform: rotate(45deg);
}

.nav-open .menu-toggle span::before {
  opacity: 0;
}

.nav-open .menu-toggle span::after {
  top: 0;
  transform: rotate(-90deg);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  flex: 0 0 auto;
  white-space: nowrap;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.22) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.55s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
  outline: 0;
}

.btn:hover::after,
.btn:focus-visible::after {
  transform: translateX(120%);
}

.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: var(--white);
  box-shadow: 0 13px 26px rgba(49, 77, 37, 0.25);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 18px 36px rgba(49, 77, 37, 0.32);
}

.btn-outline {
  border-color: #bda98f;
  background: rgba(255, 255, 255, 0.62);
  color: var(--wood-dark);
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}

.section {
  padding: 82px 0;
}

.section-tight {
  padding: 58px 0;
}

.section-dark {
  background:
    linear-gradient(rgba(15, 14, 13, 0.92), rgba(15, 14, 13, 0.9)),
    radial-gradient(circle at 20% 0%, rgba(139, 98, 59, 0.4), transparent 35%),
    #11100f;
  color: var(--white);
}

.section-cream {
  background: var(--cream);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--wood);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-dark .eyebrow {
  color: #d6ad7b;
}

.section-title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.section-title .accent,
.hero-title .accent {
  color: var(--wood);
}

.section-lede {
  max-width: 690px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-dark .section-lede {
  color: rgba(255, 255, 255, 0.74);
}

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

.section-heading.centered {
  display: block;
  text-align: center;
}

.section-heading.centered .section-lede {
  margin-inline: auto;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--paper);
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
  gap: 0;
  align-items: center;
  min-height: 660px;
  padding: 56px 0;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 680px;
  padding-right: 28px;
}

.hero-title {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-micro {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.micro-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid rgba(139, 98, 59, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink-soft);
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(42, 28, 13, 0.06);
}

.micro-icon,
.service-icon,
.value-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: var(--cream-strong);
  color: var(--wood-dark);
  font-weight: 900;
}

.hero-media {
  position: relative;
  z-index: 1;
  min-height: 600px;
  margin-left: -180px;
  pointer-events: none;
}

.hero-photo {
  position: absolute;
  inset: -56px calc((100vw - min(var(--container), calc(100vw - 40px))) / -2) -56px -220px;
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 13%;
  filter: saturate(0.95) contrast(1.03);
  transform: scale(1.03);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 243, 1) 0%, rgba(255, 250, 243, 0.96) 18%, rgba(255, 250, 243, 0.74) 34%, rgba(255, 250, 243, 0.28) 52%, rgba(255, 250, 243, 0) 74%),
    linear-gradient(0deg, rgba(20, 18, 16, 0.12), transparent 45%);
}

.stars {
  color: var(--gold);
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 243, 0.94);
}

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

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 90px;
  padding: 18px 24px;
  border-right: 1px solid var(--line);
}

.trust-item:first-child {
  border-left: 1px solid var(--line);
}

.trust-item strong {
  display: block;
  line-height: 1.2;
}

.trust-item div span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.trust-item .micro-icon {
  display: inline-grid;
  place-items: center;
  color: var(--wood-dark);
  font-size: 1rem;
  line-height: 1;
}

.trust-quote-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.trust-quote {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 26px 32px;
  background: rgba(255, 255, 255, 0.44);
}

.trust-quote + .trust-quote {
  border-left: 1px solid var(--line);
}

.trust-quote blockquote {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
  font-weight: 820;
  line-height: 1.45;
}

.trust-quote figcaption {
  color: var(--wood-dark);
  font-size: 0.9rem;
  font-weight: 900;
}

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

.service-card,
.project-card,
.review-card,
.value-card,
.blog-card,
.form-card,
.timeline-card,
.team-card,
.portal-card,
.article-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.75) inset;
}

.service-card {
  display: grid;
  grid-template-rows: 190px 1fr;
  overflow: hidden;
  transition:
    transform 0.32s var(--ease),
    box-shadow 0.32s var(--ease),
    border-color 0.32s var(--ease);
}

.service-card:hover,
.service-card:focus-within,
.project-card:hover,
.blog-card:hover,
.value-card:hover,
.team-card:hover {
  border-color: rgba(139, 98, 59, 0.38);
  box-shadow: var(--shadow-soft);
  transform: translateY(-8px);
}

.service-image {
  position: relative;
  overflow: hidden;
}

.service-image img,
.project-image img,
.blog-card img,
.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease), filter 0.55s var(--ease);
}

.service-card:hover .service-image img,
.project-card:hover .project-image img,
.blog-card:hover img {
  filter: saturate(1.06);
  transform: scale(1.06);
}

.service-body {
  position: relative;
  padding: 31px 24px 24px;
  text-align: center;
}

.service-body .service-icon {
  position: absolute;
  left: 50%;
  top: 0;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%);
  border: 6px solid var(--paper);
  background: var(--white);
  color: var(--wood-dark);
  box-shadow: 0 10px 24px rgba(42, 28, 13, 0.12);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.service-card:hover .service-icon {
  background: var(--green);
  color: var(--white);
  transform: translate(-50%, -54%) rotate(-5deg);
}

.service-card h3,
.project-card h3,
.blog-card h3,
.value-card h3,
.team-card h3 {
  margin: 0;
  line-height: 1.2;
}

.service-card p,
.project-card p,
.blog-card p,
.value-card p,
.team-card p {
  margin: 11px 0 0;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--green-dark);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

.text-link span {
  transition: transform 0.22s var(--ease);
}

.text-link:hover span,
.text-link:focus-visible span {
  transform: translateX(5px);
}

.project-strip {
  display: grid;
  grid-template-columns: 0.85fr repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.project-intro {
  padding: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.project-intro h2 {
  margin: 0 0 20px;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.08;
}

.project-card {
  overflow: hidden;
  transition:
    transform 0.32s var(--ease),
    box-shadow 0.32s var(--ease),
    border-color 0.32s var(--ease),
    opacity 0.22s ease;
}

.project-card.is-hidden {
  display: none;
}

.section-dark .project-card,
.section-dark .review-card {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.project-image {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.project-label {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(20, 18, 16, 0.78);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-body {
  padding: 18px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chip,
.filter-button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-button {
  cursor: pointer;
  transition:
    background 0.22s var(--ease),
    color 0.22s var(--ease),
    border-color 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
  outline: 0;
  transform: translateY(-2px);
}

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

.process-step {
  position: relative;
  padding: 30px 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.74);
  text-align: center;
}

.process-step::after {
  content: "";
  position: absolute;
  top: 46px;
  right: -18px;
  width: 18px;
  height: 1px;
  background: var(--line);
}

.process-step:last-child::after {
  display: none;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a77545, #654223);
  color: var(--white);
  font-weight: 900;
}

.reviews-grid,
.values-grid,
.team-grid,
.blog-grid,
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.review-card {
  padding: 24px;
}

.review-card p {
  margin: 12px 0 16px;
}

.review-card cite {
  color: var(--muted);
  font-style: normal;
  font-weight: 850;
}

.section-dark .review-card cite,
.section-dark .project-card p {
  color: rgba(255, 255, 255, 0.72);
}

.cta-split {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 0.72fr);
  gap: 24px;
  align-items: stretch;
}

.form-card {
  padding: 30px;
}

.form-card.dark-card,
.dark-panel {
  background:
    linear-gradient(rgba(20, 18, 16, 0.86), rgba(20, 18, 16, 0.86)),
    linear-gradient(135deg, rgba(139, 98, 59, 0.45), transparent);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

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

.form-grid .span-2 {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-weight: 800;
}

.dark-card label {
  color: rgba(255, 255, 255, 0.86);
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 11px 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

textarea {
  min-height: 116px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(73, 107, 56, 0.14);
  outline: 0;
}

.form-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.dark-card .form-note {
  color: rgba(255, 255, 255, 0.7);
}

.form-message {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(73, 107, 56, 0.12);
  color: var(--green-dark);
  font-weight: 850;
}

.form-message.is-visible {
  display: block;
}

.map-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 70% 45%, rgba(73, 107, 56, 0.2) 0 95px, rgba(73, 107, 56, 0.08) 96px 145px, transparent 146px),
    linear-gradient(30deg, transparent 49%, rgba(150, 178, 194, 0.22) 50%, transparent 51%),
    linear-gradient(120deg, transparent 48%, rgba(150, 178, 194, 0.18) 49%, transparent 51%),
    #eff4f3;
}

.map-card::before,
.map-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, transparent 24%, rgba(150, 178, 194, 0.22) 25%, transparent 26%),
    linear-gradient(90deg, transparent 30%, rgba(150, 178, 194, 0.2) 31%, transparent 32%),
    linear-gradient(150deg, transparent 62%, rgba(150, 178, 194, 0.18) 63%, transparent 64%);
  opacity: 0.65;
}

.map-content {
  position: relative;
  z-index: 2;
  display: grid;
  height: 100%;
  padding: 32px;
}

.map-pin {
  place-self: center;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(73, 107, 56, 0.32);
  border-radius: 50%;
  background: rgba(255, 250, 243, 0.64);
  color: var(--green-dark);
  font-weight: 900;
  box-shadow: 0 0 0 44px rgba(73, 107, 56, 0.08);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.faq-question span:last-child {
  font-size: 1.3rem;
  transition: transform 0.22s var(--ease);
}

.faq-item.is-open .faq-question span:last-child {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  color: var(--muted);
  transition: max-height 0.28s ease;
}

.faq-answer p {
  margin: 0;
  padding: 0 18px 18px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 243, 0.98), rgba(255, 250, 243, 0.8) 54%, rgba(255, 250, 243, 0.18)),
    var(--cream);
}

.page-hero.has-image {
  min-height: 460px;
}

.page-hero-bg {
  position: absolute;
  inset: 0 0 0 45%;
  z-index: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 14%;
  filter: saturate(0.95);
}

.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 250, 243, 0.8), rgba(255, 250, 243, 0.08));
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.page-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

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

.stat {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
}

.stat strong {
  display: block;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--wood-dark);
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.values-grid .value-card,
.team-card,
.timeline-card {
  padding: 26px;
  transition:
    transform 0.32s var(--ease),
    box-shadow 0.32s var(--ease),
    border-color 0.32s var(--ease);
}

.value-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--cream-strong);
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 0.72fr);
  gap: 34px;
  align-items: center;
}

.story-image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.story-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: 55% 13%;
}

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

.timeline-card strong {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--wood);
  color: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 0.65fr);
  gap: 24px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
}

.login-section {
  display: grid;
  min-height: calc(100vh - 112px);
  padding: 62px 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 243, 0.96), rgba(255, 250, 243, 0.74)),
    url("assets/reference-dark.png") center / cover;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 0.58fr);
  gap: 42px;
  align-items: center;
}

.portal-card {
  padding: 30px;
  background: rgba(255, 250, 243, 0.92);
  box-shadow: var(--shadow);
}

.password-row {
  position: relative;
}

.password-row input {
  padding-right: 58px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  bottom: 8px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
}

.remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 28px;
  margin: 16px 0 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.remember-row label {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  line-height: 1;
  font-weight: 700;
}

.remember-row input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--green);
  transform: none;
}

.remember-row input:hover,
.remember-row input:focus-visible {
  transform: none;
}

.remember-row a {
  white-space: nowrap;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(280px, 0.32fr);
  gap: 42px;
  align-items: start;
}

.article-card {
  overflow: hidden;
}

.article-hero {
  height: 370px;
}

.article-content {
  padding: 38px;
}

.article-content h2 {
  margin-top: 36px;
  font-size: 2rem;
  line-height: 1.15;
}

.article-content p,
.article-content li {
  color: var(--ink-soft);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 22px;
  color: var(--muted);
  font-weight: 800;
}

.sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 112px;
}

.sidebar-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.75);
}

.blog-card {
  overflow: hidden;
  transition:
    transform 0.32s var(--ease),
    box-shadow 0.32s var(--ease),
    border-color 0.32s var(--ease);
}

.blog-card-image {
  height: 190px;
  overflow: hidden;
}

.blog-card-body {
  padding: 22px;
}

.blog-search {
  display: flex;
  gap: 10px;
  margin-bottom: 26px;
}

.blog-search input {
  flex: 1;
}

.site-footer {
  background: #11100f;
  color: rgba(255, 255, 255, 0.78);
}

.footer-cta {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(90deg, rgba(139, 98, 59, 0.22), rgba(73, 107, 56, 0.22));
}

.footer-cta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 108px;
}

.footer-cta h2 {
  margin: 0;
  color: var(--white);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 0.72fr 0.9fr 1fr;
  gap: 34px;
  padding: 48px 0;
}

.footer-main .brand-sub {
  color: rgba(255, 255, 255, 0.62);
}

.footer-main h3 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-main ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-main a {
  transition: color 0.2s ease;
}

.footer-main a:hover,
.footer-main a:focus-visible {
  color: var(--white);
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.88rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .phone-pill {
    display: none;
  }

  .hero .container {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-media {
    min-height: 430px;
    margin-left: 0;
  }

  .hero-photo {
    inset: 0;
    border-radius: var(--radius-sm);
  }

  .hero-photo::after {
    background:
      linear-gradient(90deg, rgba(255, 250, 243, 0.24), rgba(255, 250, 243, 0) 42%),
      linear-gradient(0deg, rgba(20, 18, 16, 0.16), transparent 48%);
  }

  .service-grid,
  .case-grid,
  .reviews-grid,
  .values-grid,
  .team-grid,
  .blog-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-strip,
  .cta-split,
  .story-layout,
  .contact-layout,
  .login-layout,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

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

@media (max-width: 1460px) {
  .phone-pill {
    display: none;
  }
}

@media (max-width: 860px) {
  .topbar {
    display: none;
  }

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

  .language-switcher select {
    min-height: 40px;
    max-width: 118px;
    padding-left: 10px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    inset: 78px 0 auto 0;
    display: grid;
    gap: 4px;
    z-index: 60;
    max-height: calc(100vh - 78px);
    overflow: auto;
    padding: 20px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-14px);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link,
  .nav-button {
    justify-content: flex-start;
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    margin-top: 6px;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
  }

  .dropdown::after {
    display: none;
  }

  .header-actions .btn {
    display: none;
  }

  .trust-grid,
  .stats-row,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .trust-quote + .trust-quote {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .process-step::after {
    display: none;
  }

  .page-hero-bg {
    inset: 42% 0 0;
    opacity: 0.42;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .header-inner {
    min-height: 70px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-name {
    font-size: 1.22rem;
  }

  .brand-sub {
    font-size: 0.62rem;
  }

  .language-switcher select {
    max-width: 104px;
    font-size: 0.78rem;
  }

  .main-nav {
    inset: 70px 0 auto 0;
  }

  .hero .container {
    padding: 38px 0;
  }

  .hero-title,
  .page-title {
    font-size: 3rem;
  }

  .section {
    padding: 58px 0;
  }

  .section-heading {
    display: block;
  }

  .hero-actions,
  .footer-cta .container,
  .blog-search {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .service-grid,
  .case-grid,
  .reviews-grid,
  .values-grid,
  .team-grid,
  .blog-grid,
  .timeline,
  .trust-grid,
  .trust-quote-row,
  .stats-row,
  .process-grid,
  .faq-grid,
  .form-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .trust-item,
  .trust-item:first-child {
    border-left: 1px solid var(--line);
  }

  .form-grid .span-2 {
    grid-column: auto;
  }

  .article-content {
    padding: 24px;
  }
}

/* Feedback polish pass */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:target {
  scroll-margin-top: 118px;
}

.is-targeted {
  outline: 4px solid rgba(235, 169, 40, 0.9);
  outline-offset: 6px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(235, 169, 40, 0.95);
  outline-offset: 4px;
}

.hero-photo {
  background: #171512;
}

.hero-carousel,
.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-carousel {
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: translateX(4%) scale(1.02);
  transition:
    opacity 1.15s var(--ease),
    transform 7.5s linear;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1.06);
}

.field-label-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.required-mark {
  color: #d9b07b;
  font-size: 0.82rem;
  font-weight: 900;
}

.form-card h2,
.portal-card h2 {
  margin-top: 0;
}

.form-card .form-grid {
  margin: 18px 0;
  gap: 16px;
}

.dark-card input,
.dark-card select,
.dark-card textarea {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.96);
}

.dark-card input::placeholder,
.dark-card textarea::placeholder {
  color: #6a6258;
  opacity: 1;
}

.field-help {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.dark-card .field-help {
  color: rgba(255, 255, 255, 0.72);
}

.form-card .btn,
.portal-card .btn {
  margin-top: 2px;
}

.form-message {
  border: 1px solid rgba(73, 107, 56, 0.32);
  background: #edf7e8;
  color: #243d1b;
}

.dark-card .form-message {
  border-color: rgba(198, 230, 181, 0.5);
  background: rgba(236, 248, 229, 0.98);
  color: #243d1b;
}

.map-card.real-map {
  display: grid;
  min-height: 520px;
  background: #e8eeec;
}

.page-hero.has-image .page-copy {
  max-width: 560px;
}

.map-card.real-map::before,
.map-card.real-map::after {
  display: none;
}

.map-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.85) contrast(0.94);
}

.map-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.map-info-panel {
  position: relative;
  z-index: 3;
  align-self: start;
  width: min(360px, calc(100% - 32px));
  margin: 22px;
  padding: 22px;
  border: 1px solid rgba(223, 211, 194, 0.92);
  border-radius: var(--radius-sm);
  background: rgba(255, 250, 243, 0.95);
  box-shadow: var(--shadow-soft);
}

.map-info-panel h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.18;
}

.map-info-panel p {
  margin: 10px 0 0;
  color: var(--ink-soft);
}

.map-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--green-dark);
  font-weight: 900;
}

.radius-ring {
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(66vw, 420px);
  aspect-ratio: 1;
  border: 2px solid rgba(73, 107, 56, 0.62);
  border-radius: 50%;
  background: rgba(73, 107, 56, 0.16);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 9999px rgba(255, 250, 243, 0.03);
}

.radius-label {
  position: absolute;
  left: 50%;
  top: calc(52% + min(33vw, 210px) + 12px);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.95);
  color: var(--green-dark);
  font-size: 0.88rem;
  font-weight: 900;
  transform: translateX(-50%);
  box-shadow: var(--shadow-soft);
}

.nacka-dot {
  position: absolute;
  left: 50%;
  top: 52%;
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  border: 1px solid rgba(73, 107, 56, 0.44);
  border-radius: 50%;
  background: rgba(255, 250, 243, 0.96);
  color: var(--green-dark);
  font-weight: 950;
  transform: translate(-50%, -50%);
  box-shadow: var(--shadow-soft);
}

.project-card > a,
.blog-card > a,
.team-card > a {
  display: block;
  height: 100%;
  color: inherit;
}

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

.case-grid.four-up .project-image {
  height: 215px;
}

.case-detail-hero .page-hero-bg {
  inset: 0;
}

.case-detail-hero .page-hero-bg::after {
  background:
    linear-gradient(90deg, rgba(17, 16, 15, 0.76), rgba(17, 16, 15, 0.42) 42%, rgba(17, 16, 15, 0.08)),
    linear-gradient(0deg, rgba(17, 16, 15, 0.32), transparent 52%);
}

.case-detail-hero .page-title,
.case-detail-hero .page-copy {
  color: var(--white);
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.32);
}

.case-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(300px, 0.32fr);
  gap: 30px;
  align-items: start;
}

.case-detail-image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.case-detail-image img {
  width: 100%;
  height: auto;
}

.case-facts {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.78);
}

.case-facts div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.case-facts div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.case-facts dt {
  color: var(--muted);
  font-weight: 850;
}

.case-facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 950;
  text-align: right;
}

.case-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.case-story-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.76);
}

.team-card {
  overflow: hidden;
  padding: 0;
}

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

.team-photo {
  height: 360px;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: transform 0.55s var(--ease);
}

.team-card:hover .team-photo img {
  transform: scale(1.05);
}

.team-body {
  padding: 24px;
}

.team-role {
  display: block;
  margin: 7px 0 0;
  color: var(--wood-dark);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-main {
  grid-template-columns: 1.2fr 0.7fr 0.8fr 0.9fr 1fr;
}

.footer-card {
  padding: 22px;
  border: 1px solid rgba(214, 173, 123, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
}

.footer-card p {
  margin: 0 0 16px;
}

.socials a {
  width: 42px;
  height: 42px;
  color: var(--white);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.socials a:hover,
.socials a:focus-visible {
  border-color: rgba(214, 173, 123, 0.76);
  background: rgba(214, 173, 123, 0.14);
  transform: translateY(-3px);
}

.socials svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.footer-main li a[href^="tel"],
.footer-main li a[href^="mailto"] {
  font-weight: 850;
}

@media (max-width: 1180px) {
  .case-grid.four-up,
  .team-grid,
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .case-detail-layout,
  .case-story-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .map-card.real-map {
    min-height: 610px;
  }

  .map-info-panel {
    width: calc(100% - 28px);
    margin: 14px;
  }

  .radius-ring {
    width: min(86vw, 360px);
    top: 60%;
  }

  .radius-label {
    top: calc(60% + min(43vw, 180px) + 10px);
  }

  .nacka-dot {
    top: 60%;
  }

  .case-grid.four-up,
  .team-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .team-photo {
    height: 430px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide.is-active {
    transform: none;
  }
}

/* Customer portal demo */
.demo-credentials {
  display: grid;
  gap: 10px;
  margin: 18px 0 20px;
  padding: 16px;
  border: 1px solid rgba(139, 98, 59, 0.22);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.66);
}

.demo-credentials div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.demo-credentials dt {
  color: var(--muted);
  font-weight: 850;
}

.demo-credentials dd {
  margin: 0;
}

.demo-credentials code {
  padding: 5px 8px;
  border: 1px solid rgba(139, 98, 59, 0.16);
  border-radius: 7px;
  background: var(--white);
  color: var(--wood-dark);
  font-weight: 900;
}

.form-message.is-error {
  border-color: rgba(150, 45, 35, 0.28);
  background: #fff0eb;
  color: #76251d;
}

.portal-page {
  background:
    radial-gradient(circle at 15% 8%, rgba(139, 98, 59, 0.08), transparent 34%),
    var(--paper);
}

.portal-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 58px;
  background:
    linear-gradient(90deg, rgba(255, 250, 243, 0.98), rgba(255, 250, 243, 0.9) 45%, rgba(255, 250, 243, 0.44)),
    url("assets/hero-kitchen-sunset.png") center right / cover;
}

.portal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(255, 250, 243, 0.92), rgba(255, 250, 243, 0) 44%);
  pointer-events: none;
}

.portal-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 0.52fr);
  gap: 34px;
  align-items: center;
}

.portal-demo-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  max-width: 650px;
  margin-top: 28px;
  padding: 14px 16px;
  border: 1px solid rgba(73, 107, 56, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  box-shadow: var(--shadow-soft);
}

.portal-summary-panel,
.dashboard-card,
.portal-metric,
.portal-sidebar {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 250, 243, 0.9);
  box-shadow: var(--shadow-soft);
}

.portal-summary-panel {
  padding: 28px;
  backdrop-filter: blur(14px);
}

.portal-summary-panel h2,
.dashboard-card h2,
.portal-card-heading h2 {
  margin: 0;
  line-height: 1.16;
}

.portal-summary-panel p {
  margin: 10px 0 0;
  color: var(--muted);
}

.portal-status-top,
.portal-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(73, 107, 56, 0.28);
  border-radius: 999px;
  background: rgba(73, 107, 56, 0.12);
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill-light {
  border-color: rgba(139, 98, 59, 0.2);
  background: rgba(255, 255, 255, 0.72);
  color: var(--wood-dark);
}

.portal-progress {
  height: 12px;
  margin: 22px 0;
  overflow: hidden;
  border-radius: 999px;
  background: var(--cream-strong);
}

.portal-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--wood));
}

.portal-summary-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.portal-summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.portal-summary-list dt {
  color: var(--muted);
  font-weight: 850;
}

.portal-summary-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 950;
  text-align: right;
}

.portal-dashboard-section {
  padding-top: 52px;
}

.portal-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.portal-sidebar {
  position: sticky;
  top: 104px;
  padding: 22px;
}

.portal-sidebar nav {
  display: grid;
  gap: 8px;
}

.portal-sidebar nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-weight: 850;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.portal-sidebar nav a:hover,
.portal-sidebar nav a:focus-visible {
  background: var(--cream);
  color: var(--wood-dark);
  transform: translateX(4px);
}

.portal-help-box {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(73, 107, 56, 0.18);
  border-radius: 8px;
  background: rgba(73, 107, 56, 0.08);
}

.portal-help-box p {
  margin: 8px 0 10px;
  color: var(--muted);
}

.portal-help-box a {
  color: var(--green-dark);
  font-weight: 950;
}

.portal-main {
  display: grid;
  gap: 24px;
}

.portal-heading {
  margin-bottom: 22px;
}

.portal-heading .section-title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.portal-metric-grid,
.portal-two-column,
.portal-handover-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

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

.portal-metric {
  padding: 22px;
}

.portal-metric span {
  display: block;
  color: var(--wood-dark);
  font-size: 2.25rem;
  font-weight: 950;
  line-height: 1;
}

.portal-metric strong {
  display: block;
  margin-top: 12px;
  line-height: 1.18;
}

.portal-metric p {
  margin: 8px 0 0;
  color: var(--muted);
}

.dashboard-card {
  padding: 26px;
}

.dashboard-card-wide {
  grid-column: 1 / -1;
}

.portal-timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.portal-timeline li {
  position: relative;
  min-height: 155px;
  padding: 48px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.portal-timeline li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 16px;
  width: 22px;
  height: 22px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--white);
}

.portal-timeline li.is-done::before {
  border-color: var(--green);
  background: var(--green);
  box-shadow: inset 0 0 0 5px var(--white);
}

.portal-timeline li.is-current {
  border-color: rgba(73, 107, 56, 0.46);
  background: rgba(73, 107, 56, 0.08);
}

.portal-timeline li.is-current::before {
  border-color: var(--wood);
  background: var(--gold);
}

.portal-timeline strong,
.portal-doc-list span,
.portal-message span {
  display: block;
  line-height: 1.18;
  font-weight: 950;
}

.portal-timeline span,
.portal-task p,
.portal-message p,
.portal-message time,
.portal-doc-list strong {
  color: var(--muted);
}

.portal-timeline span {
  display: block;
  margin-top: 7px;
  font-size: 0.9rem;
}

.portal-message-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 16px;
}

.portal-message {
  padding: 15px;
  border: 1px solid rgba(139, 98, 59, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.portal-message p {
  margin: 7px 0 6px;
}

.portal-message time {
  font-size: 0.86rem;
  font-weight: 800;
}

.portal-task-list,
.portal-doc-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.portal-task {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(139, 98, 59, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.task-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cream-strong);
  color: var(--wood-dark);
  font-weight: 950;
}

.portal-task p {
  margin: 5px 0 0;
  font-size: 0.92rem;
}

.portal-task button,
.portal-doc-list button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(73, 107, 56, 0.32);
  border-radius: 7px;
  background: rgba(73, 107, 56, 0.1);
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 950;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.portal-task button:hover,
.portal-task button:focus-visible,
.portal-doc-list button:hover,
.portal-doc-list button:focus-visible {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}

.portal-task button.is-complete,
.portal-doc-list button.is-complete {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.portal-live {
  min-height: 0;
  margin: 16px 0 0;
  color: var(--green-dark);
  font-weight: 900;
}

.portal-live:not(:empty) {
  padding: 12px 14px;
  border: 1px solid rgba(73, 107, 56, 0.24);
  border-radius: 8px;
  background: rgba(73, 107, 56, 0.08);
}

.portal-doc-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.portal-doc-list div:last-child {
  border-bottom: 0;
}

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

.portal-photo-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.portal-photo-grid img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.portal-photo-grid figcaption {
  padding: 9px 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

.portal-handover p {
  margin-top: 0;
  color: var(--ink-soft);
}

.portal-checklist {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-checklist li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid rgba(73, 107, 56, 0.18);
  border-radius: 8px;
  background: rgba(73, 107, 56, 0.08);
  font-weight: 850;
}

.portal-checklist span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
}

@media (max-width: 1080px) {
  .portal-hero-grid,
  .portal-shell,
  .portal-metric-grid,
  .portal-two-column,
  .portal-handover-grid {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    position: static;
  }

  .portal-sidebar nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .portal-hero {
    padding: 52px 0 44px;
    background:
      linear-gradient(90deg, rgba(255, 250, 243, 0.98), rgba(255, 250, 243, 0.86)),
      url("assets/hero-kitchen-sunset.png") center / cover;
  }

  .portal-sidebar nav {
    grid-template-columns: 1fr;
  }

  .portal-status-top,
  .portal-card-heading,
  .portal-heading {
    display: grid;
    align-items: start;
  }

  .portal-timeline,
  .portal-photo-grid {
    grid-template-columns: 1fr;
  }

  .portal-task,
  .portal-doc-list div {
    grid-template-columns: 1fr;
  }

  .portal-task button,
  .portal-doc-list button {
    width: 100%;
  }

  .demo-credentials div {
    display: grid;
  }
}
