/* ─────────────────────────────────────────────
   Farger: endre --aksent for å bytte hovedfarge.
   TV-siden og musikksiden har hver sin aksent nederst.
   ───────────────────────────────────────────── */
:root {
  --bg: #0b0b0d;
  --flate: #141417;
  --flate-2: #1c1c21;
  --linje: #2a2a31;
  --tekst: #f3f1ee;
  --dempet: #a19fa6;
  --aksent: #ff5a36;
  --aksent-tekst: #120804;
  --radius: 18px;
  --maks: 1120px;
  --font-tittel: "Bricolage Grotesque", system-ui, sans-serif;
  --font-tekst: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}
body[data-side="tv"] { --aksent: #ff3b30; --aksent-tekst: #fff; }
body[data-side="musikk"] { --aksent: #ffa23a; --aksent-tekst: #1a0d00; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--tekst);
  font-family: var(--font-tekst);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.wrap { width: 100%; max-width: var(--maks); margin: 0 auto; padding: 0 20px; }

/* ── Toppmeny ───────────────────────────── */
.topp {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px;
  background: linear-gradient(to bottom, rgba(11,11,13,.85), rgba(11,11,13,0));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
/* Logo: hvit logo med gjennomsiktig bakgrunn (img/logo.png) */
.topp .merke { display: block; line-height: 0; }
.topp .merke img { height: 34px; width: auto; opacity: .92; }
.bytt {
  display: flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
}
.bytt a {
  text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px; color: var(--dempet);
}
.bytt a[aria-current="page"] { background: var(--aksent); color: var(--aksent-tekst); }

/* ── Forside: delt i to ─────────────────── */
.forside { min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.del {
  position: relative; overflow: hidden; text-decoration: none; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 40px clamp(20px, 4vw, 56px) 56px;
}
.del img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .6s; filter: saturate(.85) brightness(.7); }
.del::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.92) 8%, rgba(0,0,0,.1) 60%); }
.del > *:not(img) { position: relative; z-index: 1; }
.del:hover img { transform: scale(1.04); filter: saturate(1) brightness(.85); }
.del h2 { font-family: var(--font-tittel); font-size: clamp(44px, 7vw, 96px); line-height: .92; letter-spacing: -.04em; font-weight: 800; margin: 10px 0 14px; }
.del p { color: #d6d3d0; max-width: 34ch; }
.del .pil { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.del .pil span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--a); color: var(--at); transition: transform .3s; }
.del:hover .pil span { transform: translateX(6px); }
.del.tv { --a: #ff3b30; --at: #fff; }
.del.musikk { --a: #ffa23a; --at: #1a0d00; }
.del .mono { color: var(--a); }
.prikk { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--a, var(--aksent)); margin-right: 8px; vertical-align: 1px; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }

.midt {
  position: absolute; left: 50%; top: 92px; transform: translateX(-50%); z-index: 5;
  text-align: center; pointer-events: none; width: max-content; max-width: 92vw;
  text-shadow: 0 2px 18px rgba(0,0,0,.8);
}
.midt p { color: #d6d3d0 !important; }
.midt img { width: 108px; height: 108px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 3px solid var(--bg); box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 20px 40px rgba(0,0,0,.5); }
.midt h1 { font-family: var(--font-tittel); font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; line-height: 1.05; }
.midt p { color: var(--dempet); font-size: 15px; }

/* ── Undersider: hero ───────────────────── */
.hero { position: relative; min-height: 92svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; filter: brightness(.6) saturate(.9); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 4%, rgba(11,11,13,.2) 55%, rgba(11,11,13,.5)); }
@media (min-width: 821px) {
  .hero > img { left: auto; width: min(56%, 760px); filter: brightness(.85) saturate(.95);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 45%); mask-image: linear-gradient(to right, transparent, #000 45%); }
  .hero::after { background: linear-gradient(to top, var(--bg) 2%, transparent 30%); }
}
.hero .wrap { position: relative; z-index: 1; padding-bottom: 48px; }
.hero .mono { color: var(--aksent); }
.hero h1 { font-family: var(--font-tittel); font-weight: 800; font-size: clamp(48px, 10vw, 128px); line-height: .9; letter-spacing: -.045em; margin: 14px 0 18px; max-width: 12ch; }
.hero .ingress { font-size: clamp(17px, 2vw, 20px); color: #dcd9d5; max-width: 52ch; }
.person { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.person img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--aksent); }
.person b { display: block; line-height: 1.2; }
.person small { color: var(--dempet); }

/* ── Knapper ────────────────────────────── */
.knapper { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.knapp {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1px solid var(--linje); background: rgba(255,255,255,.06); color: var(--tekst);
  cursor: pointer; font-family: inherit; transition: background .2s, transform .2s;
}
.knapp:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }
.knapp.hoved { background: var(--aksent); color: var(--aksent-tekst); border-color: transparent; }
.knapp.hoved:hover { filter: brightness(1.08); }
.knapp svg { width: 18px; height: 18px; flex: none; }

/* ── Seksjoner ──────────────────────────── */
section { padding: clamp(64px, 10vw, 120px) 0; }
.seksjon-topp { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.seksjon-topp h2 { font-family: var(--font-tittel); font-size: clamp(34px, 5vw, 60px); line-height: 1; letter-spacing: -.035em; font-weight: 700; max-width: 16ch; }
.seksjon-topp p { color: var(--dempet); max-width: 42ch; }
.seksjon-topp .mono { color: var(--aksent); display: block; margin-bottom: 12px; }

.tjenester { display: grid; grid-template-columns: repeat(var(--kol, 3), 1fr); gap: 1px; background: var(--linje); border: 1px solid var(--linje); border-radius: var(--radius); overflow: hidden; }
.tjeneste { background: var(--flate); padding: 28px 26px 30px; transition: background .25s; }
.tjeneste:hover { background: var(--flate-2); }
.tjeneste .nr { font-family: var(--font-mono); font-size: 12px; color: var(--aksent); }
.tjeneste h3 { font-family: var(--font-tittel); font-size: 24px; letter-spacing: -.02em; margin: 30px 0 8px; line-height: 1.15; }
.tjeneste p { color: var(--dempet); font-size: 15.5px; }

.delt { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.delt .bilde { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; }
.delt .bilde img { width: 100%; height: 100%; object-fit: cover; }
/* Viser hele bildet (f.eks. miksebordet) uten å kutte bunnen */
.delt .bilde.hele { aspect-ratio: 2/3; }
.delt .bilde.hele img { object-position: 50% 85%; }
.grunner { list-style: none; display: grid; gap: 26px; margin-top: 32px; }
.grunner li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.grunner .ikon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--aksent) 16%, transparent); color: var(--aksent); }
.grunner .ikon svg { width: 22px; height: 22px; }
.grunner b { display: block; font-size: 18px; margin-bottom: 2px; }
.grunner p { color: var(--dempet); font-size: 15.5px; }

.lopebånd { border-block: 1px solid var(--linje); padding: 18px 0; overflow: hidden; white-space: nowrap; }
.lopebånd div { display: inline-flex; gap: 40px; animation: rull 40s linear infinite; font-family: var(--font-tittel); font-size: clamp(22px, 3vw, 34px); font-weight: 700; letter-spacing: -.02em; }
.lopebånd span::after { content: "✦"; color: var(--aksent); margin-left: 40px; }
@keyframes rull { to { transform: translateX(-50%); } }

/* ── Skjema ─────────────────────────────── */
.kontakt { background: var(--flate); border: 1px solid var(--linje); border-radius: calc(var(--radius) + 6px); padding: clamp(24px, 5vw, 56px); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); }
.kontakt h2 { font-family: var(--font-tittel); font-size: clamp(32px, 4.4vw, 52px); line-height: 1; letter-spacing: -.035em; margin: 12px 0 16px; }
.kontakt .mono { color: var(--aksent); }
.kontakt > div > p { color: var(--dempet); }
.kontakt .knapper { margin-top: 24px; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--dempet); font-weight: 500; }
label.hel { grid-column: 1 / -1; }
input, select, textarea {
  font: inherit; font-size: 16px; color: var(--tekst); background: var(--bg); border: 1px solid var(--linje);
  border-radius: 12px; padding: 12px 14px; width: 100%; min-width: 0;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--aksent); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 120px; resize: vertical; }
