/*
Theme Name: Dan Orre – People & Growth
Version: 4.0
Text Domain: danorre
*/

/* ============================================================
   TOKENS & RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --charcoal:    #2d3436;
  --charcoal-80: rgba(45,52,54,0.8);
  --charcoal-10: rgba(45,52,54,0.06);
  --blue:        #0984e3;
  --blue-dark:   #0667b3;
  --blue-mid:    #0773c5;
  --blue-pale:   rgba(9,132,227,0.10);
  --blue-glow:   rgba(9,132,227,0.22);
  --slate:       #636e72;
  --light:       #f7f8fc;
  --white:       #ffffff;
  --border:      #e5e9f0;
  --border-dark: #d0d7e2;
  --font-head:   'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body:   'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm:   0 2px 8px rgba(45,52,54,0.08);
  --shadow-md:   0 8px 32px rgba(45,52,54,0.12);
  --shadow-lg:   0 20px 60px rgba(45,52,54,0.16);
  --shadow-blue: 0 8px 32px rgba(9,132,227,0.28);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0; z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 5rem;
  transition: all 0.4s var(--ease);
}
.site-nav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  padding: 1rem 5rem;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.3rem; font-weight: 800;
  letter-spacing: -0.01em; color: var(--white);
  transition: color 0.3s;
}
.site-nav.scrolled .nav-logo { color: var(--charcoal); }
.nav-logo span { color: var(--blue); }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}
.site-nav.scrolled .nav-links a { color: var(--slate); }
.nav-links a:hover { color: var(--blue) !important; }
.nav-cta-btn {
  padding: 0.6rem 1.4rem !important;
  background: var(--blue) !important;
  color: var(--white) !important;
  border-radius: 4px;
  font-weight: 700 !important;
  transition: background 0.2s, box-shadow 0.2s !important;
}
.nav-cta-btn:hover {
  background: var(--blue-dark) !important;
  box-shadow: var(--shadow-blue) !important;
  color: var(--white) !important;
}

/* ============================================================
   HERO  — full bleed, background more visible
   ============================================================ */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-bg-image {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover;
  background-position: center top;
  filter: brightness(0.55) saturate(0.7);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(45,52,54,0.88) 0%,
    rgba(45,52,54,0.55) 55%,
    rgba(9,132,227,0.20) 100%
  );
}
/* Diagonal blue accent stripe across bottom of hero */
.hero-diagonal {
  position: absolute;
  bottom: 0; left: 0; right: 0; z-index: 2;
  line-height: 0;
}
.hero-diagonal svg { display: block; width: 100%; }

.hero-content {
  position: relative; z-index: 3;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 5rem;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 9rem 5rem 8rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center; gap: 0.6rem;
  padding: 0.45rem 1rem;
  background: rgba(9,132,227,0.18);
  border: 1px solid rgba(9,132,227,0.4);
  border-radius: 100px;
  margin-bottom: 2rem; width: fit-content;
}
.hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%; background: var(--blue);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.5; transform:scale(1.3); }
}
.hero-badge span {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue);
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 4.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.08; letter-spacing: -0.02em;
  color: var(--white); margin-bottom: 1.5rem;
}
.hero-title .accent { color: var(--blue); }
.hero-sub {
  font-size: 1.1rem; color: rgba(255,255,255,0.78);
  line-height: 1.8; max-width: 520px; margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.5rem; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1rem 2rem;
  background: var(--blue); color: var(--white);
  font-family: var(--font-head); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.04em; border-radius: 4px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px); box-shadow: var(--shadow-blue);
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1rem 2rem;
  border: 1.5px solid rgba(255,255,255,0.35);
  color: var(--white);
  font-family: var(--font-head); font-size: 0.85rem; font-weight: 600;
  border-radius: 4px;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.10); }

