/* ============================================
   BILL BLOMSTER DESIGN STUDIO — style.css
   Dark-mode layout
   ============================================ */

/* -----------------------------------------
   1. VARIABLER (INVERTERADE)
   ----------------------------------------- */
:root {
  /* Farger — monokromatisk varm brun skala
     60-30-10 fordelning:
     60 %  bg-primary (Ink) — dominant bakgrund
     30 %  bg-secondary, text-primary, text-secondary — stod
     10 %  accent (CTA-orange) — interaktiva element */
  --bg-primary: #15100C;
  --bg-secondary: #261C15;
  --bg-accent: #3D2C1E;
  --text-primary: #F7E9DC;
  --text-secondary: #C4B5A5;
  --accent: #D4692A;
  --accent-hover: #E07A3A;
  --accent-muted: #8B5322;
  --sand: #EDD9C0;

  /* Typsnitt */
  --font-heading: 'Fraunces', serif;
  --font-body: 'Figtree', sans-serif;

  /* Typografiskala */
  --text-h1: clamp(2rem, 5vw, 3rem);
  --text-h2: clamp(1.5rem, 3.5vw, 2rem);
  --text-h3: clamp(1.1rem, 2.5vw, 1.5rem);
  --text-body: clamp(1rem, 1.5vw, 1.125rem);
  --text-small: 0.8125rem;

  /* Border-radius */
  --radius-button: 4px;
  --radius-image:  8px;

  /* Transitions */
  --transition-hover:     0.2s ease;
  --transition-animation: 0.4s ease;

  /* Spacing */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Container */
  --container-max: 1440px;
  --container-padding: 2.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

/* Skip-link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--container-padding);
  background: var(--accent);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-button);
  z-index: 200;
  font-size: var(--text-small);
}

.skip-link:focus {
  top: var(--space-xs);
}

/* Focus-visible */
*:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 2px;
}

/* -----------------------------------------
   3. TYPOGRAFI
   ----------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-primary);
}

h1 {
  font-style: italic;
  font-size: var(--text-h1);
  margin-bottom: var(--space-xs);
}

h2, h3 {
  font-style: normal;
}

h2 {
  font-size: var(--text-h2);
  margin-bottom: var(--space-xs);
}

h3 {
  font-size: var(--text-body);
  margin-bottom: var(--space-xs);
}

p {
  max-width: 65ch;
  margin-bottom: var(--space-sm);
  text-wrap: pretty;
  orphans: 2;
  widows: 2;
  letter-spacing: 0.01em;
}

.text-secondary {
  font-weight: 400;
  font-size: var(--text-small);
  color: var(--text-secondary);
}

/* -----------------------------------------
   4. LAYOUT
   ----------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

section {
  padding: var(--space-xl) 0;
}

/* -----------------------------------------
   5. NAVIGATION
   ----------------------------------------- */
.v2-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--bg-accent);
  transition: transform var(--transition-animation), background-color 0.3s ease, border-color 0.3s ease;
}


.v2-header.header--hidden {
  transform: translateY(-100%);
}

.v2-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
}

.v2-nav__logo img {
  width: 240px;
}

/* En enda meny — doljs pa mobil, visas pa desktop */
.v2-nav__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--bg-accent);
  padding: var(--space-sm) 0;
}

.v2-nav__menu.open {
  display: block;
}

.v2-nav__menu li {
  text-align: center;
}

.v2-nav__menu a {
  display: block;
  padding: var(--space-xs) var(--container-padding);
  font-weight: 400;
  font-size: var(--text-body);
  color: var(--sand);
  transition: color var(--transition-hover);
}

.v2-nav__menu a:hover {
  color: var(--accent);
  text-decoration: none;
}

.v2-nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.v2-nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform var(--transition-animation), opacity var(--transition-animation);
}

.v2-nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.v2-nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.v2-nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.v2-nav__menu .v2-nav__cta {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-button);
  border: 1px solid var(--sand);
  background-color: var(--sand);
  color: var(--bg-primary);
  font-weight: 500;
  transition: background-color var(--transition-hover), color var(--transition-hover), border-color var(--transition-hover);
}

.v2-nav__menu .v2-nav__cta:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--text-primary);
  text-decoration: none;
}

/* -----------------------------------------
   6. KNAPPAR
   ----------------------------------------- */
.v2-btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-body);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-button);
  cursor: pointer;
  border: 1.5px solid var(--sand);
  background-color: var(--sand);
  color: var(--bg-primary);
  transition: background-color var(--transition-hover), color var(--transition-hover), border-color var(--transition-hover);
  text-decoration: none;
}

.v2-btn:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--text-primary);
  text-decoration: none;
}

.v2-btn--primary {
}

.v2-btn--secondary {
}

/* -----------------------------------------
   7. HERO (gemensam för alla sidor)
   ----------------------------------------- */
.site-hero {
  position: relative;
  height: calc(100vh - 72px);
  height: calc(100svh - 72px);
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.site-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.site-hero__placeholder {
  position: absolute;
  inset: 0;
  background: var(--bg-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: var(--text-small);
}

.site-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(21, 16, 12, 0.90) 0%,
    rgba(21, 16, 12, 0.45) 25%,
    transparent 50%
  );
  pointer-events: none;
}

.site-hero .container {
  position: relative;
  z-index: 1;
  padding-bottom: var(--space-md);
}

.site-hero h1 {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  color: var(--text-primary);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  max-width: 700px;
  line-height: 1.15;
  margin: 0 0 var(--space-md);
  text-wrap: balance;
}

/* Hero på projektsidor — kort titel, stor text */
.site-hero--project h1 {
  font-size: clamp(3.5rem, 2.5rem + 4vw, 7rem);
  max-width: none;
  line-height: 1.0;
  margin-bottom: var(--space-2xs);
}

/* Tillbaka-länk (projektsidor) */
.site-hero__back {
  display: inline-block;
  font-size: var(--text-small);
  color: rgba(248, 236, 216, 0.7);
  margin-bottom: var(--space-md);
  transition: color var(--transition-hover);
}

.site-hero__back:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Meta-text (projektsidor) */
.site-hero__meta {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 236, 216, 0.6);
}

/* -----------------------------------------
   8. OM STUDION
   ----------------------------------------- */
.v2-about {
  padding: calc(var(--space-3xl) + var(--space-2xl)) 0 var(--space-3xl);
  border-top: 1px solid var(--bg-accent);
}

