/* =============================================================================
   UXMIKKO PORTFOLIO — CASE STUDY STYLES
   styles.css · Loaded by: basf/index.html, svebar/index.html, gensam/index.html, fass/index.html
   The homepage (index.html) has its own self-contained <style> block.

   HOW TO EDIT:
   · Change layout/components for all case studies → edit here
   · Change one case study's colour → open that page, edit the 3-line <style> block at top
   · Change the homepage → open index.html, edit its <style> block
   ============================================================================= */


/* =============================================================================
   1. DESIGN TOKENS
   To change a colour site-wide, edit it once here.
   Per-project accent colours live in a <style> block inside each case study HTML.
   ============================================================================= */
:root {
  /* Colour palette */
  --white:     #ffffff;
  --black:     #000000;
  --text-1:    rgb(25, 29, 33);       /* headings, primary text */
  --text-2:    rgb(63, 68, 74);       /* body copy */
  --text-3:    rgb(101, 116, 133);    /* muted / labels */
  --surface-1: rgb(249, 249, 249);    /* card backgrounds */
  --surface-2: rgb(240, 242, 244);    /* page-level surfaces */
  --border:    rgb(240, 240, 240);    /* dividers */

  /* Accent (overridden per case study — see each page's <style> block) */
  --accent:        rgb(43, 109, 119);
  --accent-bg:     rgba(43, 109, 119, 0.07);
  --accent-border: rgba(43, 109, 119, 0.2);

  /* Typography */
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Shadows */
  --shadow-card:
    0px 0.6px 1.8px -1.25px rgba(0,0,0,0.18),
    0px 2.3px  6.9px -2.5px  rgba(0,0,0,0.16),
    0px 10px   30px  -3.75px rgba(0,0,0,0.06);

  /* Per-project accent colours (homepage card categories + hero overrides) */
  --accent-basf:   rgb(0, 110, 148);
  --accent-svebar: rgb(43, 116, 148);
  --accent-gensam: rgb(45, 84, 146);
  --accent-fass:   rgb(11, 64, 94);
  --accent-ltn:    rgb(0, 96, 100);

  /* Token aliases used in homepage HTML inline styles */
  --color-text-secondary: var(--text-2);
}


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

html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  font-family: var(--font-body);
  color: var(--text-1);
  overflow-x: hidden;
}

a   { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul  { list-style: none; }


/* =============================================================================
   3. NAV — frosted glass, fixed
   To change: nav height, blur, or logo size → edit here.
   ============================================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 0 20px 20px;
  z-index: 99;
  animation: navSlide 0.6s cubic-bezier(0.22,1,0.36,1) both;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  padding: 8px 48px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom-left-radius:  24px;
  border-bottom-right-radius: 24px;
  box-shadow:
    0px 0.6px 1.3px -1.5px rgba(0,0,0,0.19),
    0px 2.3px 5px   -3px   rgba(0,0,0,0.16),
    0px 10px  22px  -4.5px rgba(0,0,0,0.02);
  will-change: transform;
  transform: translateZ(0);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-1);
}

.nav-logo-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--text-1);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-link {
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  display: flex; align-items: center;
  font-size: 14px; font-weight: 500;
  color: var(--text-1);
  transition: background 0.15s;
}

.nav-link:hover { background: rgba(25,29,33,0.06); }

.nav-link-cta {
  background: var(--text-1);
  color: white;
  border-radius: 8px;
}

.nav-link-cta:hover { opacity: 0.85; background: var(--text-1); }

/* Back arrow link used in case study pages */
.nav-back {
  display: flex; align-items: center; gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 14px; font-weight: 500;
  color: var(--text-2);
  transition: background 0.15s, color 0.15s;
}
.nav-back:hover {
  color: var(--text-1);
  background: rgba(25, 29, 33, 0.06);
}

.nav-back:hover { color: var(--text-1); }

/* Homepage-only nav links (hidden on case study pages) */
.nav-home-only { display: flex; gap: 8px; align-items: center; }


/* =============================================================================
   4. PAGE WRAPPER
   ============================================================================= */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}


