:root{
  --bg:        #ffffff;
  --bg-soft:   #f4f4f5;
  --bg-deep:   #e7e7ea;
  --paper:     #ffffff;

  --ink:       #0c0c0e;
  --ink-2:     #232328;
  --ink-3:     #4b4b52;
  --gray:      #6d6d75;
  --gray-soft: #a3a3aa;
  --line:      #e4e4e7;
  --line-soft: #efeff2;

  --red:       #c8222b;
  --red-soft:  #e95159;
  --red-deep:  #98171f;

  --terra-2:   #0c0c0e;
  --terra-3:   #1a1a1d;
  --terra-line: #2b2b30;

  --on-dark:   #fafafa;
  --on-dark-2: #c8c8cc;
  --on-dark-3: #7d7d83;

  --f-display: "Familjen Grotesk", system-ui, sans-serif;
  --f-body:    "Inter Tight", system-ui, sans-serif;

  --ease:      cubic-bezier(0.22, 1, 0.36, 1);

  --pad-x:     clamp(20px, 4.5vw, 56px);
  --max-w:     1320px;
  --section-y: clamp(56px, 7vw, 96px);
  --radius:    14px;
  --radius-sm: 8px;
}

*, *::before, *::after{ box-sizing: border-box; }
html, body{ margin: 0; padding: 0; }
html{ scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body{
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg{ display: block; max-width: 100%; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, select, textarea, button{ font-family: inherit; }
::selection{ background: var(--red); color: var(--paper); }

.container{
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.eyebrow{
  display: inline-block;
  font-family: var(--f-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--red);
}
.eyebrow-light{ color: var(--red-soft); }

.section-title{
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 12px 0 0;
  max-width: 22ch;
}
.section-title-light{ color: var(--on-dark); }

.section-lead{
  margin: 20px 0 0;
  max-width: 60ch;
  color: var(--ink-3);
  font-size: 1.05rem;
  line-height: 1.65;
}

.section-body{ margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.section-body p{ margin: 0; color: var(--ink-2); font-size: 1.04rem; line-height: 1.68; max-width: 56ch; }
.section-body-light p{ color: var(--on-dark-2); }

.section{
  padding: var(--section-y) 0;
  position: relative;
}
.section-head{
  margin: 0 auto clamp(40px, 5vw, 64px);
  max-width: 60rem;
  text-align: center;
}
.section-head .section-title{ margin-left: auto; margin-right: auto; }
.section-head .section-lead{ margin-left: auto; margin-right: auto; }

.btn-primary, .btn-ghost, .btn-submit{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 22px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 0.96rem;
  border-radius: 8px;
  transition: transform 0.4s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.btn-primary{
  background: var(--red);
  color: var(--paper);
  border: 1px solid var(--red);
}
.btn-primary:hover{
  background: var(--red-deep);
  border-color: var(--red-deep);
  transform: translateY(-1px);
}
.btn-ghost{
  color: var(--on-dark);
  border: 1px solid rgba(250, 250, 250, 0.32);
}
.btn-ghost:hover{
  background: rgba(250, 250, 250, 0.10);
  border-color: rgba(250, 250, 250, 0.55);
}
.btn-submit{
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 15px 26px;
  align-self: flex-start;
}
.btn-submit:hover{
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-1px);
}
.btn-submit svg{ transition: transform 0.4s var(--ease); }
.btn-submit:hover svg{ transform: translateX(3px); }

.topbar{
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 60;
  background: var(--terra-2);
  color: var(--on-dark-2);
  border-bottom: 1px solid rgba(250, 250, 250, 0.08);
}
.topbar-inner{
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 36px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.topbar-msg{
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--on-dark-2);
}
.topbar-link{
  color: var(--on-dark);
  transition: color 0.3s var(--ease);
}
.topbar-link:hover{ color: var(--red-soft); }
.topbar-phone{
  color: var(--on-dark);
  font-weight: 600;
  font-size: 0.82rem;
  transition: color 0.3s var(--ease);
}
.topbar-phone:hover{ color: var(--red-soft); }

.navbar{
  position: fixed;
  top: 36px;
  left: 0; right: 0;
  z-index: 55;
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.45s var(--ease);
}
.navbar.is-scrolled{
  box-shadow: 0 1px 0 var(--line-soft), 0 10px 28px -22px rgba(12, 12, 14, 0.18);
}
.navbar-inner{
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.brand{ display: inline-flex; align-items: center; gap: 8px; color: var(--ink); transition: opacity 0.3s var(--ease); }
.brand:hover{ opacity: 0.78; }
.brand-logo{
  height: 42px;
  width: auto;
  display: block;
}
.footer-logo-wrap{
  display: block;
  width: 240px;
  height: 56px;
  overflow: hidden;
  line-height: 0;
}
.footer-logo-wrap img{
  height: 56px;
  width: auto;
  display: block;
  object-position: left center;
}


.nav-links{ display: flex; align-items: center; gap: 6px; }
.nav-link{
  padding: 10px 4px;
  margin: 0 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  transition: color 0.35s var(--ease);
}
.nav-link::after{
  content: "";
  position: absolute;
  left: 4px; right: 4px; bottom: 6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav-link:hover{ color: var(--ink); }
.nav-link:hover::after{ transform: scaleX(1); transform-origin: left; }

.nav-cta{
  margin-left: 18px;
  padding: 11px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 6px;
  transition: background-color 0.4s var(--ease), transform 0.45s var(--ease);
}
.nav-cta:hover{ background: var(--red); transform: translateY(-1px); }

.menu-toggle{
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border-radius: 999px;
}
.menu-bar{
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.45s var(--ease), opacity 0.3s var(--ease);
}
.menu-toggle.is-open .menu-bar:nth-child(1){ transform: translateY(3.5px) rotate(45deg); }
.menu-toggle.is-open .menu-bar:nth-child(2){ transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu{
  position: fixed; inset: 0;
  z-index: 54;
  background: var(--bg);
  padding: 100px var(--pad-x) 24px;
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.45s var(--ease);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.is-open{ opacity: 1; pointer-events: auto; }
.mobile-link{
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.022em;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-link-cta{
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 16px;
  padding: 14px 24px;
  background: var(--red);
  color: var(--paper);
  font-weight: 500;
  font-size: 1rem;
  border-radius: 6px;
  align-self: flex-start;
}
.mobile-foot{
  margin-top: auto;
  display: flex; flex-direction: column; gap: 10px;
  color: var(--ink-3);
  font-size: 0.92rem;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.mobile-foot-row{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-style: normal;
  transition: color 0.25s var(--ease);
}
.mobile-foot-row svg{
  flex-shrink: 0;
  color: var(--red);
}
.mobile-foot-row:hover{ color: var(--red); }
@media (max-height: 640px){
  .mobile-menu{ padding-top: 80px; padding-bottom: 16px; }
  .mobile-link{ font-size: 1.4rem; padding: 6px 0; }
  .mobile-link-cta{ margin-top: 10px; padding: 12px 20px; }
  .mobile-foot{ padding-top: 14px; gap: 6px; font-size: 0.85rem; }
}

.hero{
  position: relative;
  min-height: clamp(800px, 92svh, 980px);
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: clip;
  padding: 220px 0 120px;
}
.hero-bg{ position: absolute; inset: 0; z-index: -1; }
.hero-img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 55%;
  transform: scale(1.06);
}
.hero-veil{
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 12, 14, 0.25) 0%, rgba(8, 8, 10, 0.85) 100%);
}
.hero-inner{
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  width: 100%;
  color: var(--on-dark);
}
.hero-title{
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: var(--on-dark);
  margin: 0;
  max-width: 18ch;
}
.hero-lead{
  margin: 24px 0 0;
  font-size: 1.07rem;
  line-height: 1.65;
  color: var(--on-dark-2);
  max-width: 56ch;
}
.hero-actions{
  margin: 32px 0 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 600px){
  .hero-actions{
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions a{
    width: 100%;
    justify-content: center;
  }
}

.section-om{ background: var(--bg); }
.om-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 920px){
  .om-grid{ grid-template-columns: 0.95fr 1fr; gap: 72px; }
  .om-grid-reverse{ grid-template-columns: 1fr 0.95fr; }
  .om-grid-reverse .om-figure{ order: 2; }
}
.om-figure{
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.om-img{ width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.om-figure:hover .om-img{ transform: scale(1.04); }
.om-figure-tag{
  position: absolute;
  bottom: 16px; left: 16px;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.005em;
}
.om-figure-tag-light{ background: var(--terra-2); color: var(--on-dark); }
.om-content{ max-width: 60ch; }
.om-stats{
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.om-stat{
  background: var(--bg);
  padding: 22px 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.om-stat-num{
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--red-deep);
  line-height: 1;
}
.om-stat-label{
  font-size: 0.85rem;
  color: var(--ink-3);
  line-height: 1.4;
}

.section-tjanster{ background: var(--bg-soft); }
.section-reklam{ background: var(--bg); }
.svc-grid-3{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px){
  .svc-grid-3{ grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
.svc-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px){ .svc-grid{ grid-template-columns: 1fr 1fr; gap: 18px; } }
@media (min-width: 1100px){ .svc-grid{ grid-template-columns: repeat(3, 1fr); } }

.svc-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
}
.svc-card:hover{
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 0 16px 40px -22px rgba(12, 12, 14, 0.16);
}
.svc-title{
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 500;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0;
  line-height: 1.1;
}
.svc-text{
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-3);
}
.svc-dark{
  background: var(--terra-2);
  color: var(--on-dark);
  border-color: var(--terra-2);
}
.svc-dark .svc-title{ color: var(--on-dark); }
.svc-dark .svc-text{ color: var(--on-dark-2); }
.svc-dark:hover{ border-color: var(--red); background: var(--terra-3); }
.svc-feature{
  background: var(--ink);
  color: var(--on-dark);
  border-color: var(--ink);
  grid-column: 1 / -1;
}
@media (min-width: 1100px){ .svc-feature{ grid-column: span 3; } }
.svc-feature .svc-title{ color: var(--on-dark); font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.svc-feature .svc-text{ color: var(--on-dark-2); max-width: 52ch; }
.svc-feature:hover{ background: #08080a; border-color: var(--ink); }
.svc-feature-main{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.svc-feature-list{ width: 100%; }
@media (min-width: 860px){
  .svc-feature{
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
    padding: clamp(34px, 4vw, 52px);
  }
  .svc-feature-list{ align-self: center; }
}
.svc-feature-tag{
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-soft);
  margin-bottom: 4px;
}
.svc-cta{
  align-self: flex-start;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  background: var(--red);
  color: var(--paper);
  border-radius: 8px;
  font-size: 0.96rem;
  font-weight: 500;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.svc-cta:hover{ background: var(--red-deep); transform: translateY(-1px); }
.svc-cta span{ transition: transform 0.3s var(--ease); }
.svc-cta:hover span{ transform: translate(2px, -2px); }

.svc-list{
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.svc-list li{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-3);
}
.svc-list svg{
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--red);
}
.svc-dark .svc-list li{ color: var(--on-dark-2); }
.svc-feature .svc-list li{ color: var(--on-dark-2); }
.svc-feature .svc-list svg{ color: var(--red-soft); }

.ref-strip{
  margin-top: clamp(30px, 3.5vw, 46px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 26px;
}
.ref-strip-key{
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}
.ref-strip-names{
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.014em;
  color: var(--ink);
}

.block-head{
  max-width: 60rem;
  margin: 0 auto clamp(28px, 3.5vw, 44px);
  text-align: center;
}
.block-title{
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.06;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0 auto;
  max-width: 24ch;
}
.block-lead{
  margin: 14px auto 0;
  max-width: 58ch;
  color: var(--ink-3);
  font-size: 1.02rem;
  line-height: 1.65;
}
.subsection{ margin-top: clamp(48px, 6vw, 84px); }

.feat-figure{
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: var(--bg-deep);
}
.feat-figure img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.feat-figure:hover img{ transform: scale(1.04); }
.feat-figure figcaption{
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
}

.show-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px){ .show-grid{ grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.show-card{
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--bg-deep);
  margin: 0;
}
.show-card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.show-card:hover img{ transform: scale(1.05); }
.show-card::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(10, 10, 12, 0.8) 100%);
  pointer-events: none;
}
.show-card figcaption{
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  color: var(--on-dark);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.005em;
}

.steps{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px){ .steps{ grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px){ .steps{ grid-template-columns: repeat(4, 1fr); } }
.step{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 2.6vw, 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
}
.step:hover{
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 0 16px 40px -22px rgba(12, 12, 14, 0.16);
}
.step-badge{
  position: relative;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  color: var(--red);
}
.step-badge svg{ width: 26px; height: 26px; }
.step-num{
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: var(--paper);
  border-radius: 999px;
  font-family: var(--f-display);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
}
.step-title{
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
}
.step-text{
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-3);
}

.detail{
  background: var(--terra-2);
  color: var(--on-dark);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 56px);
  text-align: center;
}
.detail-title{
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--on-dark);
  margin: 0 auto;
  max-width: 22ch;
}
.detail-lead{
  margin: 14px auto 0;
  max-width: 56ch;
  color: var(--on-dark-2);
  font-size: 1.02rem;
  line-height: 1.65;
}
.detail-cols{
  margin-top: clamp(24px, 3vw, 36px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px 48px;
  text-align: left;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 760px){ .detail-cols{ grid-template-columns: 1fr 1fr; } }
.detail-col h4{
  margin: 0 0 14px;
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-soft);
}
.detail .svc-list li{ color: var(--on-dark-2); }
.detail .svc-list svg{ color: var(--red-soft); }

.section-racing{
  background: var(--terra-2);
  color: var(--on-dark);
  position: relative;
}

.section-bilar{ background: var(--bg); }
.bil-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px){ .bil-grid{ grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px){
  .bil-grid{
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 260px;
  }
}
.bil-card{
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(22px, 2.4vw, 28px);
  transition: transform 0.4s var(--ease);
  min-height: 200px;
}
.bil-card:hover{ transform: translateY(-3px); }
.bil-tag{
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.bil-tag-light{ color: var(--red-soft); }
.bil-name{
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.024em;
  color: var(--ink);
  margin: 0;
  line-height: 1.05;
}
.bil-name-light{ color: var(--on-dark); }
.bil-text{
  margin: 8px 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-3);
}
.bil-text-light{ color: var(--on-dark-2); }

.bil-dark{
  background: var(--terra-2);
  color: var(--on-dark);
}
.bil-dark .bil-name{ color: var(--on-dark); }
.bil-dark .bil-text{ color: var(--on-dark-2); }

.bil-typo{
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.bil-photo{
  background: var(--terra-2);
  padding: 0;
}
.bil-photo img{
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.bil-photo:hover img{ transform: scale(1.05); }
.bil-overlay{
  position: relative;
  z-index: 1;
  padding: clamp(24px, 2.6vw, 32px);
  background: linear-gradient(to top, rgba(8, 8, 10, 0.92) 0%, rgba(8, 8, 10, 0.5) 60%, transparent 100%);
  margin-top: auto;
}
.bil-large{ grid-column: 1 / -1; }

.section-galleri{ background: var(--bg-soft); }
.gallery{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 12px;
}
.tile{
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-deep);
  grid-column: span 3;
  aspect-ratio: 4 / 3;
}
.tile img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), filter 0.4s var(--ease);
  filter: saturate(0.95);
}
.tile:hover img{ transform: scale(1.05); filter: saturate(1.05); }
.tile figcaption{
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  display: flex; flex-direction: column; gap: 2px;
  color: var(--on-dark);
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 2;
}
.tile figcaption span:last-child{ color: var(--on-dark-2); font-size: 0.75rem; }
.tile::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 12, 0.78) 100%);
  z-index: 1; pointer-events: none;
}
@media (min-width: 720px){
  .tile{ grid-column: span 3; }
  .tile-wide{ grid-column: span 4; }
  .tile-tall{ grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}
@media (min-width: 1100px){
  .tile{ grid-column: span 2; }
  .tile-wide{ grid-column: span 4; aspect-ratio: 16 / 10; }
  .tile-tall{ grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}

.section-lankar{ background: var(--bg); }
.lank-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 720px){ .lank-grid{ grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px){ .lank-grid{ grid-template-columns: repeat(4, 1fr); } }
.lank-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
}
.lank-card:hover{
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 0 16px 40px -22px rgba(12, 12, 14, 0.16);
}
.lank-meta{
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}
.lank-name{
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.lank-cta{
  margin-top: auto;
  font-size: 0.88rem;
  color: var(--gray);
  transition: color 0.3s var(--ease);
}
.lank-card:hover .lank-cta{ color: var(--red); }
.lank-dark{
  background: var(--terra-2);
  border-color: var(--terra-2);
  color: var(--on-dark);
}
.lank-dark .lank-name{ color: var(--on-dark); }
.lank-dark .lank-meta{ color: var(--red-soft); }
.lank-dark .lank-cta{ color: var(--on-dark-2); }
.lank-dark:hover{ background: var(--terra-3); border-color: var(--terra-3); }
.lank-dark:hover .lank-cta{ color: var(--on-dark); }

.section-kontakt{ background: var(--bg); }
.kontakt-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 980px){
  .kontakt-grid{ grid-template-columns: 0.85fr 1.15fr; gap: 32px; }
}
.kontakt-aside{
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column; gap: 6px;
}
.kontakt-photo{
  margin: 18px 0 0;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  flex: 1;
  min-height: 200px;
}
.kontakt-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.kontakt-photo:hover img{ transform: scale(1.04); }
.kontakt-photo figcaption{
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  color: var(--on-dark);
  font-size: 0.88rem;
  font-weight: 500;
  background: rgba(10, 10, 12, 0.78);
  padding: 8px 12px;
  border-radius: 4px;
  display: inline-block;
  width: max-content;
  max-width: calc(100% - 28px);
}
.kontakt-row{
  display: flex; align-items: center; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.4s var(--ease);
}
.kontakt-row:last-of-type{ border-bottom: 0; }
.kontakt-row:not(.kontakt-row-static):hover{ color: var(--red-deep); }
.kontakt-row:not(.kontakt-row-static):hover .kontakt-icon{
  background: var(--red);
  color: var(--paper);
  border-color: var(--red);
}
.kontakt-icon{
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--red-deep);
  display: grid; place-items: center;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.kontakt-icon svg{ width: 16px; height: 16px; }
.kontakt-row-body{ display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.kontakt-row-key{
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}
.kontakt-row-val{
  font-family: var(--f-display);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.012em;
}

.kontakt-form{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex; flex-direction: column; gap: 18px;
  max-width: 100%;
  overflow: hidden;
}
.form-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 600px){ .form-grid{ grid-template-columns: 1fr 1fr; } }
.form-field{ display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form-field label{
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.form-field input,
.form-field select,
.form-field textarea{
  appearance: none;
  -webkit-appearance: none;
  padding: 13px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.96rem;
  font-family: inherit;
  line-height: 1.4;
  width: 100%;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.form-field input::placeholder,
.form-field textarea::placeholder{ color: var(--gray-soft); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus{
  outline: none;
  border-color: var(--red);
  background: var(--paper);
  box-shadow: 0 0 0 4px rgba(200, 34, 43, 0.10);
}
.form-field textarea{ resize: vertical; min-height: 120px; }
.form-field select{
  appearance: auto;
  -webkit-appearance: menulist;
  background-image: none;
  padding-right: 14px;
  cursor: pointer;
}
.form-note{
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--gray);
}

#contact-form .g-recaptcha{
  transform-origin: left center;
  max-width: 100%;
}
@media (max-width: 400px){
  #contact-form .g-recaptcha{ transform: scale(0.85); }
}
@media (max-width: 340px){
  #contact-form .g-recaptcha{ transform: scale(0.75); }
}

.footer{
  background: var(--terra-2);
  color: var(--on-dark-2);
  padding: 72px 0 28px;
  border-top: 1px solid var(--terra-line);
}
.footer-top{
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--terra-line);
}
@media (min-width: 720px){ .footer-top{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px){ .footer-top{ grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; } }

.footer-col{ display: flex; flex-direction: column; gap: 10px; }
.footer-col h4{
  margin: 0 0 4px;
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}
.footer-col a, .footer-col span{
  color: var(--on-dark-2);
  font-size: 0.94rem;
  transition: color 0.3s var(--ease);
}
.footer-col a:hover{ color: var(--red-soft); }
.footer-row{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-row svg{
  flex-shrink: 0;
  color: var(--red-soft);
  width: 14px;
  height: 14px;
}
.footer-brand-col{ gap: 14px; }
.footer-brand-col .brand-name{ color: var(--on-dark); font-size: 1.1rem; }
.footer-blurb{
  margin: 4px 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--on-dark-3);
  max-width: 42ch;
}
.footer-bottom{
  margin-top: 22px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  font-size: 0.78rem;
  color: var(--on-dark-3);
}
.footer-back{
  color: var(--on-dark-3);
  transition: color 0.3s var(--ease);
}
.footer-back:hover{ color: var(--red-soft); }

.reveal-up{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal-up.is-visible{ opacity: 1; transform: translateY(0); }
.delay-1{ transition-delay: 0.08s; }
.delay-2{ transition-delay: 0.16s; }
.delay-3{ transition-delay: 0.24s; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (max-width: 920px){
  .nav-links{ display: none; }
  .menu-toggle{ display: flex; }
  .hero{ padding: 160px 0 80px; }
}
@media (max-width: 600px){
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost{ flex: 1; justify-content: center; }
  .om-stats{ grid-template-columns: 1fr; }
  .gallery{ grid-template-columns: repeat(2, 1fr); }
  .tile, .tile-wide, .tile-tall{ grid-column: span 1; grid-row: auto; aspect-ratio: 1; }
  .kontakt-form{ padding: 22px; }
}

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