/* =========================================================
   ÖLSPURRING — Redesign Demo
   Aesthetic: industrial-editorial. Asphalt + signal amber.
   Display: Bricolage Grotesque · Body: Hanken Grotesk
   ========================================================= */

:root {
  --paper:    #F2EFE7;
  --paper-2:  #EAE6DA;
  --ink:      #16181B;
  --asphalt:  #1E2227;
  --asphalt-2:#272C32;
  --signal:   #E58A00;
  --signal-d: #C56F00;
  --slate:    #6B7178;
  --line:     #D8D2C2;
  --line-dk:  #3A4047;
  --white:    #FBFAF6;

  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 64px);
  --r: 3px;

  --f-display: 'Bricolage Grotesque', Georgia, serif;
  --f-body: 'Hanken Grotesk', -apple-system, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--signal); color: var(--ink); }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }

.eyebrow {
  font-family: var(--f-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--signal-d);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--signal);
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.02em;
}

/* lane-marking divider — recurring road motif */
.lane {
  height: 8px;
  background: repeating-linear-gradient(
    90deg, var(--signal) 0 38px, transparent 38px 70px);
  opacity: .9;
}
.lane.dim {
  background: repeating-linear-gradient(
    90deg, var(--line-dk) 0 38px, transparent 38px 70px);
}

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(242,239,231,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.01em;
}
.brand .ring {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid var(--ink);
  position: relative; flex: none;
}
.brand .ring::after {
  content: ""; position: absolute;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--signal);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.brand b { font-weight: 800; }
.brand span { color: var(--signal-d); }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}
.nav-links a {
  display: block;
  font-size: 14.5px; font-weight: 600;
  padding: 9px 14px;
  border-radius: var(--r);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-links a:hover { background: var(--paper-2); }
.nav-links a.active { color: var(--signal-d); }

.nav-cta {
  font-size: 14.5px; font-weight: 700;
  background: var(--ink); color: var(--white);
  padding: 11px 20px; border-radius: var(--r);
  transition: background .2s var(--ease);
}
.nav-cta:hover { background: var(--signal-d); }

.burger {
  display: none; background: none; border: 0;
  width: 42px; height: 42px; cursor: pointer;
  flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
}
.burger span {
  width: 22px; height: 2px; background: var(--ink);
  transition: .25s var(--ease);
}
.burger.x span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.x span:nth-child(2) { opacity: 0; }
.burger.x span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-body);
  font-weight: 700; font-size: 15px;
  padding: 15px 28px;
  border-radius: var(--r);
  cursor: pointer; border: 0;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--signal); color: var(--ink); }
.btn-primary:hover { background: var(--signal-d); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--asphalt-2); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 0;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 76px);
  min-height: calc(100svh - 76px);
  padding: clamp(34px, 5vw, 60px) 0;
}
.hero h1 {
  font-size: clamp(42px, 7.4vw, 92px);
  font-weight: 800;
}
.hero h1 .out {
  -webkit-text-stroke: 2px var(--ink);
  color: transparent;
}
.hero h1 em {
  font-style: normal; color: var(--signal-d);
}
.hero-lead {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--slate);
  max-width: 46ch;
  margin: 26px 0 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-intro > *, .hero-side {
  animation: heroRise .85s var(--ease) both;
}
.hero-intro > *:nth-child(1) { animation-delay: .05s; }
.hero-intro > *:nth-child(2) { animation-delay: .15s; }
.hero-intro > *:nth-child(3) { animation-delay: .25s; }
.hero-intro > *:nth-child(4) { animation-delay: .35s; }
.hero-side { animation-delay: .3s; }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

.hero-side {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--r);
  padding: 28px;
}
.hero-side .k {
  display: block;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 58px);
  color: var(--signal-d);
  line-height: 1;
}
.hero-side .kv { display: block; }
.hero-side .kv + .kv {
  margin-top: 20px; padding-top: 20px;
  border-top: 1px dashed var(--line);
}
.hero-side .kl {
  display: block;
  font-size: 14px; color: var(--slate);
  font-weight: 600; margin-top: 6px;
}

/* asphalt visual band under hero */
.hero-band {
  min-height: clamp(320px, 44vw, 560px);
  display: flex;
  align-items: flex-end;
  background-color: var(--asphalt);
  background-image: linear-gradient(rgba(18,20,23,.1), rgba(18,20,23,.42) 55%, rgba(18,20,23,.9)), url("../assets/hero.jpg");
  background-size: cover;
  background-position: center 56%;
  color: var(--paper);
  position: relative;
}
.hero-band .wrap {
  width: 100%;
  display: flex; flex-wrap: wrap; gap: 14px 40px;
  padding-top: 26px; padding-bottom: 30px;
  align-items: center;
}
.hero-band .tag {
  font-size: 13.5px; font-weight: 600;
  color: #B9BEC4;
  display: flex; align-items: center; gap: 9px;
}
.hero-band .tag::before {
  content: ""; width: 7px; height: 7px;
  background: var(--signal); border-radius: 50%;
}
.hero-band .tag:first-child {
  font-family: var(--f-display); font-weight: 800;
  color: var(--paper); font-size: 14px;
  letter-spacing: .04em; text-transform: uppercase;
}

