/* ── Variabler ── */
:root {
  --bg:        #0d1b2a;
  --bg2:       #0a1520;
  --surface:   #112236;
  --surface2:  #152840;
  --border:    rgba(232, 208, 168, 0.12);
  --accent:    #e8d0a8;
  --accent2:   #a78bfa;
  --accent3:   #4f8ef7;
  --text:      #e8d0a8;
  --text-dim:  #b8a888;
  --muted:     #6b8fa8;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius:    14px;
  --nav-h:     68px;
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.75;
  min-height: 100vh;
}

/* ───────────────────────────
   NAV
─────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  background: rgba(10, 21, 32, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 0.2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover {
  color: var(--accent);
  background: rgba(232, 208, 168, 0.07);
}

/* ───────────────────────────
   HJEM
─────────────────────────── */
#home {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 5rem 6rem;
  gap: 5rem;
  overflow: hidden;
}

/* Subtle grid bakgrunn */
.home-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232,208,168,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,208,168,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.home-content {
  flex: 1;
  z-index: 1;
}

.home-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 2rem;
}

.home-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.0;
  color: var(--accent);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.home-title span {
  color: var(--text-dim);
}

.home-sub {
  max-width: 480px;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.home-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg2);
}

.btn-primary:hover {
  background: #f5e3bc;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,208,168,0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(232,208,168,0.07);
  transform: translateY(-2px);
}

/* Bilde høyre side */
.home-image-wrap {
  position: relative;
  flex-shrink: 0;
  z-index: 1;
}

.home-image-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse, rgba(167,139,250,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.home-img {
  width: 480px;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}

/* ───────────────────────────
   PROSJEKTET
─────────────────────────── */
#project {
  background: var(--bg2);
  min-height: 100vh;
  display: flex;
  align-items: center;
  scroll-margin-top: var(--nav-h);
}

.project-inner {
  display: flex;
  align-items: center;
  gap: 6rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 4rem;
  width: 100%;
}

.project-image-wrap {
  flex-shrink: 0;
  position: relative;
}

.project-img {
  width: 420px;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}

.project-img-label {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  background: rgba(10,21,32,0.85);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  text-align: center;
  padding: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.project-text { flex: 1; }

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.8rem;
}

.section-label.centered { text-align: center; }

.project-text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.project-text p {
  color: var(--muted);
  margin-bottom: 1.1rem;
  font-size: 0.98rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.tech-tags span {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
}

/* ───────────────────────────
   TEAMET
─────────────────────────── */
#team {
  min-height: 100vh;
  display: flex;
  align-items: center;
  scroll-margin-top: var(--nav-h);
}

.team-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 6rem 4rem;
  width: 100%;
}

.team-inner h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.centered { text-align: center; }

.team-sub {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 3.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.member-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.member-card:hover {
  border-color: rgba(232,208,168,0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.member-initials {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.member-name {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.member-role {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ───────────────────────────
   FOOTER / KONTAKT
─────────────────────────── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  scroll-margin-top: var(--nav-h);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 4rem 3rem;
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 4rem;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-heading {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.footer-contact ul,
.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-contact li,
.footer-nav li {
  font-size: 0.88rem;
  color: var(--muted);
}

.contact-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
  margin-bottom: 0.1rem;
}

.footer-contact a,
.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-contact a:hover,
.footer-nav a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 4rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}