/* =============================================================================
   5. HERO — case study hero card
   The homepage has its own hero — see section 11 below.
   To change hero card shape or gradient: edit .hero-card
   ============================================================================= */
.hero {
  width: 100%;
  padding: 104px 10px 10px;
  background: white;
  animation: fadeUp 0.7s 0.1s cubic-bezier(0.22,1,0.36,1) both;
}

/* Gradient tint set per page via inline style on .hero-card */
.hero-card {
  border-radius: 48px;
  padding: 120px 60px;
  display: flex; flex-direction: column; gap: 72px;
  overflow: hidden;
}

.hero-top {
  display: flex; flex-direction: row; flex-wrap: wrap;
  gap: 48px; align-items: flex-start;
}

.hero-text {
  flex: 1; min-width: 280px; max-width: 560px;
  display: flex; flex-direction: column; gap: 36px;
}

.hero-labels {
  display: flex; flex-direction: column; gap: 16px;
}

.label-category {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700; line-height: 1.15em;
  color: var(--text-1);
}

.hero-desc {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 400; line-height: 1.6em;
  color: var(--text-2);
}

.hero-btn {
  display: inline-flex; align-items: center;
  width: fit-content;
  padding: 16px 24px;
  border: 1.5px solid var(--accent);
  border-radius: 16px;
  background: white;
  font-family: var(--font-display);
  font-size: 15px; font-weight: 500;
  color: var(--accent);
  cursor: pointer;
  transition: background 0.15s;
}

.hero-btn:hover { background: var(--accent-bg); }

/* Floating project details card */
.hero-details {
  flex-shrink: 0; width: 320px;
  background: white;
  border-radius: 32px; padding: 36px;
  display: flex; flex-direction: column; gap: 20px;
  box-shadow: var(--shadow-card);
  transform: rotate(2deg);
  border: 1px solid rgba(240,240,240,0.8);
}

.detail-row   { display: flex; flex-direction: column; gap: 6px; }

.detail-label {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}

.detail-value {
  font-family: var(--font-body);
  font-size: 15px; line-height: 1.5em;
  color: var(--text-1);
}

/* Hero image / placeholder area */
.hero-image {
  width: 100%; aspect-ratio: 2.3 / 1;
  border-radius: 48px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

.hero-image-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  opacity: 0.35;
}

.hero-image-placeholder svg { width: 64px; height: 64px; }

.hero-image-placeholder p {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 500;
  color: var(--accent); letter-spacing: 0.05em;
}


/* =============================================================================
   6. SECTIONS — shared layout
   .section          outer wrapper (handles horizontal padding + bottom spacing)
   .section-inner    max-width content column
   .section-header   eyebrow + title block
   ============================================================================= */
.section {
  width: 100%;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 20px 120px;
}

.section-inner {
  width: 100%; max-width: 940px;
  display: flex; flex-direction: column; gap: 48px;
}

.section-header {
  display: flex; flex-direction: column; gap: 16px;
  max-width: 700px;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700; line-height: 1.4em;
  color: var(--text-1);
}

.section-body {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 400; line-height: 1.6em;
  color: var(--text-2);
}

.section-body + .section-body { margin-top: 16px; }
.section-body strong { color: var(--text-1); font-weight: 700; }


/* =============================================================================
   7. COMPONENTS
   ============================================================================= */

/* ---- Callout card (problem statement, HMW) ---- */
.callout-card {
  background: var(--accent-bg);
  border-radius: 48px; padding: 72px;
  display: flex; flex-direction: column; gap: 16px;
  max-width: 940px; width: 100%;
}

.callout-card .section-eyebrow { text-align: center; }
.callout-card .section-title   { text-align: center; max-width: 760px; margin: 0 auto; }

/* ---- Surface cards (discovery, context, etc.) ---- */
.surface-card {
  background: var(--surface-1);
  border-radius: 40px; padding: 72px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 36px;
  width: 100%;
}