/* ---------- generic section ---------- */
.section { padding: clamp(64px, 9vw, 124px) 0; }
.section.tight { padding: clamp(48px, 6vw, 80px) 0; }
.sec-head {
  display: grid; grid-template-columns: auto 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.sec-head .idx {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--signal-d);
  border: 1.5px solid var(--signal);
  border-radius: 50%;
  width: 52px; height: 52px;
  display: grid; place-items: center;
}
.sec-head h2 {
  font-size: clamp(30px, 4.4vw, 54px);
  max-width: 18ch;
}
.sec-head .sub {
  margin-top: 14px; color: var(--slate);
  max-width: 52ch; font-size: 16.5px;
}

/* dark section variant */
.section.dark {
  background: var(--asphalt); color: var(--paper);
}
.section.dark .sec-head h2 { color: var(--paper); }
.section.dark .sec-head .sub { color: #ADB2B8; }
.section.dark .sec-head .idx { border-color: var(--signal); }

/* ---------- service rows ---------- */
.svc-list { border-top: 1px solid var(--line); }
.svc {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: clamp(16px, 4vw, 48px);
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .3s var(--ease);
}
.svc:hover { padding-left: 16px; }
.svc .no {
  font-family: var(--f-display);
  font-weight: 800; font-size: 22px;
  color: var(--signal-d);
}
.svc h3 { font-size: clamp(20px, 2.3vw, 27px); }
.svc p { color: var(--slate); margin-top: 8px; font-size: 15.5px; max-width: 60ch; }
.svc .go {
  width: 46px; height: 46px; flex: none;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: .25s var(--ease);
}
.svc:hover .go { background: var(--signal); border-color: var(--signal); }

/* ---------- card grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,.35);
}
.card .ic {
  width: 48px; height: 48px;
  background: var(--paper-2);
  border-radius: var(--r);
  display: grid; place-items: center;
  margin-bottom: 18px;
  color: var(--signal-d);
}
.ic svg { width: 24px; height: 24px; display: block; }
.card.dark-c {
  background: var(--asphalt-2);
  border-color: var(--line-dk);
  color: var(--paper);
}
.card.dark-c .ic { background: #34393F; color: var(--signal); }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--slate); font-size: 15px; }
.card.dark-c p { color: #AAAFB5; }

/* feature split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.split.flip > :first-child { order: 2; }
.split-fig {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  min-height: 380px;
  background: var(--asphalt);
}
.split-fig img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* values list */
.values { list-style: none; }
.values li {
  display: grid; grid-template-columns: auto 1fr; gap: 18px;
  padding: 22px 0;
  border-bottom: 1px dashed var(--line);
}
.values li:last-child { border-bottom: 0; }
.values .vn {
  font-family: var(--f-display); font-weight: 800;
  color: var(--signal-d); font-size: 18px;
}
.values h3 { font-size: 19px; margin-bottom: 4px; }
.values p { color: var(--slate); font-size: 15px; }

/* stat strip */
.stats {
  display: grid; grid-template-columns: repeat(4,1fr);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  overflow: hidden;
}
.stats div {
  padding: 30px;
  border-right: 1px solid var(--line);
}
.stats div:last-child { border-right: 0; }
.stats .sn {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(34px, 4vw, 46px);
  color: var(--ink); line-height: 1;
}
.stats .sl { color: var(--slate); font-size: 14.5px; margin-top: 8px; }

/* ---------- page hero (sub-pages) ---------- */
.phead {
  background: var(--asphalt); color: var(--paper);
  padding: clamp(50px, 7vw, 96px) 0 clamp(40px, 6vw, 72px);
}
.phead .eyebrow { color: var(--signal); }
.phead h1 {
  font-size: clamp(38px, 6vw, 78px);
  font-weight: 800;
  margin-top: 18px;
}
.phead h1 em { font-style: normal; color: var(--signal); }
.phead p {
  color: #AEB3B9; max-width: 56ch;
  margin-top: 18px; font-size: 17px;
}
.crumb {
  font-size: 13px; color: #8A9097; font-weight: 600;
  letter-spacing: .04em;
}
.crumb a:hover { color: var(--signal); }

/* prose */
.prose { max-width: 70ch; }
.prose h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin: 44px 0 14px;
}
.prose h3 { font-size: 21px; margin: 32px 0 10px; }
.prose p { margin-bottom: 16px; color: #2C3036; }
.prose ul { margin: 0 0 16px 22px; color: #2C3036; }
.prose li { margin-bottom: 7px; }
.prose strong { font-weight: 700; }

/* wiki entries */
.wiki-list { display: grid; gap: 14px; }
.wiki-item {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 22px; align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  border-radius: var(--r);
  padding: 22px 26px;
  transition: transform .2s var(--ease);
}
.wiki-item:hover { transform: translateX(6px); }
.wiki-item .cat {
  font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--signal-d);
  background: var(--paper-2);
  padding: 6px 11px; border-radius: 100px;
  white-space: nowrap;
}
.wiki-item h3 { font-size: 18px; }
.wiki-item .meta { font-size: 13.5px; color: var(--slate); margin-top: 3px; }
.wiki-item .date {
  font-family: var(--f-display); font-weight: 700;
  font-size: 14px; color: var(--slate);
  white-space: nowrap;
}
.filter-row {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.chip {
  font-size: 13px; font-weight: 600;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--white);
  cursor: pointer;
  transition: .2s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
}
.cinfo-item {
  display: grid; grid-template-columns: auto 1fr; gap: 16px;
  padding: 20px 0;
  border-bottom: 1px dashed var(--line);
}
.cinfo-item:last-child { border-bottom: 0; }
.cinfo-item .ci {
  width: 44px; height: 44px;
  background: var(--asphalt); border-radius: var(--r);
  display: grid; place-items: center;
}
.cinfo-item .cl {
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--slate);
}
.cinfo-item .cv { font-size: 18px; font-weight: 600; margin-top: 2px; }