.hero-kpi-row {
  display: flex; gap: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-kpi-num {
  font-family: var(--font-head);
  font-size: 2.2rem; font-weight: 800;
  color: var(--white); line-height: 1;
}
.hero-kpi-num sup { font-size: 1.1rem; color: var(--blue); }
.hero-kpi-label {
  font-size: 0.72rem; color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em; margin-top: 0.3rem; text-transform: uppercase;
}

/* Dan photo panel in hero */
.hero-photo-panel {
  position: relative;
  align-self: flex-end;
}
.hero-photo-frame {
  border-radius: 12px 12px 12px 12px;
  overflow: hidden;
  box-shadow: 0 -10px 60px rgba(0,0,0,0.4);
  border: 2px solid rgba(255,255,255,0.1);

  background: var(--blue-dark);
}
.hero-photo-frame img {
  width: 100%; height: auto;
  display: block;
  object-fit: cover;
  object-position: center top;
  max-height: 500px;
}
.hero-photo-badge {
  position: absolute;
  top: 1.5rem; left: -1.5rem;
  background: var(--blue);
  border-radius: 10px;
  padding: 0.8rem 1.1rem;
  box-shadow: var(--shadow-blue);
  text-align: center;
}
.hpb-num {
  font-family: var(--font-head);
  font-size: 1.4rem; font-weight: 800; color: var(--white); line-height: 1;
}
.hpb-label {
  font-size: 0.62rem; color: rgba(255,255,255,0.8);
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* ============================================================
   DIAGONAL DIVIDERS  (blue ↔ white transitions)
   ============================================================ */
.divider-diagonal-down {
  line-height: 0; background: var(--charcoal);
}
.divider-diagonal-down svg { display: block; width: 100%; }

.divider-diagonal-up {
  line-height: 0; background: var(--white);
}
.divider-diagonal-up svg { display: block; width: 100%; }

.divider-wave {
  line-height: 0;
}
.divider-wave svg { display: block; width: 100%; }

/* ============================================================
   SECTION FRAMEWORK
   ============================================================ */
.section {
  padding: 6rem 5rem;
  max-width: 1200px; margin: 0 auto;
}
.section-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 0.85rem;
}
.section-label::before {
  content: ''; display: block;
  width: 24px; height: 2px; background: var(--blue); border-radius: 2px;
}
.section-heading {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.1;
  color: var(--charcoal); margin-bottom: 1rem;
}
.section-heading .accent { color: var(--blue); }
.section-sub {
  font-size: 1.05rem; color: var(--slate);
  line-height: 1.75; max-width: 600px; margin-bottom: 3.5rem;
}
.plain-divider { height: 1px; background: var(--border); }

/* ============================================================
   LOGOS STRIP
   ============================================================ */
.logos-strip {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.logos-strip-inner {
  padding: 3rem 5rem;
  max-width: 1200px; margin: 0 auto;
}
.logos-label {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--slate); text-align: center; margin-bottom: 2rem;
}
.logos-row {
  display: flex; align-items: center;
  justify-content: center; flex-wrap: wrap; gap: 3rem;
}
.logo-item {
  display: flex; align-items: center; gap: 0.5rem;
  opacity: 0.45; transition: opacity 0.25s; cursor: default;
}
.logo-item:hover { opacity: 0.95; }
.logo-item img {
  height: 28px; width: auto; max-width: 100px;
  object-fit: contain; filter: grayscale(100%);
}
.logo-item-name {
  font-family: var(--font-head);
  font-size: 1.05rem; font-weight: 800;
  letter-spacing: -0.01em; color: var(--charcoal);
}

/* ============================================================
   ABOUT  (light bg, diagonal top from hero)
   ============================================================ */
.about-bg { background: var(--light); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.about-img-wrap {
  position: relative; padding-bottom: 3rem;
}
.about-img-frame {
  border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
}
.about-img-frame img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
}
.about-accent-card {
  position: absolute;
  bottom: 2.5rem; right: -1.5rem;
  background: var(--blue); color: var(--white);
  border-radius: 12px; padding: 1.4rem 1.8rem;
  box-shadow: var(--shadow-blue);
}
.aac-num {
  font-family: var(--font-head);
  font-size: 2rem; font-weight: 800; line-height: 1;
}
.aac-label { font-size: 0.78rem; opacity: 0.85; margin-top: 0.2rem; }

.about-text p {
  font-size: 1rem; color: var(--slate);
  line-height: 1.85; margin-bottom: 1.2rem;
}
.about-text strong { color: var(--charcoal); font-weight: 600; }

/* HR Sverige badge inline with text */
.hr-award-row {
  display: flex; align-items: center; gap: 1.2rem;
  padding: 1.2rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  margin-top: 1.5rem;
}
.hr-award-badge {
  width: 72px; height: auto; flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12));
}
.hr-award-text {
  font-size: 0.88rem; color: var(--charcoal); line-height: 1.55;
}
.hr-award-text strong { color: var(--blue); }

.about-highlight {
  display: flex; gap: 1rem;
  padding: 1.4rem 1.8rem;
  background: var(--white);
  border-left: 4px solid var(--blue);
  border-radius: 0 8px 8px 0;
  box-shadow: var(--shadow-sm); margin-top: 1.5rem;
}
.ah-icon { font-size: 1.4rem; flex-shrink: 0; padding-top: 0.1rem; }
.ah-text {
  font-size: 0.95rem; color: var(--charcoal);
  line-height: 1.65; font-style: italic;
}