.surface-card-sm {
  background: var(--surface-1);
  border-radius: 24px; padding: 40px 32px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 24px;
  width: 100%;
}

/* ---- Insight strip (Insight / Action / Impact) ---- */
.insight-strip {
  width: 100%; max-width: 940px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  border-radius: 24px; padding: 32px 40px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.insight-item  { display: flex; flex-direction: column; gap: 8px; }

.insight-label {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent);
}

.insight-text {
  font-family: var(--font-body);
  font-size: 15px; line-height: 1.6em;
  color: var(--text-1);
}

/* ---- Numbered list (key findings, deliverables) ---- */
.numbered-list { display: flex; flex-direction: column; gap: 16px; }

.numbered-item {
  display: flex; flex-direction: row; gap: 16px; align-items: flex-start;
}

.numbered-badge {
  flex-shrink: 0; width: 32px; height: 32px;
  border-radius: 100px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 13px; font-weight: 700;
  color: white;
}

.numbered-content {
  flex: 1; padding-top: 4px;
  display: flex; flex-direction: column; gap: 4px;
}

.numbered-content strong {
  font-family: var(--font-body);
  font-size: 16px; font-weight: 700;
  color: var(--text-1);
}

.numbered-content p {
  font-family: var(--font-body);
  font-size: 15px; line-height: 1.6em;
  color: var(--text-2);
}

/* ---- Two-column grid (hard part cards) ---- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.grid-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px; padding: 32px;
  display: flex; flex-direction: column; gap: 10px;
}

.grid-card-title {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700;
  color: var(--text-1);
}

.grid-card-body {
  font-family: var(--font-body);
  font-size: 15px; line-height: 1.6em;
  color: var(--text-2);
}

/* ---- Outcome stat cards ---- */
.stats-row {
  display: flex; flex-direction: row; gap: 16px; flex-wrap: wrap;
}

.stat-card {
  flex: 1; min-width: 220px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px; padding: 28px 24px;
  display: flex; flex-direction: column; gap: 6px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700; color: var(--accent);
  line-height: 1;
  white-space: nowrap;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 14px; line-height: 1.5em;
  color: var(--text-2);
}

/* ---- AI opportunity card (SVEBar only) ---- */
.ai-card {
  background: rgb(248,249,250);
  border: 1.5px dashed var(--accent-border);
  border-radius: 32px; padding: 48px;
  display: flex; flex-direction: column; gap: 20px;
}

.ai-card-label {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.ai-card-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700; line-height: 1.4em;
  color: var(--text-1);
}

.ai-card-body {
  font-family: var(--font-body);
  font-size: 16px; line-height: 1.7em;
  color: var(--text-2);
}

/* ---- Image / wireframe placeholders ---- */
/* Lightbox overlay */
.lb-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  z-index: 9999;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
  cursor: zoom-out;
}
.lb-overlay.open { opacity: 1; pointer-events: all; }
.lb-overlay img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  cursor: default;
}