form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label {
  font-size: 13px; font-weight: 700;
  letter-spacing: .04em;
}
.field input, .field textarea, .field select {
  font-family: var(--f-body); font-size: 15.5px;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  color: var(--ink);
  transition: border-color .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; border-color: var(--signal);
}
.field textarea { resize: vertical; min-height: 130px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13.5px; color: var(--slate);
}
.consent input { margin-top: 3px; }
.form-note {
  font-size: 13px; color: var(--slate);
  background: var(--paper-2);
  border-radius: var(--r);
  padding: 12px 14px;
}

/* map placeholder */
.mapfig {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--asphalt);
  min-height: 220px;
  position: relative;
}

/* CTA band */
.cta-band {
  background: var(--signal);
  color: var(--ink);
}
.cta-band .wrap {
  display: grid; grid-template-columns: 1fr auto;
  gap: 32px; align-items: center;
  padding: clamp(46px,6vw,76px) var(--gut);
}
.cta-band h2 { font-size: clamp(28px, 3.6vw, 46px); max-width: 16ch; }
.cta-band p { margin-top: 10px; max-width: 44ch; font-weight: 500; }

/* ---------- footer ---------- */
.site-foot {
  background: var(--asphalt); color: var(--paper);
  padding-top: 64px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 52px;
}
.foot-grid .brand { color: var(--paper); margin-bottom: 16px; }
.foot-grid .brand .ring { border-color: var(--paper); }
.foot-grid .brand span { color: var(--signal); }
.foot-about { color: #9AA0A7; font-size: 14.5px; max-width: 34ch; }
.foot-col h4 {
  font-family: var(--f-body); font-weight: 700;
  font-size: 12.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--signal);
  margin-bottom: 16px;
}
.foot-col a, .foot-col p {
  display: block; color: #B6BBC1; font-size: 14.5px;
  padding: 5px 0;
  transition: color .2s var(--ease);
}
.foot-col a:hover { color: var(--signal); }
.foot-bot {
  border-top: 1px solid var(--line-dk);
  padding: 22px 0;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: #8A9097;
}
.foot-bot a:hover { color: var(--signal); }

/* reveal on scroll */
.js .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 14px var(--gut) 24px;
    gap: 2px;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .nav-links.open a { padding: 13px 6px; font-size: 16px; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .grid, .grid.two { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(2) { border-right: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cta-band .wrap { grid-template-columns: 1fr; }
  .sec-head { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid, .grid.two, .stats { grid-template-columns: 1fr; }
  .stats div { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats div:last-child { border-bottom: 0; }
  .svc { grid-template-columns: 1fr; gap: 6px; }
  .svc .go { display: none; }
  .row-2 { grid-template-columns: 1fr; }
  .wiki-item { grid-template-columns: 1fr; gap: 10px; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero h1 .out { -webkit-text-stroke-width: 1.5px; }
}

/* ---------- focus + motion preferences ---------- */
:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}
.btn:focus-visible, .nav-cta:focus-visible, .chip:focus-visible { outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-intro > *, .hero-side { animation: none !important; }
}
