@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;1,400&family=Syne:wght@600;700;800&display=swap');

:root {
  --ink: #1a1c1e;
  --ink-soft: #3a4046;
  --muted: #5e656c;
  --paper: #eef0f2;
  --surface: #f7f8f9;
  --white: #ffffff;
  --line: #cfd4d9;
  --line-strong: #b4bbc2;
  --copper: #a66b3c;
  --copper-deep: #8b552e;
  --charcoal: #4a4a4a;
  --focus: #1a1c1e;
  --nav-h: 4.5rem;
  --pad: clamp(1.25rem, 4vw, 4.5rem);
  --max: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

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

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
}

.skip:focus {
  top: 1rem;
}

.mono {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Dimension ticks — the signature */
.ticks,
.ticks-v {
  pointer-events: none;
}

.ticks {
  height: 14px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--line-strong) 0 1px,
      transparent 1px 12px
    );
  border-bottom: 1px solid var(--line-strong);
  opacity: 0.7;
}

.ticks-v {
  width: 14px;
  background:
    repeating-linear-gradient(
      180deg,
      var(--line-strong) 0 1px,
      transparent 1px 12px
    );
  border-right: 1px solid var(--line-strong);
  opacity: 0.55;
}

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
  padding: 0.65rem var(--pad);
  background: color-mix(in srgb, var(--paper) 88%, white);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 44px;
  width: auto;
  background: #fff;
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  background: var(--white);
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--ink);
}

.nav-toggle span {
  top: 50%;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
}

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

.nav-toggle span::after {
  top: 7px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.menu a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.menu a:hover,
.menu a[aria-current='page'] {
  color: var(--ink);
}

.menu a[aria-current='page'] {
  box-shadow: inset 0 -1px 0 var(--copper);
}

.nav-phone {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink) !important;
  text-decoration: none;
  border-bottom: 1px solid var(--copper);
  padding-bottom: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.65rem 1.2rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 200ms var(--ease), color 200ms var(--ease), transform 200ms var(--ease);
}

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

.btn-primary {
  background: var(--copper);
  color: var(--white);
}

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

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  min-height: calc(100svh - var(--nav-h));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-copy {
  padding: clamp(2.5rem, 7vh, 5.5rem) var(--pad) 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 42rem;
  min-width: 0;
}

.eyebrow {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.hero h1,
.page-hero h1,
.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  max-width: min(14ch, 100%);
  overflow-wrap: break-word;
}

.hero h1 {
  font-size: clamp(2.7rem, 7vw, 5.4rem);
}

.page-hero,
.hero-copy,
.wrap,
.band,
.lead {
  min-width: 0;
}

.lead {
  margin-top: 1.35rem;
  max-width: 34rem;
  font-size: 1.12rem;
  color: var(--ink-soft);
}

.hero-board {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 28rem;
  min-width: 0;
}

.board-meta {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  color: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ek-mark {
  align-self: center;
  justify-self: center;
  box-sizing: border-box;
  width: min(88%, 26rem);
  max-width: calc(100% - 2rem);
  margin: 1.5rem auto;
  background: var(--white);
  padding: 1rem 0.85rem;
  overflow: hidden;
}

.ek-mark img {
  width: 100%;
  height: auto;
}

.board-foot {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.copper {
  color: var(--copper);
}

/* Sections */
.band {
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--pad);
}

.band-tight {
  padding-block: 0;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
}

.section-kicker {
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  max-width: 18ch;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.prose {
  color: var(--ink-soft);
  max-width: 38rem;
}

.prose p + p {
  margin-top: 1rem;
}

/* Spec list — ydelser as a bill of quantities */
.spec {
  border-top: 1px solid var(--line-strong);
}

.spec-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr minmax(8rem, 14rem);
  gap: 1.25rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  align-items: baseline;
  transition: background 200ms var(--ease);
}

.spec-row:hover {
  background: color-mix(in srgb, var(--white) 70%, transparent);
}

.spec-id {
  color: var(--copper);
  padding-top: 0.35rem;
}

.spec-row h2,
.spec-row h3 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.spec-row p {
  color: var(--muted);
  font-size: 0.98rem;
}

.spec-note {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* Process */
.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--white);
}

.process li {
  list-style: none;
  padding: 1.4rem 1.3rem 1.6rem;
  border-right: 1px solid var(--line);
}

.process li:last-child {
  border-right: 0;
}

.process strong {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  margin: 0.65rem 0 0.4rem;
}

.process p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Area */
.area {
  background: var(--ink);
  color: var(--white);
}

.area .section-kicker,
.area .prose {
  color: rgba(255, 255, 255, 0.62);
}

.area .ticks {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.28) 0 1px,
      transparent 1px 12px
    );
  border-bottom-color: rgba(255, 255, 255, 0.28);
}

.area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
}

.big-place {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
}

/* CTA strip */
.cta-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 2rem var(--pad);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.cta-strip h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

/* Page hero */
.page-hero {
  padding: clamp(3rem, 8vh, 5.5rem) var(--pad) 2.5rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2.1rem, 8vw, 4.4rem);
}

.page-hero .lead {
  margin-top: 1rem;
}

/* Contact layout */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
}

.facts {
  display: grid;
  gap: 1.35rem;
}

.facts a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.facts dt {
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.facts dd {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.phone-xl {
  font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
}

form {
  display: grid;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 3vw, 2rem);
}

label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  padding: 0.7rem 0.8rem;
  color: var(--ink);
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-status {
  font-size: 0.95rem;
  color: var(--ink-soft);
  min-height: 1.4em;
}

.form-status.is-ok {
  color: var(--copper-deep);
}

/* Work types */
.work-list {
  display: grid;
}

.work-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.work-item h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.work-item p {
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem var(--pad) 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: end;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--ink-soft);
  text-underline-offset: 3px;
}

.footer-mid {
  text-align: center;
}

.footer-end {
  text-align: right;
}

/* Reveal */
.reveal {
  animation: rise 700ms var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .hero,
  .split,
  .area-grid,
  .contact-grid,
  .work-item,
  .site-footer {
    grid-template-columns: 1fr;
  }

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

  .process li:nth-child(2) {
    border-right: 0;
  }

  .process li:nth-child(1),
  .process li:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .spec-row {
    grid-template-columns: 3.2rem 1fr;
  }

  .spec-note {
    grid-column: 2;
  }

  .site-footer,
  .footer-end {
    text-align: left;
  }

  .hero-board {
    min-height: 22rem;
    order: -1;
  }

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

  .menu {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0 1rem;
  }

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

  .menu a {
    padding: 0.85rem var(--pad);
    min-height: 44px;
  }
}

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

  .process li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process li:last-child {
    border-bottom: 0;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.05rem;
  }
}

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

  .reveal,
  .btn {
    animation: none;
    transition: none;
  }
}

/* Video Background */
.hero {
  position: relative;
  overflow: hidden;
}
.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}
.hero-copy, .hero-board {
  position: relative;
  z-index: 1;
}
