/* ================================================
   REAL OLD BEARDED LABS — style.css
   realoldbeardedlabs.se · robl.se
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Share+Tech+Mono&family=Crimson+Pro:ital,wght@0,300;0,400;1,300;1,400&display=swap');

:root {
  --copper:        #b5651d;
  --copper-bright: #d4813a;
  --copper-glow:   #e8a050;
  --copper-dim:    #6b3510;
  --ash:           #0e0b08;
  --smoke:         #1a1208;
  --iron:          #2a1f18;
  --bone:          #d8c4a8;
  --bone-dim:      rgba(216,196,168,0.65);
  --ember:         #d4500a;
  --font-title:    'Cinzel', serif;
  --font-mono:     'Share Tech Mono', monospace;
  --font-body:     'Crimson Pro', serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--ash);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.8;
  overflow-x: hidden;
}

/* ── GRAIN ── */
.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 900; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: rgba(14,11,8,0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(181,101,29,0.15);
}

.nav-logo {
  font-family: var(--font-title);
  font-size: 13px; font-weight: 700;
  letter-spacing: 4px; color: var(--copper-bright);
  text-decoration: none; text-transform: uppercase;
}

.nav-links {
  display: flex; gap: 36px; list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 3px;
  color: var(--bone-dim); text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--copper-bright); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  padding: 120px 32px 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  /* The real background image */
  background-image: url('../img/robl_bakgrunn.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* Fade layers on top of image:
   - dark vignette on sides
   - strong fade to page color at bottom
   - slight dark overlay so text pops */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    /* Mørk oval rett bak teksten i midten */
    radial-gradient(ellipse 60% 40% at 50% 70%,
      rgba(14,11,8,0.82) 0%,
      rgba(14,11,8,0.50) 50%,
      transparent 100%
    ),
    /* Bottom fade — blends into page */
    linear-gradient(to bottom,
      rgba(14,11,8,0.10) 0%,
      rgba(14,11,8,0.15) 40%,
      rgba(14,11,8,0.70) 72%,
      rgba(14,11,8,1.00) 100%
    ),
    /* Side vignettes */
    radial-gradient(ellipse 80% 100% at 50% 50%,
      transparent 50%,
      rgba(14,11,8,0.55) 100%
    );
}

/* Subtle plate lines — keep the industrial feel */
.hero-plates {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    1deg,
    transparent 0px, transparent 34px,
    rgba(181,101,29,0.025) 34px, rgba(181,101,29,0.025) 36px
  );
  /* Only show in lower half where image fades out */
  mask-image: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; gap: 0;
}

/* Seal / logo image */
.hero-seal {
  width: 220px; height: 220px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 32px;
  filter: drop-shadow(0 0 40px rgba(181,101,29,0.5));
  animation: sealFadeIn 1.6s ease both;
}

.hero-wordmark {
  font-family: var(--font-title);
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 900; letter-spacing: 6px;
  color: var(--copper-bright);
  text-align: center;
  text-shadow: 0 0 60px rgba(181,101,29,0.4);
  animation: fadeUp 1.4s ease both 0.2s;
}

.hero-sub {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 5px;
  color: var(--copper); opacity: 0.65;
  text-transform: uppercase; margin-top: 8px;
  animation: fadeUp 1.4s ease both 0.4s;
}

.divider {
  width: 160px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
  margin: 28px auto;
  animation: fadeUp 1.4s ease both 0.6s;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(16px, 2.2vw, 22px);
  font-style: italic; font-weight: 300;
  color: var(--bone); opacity: 0.85;
  text-align: center; max-width: 540px;
  line-height: 1.7;
  animation: fadeUp 1.4s ease both 0.8s;
}

/* Spark dots */
.sparks { position: absolute; bottom: 120px; right: 12%; pointer-events: none; }
.spark {
  position: absolute; width: 3px; height: 3px;
  background: var(--ember); border-radius: 50%;
  animation: sparkFly var(--d,1.8s) ease-out var(--del,0s) infinite;
  opacity: 0;
}

/* ── HERO TRINITY ── */
.hero-trinity {
  display: flex; align-items: center; gap: 16px;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--bone); opacity: 0.75;
  animation: fadeUp 1.4s ease both 1.2s;
}
.trinity-dot { color: var(--copper); font-size: 18px; opacity: 0.7; }

/* ── PILLARS BAR ── */
.pillars {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4,1fr);
  border: 1px solid rgba(181,101,29,0.2);
  background: rgba(181,101,29,0.08);
  max-width: 640px; width: 100%;
  margin-top: 48px;
  animation: fadeUp 1.4s ease both 1s;
}

.pillar {
  background: var(--ash);
  padding: 20px 12px;
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center; gap: 7px;
  border-right: 1px solid rgba(181,101,29,0.12);
  position: relative; overflow: hidden;
  transition: background 0.3s;
}

.pillar:last-child { border-right: none; }
.pillar:hover { background: rgba(181,101,29,0.07); }

.pillar::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.pillar:hover::before { opacity: 1; }

.pillar-icon { font-size: 20px; color: var(--copper); }
.pillar-label {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 2px;
  color: var(--bone-dim); text-transform: uppercase;
}

/* ── SECTIONS SHARED ── */
section { padding: 96px 32px; }