/* Case study inline images — figure + caption */
.cs-figure {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.cs-img {
  width: 100%;
  display: block;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

.cs-caption {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-3);
  text-align: left;
  line-height: 1.5em;
}

.img-placeholder {
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  border-radius: 16px; overflow: hidden;
}

.img-placeholder p {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 500;
  color: var(--text-3); letter-spacing: 0.04em;
  padding: 24px; text-align: center;
}

/* Swap in real images: replace .img-placeholder with <img> tag.
   Example: <img src="../img/basf/hero.png" alt="BASF dashboard" style="width:100%; border-radius:16px;"> */


/* =============================================================================
   8. FOOTER CTA — "Let's Connect!"
   To change the footer gradient or heading size: edit here.
   ============================================================================= */
.footer-section { width: 100%; padding: 0 10px 24px; }

.footer-card {
  background: linear-gradient(180deg, white 0%, rgb(240,243,245) 100%);
  border-radius: 48px; padding: 80px 60px 64px;
  display: flex; flex-direction: column; align-items: center; gap: 48px;
}

.footer-cta {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}

.footer-eyebrow {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

.footer-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 800; line-height: 1em;
  color: var(--text-1); text-align: center;
  white-space: nowrap;
}

.footer-btns {
  display: flex; gap: 20px; flex-wrap: wrap; justify-content: center;
}

.btn-dark {
  height: 48px; padding: 0 28px;
  border-radius: 16px;
  background: var(--text-1); color: white;
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  display: flex; align-items: center;
  transition: opacity 0.15s;
}

.btn-dark:hover {
   background: rgb(50, 55, 60);
   transition: background 0.15s;
}

.btn-light {
  height: 48px; padding: 0 28px;
  border-radius: 16px;
  background: white;
  border: 1.5px solid var(--border);
  color: var(--text-1);
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  display: flex; align-items: center;
  transition: background 0.15s;
}

.btn-light:hover { background: var(--surface-2); }

.footer-copy {
  font-family: var(--font-body); font-size: 13px;
  color: var(--text-3);
  display: flex; align-items: center; gap: 4px;
}


/* =============================================================================
   9. HOMEPAGE STYLES — scoped under .site (index.html uses <div class="site">)
   Classes that conflict with case-study classes carry the .site prefix.
   Homepage-only classes are un-scoped.
   ============================================================================= */

/* ---- Layout wrapper ---- */
.site {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100vh;
}

/* Nav gap override (homepage uses 8px, case studies 16px) */
.site .nav-links { gap: 8px; }

/* ---- Hero ---- */
.site .hero {
  width: 100%;
  height: 100svh;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 104px 20px 0;
  background: var(--white);
}

.site .hero-card {
  width: 100%;
  flex: 1;
  display: grid;
  grid-template-rows: 1fr auto 2fr;
  place-items: center;
  border-radius: 48px;
  padding: 0 24px;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--white) 100%);
  overflow: hidden;
  animation: fadeUp 0.7s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-content {
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 720px;
  width: 100%;
}

.hero-heading-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  justify-content: center;
  padding-bottom: 8px;
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.2em;
  color: var(--text-1);
  white-space: nowrap;
}

