:root {
  --bg: #0f1513;
  --surface: #151d1a;
  --surface-strong: #1b2521;
  --ink: #eef4f1;
  --muted: rgba(244, 248, 246, 0.84);
  --line: rgba(255, 255, 255, 0.09);
  --accent: #00af66;
  --accent-deep: #008a50;
  --forest: #173126;
  --shadow: 0 18px 40px rgba(4, 10, 7, 0.22);
  --radius-lg: 8px;
  --radius-md: 6px;
  --radius-sm: 4px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #101614;
  padding-bottom: 5.2rem;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
}

.site-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.section-rail {
  position: fixed;
  left: max(0.9rem, calc((100vw - var(--max-width)) / 2 - 6.4rem));
  top: 50%;
  z-index: 19;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.section-rail-line {
  display: block;
  width: 2px;
  height: 7rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 175, 102, 0.6), rgba(255, 255, 255, 0.08));
}

.section-rail-current {
  display: block;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  text-transform: uppercase;
}

.topbar,
.hero,
.trust-strip,
.section,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0.9rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.8rem 0.95rem;
  margin-bottom: 1rem;
  background: rgba(16, 22, 20, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(6, 14, 10, 0.24);
  backdrop-filter: blur(12px);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.5rem;
  padding: 0 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #f4faf7;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(0, 175, 102, 0.42);
  background: rgba(0, 175, 102, 0.12);
  box-shadow: 0 0 0 0.18rem rgba(0, 175, 102, 0.12);
}

.nav-toggle-bars {
  display: grid;
  gap: 0.22rem;
}

.nav-toggle-bars span {
  display: block;
  width: 1rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  text-decoration: none;
  flex: 0 1 auto;
}

.brand-logo-mark {
  display: block;
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.brand-logo-text {
  display: block;
  height: 1.35rem;
  width: auto;
}

.brand-logo-full {
  display: block;
  height: 2.85rem;
  width: auto;
  max-width: min(100%, 330px);
}

.lead,
.section-heading p,
.service-card p,
.timeline p,
.about-panel p,
.quote-author,
.contact-card p,
.footer p,
.hero-points {
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.8rem;
}

.nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 0.86rem;
  white-space: nowrap;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.nav-admin {
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.82);
}

.nav a:hover,
.nav a:focus-visible {
  color: #9df0c6;
}

.nav-admin:hover,
.nav-admin:focus-visible {
  border-color: rgba(0, 175, 102, 0.42);
  background: rgba(0, 175, 102, 0.1);
  box-shadow: 0 0 0 0.18rem rgba(0, 175, 102, 0.12);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0 0.85rem;
  border-radius: 4px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #ffffff !important;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  transform: translateY(-1px);
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  box-shadow: 0 10px 22px rgba(0, 175, 102, 0.24);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: 600px;
  padding: 2rem 2.2rem;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(9, 18, 14, 0.74) 0%, rgba(9, 18, 14, 0.54) 45%, rgba(9, 18, 14, 0.42) 100%),
    linear-gradient(135deg, rgba(24, 56, 42, 0.58), rgba(20, 39, 31, 0.62));
  box-shadow: 0 28px 60px rgba(4, 10, 7, 0.24);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  transform: scale(1.16);
  transform-origin: center center;
  animation: heroZoomOut 7.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  background:
    radial-gradient(circle at 18% 22%, rgba(62, 132, 93, 0.16), transparent 28%),
    linear-gradient(90deg, rgba(7, 15, 11, 0.56) 0%, rgba(7, 15, 11, 0.26) 42%, rgba(7, 15, 11, 0.3) 100%);
  background-size: auto, auto;
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
}

.hero-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image-url, none);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: var(--hero-image-position, 50% 50%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 32%, rgba(8, 16, 12, 0.44) 0%, rgba(8, 16, 12, 0.28) 24%, rgba(8, 16, 12, 0.12) 46%, transparent 68%),
    linear-gradient(90deg, rgba(8, 16, 12, 0.42) 0%, rgba(8, 16, 12, 0.22) 28%, rgba(8, 16, 12, 0.08) 52%, transparent 72%),
    linear-gradient(180deg, rgba(8, 16, 12, 0.04) 0%, rgba(8, 16, 12, 0.1) 36%, rgba(8, 16, 12, 0.2) 68%, rgba(8, 16, 12, 0.32) 100%);
  pointer-events: none;
}

