:root {
  --cream: #F4ECE1;
  --cream-light: #F1E2C6;
  --navy: #0B1E33;
  --navy-deep: #071322;
  --gold: #C9A76B;
  --ink: #16181c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  font-family: 'Work Sans', sans-serif;
  color: var(--ink);
}

h1, h2, h3, .disp {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
}

a { color: inherit; text-decoration: none; }

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

.wrap { max-width: 1440px; margin: 0 auto; padding-left: 64px; padding-right: 64px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 30px; border-radius: 999px;
  font-family: 'Oswald', sans-serif; font-size: 15px; letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 600; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, background .3s ease, border-color .3s ease;
}
.btn-primary { background: var(--cream-light); color: var(--navy); }
.btn-primary:hover { background: #ffffff; transform: translateY(-3px); box-shadow: 0 16px 30px rgba(0,0,0,0.3); }
.btn-ghost { background: transparent; color: var(--cream-light); border-color: rgba(241,226,198,0.55); }
.btn-ghost:hover { background: rgba(241,226,198,0.12); border-color: var(--cream-light); transform: translateY(-3px); }

.eyebrow { font-family: 'Oswald', sans-serif; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; }

input, textarea { font-family: 'Work Sans', sans-serif; font-size: 16px; }
button { border: none; background: none; font-family: inherit; cursor: pointer; }

/* NAV */
.nav-wrap { position: sticky; top: 0; z-index: 20; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 64px; background: rgba(11,30,51,0.92); backdrop-filter: blur(6px);
}
.nav-logo { height: 38px; width: auto; object-fit: contain; }
.nav-links { position: absolute; top: 0; right: 64px; height: 100%; display: flex; align-items: center; gap: 40px; }
.nav-links a { color: var(--cream-light); font-size: 14px; letter-spacing: 0.03em; opacity: 0.85; }
.nav-links .btn-primary { color: var(--navy); opacity: 1; }
.nav-cta { padding: 11px 24px !important; font-size: 13px !important; }
.nav-toggle { display: none; }

/* HERO */
.hero {
  position: relative; width: 100%; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; background: var(--navy); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.hero-gradient { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(7,19,34,0.94) 20%, rgba(7,19,34,0.55) 65%, rgba(7,19,34,0.85) 100%); }
.hero-inner { position: relative; width: 100%; margin: 0 auto; padding: 180px 64px 100px; display: flex; flex-direction: column; gap: 28px; }
.hero-inner .eyebrow { color: var(--cream-light); opacity: 0.85; }
.hero-inner h1 { color: var(--cream-light); font-size: 78px; line-height: 0.98; font-weight: 700; max-width: 900px; }
.hero-inner p { color: #E7D9C2; font-size: 19px; line-height: 1.6; max-width: 560px; font-weight: 400; margin: 0; }
.hero-actions { display: flex; gap: 18px; margin-top: 14px; }
@supports (animation-timeline: scroll()) {
  .hero-inner { animation: heroScrollFade linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
}
@keyframes heroScrollFade { from { opacity: 1; transform: translateY(0); } to { opacity: 0.1; transform: translateY(-60px); } }

/* ARBEID / CASES */
.arbeid { width: 100%; background: radial-gradient(120% 60% at 50% -10%, #16324e 0%, #0B1E33 45%, #050d18 100%); }
.arbeid-inner { padding: 90px 64px 90px; }
.arbeid-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 12px; flex-wrap: wrap; }
.arbeid-head h2 { font-size: 44px; font-weight: 700; color: var(--cream-light); max-width: 620px; }
.arbeid-head p { max-width: 360px; color: #a9b3bd; font-size: 16px; line-height: 1.6; margin: 0; }

.case-feed { display: grid; grid-template-columns: 250px 250px; justify-content: center; column-gap: 200px; row-gap: 48px; padding: 24px 0 70px; }
.case-card { position: relative; width: 250px; cursor: pointer; opacity: 1; }
.case-card:nth-child(even) { margin-top: 70px; }
@supports (animation-timeline: view()) {
  .case-card { animation: caseReveal linear both; animation-timeline: view(); animation-range: entry 0% cover 42%; }
}
@keyframes caseReveal { from { opacity: 0; transform: translateY(80px) scale(0.93); } to { opacity: 1; transform: translateY(0) scale(1); } }
.case-fan { position: absolute; top: 0; left: 0; width: 250px; border-radius: 20px; opacity: 0; box-shadow: 0 28px 55px rgba(2,6,14,0.55); border: 1px solid rgba(201,167,107,0.3); background-size: cover; background-position: center; transition: opacity .55s cubic-bezier(.19,1,.22,1), transform .55s cubic-bezier(.19,1,.22,1); z-index: 1; display: flex; align-items: center; justify-content: center; }
.case-fan::after { content: ''; position: absolute; inset: 0; border-radius: 20px; background: rgba(3,8,16,0.4); }
.fan-play { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 999px; background: rgba(241,226,198,0.5); display: flex; align-items: center; justify-content: center; }
.fan-a { transform: rotate(-4deg) translate(0, 0) scale(0.94); }
.fan-b { transform: rotate(4deg) translate(0, 0) scale(0.94); }
.case-card:hover .fan-a { opacity: 1; transform: rotate(-11deg) translate(-125px, -10px) scale(0.97); }
.case-card:hover .fan-b { opacity: 1; transform: rotate(10deg) translate(125px, -8px) scale(0.97); }
.case-thumb { position: relative; width: 250px; border-radius: 20px; overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: 0 30px 60px rgba(2,6,14,0.55); border: 1px solid rgba(201,167,107,0.35); z-index: 2; transition: transform .55s cubic-bezier(.19,1,.22,1), box-shadow .55s ease; }
.case-card:hover .case-thumb { transform: translateY(-10px); box-shadow: 0 42px 75px rgba(2,6,14,0.6); }
.case-thumb::before { content: ''; position: absolute; inset: 0; z-index: 2; background: radial-gradient(120% 90% at 50% -10%, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 45%), radial-gradient(120% 70% at 50% 115%, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 55%); pointer-events: none; }
.case-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; opacity: 0; transform: scale(1.08); transition: opacity .5s ease, transform .7s cubic-bezier(.19,1,.22,1); }
.case-card:hover .case-video { opacity: 1; transform: scale(1); }
.case-index { position: absolute; top: 16px; left: 18px; z-index: 3; font-family: 'Oswald', sans-serif; font-size: 10.5px; letter-spacing: 0.16em; color: rgba(241,226,198,0.55); }
.case-logo-wrap { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.case-logo-mark { max-width: 82%; max-height: 160px; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 0 26px rgba(255,255,255,0.85)) drop-shadow(0 0 60px rgba(255,255,255,0.5)) drop-shadow(0 10px 20px rgba(0,0,0,0.45)); transition: transform .4s ease, filter .4s ease; }
.case-card:hover .case-logo-mark { transform: scale(1.08); filter: drop-shadow(0 0 34px rgba(255,255,255,1)) drop-shadow(0 0 76px rgba(255,255,255,0.65)) drop-shadow(0 10px 20px rgba(0,0,0,0.45)); }
.case-play { position: absolute; bottom: 14px; right: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 999px; background: rgba(241,226,198,0.95); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(0.7); transition: all .3s ease; padding: 0; }
.case-card:hover .case-play { opacity: 1; transform: scale(1); }
@media (hover: none) {
  .case-play { opacity: 1; transform: scale(1); }
}
.case-meta { position: relative; z-index: 2; padding-top: 10px; max-width: 250px; }
.case-meta h3 { font-size: 15px; margin-top: 0; color: var(--gold); letter-spacing: 0.005em; line-height: 1.3; font-weight: 600; text-transform: none; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 2.2em; }
.case-meta p { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: #a9b3bd; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.case-readmore { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-family: 'Oswald', sans-serif; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--cream-light); cursor: pointer; padding: 0; transition: gap .25s ease, color .25s ease; }
.case-readmore:hover { gap: 14px; color: var(--gold); }

/* MODAL */
.modal-backdrop { position: fixed; inset: 0; background: rgba(5,12,22,0.82); display: none; align-items: center; justify-content: center; z-index: 100; padding: 24px; }
.modal-backdrop.open { display: flex; }
.modal-card { background: var(--cream); border-radius: 24px; max-width: 540px; width: 100%; padding: 44px; position: relative; max-height: 88vh; overflow-y: auto; }
.modal-close { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; padding: 0; border-radius: 999px; background: var(--navy); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; }
.modal-logo { max-width: 440px; max-height: 152px; object-fit: contain; margin: 0 auto 22px; display: block; }
.modal-headline { font-size: 24px; font-weight: 600; text-transform: none; color: var(--navy); margin: 0 0 22px; line-height: 1.35; min-height: 2.7em; display: flex; align-items: center; }
.modal-video-wrap { width: 230px; margin: 0 auto 18px; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 20px 44px rgba(0,0,0,0.35); }
.modal-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-error-msg { color: #d9776a; font-size: 12.5px; text-align: center; margin: 8px 0 0; min-height: 1.4em; }
.reel-switcher { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.reel-thumb { padding: 9px 16px; border-radius: 999px; background: #e9ddc9; color: var(--navy); font-family: 'Oswald', sans-serif; font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; border: 1.5px solid transparent; transition: all .2s ease; }
.reel-thumb.active { background: var(--navy); color: var(--cream-light); }
.reel-thumb:hover { border-color: var(--gold); }
.modal-text { margin: 0; font-size: 15.5px; line-height: 1.7; color: #4a5560; }

/* I TILLEGG */
.tjenester { width: 100%; background: var(--cream); }
.tjenester-inner { padding: 80px 64px 90px; }
.tjenester .eyebrow { color: #8a6a2f; }
.tjenester-sub { margin: 10px 0 36px; font-size: 15px; color: #55606c; max-width: 480px; }
.addon-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.addon-item { background: #ffffff; border-radius: 16px; padding: 30px 26px; display: flex; align-items: flex-start; gap: 18px; transition: transform .3s ease; }
.addon-item:hover { transform: translateY(-4px); }
.addon-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 11px; background: var(--navy); display: flex; align-items: center; justify-content: center; }
.addon-item h3 { font-size: 19px; font-weight: 600; color: var(--navy); text-transform: none; }
.addon-item p { margin: 6px 0 0; font-size: 15px; color: #5b6570; line-height: 1.55; }

/* OM OSS */
.om-oss { width: 100%; background: var(--cream); border-top: 1px solid rgba(11,30,51,0.08); }
.om-oss-inner { padding: 60px 64px 70px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: center; }
.om-oss-text { display: flex; flex-direction: column; gap: 24px; }
.om-oss .eyebrow { color: #8a6a2f; }
.om-oss h2 { font-size: 40px; font-weight: 700; color: var(--navy); max-width: 540px; text-transform: none; line-height: 1.15; }
.om-oss p.lead { margin: 0; font-size: 17px; line-height: 1.7; color: #4a5560; max-width: 520px; }
.om-oss-cta { width: fit-content; background: var(--navy); color: var(--cream-light); }
.om-oss-partners-label { font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #8b8478; font-weight: 600; }
.om-oss-partners { display: flex; align-items: center; gap: 40px; margin-top: 18px; }
.om-oss-partners img { transition: transform .3s ease; object-fit: contain; }
.om-oss-partners img:hover { transform: translateY(-3px); }
.partner-pixelhospitalet { height: 84px; }
.partner-fotoetcetera { height: 118px; }
.om-oss-photo-wrap { position: relative; }
.om-oss-photo { width: 100%; height: 460px; object-fit: cover; object-position: center 25%; border-radius: 24px; }
.om-oss-caption { position: absolute; bottom: -22px; left: -22px; background: var(--navy); color: var(--cream-light); padding: 16px 24px; border-radius: 14px; }
.om-oss-caption p { margin: 0; }
.om-oss-caption .name { font-family: 'Oswald', sans-serif; font-size: 14px; letter-spacing: 0.04em; }
.om-oss-caption .role { font-size: 12.5px; color: #a9b3bd; }

/* PARTNERE MARQUEE */
.partners-marquee { width: 100%; overflow: hidden; background: var(--navy); padding: 68px 0; }
.partners-label { text-align: center; margin: 0 0 40px; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); font-weight: 600; }
.partners-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marqueeScroll 36s linear infinite; }
.partner-logo { display: flex; align-items: center; justify-content: center; background: #ffffff; border-radius: 18px; height: 96px; padding: 0 34px; box-sizing: border-box; box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.partner-logo img { height: 60px; width: auto; max-width: 190px; object-fit: contain; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* TESTIMONIAL */
.testimonial { width: 100%; background: var(--cream); }
.testimonial-inner { max-width: 820px; margin: 0 auto; padding: 20px 64px 110px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.testimonial-mark { font-family: 'Oswald', sans-serif; font-size: 90px; line-height: 1; color: var(--gold); opacity: 0.5; }
.testimonial-quote { margin: -20px 0 28px; font-family: 'Oswald', sans-serif; font-size: 26px; line-height: 1.45; font-weight: 500; color: var(--navy); max-width: 680px; text-transform: none; }
.testimonial-name { font-size: 14px; font-weight: 600; color: var(--navy); }
.testimonial-role { font-size: 13px; color: #8b8478; margin-top: 2px; }

/* KONTAKT */
.kontakt { width: 100%; background: var(--navy); }
.kontakt-inner { padding: 130px 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.kontakt-text { display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.kontakt .eyebrow { color: var(--gold); }
.kontakt h2 { font-size: 46px; font-weight: 700; color: var(--cream-light); }
.kontakt-text p { margin: 0; font-size: 17px; line-height: 1.7; color: #a9b3bd; max-width: 420px; }
.kontakt-contactinfo { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; font-size: 15px; color: var(--cream-light); }
.kontakt-form { background: var(--cream); border-radius: 24px; padding: 44px; display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--navy); letter-spacing: 0.03em; }
.form-field .optional { font-weight: 400; color: #8b8478; }
.form-field input, .form-field textarea { border: 1.5px solid #d9cdb9; border-radius: 10px; padding: 14px 16px; background: #ffffff; color: #16181c; }
.form-field textarea { resize: none; font-family: 'Work Sans', sans-serif; }
.kontakt-submit { margin-top: 8px; background: var(--navy); color: var(--cream-light); }
.kontakt-submit:hover { color: var(--navy); }
.form-status { font-size: 13.5px; margin: 0; min-height: 1.3em; }
.form-status.ok { color: #2f7d4f; }
.form-status.err { color: #d9776a; }

/* FOOTER */
.footer { width: 100%; background: var(--navy-deep); }
.footer-inner { padding: 48px 64px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 26px; height: 26px; object-fit: contain; }
.footer-brand span { color: var(--cream-light); font-family: 'Oswald', sans-serif; font-size: 14px; letter-spacing: 0.06em; }
.footer-copy { color: #6b7684; font-size: 13px; }

/* RESPONSIVE */
@media (max-width: 980px) {
  .wrap, .hero-inner, .arbeid-inner, .tjenester-inner, .om-oss-inner, .kontakt-inner, .footer-inner { padding-left: 22px; padding-right: 22px; }
  .nav { padding: 16px 20px; }
  .nav-links { position: fixed; inset: 64px 0 0 0; background: rgba(7,19,34,0.98); flex-direction: column; justify-content: flex-start; align-items: flex-start; padding: 32px 24px; gap: 26px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 18px; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ''; display: block; width: 22px; height: 2px; background: var(--cream-light); position: relative; }
  .nav-toggle span::before { position: absolute; top: -7px; }
  .nav-toggle span::after { position: absolute; top: 7px; }

  .hero { min-height: 100vh; min-height: 100svh; }
  .hero-inner { padding: 110px 22px 50px; gap: 18px; }
  .hero-inner h1 { font-size: 36px; line-height: 1.05; }
  .hero-inner p { font-size: 15px; max-width: 100%; }
  .hero-actions { flex-wrap: wrap; }

  .arbeid-inner { padding: 56px 0 44px; }
  .arbeid-inner .wrap-inner { padding: 0 22px; }
  .arbeid-head h2 { font-size: 26px; }
  .case-feed { grid-template-columns: 1fr; column-gap: 0; row-gap: 36px; padding: 24px 22px 50px; justify-items: center; }
  .case-card, .case-fan, .case-thumb { width: min(240px, 100%); }
  .case-card:nth-child(even) { margin-top: 0; }
  .case-card:hover .fan-a, .case-card:hover .fan-b { display: none; }

  .modal-card { padding: 28px; }

  .addon-grid { grid-template-columns: 1fr; }
  .tjenester-inner { padding: 56px 22px; }

  .om-oss-inner { grid-template-columns: 1fr; gap: 28px; padding: 56px 22px; }
  .om-oss-photo-wrap { order: -1; }
  .om-oss h2 { font-size: 28px; }
  .om-oss-photo { height: 300px; }
  .om-oss-partners { gap: 16px; flex-wrap: nowrap; }
  .partner-pixelhospitalet { height: 52px; }
  .partner-fotoetcetera { height: 74px; }

  .partners-marquee { padding: 44px 0; }
  .partners-label { margin-bottom: 24px; font-size: 11px; }
  .partners-track { gap: 22px; animation-duration: 26s; }
  .partner-logo { height: 66px; padding: 0 22px; }
  .partner-logo img { height: 40px; max-width: 130px; }

  .testimonial-inner { padding: 20px 22px 64px; }
  .testimonial-quote { font-size: 19px; }

  .kontakt-inner { grid-template-columns: 1fr; gap: 36px; padding: 64px 22px; }
  .kontakt h2 { font-size: 30px; }
  .kontakt-form { padding: 26px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-inner { padding: 32px 22px; flex-direction: column; align-items: flex-start; }
}