form .knapp { grid-column: 1 / -1; justify-self: start; }

/* ── Bunn ───────────────────────────────── */
footer { border-top: 1px solid var(--linje); padding: 40px 0 56px; color: var(--dempet); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer b { color: var(--tekst); }
.annen { display: block; text-decoration: none; padding: clamp(40px, 7vw, 80px) 0; border-top: 1px solid var(--linje); }
.annen .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.annen h2 { font-family: var(--font-tittel); font-size: clamp(30px, 6vw, 72px); letter-spacing: -.04em; line-height: 1; }
.annen .mono { color: var(--dempet); display: block; margin-bottom: 10px; }
.annen .sirkel { flex: none; width: clamp(56px, 8vw, 88px); aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--linje); display: grid; place-items: center; font-size: 28px; transition: background .3s, color .3s; }
.annen:hover .sirkel { background: var(--annen); color: #111; border-color: transparent; }

.vis { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s cubic-bezier(.2,.7,.2,1); }
.vis.inn { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .vis { opacity: 1; transform: none; }
  .lopebånd div, .prikk { animation: none; }
}

/* ── Mobil ──────────────────────────────── */
@media (max-width: 960px) { .tjenester { --kol: 2 !important; } }
@media (max-width: 560px) { .tjenester { --kol: 1 !important; } }
@media (max-width: 820px) {
  .forside { grid-template-columns: 1fr; }
  .del { min-height: 62svh; padding-bottom: 36px; }
  .forside .del:first-of-type { padding-top: 300px; min-height: 92svh; }
  .midt { top: 76px; }
  .delt, .kontakt { grid-template-columns: 1fr; }
  .delt .bilde { aspect-ratio: 4/3; }
  .delt .bilde.hele { aspect-ratio: 4/5; }
  form { grid-template-columns: 1fr; }
  .topp .merke img { height: 30px; }
}