.hero-image-ready .hero-backdrop::before {
  opacity: 1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 110px 110px;
  opacity: 0.12;
}

.hero-blueprint {
  display: none;
}

.hero-blueprint::before {
  content: none;
}

.hero-blueprint::after {
  content: none;
}

.hero-copy,
.hero-card,
.service-card,
.timeline article,
.about-panel,
.quote-panel,
.contact-card,
.section {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: start;
  width: min(100%, 640px);
  max-width: 640px;
  padding: 1.35rem 1.2rem 1.45rem 1.1rem;
  border: 0;
  box-shadow: none;
  background: transparent;
  backdrop-filter: none;
  overflow: hidden;
}

.eyebrow,
.card-label,
.contact-label {
  margin: 0 0 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(0, 175, 102, 0.9);
}

.section .eyebrow,
.about-panel .eyebrow {
  margin: 0 0 0.5rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.94);
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 2.7rem;
  padding: 0 1.05rem;
  border-radius: 999px;
  color: #eef7f1;
  background: rgba(0, 175, 102, 0.14);
  border: 1px solid rgba(0, 175, 102, 0.4);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.03;
}

h1,
h2 {
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 5.2vw, 5rem);
  color: #ffffff;
  line-height: 0.98;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.04em;
  max-width: none;
  text-shadow: 0 10px 26px rgba(4, 10, 7, 0.36);
}

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

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

h2 {
  max-width: 18ch;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.06rem;
}

.lead {
  max-width: 56ch;
  margin: 1.1rem 0 0;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(247, 250, 248, 0.92);
  text-shadow: 0 5px 14px rgba(4, 10, 7, 0.26);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.35rem 0 1.1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  font-size: 0.95rem;
}

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

.button-primary {
  background: var(--accent);
  color: #f4f8f9;
  box-shadow: 0 8px 18px rgba(0, 175, 102, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-deep);
  box-shadow: 0 10px 22px rgba(0, 175, 102, 0.26);
}

.button-secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(0, 175, 102, 0.42);
  background: rgba(0, 175, 102, 0.08);
  color: #9df0c6;
}

.hero-points {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.5;
  font-size: 0.92rem;
  color: rgba(244, 248, 246, 0.86);
  text-shadow: 0 4px 12px rgba(4, 10, 7, 0.24);
}

.hero-card {
  position: relative;
  z-index: 1;
  align-self: center;
  display: grid;
  align-content: start;
  gap: 0.8rem;
  padding: 1.05rem 1rem 1.1rem;
  max-width: 320px;
  justify-self: end;
  border-radius: 0;
  background: transparent;
  color: #f2f7f4;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -0.45rem -0.5rem -0.65rem -0.75rem;
  z-index: -1;
  background:
    radial-gradient(circle at 78% 20%, rgba(18, 34, 26, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(8, 16, 12, 0.14) 0%, rgba(8, 16, 12, 0.22) 22%, rgba(8, 16, 12, 0.4) 58%, rgba(8, 16, 12, 0.6) 100%),
    linear-gradient(90deg, rgba(8, 16, 12, 0.12) 0%, rgba(8, 16, 12, 0.3) 26%, rgba(8, 16, 12, 0.56) 100%);
  pointer-events: none;
}

.hero-card .card-label {
  color: rgba(208, 224, 216, 0.76);
  text-shadow: 0 4px 12px rgba(4, 10, 7, 0.24);
}

.metric {
  position: relative;
  padding: 0.8rem 0 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.metric:last-child {
  border-bottom: 0;
}

.metric span {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(208, 224, 216, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 800;
}

.metric strong {
  font-size: 0.95rem;
  line-height: 1.4;
  text-shadow: 0 4px 12px rgba(4, 10, 7, 0.22);
}

.hero-card-note {
  margin-top: 0.2rem;
  padding-top: 0.4rem;
}

.hero-card-note strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}

.hero-card-note p {
  margin: 0;
  color: rgba(223, 233, 227, 0.78);
  line-height: 1.55;
  font-size: 0.92rem;
  text-shadow: 0 4px 12px rgba(4, 10, 7, 0.2);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin: 1rem 0 1.3rem;
}

.trust-strip div {
  padding: 1rem 1.05rem;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.trust-strip strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.98rem;
}

.section {
  padding: clamp(1.15rem, 2.2vw, 1.8rem);
  margin-bottom: 1rem;
  border-radius: var(--radius-lg);
}

.section-banner {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: clamp(220px, 28vw, 300px);
  margin: -0.25rem -0.25rem 1.75rem;
  padding: 1.35rem 1.45rem;
  border-radius: 6px;
  overflow: hidden;
  background-color: #13201b;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  box-shadow: 0 24px 54px rgba(4, 10, 7, 0.2);
}

.section-banner-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 13, 11, 0.08) 0%, rgba(8, 13, 11, 0.24) 42%, rgba(8, 13, 11, 0.62) 100%),
    linear-gradient(90deg, rgba(7, 15, 11, 0.5) 0%, rgba(7, 15, 11, 0.26) 45%, rgba(7, 15, 11, 0.14) 100%);
}

