:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --spruce: #1e2e26;
  --spruce-deep: #16241d;
  --spruce-soft: #3d5247;
  --ink: #182220;
  --muted: #5b6a61;
  --orange: #ea580c;
  --orange-strong: #c2410c;
  --orange-deep: #9a3412;
  --line: #e2e5df;
  --tick: rgba(30, 46, 38, 0.28);
  --tick-strong: #ea580c;
  --focus: #1e2e26;
  --radius: 3px;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}

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

a {
  color: var(--orange-strong);
}

a,
button {
  cursor: pointer;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--spruce);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Signature: måttband (measuring tape ruler) */
.ruler {
  height: 22px;
  background-image:
    repeating-linear-gradient(90deg, var(--tick-strong) 0 2px, transparent 2px 96px),
    repeating-linear-gradient(90deg, var(--tick) 0 1.5px, transparent 1.5px 12px);
  background-size: auto 22px, auto 10px;
  background-repeat: repeat-x, repeat-x;
  background-position: bottom left, bottom left;
}

.ruler-dark {
  --tick: rgba(250, 250, 247, 0.25);
}

/* Type */
h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-strong);
  display: block;
  margin-bottom: 14px;
}

.hero .eyebrow,
.page-hero .eyebrow {
  color: #fdba74;
}

/* Icons */
.icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: var(--display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--spruce);
  text-transform: uppercase;
}

.logo span {
  color: var(--orange-strong);
}

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

.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--spruce-soft);
  padding: 12px 14px;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav a:hover {
  color: var(--spruce);
}

.nav a.active {
  color: var(--spruce);
  border-bottom-color: var(--orange);
}

.nav a.social {
  display: inline-flex;
  align-items: center;
  padding: 12px;
}

.icon-fb {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  color: var(--spruce);
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-family: var(--body);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--orange-strong);
  color: #fff;
}

.btn-primary:hover {
  background: var(--orange-deep);
}

.btn-outline {
  border-color: var(--spruce);
  color: var(--spruce);
  background: transparent;
}

.btn-outline:hover {
  background: var(--spruce);
  color: #fff;
}

.btn-outline-light {
  border-color: rgba(250, 250, 247, 0.7);
  color: #fff;
  background: transparent;
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--spruce);
  border-color: #fff;
}

/* Hero (photo, dark overlay) */
.hero {
  position: relative;
  background: var(--spruce-deep);
  color: #fff;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: -30% 0 0;
  background-size: cover;
  background-position: center;
  opacity: 0.42;
  will-change: transform;
}

.hero-inner {
  position: relative;
  padding-top: 120px;
  padding-bottom: 96px;
}

.hero h1 {
  font-weight: 900;
  font-size: clamp(40px, 6vw, 68px);
  max-width: 13ch;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}

.hero h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero .lead {
  font-size: 18px;
  line-height: 1.65;
  max-width: 54ch;
  margin: 24px 0 36px;
  color: rgba(250, 250, 247, 0.88);
}

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

/* Credential strip */
.cred-strip {
  background: var(--spruce);
  color: #fff;
}

