/* =========================================================
   Nordvik Anlegg — Om oss (egen stil, bygger på styles.css)
   Lastes ETTER styles.css, så design-tokens (--orange osv.)
   er allerede tilgjengelige.
   ========================================================= */

/* ---------- Seksjonsrytme ---------- */
.about-section { padding: clamp(56px, 7vw, 100px) 0; }
.about-section--alt { background: var(--bg); }

.about-section .section-head { margin-bottom: clamp(32px, 4vw, 48px); }

/* ---------- MASTHEAD (mørk bilde-header) ---------- */
.about-masthead {
  position: relative;
  background: #141414;
  color: #fff;
  overflow: hidden;
}
.about-masthead__img {
  position: absolute; inset: 0;
  background-image: url('../images/anleggsbilde-nettside.png');
  background-size: cover;
  background-position: center;
}
.about-masthead__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    90deg,
    rgba(15, 15, 15, .94) 0%,
    rgba(15, 15, 15, .80) 42%,
    rgba(15, 15, 15, .40) 75%,
    rgba(15, 15, 15, .25) 100%
  );
}
.about-masthead .container {
  position: relative;
  z-index: 1;
  min-height: clamp(360px, 48vh, 520px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 72px;
  padding-bottom: 72px;
}
.about-masthead h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1;
  color: #fff;
  margin-bottom: 22px;
  max-width: 18ch;
}
.about-masthead .lead {
  color: rgba(255, 255, 255, .82);
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 56ch;
  margin: 0;
}

/* ---------- STORY-bilde ---------- */
.about-figure {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
}
.about-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Generisk to-kolonne (heading | innhold) ---------- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.about-split__intro p {
  color: var(--slate);
  line-height: 1.7;
  font-size: 1rem;
  margin: 18px 0 0;
}
.hist-intro {
  color: var(--slate);
  line-height: 1.7;
  font-size: 1rem;
  margin: 0;
  max-width: 38ch;
}

/* ---------- TIDSLINJE ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline__item {
  position: relative;
  padding: 0 0 34px 40px;
  border-left: 2px solid var(--line);
}
.timeline__item:last-child { padding-bottom: 4px; }
.timeline__item::before {
  content: '';
  position: absolute;
  left: -8px; top: 3px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 2px var(--orange);
}
.timeline__year {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: 6px;
}
.timeline__text {
  color: var(--slate);
  font-size: .96rem;
  line-height: 1.6;
  margin: 0;
}

/* ---------- MASKINPARK ---------- */
.machinery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.machine {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 28px 26px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.machine:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .15);
}
.machine__count {
  font-family: var(--font);
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
}
.machine__count span { color: var(--orange); }
.machine__name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 14px 0 8px;
}
.machine__desc {
  color: var(--slate);
  font-size: .9rem;
  line-height: 1.55;
  margin: 0;
}
.machinery-note {
  margin: 28px 0 0;
  color: var(--slate);
  font-size: .94rem;
}
.machinery-note strong { color: var(--ink); font-weight: 700; }

/* ---------- RESPONSIV ---------- */
@media (max-width: 920px) {
  .about-figure { aspect-ratio: 16 / 10; }
  .about-split { grid-template-columns: 1fr; gap: 28px; }
  .machinery-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .about-masthead .container { padding-top: 48px; padding-bottom: 48px; min-height: 0; }
  .about-masthead h1 { max-width: 100%; }
  .machinery-grid { grid-template-columns: 1fr; gap: 14px; }
  .timeline__item { padding-left: 30px; }
}

/* ---------- BREADCRUMB (i masthead) ---------- */
.crumbs {
  display: flex; align-items: center; gap: 10px;
  font-size: .76rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.crumbs a { color: rgba(255, 255, 255, .6); }
.crumbs a:hover { color: #fff; }
.crumbs__here { color: rgba(255, 255, 255, .92); }
.crumbs__sep { color: rgba(255, 255, 255, .35); }

/* ---------- ETHOS / SITAT-BÅND ---------- */
.ethos {
  background: var(--paper);
  padding: clamp(52px, 7vw, 100px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ethos__inner { max-width: 1000px; }
.ethos__mark {
  font-family: var(--font); font-weight: 900;
  font-size: 3.6rem; line-height: .5;
  color: var(--orange); margin-bottom: 22px;
}
.ethos__quote {
  font-family: var(--font); font-weight: 800;
  font-size: clamp(1.55rem, 3.2vw, 2.6rem);
  letter-spacing: -.025em; line-height: 1.22;
  color: var(--ink); margin: 0;
}
.ethos__by {
  margin: 24px 0 0;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--slate);
}

/* ---------- REVEAL-ANIMASJONER ---------- */
.reveal,
.reveal-stagger > * {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible,
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}