.v2-about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.v2-about__text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.v2-about h2 {
  font-size: var(--text-h2);
  margin-bottom: var(--space-xs);
}

.v2-about p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

@keyframes rotate-cw {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.v2-about__badge {
  display: flex;
  justify-content: center;
  align-items: center;
}

.v2-about__badge img {
  width: clamp(160px, 20vw, 260px);
  height: auto;
  animation: rotate-cw 20s linear infinite;
  font-size: var(--text-body);
  line-height: 1.6;
}

/* -----------------------------------------
   9. PROJEKTGRID
   ----------------------------------------- */
.v2-projects {
  padding: var(--space-2xl) 0;
}

.v2-projects__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.v2-projects__heading {
  font-size: var(--text-body);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.v2-projects__cta {
  text-align: center;
}

/* -----------------------------------------
   9b. KARUSELL
   ----------------------------------------- */
.v2-carousel {
  margin-bottom: var(--space-lg);
}

.v2-carousel__viewport {
  overflow: hidden;
}

.v2-carousel__track {
  display: flex;
  gap: 14px;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}

.v2-carousel__track:active {
  cursor: grabbing;
}

.v2-carousel__slide {
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-image);
  display: block;
  text-decoration: none;
  /* width + height sätts av JS */
}

.v2-carousel__slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform var(--transition-animation);
}

.v2-carousel__slide:hover img {
  transform: scale(1.05);
}

.v2-carousel__slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 0.75rem 0.75rem;
  background: linear-gradient(to top, rgba(15,10,8,0.92) 0%, rgba(15,10,8,0.5) 50%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-animation);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.v2-carousel__slide:hover .v2-carousel__slide-overlay {
  opacity: 1;
}

.v2-carousel__slide-name {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-body);
  color: var(--text-primary);
  display: block;
}

.v2-carousel__slide-type {
  font-size: var(--text-small);
  color: rgba(247, 233, 220, 0.75);
  display: block;
}

.v2-carousel__footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-sm) 0 0;
}

.v2-carousel__nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.v2-carousel__prev,
.v2-carousel__next {
  background: transparent;
  border: 1px solid rgba(196, 181, 165, 0.35);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-hover), background-color var(--transition-hover);
  padding: 0;
}

.v2-carousel__prev:hover,
.v2-carousel__next:hover {
  border-color: var(--accent);
  color: var(--accent);
  background-color: var(--bg-secondary);
}

/* Mobil: bild överst, text och pilar under (ej overlaid) */
@media (max-width: 768px) {
  .v2-carousel__slide {
    display: flex;
    flex-direction: column;
    overflow: visible;
    height: auto !important;
    border-radius: var(--radius-image) var(--radius-image) 0 0;
  }

  .v2-carousel__slide img {
    position: static;
    width: 100%;
    height: auto !important;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: var(--radius-image) var(--radius-image) 0 0;
  }

  .v2-carousel__slide-overlay {
    position: static;
    opacity: 1;
    background: var(--bg-secondary);
    padding: var(--space-md) var(--space-md) var(--space-md);
    border-radius: 0 0 var(--radius-image) var(--radius-image);
  }
}

/* -----------------------------------------
   9b. TJANSTER — SPLIT SEKTIONER
   ----------------------------------------- */
.v2-service-split {
  padding: var(--space-md) 0;
}

.v2-service-split__grid {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--bg-accent);
  border-radius: var(--radius-image);
  overflow: hidden;
}

.v2-service-split__text {
  background: var(--bg-secondary);
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.v2-service-split__text h2 {
  font-size: var(--text-h2);
  margin-bottom: var(--space-xs);
}

.v2-service-split__text p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.v2-service-split__text .v2-btn {
  align-self: flex-start;
  margin-top: var(--space-md);
}

.v2-service-split__image {
  overflow: hidden;
  min-height: 240px;
}

.v2-service-split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* -----------------------------------------
   9b. DU PASSAR OM (mobile-first)
   ----------------------------------------- */
.v2-fits {
  padding: var(--space-2xl) 0;
  text-align: center;
}

.v2-fits__inner {
  max-width: 56ch;
  margin: 0 auto;
}

.v2-fits__heading {
  font-size: var(--text-h2);
  margin: 0 0 var(--space-md);
  text-align: left;
}

.v2-fits__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.v2-fits__list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--text-secondary);
  line-height: 1.75;
  text-align: left;
}

.v2-fits__list li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--text-primary);
}

/* -----------------------------------------
   10a. TJANSTER — INFO (mobile-first)
   ----------------------------------------- */
.v2-services-info {
  display: flex;
  align-items: center;
  padding: var(--space-2xl) 0;
  background-color: var(--bg-secondary);
  text-align: center;
}

.v2-services-info > .container {
  width: 100%;
}

.v2-services-info h2 {
  font-size: var(--text-body);
  line-height: 1.15;
  margin-bottom: var(--space-lg);
}

.v2-services__list {
  margin-bottom: 0;
}

.v2-services__mobile-btn {
  display: inline-block;
  margin-top: var(--space-lg);
}

.v2-services__item {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(2.2rem, 1rem + 4vw, 4.5rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sand);
  line-height: 1.3;
  margin-bottom: var(--space-xs);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition-base), letter-spacing var(--transition-base);
}

.v2-services__item:hover {
  color: var(--accent);
  text-decoration: none;
}

/* -----------------------------------------
   10b. TJANSTER — CTA CIRKLAR (desktop only)
   ----------------------------------------- */
.v2-services-cta {
  display: none;
  align-items: center;
  padding: var(--space-3xl) 0;
  background-color: var(--bg-primary);
  text-align: center;
}

.v2-services-cta > .container {
  width: 100%;
}

.v2-services-cta__heading {
  font-size: var(--text-h2);
  line-height: 1.15;
  margin-bottom: var(--space-xl);
}