.section-inner { max-width: 760px; margin: 0 auto; }

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 4px;
  color: var(--copper); opacity: 0.65;
  text-transform: uppercase; margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700; color: var(--copper-bright);
  margin-bottom: 24px; line-height: 1.3;
}

.section-body {
  font-size: 18px; font-weight: 300; font-style: italic;
  line-height: 1.85; color: var(--bone); opacity: 0.85;
  margin-bottom: 16px;
}

/* ── ABOUT ── */
.about {
  background: var(--smoke);
  border-top: 1px solid rgba(181,101,29,0.12);
  border-bottom: 1px solid rgba(181,101,29,0.12);
}

/* ── SERVICES ── */
.services-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(181,101,29,0.1);
  border: 1px solid rgba(181,101,29,0.15);
  margin-top: 40px;
}

.service-card {
  background: var(--ash);
  padding: 32px 28px;
  transition: background 0.3s;
}

.service-card:hover { background: rgba(181,101,29,0.05); }

.service-num {
  font-family: var(--font-mono);
  font-size: 10px; color: var(--copper); opacity: 0.5;
  letter-spacing: 2px; margin-bottom: 12px;
}

.service-title {
  font-family: var(--font-title);
  font-size: 15px; font-weight: 700;
  color: var(--copper-bright);
  letter-spacing: 1px; margin-bottom: 10px;
}

.service-desc {
  font-size: 16px; font-style: italic; font-weight: 300;
  color: var(--bone); opacity: 0.72; line-height: 1.7;
}

/* ── QUOTE / IDENTITY ── */
.identity {
  background: var(--smoke);
  border-top: 1px solid rgba(181,101,29,0.12);
  border-bottom: 1px solid rgba(181,101,29,0.12);
  text-align: center;
}

.identity blockquote {
  font-family: var(--font-body);
  font-size: clamp(18px, 2.5vw, 26px);
  font-style: italic; font-weight: 300;
  color: var(--bone); line-height: 1.7;
  max-width: 580px; margin: 0 auto 20px;
  opacity: 0.9;
}

.identity cite {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 3px;
  color: var(--copper); opacity: 0.65;
  text-transform: uppercase;
}

.ember-dot {
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--ember); border-radius: 50%;
  margin: 0 10px; vertical-align: middle;
  animation: pulse 2.4s ease-in-out infinite;
}

/* ── CONTACT ── */
.contact { text-align: center; }

.contact-domains {
  display: flex; gap: 16px; flex-wrap: wrap;
  justify-content: center; margin-top: 32px;
}

.domain-pill {
  border: 1px solid rgba(181,101,29,0.3);
  background: rgba(181,101,29,0.05);
  padding: 14px 32px;
  font-family: var(--font-title);
  font-size: 14px; font-weight: 700;
  color: var(--copper-bright);
  letter-spacing: 1px;
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s;
}

.domain-pill:hover {
  background: rgba(181,101,29,0.12);
  border-color: rgba(181,101,29,0.6);
}

/* ── FOOTER ── */
footer {
  padding: 40px 32px;
  text-align: center;
  border-top: 1px solid rgba(181,101,29,0.12);
}

.footer-logo {
  font-family: var(--font-title);
  font-size: 14px; font-weight: 700;
  letter-spacing: 4px; color: var(--copper);
  margin-bottom: 16px;
}

.footer-org {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 8px;
  margin-bottom: 12px;
}

.org-item {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 2px;
  color: var(--bone-dim); opacity: 0.6;
  text-transform: uppercase;
}

.org-sep {
  color: rgba(181,101,29,0.3);
  font-size: 14px;
}

.org-badge {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 2px;
  color: var(--copper-bright);
  border: 1px solid rgba(181,101,29,0.35);
  padding: 3px 10px;
  text-transform: uppercase;
  opacity: 0.85;
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 2px;
  color: var(--bone-dim); opacity: 0.35;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-paw {
  font-size: 16px; opacity: 0.25;
  display: inline-block;
  cursor: default;
}

.linkedin-link {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 3px;
  color: var(--copper); opacity: 0.65;
  text-decoration: none; text-transform: uppercase;
  border-bottom: 1px solid rgba(181,101,29,0.25);
  padding-bottom: 2px;
  transition: opacity 0.3s, border-color 0.3s;
}

.linkedin-link:hover {
  opacity: 1;
  border-color: rgba(181,101,29,0.7);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes sealFadeIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes sparkFly {
  0%   { opacity: 1; transform: translate(0,0) scale(1); }
  100% { opacity: 0; transform: translate(var(--tx,20px), var(--ty,-50px)) scale(0); }
}

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.3; transform: scale(0.6); }
}

/* ── SCROLL TO TOP ── */
#toTop {
  position: fixed; bottom: 32px; right: 32px; z-index: 800;
  width: 44px; height: 44px;
  background: rgba(14,11,8,0.85);
  border: 1px solid rgba(181,101,29,0.4);
  color: var(--copper-bright);
  font-size: 18px; cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s, border-color 0.3s;
}
#toTop.visible { opacity: 1; pointer-events: all; }
#toTop:hover { border-color: var(--copper-bright); }
@media (max-width: 640px) {
  nav { padding: 16px 24px; }
  .nav-links { gap: 20px; }
  .pillars { grid-template-columns: repeat(2,1fr); }
  .services-grid { grid-template-columns: 1fr; }
  section { padding: 64px 20px; }
}