.section-banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  max-width: 44rem;
}

.section-banner-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.section-banner-body {
  display: grid;
  gap: 0.4rem;
}

.section-banner-content h2 {
  color: #ffffff;
  font-size: clamp(2rem, 3.5vw, 3.1rem);
  line-height: 0.98;
}

.section-banner-content p:last-child {
  margin: 0;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  line-height: 1.55;
}

.section-banner-accent {
  color: rgba(0, 175, 102, 0.98);
}

.section-banner-services {
  background-image: url("tjanster.jpeg");
  background-position: center center;
}

.section-banner-projects {
  background-image:
    linear-gradient(135deg, rgba(8, 20, 15, 0.08), rgba(8, 20, 15, 0.08)),
    url("projekt.JPG");
  background-position: center center;
}

.section-banner-team {
  background-image:
    linear-gradient(135deg, rgba(8, 20, 15, 0.08), rgba(8, 20, 15, 0.08)),
    url("medarbetare2.PNG");
  background-position: center 34%;
}

.section-banner-about {
  background-image:
    linear-gradient(135deg, rgba(8, 20, 15, 0.08), rgba(8, 20, 15, 0.08)),
    url("pictures/IMG_3433.jpeg");
  background-position: center 42%;
}

.section-banner-contact {
  background-image:
    linear-gradient(135deg, rgba(8, 20, 15, 0.08), rgba(8, 20, 15, 0.08)),
    url("pictures/IMG_7052.jpeg");
  background-position: center 46%;
}

.section-alt {
  background: #121a17;
}

.section-heading {
  margin-bottom: 1.1rem;
}

.section-heading h2,
.subsection-heading h3,
.about-panel h2 {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  line-height: 1.04;
}

.section-heading p {
  max-width: 66ch;
  line-height: 1.6;
  font-size: 0.98rem;
}

.subsection-heading {
  margin: 2rem 0 1.1rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.subsection-heading h3 {
  margin-bottom: 0.6rem;
}

.subsection-heading p {
  max-width: 66ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.98rem;
}

#tjanster .section-heading p,
#tjanster .subsection-heading p,
#projekt .section-heading p,
#medarbetare .section-heading p,
#kontakt .section-heading p {
  max-width: none;
}

.testimonials .service-card p {
  max-width: 58ch;
}

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

.project-types,
.about-list {
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
}

.project-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.project-types li {
  margin: 0;
}

.project-type-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(0, 175, 102, 0.2);
  border-radius: 4px;
  background: rgba(0, 175, 102, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.project-type-button:hover,
.project-type-button:focus-visible {
  background: rgba(0, 175, 102, 0.16);
  border-color: rgba(0, 175, 102, 0.42);
  color: #ffffff;
  box-shadow: 0 0 0 0.18rem rgba(0, 175, 102, 0.1);
}

.about-list {
  display: grid;
  gap: 0.45rem;
}

.about-list li {
  position: relative;
  padding-left: 1.05rem;
  color: var(--muted);
  line-height: 1.55;
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(0, 175, 102, 0.9);
}

.service-card {
  padding: 1.1rem;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  transition: transform 180ms ease, border-color 180ms ease;
}

.projects-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 0.75rem;
}

.projects-actions {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.projects-toggle[hidden] {
  display: none;
}

.employees-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 0.75rem;
}

.project-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  gap: 0.6rem;
  height: 22.5rem;
  padding: 0.85rem;
  cursor: pointer;
  overflow: hidden;
}

.project-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px;
  background: #121916;
}

.project-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-card-placeholder {
  cursor: default;
}

.project-card-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.15;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-card-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  max-height: calc(5 * 0.9rem * 1.5);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}

.employee-card {
  display: grid;
  gap: 0.55rem;
  padding: 0.7rem;
  cursor: pointer;
}