.v2-services-cta__circles {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 900 / 550;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Yes-form (SVG-kontur) */
.v2-services-cta__shape-yes {
  position: relative;
  width: 400px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v2-services-cta__svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.v2-services-cta__fill {
  fill: var(--bg-primary);
  stroke: none;
}

.v2-services-cta__contour {
  fill: none;
  stroke: var(--text-secondary);
  stroke-width: 3px;
  stroke-miterlimit: 10;
}

.v2-services-cta__gif {
  opacity: 0;
  transition: opacity var(--transition-animation);
}

.v2-services-cta__shape-yes:hover .v2-services-cta__gif {
  opacity: 1;
}

.v2-services-cta__shape-yes span {
  position: absolute;
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  color: var(--sand);
  font-style: italic;
  transition: opacity var(--transition-animation);
  z-index: 2;
}

.v2-services-cta__shape-yes:hover span {
  color: var(--text-primary);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Nope-form (SVG-kontur) */
.v2-services-cta__shape-nope {
  width: 140px;
  position: absolute;
  left: 75%;
  top: 5%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left 0.5s ease-in-out, top 0.5s ease-in-out;
  z-index: 1;
}

.v2-services-cta__svg-nope {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.v2-services-cta__shape-nope span {
  position: absolute;
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  color: var(--sand);
  font-style: italic;
}


/* -----------------------------------------
   11. SOCIALT BEVIS
   ----------------------------------------- */
.v2-proof {
  padding: 0 0 var(--space-3xl);
  border-top: 1px solid var(--bg-accent);
}

.v2-proof .container {
  padding-top: var(--space-3xl);
}

/* Animation-strip: löpande ticker */
.v2-proof__animation-strip {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  background: var(--accent);
  padding: 1.2rem 0;
}

.v2-proof__ticker {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: ticker-scroll 80s linear infinite;
}

.v2-proof__ticker img {
  height: 1.6rem;
  flex-shrink: 0;
}

.v2-proof__ticker-word {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.06em;
}

.v2-proof__ticker-icon {
  height: 0.9rem;
  width: auto;
  flex-shrink: 0;
  opacity: 0.9;
  margin: 0 0.6rem;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Slider-wrapper med pilar */
.v2-proof__slider-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  max-width: 50rem;
  margin: 0 auto;
}

.v2-proof__prev,
.v2-proof__next {
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--bg-accent);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color var(--transition-hover), color var(--transition-hover);
}

.v2-proof__prev:hover,
.v2-proof__next:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* En-åt-gången slider */
.v2-proof__slider {
  position: relative;
  flex: 1;
  min-height: 14rem;
  overflow: hidden;
}

.v2-proof__item {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.v2-proof__item.active {
  transform: translateX(0);
  pointer-events: auto;
}

.v2-proof__item blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-h3);
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.v2-proof__item cite {
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-body);
  color: var(--text-secondary);
  display: block;
}

/* -----------------------------------------
   12. CTA / AVSLUT
   ----------------------------------------- */
.v2-cta {
  padding: var(--space-3xl) 0;
  background-color: var(--bg-secondary);
}

.v2-cta__inner {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.v2-cta__text {
  flex: 1;
}

.v2-cta__image {
  flex: 1;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 16 / 9;
}

.v2-cta__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.v2-cta p {
  max-width: 560px;
  margin: 0 0 var(--space-lg);
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .v2-cta__inner {
    flex-direction: column;
    align-items: center;
  }

  .v2-cta__text {
    text-align: center;
  }

  .v2-cta p {
    margin-left: auto;
    margin-right: auto;
  }

  .v2-cta__image {
    width: 100%;
  }
}

/* -----------------------------------------
   13. FOOTER
   ----------------------------------------- */
.v2-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--bg-accent);
  padding: var(--space-xl) 0 var(--space-xl);
}

.v2-footer__main {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.v2-footer__brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-md);
}

.v2-footer__logo {
  width: 72px;
  height: auto;
  flex-shrink: 0;
}

.v2-footer__tagline {
  font-size: var(--text-small);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 320px;
}

.v2-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.v2-footer__nav li span {
  font-size: var(--text-small);
  color: var(--text-secondary);
}

.v2-footer__nav a {
  font-size: var(--text-small);
  color: var(--text-secondary);
  transition: color var(--transition-hover);
}

.v2-footer__nav a:hover {
  color: var(--accent);
}

.v2-footer__cols {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.v2-footer__location {
  display: flex;
  justify-content: flex-end;
}

.v2-footer__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.v2-footer__copyright {
  font-size: var(--text-small);
  color: var(--text-secondary);
}



/* -----------------------------------------
   PORTFOLIO
   ----------------------------------------- */
.v2-portfolio {
  padding: var(--space-xl) 0 var(--space-2xl);
  border-top: 1px solid var(--bg-accent);
}

.v2-portfolio__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.v2-portfolio__card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.v2-portfolio__card:hover {
  text-decoration: none;
}

.v2-portfolio__image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-image);
}

.v2-portfolio__image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.v2-portfolio__card--coming-soon {
  cursor: default;
}

.v2-portfolio__card--coming-soon .v2-portfolio__image {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface-secondary);
  border: 1.5px dashed var(--text-secondary);
}

.v2-portfolio__card--coming-soon .v2-portfolio__image p {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-h3);
  color: var(--text-secondary);
  text-align: center;
  padding: var(--space-md);
  line-height: 1.4;
  margin: 0;
}

.v2-portfolio__card:hover .v2-portfolio__image img {
  transform: scale(1.04);
}

.v2-portfolio__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity var(--transition-animation);
}

.v2-portfolio__card:hover .v2-portfolio__overlay {
  opacity: 1;
}

.v2-portfolio__overlay-text {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-body);
  color: var(--text-primary);
  padding: 0.5rem 1.5rem;
  border: 1.5px solid var(--text-primary);
  border-radius: var(--radius-button);
}

.v2-portfolio__info {
  padding: var(--space-sm) 0 0;
}