.hero-photo {
  display: inline;
  font-size: clamp(60px, 10vw, 120px); /* match exactly what .hero-h1 uses */
  line-height: inherit;
  vertical-align: middle;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 400;
  line-height: 1.8em;
  color: var(--text-2);
  text-align: center;
  max-width: 600px;
  animation: fadeUp 0.7s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #D6EBC0;
  border: 1px solid rgba(58, 107, 18, 0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: #3A6B12;
  animation: fadeUp 0.7s 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3A6B12;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-scroll {
  grid-row: 3;
  display: flex; align-items: center; gap: 12px;
  font-size: 24px; font-weight: 500;
  color: var(--text-3);
  animation: fadeUp 0.7s 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  text-decoration: none;
  transition: color 0.2s;
}
.hero-scroll:hover { color: var(--text-1); }
.hero-scroll svg { width: 28px; height: 28px; animation: bounce 1.8s ease-in-out infinite; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

/* ---- Section layout (homepage version) ---- */
.site .section        { width: 100%; padding: 0 20px; }
.site .section-body   { display: flex; flex-direction: column; align-items: center; gap: 40px; padding-bottom: 120px; }
.site .section-header { display: flex; align-items: center; gap: 12px; padding: 0 0 10px; width: 100%; max-width: 1200px; }

.section-h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15em;
  color: var(--text-1);
}

#case-studies { scroll-margin-top: 64px; background: var(--white); }
#about-me     { scroll-margin-top: 64px; background: var(--white); }

/* ---- Case study cards grid ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 24px;
  width: 100%;
  max-width: 1200px;
  align-self: stretch;
}

.site .project-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.card-image {
  width: 100%;
  height: 340px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

.card-image-inner {
  width: 100%; height: 100%;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex; align-items: center; justify-content: center;
}

.site .project-card:hover .card-image-inner { transform: scale(1.04); }
.card-image-inner svg { width: 80px; height: 80px; opacity: 0.25; }

.card-basf   .card-image-inner { background: linear-gradient(135deg, #d0e8f2 0%, #a8d0e4 100%); }
.card-svebar .card-image-inner { background: linear-gradient(135deg, #cde0ea 0%, #9cc5d5 100%); }
.card-gensam .card-image-inner { background: linear-gradient(135deg, #ccd5ea 0%, #9ab0d5 100%); }
.card-fass   .card-image-inner { background: linear-gradient(135deg, #c4d5e0 0%, #9abac8 100%); }
.card-ltn         .card-image-inner { background: linear-gradient(135deg, #c8e0e2 0%, #9dc4c6 100%); }\n.card-riksbyggen  .card-image-inner { background: linear-gradient(135deg, #f5ddd8 0%, #e8b8aa 100%); }

.card-meta  { display: flex; flex-direction: column; gap: 6px; }

.card-category {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.04em;
}

.card-title-row { display: flex; align-items: center; gap: 10px; }

.card-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 700; line-height: 1.3em;
  color: var(--text-1);
}

.card-desc {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 400; line-height: 1.65em;
  color: var(--text-2);
}

/* ---- About section ---- */
.about-card {
  width: 100%; max-width: 1200px;
  display: flex; flex-direction: row;
  gap: 64px; align-items: flex-start;
  padding: 80px 24px 40px;
}

.about-text { flex: 1; display: flex; flex-direction: column; gap: 24px; }

.about-photo-wrap {
  flex-shrink: 0;
  width: 260px; height: 260px;
  border-radius: 14px;
  border: 2.5px solid var(--border);
  overflow: hidden;
  transform: rotate(-4deg);
  box-shadow:
    0.12px 0.51px 0.53px -1.08px rgba(25,29,33,0.28),
    0.46px 1.95px 2px   -2.17px rgba(25,29,33,0.26),
    2px    8.5px  8.73px -3.25px rgba(25,29,33,0.16);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 72px;
}

.about-p {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.8vw, 19px);
  font-weight: 400; line-height: 1.8em;
  color: var(--text-2);
}

.about-row2 { width: 100%; max-width: 1200px; padding: 0 24px 80px; }
.about-row2 .about-p { max-width: 780px; }

.skills-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.skill-tag {
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--surface-2);
  font-size: 13px; font-weight: 500;
  color: var(--text-2);
}

/* Experience list (homepage version, scoped to .site) */
.site .exp-list   { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
.site .exp-item   { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.site .exp-item:last-child { border-bottom: none; }
.site .exp-company { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--text-1); }
.site .exp-role   { font-size: 13px; font-weight: 400; color: var(--text-2); }

/* ---- Footer (homepage version, scoped to .site) ---- */
.site .footer-section { width: 100%; padding: 0 20px 24px; }

.site .footer-card {
  width: 100%;
  display: flex; flex-direction: column;
  align-items: center;
  border-radius: 48px;
  background: linear-gradient(180deg, var(--white) 0%, var(--surface-2) 100%);
  gap: 48px; padding: 80px 24px 64px;
}

.site .footer-cta   { display: flex; flex-direction: column; align-items: center; gap: 20px; }

.site .footer-eyebrow {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-1); text-align: center;
}

.site .footer-btns {
  display: flex; flex-direction: row;
  gap: 12px; flex-wrap: wrap; justify-content: center;
}

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 28px;
  border-radius: 16px;
  background: var(--text-1); color: var(--white);
  font-family: var(--font-display); font-size: 15px; font-weight: 500;
  border: 1px solid var(--text-1);
  cursor: pointer; transition: background 0.15s ease;
  text-decoration: none;
}
.btn-primary:hover { background: rgb(50, 55, 60); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 28px;
  border-radius: 16px;
  background: var(--white); color: var(--text-1);
  font-family: var(--font-display); font-size: 15px; font-weight: 500;
  border: 1px solid var(--text-2);
  cursor: pointer; transition: background 0.15s ease;
  text-decoration: none;
}
.btn-secondary:hover { background: var(--surface-2); }