.employee-card-media {
  aspect-ratio: 4 / 4.5;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
}

.employee-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.employee-card-title {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.employee-card-role,
.employee-card-bio {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.employee-card-role {
  min-height: calc(2 * 0.76rem * 1.4);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.employee-card-email {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.74rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.employee-card-email:hover,
.employee-card-email:focus-visible {
  color: #9df0c6;
  text-decoration: underline;
}

.employee-card-placeholder {
  cursor: default;
}

#employee-modal-role,
#employee-modal-body p {
  margin: 0;
}

#employee-modal-role {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

#employee-modal-body {
  display: grid;
  gap: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
}

.project-card:hover,
.project-card:focus-within,
.employee-card:hover,
.employee-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(0, 175, 102, 0.34);
  box-shadow: 0 18px 34px rgba(0, 175, 102, 0.1);
}

.service-card p,
.timeline p,
.about-panel p,
.quote,
.contact-card a,
.contact-card p {
  line-height: 1.6;
  font-size: 0.97rem;
}

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

.timeline article {
  padding: 1.1rem;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
}

.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.about-panel,
.quote-panel {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
}

.about-panel {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.quote-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, #0f221a, #173126);
  color: #eff5f6;
}

.quote-mark {
  margin: 0;
  font-size: 3.6rem;
  line-height: 1;
  opacity: 0.28;
}

.quote {
  margin: 0;
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.4;
}

.quote-author {
  margin: 1rem 0 0;
}

.contact-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-lg);
}

.contact-card > div {
  display: grid;
  align-content: start;
  gap: 0.3rem;
}

.contact-card a {
  color: #f4faf7;
  font-weight: 800;
  text-decoration: none;
  transition: color 180ms ease;
}

.contact-card a:hover,
.contact-card a:focus-visible {
  color: #9df0c6;
}

.contact-label {
  margin: 0;
  min-height: 1.2em;
}

.contact-card a,
.contact-card p {
  margin: 0;
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.05rem;
}

.contact-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.95rem;
  height: 2.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #f4faf7;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.contact-social svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: currentColor;
  stroke: none;
}

.contact-social:hover,
.contact-social:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(0, 175, 102, 0.42);
  background: rgba(0, 175, 102, 0.12);
  color: #9df0c6;
}

.contact-social:focus-visible {
  box-shadow: 0 0 0 0.18rem rgba(0, 175, 102, 0.14);
}

.site-admin-access {
  display: flex;
  justify-content: flex-end;
  margin: 0.65rem 0 0;
}

.site-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.84rem;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-admin-link:hover,
.site-admin-link:focus-visible {
  color: #9df0c6;
  border-color: rgba(0, 175, 102, 0.42);
  background: rgba(0, 175, 102, 0.1);
  box-shadow: 0 0 0 0.18rem rgba(0, 175, 102, 0.12);
}

.sticky-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  padding: 0.45rem 0.8rem 0.65rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 220ms ease, transform 220ms ease;
}

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

.sticky-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(16, 22, 20, 0.88);
  box-shadow: 0 14px 36px rgba(4, 10, 7, 0.28);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.sticky-footer-item {
  display: grid;
  gap: 0.1rem;
}

.sticky-footer-item-wide {
  min-width: 190px;
}

.sticky-footer-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 175, 102, 0.9);
}

.sticky-footer-item a,
.sticky-footer-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.84rem;
  line-height: 1.3;
}

.sticky-footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0 0.85rem;
  border-radius: 4px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.86rem;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.sticky-footer-cta:hover,
.sticky-footer-cta:focus-visible {
  transform: translateY(-1px);
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  box-shadow: 0 10px 22px rgba(0, 175, 102, 0.24);
}

.project-modal {
  width: min(900px, calc(100% - 2rem));
  max-height: min(88vh, 920px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #121916;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.project-modal::backdrop {
  background: rgba(4, 10, 7, 0.72);
  backdrop-filter: blur(6px);
}

.project-modal-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.project-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  min-height: 2.4rem;
  padding: 0 0.9rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.project-modal-close:hover,
.project-modal-close:focus-visible {
  background: rgba(0, 175, 102, 0.16);
  color: #9df0c6;
  box-shadow: 0 0 0 0.18rem rgba(0, 175, 102, 0.12);
}

.project-modal-media {
  align-self: start;
  display: grid;
  gap: 0.8rem;
  align-content: start;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
}

.project-modal-main-image {
  display: grid;
  place-items: center;
  width: 100%;
  height: min(64vh, 560px);
  min-height: 420px;
  overflow: hidden;
  border-radius: 4px;
  background: #121916;
}

.project-modal-media img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.project-modal-main-image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.project-modal-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 0.55rem;
}