.v2-portfolio__name {
  font-family: var(--font-heading);
  font-style: normal;
  font-weight: 400;
  font-size: var(--text-h3);
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.v2-portfolio__category {
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* Nav active state */
.v2-nav__menu a.active {
  color: var(--accent);
}

/* -----------------------------------------
   14b. MOBILE
   ----------------------------------------- */
@media (max-width: 767px) {

  /* Om: center text */
  .v2-about__text {
    text-align: center;
  }

  /* Testimonials: knappar nedanför */
  .v2-proof__slider-wrapper {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
  }

  .v2-proof__slider {
    order: 1;
    flex: 0 0 100%;
  }

  .v2-proof__prev {
    order: 2;
  }

  .v2-proof__next {
    order: 3;
  }

  /* Om: badge ovanför text */
  .v2-about__badge {
    order: 1;
  }

  .v2-about__text {
    order: 2;
  }

  /* Footer: nav ovanför logotyp, location längst ner */
  .v2-footer__main {
    flex-direction: column;
  }

  .v2-footer__cols {
    order: 1;
    justify-content: center;
    text-align: center;
    align-items: center;
  }

  .v2-footer__cols .v2-footer__nav {
    align-items: center;
  }

  .v2-footer__brand {
    order: 2;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .v2-footer__text {
    margin-top: var(--space-md);
  }

  .v2-footer__location {
    order: 3;
    width: 100%;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--bg-accent);
    display: flex;
    justify-content: center;
  }

  .v2-footer__location .v2-footer__nav {
    align-items: center;
    flex-direction: column;
    gap: var(--space-xs);
    text-align: center;
  }

  .v2-footer__logo {
    width: 120px;
  }

  /* Footer: större text */
  .v2-footer__tagline,
  .v2-footer__nav a,
  .v2-footer__nav li span,
  .v2-footer__copyright {
    font-size: var(--text-body);
  }
}

/* -----------------------------------------
   15. TABLET
   ----------------------------------------- */
@media (min-width: 768px) {
  .v2-service-split__grid {
    grid-template-columns: 1fr 1fr;
    height: clamp(300px, 32vw, 400px);
  }

  .v2-service-split__grid--reverse .v2-service-split__text { order: 2; }
  .v2-service-split__grid--reverse .v2-service-split__image { order: 1; }

  .v2-service-split__image {
    min-height: unset;
  }

  .v2-about__grid {
    grid-template-columns: 1fr 1fr;
  }

  .v2-projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .v2-services-info {
    min-height: 70vh;
    padding: var(--space-3xl) 0;
  }

  .v2-services-info h2 {
    font-size: var(--text-h3);
  }

  .v2-services__mobile-btn {
    display: none;
  }

  .v2-services-cta {
    display: none;
    min-height: 70vh;
  }

  .v2-portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .v2-portfolio__name {
    font-size: var(--text-h3);
  }

  .v2-footer__main {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .v2-footer__brand {
    align-items: flex-start;
  }

  .v2-footer__logo {
    width: auto;
    height: 120px;
  }
}

/* -----------------------------------------
   16. DESKTOP
   ----------------------------------------- */
@media (min-width: 1024px) {
  .v2-nav__toggle {
    display: none;
  }

  .v2-nav__menu {
    display: flex;
    position: static;
    border-bottom: none;
    padding: 0;
    gap: var(--space-md);
    align-items: center;
    font-size: var(--text-small);
  }

  .v2-nav__menu li {
    text-align: left;
  }

  .v2-nav__menu a {
    display: inline;
    padding: var(--space-xs);
  }

  .v2-projects__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .v2-portfolio__name {
    font-size: var(--text-h3);
  }

  .v2-portfolio__overlay-text {
    font-size: var(--text-h3);
  }

  .v2-footer__logo {
    height: 140px;
  }
}

/* -----------------------------------------
   CASE STUDY (projektsidor)
   ----------------------------------------- */

/* Textsektioner */
.v2-case-section {
  padding: var(--space-2xl) 0;
  background-color: var(--bg-primary);
}

.site-hero + .v2-case-section {
  border-top: 1px solid var(--bg-accent);
}

.v2-case-section--alt {
  background-color: var(--bg-secondary);
}

.v2-case-section__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

/* Sektionsrubrik — Fraunces */
.v2-case-section__heading {
  font-family: var(--font-heading);
  font-style: normal;
  font-weight: 400;
  font-size: var(--text-h2);
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.v2-case-section__body p {
  color: var(--text-secondary);
  font-size: var(--text-body);
  line-height: 1.7;
}

/* --------- Kontext + bild: 2-kolumn --------- */
.v2-case-context-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.v2-case-context-split__right > img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-image);
}

.v2-case-context-split__right--second {
  margin-top: var(--space-md);
}

@media (min-width: 768px) {
  .v2-case-context-split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: var(--space-2xl);
  }

  .v2-case-context-split--wide-right {
    grid-template-columns: 1fr 2fr;
  }
}

/* --------- Event & Samarbeten: 2-kolumn --------- */
/* Event-galleri: tre stående bilder */
.v2-case-event-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.v2-case-event-gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-image);
  display: block;
}

/* Event-split: jager + video, kvadratformat */
.v2-case-event-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
}

.v2-case-event-split__left img,
.v2-case-event-split__right img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-image);
  display: block;
}

.v2-case-event-split__right .v2-case-brand-video {
  aspect-ratio: 1 / 1;
  margin-top: 0;
}

/* --------- Visuell identitet: 2-kolumn --------- */
.v2-case-identity {
  padding: var(--space-2xl) 0;
  background-color: var(--bg-primary);
}