.cred-strip .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.cred {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cred:nth-child(2) {
  justify-self: center;
}

.cred:nth-child(3) {
  justify-self: end;
}

.cred .icon {
  color: var(--orange);
  width: 28px;
  height: 28px;
}

.cred strong {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.04em;
  display: block;
}

.cred span {
  font-size: 13px;
  color: rgba(250, 250, 247, 0.65);
}

/* Sections */
.section {
  padding: 88px 0;
}

.section-white {
  background: var(--surface);
}

.section-head {
  max-width: 660px;
  margin-bottom: 48px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head.no-gap {
  margin-bottom: 0;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 900;
  text-transform: uppercase;
}

.section-head p {
  color: var(--muted);
  font-size: 17px;
  margin: 14px 0 0;
}

/* Cards */
.grid {
  display: grid;
  gap: 20px;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--spruce);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-top-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-top-color: var(--orange);
}

.card .icon {
  color: var(--orange-strong);
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: var(--body);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Project teaser */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.teaser-grid a {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
}

.teaser-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.teaser-grid a:hover img,
.teaser-grid a:focus-visible img {
  transform: scale(1.04);
}

.teaser-grid .label {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--spruce);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 14px;
}

/* Gallery */
.gallery-category {
  margin-bottom: 64px;
}

.gallery-category:last-child {
  margin-bottom: 0;
}

.gallery-category h2 {
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.gallery-category .count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 18px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-grid a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
}

.gallery-grid a[hidden] {
  display: none;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-more-wrap {
  text-align: center;
  margin-top: 20px;
}

.gallery-more {
  cursor: pointer;
  min-height: 36px;
  padding: 8px 18px;
  font-size: 13px;
}

.gallery-grid a:hover img,
.gallery-grid a:focus-visible img {
  transform: scale(1.05);
}

/* Quote */
.quote-block {
  background: var(--spruce);
  color: var(--bg);
  border-radius: var(--radius);
  padding: 56px 48px;
  text-align: center;
}

.quote-block blockquote {
  font-family: var(--display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.35;
  margin: 0 0 18px;
}

.quote-block cite {
  font-style: normal;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
}

/* CTA band */
.cta-band {
  background: var(--spruce-deep);
  color: #fff;
  text-align: center;
  padding: 88px 0;
}

.cta-band h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.cta-band p {
  color: rgba(250, 250, 247, 0.8);
  font-size: 17px;
  margin: 0 0 32px;
}

.cta-band .btn-primary {
  background: var(--orange-strong);
}

.cta-band .btn-primary:hover {
  background: var(--orange);
}

/* Service list page */
.service-detail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-detail .card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.service-detail .card .icon {
  margin-bottom: 0;
  margin-top: 3px;
}

/* Page hero (subpages) */
.page-hero {
  background: var(--spruce-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-hero .hero-inner {
  padding-top: 84px;
  padding-bottom: 64px;
}

.page-hero h1 {
  font-weight: 900;
  font-size: clamp(34px, 5vw, 54px);
  text-transform: uppercase;
  max-width: 18ch;
}

.page-hero .lead {
  font-size: 17px;
  max-width: 58ch;
  margin: 20px 0 0;
  color: rgba(250, 250, 247, 0.85);
}

/* About page */
.about-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.about-split .photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
}

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

.about-split h2 {
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.about-split p {
  color: var(--muted);
  margin: 0 0 14px;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-info-card .row {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact-info-card .row:last-child {
  border-bottom: none;
}

.contact-info-card .icon {
  color: var(--orange-strong);
  margin-top: 2px;
}

.contact-info-card strong {
  display: block;
  font-size: 15px;
}

.contact-info-card span,
.contact-info-card a {
  color: var(--muted);
  font-size: 15px;
}

form.demo-form {
  display: grid;
  gap: 18px;
}

form.demo-form label {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  display: block;
}

form.demo-form input,
form.demo-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--body);
  font-size: 16px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s ease;
}

form.demo-form input:focus,
form.demo-form textarea:focus {
  border-color: var(--spruce);
  outline: none;
}

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

.form-note {
  font-size: 13px;
  color: var(--muted);
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 0;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(22, 36, 29, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 40px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  color: #fff;
  font-size: 30px;
  background: none;
  border: none;
}

/* Footer */
.site-footer {
  background: var(--spruce-deep);
  color: rgba(250, 250, 247, 0.8);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250, 250, 247, 0.14);
}

.footer-grid h4 {
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.footer-grid p,
.footer-grid a {
  color: rgba(250, 250, 247, 0.7);
  text-decoration: none;
  font-size: 15px;
  margin: 0 0 10px;
  display: block;
}

.footer-grid a:hover {
  color: var(--orange);
}

.footer-logo {
  font-family: var(--display);
  font-weight: 900;
  font-size: 22px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
}

.footer-logo span {
  color: var(--orange);
}

.footer-bottom {
  padding-top: 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(250, 250, 247, 0.45);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 24px;
    gap: 4px;
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    border-bottom: none;
    border-left: 3px solid transparent;
    padding: 14px 12px;
  }

  .nav a.active {
    border-left-color: var(--orange);
  }

  .nav-toggle {
    display: block;
  }

  .hero-inner {
    padding-top: 80px;
    padding-bottom: 64px;
  }

  .cred-strip .container {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cred:nth-child(2),
  .cred:nth-child(3) {
    justify-self: start;
  }

  .grid-3,
  .grid-4,
  .service-detail {
    grid-template-columns: 1fr 1fr;
  }

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

  .gallery-grid .gallery-third {
    display: none;
  }

  .gallery-grid.is-expanded .gallery-third {
    display: block;
  }

  .about-split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .quote-block {
    padding: 40px 28px;
  }
}

@media (max-width: 520px) {
  .grid-3,
  .grid-4,
  .service-detail,
  .teaser-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }

  .cta-band {
    padding: 64px 0;
  }
}