/* ============================================================
   TA STACK  (white bg)
   ============================================================ */
.stack-section-bg { background: var(--white); }
.stack-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
.stack-card {
  padding: 2.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
  position: relative; overflow: hidden;
}
.stack-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-mid));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.stack-card:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-md);
  border-color: rgba(9,132,227,0.2);
}
.stack-card:hover::after { transform: scaleX(1); }
.stack-icon-wrap {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--blue-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1.5rem;
}
.stack-title {
  font-family: var(--font-head); font-size: 1.15rem;
  font-weight: 700; color: var(--charcoal); margin-bottom: 0.6rem;
}
.stack-desc {
  font-size: 0.92rem; color: var(--slate); line-height: 1.75; margin-bottom: 1.2rem;
}
.stack-list { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.stack-list li {
  font-size: 0.82rem; color: var(--charcoal);
  display: flex; align-items: center; gap: 0.5rem;
}
.stack-list li::before {
  content: ''; display: block;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue); flex-shrink: 0;
}

/* ============================================================
   AI SECTION  (dark bg with diagonal cuts top + bottom)
   ============================================================ */
.ai-bg {
  background: linear-gradient(135deg, #1e272e 0%, var(--charcoal) 50%, #1e272e 100%);
  position: relative; overflow: hidden;
}
.ai-bg::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(9,132,227,0.10) 0%, transparent 65%);
  pointer-events: none;
}
.ai-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: start;
}
.ai-heading {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800; color: var(--white);
  letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 1.5rem;
}
.ai-heading .accent { color: var(--blue); }
.ai-body {
  font-size: 0.98rem; color: rgba(255,255,255,0.68);
  line-height: 1.85; margin-bottom: 1rem;
}
/* Human + AI highlight bar */
.ai-human-bar {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: rgba(9,132,227,0.12);
  border: 1px solid rgba(9,132,227,0.3);
  border-radius: 8px; margin-top: 1.5rem;
}
.ai-human-icon { font-size: 1.6rem; flex-shrink: 0; }
.ai-human-text {
  font-size: 0.9rem; color: var(--white);
  line-height: 1.6;
}
.ai-human-text strong { color: var(--blue); }

.ai-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ai-card {
  padding: 1.4rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  transition: background 0.3s, border-color 0.3s;
}
.ai-card:hover {
  background: rgba(9,132,227,0.10);
  border-color: rgba(9,132,227,0.35);
}
.ai-card-icon { font-size: 1.4rem; margin-bottom: 0.7rem; }
.ai-card h4 {
  font-family: var(--font-head); font-size: 0.9rem;
  font-weight: 700; color: var(--white); margin-bottom: 0.4rem;
}
.ai-card p { font-size: 0.82rem; color: rgba(255,255,255,0.52); line-height: 1.65; }

/* ============================================================
   EXPERIENCE & EDUCATION  (light bg)
   ============================================================ */
.exp-bg { background: var(--light); }
.timeline-tabs {
  display: flex; gap: 0.5rem;
  margin-bottom: 3rem;
  border-bottom: 2px solid var(--border); padding-bottom: 0;
}
.tab-btn {
  padding: 0.7rem 1.5rem;
  font-family: var(--font-head); font-size: 0.8rem;
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--slate); border: none; background: none; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute; left: 0; top: 4px; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--blue) 0%, var(--border) 100%);
}
.tl-item {
  display: grid; grid-template-columns: 110px 1fr;
  gap: 2.5rem; padding: 0 0 3rem 2.5rem; position: relative;
}
.tl-item::before {
  content: '';
  position: absolute; left: -5px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--blue);
  border: 3px solid var(--light);
  box-shadow: 0 0 0 2px var(--blue);
}
.tl-year {
  font-family: var(--font-head); font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--blue); padding-top: 0.2rem;
}
.tl-logo-wrap {
  margin-top: 0.75rem; height: 28px;
  display: flex; align-items: center;
}
.tl-logo {
  max-height: 28px; max-width: 90px;
  width: auto; object-fit: contain;
  filter: grayscale(100%); opacity: 0.5;
  transition: opacity 0.2s, filter 0.2s;
}
.tl-item:hover .tl-logo { opacity: 0.9; filter: grayscale(0%); }
.tl-logo-text {
  font-family: var(--font-head); font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.06em; color: var(--slate);
}
.tl-company {
  font-family: var(--font-head); font-size: 1.3rem;
  font-weight: 800; color: var(--charcoal); margin-bottom: 0.15rem;
}
.tl-role {
  font-size: 0.82rem; font-weight: 600; color: var(--blue);
  letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.75rem;
}
.tl-desc {
  font-size: 0.93rem; color: var(--slate);
  line-height: 1.75; max-width: 620px;
}
.tl-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.tl-tag {
  padding: 0.25rem 0.65rem;
  background: var(--charcoal-10); border: 1px solid var(--border);
  border-radius: 100px; font-size: 0.7rem; font-weight: 600; color: var(--charcoal);
}