.v2-case-identity__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.v2-case-identity__desc {
  color: var(--text-secondary);
  font-size: var(--text-body);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

/* Fargpalett — 5 prickar i rad */
.v2-case-palette {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.v2-case-palette__swatch {
  flex: 1 1 60px;
  border-radius: var(--radius-image);
  padding: var(--space-md) var(--space-sm) var(--space-sm);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100px;
  color: rgba(248, 236, 216, 0.85);
}

.v2-case-palette__swatch--light {
  color: var(--bg-primary);
}

.v2-case-palette__hex {
  font-family: var(--font-body);
  font-size: var(--text-small);
  letter-spacing: 0.04em;
  font-weight: 500;
  opacity: 0.85;
}

/* Typsnitt */
.v2-case-typography {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.v2-case-typography__label {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: var(--space-xs);
}

.v2-case-typography__display {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-h2);
  line-height: 1.05;
  color: var(--text-primary);
}

.v2-case-typography__display--body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

/* Höger kolumn: logotyp + video */
.v2-case-identity__right {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.v2-case-identity__logo {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-image);
  padding: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: center;
}

.v2-case-identity__logo img {
  max-width: 280px;
  width: 100%;
  height: auto;
}

/* Video — kvadratiskt */
.v2-case-brand-video {
  margin-top: var(--space-md);
  border-radius: var(--radius-image);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--bg-secondary);
}

.v2-case-brand-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Portratt-grid (3 staende bilder) */
.v2-case-portrait-grid {
  padding: var(--space-2xl) 0;
  background-color: var(--bg-primary);
}

.v2-case-portrait-grid__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.v2-case-portrait-grid__layout img {
  width: 100%;
  border-radius: var(--radius-button);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.v2-case-portrait-grid__centered {
  object-position: center center;
}

/* --------- Sticky scroll: Problem + Gallery --------- */
.v2-case-sticky {
  height: 400vh;
  position: relative;
  background-color: var(--bg-primary);
}

.v2-case-sticky__inner {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.v2-case-sticky__content {
  height: 100%;
  display: flex;
  align-items: center;
}

.v2-case-sticky__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.v2-case-sticky__text {
  padding: var(--space-lg) 0;
}

.v2-case-sticky__text h2 {
  margin-bottom: var(--space-xs);
}

.v2-case-sticky__text p {
  color: var(--text-secondary);
  font-size: var(--text-body);
  line-height: 1.7;
  max-width: 38ch;
}

.v2-case-sticky__gallery {
  overflow: hidden;
}

/* Animation: galleriet tonar in/ut beroende pa scroll-progress */
.v2-case-sticky__track {
  display: flex;
  gap: 8px;
  will-change: transform, opacity;
  transition: opacity var(--transition-animation);
}

.v2-case-sticky__track.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.v2-case-sticky__track img {
  flex-shrink: 0;
  height: 62vh;
  width: auto;
  border-radius: var(--radius-image);
}

/* Nasta projekt */
.v2-case-next {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--bg-accent);
  background-color: var(--bg-primary);
}

.v2-case-next__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 768px) {
  .v2-case-next__grid {
    grid-template-columns: 1fr 2fr;
  }
}

.v2-case-next__img {
  width: 100%;
  height: 40vh;
  object-fit: cover;
  border-radius: var(--radius-image);
  display: block;
}

.v2-case-next__label {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-h2);
  color: var(--text-primary);
  margin-bottom: 0;
}

.v2-case-next__card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-image);
  text-decoration: none;
}

.v2-case-next__card:hover .v2-case-next__img {
  transform: scale(1.04);
}

.v2-case-next__img {
  width: 100%;
  height: 40vh;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-animation);
  border-radius: 0;
}

.v2-case-next__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 10, 8, 0.48);
  opacity: 0;
  transition: opacity var(--transition-animation);
}

.v2-case-next__card:hover .v2-case-next__overlay {
  opacity: 1;
}

.v2-case-next__name {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-h2);
  color: var(--text-primary);
}

/* --- CASE STUDY: Tablet --- */
@media (min-width: 768px) {
  .v2-case-section__layout {
    grid-template-columns: 200px 1fr;
    gap: var(--space-xl);
  }

  .v2-case-identity__grid {
    grid-template-columns: 1fr 1fr;
  }

  .v2-case-sticky__grid {
    grid-template-columns: 320px 1fr;
    gap: var(--space-xl);
  }

  .v2-case-sticky__track img {
    height: 68vh;
  }

  .v2-case-portrait-grid__layout {
    grid-template-columns: repeat(3, 1fr);
  }

  .v2-case-palette {
    flex-wrap: nowrap;
  }

  .v2-case-typography {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- CASE STUDY: Desktop --- */
@media (min-width: 1024px) {
  .v2-case-section__layout {
    grid-template-columns: 240px 1fr;
  }

  .v2-case-identity__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .v2-case-sticky__grid {
    grid-template-columns: 360px 1fr;
  }

  .v2-case-sticky__track img {
    height: 72vh;
  }
}

/* --------- App-bilder: karusell --------- */
.v2-case-carousel {
  overflow: hidden;
}

.v2-case-carousel__track {
  display: flex;
  gap: var(--space-sm);
  will-change: transform;
  transition: transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.v2-case-carousel__track img {
  flex-shrink: 0;
  height: 75vh;
  max-height: 75vh;
  width: auto;
  display: block;
  border-radius: var(--radius-image);
}


/* -----------------------------------------
   FOOTER: KOLUMNER OCH BOTTEN
   ----------------------------------------- */
.v2-footer__col {
  display: flex;
  flex-direction: column;
}

.v2-footer__bottom {
  border-top: 1px solid var(--bg-accent);
  padding-top: var(--space-sm);
  margin-top: var(--space-sm);
}

/* -----------------------------------------
   CASE STUDY: IDENTITET OCH TYPOGRAFI
   ----------------------------------------- */
.v2-case-identity__left {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* =========================================
   OM-SIDAN
   ========================================= */


/* -- Tidslinje ----------------------------- */
.om-timeline {
  padding: var(--space-2xl) 0 10rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--bg-accent);
}

.om-timeline__heading {
  margin-bottom: var(--space-md);
}

.om-timeline__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: stretch;
}

.om-timeline__left {
  position: relative;
}

.om-timeline__items {
  position: relative;
  padding-left: 2.5rem;
}

/* SVG-vågkurva */
.om-timeline__wave {
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 24px;
  height: calc(100% - 0.7rem);
  overflow: visible;
}

/* Streck-stil sätts i CSS så att stroke-dasharray/dashoffset
   alltid räknas i SVG:ens egna koordinater (viewBox-enheter),
   utan risk för vector-effect-konflikter. */
.om-timeline__wave path {
  stroke: #8B5322;
  stroke-width: 2px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.om-timeline__item {
  position: relative;
  padding-bottom: var(--space-xl);
}

.om-timeline__item:last-child {
  padding-bottom: 0;
}

.om-timeline__item::before {
  content: '';
  position: absolute;
  left: -2.3rem;
  top: 0.05rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-secondary);
}

/* -- Scrapbook-foton ----------------------- */
.om-timeline__right {
  position: relative;
  align-self: stretch;
  min-height: 0;
}

.om-scrapbook {
  position: absolute;
  inset: 0;
}

.om-scrapbook__photo {
  position: absolute;
  width: 55%;
  aspect-ratio: 1;
  margin: 0;
  background: #F2EAE0;
  padding: 8px 8px 26px;
  box-shadow:
    0 8px 28px rgba(0,0,0,0.5),
    0 2px 6px rgba(0,0,0,0.25);
}

.om-scrapbook__photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Tejp-effekt */
.om-scrapbook__photo::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 18px;
  background: rgba(242,234,224,0.55);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  border-radius: 2px;
}

/* Individuella positioner och rotationer */
.om-scrapbook__photo--1 {
  top: 0;
  left: 4%;
  transform: rotate(-2.8deg);
  z-index: 1;
}
.om-scrapbook__photo--2 {
  top: 35%;
  left: auto;
  right: 4%;
  transform: rotate(1.6deg);
  z-index: 2;
}
.om-scrapbook__photo--3 {
  top: 67%;
  left: 22.5%;
  transform: rotate(-1.0deg);
  z-index: 3;
}

/* -- Tidslinjens text ---------------------- */
.om-timeline__year {
  display: block;
  font-size: var(--text-small);
  color: var(--accent);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2xs);
}