.footer-copyright { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }


/* =============================================================================
   10. ANIMATIONS
   ============================================================================= */
@keyframes navSlide {
  from { opacity:0; transform:translateY(-84px); }
  to   { opacity:1; transform:translateY(0); }
}

@keyframes fadeUp {
  from { opacity:0; transform:translateY(30px); }
  to   { opacity:1; transform:translateY(0); }
}

/* Scroll reveal — add .reveal to any element, JS adds .visible on intersection */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity   0.6s cubic-bezier(0.22,1,0.36,1),
    transform 0.6s cubic-bezier(0.22,1,0.36,1);
}

.reveal.visible { opacity: 1; transform: none; }

/* =============================================================================
   11. FOOTER CONTACT FORM
   ============================================================================= */
.footer-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 520px;
  text-align: center;
}

.footer-form {
  display: flex; flex-direction: column; gap: 16px;
  width: 100%;
  text-align: left;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-family: var(--font-body); font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3);
}
.form-input, .form-textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--text-1);
  background: white; border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 16px; width: 100%;
  outline: none; resize: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--accent, rgb(43,116,148));
  box-shadow: 0 0 0 3px var(--accent-bg, rgba(43,116,148,0.1));
}
.form-textarea { min-height: 120px; }
.form-submit {
  height: 48px; width: 100%;
  background: var(--text-1); color: white;
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  border: none; border-radius: 12px; cursor: pointer;
  transition: background 0.15s;
}
.form-submit:hover { background: rgb(50, 55, 60); }

/* Inline validation */
.form-input.error, .form-textarea.error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.form-error {
  font-family: var(--font-body);
  font-size: 12px;
  color: #dc2626;
  min-height: 16px;
  display: block;
  margin-top: 4px;
}


/* =============================================================================
   12. RESPONSIVE
   ============================================================================= */
@media (max-width: 680px) {
  .nav-inner { padding: 8px 24px; }

  .hero-card    { padding: 80px 28px; }
  .hero-top     { flex-direction: column; }
  .hero-details { width: 100%; transform: none; }

  .surface-card { padding: 40px 28px; }
  .callout-card { padding: 48px 28px; }
  .insight-strip { grid-template-columns: 1fr; }
  .two-col      { grid-template-columns: 1fr; }
  .ai-card      { padding: 32px 24px; }

  .footer-card  { padding: 60px 28px 48px; }
  .footer-btns  { gap: 12px; }
}

/* Homepage responsive */
@media (max-width: 900px) {
  .site .nav-inner { padding: 8px 20px; }
  .cards-grid { grid-template-columns: 1fr; }
  .about-card { flex-direction: column; align-items: center; padding: 48px 16px 24px; gap: 32px; }
  .about-photo-wrap { width: 200px; height: 200px; order: -1; }
  .about-row2 { padding: 0 16px 60px; }
  .site .section-body { padding-bottom: 60px; }
}

@media (max-width: 600px) {
  .site .nav-link { display: none; }
  .site .nav-link.nav-link-resume { display: flex; }
  .site .hero { padding: 84px 12px 0; }
  .site .hero-card { padding: 0 16px; }
  .site .section { padding: 0 12px; }
  .cards-grid { gap: 24px; }
  .card-image { height: 220px; }
  .site .footer-section { padding: 0 12px 24px; }
}


/* =============================================================================
   13. CONTACT PAGE STYLES
   ============================================================================= */
.contact-wrap { width: 100%; padding: 104px 10px 10px; }

.contact-card {
  background: linear-gradient(180deg, rgb(240,243,245) 0%, white 100%);
  border-radius: 48px;
  padding: 120px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-intro { display: flex; flex-direction: column; gap: 24px; }

.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700; line-height: 1.1em;
  color: var(--text-1);
}

.contact-sub {
  font-family: var(--font-body);
  font-size: 17px; line-height: 1.7em;
  color: var(--text-2);
}

.contact-links { display: flex; flex-direction: column; gap: 12px; }