.project-modal-thumb {
  display: grid;
  place-items: center;
  min-height: 64px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

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

.project-modal-thumb:hover,
.project-modal-thumb:focus-visible,
.project-modal-thumb.is-active {
  border-color: rgba(0, 175, 102, 0.4);
  box-shadow: 0 0 0 0.18rem rgba(0, 175, 102, 0.12);
}

.project-modal-content {
  display: grid;
  gap: 0.9rem;
  padding: 2rem;
  max-height: min(88vh, 920px);
  overflow-y: auto;
}

.project-modal-content h2,
#project-modal-short,
#project-modal-body p,
#project-type-modal-body p {
  margin: 0;
}

#project-modal-body,
#project-type-modal-body {
  display: grid;
  gap: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
}

.project-type-modal {
  width: min(620px, calc(100% - 2rem));
  max-height: min(80vh, 720px);
}

.project-type-modal-inner {
  position: relative;
}

.project-type-modal-content {
  padding: 1.75rem;
}

.is-visible {
  animation: rise 360ms ease-out forwards;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(8px);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoomOut {
  from {
    transform: scale(1.16);
  }

  to {
    transform: scale(1);
  }
}

@media (max-width: 980px) {
  .section-rail {
    display: none;
  }

.hero,
.trust-strip,
.service-grid,
.timeline,
.about,
.contact-card {
    grid-template-columns: 1fr;
  }

  .section-banner {
    min-height: 210px;
    padding: 1.1rem 1.15rem;
  }

  .section-banner-content h2 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand toggle"
      "nav nav";
    justify-content: stretch;
    border-radius: 14px;
  }

  .brand {
    grid-area: brand;
  }

  .nav-toggle {
    grid-area: toggle;
    display: inline-flex;
    justify-self: end;
  }

  .nav {
    grid-area: nav;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    width: 100%;
    margin-top: 0.45rem;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

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

  .nav a {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
  }

  .sticky-footer-inner {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

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

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

  .project-modal-inner {
    grid-template-columns: 1fr;
  }

  .project-modal-media {
    aspect-ratio: auto;
    min-height: 260px;
  }

  .hero {
    min-height: auto;
    padding: 1.4rem;
  }

  .hero-blueprint {
    width: 300px;
    height: 200px;
    right: -12%;
    bottom: -4%;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 1rem), var(--max-width));
    padding-top: 0.45rem;
  }

  .section-banner {
    min-height: 180px;
    margin-bottom: 1rem;
    padding: 1rem;
  }

  .section-banner-content p:last-child {
    font-size: 0.92rem;
  }

  .topbar {
    padding: 0.9rem;
    grid-template-columns: 1fr;
    grid-template-areas: "brand";
  }

  .nav-toggle,
  .nav {
    display: none !important;
  }

  .site-admin-access {
    display: none;
  }

  .brand-logo-mark {
    width: 1.95rem;
    height: 1.95rem;
  }

  .brand-logo-text {
    height: 1.3rem;
  }

  .brand-logo-full {
    height: 2.25rem;
    max-width: 270px;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.3rem, 9vw, 3.5rem);
  }

  .hero-title {
    max-width: 100%;
  }

  .hero {
    padding: 1.1rem;
    border-radius: 0 0 14px 14px;
  }

  .section,
  .contact-card,
  .about-panel,
  .quote-panel {
    padding: 1rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-card {
    padding: 1rem;
  }

  .hero-blueprint {
    display: none;
  }

  .sticky-footer {
    position: static;
    opacity: 1;
    transform: none;
    padding: 0.6rem 0;
    margin-top: 1rem;
    pointer-events: auto;
  }

  .sticky-footer-inner {
    width: 100%;
    gap: 0.75rem;
    padding: 0.8rem;
  }

  .sticky-footer-item,
  .sticky-footer-item-wide {
    min-width: 100%;
  }

  .sticky-footer-cta {
    width: 100%;
  }

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

  .project-card {
    height: auto;
    min-height: 20rem;
  }

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

  .project-modal {
    width: calc(100% - 1rem);
  }

  .project-modal-content {
    padding: 1.25rem;
  }

  .project-modal-main-image {
    height: min(54vh, 380px);
    min-height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }

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