.om-timeline__title {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-h3);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.om-timeline__desc {
  color: var(--text-secondary);
  font-size: var(--text-body);
  line-height: 1.65;
}

/* -- Scroll-animering: tidslinje + foton --- */

/* Timeline items: transition på bas-klassen så den gäller i båda riktningar */
.om-timeline__item {
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.om-timeline__item.item-hidden {
  opacity: 0;
  transform: translateX(-18px);
}
.om-timeline__item.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scrapbook: startposition (ovan, lite inzoomad) */
.om-scrapbook__photo--1.photo-hidden {
  opacity: 0;
  transform: rotate(-2.8deg) translateY(-60px) scale(0.85);
}
.om-scrapbook__photo--2.photo-hidden {
  opacity: 0;
  transform: rotate(1.6deg) translateY(-60px) scale(0.85);
}
.om-scrapbook__photo--3.photo-hidden {
  opacity: 0;
  transform: rotate(-1.0deg) translateY(-60px) scale(0.85);
}

/* Scrapbook: faller ner pa vaggen med fjader-easing */
.om-scrapbook__photo--1.photo-placing {
  opacity: 1;
  transform: rotate(-2.8deg);
  transition: opacity 0.4s ease, transform 0.65s cubic-bezier(0.34, 1.5, 0.64, 1);
}
.om-scrapbook__photo--2.photo-placing {
  opacity: 1;
  transform: rotate(1.6deg);
  transition: opacity 0.4s ease, transform 0.65s cubic-bezier(0.34, 1.5, 0.64, 1);
}
.om-scrapbook__photo--3.photo-placing {
  opacity: 1;
  transform: rotate(-1.0deg);
  transition: opacity 0.4s ease, transform 0.65s cubic-bezier(0.34, 1.5, 0.64, 1);
}

/* -- Text-reveal: fade-in via IntersectionObserver -- */
.om-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.om-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -- Specialisering ------------------------ */
.om-spec {
  padding: var(--space-2xl) 0;
}

.om-spec__inner {
  max-width: 680px;
}

.om-spec__inner h2 {
  margin-bottom: var(--space-xs);
}

.om-spec__inner p {
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.75;
  margin-bottom: var(--space-sm);
}

.om-spec__inner p:last-child {
  margin-bottom: 0;
}

/* -- Fun Facts ----------------------------- */
.om-funfacts {
  padding: var(--space-xl) 0;
  background: var(--bg-secondary);
}

.om-funfacts__heading {
  margin-bottom: var(--space-md);
}

/* -- Viewer: tvåkolumns layout ------------ */
.om-funfacts__viewer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.om-funfacts__media {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-image);
  background: var(--bg-accent);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.om-funfacts__media.is-fading {
  opacity: 0;
  transform: translateY(10px);
}

.om-funfacts__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.om-funfacts__img-placeholder {
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: var(--text-small);
}

/* -- Panel: text + kontroller ------------- */
.om-funfacts__panel {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: calc(42px + var(--space-lg));
}

.om-funfacts__text {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  line-height: 1.65;
  color: var(--text-primary);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.om-funfacts__text.is-fading {
  opacity: 0;
  transform: translateY(10px);
}

.om-funfacts__controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.om-funfacts__counter {
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.om-funfacts__nav {
  display: flex;
  gap: var(--space-xs);
}

.om-funfacts__btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-accent);
  border: 1px solid rgba(247,233,220,0.08);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-hover), color var(--transition-hover), border-color var(--transition-hover);
}

.om-funfacts__btn:hover {
  background: var(--accent);
  border-color: transparent;
}

/* -- Responsiv ----------------------------- */
@media (max-width: 768px) {
  .om-timeline__layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .om-timeline__right {
    position: static;
    align-self: auto;
  }

  /* Linjens startpunkt ska matcha den första tidslinje-punkten (dot: top 0.05rem).
     overflow: hidden klipper bort path-segmentet vid y<0 så linjen inte
     syns bakom rubriken ovanför. */
  .om-timeline__wave {
    top: 0.05rem;
    overflow: hidden;
  }

  .om-scrapbook {
    position: static;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-sm);
  }

  .om-scrapbook__photo {
    position: relative;
    width: 88%;
    aspect-ratio: auto;
    top: auto;
    left: auto;
    z-index: auto;
  }

  .om-scrapbook__photo img {
    height: auto;
    aspect-ratio: 1;
  }

  .om-scrapbook__photo--1 { transform: rotate(-2.8deg); margin-left: 0%; }
  .om-scrapbook__photo--2 { transform: rotate(1.6deg);  margin-left: 10%; }
  .om-scrapbook__photo--3 { transform: rotate(-1.0deg); margin-left: 2%; }

  .om-funfacts__viewer {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  /* Bild visas först, text och pilar under */
  .om-funfacts__media {
    order: 1;
    aspect-ratio: 3 / 4;
  }

  .om-funfacts__panel {
    order: 2;
    /* Avlägsna padding-bottom som reserverade plats för absolut-positionerade knappar */
    padding-bottom: 0;
    min-height: 0;
  }

  /* Pilarna placeras i normalt flöde under texten med fast avstånd,
     oberoende av textens längd */
  .om-funfacts__controls {
    position: static;
    margin-top: var(--space-md);
  }

  /* Centrerad text på mobil (ej tidslinje) */
  .om-spec__inner,
  .om-spec__inner h2,
  .om-spec__inner p,
  .om-funfacts__heading,
  .om-funfacts__panel,
  .om-funfacts__text {
    text-align: center;
  }
}

/* -----------------------------------------
   PROCESS-SEKTION (Faser, identitet.html)
   ----------------------------------------- */
.v2-process {
}

.v2-process__label {
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.v2-process__box {
  border: 1px solid var(--bg-accent);
  border-radius: var(--radius-image);
  overflow: hidden;
}

.v2-process__tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--bg-accent);
}

.v2-process__tabs::-webkit-scrollbar {
  display: none;
}