.contact-link {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 15px;
  color: var(--text-2); transition: color 0.15s;
}
.contact-link:hover { color: var(--text-1); }

.contact-form {
  background: white;
  border-radius: 32px;
  padding: 48px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 20px;
}

/* Contact form field overrides (slightly richer look than footer form) */
.contact-form .form-group  { gap: 8px; }
.contact-form .form-label  { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; }
.contact-form .form-input,
.contact-form .form-textarea { background: rgb(248,249,250); padding: 14px 16px; }
.contact-form .form-input:focus,
.contact-form .form-textarea:focus {
  border-color: rgb(43,116,148);
  box-shadow: 0 0 0 3px rgba(43,116,148,0.1);
}
.contact-form .form-textarea { min-height: 140px; }
.contact-form .form-submit  { height: 52px; border-radius: 14px; font-size: 16px; }

@media (max-width: 680px) {
  .contact-card { grid-template-columns: 1fr; padding: 60px 28px; gap: 48px; }
}


/* =============================================================================
   14. PER-PROJECT ACCENT OVERRIDES
   Applied via <body class="basf"> etc. on case study pages.
   ============================================================================= */
body.basf {
  --accent:        rgb(0, 110, 148);
  --accent-bg:     rgba(0, 110, 148, 0.07);
  --accent-border: rgba(0, 110, 148, 0.2);
}
body.basf .hero-card   { background: linear-gradient(180deg, rgb(232,244,250) 0%, white 100%); }

body.svebar {
  --accent:        rgb(43, 116, 148);
  --accent-bg:     rgba(43, 116, 148, 0.07);
  --accent-border: rgba(43, 116, 148, 0.2);
}
body.svebar .hero-card  { background: linear-gradient(180deg, rgb(235,243,248) 0%, white 100%); }

body.gensam {
  --accent:        rgb(45, 84, 146);
  --accent-bg:     rgba(45, 84, 146, 0.07);
  --accent-border: rgba(45, 84, 146, 0.2);
}
body.gensam .hero-card  { background: linear-gradient(180deg, rgb(232,237,248) 0%, white 100%); }

body.fass {
  --accent:        rgb(11, 64, 94);
  --accent-bg:     rgba(11, 64, 94, 0.07);
  --accent-border: rgba(11, 64, 94, 0.2);
}
body.fass .hero-card    { background: linear-gradient(180deg, rgb(229,238,244) 0%, white 100%); }

body.ltn {
  --accent:        rgb(0, 96, 100);
  --accent-bg:     rgba(0, 96, 100, 0.07);
  --accent-border: rgba(0, 96, 100, 0.2);
}
body.ltn .hero-card     { background: linear-gradient(180deg, rgb(237,246,241) 0%, white 100%); }

body.riksbyggen {
  --accent:        rgb(191, 68, 47);
  --accent-bg:     rgba(191, 68, 47, 0.07);
  --accent-border: rgba(191, 68, 47, 0.2);
}
body.riksbyggen .hero-card { background: linear-gradient(180deg, rgb(250,238,234) 0%, white 100%); }

/* =============================================================================
   NEXT READS — "A similar project / Something different"
   ============================================================================= */
.next-reads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.next-read-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  background: white;
  transition: transform 0.22s cubic-bezier(0.22,1,0.36,1), box-shadow 0.22s;
}
.next-read-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.1);
}
.next-read-image {
  width: 100%;
  height: 150px;
  overflow: hidden;
  flex-shrink: 0;
}
.next-read-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.next-read-card:hover .next-read-image img {
  transform: scale(1.04);
}
.next-read-meta {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.next-read-prompt {
  font-size: 11px;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 2px;
}
.next-read-client {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.next-read-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #191d21;
  line-height: 1.3;
  margin: 2px 0 6px;
}
.next-read-why {
  font-size: 13px;
  color: #777;
  line-height: 1.55;
}
@media (max-width: 620px) {
  .next-reads { grid-template-columns: 1fr; }
}

.img-placeholder { display: none; }