/* Education cards */
.edu-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-top: 0.5rem;
}
.edu-card {
  padding: 2rem; background: var(--white);
  border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.edu-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-mid));
}
.edu-icon { font-size: 1.8rem; margin-bottom: 1rem; }
.edu-school {
  font-family: var(--font-head); font-size: 0.95rem;
  font-weight: 800; color: var(--charcoal); margin-bottom: 0.25rem;
}
.edu-degree { font-size: 0.82rem; color: var(--blue); font-weight: 600; margin-bottom: 0.2rem; }
.edu-field { font-size: 0.8rem; color: var(--slate); }
.edu-year {
  margin-top: 0.8rem; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate);
}

/* ============================================================
   CONTACT  (dark bg, Dan photo left + form right)
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.contact-photo-wrap { position: relative; }
.contact-photo {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  border: 2px solid rgba(255,255,255,0.08);
}
.contact-photo img {
  width: 100%; display: block;
  object-fit: cover; object-position: top;
}
.contact-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);   /* ← detta saknades */
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
}
.contact-item:hover {
  background: rgba(9,132,227,0.14);
  border-color: rgba(9,132,227,0.4);
  color: #fff;
}
.ci-icon {
  width: 38px; height: 38px;
  border-radius: 8px; background: #0984e3;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; flex-shrink: 0; color: #fff;
}
@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}
.contact-bg {
  background: linear-gradient(135deg, #1a1f24 0%, #2d3436 100%);
}
/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #141a1e; padding: 2rem 5rem;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-logo {
  font-family: var(--font-head); font-size: 1.1rem;
  font-weight: 800; color: rgba(255,255,255,0.6);
}
.footer-logo span { color: var(--blue); }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.3); }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; padding: 9rem 2.5rem 6rem; }
  .hero-photo-panel { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .edu-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 5rem 2.5rem; }
  .logos-strip-inner { padding: 2.5rem; }
}
@media (max-width: 640px) {
  .section { padding: 4rem 1.5rem; }
  .site-nav, .site-nav.scrolled { padding: 1.25rem 1.5rem; }
  .nav-links { display: none; }
  .logos-strip-inner { padding: 2rem 1.5rem; }
  .logos-row { gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .ai-cards { grid-template-columns: 1fr; }
  .hero-kpi-row { gap: 1.5rem; }
  .tl-item { grid-template-columns: 1fr; gap: 0.25rem; padding-left: 2rem; }
  .edu-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; gap: 0.75rem; text-align: center; }
  .timeline-tabs { overflow-x: auto; }
  .contact-photo { max-width: 100%; }
}
/* Kontaktsektion – mörk bakgrund */
#contact.contact-bg,
section#contact {
  background: linear-gradient(135deg, #1a1f24 0%, #2d3436 100%) !important;
}

/* Gör texten vit */
#contact .contact-heading,
#contact .contact-sub,
#contact .contact-item {
  color: rgba(255,255,255,0.85) !important;
}

/* Fixa ikonradernas bakgrund */
#contact .contact-item {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 8px !important;
  padding: 1rem 1.25rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  margin-bottom: 0.75rem;
  text-decoration: none;
}

#contact .contact-item:hover {
  background: rgba(9,132,227,0.15) !important;
  border-color: rgba(9,132,227,0.4) !important;
}

/* Badge-text */
#contact .cpb-num,
#contact .cpb-label {
  color: #fff !important;
}

/* 1. Ta bort "20+ År inom TA"-texten under fotot */
#contact .contact-photo-badge {
  display: none !important;
}

/* 2. Fixa rubrikfärgen – vit med blå accent */
#contact .contact-heading {
  color: #ffffff !important;
}
#contact .contact-heading .accent {
  color: #0984e3 !important;
}

/* 3. Fixa den vita/grå övergången ovanför kontaktsektionen */
#contact.contact-bg {
  margin-top: -2px;
}

/* Ta bort den vita SVG-diagonalen ovanför contact om den syns */
#contact ~ * svg[viewBox],
.divider-diagonal-up {
  display: none;
}