.v2-process__tab {
  flex: 1 0 auto;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: none;
  border-right: 1px solid var(--bg-accent);
  cursor: pointer;
  transition: background-color var(--transition-hover), color var(--transition-hover);
  text-align: left;
}

.v2-process__tab:last-child {
  border-right: none;
}

.v2-process__tab:hover {
  color: var(--text-primary);
  background: var(--bg-accent);
}

.v2-process__tab.is-active {
  background: var(--accent);
  color: var(--text-primary);
}

.v2-process__content {
  background: var(--bg-primary);
}

.v2-process__panel {
  display: none;
  padding: var(--space-lg);
}

.v2-process__panel.is-active {
  display: block;
}

.v2-process__panel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.v2-process__panel h2 {
  font-size: var(--text-h2);
  margin-bottom: var(--space-xs);
}

.v2-process__panel p {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.v2-process__panel p:last-child {
  margin-bottom: 0;
}

.v2-process__panel ul {
  list-style: disc;
  padding-left: 1.2em;
  margin-bottom: var(--space-sm);
  columns: 2;
  column-gap: var(--space-md);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 300;
}

.v2-process__panel ul li {
  break-inside: avoid;
  margin-bottom: 0.3em;
}

.v2-process__panel-img {
  border-radius: var(--radius-image);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.v2-process__panel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .v2-process__tab {
    flex: 1;
  }

  .v2-process__panel-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* -----------------------------------------
   APPROACH-SEKTION (Så här arbetar jag)
   ----------------------------------------- */
.v2-approach__header {
  margin-bottom: var(--space-md);
}

.v2-approach__header h2 {
  margin-bottom: var(--space-xs);
}

.v2-approach__intro {
  color: var(--text-secondary);
  max-width: 52ch;
  margin: 0;
}

.v2-approach__box {
  border: 1px solid var(--bg-accent);
  border-radius: var(--radius-image);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}

.v2-approach__item {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--bg-accent);
}

.v2-approach__item:last-child {
  border-bottom: none;
}

.v2-approach__icon {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  margin-bottom: var(--space-md);
}

.v2-approach__flower {
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.v2-approach__flower--xs { width: 20px; height: 20px; }
.v2-approach__flower--sm { width: 28px; height: 28px; }
.v2-approach__flower--md { width: 38px; height: 38px; }

.v2-approach__item-label {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.v2-approach__item p:not(.v2-approach__item-label) {
  color: var(--text-secondary);
  margin: 0;
  max-width: 36ch;
}

@media (min-width: 768px) {
  .v2-approach__box {
    grid-template-columns: repeat(3, 1fr);
  }

  .v2-approach__item {
    border-bottom: none;
    border-right: 1px solid var(--bg-accent);
  }

  .v2-approach__item:last-child {
    border-right: none;
  }
}

/* -----------------------------------------
   CASE STUDY: IDENTITET OCH TYPOGRAFI
   ----------------------------------------- */
.v2-case-typography__sample {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

/* -----------------------------------------
   KONTAKTSIDA
   ----------------------------------------- */

/* Intro */
.kontakt-intro {
  padding: calc(var(--header-height, 80px) + var(--space-xl)) 0 var(--space-lg);
}

.kontakt-intro__inner {
  max-width: 760px;
  margin: 0 auto;
}

.kontakt-intro__label {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.kontakt-intro h1 {
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: var(--space-xs);
}

.kontakt-intro__sub {
  font-size: var(--text-body);
  color: var(--text-secondary);
  max-width: 480px;
}

/* Formulärsektion */
.kontakt-form-section {
  padding-bottom: var(--space-3xl);
}

/* Formulär */
.kontakt-form {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.kontakt-form__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.kontakt-form__row--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.kontakt-form__row--submit {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--bg-accent);
}

/* Fält */
.kontakt-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.kontakt-form__field label,
.kontakt-form__fieldset legend {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.kontakt-form__field label span[aria-hidden],
.kontakt-form__fieldset legend span[aria-hidden] {
  color: var(--accent);
}

.kontakt-form__optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-secondary);
  opacity: 0.6;
  font-size: 0.85em;
}

.kontakt-form__hint {
  font-size: var(--text-small);
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
  font-style: italic;
}

/* Input, textarea & select */
.kontakt-form input[type="text"],
.kontakt-form input[type="email"],
.kontakt-form textarea,
.kontakt-form select {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--bg-accent);
  border-radius: var(--radius-button);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 300;
  padding: 0.75rem 1rem;
  transition: border-color var(--transition-hover), box-shadow var(--transition-hover);
  outline: none;
  -webkit-appearance: none;
}

.kontakt-form input[type="text"]:focus,
.kontakt-form input[type="email"]:focus,
.kontakt-form textarea:focus,
.kontakt-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 105, 42, 0.15);
}

.kontakt-form input[type="text"].error,
.kontakt-form input[type="email"].error,
.kontakt-form textarea.error,
.kontakt-form select.error {
  border-color: #c0392b;
}

.kontakt-form textarea {
  resize: vertical;
  min-height: 120px;
}

.kontakt-form input::placeholder,
.kontakt-form textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.5;
}

/* Fältfel */
.kontakt-form__error {
  font-size: 0.8rem;
  color: #e05c4a;
  display: block;
}

/* Fieldset */
.kontakt-form__fieldset {
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.kontakt-form__fieldset legend {
  margin-bottom: var(--space-xs);
}

/* Radiogrupp */
.kontakt-form__radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-sm);
}

.kontakt-form__radio-group--stacked {
  flex-direction: column;
  gap: var(--space-xs);
}

/* Radioknapp */
.kontakt-form__radio {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: var(--text-body);
  color: var(--text-primary);
  font-weight: 300;
  padding: 0.6rem 1rem;
  border: 1px solid var(--bg-accent);
  border-radius: var(--radius-button);
  transition: border-color var(--transition-hover), background var(--transition-hover);
  user-select: none;
}

.kontakt-form__radio:hover {
  border-color: var(--accent-muted);
  background: rgba(212, 105, 42, 0.05);
}

.kontakt-form__radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.kontakt-form__radio-box {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--text-secondary);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: border-color var(--transition-hover);
}

.kontakt-form__radio-box::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  transition: transform var(--transition-hover);
}

.kontakt-form__radio input[type="radio"]:checked ~ .kontakt-form__radio-box {
  border-color: var(--accent);
}

.kontakt-form__radio input[type="radio"]:checked ~ .kontakt-form__radio-box::after {
  transform: translate(-50%, -50%) scale(1);
}

.kontakt-form__radio:has(input:checked) {
  border-color: var(--accent);
  background: rgba(212, 105, 42, 0.07);
}

.kontakt-form__radio input[type="radio"]:focus-visible ~ .kontakt-form__radio-box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Obligatorisk-not */
.kontakt-form__required-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.7;
}

.kontakt-form__required-note span {
  color: var(--accent);
}

/* Submit-knapp laddar */
.kontakt-form__submit {
  min-width: 180px;
}

.kontakt-form__submit-loading {
  display: none;
}

.kontakt-form__submit.is-loading .kontakt-form__submit-text {
  display: none;
}

.kontakt-form__submit.is-loading .kontakt-form__submit-loading {
  display: inline;
}

.kontakt-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Bekräftelse */
.kontakt-success {
  max-width: 480px;
  padding: var(--space-xl) 0;
}

.kontakt-success__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.kontakt-success__inner h2 {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  color: var(--text-primary);
}

.kontakt-success__inner p {
  color: var(--text-secondary);
  font-weight: 300;
}

/* Felmeddelande */
.kontakt-form-error {
  max-width: 760px;
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid #c0392b;
  border-radius: var(--radius-button);
  background: rgba(192, 57, 43, 0.08);
  font-size: var(--text-body);
  color: var(--text-secondary);
}

.kontakt-form-error a {
  color: var(--accent);
  text-decoration: underline;
}

/* Responsiv */
@media (max-width: 600px) {
  .kontakt-form__row--2col {
    grid-template-columns: 1fr;
  }

  .kontakt-form__row--submit {
    flex-direction: column;
    align-items: flex-start;
  }

  .kontakt-form__submit {
    width: 100%;
    text-align: center;
  }

  .kontakt-form__radio-group {
    flex-direction: column;
  }
}

/* =========================================
   MOBILANPASSNINGAR — kompletterande fixes
   Täcker alla brister som inte redan hanteras
   av befintliga breakpoints ovan.
   ========================================= */

@media (max-width: 767px) {

  /* -----------------------------------------
     1. GLOBAL: Minska container-padding och
        sektionsavstånd för smalare skärmar
     ----------------------------------------- */
  :root {
    --container-padding: 1rem;
  }

  section {
    padding: var(--space-lg) 0;
  }

  /* Sektioner med egna klasser har för stora padding-värden
     på desktop — reducera dem specifikt för mobil */
  .v2-about {
    padding: var(--space-2xl) 0 var(--space-xl);
  }

  .v2-projects {
    padding: var(--space-xl) 0;
  }

  .v2-services-info {
    padding: var(--space-xl) 0;
  }

  .v2-proof {
    padding: 0 0 var(--space-2xl);
  }

  .v2-proof .container {
    padding-top: var(--space-xl);
  }

  .v2-footer {
    padding: var(--space-lg) 0;
  }

  /* -----------------------------------------
     2. NAVIGATION: Mindre logotyp på mobil
     ----------------------------------------- */
  .v2-nav__logo img {
    width: 180px;
  }

  /* -----------------------------------------
     3. HERO: Justerade marginaler på mobil
     ----------------------------------------- */
  .site-hero .container {
    padding-bottom: var(--space-sm);
  }

  .site-hero h1 {
    margin-bottom: var(--space-sm);
  }

  /* Projektsidor: tonfa ner rubrikstorleken
     något för att undvika radbrytningar */
  .site-hero--project h1 {
    font-size: clamp(2.5rem, 2rem + 5vw, 5rem);
  }

  /* -----------------------------------------
     4. CTA: Minska gap i kolumnlayout
     ----------------------------------------- */
  .v2-cta__inner {
    gap: var(--space-lg);
  }

  .v2-cta {
    padding: var(--space-2xl) 0;
  }

  /* -----------------------------------------
     5. FOOTER: Anpassa tagline-bredd
     ----------------------------------------- */
  .v2-footer__tagline {
    max-width: 100%;
  }

  /* -----------------------------------------
     6. PORTFOLIO: Projektgrid och tjänster
     ----------------------------------------- */

  /* Tjänster-sidor: inre padding i textpanel */
  .v2-service-split__text {
    padding: var(--space-lg) var(--space-md);
  }

  /* Tjänster-lista: justera textstorlek */
  .v2-services__item {
    font-size: clamp(1.8rem, 1rem + 5vw, 4.5rem);
  }

  /* Projektsidor: event-galleri — stapla vertikalt */
  .v2-case-event-gallery {
    grid-template-columns: 1fr;
  }

  /* Projektsidor: delad event-vy — stapla vertikalt */
  .v2-case-event-split {
    grid-template-columns: 1fr;
  }

  /* Projektsidor: app-karusell — lite lägre bilder */
  .v2-case-carousel__track img {
    height: 55vh;
  }

  /* Identitet-sidan: enkolumns lista i process-panel */
  .v2-process__panel ul {
    columns: 1;
  }

  /* -----------------------------------------
     7. STICKY SCROLL-GALLERI (vko.html):
        Inaktivera sticky-effekten på mobil och
        gör galleriet horisontellt scrollbart
     ----------------------------------------- */
  .v2-case-sticky {
    height: auto;
  }

  .v2-case-sticky__inner {
    position: static;
    height: auto;
    overflow: visible;
  }

  .v2-case-sticky__content {
    height: auto;
    padding: var(--space-xl) 0;
  }

  .v2-case-sticky__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .v2-case-sticky__gallery {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-sm);
    /* Scrollbar dold men funktionell */
    scrollbar-width: none;
  }

  .v2-case-sticky__gallery::-webkit-scrollbar {
    display: none;
  }

  .v2-case-sticky__track img {
    height: 60vw;
    width: auto;
  }

  /* -----------------------------------------
     8. TESTIMONIALS: Mer höjd för längre citat
     ----------------------------------------- */
  .v2-proof__slider {
    min-height: 18rem;
  }

  .v2-proof .container {
    padding-top: var(--space-xl);
  }

  /* -----------------------------------------
     9. OM-SIDAN: Fun facts — panel-höjd
     ----------------------------------------- */
  .om-funfacts__panel {
    padding-bottom: calc(42px + var(--space-md));
  }
}
